text:
feat: ability to subscribe to an API

A mechanism to subscribe to an API via the API catalog would be really useful.
Feature Suggestion

On the API page tile for a given API, add a button to subscribe to the API. For instance, request a new OAuth2 client_id/secret or an API key.
Possible Implementation

Would need to minimally add some metadata to the API doc along with a plugin(?) to implement the request/approval workflow.
Context

Trying to accomplish a developer portal where developers can subscribe to an API in order to use it.
The Spotify API in the demo is an example which uses OAuth2 as documented in the OpenAPI spec: It wants a client_id and secret but the mechanism for obtaining those is elsewhere. Integrating that mechanism in the backstage portal would be really powerful.

This would be a nice case for a plugin! We made the API entity customizable recently, so it's easy to show additional widgets.

+1 to what @Fox32 said -- I think this could be an excellent addition in the form of a plugin that is "connected" to the API entity page. More information about how a plugin can be connected up can be found here:
https://backstage.io/docs/plugins/integrating-plugin-into-service-catalog

@fox32 @stefanalund I'm thinking along these lines:
Name it plugin-oauth2-client-registration?
The plugin backend uses the OAuth 2.0 Dynamic Client Registration Protocol, RFC 7591 which is derived from the OpenID Connect Dynamic Client Registration 1.0 This should make it supported by a variety of commerical vendors (PingFederate, Okta, Auth0, ...) and FOSS implementations (Gluu, MITREid Connect, ...)
It is configured with profiles that define specific requests like this example, perhaps using templating for user-entered fields like redirect URIs.
clients:
  - client_name: example_client
    client_uri: https://example.com/example_client/about.html
    logo_uri: https://example.com/example_client/logo.png
    contacts:
      - mailto:support@example.com
    grant_types:
      - authorization_code
      - refresh_token
    redirect_uris:
      - https://www.getpostman.com/oauth2/callback
      - http://example.com/oauth2-redirect.html
      - http://localhost:8000/oauth2-redirect.html
    scope:
      - auth-columbia
      - demo-djt-sla-bronze
      - create
      - read
      - update
      - delete
      - openid
      - profile
      - email
      - https://api.columbia.edu/scope/group

The frontend presents the available client "profiles" for the user to select from perhaps with template values.
Upon successfully calling the backend API, the client_id, client_secret, etc. from the client information response are presented.
Lots of details to be worked out, including:

an authorization model so that some client credentials can be "automatically" issued while others may require an approval workflow....
how the backend is authenticated/authorized to the OAuth2 server: with statically configured client credentials or passing along the end user's Access Token?
Maybe this can be done as a proxy.
Maybe can leverage the passportjs OIDC integration.

I'd appreciate guidance.

@fox32 @stefanalund I'm thinking along these lines:
Name it plugin-oauth2-client-registration?
The plugin backend uses the OAuth 2.0 Dynamic Client Registration Protocol, RFC 7591 which is derived from the OpenID Connect Dynamic Client Registration 1.0 This should make it supported by a variety of commerical vendors (PingFederate, Okta, Auth0, ...) and FOSS implementations (Gluu, MITREid Connect, ...)
It is configured with profiles that define specific requests like this example, perhaps using templating for user-entered fields like redirect URIs.
clients:
  - client_name: example_client
    client_uri: https://example.com/example_client/about.html
    logo_uri: https://example.com/example_client/logo.png
    contacts:
      - mailto:support@example.com
    grant_types:
      - authorization_code
      - refresh_token
    redirect_uris:
      - https://www.getpostman.com/oauth2/callback
      - http://example.com/oauth2-redirect.html
      - http://localhost:8000/oauth2-redirect.html
    scope:
      - auth-columbia
      - demo-djt-sla-bronze
      - create
      - read
      - update
      - delete
      - openid
      - profile
      - email
      - https://api.columbia.edu/scope/group

The frontend presents the available client "profiles" for the user to select from perhaps with template values.
Upon successfully calling the backend API, the client_id, client_secret, etc. from the client information response are presented.
Lots of details to be worked out, including:

an authorization model so that some client credentials can be "automatically" issued while others may require an approval workflow....
how the backend is authenticated/authorized to the OAuth2 server: with statically configured client credentials or passing along the end user's Access Token?
Maybe this can be done as a proxy.
Maybe can leverage the passportjs OIDC integration.

I'd appreciate guidance.

@Fox32 Stale but can I reopen? Now getting to the point where I might try to develop this but will need help I think.


text:
Build docker image using cloud native buildpacks

Feature Suggestion
Provide source to image experience using Cloud native buildpacks. (https://buildpacks.io/)
Possible Implementation
Produce docker image using opinionated buildpack and have less/no reliance on end-user to know docker best-practices.
Context
Buildpacks for building backstage docker image with best practices (https://buildpacks.io/features/)
Consider dependent software packages required for some of the plugins - cookiecutter for scaffolder, mkdocs for techdocs, etc.

Sounds interesting. What is the main benefit to Backstage adopters as you would see it? To not have to set up their environments with Node etc?
One caveat we've seen is that the build times are significantly worse in Docker than on the host.

Initial gut feeling I have, is that this could be a good fit for the contrib folder, to be used as an opt-in for those that want it, rather than making it a default blessed path. Any other opinions?

yes @freben, its a candidate for contrib folder and should be opt-in.
Main benefits is less reliance on developer to write optimize dockerfile, there are best practices such as running container as non-root, multi-stage docker image, etc are not straightforward to get it right for all developers.
Also buildpacks makes it easy to rebase images without needing to rebuild them, if there is change in base layers/image.

bump

source: gharchive/issue

authors: freben kiranpatel11 lmasiero

repo: backstage/backstage

license_type: permissive

license_source: github-api


text:
Update packages to handle Gerrit URL with tags.

Hey, I just made a Pull Request!
Adding feature to read Gerrit URL with tags besides heads/branch. Related issue 22053
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

Thanks for your comments @anicke, I will update the code.
But since the 26800 had somethings related to our PR, how can we coordinate with it?

source: gharchive/pull-request


text:
cli: add support for package role + script & migration utils

Hey, I just made a Pull Request!
This implements #8729, pretty much as discussed, with the field being backstage.role and the roles themselves never having a backstage- prefix. It's a draft for now for some early feedback, since it's getting pretty large. It still at least needs changesets, and then at some point we'll need to introduce deprecations, update docs, and migration docs.
So far this implements lifecycle scripts for each role, available via an experimental backstage-cli script subcommand. It ends up having your package scripts look like this:
"scripts": {
  "start": "backstage-cli script start",
  "build": "backstage-cli script build",
  "lint": "backstage-cli script lint",
  "test": "backstage-cli script test",
  "clean": "backstage-cli script clean",
  "prepack": "backstage-cli script prepack",
  "postpack": "backstage-cli script postpack"
}

It also adds an experimental backstage-cli migrations subcommand. Underneath that there's a backstage-cli migrations package-role that helps detect and add roles for all existing packages in a monorepo, and backstage-cli migrations package-scripts that adds scripts based on the role of each package.
The lifecycle scripts that are "role aware" so far are start, build, and bundle. Bundle is a new type of script that I think we should experiment with reintroducing. I think the current mix of building and bundling under the same build script is a bit confusing, and likely leads to a lot of unnecessary work. There's a bit more info here, but TL;DR is that there's no need to build packages if you're not publishing them. The idea in the end is that if you want to publish packages, you run yarn build in the root, but if you want to deploy packages, you run yarn bundle.
:heavy_check_mark: Checklist

[ ] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[x] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

Noting that I plan to get rid of the "bundle" script before merging this, just making them all "build" scripts


text:
Remove Mail.defaults

Hi
Like actionmailer, maybe mail.delivery_method :smtp, options is better than Mail.defaults{ delivery_method :smtp, options }
So, please review it. thanks.

Hi @vkill, Thanks for the PR! This seems much better yes

authors: tombruijn vkill

repo: backup/backup

license: mit

license_source: bigquery


text:
not working on ryujinx

none of the cheats take any effect, on version 1.1.761 of ryujinx and version 1.0 of game.

Downgrade your ryu version for now and file a bug with them. they have been randomly breaking cheats between updates then fixing them a version or two later.

what version is working?

i tried ryujinx-1.1.760,1.1.741,1.1.748 then gave up

I removed v1.0 cheats -- as I've migrated to 1.1.0 -- all the cheats that I made originally work(ed) for Ryu, as I tested it myself.
They all work currently for latest.. if it isn't you're doing something wrong. Post a screenshot.

ive placed the txt in Ryujinx/mods/contents/0100F2C0115B6000/ like the ryujinx wiki says to and they arent working

I removed v1.0 cheats -- as I've migrated to 1.1.0 -- all the cheats that I made originally work(ed) for Ryu, as I tested it myself.
They all work currently for latest.. if it isn't you're doing something wrong. Post a screenshot.

I did follow the steps and tried the cheats of version 1.0, but I followed the same steps but some tricks do not work for me, such as stamina, health, inf battery, arrow, etc. dont work for me
I have it just like I did the first time, now with version 1.1 I did the same, but some of them don't work as I said

Can confirm, it is working with latest Ryu as of right now..

Same. The only one thats worked for me is content of 082CE09B06E33A12 haha the one with like 7 cheats, these updated ones dont work

It LOOKS as if it wors, but it doesnt.. it lets me enable them, as well, but they DO NOT WORK in the game....

It lets me enable them.. It shows me that they've been correctly dumped into the game files, but they simple dont work, in game.. I have the latest Ryujinx update.. Ive also tried another persons cheats, for this game and got the same exact result.. you can see them there, but they dont work..

Works fine, you're using a different version.

license: MIT


text:
Event AuctionNewBidEvent not fired

Hi there! I tried with a sample code here:
@EventHandler     public void onBid(AuctionNewBidEvent e){         Player p = e.getPlayer();         p.sendMessage("It works!");     }
But it doesn't seem to work. (My plugin is correctly enabled and all of the events are registered)
Here the normal output: https://imgur.com/a/z7Xk1WP

You are calling the wrong event.

AuctionNewBidEvent: This event is fired when a player places a new bid onto an item in the auction house.

You need this one.

AuctionListEvent: his event is fired when a new item is listed onto the auction house.


text:
🛑 My Blog is down

In ef5dcfc, My Blog (https://blog.tldr.plus) was down:

HTTP code: 523
Response time: 2335 ms

Resolved: My Blog is back up in 6106bb5.

repo: baddate/uptime-monitor


text:
🛑 Hacker News is down

In b5eb993, Hacker News (https://news.ycombinator.com) was down:

HTTP code: 502
Response time: 215 ms

Resolved: Hacker News is back up in e46188c after 6 minutes.


text:
Compilation errors in Visual Studio 2022

Hello!
First of all, thank you for developing this great library!
The issue is that Visual Studio (version 17.10.6 to be exact) will throw errors whenever I try to compile some code that uses BitmapPlusPlus:

After searching for a while, it looks like that there are two problems:

For some reason, VS doesn’t natively support alternative tokens like not or and, despite the fact that they are technically defined by the C++ standard. I found out at least three different solutions:

Flag /permissive- could be used to force the compiler to be standard compliant (can be done with CMake).
Tokens and and not could be replaced with && and !.
Adding #include <iso646.h> also fixes this problem.

Visual Studio 2022 still defaults to C++14, but structured bindings require C++17 (quick fix in CMake).

Of course the issue is specific to VS. Other compilers like GCC or Clang compile without any issues (tested on Linux with glibc). Still, I think that for those who use VS it will be a good idea to fix those problems, so I will open a PR.

Hello! First of all, thank you for your interest in this library.
Indeed MSVC does not support alternative tokens prior to C++17. I never had the opportunity to test the library in Windows. Perhaps I should setup some CI builds in multiple platforms with multiple compilers.
I appreciate the time you took to investigate and solve the issue! I will review the PR #3 asap.
Thanks again and have a great day!

repo: baderouaich/BitmapPlusPlus


text:
Apple Cash

1750

Yes

Confirm

[ ]

repo: badger-cash/badger


text:
Security issue on dependency

There is a security issue, should better upgrade semver to version >= 4.3.2
https://github.com/badges/shields/blob/master/package.json#L27

"semver": "~2.3.0",

https://nodesecurity.io/advisories/semver_redos

Vulnerable: <4.3.2  Patched: >=4.3.2

I found that most dependencies is a little bit old, let me send a PR to upgrade them.

Thanks!

np

authors: PeterDaveHello espadrine

repo: badges/shields


text:
CircleCI job status

:clipboard: Description

I would like a badge that displays the result of a certain job of a CircleCI pipeline.
<circleci logo> job_name | status
Currently CircleCI badges support only filtering by branch. I'm not sure if this is a limitation coming from the CircleCI API.
:link: Data

I don't really know.
:microphone: Motivation

Yeah I don't think there is a way we can do this with the Circle CI as it stands.


text:
Move more badge examples into services/ [conda website cocoapods]

Continuing the work from #2234, this creates additional, empty LegacyServices to hold the badge examples for conda and cocoapods. It's an approach we could take to finish emptying out all-badge-examples while the refactoring continues.
On the website badge, even the first URL path component is variable. I didn't think it could be moved, but it can!

Warnings

:warning:

This PR modified service code for cocoapods but not its test code. That's okay so long as it's refactoring existing code.

:warning:

This PR modified service code for conda but not its test code. That's okay so long as it's refactoring existing code.

:warning:

This PR modified service code for website but not its test code. That's okay so long as it's refactoring existing code.

Messages

:book:

:sparkles: Thanks for your contribution to Shields, @paulmelnikow!

:book:

Thanks for contributing to our documentation. We :heart: our documentarians!

  Generated by :no_entry_sign: dangerJS

authors: paulmelnikow shields-ci


text:
Added [SecurityHeaders] badge

Pull request with #3929 contribution.

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @srtab!

  Generated by :no_entry_sign: dangerJS against ed092fcbb9af34ceee8a5694221ac6efacff2083

Thanks for your contribution @srtab!
I've just edited the title and kicked the CI so that the new service tests get run as well.

Thanks for the review @PyvesB, i will make the changes as soon as possible.

@srtab do you have a Twitter handle I can give credit to in a Tweet about this new badge?

@srtab do you have a Twitter handle I can give credit to in a Tweet about this new badge?

Sorry for late response. I do have an account, but i haven't used it. But thanks anyway.

Tweet posted: https://twitter.com/Shields_io/status/1174037594851688448

authors: PyvesB shields-ci srtab


text:
Add a functionality so that not logged-in user can also check his order from home page.

Framework Version :0.1.1
If a Guest User place an order for any product that he will not able to check his order status.Add a feature on home page so that guest user can also check his order status and return by using his order id and email.

Although the guest customer will be communicated by store keepers themselves using email or phone provided by the customer at the time of order.
But we will look into the possibility of adding it in near future.

This issue is for the guest users who ordered and wants to see their order details using their browser.
We have integrated email communications and any sort of information that is needed to be passed to the guest customer who ordered will be sent through emails.

repo: bagisto/bagisto


text:
shipping address field warning for guest customer not translated

Bug report
Title
shipping address field warning for the guest customer not translated
Issue Description
shipping address field warning for a guest customer not translated
Preconditions
1. framework Version- master

Steps to reproduce
1. step1- add to cart an item with guest user
2. step2- checkout
3. step3- check new shipping address form with a blank field

Actual result

fixed


text:
compare icon should classify the total compare product added in the comparison page

Bug report
Title
compare icon should classify the total compare product added in the comparison page
Issue Description
compare icon should classify the total compare product added in the comparison page
Preconditions
1. framework Version- master

Steps to reproduce
1. step1- add a product to compare list
2. step2- Now check the compare icon in the header, will not show the no of products added in the list likewise cart.

Expected result

comparison icon should show the total counts

Actual result

Fixed


text:
Various tweaks

I tried setting this up with my own discord server, and made some tweaks in the process. I'm not sure which if any of these would be appealing to you, but just in case.
The changes:

Use the GitHub Container registry instead of the Docker registry (provides anonymous access to the images)
Publish images from another branch, for testing
Logging in tests
Bump some dependencies
Notes on running integration tests
Base sleep time on retention intervals
Fix some warnings

Hey, thanks so much for the PR! 🙌 Definitely going to check it out in the next days.

authors: bahlo dehnert

repo: bahlo/discord-retention-bot


text:
How to validate a checkbox array with a custom validator?

Versions:

VueJs: 2.5
Vee-Validate: 2.0.0-rc.19

Description:
I'm building a set of components, all of which have the same API, with value coming in and input being the model.
For each component, I mix in a the validation, which on creation does this:
  created () {
    this.$validator = new Validator()
    this.$validator.attach('input', this.rules)
  },

I then have a validate() function on the component which I call as needed:
    validate () {
      this.$validator.validate('input', this.input)
      const error = this.$validator.errors.first('input') || ''
      this.error = error.replace('The input field', 'This field')
      return error.replace('The input field', `The field '${this.name}'`) || null
    },

This all works fine, but I cannot get an input array (from multiple checkboxes) to validate all of them, it just validates with one field checked.

You can see the options I pass in here:

I've started looking into custom rules, trying to detach the original ones and add new ones, but I can't seem to make it work.
I essentially need to rewrite the required rule for this instance so that it compares the length of the options with the length of the input:
return this.input.length === this.options.length

And returns a meaningful error message, such as "All fields must be checked".
If anyone can show me what JS to write to have this component validate itself, that would be amazing.
Thanks,
Dave

OK, looks like I did it.
In the created method of the component, I overwrite the required rule:
    created () {
      const rule = {
        getMessage: (field, args) => 'All fields need to be checked',
        validate: (value, args) => value.length === this.options.length
      }
      this.$validator.extend('required', rule)
    },

Damn. Thought I had it, but all sorts of horrible errors when the component is destroyed / a new one is created.

OK, turns out it was the binding.
I got round it with this horrible contraption:
    created () {
      const validate = (value) => {
        return value && value.length === this.options.length
      }

      const rule = {
        getMessage: (field, args) => 'All fields need to be checked',
        validate: function (value, args) {
          return validate(value)
        }
      }

      this.$validator = new Validator()
      this.$validator.attach('input', this.rules)
      this.$validator.extend('all', rule)
    },

I'd love to find a better way of doing this.
Is there any way to bind values to the validator?

Rules are a global singleton shared by all instances. Meaning if you override one rule, it overrides the rule globally for all instances so you probably don't want to override the default rules.
Can you use the length rule for that? It was introduced recently.

Rules are a global singleton shared by all instances. Meaning if you override one rule, it overrides the rule globally for all instances so you probably don't want to override the default rules.

Hmmm. Surely if you override an instance, you want the rule to be only for that instance?
I'll check out the length rule, though I've actually updated the implementation of the checkboxes array now, so that the emitted value isn't an array of checked values, but a hash of boolean properties (as it makes more sense to send this to any back end, as props map better to DB columns)

OK, final piece of the puzzle solved tonight.
My checkbox array now ONLY takes an Object as values:
{
  foo: 'Foo',
  bar: 'Bar',
  baz: 'Baz',
}

This then makes it really easy to validate, with a new rule I'm calling "all":
Validator.extend('all', {
  getMessage: (field, args) => 'All fields need to be checked',
  validate: function (value, args) {
    return Object
      .keys(value)
      .every(key => !!value[key])
  }
})

Simples.

Great you figured that out 😄

still you could loop over the array value and do the same, right

You mean if I pass in an array? I've disabled that for the moment, but I'll reinstate it when I have some time.
I have come up against a related issue now - maybe you can help me?
So as part of my component set, I have <checkboxes> and <checkbox>:

Using my rule all works for checkboxes and passing a checkbox object, but the checkbox component, its value is a boolean, so the comparison / rule is different.
What I would like, would be to be able to specify a single rule checked which would work for both types:
Validator.extend('checked', {
  getMessage: function (field, args) {
    return 'All fields need to be checked'
  },
  validate: function (value, args) {
    return typeof value === 'boolean'
      ? value
      : Object
        .keys(value)
        .every(key => !!value[key])
  }
})

Whilst the validate() function works, the getMessage() function is unable to determine the passed values (object or boolean) and so can't vary its message depending.
Is there a way to solve this?

OK, I read a bit further in the docs and I can return an object from the validate() function which gets passed to the getMessage() as the third parameter.
Great stuff!

You can take a look at this merged PR #868
You can define how your component behaves with the false value with the required rule, setting the option rejectFalse to true will allow it to behave more like a checkbox.
There isn't a rule called checked since it is basically the same as required but rejects false as well, still can be solved by the mentioned PR.

authors: davestewart logaretm

repo: baianat/vee-validate


text:
Adding examples for API_USERNAME & API_PASSWORD

I couldn't find any documentation on how to configure these.  So adding to help out others.

@adamshand Thank you very much for your contribution!

authors: adamshand bakito

repo: bakito/adguardhome-sync


text:
Unable to use sails.io.js when cross-origin. CPU meltdown.

For a project I would like to keep my frontend and backend completely separated, meaning Sails will be API only and serve data over the websocket. I tried to link the sails.io.js file in my client page, but it results in my browser going nuts. It immediately starts maxing out the CPU and printing and endless stream of engine.io debug messages like this
sails.io.js:4 engine.io-client:polling-xhr xhr data null +0ms
sails.io.js:4 engine.io-client:polling polling got data ok +1ms
sails.io.js:4 engine.io-client:socket socket receive: type "error", data "parser error" +0ms
sails.io.js:4 engine.io-client:polling polling +0ms
sails.io.js:4 engine.io-client:polling-xhr xhr poll +1ms
sails.io.js:4 engine.io-client:polling-xhr xhr open GET: http://localhost:3000/socket.io/?__sails_io_sdk_version=0.11.0&__sails_io_s…ls_io_sdk_language=javascript&EIO=3&transport=polling&t=1425244294384-8536 +0ms
sails.io.js:4 engine.io-client:polling-xhr xhr data null +0ms
sails.io.js:4 engine.io-client:polling polling got data ok +1ms
sails.io.js:4 engine.io-client:socket socket receive: type "error", data "parser error" +1ms
sails.io.js:4 engine.io-client:polling polling +0ms
sails.io.js:4 engine.io-client:polling-xhr xhr poll +0ms
sails.io.js:4 engine.io-client:polling-xhr xhr open GET: http://localhost:3000/socket.io/?__sails_io_sdk_version=0.11.0&__sails_io_s…ls_io_sdk_language=javascript&EIO=3&transport=polling&t=1425244294386-8537 +0ms

I included the sails.io.js file by placing the script tag in the body of the client page like this
<script src="http://localhost:1337/js/dependencies/sails.io.js"></script>

I'm using a default fresh "sails new" install with no modifications.

I have done some debugging in sails.io.js. Part or the problem seems to be that isXorigin() returns false, when it clearly shouldn't. This is because SailsSocket.url (self.url) at line 385 is undefined.
To be absolutely sure that my client server is not messing things up I served the app with python -m SimpleHTTPServer (defaults to port 8000), and here is the full html:
<html>
  <head>
    <title>Sample App</title>
  </head>
  <body>
  <script src="http://localhost:1337/js/dependencies/sails.io.js"></script>
  </body>
</html>

Then I found this comment in the source:
// io.socket
    //
    // The eager instance of Socket which will automatically try to connect
    // using the host that this js file was served from.
    //
    // This can be disabled or configured by setting properties on `io.sails.*` within the
    // first cycle of the event loop.
    //

From this I understand that the url will be automatically set to http://localhost:1337 in my case, because that is where the sails.io.js is served from.
So I tried to set this explicitly by adding this to my index.html:
 <script>
    /* globals io */
    io.sails.url = "http://localhost:1337";
</script>

This seems to solve the problem for me. Is it intended like this or should we consider it a bug that the url is not implied by the sails.io.js server url?

I think the comment you're referring to is misstating the way the script works.  It will try to connect to whatever server the client file which loaded sails.io.js lives on; the comment isn't considering that you might host sails.io.js elsewhere.  I don't think it would even be possible for an externally-loaded  Javascript file to know what server it was loaded from.  It can only know which server the page with the <script> tag is on.  Incidentally, setting the connection URL to another domain is covered in the sails.io.js docs.
All that being said: nothing should be maxing out your CPU and making things go haywire, so if you think it's due to some problem with sails.io.js, please post an issue in that forum!.

Thanks I didn't know there was separate documentation for sails.io.js. This stuff is not in the compiled docs afaik. I've reported the issue balderdashy/sails.io.js#47

repo: balderdashy/sails


text:
[proposal] Added support for nested invalid attributes

If you want to manually build an error based on WLValidationError that holds nested errors, because validation failed on nested data (association, nested documents, etc), there is no way to pass that data as invalidAttributes and get the expected result. There might not be support yet for deep validations but this opens the door for it. It's just a couple of simple helpers that iterate recursively if needed to properly normalize and format the errors.
So that this invalid attributes:
{ location:
      { country:
         [ { rule: 'string',
             message: '`undefined` should be a string (instead of "null", which is a object)' },
           { rule: 'required',
             message: '"required" validation rule failed for input: null' },
           { rule: 'notEmpty',
             message: '"notEmpty" validation rule failed for input: null' } ],
        city:
         [ { rule: 'string',
             message: '`undefined` should be a string (instead of "null", which is a object)' },
           { rule: 'in',
             message: '"in" validation rule failed for input: null' },
           { rule: 'required',
             message: '"required" validation rule failed for input: null' },
           { rule: 'notEmpty',
             message: '"notEmpty" validation rule failed for input: null' } ],
        }

Can keep that format (otherwise it gets modified) and we can get a nice error too, like this
Error (E_VALIDATION)  ... some error details here
• location:
      • country:
        • `undefined` should be a string (instead of "null", which is a object)
        • "required" validation rule failed for input: null
        • "notEmpty" validation rule failed for input: null
      • city:
        • `undefined` should be a string (instead of "null", which is a object)
        • "in" validation rule failed for input: null
        • "required" validation rule failed for input: null
        • "notEmpty" validation rule failed for input: null

If the use case is not clear, or something needs to be improved or modified let me know.
pst: Not sure if there are tests for this, i didn't check since i'm doing this for the project i'm currently working on, so if there are some tests that needs to be modified somehow, let me know that too.

ok, fixed!

repo: balderdashy/waterline


text:
Inconsistency in stencil state display between OpenGL and DX11 drivers

When viewing a DX11 capture, the stencil masks and ref value are displayed as hex values; when viewing an OpenGL capture, the masks and ref are displayed in decimal. It would be nice if the OpenGL driver used hex values same as DX11 - that would make debugging OpenGL ports a little easier. Thanks!

Whoops! This was a silly oversight, because the GL refs/masks are per-face so they went in the table. I think that commit should fix this issue.
Please take a look at a nightly build or compile yourself when you have a chance, and let me know if this sorts it out as you expect. Otherwise I'll close this issue after the next stable release.

Works great, it's exactly what I wanted, thanks!

authors: baldurk jshofmann

repo: baldurk/renderdoc


text:
device: Add local mode related methods

See: https://github.com/balena-io/balena-sdk/pull/733
Change-type: minor
Signed-off-by: Trong Nghia Nguyen nghiant2710@gmail.com

@thgreasi I've fixed all your comments, can you please have a look?

repo: balena-io/balena-sdk-python


text:
linux-beagleboard: Power cycle SD card at boot on Beagleboard-XM

We need to power cycle the SD card at the initialization sequence
to put it in a reset state. Otherwise, we will encounter this
error that prevents boot:
[    3.042205] mmc0: card never left busy state
[    3.050262] mmc0: error -110 whilst initialising SD card
Signed-off-by: Sebastian Panceac sebastian@balena.io

@balena-ci, retest this please

repo: balena-os/balena-beaglebone


text:
layers/meta-balena: Update to v2.53.8

Update meta-balena from 2.52.7 to 2.53.8
Changelog-entry: Update meta-balena from v2.52.7 to v2.53.8
Signed-off-by: Alexandru Costache alexandru@balena.io

@balena-ci I self-certify!

repo: balena-os/balena-raspberrypi


text:
Fix ordering of docker-compose args

Change-type: patch
Signed-off-by: Kyle Harding kyle@balena.io

@balena-ci I self-certify!

repo: balena-os/leviathan


text:
RPM support

see: https://github.com/google/rpmpack

done

repo: balibuild/bali


text:
Implement Constant expressions

Tasks.
Constant support the following expressions.

[x] literal
[ ] list-constructor-expr
[x] mapping-constructor-expr
[ ] table-constructor-expr
[ ] string-template-expr
[ ] xml-expr
[ ] constant-reference-expr
[ ] type-cast-expr
[x] unary-expr
[x] multiplicative-expr
[ ] mod-expr
[x] additive-expr
[ ] shift-expr
[ ] range-expr
[ ] numerical-comparison-expr
[ ] is-expr
[ ] equality-expr
[ ] binary-bitwise-expr
[ ] logical-expr
[ ] conditional-expr
[ ] ( const-expr )

Module constant declaration is partially implemented

[ ] support  [public] const [type-descriptor] identifier = const-expr ;

I think we also need to support constants of named integer subtypes.
As of swanlake alpha-4 it says constant cannot be defined with type 'int:Signed32', expected a simple basic types or a map of a simple basic type

unary-expr is fixed in https://github.com/ballerina-platform/ballerina-lang/pull/30693. Shall update the description?

IMO constant expression list-constructor-expr here is a somewhat highly used scenario in coding. Better if we can prioritise that case. WDYT?

authors: gayalkuruppu hasithaa prakanth97 rdhananjaya

repo: ballerina-platform/ballerina-lang


text:
Public streams in another module cannot be directly accessed

Description:
The code did not work when trying to access public streams in another module, but it did not produce an error.
When a reference copy was made of the public stream, the code worked.
Steps to reproduce:
function initSubscriptionSilverPolicy() {
streamgateway:IntermediateStream intermediateStream = new;
streamgateway:GlobalThrottleStreamDTO resultStream = new;
streamgateway:EligibilityStreamDTO eligibilityStream = new;
forever {
from gateway:requestStream
select gateway:requestStream.messageID, (gateway:requestStream.subscriptionTier == "Silver") as isEligible, gateway:requestStream.subscriptionKey as throttleKey
=> (gateway:EligibilityStreamDTO[] counts) {
foreach var c in counts{
eligibilityStream.publish(c);
}
}
}
}
The above code did not work.
streamgateway:IntermediateStream intermediateStream = new;
streamgateway:GlobalThrottleStreamDTO resultStream = new;
stream eligibilityStream = new;
streamgateway:RequestStreamDTO reqCopy= gateway:requestStream;
streamgateway:GlobalThrottleStreamDTO globalThrotCopy = gateway:globalThrottleStream;
function initSubscriptionSub_5Policy() {
forever {

        from reqCopy
        select printKey(reqCopy.messageID) as messageID, true as isEligible, printKey(reqCopy.subscriptionKey) as throttleKey, 0 as expiryTimestamp
        => (EligibilityStreamDTO[] counts) {
        foreach var c in counts{
            eligibilityStream.publish(c);
        }
        }

}
}
After creating a copy, the code worked.
Given below are the records defined in another module(gateway)
public type RequestStreamDTO record {
string messageID="";
string apiKey="";
string appKey="";
string subscriptionKey="";
string appTier="";
string apiTier="";
string subscriptionTier="";
string resourceKey="";
string resourceTier="";
string userId="";
string apiContext="";
string apiVersion="";
string appTenant="";
string apiTenant="";
string appId="";
string apiName="";
string properties="";
};
public type GlobalThrottleStreamDTO record {
string throttleKey ="";
boolean isThrottled=false;
boolean stopOnQuota=false;
int expiryTimeStamp=0;
};
public type EligibilityStreamDTO record {
string messageID="";
boolean isEligible=false;
string throttleKey="";
};
public type ThrottleAnalyticsEventDTO record {
string metaClientType="";
string userName="";
string userTenantDomain="";
string apiName="";
string apiVersion="";
string apiContext="";
string apiCreator="";
string apiCreatorTenantDomain="";
string applicationId="";
string applicationName="";
string subscriber="";
string throttledOutReason="";
string gatewayType="";
int throttledTime=0;
string hostname="";
};
public type IntermediateStream record{
string throttleKey ="";
int eventCount=0;
boolean stopOnQuota=false;
int expiryTimeStamp=0;
};
Affected Versions:
0.990.3

Hi @RameshaKaru
This is actually not a bug. You cannot directly import a variable reference in a different module. You have to expose it via a getter function. Please try with a getter function. I am closing this issue. If you further have any doubts, please reopen this issue.

authors: RameshaKaru gimantha


text:
Semantic API returns variables as Function symbols

Description:
Consider the following source snippet,
function basicClosure() returns (function (int) returns int) {
    int a = 12;
    var foo1 = function (int b) returns int {
        int c = 12;
        if (b == 3) {

        }

        return 12;
    };

    return fo<cursor>
}

If we consider the symbol foo it is being identified as a FunctionSymbol instead of a Variable Symbol.
When suggesting completions at cursor, do we need to support foo1( ) and foo as well?

I just checked this. Looks like this is how it has been before as well. If the variable is referring to a function, the symbol created for it is an invokable symbol. Does this create any complications?

@nadeeshaan Since both foo() and foo are acceptable, it's fine to suggest both in completions right? Or does this cause any issues?

Now foo1 is suggested as expected on master. Closing this.


text:
Parameter defaults aren't used as expected in function/method calls

Description:
Couldn't find an issue tracking this.
For the function call expression, the spec says

The function-reference must refer to a variable with function type. The type descriptor of that function type is used to construct an argument list from the specified arg-list. Note that it is the type descriptor of the declared type of the variable that is used for this purpose, rather than the runtime type descriptor of the referenced function value.

Steps to reproduce:
import ballerina/io;

type Foo object {
    function func(int i = 1234, string s = "hello");
};

class Bar {
    *Foo; // Even without.

    function func(int i, string s) {
        io:println(i);
        io:println(s);
    }
}

public function main() {
    Foo foo = new Bar();
    foo.func();
}

Prints
0

Expected
1234
hello

Affected Versions:
slalpha1
Related Issues:
https://github.com/ballerina-platform/ballerina-lang/issues/10639

Also see
import ballerina/io;

type Foo object {
    function func(int i = 1234, string s = "hello");
};

class Bar {
    *Foo; // Even without.

    function func(int i = 5678, string s = "world") {
        io:println(i);
        io:println(s);
    }
}

public function main() {
    Foo foo = new Bar();
    foo.func();
}

Prints
5678
world

Expected
1234
hello

Also see
import ballerina/io;

type Foo object {
    function func(int i = 1234, string s = "hello");
};

class Bar {
    *Foo; // Even without.

    function func(int i = 5678, string s = "world") {
        io:println(i);
        io:println(s);
    }
}

public function main() {
    Foo foo = new Bar();
    foo.func();
}

Prints
5678
world

Expected
1234
hello

Being able to access the default values is also a requirement from Ballerina GraphQL impl.
See comment: https://github.com/ballerina-platform/ballerina-lang/pull/27443#issuecomment-744231066

Being able to access the default values is also a requirement from Ballerina GraphQL impl.
See comment: https://github.com/ballerina-platform/ballerina-lang/pull/27443#issuecomment-744231066

authors: MaryamZi rdhananjaya


text:
[HTTP] Logs API related changes

Description:
-e http.tracelog= true/false
-e http.tracelog.path=/path/to/file
Change accesslog CLI param standard as follows
-e http.accesslog=true/false
-e http.accesslog.path=/path/to/file
Improve log to socket.

Addressed this in PR #7382


text:
Need to hover over the visible scroll bar to see the area

Description:
When you scroll down the code, the visible scroll bar on the right does not show the area unless you hover over the scroll bar when scrolling down

Affected Versions:
ballerina-0.970.0
OS, DB, other environment details and versions:
Ubuntu 15.10
Firefox - 59.0.2 (64-bit)

This feature is part of Monaco editor hence we are unable to fix it. BTW this behavior is in line with VSCode as well.

authors: dilinisg hevayo


text:
Improve Langlib decimal test coverage

Purpose
$subject
Fixes #
Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

[ ] Read the Contributing Guide
[ ] Required Balo version update
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Ran test cases locally.

authors: hasithaa rdhananjaya


text:
Fix test files packing with uber jar.

Purpose
This PR will fix a set of issues related to test including $subject. Also fix test init getting triggered when running modules and add completions for test files.
Fixes #18675
Check List

[ ] Read the Contributing Guide
[ ] Required Balo version update
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

Merging #18676 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #18676   +/-   ##
=======================================
  Coverage    15.1%    15.1%
=======================================
  Files          48       48
  Lines        1258     1258
  Branches      198      198
=======================================
  Hits          190      190
  Misses       1054     1054
  Partials       14       14

Continue to review full report at Codecov.

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

authors: codecov-io hevayo


text:
[2201.1.x] Remove unnecessarily added mock function map entries when there are multiple test packages

Purpose

Fixes unnecessarily arising ClassNotFoundExceptions.

Fixes #37007
Fixes #36585
Approach
Samples
Remarks
Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Closing this since appropriate fix needs to be done in MockAnnotationProcessor.java


text:
Sync 2201.5.x with release-2201.5.4 branch

Purpose

Describe the problems, issues, or needs driving this feature/fix and include links to related issues.

Fixes #
Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

[ ] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Merging with failing checks and the intermittently failing tests will be disabled in 5.x branch with https://github.com/ballerina-platform/ballerina-lang/pull/41911

authors: NipunaRanasinghe dulajdilshan


text:
Support for legacy nmap.

Older nmap like the one bundled with Ubuntu Precise (12.04), 5.21
requires that you specify what unit the value to --host-timeout is.
$ nmap -v localhost --host-timeout 5
--host-timeout is specified in milliseconds unless you qualify it by
appending 's', 'm', or 'h'. The value must be greater than 1500
milliseconds
QUITTING!

$nmap -v localhost --host-timeout 5
host-timeout is given in milliseconds, so you specified less than 15 seconds (5000ms). This is allowed but not recommended.

Starting Nmap 5.21 ( http://nmap.org ) at 2015-11-28 20:18 CET
Initiating SYN Stealth Scan at 20:18
Scanning localhost (127.0.0.1) [1000 ports]
Discovered open port 22/tcp on 127.0.0.1
Completed SYN Stealth Scan at 20:18, 0.01s elapsed (1000 total ports)
Nmap scan report for localhost (127.0.0.1)
Host is up (0.0000040s latency).
Not shown: 995 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh

Read data files from: /usr/share/nmap
Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds
           Raw packets sent: 1000 (44.000KB) | Rcvd: 2005 (84.220KB)
$ nmap --version
Nmap version 5.21 ( http://nmap.org )

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.5 LTS
Release:        12.04
Codename:       precise

This behaivor was changed in
5.35DC1[2010-07-16]
but I think is a good idea to support the older versions.
Newer version also supports if you specify an unit:
$ nmap -v localhost --host-timeout 5
Starting Nmap 6.00 ( http://nmap.org ) at 2015-11-28 20:16 CET
Initiating SYN Stealth Scan at 20:16
Scanning localhost (127.0.0.1) [1000 ports]
Discovered open port 22/tcp on 127.0.0.1
Completed SYN Stealth Scan at 20:16, 0.03s elapsed (1000 total ports)
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000011s latency).
Not shown: 997 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh

Read data files from: /usr/bin/../share/nmap
Nmap done: 1 IP address (1 host up) scanned in 0.11 seconds
           Raw packets sent: 1000 (44.000KB) | Rcvd: 2003 (84.132KB)

$ nmap --version
Nmap version 6.00 ( http://nmap.org )
Platform: i686-pc-linux-gnu
Compiled with: liblua-5.1.5 openssl-1.0.1e libpcre-8.30 libpcap-1.3.0 nmap-libdnet-1.12 ipv6
Compiled without:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.9 (wheezy)
Release:        7.9

Sounds good :+1: thanks

authors: balloob theseal

repo: balloob/home-assistant


text:
Pushover notification support

This is a notification component for pushover https://pushover.net
It is based off the pushbullet component and includes an additional dependency on python-pushover into the requirements.txt

Looks good :dolphin: We can merge it once tests pass.
Any reason you prefer pushover over pushbullet?

I started using because it was supporedt by sickbeard and I think it was out before pushbullet was around.  I have been meaning to check out pushbullet but I already have a bunch of stuff using pushover so I figured I should add support to HA

Coverage decreased (-0.54%) to 64.69% when pulling 7a2aa43caab56fc499085fafb6c15e5cbe129b12 on jamespcole:pushover-dev into e8724358708da1fc1c51844ad0b510db3570d60a on balloob:dev.

Coverage decreased (-0.54%) to 64.69% when pulling 7a2aa43caab56fc499085fafb6c15e5cbe129b12 on jamespcole:pushover-dev into e8724358708da1fc1c51844ad0b510db3570d60a on balloob:dev.

authors: balloob coveralls jamespcole


text:
Document onboarding

Describe the new process here: https://github.com/baloise-incubator/getting-started

https://github.com/baloise/open-source/issues/232

authors: MarkusTiede joachimprinzbach

repo: baloise-incubator/org


text:
No PDF generated

No PDF generation on chrome and firefox for this URL : https://www.leboncoin.fr/equipement_auto/2056395171.htm

Fixed in v1.12.4

repo: bamdadsabbagh/leboncoin-pdf-ext


text:
图片排序问题，创建时间或者最后修改时间

提bug前必看
请先回答下列三个问题，否则不允处理，谢谢配合。
1、我最新的Demo是否有这个bug？【如果Demo没问题，请升级新版】
答：有
2、你用的是什么版本？升级到最新版后是否正常？
答：3.2.6
3、是否有改动过我库内部的代码？【如有，请告诉我你改了什么】
答：没有
sortAscendingByModificationDate设置为NO时，将一个去年的图片添加到相册，图片在相册中的位置，微信会放到最前面，但是TZImagePickerController是按照文件创建时间排序，看到工程里有注释modificationDate排序的代码，是有其他的问题吗

嗯，注释的原因在这：https://github.com/banchichen/TZImagePickerController/issues/259

嗯，注释的原因在这：#259

感谢

authors: banchichen fuboyou

repo: banchichen/TZImagePickerController


text:
incorrect network indication

Describe the bug

To Reproduce
Steps to reproduce the behavior:

Go to swap
open metamask and change network
go back to the widget, input a token amount
see error

expected: once the network has switched to a not supported chain, we should auto force the page to open the "incorrect network" message.
please update the design of this page:
https://www.figma.com/file/3yED7o7TgoLwoEjV2EkRLL/Bancor-V2?node-id=4658%3A11060

@Velua seems like the getter does not update automatically? Can I hand that over to you - or get some guidance on how to fix.

authors: ashachaf pingustar

repo: bancorprotocol/webapp


text:
Protection Table Refactor

#1165

lets discuss. do not push yet.

few things:
1.

when filtering only "fully protected" i should only see rows that are fully protected

longer symbols break the lines. consider displaying the data in the table in a trimmed down format.
example:
current: 0.000146 renBTC
trim down version: 0.000146 r...
and mouse over shows the full information (or you can create a cool animation on mouse over https://stackoverflow.com/questions/33888214/css-animation-to-extend-button-text-on-hover)

https://streamable.com/hq3d7a

select data range:

when selected the size of the indication is wider than when it is not defined.
x to clear the range is outside the box and is not intuitive that it is connected to the range selection

@Ran73Cohen lets go over this one tomorrow morning. @ashachaf do you want to join as well? I have a few ideas about design improvements.

"my protected positions" font size has changed.
filter box is larger (in height) than search box.
date selector font is smaller than other filters and is not centered in height of the box.

text change:
current: full protection reached
updated: Fully protected

@Meytal2021

authors: Ran73Cohen ashachaf pingustar


text:
Add port 9998 listener and target group for healthcheck

Overview
This PR adds a port 9998 listener and target group for health checks to the Banyan repository's Terraform configuration. These enhancements are designed to improve network health monitoring and align with Banyan's infrastructure standards.
Changes Made

AWS Load Balancer Target Group Configuration:

Added a new AWS Load Balancer Target Group aws_lb_target_group named target9998.
Configured with TCP protocol on port 9998, aligned with Banyan's requirement for specific port management.
Stickiness and health check features are configured to ensure robustness and reliability.

AWS Load Balancer Listener Configuration:

Established aws_lb_listener for the Load Balancer, using the same TCP protocol on port 9998.
Default action set to forward traffic to the newly created Target Group.

Alignment with Banyan Documentation

The configuration is designed in accordance with Banyan's Access Tier architecture, ensuring that the Access Tier functions effectively as a reverse proxy on specified ports, which is essential for managing traffic in a Zero Trust environment (Banyan Security Documentation).
The health check on port 9998 is crucial for determining the Netagent's ability to service traffic, a key aspect of Banyan's Netagent capabilities (Banyan Security Documentation).

Intent and Impact

The intention is to leverage Banyan's advanced security functionalities to protect our cloud-native deployments.

If I understand this correctly, it's adding one more listen port to the load balancer. Netagent's port 9998 health check should be called internally for the target group health check, but maybe it's not desirable to expose it publicly.

authors: pato-macrometa yoshiotu


text:
Support both 'release' and 'app.kubernetes.io/instance' labels to link objects to Helm releases

Q
A

Bug fix?
no

New feature?
no

API breaks?
no

Deprecations?
no

License
Apache 2.0

What's in this PR?

Consider beside label 'release' also 'app.kubernetes.io/instance' when trying to determine which helm release a Kubernetes resource belongs to.
Why?

Most of the helm charts use 'release' label to stamp a Kubernetes resource with the Helm release name. According to  https://helm.sh/docs/chart_best_practices/#standard-labels, the new recommendation is to use 'app.kubernetes.io/instance' thus Pipeline should handle both.
Checklist

[x] Implementation tested (with at least one cloud provider)
[x] Error handling code meets the guideline

👍

authors: sancyx stoader

repo: banzaicloud/pipeline


text:
指定数据库类型为oracle 12c时，分页报错

当前使用版本(必填,否则不予处理)
3.3.1.tmp
该问题是如何引起的？(确定最新版也有问题再提!!!)
指定数据库类型为oracle 12c时
paginationInterceptor.setDbType(DbType.ORACLE_12C);
调用分页出现错误
Page p = new Page<>(page, limit);
IPage ip = idcsysdatalogService.page(p, wrapper);
直接指定oracle，可正常使用
paginationInterceptor.setDbType(DbType.ORACLE);
重现步骤(如果有就写完整)
报错信息
org.springframework.jdbc.UncategorizedSQLException:
Error querying database.  Cause: java.sql.SQLException: sql injection violation, syntax error: syntax error, expect FIRST, actual NEXT, pos 192, line 7, column 64, token NEXT : SELECT
send_code,biztype,specode,operate,send_time,versions,create_time,status,send_userid
FROM IDC_SYS_DATA_LOG
ORDER BY send_time DESC , send_code DESC OFFSET ? ROWS FETCH NEXT ? ROWS ONLY
The error may exist in com/manager/mapper/system/IdcsysdatalogMapper.java (best guess)
The error may involve defaultParameterMap
The error occurred while setting parameters
SQL: SELECT   send_code,biztype,specode,operate,send_time,versions,create_time,status,send_userid   FROM IDC_SYS_DATA_LOG           ORDER BY send_time DESC , send_code DESC OFFSET ? ROWS FETCH NEXT ? ROWS ONLY
Cause: java.sql.SQLException: sql injection violation, syntax error: syntax error, expect FIRST, actual NEXT, pos 192, line 7, column 64, token NEXT : SELECT
send_code,biztype,specode,operate,send_time,versions,create_time,status,send_userid
FROM IDC_SYS_DATA_LOG
ORDER BY send_time DESC , send_code DESC OFFSET ? ROWS FETCH NEXT ? ROWS ONLY
; uncategorized SQLException; SQL state [null]; error code [0]; sql injection violation, syntax error: syntax error, expect FIRST, actual NEXT, pos 192, line 7, column 64, token NEXT : SELECT
send_code,biztype,specode,operate,send_time,versions,create_time,status,send_userid
FROM IDC_SYS_DATA_LOG
ORDER BY send_time DESC , send_code DESC OFFSET ? ROWS FETCH NEXT ? ROWS ONLY ; nested exception is java.sql.SQLException: sql injection violation, syntax error: syntax error, expect FIRST, actual NEXT, pos 192, line 7, column 64, token NEXT : SELECT
send_code,biztype,specode,operate,send_time,versions,create_time,status,send_userid
FROM IDC_SYS_DATA_LOG
ORDER BY send_time DESC , send_code DESC OFFSET ? ROWS FETCH NEXT ? ROWS ONLY

针对不同数据库指定,如果你用的就是12c的觉得分页语句不正确可以pr

我用的数据库是Oracle12c，不是分页语句不正确，而是我调用底层的page方法，直接就报错了，打印出来的语句：SELECT * FROM IDC_SYS_DATA_LOG
ORDER BY send_time DESC , send_code DESC OFFSET ? ROWS FETCH NEXT ? ROWS ONLY,是没问题的，不知道是什么原因，
现在切换成DbType.ORACLE，可以正常使用，没有任何问题

针对不同数据库指定,如果你用的就是12c的觉得分页语句不正确可以pr
我用的数据库是Oracle12c，不是分页语句不正确，而是我调用底层的page方法，直接就报错了，打印出来的语句：SELECT * FROM IDC_SYS_DATA_LOG
ORDER BY send_time DESC , send_code DESC OFFSET ? ROWS FETCH NEXT ? ROWS ONLY,是没问题的，不知道是什么原因，
现在切换成DbType.ORACLE，可以正常使用，没有任何问题

authors: miemieYaho sangenmutou

repo: baomidou/mybatis-plus


text:
LambdaQueryWrapper 能否支持 判断为NULL 不加入条件查询

当前使用版本(必填,否则不予处理)
3.4.1
该问题是如何引起的？(确定最新版也有问题再提!!!)
LambdaQueryWrapper queryWrapper = Wrappers.lambdaQuery();
if(ObjectUtil.isNotEmpty(quoteSupplierDetailPageQueryDto.getSupplyName())){
queryWrapper.like(QuoteSupplierDetailPageQueryDto::getSupplyName, quoteSupplierDetailPageQueryDto.getSupplyName());
}
if(ObjectUtil.isNotEmpty(quoteSupplierDetailPageQueryDto.getDetailNo())){
queryWrapper.like(QuoteSupplierDetailPageQueryDto::getDetailNo, quoteSupplierDetailPageQueryDto.getDetailNo());
}
if(ObjectUtil.isNotEmpty(quoteSupplierDetailPageQueryDto.getCreateUser())){
queryWrapper.like(QuoteSupplierDetailPageQueryDto::getCreateUser, quoteSupplierDetailPageQueryDto.getCreateUser());
}
if(ObjectUtil.isNotEmpty(quoteSupplierDetailPageQueryDto.getQuoteStatus())){
queryWrapper.like(QuoteSupplierDetailPageQueryDto::getQuoteStatus, quoteSupplierDetailPageQueryDto.getQuoteStatus());
}
重现步骤(如果有就写完整)
如上不想对每一个字段进行 ObjectUtil.isNotEmpty操作
是否能重写LambdaQueryWrapper 进行判null再组装参数的操作
报错信息
无报错

queryWrapper.like(ObjectUtil.isNotEmpty(quoteSupplierDetailPageQueryDto.getSupplyName()),QuoteSupplierDetailPageQueryDto::getSupplyName,quoteSupplierDetailPageQueryDto.getSupplyName())


text:
v3.5.5正式版的mybatisSpringVersion仍然是2.1.2，应更新为3.0.3

当前使用版本(必填,否则不予处理)
v3.5.5
该问题是如何引起的？(确定最新版也有问题再提!!!)
v3.5.5正式版的mybatisSpringVersion仍然是2.1.2，导致无法启动
重现步骤(如果有就写完整)
查看 https://github.com/baomidou/mybatis-plus/blob/v3.5.5/build.gradle
可发现mybatisSpringVersion仍然是2.1.2
报错信息

另外发现v3.5.5引用的spring-boot-starter-jdbc也是老版本，是2.7.15，是因为使用了springBootVersion，而未使用springBoot3Version
 libraries = [
        mybatisVersion = '3.5.15',
        mybatisSpringVersion = '2.1.2',
        mybatisSpringBootStarterVersion = '2.3.1',
        springVersion = '5.3.27',
        springBootVersion = '2.7.15',
        springBoot3Version = '3.2.0',
        springCloudVersion = '3.1.1',
        jsqlparserVersion = '4.6',
        junitVersion = '5.9.0',
    ]

https://github.com/baomidou/mybatis-plus/blob/v3.5.5/spring-boot-starter/mybatis-plus-spring-boot3-starter/build.gradle

authors: Macrow nieqiurong


text:
[错误报告]: 描述 乐观锁更新失败不会主动抛出异常

确认

[X] 我的版本是最新版本, 我的版本号与 version 相同, 并且项目里无依赖冲突
[X] 我已经在 issue 中搜索过, 确认问题没有被提出过
[X] 我已经修改标题, 将标题中的 描述 替换为遇到的问题

当前程序版本
3.5.7
问题描述
在 ServiceImpl 中使用 updateById 来进行更新数据.
在并发情况下会更新失败,返回值未 false,但是并未抛出异常.
详细日志如下图.

详细堆栈日志
No response

自行判断返回自己抛异常

authors: ErQi miemieYaho


text:
JOSS Reviews: Plots do not work for flying snake example

Functionality: The plotting scripts don't work in flying snake examples.
plotForceCoefficients throws an IndexError (same error in 2.7 and 3.6):
[info] registering simulation ...
        - description: None
        - software: cuibm
        - directory: /home/osumageed/software/cuIBM/examples/flyingSnake/Re1000AoA30

[info] reading forces ...
/home/osumageed/anaconda/envs/py36/lib/python3.6/site-packages/numpy/core/_methods.py:59: RuntimeWarning: Mean of empty slice.
  warnings.warn("Mean of empty slice.", RuntimeWarning)
/home/osumageed/anaconda/envs/py36/lib/python3.6/site-packages/numpy/core/_methods.py:70: RuntimeWarning: invalid value encountered in double_scalars
  ret = ret.dtype.type(ret / rcount)
Traceback (most recent call last):
  File "scripts/plotForceCoefficients.py", line 15, in <module>
    simulation.get_mean_forces(limits=time_limits)
  File "/home/osumageed/anaconda/envs/py36/lib/python3.6/site-packages/snake-0.3-py3.6.egg/snake/simulation.py", line 106, in get_mean_forces
    order=order)
  File "/home/osumageed/anaconda/envs/py36/lib/python3.6/site-packages/snake-0.3-py3.6.egg/snake/force.py", line 90, in get_mean
    'start': self.times[mask[0]],
IndexError: index 0 is out of bounds for axis 0 with size 0

plotVorticity just doesn't make a plot or create images folder.

Hi @OSUmageed
Thank you for reporting this problem.
Can you tell for how long you ran the simulation of the snake?
(What is the last time value in the file forces located in the simulation directory?)
The python script plotForceCoefficients.py is trying to compute the mean forces between 32 and 64 time-units of flow simulation and it looks that it does not find force values within this time range.
If you want, you can either change the time limits or comments some lines directly in the script.
Also, note that the scripts should be run from the root directory of the simulation.
For example:
cd $CUIBM_DIR/examples/flyingSnakes/Re1000AoA30
python scripts/plotForceCoefficients.py

About plotVorticity.py, can you provide the error message?

Hi @mesnardo
Here's the full output for the run (This is Ubuntu 16.04):
I already copy pasted the original output below, but I figured it out.  I'm sure you'll see it immediately but the explanation is at the bottom.
Parsing YAML file with simulation parameters ...
Parsing YAML file with flow conditions ...
Parsing YAML file with grid info ...
Parsing YAML file with bodies info ...

Flow parameters
---------------
nu = 0.001

Domain
------
1704 x 1704

Simulation parameters
---------------------
dt = 0.0004
scaleCV = 5
startStep = 0
nt = 10
nsave = 20000
Convection time scheme = 2nd Order Adams-Bashforth
Diffusion time scheme  = Crank-Nicolson

Velocity Solve
--------------
Solver = BICGSTAB
Preconditioner = Diagonal
Relative tolerance = 1e-05
Absolute tolerance = 0

Poisson Solve
-------------
Solver = CG
Preconditioner = Smoothed Aggregation
Relative tolerance = 1e-05
Absolute tolerance = 0

Output parameters
-----------------
Output folder = .
nsave = 20000

Device Properties
-----------------
Name = Tesla K40c
Number = 0
Compute capability = 3.5
ECC Enabled = yes

Immersed Boundary Method
------------------------
Taira & Colonius

Initializing common parts ...
Initializing bodies ...
Initializing arrays ...
Initializing matrices ...
Initialization complete: Memory Usage 2.98 / 11.2 GB

        assembleMatrices       0.3306
            assembleRHS1       0.0001
            assembleRHS2       0.0291
             generateBC1       0.0004
               generateC       0.2097
              generateQT       0.0831
              generateRN       0.0004
        initialiseArrays       0.4139
        initialiseBodies       0.3404
        initialiseCommon       0.0002
                  output       0.0263
         preconditioner2       1.3384
          projectionStep       0.0501
    solveIntermediateVel       0.2803
            solvePoisson      64.7947
              transposeE       0.0006
             transposeQT       0.0241
                updateQT       0.0000
-------------------------------------
                   TOTAL      67.9224

This is the forces file
0.0004	1282.27	702.34
0.0008	5.55621	1.46305
0.0012	5.36462	1.33546
0.0016	4.93083	1.19025
0.002	4.54265	1.06749
0.0024	4.18473	0.959942
0.0028	3.8556	0.86622
0.0032	3.55488	0.785058
0.0036	3.2817	0.715073
0.004	3.03469	0.654877

Explanation.
The simParams.yaml file for the flying snake simulations has nt = 10.
Easy fix, but the simulation takes a while.  Maybe in the examples folder there could be a Readme that tells the user which simulations take a long time to run or an option to output something like "100/1000 timesteps complete" while the simulation is running.
Now they work as long as that hardwired time range is valid.

You are right, the simulations for the flying snake take a while to complete.
Actually, I pushed a simParams.yaml file for only 10 time steps but it should be 200,000 time steps to compute 80 time units of flow simulation (as it was done in Krishnan et al., 2014).
Therefore, I increase the number of time steps to 200,000.
As you suggested, I also placed a README in each snake examples as well as in the flapping-wing example to let the users know that those are long runs. (I am providing the runtime for the GPU device used.)
In those READMEs, I also mention how to change the number of time steps and the frequency of saving.
In the README of the project directory, we now provide the runtime (and the GPU used) for most examples with, again, information on how to change the number of time steps and the saving frequency.

Looks great.

authors: OSUmageed mesnardo

repo: barbagroup/cuIBM


text:
V2ray free channel

@mojiaCNF telegram

@Mji-root
Tnx 🙏🏽

authors: Mji-root barry-far


text:
404 is not displayed

When I enter something that does not exist like "https://jonlan2002.github.io/abc123" I see the 404 page of github instead of 404.md.

Just add
permalink: /404.html
to the front matter of 404.md. It should work then.

@JonLan2002 has your issue been resolved?

It works!
Thanks!

authors: JonLan2002 databhishek sreetamdas

repo: barryclark/jekyll-now


text:
Update .scope.yml

Changed depth

Seems right. Second member can merge.

Looks good


text:
hello,how can i get page thumbnail bitmap?

hello,how can i get thumbnail bitmap by page?
please tell me which class can get this function?
thank you very much!

there are several posts within the issues that explain this functionality in depth.

repo: barteksc/AndroidPdfViewer


text:
Fix oc tar extraction

Tar extraction is broken:
$ asdf install oc v3.11.0
Downloading OpenShift Client v3.11.0 from https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz to /home/user/.asdf/installs/oc/v3.11.0/bin
--2020-09-03 16:59:07--  https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/22442668/bc49e200-cd4b-11e8-867b-80841e1e238f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200903%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200903T145907Z&X-Amz-Expires=300&X-Amz-Signature=89d144587c5a9cab9d3337be97566239058a64492279040b9917f621f5bc1664&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=22442668&response-content-disposition=attachment%3B%20filename%3Dopenshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz&response-content-type=application%2Foctet-stream [following]
--2020-09-03 16:59:07--  https://github-production-release-asset-2e65be.s3.amazonaws.com/22442668/bc49e200-cd4b-11e8-867b-80841e1e238f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200903%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200903T145907Z&X-Amz-Expires=300&X-Amz-Signature=89d144587c5a9cab9d3337be97566239058a64492279040b9917f621f5bc1664&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=22442668&response-content-disposition=attachment%3B%20filename%3Dopenshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.132.123
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.132.123|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 56507103 (54M) [application/octet-stream]
Saving to: ‘/home/user/.asdf/installs/oc/v3.11.0/bin/oc-linux-64bit.tar.gz’

/home/user/.asdf/installs/oc/v3.11.0/ 100%[=====================================================================================>]  53.89M  6.45MB/s    in 8.6s

2020-09-03 16:59:16 (6.29 MB/s) - ‘/home/user/.asdf/installs/oc/v3.11.0/bin/oc-linux-64bit.tar.gz’ saved [56507103/56507103]

tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: oc: Not found in archive
tar: Exiting with failure status due to previous errors

Fortunately @orphaner already fixed this issue in his fork: https://github.com/orphaner/asdf-oc/commit/70c890473b344b1d9105fe9698db5f8b77d19ef4
Now it works:
$ asdf install oc v3.11.0
Downloading OpenShift Client v3.11.0 from https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz to /home/user/.asdf/installs/oc/v3.11.0/bin
--2020-09-03 17:07:53--  https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/22442668/bc49e200-cd4b-11e8-867b-80841e1e238f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200903%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200903T150754Z&X-Amz-Expires=300&X-Amz-Signature=faad424da9247d03412343218ba4802fda11340d1a3686431a972516dcf820d9&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=22442668&response-content-disposition=attachment%3B%20filename%3Dopenshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz&response-content-type=application%2Foctet-stream [following]
--2020-09-03 17:07:54--  https://github-production-release-asset-2e65be.s3.amazonaws.com/22442668/bc49e200-cd4b-11e8-867b-80841e1e238f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200903%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200903T150754Z&X-Amz-Expires=300&X-Amz-Signature=faad424da9247d03412343218ba4802fda11340d1a3686431a972516dcf820d9&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=22442668&response-content-disposition=attachment%3B%20filename%3Dopenshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.227.72
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.227.72|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 56507103 (54M) [application/octet-stream]
Saving to: ‘/home/user/.asdf/installs/oc/v3.11.0/bin/oc-linux-64bit.tar.gz’

/home/user/.asdf/installs/oc/v3.11.0/ 100%[=====================================================================================>]  53.89M  11.9MB/s    in 5.5s

2020-09-03 17:08:00 (9.72 MB/s) - ‘/home/user/.asdf/installs/oc/v3.11.0/bin/oc-linux-64bit.tar.gz’ saved [56507103/56507103]

tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit/oc
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'

Now it would be nice to see this fix merged into this repository.
Thanks and regards,
Philip

Just found out this PR only fixes oc v3.X installations but breaks oc v4.X installations...
# Works for v4.5.7:
        cd ${path} && tar xzfv ${path}/${binary} oc && cd -

# Works for v3.11.0:
        cd ${path} && tar xzfv ${path}/${binary} --wildcards --no-anchored '**/oc' --strip 1 && cd -

@bartoszmajsak I now fixed the installation of oc version v3* and v4* binaries in https://github.com/PhilipSchmid/asdf-oc/commit/42fc724fb85fa2c090d4f9c686ab495748aa29ea. I tested it using the following commands:
$ asdf install oc v3.11.0
$ asdf install oc v4.5.7
$ asdf global oc v4.5.7
$ oc version
Client Version: 4.5.7
$ asdf global oc v3.11.0
$ oc version
oc v3.11.0+0cbc58b
kubernetes v1.11.0+d4cacc0

It would be nice to see this PR merged as soon as possible :).
Thanks & regards,
Philip

repo: bartoszmajsak/asdf-oc


text:
FR: Support for radio buttons

Hi there. In addition to the checkbox option that swiftDialog already supports, I'd like to see an option for radio buttons.
Although probably less commonly used than checkboxes, radio buttons have their uses when you want to present a list of mutually exclusive options to a user, so only one of the items can be selected, not multiples.
Some other dialoging tools out there support this, and I'd like to see it be an option with swiftDialog too, it at all possible.

BTW, I just wanted to mention that I'm aware that a selectable list is an alternative to radio buttons, since list selections are also mutually exclusive.
However, for some scenarios, using radio buttons seems more efficient and easier. For example, if you only need to present 2 - 3 choices, using a selection list seems like overkill. I'd prefer to leave those lists for larger numbers of choices.

yeah, that's a fair assessment. As far as implementation is concerned, the dropdown and radio buttons are the same code just with a different style attached to it. Will add this as a FR for 1.11

Closing this one off - radio buttons were added as a subset of select lists in v2.2 https://github.com/bartreardon/swiftDialog/wiki/Select-Lists-and-Radio-Buttons

repo: bartreardon/swiftDialog


text:
Enable snap sync

https://github.com/ethereum-optimism/optimism/pull/6243#issuecomment-1784396213
Base nodes would be able to sync much quicker with snap sync but seems like it is disabled by default https://github.com/base-org/node/blob/main/geth-entrypoint#L62.
Also, it should have bootnodes for op-geth to connect each other.

Snap sync has yet to be sufficiently tested for op chains which is why it's disabled for now. Would be good to get it tested and activated however.

@roberto-bayardo Could you enable --state.scheme=path option for op-geth? It will reduce disk usage by more than 50% with my benchmarks

looking forward to enabling path-based state db as well when it's more battle tested. geth team recommends leaving it disabled for lower risk profile for the time being.

@kaliubuntu0206 Are there any updates about full mode snapshot or snap sync?

repo: base-org/node


text:
Error when building smartftp template

$ ./dist/cli.js -s gooey -t smartftp -b dark

Unexpected error: {"name":"Template render error"}
undefined

When building the smartftp template, I get an error. The template is clearly malformed. @aloisdg, might you know what the problem here is?

I just looked. I didnt see any problem with smartftp's templates.

@aloisdg I haven't had time to look into it properly. I just know that when I run the above command, I get an error :confused:
Let me know what you find. If it's not a problem with the template, it could be a problem with my code. Thank you :smile:!!

I know that if you remove expresions like this one:
base["05"]["hex"].match(/.{2}/g).reverse().join('')

... The template doesn't cause an error.
I'm not sure why expressions like that one are causing Nunjucks to chuck a wobbly because it's valid JavaScript:
> const color = "#ffffff"
undefined
> color
'#ffffff'
> color.match(/.{2}/g)
[ '#f', 'ff', 'ff' ]
> color.match(/.{2}/g).reverse()
[ 'ff', 'ff', '#f' ]
> color.match(/.{2}/g).reverse().join()
'ff,ff,#f'
>

If the bug come from nunjucks, we should open an issue in their repository.
While there isn't a fix from them or us, we should move smartftp in a separate 'fix-smartftp' branch.

If the bug come from nunjucks, we should open an issue in their repository.

If I'm honest, I doubt it's a problem with Nunjucks.

While there isn't a fix from them or us, we should move smartftp in a separate 'fix-smartftp' branch.

I agree but it'll probably be quicker to just fix the bug. I won't have time to do either until tomorrow.

So, I did some experimentation and it turns out you Nunjucks won't evaluate arbitary expressions like base["05"]["hex"].match(/.{2}/g).... It'll only evaluate simple expressions like 1 + 1.
Aside from basic expressions, Nunjucks will only interpret pre-defined filters. For example, you cannot write {{ "HI".toLowerCase }} - that would cause a "Template render error"  - but you can write {{ "HI" | lower }}.
This is a big problem. If we're lucky, Swig - which has almost identical syntax to Nunjucks - will work. If it does, we can swap Nunjucks for Swig easily. If not, all of the templates will need converting to work with EJS or something which is a big job. Another option would be to write our own mini template engine -- that is feasible,  but that is just as much work, if not more.

I just tried and Swig doesn't support this.

If we use ejs, we are almost compatible with the old project. This is nice. We have to move from ruby to js, but for most templates we just have to remove the @ before base.

@aloisdg Would you be willing to write a small script to do that if I change the core?

@alexbooker Sure, but I dont now when. I still dont have my computer and I am still traveling.

@alexbooker Sure, but I dont now when. I still dont have my computer and I am still traveling.

@aloisdg :smile: :+1:

This is fixed now.

authors: alexbooker aloisdg


text:
use otp 18,  there is a warning in the  decode_extensions function

decode_extensions(Types, [{Fnum, Bytes} | Tail], Acc) ->
    NewAcc = case lists:keyfind(Fnum, 1, Types) of
	       {Fnum, Name, Type, Opts} ->
		   {Value1, Rest1} = case lists:member(is_record, Opts) of
				       true ->
					   {{FNum, V}, R} =
					       protobuffs:decode(Bytes, bytes),
					   RecVal = decode(Type, V),
					   {RecVal, R};
				       false ->
					   case lists:member(repeated_packed,
							     Opts)
					       of
					     true ->
						 {{FNum, V}, R} =
						     protobuffs:decode_packed(Bytes,
									      Type),
						 {V, R};
					     false ->
						 {{FNum, V}, R} =
						     protobuffs:decode(Bytes,
								       Type),
						 {unpack_value(V, Type), R}
					   end
				     end,
		   case lists:member(repeated, Opts) of
		     true ->
			 case lists:keytake(FNum, 1, Acc) of
			   {value, {FNum, Name, List}, Acc1} ->  %% use opt 18, there is a warning on this line,use otp 17, there is no warning.
			       decode(Rest1, Types,
				      [{FNum, Name,
					lists:reverse([int_to_enum(Type, Value1)
						       | lists:reverse(List)])}
				       | Acc1]);
			   false ->
			       decode(Rest1, Types,
				      [{FNum, Name, [int_to_enum(Type, Value1)]}
				       | Acc])
			 end;
		     false ->
			 [{Fnum,
			   {optional, int_to_enum(Type, Value1), Type, Opts}}
			  | Acc]
		   end;
	       false -> [{Fnum, Bytes} | Acc]
	     end,
    decode_extensions(Types, Tail, NewAcc).

Fixed by https://github.com/basho/erlang_protobuffs/pull/88 - can we merge that pull request? PLEAZE

Thank you @binarytemple I just merged #89

authors: 3tgame binarytemple lukebakken


text:
Review Amazon S3 bucket permissions and settings

e.g. Cloudfront

review netlify stuffs too

authors: basilleaf mattb

repo: basilleaf/luti


text:
🛑 SAT - Portal CFDI is down

In d95b333, SAT - Portal CFDI (https://portalcfdi.facturaelectronica.sat.gob.mx) was down:

HTTP code: 503
Response time: 163 ms

Resolved: SAT - Portal CFDI is back up in 3ecd47c after 10 minutes.

repo: batnieluyo/sat-monitor


text:
Fix scrimmage history refresh

Resolve #452

Sorry, forgot to stage a change

repo: battlecode/galaxy


text:
[Suggestion] Escape single quotes for ffmpeg

Hi, I'm using this package to train a model on a large media library. I've modified things to suit my use case but wanted to suggest that single quotes be escaped in the master branch.
A huge number of my files have single quotes in the name and it seems like a fairly simple change.  I simply add this to my path strings and the subtitle and audio extraction scripts complete successfully.
.replace("'",  r"'\''")
Hopefully we can incorporate it in the main branch and help out others who might have a lot of apostrophes in their file names! Great work by the way :)

Hi @albeltra, Thanks for your suggestion. The master branch should now be able to handle your case. Please give it a go.

Sorry didn't get around to testing things until today! I tried out the change but am getting "No such file or directory" from ffpmeg when I tried extracting subtitles. The media file title is:
/tv/7th Heaven/S01/7th Heaven_S01E21_Dangerous Liaisons.mp4
I'm guessing your proposed change works for single quotes but then creates issues for spaces. If I replace your change in the "double_quoted" function with my previous
.replace("'",  r"'\''")
the same call on that file name ^ works.
Honestly quoting in shlex is a little hard for me to understand so I'm not great help.

Hi, are you using the CLI or the API? You can always quote (single/double) the path when executing the command. The following works for me on my machine:
subaligner_train -vd '/tv/7th Heaven/S01/' ...
BTW, I did test your suggested change before making the fix but found it does not cover the case where filenames contain double quotes. And yes, shlex could be a more general solution.

Issue closed with no recent activity and please feel free to reopen it if you continue experiencing the problem with the quoting feature.

authors: albeltra baxtree

repo: baxtree/subaligner


text:
Viewer becomes unresponsive after a little bit of interaction

Maybe to reproduce:

Work a bit on the viewer of any antibody
Click on the AP=0 worst antibody
Click on, e.g., show ground truth => Nothing happens

This still happens.
I will try to debug it, and I will come back.
Reproducing it, we currently have a ValueError:
Uncaught (in promise) PythonError: Traceback (most recent call last):
  File "/lib/python3.10/asyncio/futures.py", line 201, in result
    raise self._exception
  File "/lib/python3.10/asyncio/tasks.py", line 232, in __step
    result = coro.send(None)
  File "/lib/python3.10/_pyodide/_base.py", line 532, in eval_code_async
    await CodeRunner(
  File "/lib/python3.10/_pyodide/_base.py", line 355, in run_async
    coroutine = eval(self.code, globals, locals)
  File "<exec>", line 4, in <module>
  File "/lib/python3.10/site-packages/bokeh/document/document.py", line 391, in apply_json_patch
    DocumentPatchedEvent.handle_json(self, event_json, references, setter)
  File "/lib/python3.10/site-packages/bokeh/document/events.py", line 259, in handle_json
    handler(doc, event_json, references, setter)
  File "/lib/python3.10/site-packages/bokeh/document/events.py", line 300, in _handle_json
    cb(event_json["msg_data"])
  File "/lib/python3.10/site-packages/bokeh/document/callbacks.py", line 355, in trigger_json_event
    model._trigger_event(event)
  File "/lib/python3.10/site-packages/bokeh/util/callback_manager.py", line 119, in _trigger_event
    self.document.callbacks.notify_event(cast(Model, self), event, invoke)
  File "/lib/python3.10/site-packages/bokeh/document/callbacks.py", line 247, in notify_event
    invoke_with_curdoc(doc, callback_invoker)
  File "/lib/python3.10/site-packages/bokeh/document/callbacks.py", line 408, in invoke_with_curdoc
    return f()
  File "/lib/python3.10/site-packages/bokeh/util/callback_manager.py", line 115, in invoke
    cast(EventCallbackWithEvent, callback)(event)
  File "/lib/python3.10/site-packages/panel/reactive.py", line 426, in _server_event
    self._comm_event(doc, event)
  File "/lib/python3.10/site-packages/panel/reactive.py", line 413, in _comm_event
    state._handle_exception(e)
  File "/lib/python3.10/site-packages/panel/io/state.py", line 408, in _handle_exception
    raise exception
  File "/lib/python3.10/site-packages/panel/reactive.py", line 411, in _comm_event
    self._process_bokeh_event(doc, event)
  File "/lib/python3.10/site-packages/panel/reactive.py", line 348, in _process_bokeh_event
    self._process_event(event)
  File "/lib/python3.10/site-packages/panel/widgets/button.py", line 184, in _process_event
    self.clicks += 1
  File "/lib/python3.10/site-packages/param/parameterized.py", line 367, in _f
    instance_param.__set__(obj, val)
  File "/lib/python3.10/site-packages/param/parameterized.py", line 369, in _f
    return f(self, obj, val)
  File "/lib/python3.10/site-packages/param/__init__.py", line 625, in __set__
    super(Dynamic,self).__set__(obj,val)
  File "/lib/python3.10/site-packages/param/parameterized.py", line 369, in _f
    return f(self, obj, val)
  File "/lib/python3.10/site-packages/param/parameterized.py", line 1252, in __set__
    obj.param._call_watcher(watcher, event)
  File "/lib/python3.10/site-packages/param/parameterized.py", line 2043, in _call_watcher
    self_._execute_watcher(watcher, (event,))
  File "/lib/python3.10/site-packages/param/parameterized.py", line 2025, in _execute_watcher
    watcher.fn(*args, **kwargs)
  File "/lib/python3.10/site-packages/panel/param.py", line 506, in action
    value(self.object)
  File "<exec>", line 235, in _action_show_model_x_ground_truth_diff
  File "<exec>", line 522, in color
  File "/lib/python3.10/site-packages/param/parameterized.py", line 367, in _f
    instance_param.__set__(obj, val)
  File "/lib/python3.10/site-packages/param/parameterized.py", line 369, in _f
    return f(self, obj, val)
  File "/lib/python3.10/site-packages/param/parameterized.py", line 1252, in __set__
    obj.param._call_watcher(watcher, event)
  File "/lib/python3.10/site-packages/param/parameterized.py", line 2043, in _call_watcher
    self_._execute_watcher(watcher, (event,))
  File "/lib/python3.10/site-packages/param/parameterized.py", line 2025, in _execute_watcher
    watcher.fn(*args, **kwargs)
  File "/lib/python3.10/site-packages/panel/reactive.py", line 308, in _param_change
    self._apply_update(named_events, msg, model, ref)
  File "/lib/python3.10/site-packages/panel/reactive.py", line 240, in _apply_update
    self._update_model(events, msg, root, model, doc, comm)
  File "/lib/python3.10/site-packages/panel/reactive.py", line 1772, in _update_model
    self._set_on_model(data_msg, root, model.data)
  File "/lib/python3.10/site-packages/panel/reactive.py", line 1727, in _set_on_model
    model.update(**msg)
  File "/lib/python3.10/site-packages/bokeh/core/has_props.py", line 413, in update
    setattr(self, k, v)
  File "/lib/python3.10/site-packages/bokeh/core/has_props.py", line 226, in __setattr__
    return super().__setattr__(name, value)
  File "/lib/python3.10/site-packages/bokeh/core/property/descriptors.py", line 285, in __set__
    self._set(obj, old, value, setter=setter)
  File "/lib/python3.10/site-packages/bokeh/core/property/descriptors.py", line 559, in _set
    self._trigger(obj, old, value, hint=hint, setter=setter)
  File "/lib/python3.10/site-packages/bokeh/core/property/descriptors.py", line 637, in _trigger
    obj.trigger(self.name, old, value, hint, setter)
  File "/lib/python3.10/site-packages/bokeh/model/model.py", line 567, in trigger
    super().trigger(descriptor.name, old, new, hint=hint, setter=setter)
  File "/lib/python3.10/site-packages/bokeh/util/callback_manager.py", line 194, in trigger
    self.document.callbacks.notify_change(cast(Model, self), attr, old, new, hint, setter, invoke)
  File "/lib/python3.10/site-packages/bokeh/document/callbacks.py", line 236, in notify_change
    self.trigger_on_change(event)
  File "/lib/python3.10/site-packages/bokeh/document/callbacks.py", line 378, in trigger_on_change
    invoke_with_curdoc(doc, invoke_callbacks)
  File "/lib/python3.10/site-packages/bokeh/document/callbacks.py", line 408, in invoke_with_curdoc
    return f()
  File "/lib/python3.10/site-packages/bokeh/document/callbacks.py", line 377, in invoke_callbacks
    cb(event)
  File "/lib/python3.10/site-packages/panel/io/pyodide.py", line 223, in pysync
    json_patch, buffers = process_document_events([event], use_buffers=True)
  File "/lib/python3.10/site-packages/bokeh/protocol/messages/patch_doc.py", line 144, in process_document_events
    return serialize_json(json), buffers or []
  File "/lib/python3.10/site-packages/bokeh/core/json_encoder.py", line 171, in serialize_json
    return json.dumps(obj, cls=BokehJSONEncoder, allow_nan=False, indent=indent, separators=separators, sort_keys=True, **kwargs)
  File "/lib/python3.10/json/__init__.py", line 238, in dumps
    **kw).encode(obj)
  File "/lib/python3.10/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/lib/python3.10/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
ValueError: Out of range float values are not JSON compliant

    at new_error (pyodide.asm.js:10:180819)
    at pyodide.asm.wasm:0xe78a8
    at pyodide.asm.wasm:0xee969
    at method_call_trampoline (pyodide.asm.js:10:230214)
    at pyodide.asm.wasm:0x131392
    at pyodide.asm.wasm:0x20245a
    at pyodide.asm.wasm:0x16ca8f
    at pyodide.asm.wasm:0x1318a6
    at pyodide.asm.wasm:0x1319a0
    at pyodide.asm.wasm:0x131a43
    at pyodide.asm.wasm:0x1eb761
    at pyodide.asm.wasm:0x1e5790
    at pyodide.asm.wasm:0x131a86
    at pyodide.asm.wasm:0x1ed543
    at pyodide.asm.wasm:0x1eb1a3
    at pyodide.asm.wasm:0x1e5790
    at pyodide.asm.wasm:0x131a86
    at pyodide.asm.wasm:0xee1a0
    at pyodide.asm.wasm:0xee041
    at Module.callPyObjectKwargs (pyodide.asm.js:10:123403)
    at Module.callPyObject (pyodide.asm.js:10:123781)
    at wrapper (pyodide.asm.js:10:220254)

I think that this happened because AP was returning -0.0 (now it's getting set to return 0.0 in scikit-learn: https://github.com/scikit-learn/scikit-learn/issues/24381). Unfortunately, I did not handle the case when the benchmark file was saved.
It happens for only 1 heavy chain and 2 light chains where there is no positive. I will fix the file in the main branch and close or re-debug if necessary.

authors: CrisSherban sdvillal


text:
error setting higher file descriptor limit for this process: invalid argument

getting:
error setting higher file descriptor limit for this process: invalid argument
when running ibazel.
Have to run ulimit -n 10000 manually.
macosx

@bugzpodder could you tell me the OS, OS version and iBazel version you're running?

iBazel - Version v0.10.2
macos mojave 10.14.6
go 1.12.1
Seem to be related to https://github.com/golang/go/issues/30401

repo: bazelbuild/bazel-watcher


text:
Build fails on python and scala plugins checksum

lastest master build fails on
ERROR: /home/builduser/workspace/intellij-plugins-ci/intellij-check-and-notify-plugins-state/intellij/third_party/python/BUILD:7:13: //third_party/python:python_internal depends on @python_2020_1//:python in repository @python_2020_1 which failed to fetch. no such package '@python_2020_1//': java.io.IOException: Error downloading [https://plugins.jetbrains.com/files/7322/88054/python-ce-201.7846.93.zip] to /home/builduser/.cache/bazel/_bazel_builduser/1c03a469a8e977776a02273bfa495afd/external/python_2020_1/python-ce-201.7846.93.zip: Checksum was 648438d26e85072f90a62f9f5b9f9b983a49f3cb752e87d01f915cb6a03644b9 but wanted a3d7217794619dfa0432d922218dd875f49658939c6e5a54c01f99b333d35e12
and
Error in download_and_extract: java.io.IOException: Error downloading [https://plugins.jetbrains.com/files/1347/76628/scala-intellij-bin-2020.1.7.zip] to /home/builduser/.cache/bazel/_bazel_builduser/1c03a469a8e977776a02273bfa495afd/external/scala_2020_1/scala-intellij-bin-2020.1.7.zip: Checksum was 626b9c9bc2f90d64498524bd7138558edacf50bbc72a02f882401118a1fc1403 but wanted bbc019e7cde3baf21b11f0abde21f42d4606ca5ca9100b3bdace3292f70cceef
I've checked the real checksum and it's 648438d26e85072f90a62f9f5b9f9b983a49f3cb752e87d01f915cb6a03644b9. I guess CI here doesn't fail because it uses some kind of repository cache and takes the entry for a3d7217794619dfa0432d922218dd875f49658939c6e5a54c01f99b333d35e12

latest release tag also fails with the same.

Ran into this, too, and was able to quickly apply your PR as a fix to my repo of workarounds. Thank you!

The problem I guess is with Jetbrrains...
Why do they change the content of URL https://plugins.jetbrains.com/files/7322/88054/python-ce-201.7846.93.zip after it was posted?
I wonder if we can open an issue there... I'd expect new URL for different content.

Opened this - https://intellij-support.jetbrains.com/hc/en-us/community/posts/360010424020-Consistent-files-in-plugin-repository

This happened to due signing all plugins https://blog.jetbrains.com/platform/2020/09/plugin-signing-in-marketplace/
https://twitter.com/JBPlatform/status/1356164386944135172?s=20
There are no plans/reasons for this occur again in the nearest future.
New plugin are signed during the upload process, so they will differ from the original uploaded file.

Yann, thanks for the clarification. We had been wondering about the changed checksums and had hoped that adjusting them wouldn't be necessary again in the future.
Or, thanks for raising this issue and providing a fix. The CI just runs on newer IntelliJ versions and I guess that's why we haven't noticed it. In the last weeks, we fixed the checksums for the 2020.2 and 2020.3 plugins. I imported your PR to our internal source of truth (re-exported as #2371) so that the build will be also fixed for 2020.1.

Closing this issue as #2371 was merged.

authors: YannCebron alice-ks cgruber cpsauer or-shachar

repo: bazelbuild/intellij


text:
refactor the _compile function

The goal here is to produce a skylark function we can call to compile source or source jars. The first step is to stop getting all the arguments implicitly from the ctx which implies that they were set up by a rule.
Instead, we want to have a function we could call inside any other rule, which may not have the right attrs or files.
This does not get all the way there, maybe halfway, but I'd rather send the PR.

@ittaiz @ianoc can you take a look?


text:
[Fix #3450] Prevent Style/TernaryParentheses from making unsafe corrections

This cop, when configured to omit parentheses, would remove them even when the condition contained an unparenthesized method call, e.g.:
foo = (bar? baz) ? 'Yes' : 'No'

which would change the semantics of the expression. This change fixes that.
I also discovered that a #defined? call is parsed as a special node type (defined?) rather than as a send.

I also discovered that a #defined? call is parsed as a special node type (defined?) rather than as a send.

defined? is a Ruby keyword.

authors: Drenmi bbatsov

repo: bbatsov/rubocop