Front door routing rule caching disabled option unavailable

While creating routing rule through Az CLI, by default caching is enabled and there is no parameter to disable that. Can someone guide me through this?

@kaushik-hemant, Thank you for your feedback! Since this channel is for driving improvements towards MS Docs, could you provide the URL of the specific documentation that your feedback is applicable to? That way, we are able to make sure your feedback is addressed by the right team.

https://docs.microsoft.com/en-us/cli/azure/ext/front-door/network/front-door/routing-rule?view=azure-cli-latest#ext-front-door-az-network-front-door-routing-rule-create

@kaushik-hemant, The document was updated with the caching parameter. You can enable or disable caching here using,
[--caching {Disabled, Enabled}]
We are closing this issue for now. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.

Perfect, thanks, make more sense rather than check for providing configuration or not.


Convert distance (Euclidean) to similarity score

How I can convert distance (Euclidean) to similarity score?

how i did
the account below generates a negative result, so I transform it into a string and then remove the negative sign, but this can shed some light on the solution, for me this resolves to display the result in percentage
bestMatch._distance * 10)*10)-100)
if(bestMatch._distance<=0.35){
let resultado=(((bestMatch._distance.toFixed(2)* 10)*10)-100)
let resul = resultado.toString()
            verificado.setAttribute("class", "greenclass")
            verificado.innerText = "A mesma pessoa \n   \n"+ resul.replace('-', '') +'%'
            verificado.removeAttribute("disabled")
           }


[Feature Request] Allow weapons to consume themselves

At the moment weapons cannot consume themselves, it would be nice if they could. In general it would be nice if any item type could consume itself.

Is there a use case for this besides thrown weapons?

Is there a use case for this besides thrown weapons?

For now, the only other item type I can think of are charms - those should also be able to consume themselves once their charges are used up.


Potential stack buffer overflow in _withFixedCharBuffer

In _withFixedCharBuffer helper, we allocate a buffer with the requested size + 1 (for null-termination). With the assumption that the closure's return value len <= the requested size, the null-terminated character should be on index len, not len + 1.
Fixes rdar://129154192

@swift-ci please test


sbom regex not finding applicable file in the release.

Hi there.
I'm trying to get SBOM detection working for clomonitor on my repo. I have a local checkout of it.
GITHUB_TOKEN='...' clomonitor-linter --path . --url https://github.com/open-feature/open-feature-operator --check-set code

It currently returns a 99 with 1 point off for SBOM.
As you can see in https://github.com/open-feature/open-feature-operator/releases/tag/v0.2.15, we do have an sbom file titled open-feature-operator-sbom.spdx.json. According to the regex in the docs this should work. I've also confirmed with this rust regex library: https://rustexp.lpil.uk/
Please advise. :)

The website has since updated to show 100%. Is there caching with the CLI tool?

Hi @justinabrahms 👋
We recently fixed an issue (#656) that may be related to this. If you installed the CLI tool before that issue's date, could you please try installing it again and retrying?
I've just tested it locally and it works fine for me, so hopefully it's just that 🙂

I've confirmed this works as of the latest version.


Corrects a typo: sever -> server

@exchange12rocks - good catch, thanks for fix, much appreciated!


Footer gradient

production:

beta:

it should overflow
the stroke seems to be stacked on top and its creating double stroke.

👋

Related?

#4855


Lightbox fixes, carousel fix, themes cleanup.

This fix

lightbox issues:

lightbox_open event (it triggered on on each image displayed in lightbox)
resolves #320

lightbox close button (was not accesible)
resolves #318  resolves #405

lightbox toggles "iframe" class (even if showing only images)
resolves #319

carousel
carousel remained moved on some situations (on resize, /f.ex. enter fullscreen/, when switched to no-carousel), so some images were hidden. this is fixed

themes
some minor typos

Looks fine for me for following items: #318, #405 and #319
These are really anoying issues.
Could not completly verify for #320


[utility] Simplify enabling 'diff' color conditions in wrapper function

Nested if can be removed for simple cases like these.

This was originally left in because there were multiple options for getting the colored diffs. Would it make more sense to make it a simple alias, similar to df?

That's a good point, we can make it an alias. However, we'll lose completion for colordiff (unless we have a wrapper completion function _colordiff).
FWIW, As we saw elsewhere, we cannot simply use compdef _diff colordiff in utility module because compinit happens later in completion module which in turn is loaded after utility module.

Let me think of other ways.

For one we can probably use legacy compctl, but it might not be ideal for prezto (as we always use the new completion style). Also, _foo will win over compctl style by default anyway.
Another option could be introduce an array of helper functions that can be tried based of user  configurable zstyle (say zstyle ':prezto:module:utility:diff' helper foo bar).

Not sure why I delayed merging this... thanks for submitting it!


ddb importer should require dnd5e system

Just a suggestion that you should make it require the dnd5e system in your manifest
https://foundryvtt.com/article/module-development/ (scroll down to system under Optional Manifest Attributes)

Thanks, i'll get this added!


Incorrect response when option origin is true and requestOrigin is undefined

For an app requesting data using the relative URL /api/data using this method :
const response = await fetch(`/api/data?locale=${locale}`, {
   credentials: 'same-origin',
   method: 'GET',
   headers: {
      'Accept': 'application/json',
   }
});
const data = await response.json();

And an API route handled this way :
export default apiMiddleware(async (req, res) => {
   // ... code here
});

With the apiMiddleware defined this way :
import Cors from 'cors';

const originWhitelist = [ /* ... list of valid origins */ ];

// Initializing the cors middleware
const cors = Cors({
   methods: ['GET', 'POST', 'HEAD'],
   allowedHeaders: 'X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version, X-Api-Authorize, X-Authorize, Origin',
   credentials: true,
   origin: (origin, callback) => {
      // NOTE : origin may be undefined for relative URLs
      if (!origin || originWhitelist.indexOf(origin) !== -1) {
         callback(null, true);
      } else {
         callback(new Error('Not allowed by CORS'))
      }
   },
   optionsSuccessStatus: 200 // some legacy browsers (IE11, various SmartTVs) choke on 204
});

export const apiMiddleware = handler => async (req, res) => {
   await cors(req, res, (result) => {
      if (result instanceof Error) {
         reject(result);
      } else {
         resolve();
      }
   });

   // ... extend req with utils

   return handler(req, res);
};

The origin function will receive undefined as request origin, so even if the returned value is true (i.e. accept the request), the resposne will be handled like this :
https://github.com/expressjs/cors/blob/f038e7722838fd83935674aa8c5bf452766741fb/lib/index.js#L58-L67
The line 62 will actually resolve like this :
      isAllowed = isOriginAllowed(requestOrigin, options.origin);
      // reflect origin
      headers.push([{
        key: 'Access-Control-Allow-Origin',
        value: isAllowed ? undefined : false              // <---- undefined
      }]);
      headers.push([{
        key: 'Vary',
        value: 'Origin'
      }]);

Which will not send the Access-Control-Allow-Origin header to the client.
A fix could be to send "*" as default origin :
      isAllowed = isOriginAllowed(requestOrigin, options.origin);
      // reflect origin
      headers.push([{
        key: 'Access-Control-Allow-Origin',
        value: isAllowed ? requestOrigin || "*" : false         // <---- defaults to "*" if undefined
      }]);
      headers.push([{
        key: 'Vary',
        value: 'Origin'
      }]);

Hello, and thank you for your issue. A request without an origin requeat header is not a cors request at all, and thus no cors response headers are necessary. This follows the cors specification.

Sorry, I may have misread your issue. I will need to check it out. Can you please include complete code and complete way to reproduce? I was not sure how to assemble the procided code snipplets into a running app to reproduce your issue. Ideally please provide the following so I can take a look:

Complete server code I can copy and paste and run without modification
Complete client side code for the same
Versions of things like node.js ans this module
Instructions for how to reproduce

Thank you and sorry about the initial response!

Thank you for the consideration. I will have to collect more data myself because I get these reports from users but cannot reproduce myself. However this seems to be the source of the problem; a missing Access-Control-Allow-Origin header :

I will do my best to provide you with either a reproducible example, or a withdrawal of this issue.


Stamp Swift binaries with the language's major/minor version

This will be cross-checked with SwiftRemoteMirror's version
compatibility, although this could potentially be used for
other things.
rdar://problem/25559468

@swift-ci Please test

Does it make sense to use the language major/minor version, or a version number tied to the reflection protocol?
I guess we can always change it later (by making the first protocol version that's independent the same as the previous language version).

Yeah after talking about it some more I think it makes sense to decouple it, since there may be language version bumps without changes to the reflection metadata.

This should either be a separate number for the reflection protocol, or it should use the same number that we already emit for the ABI.
I think the only reason to emit the "marketing" number of Swift X.Y would be to present nicer errors somewhere without hardcoding marketing numbers into tools, like "foo.o (built with Swift 2.2) is incompatible with bar.o (built with Swift 3.3)".

Yes, totally agree.

@swift-ci Please smoke test

@swift-ci Please smoke test

Unrelated failure on Linux.


update(registry): add signature info for all official plugins

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area registry

What this PR does / why we need it:
As per title, since the previous change worked fine :)
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: LucaGuerra
Once this PR has been reviewed and has the lgtm label, please assign leogr for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jasondellaluce, LucaGuerra
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jasondellaluce]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: fff60054e9ba51930f5b0028bfba13aec26df475


feat(rp): Added flags to enable/disable portals

Added properties to enable/disable legacy and developer portals.
ARM API Information (Control Plane)
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Azure 1st Party Service can try out the Shift Left experience to initiate API design review from ADO code repo.  If you are interested, may request engineering support by filling in with the form https://aka.ms/ShiftLeftSupportForm.
Changelog
Add a changelog entry for this PR by answering the following questions:

What's the purpose of the update?

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

When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
By default, Azure SDKs of all languages (.NET/Python/Java/JavaScript for both management-plane SDK and data-plane SDK, Go for management-plane SDK only ) MUST be refreshed with/after swagger of new version is published. If you prefer NOT to refresh any specific SDK language upon swagger updates in the current PR, please leave details with justification here.

Contribution checklist (MS Employees Only):

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

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

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

Change to data plane APIs
Adding new properties
All removals

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

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

Adding a new service
Adding new API(s)
Adding a new API version
-[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits. You can use OpenAPIHub to initialize the PR for adding a new version. For more details refer to the wiki.

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

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

Breaking Change Review Checklist
If you have any breaking changes as defined in the Breaking Change Policy, request approval from the Breaking Change Review Board.
Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Additional details on the process and office hours are on the Breaking Change Wiki.
NOTE: To update API(s) in public preview for over 1 year (refer to Retirement of Previews)
Please follow the link to find more details on PR review process.

@harunrst please refer to this warning and update spec.
https://github.com/Azure/azure-rest-api-specs/pull/23799/checks?check_run_id=13197927447
Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
Location: Microsoft.ApiManagement/preview/2023-03-01-preview/apimdeployment.json#L1623

@harunrst please refer to this warning and update spec.
https://github.com/Azure/azure-rest-api-specs/pull/23799/checks?check_run_id=13197927447
Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum. Location: Microsoft.ApiManagement/preview/2023-03-01-preview/apimdeployment.json#L1623

@solankisamir hey, thanks for noticing. It seems correct with booleans, we don't have and we won't need any other options for these states of portals.


How to use optional HTTP URL parameters.

I try to use different versions of using this params in prometheus.yml and it is not working for me :(
My prometheus.yml looks like:
global:
  scrape_interval:     1s # By default, scrape targets every 15 seconds.
  evaluation_interval: 1s # By default, scrape targets every 15 seconds.
  # scrape_timeout is set to the global default (10s).

  # Attach these labels to any time series or alerts when communicating with
  # external systems (federation, remote storage, Alertmanager).
  external_labels:
    monitor: 'codelab-monitor'

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: 'example-random'
    metrics_path: /api/metrics
    params:
      format: 'prometheus'
    # Override the global default and scrape targets from this job every 5 seconds.
    scrape_interval: 1s
    scrape_timeout: 1s

    target_groups:
      - targets: ['localhost:3000']
        labels:
          group: 'production'

Also I can't find any tests.
# Optional HTTP URL parameters.
params:
  [ <string>: [<string>, ...] ]

I see only this error:
➜  prometheus-0.17.0rc2.darwin-amd64  ./prometheus -config.file=/Users/andrii/workspace/demon/prometheus/prometheus.yml -log.level "error"
prometheus, version 0.17.0rc2 (branch: release-0.17, revision: 667c221)
  build user:       fabianreinartz@macpro
  build date:       20160205-13:34:21
  go version:       1.5.3
ERRO[0000] Couldn't load configuration (-config.file=/Users/andrii/workspace/demon/prometheus/prometheus.yml): yaml: unmarshal errors:
  line 18: cannot unmarshal !!str `prometheus` into []string  source=main.go:213

Do you have ideas how to fix it?

Params is a list, so do
 params:
      format: ['prometheus']

Thanks!

@brian-brazil Does it equivalent to http://localhost:3000/api/metrics?format=prometheus?

Yes, that's what it does,

Also prometheus does Content-Type negotiation, so you may want to consider using that.

Yep, Prometheus currently sends this Accept header to any target it scrapes:
Accept: application/vnd.google.protobuf;proto=io.prometheus.client.MetricFamily;encoding=delimited;q=0.7,text/plain;version=0.0.4;q=0.3,application/json;schema="prometheus/telemetry";version=0.0.2;q=0.2,*/*;q=0.1

That's maybe a better way of determining the format to serve.

Brian
Is it possible to have different params or metric_path per host?
file_sd_configs:
  - files:
    - prom/*.json

Then have the following JSON file
[
  {
    "targets": [ "localhost:3333" ],
    "metrics_path":"/metrics/a3-1",
    "labels": {
      "customer": "Customer 1",
      "location": "Container 1",
      "job": "Antminers"
    },
    "basic_auth": {
      "username": "user",
      "password": "pass"
    },
    "params": {
      "format": ["test"]
    }
  }
]

The devices I need to monitor cannot have a /metrics installed, so I wrote a "proxy" web service that would need the host name as a param. What can I do to support this use case if params don't work this way?

@paixaop You can set the metrics path and HTTP params via the __metrics_path__ and __params_<paramname>__ meta labels, but setting authentication details per target in this way is not supported (one reason being that it could be dangerous for auth data to be part of SD).

Quick correction on that one for other folks that may find this via Google:
The meta label for params is __param_<paramname>


Use "main"

Hi,
In order to unit test the JNI I would like to compile and run it using the main function, are you able to use it for testing? How can this be done? I also noticed the mobile/main.cpp under caffe, what is the purpose of that testing?
Thanks

mobile/main.cpp is for desktop debugging.
For mobile debugging, please follow the steps below:

toggle the comments in these two lines, then re-build for the executable.
push it into /data/local/tmp
chmod 755 /data/local/tmp/<executable>
export LD_LIBRARY_PATH=<lib path>:$LD_LIBRARY_PATH
run...


Update README.md

I have updated the description in the README file.

In this branch, I have added a middle section of the mobile webpage.
I have imported images that I am using in this branch.
I have edited the html file and css file.


Uncaught TypeError: Cannot read property 'id' of undefined

Issue Id: 55412e0a-2a46-b1c9-67ff-13e290d83729Versions - 1.24.0-  f67e6397855fb25becbdf33df185f96da7fdd108-<PHONE_NUMBER>4dcbe9aca0e5ca3ba8a53808b122b6Stack TypeError: Cannot read property 'id' of undefined/vs/workbench/parts/extensions/node/extensionsWorkbenchService.ts#396:53    at Array.map (native)/vs/workbench/parts/extensions/node/extensionsWorkbenchService.ts#395:27 (onComplete)/vs/base/common/winjs.base.js#1185:0 (_notify)/vs/base/common/winjs.base.js#867:0 (enter)/vs/base/common/winjs.base.js#1083:0 (_run)/vs/base/common/winjs.base.js#1051:0 (onComplete)/vs/base/common/winjs.base.js#1185:0 (_notify)/vs/base/common/winjs.base.js#867:0 (enter)/vs/base/common/winjs.base.js#1083:0 (_run)/vs/base/common/winjs.base.js#1051:0 (onComplete)/vs/base/common/winjs.base.js#1185:0 (_notify)/vs/base/common/winjs.base.js#867:0 (enter)/vs/base/common/winjs.base.js#1083:0    at n.Cl

Identifier of an extension should never be null. Adding a null check is not a right approach. Will wait for a real issue instead.


Postgresql upgrade

Adds a role and playbook for running an upgrade of Postgresql. This has been adapted from https://github.com/UCL-MIRSG/XnatInstaller/blob/main/playbooks/roles/postgresql_upgrade/tasks/main.yml.

I think the only thing left to add is a README

Of course - apologies for flagging this when it wasn't ready!


Update plugin.py

Description of Changes
To have sections in the template as a section variable, I have just edited the plugin.py file from Anaconda3\Lib\site-packages\spyder\plugins\editor\widgets at line 1825 where the Dictionary Variable VARS will hold 3 keys instead of two.

To add the ability to have sections in the template file, I have added a new variable names %(section)s in addition to %(date)s and %(username)s. To have this new variable replaced to #%% I had to edit the plugin.py file where the VARS dict holds one extra key now for this section variable in the template
Issue(s) Resolved

Fixes #11426
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct:

Hi @t-abraham thank you for the PR! I'm not totally sure if this covers the case that is discussed in #6379 (the issue favored instead of #11426) but just in case pinging @ccordoba12 to check this

Hi @t-abraham thank you for the PR! I'm not totally sure if this covers the case that is discussed in #6379 (the issue favored instead of #11426) but just in case pinging @ccordoba12 to check this

Hi @dalthviz the forwarded case #6379 mainly dealt with the date string and its format. Nothing was done to have sections #%% in the template part. The use of double %% doesn't work in default since the template variables are being replaced by the modulus functions using the dictionary. Now if someone wants to have a template where there are sections like Header and Mains with the separation using #%% it is not possible even with the discussed method in #6379 thus I introduced a 3rd variable along with the date and username variables in the template. If someone wants to have a sectioned template they can use #%(section)s in the template line which will be parsed to #%% when a new file is generated. This is what the main poster of the #11426 asked about...

Hi @dalthviz the forwarded case #6379 mainly dealt with the date string and its format. Nothing was done to have sections #%% in the template part. The use of double %% doesn't work in default since the template variables are being replaced by the modulus functions using the dictionary. Now if someone wants to have a template where there are sections like Header and Mains with the separation using #%% it is not possible even with the discussed method in #6379 thus I introduced a 3rd variable along with the date and username variables in the template. If someone wants to have a sectioned template they can use #%(section)s in the template line which will be parsed to #%% when a new file is generated. This is what the main poster of the #11426 asked about...


Support "long writes" when using hci socket on Linux

Working with some OS X based developers, we noticed the OS X backend automatically performs a "Write Long Characteristics Values" (spec section 4.9.4) operation if you write a characteristic value that's longer than the MTU.
Under the HCI backend on Linux, the characteristic value was truncated "on the wire" and an invalid Bluetooth PDU was sent.
This PR adds automatic "Write Long Characeristics" behaviour on Linux, to match the OS X behaviour (I believe this is spec compliant in both cases, section 4.9.4 doesn't put any restrictions on when it is to be used.)
Please let me know if I need to make stylistic/structure changes, I'm new to node.js.  Thanks for a very useful and powerful project!

The only catch I can think of is that there might be a race condition if you perform long writes to multiple characteristics at once without waiting for confirmation that the first write has succeeded. This is because the "execute write request" doesn't specify a characteristic handle, it executes all prepared writes across all handles.
I think it would be possible to work around this by keeping count of the number of longWrite operations currently in progress, and only sending the Execute Write Request when that count goes back to zero - but I don't know enough about hci-socket-js error handling to be sure I can implement this without potentially creating worse bugs.
(FWIW I still think the potential race here is preferable to the old behaviour, where no valid data was sent.)

@projectgus thank you! This change looks good, just need to find a peripheral to test it with locally.

Hi @sandeepmistry,
Awesome. :) I actually just pushed a new version of this change that works around the potential race condition I mentioned in the comment above. And it also happens to be much simpler code, hooray!
Let me know if I can help at all with testing.
Angus

@projectgus thanks! (Also, sorry for the delay)
I've merged and made a few minor changes in https://github.com/sandeepmistry/noble/commit/08a4eb38cd1184c34fba7bc46c0cfc14d3bc5f6d.


I am trying to run this following script it is throwing a failure.

Delete Suite - 5982 ms
selects one entry delete entry - 5982 ms
Failures:

  1) Delete Suite selects one entry delete entry
   Message:
     timeout: timed out after 5000 msec waiting for spec to complete
   Stacktrace:
     undefined

Finished in 5.986 seconds
1 test, 1 assertion, 1 failure, 0 skipped

-------END TEST RESULTS-------
Spec.js is
var Util = require('../../../node_modules/func-kit/test_lib/Util.js'),
   ct   = require('../../../node_modules/func-kit/test_lib/constants.js'),
   _    = require('../../../node_modules/lodash');

describe("Delete Suite", function(){

    var testUrls = {
       tp: ''
     },
     getUrl = Util.pageGetter(ct.PROTOCOL, ct.HOST, 4444),  // But there are some specific tasks that these modules take care of.
     cx     = Util.setUp(process, getUrl(testUrls.tp));

it("selects one entry delete entry", function(done){

      setTimeout(function(){

    var selectEntry = '.rpt-edition-list-wrapper .rv-selectable-list .rpt-edition .rpt-item-indicator.rpt-item-unchecked'; // //*[@id="rpt-root"]/div/div[3]/div[2]/div/div[4]/div/div[4]/ul/li[1]/div/svg[1]
     var delete1  = '.rpt-delete';

       cx.client.waitForExist(selectEntry, ct.SELECTOR_TIMEOUT, false, function(done){
        cx.client
        .click(selectEntry)
      .click(delete1)
        client.pause(1000);

        })
 .call(done);
 },4000);

    });

As per our CONTRIBUTING.md, please ask this question on Stack Overflow.
Also, information on timeouts in Protractor can be found here: https://github.com/angular/protractor/blob/master/docs/timeouts.md


Add 'Escalation' Queue Id (Valorant)

Support the new valorant game mode: escalation.

@stelar7 hey I would appreciate if you can accept this minor change. Thanks for your great library!

Sorry to bother, but it would be great if you can release a new version - 2.1.6. At the moment,  fetching the MatchList in ValorantAPI fails if the player had a match with this new queueId/GameQueueType. This became an issue only after the recent MatchReference changes that now include GameQueueType.

New version being released now


[SPARK-49000][SQL][3.4] Fix "select count(distinct 1) from t" where t is empty table by expanding RewriteDistinctAggregates

What changes were proposed in this pull request?
Fix RewriteDistinctAggregates rule to deal properly with aggregation on DISTINCT literals. Physical plan for select count(distinct 1) from t:
-- count(distinct 1)
== Physical Plan ==
AdaptiveSparkPlan isFinalPlan=false
+- HashAggregate(keys=[], functions=[count(distinct 1)], output=[count(DISTINCT 1)#2L])
   +- HashAggregate(keys=[], functions=[partial_count(distinct 1)], output=[count#6L])
      +- HashAggregate(keys=[], functions=[], output=[])
         +- Exchange SinglePartition, ENSURE_REQUIREMENTS, [plan_id=20]
            +- HashAggregate(keys=[], functions=[], output=[])
               +- FileScan parquet spark_catalog.default.t[] Batched: false, DataFilters: [], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/Users/nikola.mandic/oss-spark/spark-warehouse/org.apache.spark.s..., PartitionFilters: [], PushedFilters: [], ReadSchema: struct<>

Problem is happening when HashAggregate(keys=[], functions=[], output=[]) node yields one row to partial_count node, which then captures one row. This four-node structure is constructed by AggUtils.planAggregateWithOneDistinct.
To fix the problem, we're adding Expand node which will force non-empty grouping expressions in HashAggregateExec nodes. This will in turn enable streaming zero rows to parent partial_count node, yielding correct final result.
Why are the changes needed?
Aggregation with DISTINCT literal gives wrong results. For example, when running on empty table t:
select count(distinct 1) from t returns 1, while the correct result should be 0.
For reference:
select count(1) from t returns 0, which is the correct and expected result.
Does this PR introduce any user-facing change?
Yes, this fixes a critical bug in Spark.
How was this patch tested?
New e2e SQL tests for aggregates with DISTINCT literals.
Was this patch authored or co-authored using generative AI tooling?
No.

Merged to 3.4, thank you all


Update dependencies and fix license name

npm outputs a warning if the license isn't in the SPDX license list. The tests still pass with the updated dependencies.

Thanks, @murgatroid99.

Included in v3.1.3.


Refactor string sorting utils to remove dependency

Description (required)

Refactor string sorting utils to remove dependency on info.debatty:java-string-similarity
Also adds Javadocs, and simplifies calculateSimilarity
Should be no changes to app behaviour

Tests performed (required)
Tested 2.10.1-debug-test-stringsortingutils~81d8ab46b on Galaxy Nexus with API level 28.
Beta Commons upload

Codecov Report

Merging #2623 into master will increase coverage by 0.08%.
The diff coverage is 85.71%.

@@            Coverage Diff            @@
##           master   #2623      +/-   ##
=========================================
+ Coverage    2.69%   2.78%   +0.08%
=========================================
  Files         258     258
  Lines       12264   12276      +12
  Branches     1108    1113       +5
=========================================
+ Hits          331     342      +11
+ Misses      11907   11906       -1
- Partials       26      28       +2

Impacted Files
Coverage Δ

.../fr/free/nrw/commons/utils/StringSortingUtils.java
88.46% <85.71%> (+2.74%)
:arrow_up:

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 9d55c1e...99abef2. Read the comment docs.


Support for DI containers

Start with:

Pimple
Symfony\DependencyInjection (allows Yaml and XML configuration :disappointed:)
Laravel (probably the toughest)

As far as I can tell from http://fabien.potencier.org/symfony-service-container-using-xml-or-yaml-to-describe-services.html, Symfony should be able to convert back and forth between the formats.

That sounds interesting. I haven't decided yet if I

regex parse the config files (easy to implement but unstable)
or use the Symfony DI itself to get the information (more external dependencies, more stable, less generic)
or use the Symfony DI to convert to one specific format and regex parse that

Why would you use regular expressions to parse XML?

Regex only as a proof of concept, because it's just easier to implement without requiring other dependencies. The proper implementation using XMLParser for XML, ini_get for .ini, json_decode for JSON and some library for yaml.
I'm not sure however how far I want to take the support for various DIs myself. I'd prefer to have others write those and extract them into separate plugins/sub-projects.

Reconsidering this feature because dynamic analysis (introduced in v0.2.0) is more powerful and resilient towards change.

@mihaeu but dynamic analysis is great feature, but this requires much more efforts.
I don't think that this project should handle framework specifics, but instead maybe it's will be useful to have some plugin system which allow to override return types dynamically. Then this will be developer's responsibility to property parse symfony's xml of build their own type mappings.
For inspiration you could look at phan's ReturnTypeOverrideCapability. I made small plugin which allows me to gather type information for my current project.

I will stop using issues for my personal feature requests because it makes the project look more broken than it is :sweat_smile:


Synchronise queries in notebook and query directory

Queries have been developed and updated in the notebook, but not been keeping the query directory up to date with these.
Need to go back and ensure that the queries in the query directory are consistent with those in the analysis notebook.
Originally posted by @AlasdairGray in https://github.com/AlasdairGray/IDPcentral/issues/6#issuecomment-904956274

Related to #4


Create 0000-01-02-Quentoya.md

Add Quentoya's file

created a branch, created a file and made a commit, and opened a pull request


Update issue templates

Coverage remained the same at 100.0% when pulling<PHONE_NUMBER>e65aa3cf7b74863fe3f91644324be0 on bug-report into d9bb36cd0dfc019296a5669dd3c048a10e9f16a5 on master.


docs: document bootstrap stages

The bootstrap stages, example outputs and their meaning is documented.

Thanks!


Gcexchange: Completed

In this project I fulfilled the following requirements:

🖊   when the page loads, the web app shows the list of categories that could be filtered out by currency code.
🖊   numeric value (rate) is displayed from the API.
🖊   when the user clicks (or taps) on a category item, the application navigates to the details page.
🖊   on the details page, the web app retrieves data from the API to show detailed data in the category.
🖊   when the user clicks on the "Back" button (<), the user navigates to the home page.
🖊   unit test was created for Redux and App.
🖊   data is stored in the Store and filtered before usage.

Hi @fobadara,
Excellent work so far! 👌
You have implemented almost all the required features without any bugs or errors. ✔
There are some cases that you need to adjust but you are almost done! 😀
Required Changes ♻

[ ] As the previous reviewer requested, you should implement a filter feature using given parameters, e.g. currency name, that's a mandatory requirement not an optional requirement. I'd suggest learning how to use react controlled input/forms to implement this feature.

Optional suggestions
Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Should JsonError and JsonResult just be Error and Result?

I'm not sure about JsonValue.

I'm not sure what the consensus of the community is about those, I personally like avoiding the confusion with built in Result type and Error trait.
Gonna leave this up for a discussion, and maybe look up what other major crates are doing.

I think it's quite common to define library specific error and result types. For example the standard library uses io::Error and io::Result for IO operations. It allows for less ambiguous types.

Following standard library in that regard might be a good idea. Since renaming stuff can be a breaking change, I'd schedule it for 0.9.0.


Proposal:Background acrylic should still be rendered if the program is in the foreground.

Proposal: Background acrylic should still be rendered if the program is in the foreground.
Summary
As proposed here: https://github.com/Microsoft/calculator/issues/397
A application that is on a second monitor should not lose background acrylic when it is still the main visible application on that screen but does not have focus.
Rationale
A application that is visible and being looked at is a distraction if transparency is turned on and off as it is being used.
A alternative solution that might help, is to keep a frosted pane look with 0% transparency. Going straight to a solid colour from the frosted glass look is both distracting and look unpolished.

Unfortunately this behavior is a performance-based limitation. The shell imposes a policy that acrylic for inactive windows will be forced to be opaque, so there's not much we can do here.
The suggestion to try to choose a better opaque color is interesting, that certainly could be something that we can improve if we can figure out what the predominant color is. Or maybe we can freeze acrylic for background apps instead of forcing it to opaque.

How slow could it be? Are there any measurements?

Has the idea of Always Acrylic been profiled on a Desktop PC, rather than a Laptop?  Also in Tablet Mode Acrylic is just turned off, which is unfortunate.
Rather than be a live rendered Acrylic, could there be a pre-rendered version, just taking the Background colour - which Tablet Mode could use, as well as inactive windows?

Echoing the ideas of @jevansaks and @mdtauk to cache the last active buffer for acrylic on inactive windows, one could take inactive acrylic a step further into the middle ground by setting a low quality acrylic profile with reduced resolution / lower blur quality and maybe even reduce the rate of the shader / effect execution to once every n frames. Perhaps with frame interpolation up to the current refresh rate to make any background motion appear smooth, the lower update rate and slight increase in latency perceptually invisible for a blurred out background element.
And of course set a hard cap on the maximum number of layers of real-time acrylic, just one is probably fine.
This would cover the case of some video or animation being behind the inactive acrylic with a small, calculated impact on performance for desktops and mid to high end portable devices, before being forced to resort to a completely static cached acrylic for inactive windows (or none at all, as it is currently.)
A lot of possibilities for further optimization as well, like spreading the GPU work over multiple frames, utilizing async compute / multi-engine sync with DirectX. And block / region schemes, similar to video compression schemes, to coarsely check if the background content is currently static or animated before executing the blur shader kernel and writing new results to the buffer.

Use the Power Preferences and Battery mode to dynamically configure how transparency and background affects work. You see this today with the Desktop Slideshow paused on battery and enabled when plugged in.
Battery Mode and Maximum Battery Life settings could freeze the transparency or change latency to values best suited for that mode. Possibly kick it back in if the window is moved around if it can be done smoothly.
Medium/Mixed/Better Performance modes wouldn't need to be frozen, the latency could hit a better suite spot to still favor battery life but give it a smoother feeling if there is activity.
Best Performance, regardless of battery mode let it run as normal.
Battery Saving mode regardless of setting on battery freezes it. It also makes sense to include Focus Assist options for Game Mode / Fullscreen on this for better performance in those conditions.
There is likely already known configurations from existing work to optimize battery life with animations and video. They can serve as a baseline to fine the right settings for this.

@Sergio0694 Added a brush to the Windows Community Toolkit https://github.com/windows-toolkit/WindowsCommunityToolkit/pull/3112 that doesn't have the same limitation with acrylic being disabled when the app loses the focus.
The limitation isn't so much a limitation but rather a policy in Windows that only the focused app should have acrylic, however as mentioned in the issue description there are cases where you might still want the app to have acrylic even if it isn't focused.

Considering the average performance of hardware now is far beyond what it was only a few years ago, I have to imagine that multiple layers of acrylic would not be that intensive.  It would not be difficult for the OS to determine how much negative impact layers have and automatically set a maximum count of stacked acrylic layers (keeping the most recently used apps acrylic).
Frankly, I would love to be able to automatically make the inactive apps acrylic and the active one opaque.  For example, the great new Windows Terminal application can activate acrylic (only on the terminal area; the title bar stays opaque, which I think looks best) but only when it's the active window.  When it's inactive, it goes opaque.  This is the opposite of what most users want.  See https://github.com/microsoft/terminal/issues/593 (it's closed, but only because it's a system limitation).

I understand that keeping background transparency while not focused is a performance issue.
Since a window cannot be moved when not focued, wouldn't it be possible to make the background static in the meantime ?

Our new guidance is that Acrylic is for transient UI and Mica is for persistent UI. We can certainly argue for Acrylic to remove the window activation checks since if you're following the guidance you won't ever see it on inactive windows (because a transient UI would never be inactive), but the same logic means that there's no reason to change the code either.

I retract my request.
Instead, let's follow the Microsoft marketing department's lead and make Terminal actually look like what it does in this video: https://www.youtube.com/watch?v=8gw0rXPMMPE
While we're at it, who can point me at the right department to ask them to make Windows 11 look like what it does here?
https://www.youtube.com/watch?v=Uh9643c2P6k
(You know what I mean, things like an actual glass taskbar at 0:27, or the ambient color splash on the background from the window above it which has true glass-like edges at 2:18, rather than the slight visual evolution from W10 that we're actually getting.)
But seriously, though, this is 2021 and W11 is requiring processors no more than 3 years old.  I think they could easily handle it if every single window on the desktop was using acrylic (with every single window showing animated, dynamic, ever-changing content).  I should be able to waste power to delight my eyeballs if I want! :)

I retract my request.
Instead, let's follow the Microsoft marketing department's lead and make Terminal actually look like what it does in this video: https://www.youtube.com/watch?v=8gw0rXPMMPE
While we're at it, who can point me at the right department to ask them to make Windows 11 look like what it does here? https://www.youtube.com/watch?v=Uh9643c2P6k (You know what I mean, things like an actual glass taskbar at 0:27, or the ambient color splash on the background from the window above it which has true glass-like edges at 2:18, rather than the slight visual evolution from W10 that we're actually getting.)
But seriously, though, this is 2021 and W11 is requiring processors no more than 3 years old. I think they could easily handle it if every single window on the desktop was using acrylic (with every single window showing animated, dynamic, ever-changing content). I should be able to waste power to delight my eyeballs if I want! :)

The animation department has clearly more budget than the team developing the user interfaces in windows

Please add this!

Just activated the acrylic effect and it's distracting when it's out of focus... Would be good to add an option for this.


Feature Request: Add setting to change delay before updating Color Blocks

Hi zimonitrome,
I'm absolutely loving this plugin, but recently I was using it with Blockman (and other extensions) and the CPU load increases so heavily that the backspace key stopped working, while also crashing the extension host similar to #12 I think.
Edit: I made a separate issue where I managed to replicate this bug: #15
However, I believe there should be a setting to make color blocks wait longer before it updates. I believe that this setting could resolve errors like #12 as a quickfix. Much like how blockman has a setting to delay updates.
Also I don't mind waiting 2-5 seconds for Color Blocks to update.
Many thanks for this extension

As another feature, can property:
"color-blocks.behavior.enabled"
be registered as a language override setting? This could be helpful to problems #16 and #15, so we can still use color blocks, without having to worry about crashing the extension host when working in a git repo.


t2s: update t2s_seg_deepseg

Update output segmentation file for sct_deepseg test

file name should be with - not _ (see original file)

Updated here fda564e


Use welcoming language

The Swift community wants to be open and welcoming.
Modifications:

This pr removes language that can be seen as unwelcoming
The soundness CI step detects language that can be offensive

Result:
A more welcoming project.

thanks @fabianfett also updated CI to use the new script + name

thanks @fabianfett also updated CI to use the new script + name


RSP-1861 [Docs][A11y] Manage focus when breadcrumb changes in link Popover

When a link within a popover changes the contents of the popover, focus will be lost to the document.body, because the element that had focus will be removed from the DOM and replaced with new content.  We should manage focus by explicitly setting focus to the current breadcrumb item when the content changes.
Closes RSP-1861
✅ Pull Request Checklist:

[x] Included link to corresponding Issue RSP-1861
[ ] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
[x] Filled out test instructions.
[x] Updated documentation (if it already exists for this component).
[x] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

yarn start:docs
Navigate to http://localhost:1234/react-aria/useListBox.html
Click on a link that opens a popover displaying information about the element type, like "AriaListBoxOptions".
Tab to another link to a React-Spectrum object type like "CollectionChildren".
Press Enter to activate the link, updating the contents of the Popover.
Focus will be set to the current breadcrumb, but since it is static content, no focus ring is displayed. Think of it like an in-page anchor link.
Press Tab or Shift+Tab to navigate to the next or previous interactive control from the current focus in the tab navigation order.
The focus should move to the first focusable link after the Breadcrumbs in the Popover content or to the previous Breadcrumb Item from the current Breadcrumb

🧢 Your Project:
Accessibility

[Image.jpeg]
ดาวน์โหลด Outlook for iOShttps://aka.ms/o0ukef

จาก: adobe-bot<EMAIL_ADDRESS>ส่ง: Monday, July 20, 2020 10:15:54 PM
ถึง: adobe/react-spectrum<EMAIL_ADDRESS>สำเนาถึง: Subscribed<EMAIL_ADDRESS>ชื่อเรื่อง: Re: [adobe/react-spectrum] RSP-1861 [Docs][A11y] Manage focus when breadcrumb changes in link Popover (#728)
Build successful! 🎉

View the storybookhttps://reactspectrum.blob.core.windows.net/reactspectrum/e640f1ce872f170df179dcb8f1af5272f92e5945/storybook/index.html
View the documentationhttps://reactspectrum.blob.core.windows.net/reactspectrum/e640f1ce872f170df179dcb8f1af5272f92e5945/docs/index.html

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/adobe/react-spectrum/pull/728#issuecomment-661102870, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOYRE3RFBRPVXEC73WRGQHDR4RNSVANCNFSM4OXLIWAA.

I see the issue and i see that it's doing the expected thing after the change
I don't follow the css changes in here though, can you explain more about them?
It seems like the Breadcrumbs component should be handling some of this?

Normally, the current Breadcrumb does not receive keyboard focus, but with this code documentation popover, we have to make sure that the focus isn't lost to the document.body when the popover contents change should a user drill down within the documentation. For this reason, when the Breadcrumbs update, I make the current BreadcrumbItem focusable and set focus to it, but when it blurs, we restore the expected behavior for Breadcrumbs, that the current BreadcrumbItem does not receive focus. Think of it like jumping to an in page link.

Don't think I'm authorized to merge.

Ah, no problem I'll merge then


Bootstrap 4 alpha 3 for meteor : how to set flexbox enabled ?

I installed the package and I can see that flexbox is not enabled by default. How could I set it within the meteor package ? Thanks for your help.

You would compile the Sass with $enable-flex set to true.
For advice on how to do that in Meteor, please ask on a Meteor-specific forum.
Thanks.


A bit more explict detail about comparison operators and alert templates

@brian-brazil
From the discussion here: https://groups.google.com/forum/#!topic/prometheus-users/-aC42iqeTgo
The Prometheus comparison operators work differently from most comparison opeators
in the world. It makes total sense that they work this way (filtering instead of
resulting in a boolean value), but it can be confusing for newbies. This is why
I thought that $value in the template would always be true! So this is just a few
sentences to be more explicit about how they work.

Based on @brian-brazil 's comments, we have decided to close this pull request.


[DOCFIX] Fix fuse doc picture

Fix fuse doc picture

alluxio-bot, merge this please

did you do a quick search across the docs folder for similar urls?

did some manual search in fuse docs...
i previously do this way in fuse docs to directly show graph in github repo (back when the dora doc is not online)

alluxio-bot, merge this please


Enhance existing (or create new ) Command Line Tools.

To support folks ingesting data

see the following for a first design for the butil command line utility.
https://github.com/ndlib/bendo/blob/master/architecture/butil.md

See Don's Document
https://github.com/ndlib/bendo/blob/master/architecture/butil.md

will do item validation as part of https://github.com/ndlib/bendo/issues/50


fix .bithoundrc format

What does this pull request do?
fixes .bithoundrc format. It should be a json object.
How do I test this?
Test by running
    npm test

Additional Comments / Context

Coverage remained the same at 100.0% when pulling 330a1e28dc5b83f676bda1617f7558a92777b1b6 on develop into 1d55c184b79e839ff12e94d0ef8dbe85481a1f82 on master.


Send matches to optional transformation function

I need to send matched URLs through decodeURI before inserting them back into the text. This is not currently possible, right? Would be great to accept a transformation function to do this.

Dup of #40


Missing characters in integerated terminal

Issue Type: Bug
When I opened the vscode integrated terminal and entered ls command I found something like this:

I restarted it and when I opened terminal, the prompt was partially blank like this:

I restarted with the option --disable-extensions but the issue was same. However, when I used --disable-gpu option, the problem was solved. But I don't think it is the correct solution of this problem. I have also faced same problem in previous versions. How to permanently fix this issue?
VS Code version: Code 1.47.2 (17299e413d5590b14ab0340ea477cdd86ff13daf, 2020-07-15T18:22:15.161Z)
OS version: Linux x64 5.4.0-40-generic

System Info

Item
Value

CPUs
Intel(R) Core(TM)2 Duo CPU     E4500  @ 2.20GHz (2 x 2059)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: disabled_offoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: disabled_softwareskia_renderer: disabled_off_okvideo_decode: unavailable_offviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled

Load (avg)
4, 2, 1

Memory (System)
1.93GB (0.07GB free)

Process Argv
--no-sandbox

Screen Reader
no

VM
0%

DESKTOP_SESSION
mate

XDG_CURRENT_DESKTOP
MATE

XDG_SESSION_DESKTOP
mate

XDG_SESSION_TYPE
x11

Extensions (4)

Extension
Author (truncated)
Version

Bookmarks
ale
11.3.1

cpptools
ms-
0.29.0

shellcheck
tim
0.9.0

city-lights-icon-vsc
Yum
1.1.3

(1 theme extensions excluded)

when I used --disable-gpu option, the problem was solved

If this is the case it's an issue with Chromium and canvas on Linux with your drivers. You can avoid using the canvas-based renderers in the terminal with:
"terminal.integrated.rendererType": "dom"

This will go to the slower DOM-based renderer which should show up fine. Other things you can do is try updating your graphics drivers or just wait for the fix in Chromium to bubble down to Electron and us.


heap-buffer-overflow in wasm_loader_prepare_bytecode

Version
commit d6d5072cc6f4d34b2d9ab592363b8cbc463d6354 (HEAD -> main, origin/main, origin/HEAD)
Compile
cd wasm-micro-runtime/product-mini/platforms/linux/
cmake -DCMAKE_C_COMPILER="gcc" -DCMAKE_C_FLAGS="-g -fsanitize=address -fno-omit-frame-pointer" -DCMAKE_LINKER_FLAGS="-g -fsanitize=address -fno-omit-frame-pointer" ..
make -j

ASAN Log
=================================================================
==1704==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x606000000120 at pc 0x55b561c1c390 bp 0x7ffe52757130 sp 0x7ffe52757120
WRITE of size 2 at 0x606000000120 thread T0
    #0 0x55b561c1c38f in wasm_loader_prepare_bytecode /root/Ablation/wasm-micro-runtime/core/iwasm/interpreter/wasm_loader.c:7698
    #1 0x55b561c1c38f in load_from_sections /root/Ablation/wasm-micro-runtime/core/iwasm/interpreter/wasm_loader.c:3852
    #2 0x55b561c246b4 in load /root/Ablation/wasm-micro-runtime/core/iwasm/interpreter/wasm_loader.c:4215
    #3 0x55b561c246b4 in wasm_loader_load /root/Ablation/wasm-micro-runtime/core/iwasm/interpreter/wasm_loader.c:4391
    #4 0x55b561b9a71c in main /root/Ablation/wasm-micro-runtime/product-mini/platforms/linux/../posix/main.c:885
    #5 0x7f9eb91d2082 in __libc_start_main ../csu/libc-start.c:308
    #6 0x55b561b9bb4d in _start (/root/Ablation/wasm-micro-runtime/product-mini/platforms/linux/build_asan/iwasm+0x22b4d)

0x606000000120 is located 0 bytes to the right of 64-byte region [0x6060000000e0,0x606000000120)
allocated by thread T0 here:
    #0 0x7f9eb9625808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
    #1 0x55b561c12ed3 in loader_malloc /root/Ablation/wasm-micro-runtime/core/iwasm/interpreter/wasm_loader.c:285
    #2 0x55b561c12ed3 in wasm_loader_ctx_init /root/Ablation/wasm-micro-runtime/core/iwasm/interpreter/wasm_loader.c:5594
    #3 0x55b561c12ed3 in wasm_loader_prepare_bytecode /root/Ablation/wasm-micro-runtime/core/iwasm/interpreter/wasm_loader.c:7513
    #4 0x55b561c12ed3 in load_from_sections /root/Ablation/wasm-micro-runtime/core/iwasm/interpreter/wasm_loader.c:3852
    #5 0x55b561c246b4 in load /root/Ablation/wasm-micro-runtime/core/iwasm/interpreter/wasm_loader.c:4215
    #6 0x55b561c246b4 in wasm_loader_load /root/Ablation/wasm-micro-runtime/core/iwasm/interpreter/wasm_loader.c:4391
    #7 0x55b561b9a71c in main /root/Ablation/wasm-micro-runtime/product-mini/platforms/linux/../posix/main.c:885
    #8 0x7f9eb91d2082 in __libc_start_main ../csu/libc-start.c:308

SUMMARY: AddressSanitizer: heap-buffer-overflow /root/Ablation/wasm-micro-runtime/core/iwasm/interpreter/wasm_loader.c:7698 in wasm_loader_prepare_bytecode

Reproduce
./iwasm id:000015,sig:06,src:001496,op:python,pos:0

PoC
id:000015,sig:06,src:001496,op:python,pos:0

Close this issue since it was resolved.


When follow instruction by kubectl apply team-example.yaml , no staging namespace has automatically created

When try to follow the instruction based on minikube platform.
After setting up everything and follow each step exactly
once run
kubectl apply -f https://raw.githubusercontent.com/agoda-com/samsahai-example/master/configs/crds/team-example.yaml
no s2h-example namespace has been automatically created as description so, I cannot continue explore this project.  please suggest what i'm missing
Thanks,
oz

@oz4899 Thank you for your interest in our project.
There are a few steps missing.  It requires a secret and configuration for the team.
We already updated the team resource to not require a secret.
Please re-apply team-example.yaml and run the following command
kubectl apply -f https://raw.githubusercontent.com/agoda-com/samsahai-example/master/configs/crds/config-example.yaml

to install config of example team.
We will update the document.  Please kindly tell us if you have any problems. 😄

@Pohfy123 thx for very prompt reply,  I did follow the step you mentioned and now s2h-example namespace has been created :)  but I think it has small issue regarding the tag of staging-ctrl image that it need to pull from quay.io

seems like it should be v1.1.3 instead of just 1.1.3

@oz4899 I've just created issue #16
There is a workaround solution by overriding the image for staging-ctrl so you still can continue.
Please run this command to re-apply team
kubectl apply -f https://raw.githubusercontent.com/agoda-com/samsahai-example/master/configs/crds/workarounds/team-example.yaml

We will get back to you once it's fixed.
Sorry for the inconvenience.

thx a lot

The fix was merged and released with v1.1.4, please try


Query time lookup cluster wide config

This is the next PR for QTL where cluster wide configuration is possible.
Posted here for early discussion.
TODO:

Squash
Docs

I need to modify this to use json configurator with audit stuff instead of its own thing

I also need to remove the extra module here. I don't think its as helpful as I was hoping it would be.

Closing for now

@drcrallen can we separate the core stuff from the module stuff ?

@b-slim I'm going to overhaul some of the naming and do the core / extension split once your PR is squashed (and I'll probably rebase onto it, so please rebase your PR on master)

@b-slim I've started moving things over. I pulled in your commit just so I have something to work off of.

@b-slim FYI, split.
Please note the TODO list in the master comment which I'm trying to keep up to date.

@b-slim I'm seeing a lot of implementation specific comments. Does that mean you've finished the high-level review and are looking more at the details? Or are you commenting as you go along?

@b-slim I have a question in the master comment as Reconcile need for static config vs dynamic config. Ex: what happens if someone requests a delete or get of a lookup defined in runtime.properties? Do you have any insight on that?
I haven't really given it any thought yet.

@drcrallen i am not done yet i am making my way through the code. But i am commenting on what is really obvious.

@drcrallen in my opinion once we get the cluster wid config working, we will not use static configuration. The source of truth will be the database. @cheddar any thoughts ?

@b-slim A potential use case for static configs is pre-propagating login information for jdbc based lookups (user/pass) which you don't want stored in an easily fetchable location

@drcrallen First i think we can not fix the problem of Authorization, it is beyond this work. If in your use case you want to hide a pass/login, you can always use a password provider.
If you really feel strong about having a static config. we can have a mode where  we allow delete during runtime and if the process restart, the config will be added again.

@b-slim I don't, the jdbc connector was made only to satisfy community interest. It is not used here. I'm just trying to make sure such use cases are called out.

@drcrallen i don't see how LookupCoordinatorManager is interacting with LookupReferencesManager ? i am i missing something ?

@b-slim  LookupCoordinatorManager should be running on the coordinator. All it does is make sure the entry in the auditable config metadata is kept reasonable, and the config changes are propagated around to the nodes.
The LookupCoordinatorManager doesn't actually do anything with lookups, it just propagates configs.
The LookupReferencesManager runs on the nodes, and takes updates via io.druid.query.extraction.LookupListeningResource in LookupExtractionModule

@drcrallen so who is putting stuff from LookupReferencesManager to the audit-table ?

@b-slim no-one, its the other way around. LookupCoordinatorManager manages the auditable config and tells nodes how to update LookupReferencesManager

what about if i want to add lookups at run time via HTTP post query to coordinator ?

@b-slim I started adding the ability to specify different groups of QTL listeners

@drcrallen ok let me know when u are done, i have some ideas in mind as well !

@b-slim I still need to do some more delete testing and add in a way to do some state reconciliation. I'll be adding those in the morning.

@b-slim Ok, I think this is in a place ready for review. I'm going to run some actual tests on it later today.

I was able to run this version successfully locally. I'm moving this out of discuss and into review.

@drcrallen i think the implementation assumes that updates/deletes of lookup is done only from the coordinator ? if true, is it a serious limitation i guess. We can do it in a way that first you pull all the known lookup from nodes and then compare it to coordinator view.

@b-slim yes. the coordinator coordinates the state of lookups in the cluster.
Why is that a limitation?

@drcrallen i know this is a complicated problem, can you first describe how you are doing the distributed coordination ? And let's start from there.

@b-slim I'll writeup some more info in lookups.md on how it is propagated around.

@b-slim added a bit more information about the lookup propagation in https://github.com/metamx/druid/blob/queryTimeLookup_announce/docs/content/querying/lookups.md

@b-slim Addressed comments

Transient error:
Running io.druid.indexing.overlord.RemoteTaskRunnerTest
Tests run: 16, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 72.067 sec <<< FAILURE! - in io.druid.indexing.overlord.RemoteTaskRunnerTest
testRunExistingTaskThatHasStartedRunning(io.druid.indexing.overlord.RemoteTaskRunnerTest)  Time elapsed: 33.198 sec  <<< FAILURE!
java.lang.AssertionError: null
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertFalse(Assert.java:64)
	at org.junit.Assert.assertFalse(Assert.java:74)
	at io.druid.indexing.overlord.RemoteTaskRunnerTest.testRunExistingTaskThatHasStartedRunning(RemoteTaskRunnerTest.java:176)

@b-slim added config

Tests run: 16, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 35.364 sec <<< FAILURE! - in io.druid.indexing.overlord.RemoteTaskRunnerTest
testRunSameAvailabilityGroup(io.druid.indexing.overlord.RemoteTaskRunnerTest)  Time elapsed: 2.803 sec  <<< FAILURE!
java.lang.AssertionError: null
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertTrue(Assert.java:52)
	at io.druid.indexing.overlord.RemoteTaskRunnerTest.testRunSameAvailabilityGroup(RemoteTaskRunnerTest.java:233)

@b-slim any other comments?

@b-slim addressed comments

Overall this PR is ready to go IMO. there is minor comments to be fixed, :+1:

have finished reviewing this PR -
two comments -

there are places where namespace and lookup are used interchangeably, minor places like variable names, package names needs to be changed
In the initialization the user is required to manually init with an empty lookup, which can be avoided, but not a blocker for PR and can be added in a github issue and done in a separate PR.

I am :+1: on this and think this can be merged once 1 is taken care of unless @b-slim has any more comments.

Squashed

:+1: please make sure to have the issue linked to the future improvement especially about initialization.


Support for external agents - hypothes.is

This pull request is finalized
This module helps external agents that interact with content documents from the level of the iframe browsing context:

By providing a means of identifying the content through metadata that's brought down from the package document level.
By providing a direct link (bringing down the shareable URL) that could be used to load the content in the proper context with the reader app instead of the actual content document asset path.
By responding to an event when the external agent wants to bring a specific range of content into view.

(related) https://github.com/readium/readium-js-viewer/pull/634

Note: There was a conscious decision to make the support for Hypothesis be included as general implementation in the main codebase, instead of providing it all as a plugin.
This is because the idea is to have support for Hypothesis no matter how it's loaded in, it should work with Readium if it is loaded in a page running a Readium-based reader, for whichever user of Hypothesis that wishes to annotate EPUB content.
But not every Readium-based reader might want to load Hypothesis by having it load automatically in the page without any installation. This is where the plugin comes in, you can opt-in to have your reader load Hypothesis with Readium without installation if you enable the plugin.

Reviewed. Merging.


[Core] Docs Changes Needed from dbt-core Issue #11104

At a minimum, update body to include a link to the page on docs.getdbt.com requiring updates and what part(s) of the page you would like to see updated.
Originating from this issue: https://github.com/dbt-labs/dbt-core/issues/11104

asked Quigley in the core issue the following:
hey @QMalcolm , thanks for openign the docs issue up for this. does this need documentation or is this a ux/ui improvement?
i've tested it (i think correctly) and this is how the logs appeared to me when i ran dbt run. i added microbatch to the orders.sql model:
16:48:25 12 of 13 START sql microbatch model dbt_mwong.orders ........................... [RUN]
16:48:25 1 of 2 START batch 2024-12-08 of dbt_mwong.orders .............................. [RUN]
16:48:34 1 of 2 OK created batch 2024-12-08 of dbt_mwong.orders ......................... [�[32mSUCCESS 1947611�[0m in 9.00s]
16:48:34 2 of 2 START batch 2024-12-09 of dbt_mwong.orders .............................. [RUN]
16:48:43 2 of 2 OK created batch 2024-12-09 of dbt_mwong.orders ......................... [�[32mSUCCESS 1947611�[0m in 9.46s]
16:48:43 12 of 13 OK created sql microbatch model dbt_mwong.orders ...................... [�[32mSUCCESS�[0m in 18.47s]

Closing as no docs update needed here: https://dbt-labs.slack.com/archives/C05FWBP9X1U/p1734366382643719


[BUG] Replies still being shown in main feed despite being disabled

Please make sure you've tried the latest version of Fritter first, as the F-Droid version is sometimes out of date!

Describe the bug
Despite following the guidance on how to disable tweet replies in #274 a new account I'm following still shows the replies.
To Reproduce
Steps to reproduce the behavior:

Disable tweet replies as per #274
Follow a new account who replies to tweets
See replies in main feed

Screenshots

Device
Your device model, OS version, device locale/language and Fritter version
Sony Experia 5 ii
Android 11
English
Fritter version v2.16.3+202201232 from f-droid

You are not alone. Also happens for me ... Also unchecked all replies in groups

Hi there. I have the same problem. I noticed that  on my device this bug only exist in groups that are bigger than 33 accounts.

This should be fixed in 3ae1fd8, and will be going out in v2.17.0!


scripts/clean_rosdep_yaml.py doesn't work properly with wildcards

I was running scripts/clean_rosdep_yaml.py because I failed the nosetests, but the clean-up scripts removed all colons that wrap the wildcard expressions, which caused errors when I run nosetests command again with the modified version.
496c496
<   gentoo: ['=dev-python/beautifulsoup-4*']
---
>   gentoo: [=dev-python/beautifulsoup-4*]
1034,1037c1034,1037
<     '21': [python-flake8]
<     '22': [python-flake8]
<     '23': [python-flake8]
<     '24': [python-flake8]
---
>     21: [python-flake8]
>     22: [python-flake8]
>     23: [python-flake8]
>     24: [python-flake8]
1233c1233
<     '*': [python-gitlab]
---
>     *: [python-gitlab]
1241c1241
<     '*': [python-gitlab]
---
>     *: [python-gitlab]

Thank you for reporting the problem. #17937 should fix it.


Resizing window programmatically on X11 doesn't update rendering context window size

Godot version
4.0-beta2
System information
Fedora 36
Issue description
On Linux/X11 the rendering context window size is not getting updated when the actual window is resized programmatically.
This leads to parts of screen being black or containing gibberish. If you for example resize it manually by dragging on the window border, it gets updated correctly.
Reason is, as far as I could find out, that we rely on ConfigureNotify X11 event to update the rendering context, but it doesn't get emitted when XResizeWindow is called.
See video for better explanation. :smiley:
Steps to reproduce
Screencast from 11.10.2022 22:58:19.webm
Minimal reproduction project
No response

I've made a pull request that fixes the issue but I'm not an expert at X11 so this may not be the best solution. If anyone has a better idea, I'm all ears.


[Feature request] Support views filtering by absent components?

Is there any reason why entt does not support defining views by being able specify missing components as well as existing components?
So for example I could iterate all entities that have a position component but not an orientation component.
I find it a very useful feature when working with ECS, so I wonder if this has come up before (did not find anything) or if there is any technical reason this could not be done, or any other reason.
Thanks!

Thanks for the reply! Yeah I thought it was weird it had not come up.
I can see the performance being a potential concern, but at the same time I would expect excluding components is quite comparable (check en entity is in a set vs check an entity is not in a set). Probably things get more expensive for persistent views?
But for example if the perf was comparable to an if, then that would be overall a gain IMO since right now I need an if on a large query to filter out entities that have a component to be excluded. If the view excludes those I don't need to check the if for the ones I already know are on the view.
Performance aside, the resulting code is considerably cleaner in many cases, from my experience, so it would likely be worth it.

Minor input on the topic: The current iteration of Unitys ECS implementation allows so called EntityArchetypeQueries which fetch all entities adhering to the specified constaints of the following form:
new EntityArchetypeQuery
{
	Any = Array.Empty<ComponentType>(),
	None = Array.Empty<ComponentType>(),
	All = new ComponentType[]
	{
		typeof(PlayerController),
		typeof(Position)
	}
};

It allows to filter entities by required, optional and disallowed components.

Is there any reason why entt does not support defining views by being able specify missing components as well as existing components?

Some reasons in random order:

I don't need it and therefore I didn't implement it yet. Usually I flip the problem on its head by defining the concept of not having something through a component to assign to the entities that do not have what I'm looking for. It's a bit counterintuitive, but iterations are definitely faster this way.

Because of how standard views are defined, the best they can do internally is a sort of if for each and every entity they inspect. That is exactly what you would do as a client of a view. The difference is that for you it's really only an if, while for a view it's probably template machinery that would end up being slower than an if.

I put a note in the TODO list for future improvements, but to be honest I had other priorities so far and it's still there.

AOB

That being said, I'm working on a great improvement for persistent views (if you are in the gitter room, you followed the discussion probably).
While working on it I realized that we can add all types of filters on these views without affecting performance during iterations.
Not sure yet, but likely you'll see support for filters on persistent views finding its way on master in future.
Unfortunately I've not an ETA for the feature. It mostly depends on my free time at the moment and I'm quite busy this month.

Side note for the whole bbi-* team. :-)
Do not forget to star the project if you like it and you use it!! Consider also supporting the development if possible, it would be really appreciated.
Thank you.

@NearAutomata I thought about your comment about Any, None and All.
At a first glance:

All is already there, namely the views.
None is hard to do with standard views unless we put ifs all around, but it wouldn't make much sense to do it using a bunch of ifs. On the other side, persistent views could do it without ifs and probably it makes sense to allow it only on optimized views.
Any is meh. The same reasoning as above but then we have ifs during the each, because the view cannot say if an entity is there because it has A or B and therefore it must query both of them.

If I had to develop something along this line, I'd proceed as it follows:

Add support for none to the persistent views and that's all for what concerns views in general.
Add an external tool (Group? Tracker? SuggestMeANamePlease?) built on top of a sparse set that allows for all the filters (all, none and any) and returns only entities. Users will know what to do with those entities then.

Keep in mind that the latter isn't a high performance tool, but I don't think we can really design something with the best performance and the strangest combinations of filters, so who cares?
It will serve the purpose on non critical paths, mostly gameplay (that is the sole point where I see uses for something like Any after all).
What about?

I dont see any need for "Any" at all, with the design of this library. It exists for unity becouse you can do "block iteration" with that, and do your "if" at the block level (few hundred entities at a time). Given Entt doesnt have that, you are better just checking "has" yourself.
For the negative views, i think its completely fine if they are on persistent only. After all they are mostly a "performance" construct. The idea is to do something like filter out "Static" objects from a physics system, or other similar things. You can of course do the same with "has", but it would be much slower. Having them do the "if" themselves inside defeats the point, i think. At that point its better if the user does the "has" himself.

Knowing 'any' can still make parallizing the work easier as then each system would know what is being accessed should that point come.

To be honest, I never had the need for any and that's why I'm quite doubtful about investing time on it.
I cannot even imagine an use case. The sole that came up to my mind is something like - any of state 1, state 2 or state 3, to elaborate all the entities that own a state from a given fsm. Btw, being states exclusive, one can safely iterate them separately, thus any is pointless here.
Some examples that would convince me it's an useful feature?

Back in my system I had 'all' (all components were required for this system), 'optional' (any?, these are components that might be accessed in this system), and 'none' (these components must not exist).
The optional was useful because at load-time a dependency-graph of systems was built up and they would execute across threads for any with no all/optional overlap, the optional was mostly a marker for this purpose.

@OvermindDL1 your optional wasn't the same of any, if I got it.
Here all/none/any are meant as - give me all the entities that have all of A, B, then none of C, D, then any of E, F.
So, you end up with entities that have either A, B, E, * or A, B, F, *.

So any here is more like xor rather than optional that I'd expect based on the name of any?  I.E. either E or F is required, you must have one or the other?  I could see that being useful at times but nothing immediately comes to mind, however a custom operation that we could pass in (a templatized thing ala mpl?) could be quite useful and generic for any use-case.

@OvermindDL1 Almost. You can have either E, F or both of them actually.

Ah so it is an inclusive or then, so your example had 3 possibilities for the matching.

For me, as long as I can exclude components, then any becomes unnecessary as now I can split the work between views. For example you can make a view to exclude E, one to exclude F and one to include both. You can then not use one of them depending if you want xor functionality or not.

Note for the future me (out of some tests). Try with filter arguments with composable filters (functions).
It should work for persistent views. Not sure about standard views, but it's promising.

I thought about this. At a first glance, there are two options with their pros and cons:

Add filters (all/any/none) on persistent views. Views would return only components in all, for obvious reasons. The main drawback is that it affects construction and destruction of entities and components, as well as sorting functionalities. The API for persistent views would become more complex, but still usable. Filters cannot be attached on demand, they are fixed and different filters create different views. Systems won't have to store anything aside, so they can still be completely stateless.

Create an external tool. They would return only components in all, for obvious reasons. They would affect only creation and destruction of components. The main drawback is that system cannot be anymore stateless, they must store these objects somewhere and cannot create them on the fly. Filters could be attached on demand, different filters don't create different objects.

Let's discuss this. Is having stateless systems a must have for which slightly worse performance during creation/destruction/sorting are the right price to pay?

I made some experiments recently. See branch wip. Some notes:

This feature requires another signal to work properly. Consider something like this: all_of<>, any_of<>, none_of<A, B, C>. It won't work if you aren't notified about entity creation. The other way around it to store a sort of try_to_assign function along with the underlying pools and invoke it each and every time a new entity is created. Note that in both the cases this affects performance on entity creation to some extents.

In regard of the previous bullet, the sets of listeners strictly depend on the sets of component to observe (ie if you have an empty list as all_of, the set of listeners differ quite a lot from the case of a non empty list). This means more templates and sfinae'd functions/constexpr ifs all around so as to treat the different cases correctly.

Filters attached on creation/destruction of components are much more complex and greater in number. It means that such a feature will affect even more the creation and destruction of components under certain circumstances.

And so on. On the other side, benefits are arguable. Mainly because there are other if-less approaches to use to obtain the same result and EnTT already offers all what is needed for them.
Because of that, I don't think I'll work more on it in future. I won't event merge it on master any time soon probably. Reasons are:

As I said, the same result can be achieved using if-less addictive strategies.

I don't need such a feature (because of point 1, that is the way I did it so far), therefore I prefer to avoid to develop and to have to maintain something I won't use.

Performance degrade a bit on some features and the codebase becomes more complex for no real benefits (it means that it doesn't allow you to do something you cannot do right now, it adds just another way to do it).

Unless someone pops out and gives me good reasons to proceed, I'll close the issue tomorrow as won't fix.

As discussed with @vblanco20-1 on gitter, we can probably do something for the common case and just don't support all the others.
I reopened the issue so as to keep track of it.
In particular, something like this would work:
registry.persistent_view<A, B>(exclude<C>);

Put aside the syntax that will probably change a bit, these are the constraints:

Available only for persistent views (it works also for standard views probably, still to look into them).
Negative only views won't be supported.

Construction and destruction of components are still affected to some extents, but the boilerplate isn't that much.
Any thought?

Please, take a look at the last commit (branch experimental). Feature still to be documented.

Added a few notes about filters to the documentation. I'm almost ready to merge.
I'll wait for feedback for another couple of days, mainly because I'm out of home during the weekend. :smile:


How to output() correctly?

This works:
<?php

include 'ImageResize.php';
include 'ImageResizeException.php';

$image = new \Gumlet\ImageResize('img/test.jpg');

$image->resizeToWidth(170);
$image->output();

?>

This does not:
<?php

include 'ImageResize.php';
include 'ImageResizeException.php';

$image = new \Gumlet\ImageResize('img/test.jpg');

$image->resizeToWidth(170);

?>

<!doctype html>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Hello, world!</title>

  	<img src="<?php $image->output()?>"> or just <?php $image->output()?>

The screen just gets black...

@mike0liveira, thank you for your reply.
Can you provide the php-image-resize version?
Thanks.

@mike0liveira, can you provide the sample image that you use?
Thanks.

Just a regular wallpaper from windows, but i tested with others imgs, like personal pics, always the same...
from the first code:

second one, with the html code:

@mike0liveira, thank you for your reply.
The $image->output() will output the image binary and the src should set the image path, not image binary.
If you want to present the image, please use the base64_encode to encode binary firstly.
Try this:
include 'ImageResize.php';
include 'ImageResizeException.php';

$image = new \Gumlet\ImageResize('img/test.jpg');

$image->resizeToWidth(170);

// The file
$filename = 'test.jpg';
$image = new ImageResize($filename);
$image->resizeToWidth(70);
$binary = $image->output();

echo '';

Thanks.

not work, the image is rendered before hits the echo...

dont work, the img is rendered before hits the echo...

@mike0liveira, I've updated the sample code, please try again.
It's worked fine for me.

You need to use ->getImageAsString() if you want to capture the result in a string.

Try this code:
<?php

include 'ImageResize.php';
include 'ImageResizeException.php';

$image = new \Gumlet\ImageResize('img/test.jpg');

$image->resizeToWidth(170);

?>

<!doctype html>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Hello, world!</title>

  	<img src="<?php 'data:image/jpeg;' . base64_encode($image->output()) ?>">

well i guess u are confuse...
thats is what happen:

@Droeftoeter, thank you for your reply.
Actually it's not worked fine and presents the blank page.
My latest sample code worked fine for me :).

@mike0liveira, your sample code is wrong.....You have the unused echo in img tag.
Please refer my latest sample code again.

exactly as yours

the same

@Droeftoeter, after checking your latest sample code, it presents the image binary directly on page.
@mike0liveira, do you want this approach?

@peter279k I've fixed the sample code in my comment.
If you want to show the resized image on a page you have 3 options:

Store the image in a publically accessable file and refer to that inside the -tag ()
Use the ->getImageAsString() to capture the output in a string, then base64_encode that and create a Data URI and use that as the src-value. ()
Make the src refer to another PHP file which will ->output() the image. ()

@Droeftoeter, exactly that approach is good enough!

@Droeftoeter, your latest sample code still output the image binary directly on web page...

SOLUTION:

Make the src refer to another PHP file which will ->output() the image. (img src=anotherfile.php)

imgoutput.php
<?php

include 'ImageResize.php';
include 'ImageResizeException.php';

$image = new \Gumlet\ImageResize($_GET['imgid']);

$image->resizeToWidth(170);
$image->output();

?>

yourhtmlpage.php
<!doctype html>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Hello, world!</title>

TY U ALL, whe have a resize on the fly...

I glad you've solved your problem :).


redpanda-chart: improving tls cert testing

What would you like to be added?
We wish to expand tls cert testing to cover the following:

Creating custom certs  for both internal and external listeners
Creating custom certs for external listeners but use cert-manager for internal users
Creating custom certs for intener listeners but use cert-manager for external users
Creating cert-manager cerst for internal and external listeners

We will need to create custom certs and apply them to a cluster, they should be available before deploying redpandas.
We also need a way to test via nodeport to ensure that the right certs are being applied.
Why is this needed?
We need to have confidence that we are handling certificate creation properly and that the listeners are behaving as intended.

With some convention we could add CI step in Github action to create namespace with correct cert-manager certificates or plain Kubernetes Secrets that will hold certificate.


Which MacOSX Version is Optimal for this installation ?

Which MacOSX Version is Optimal for this installation ?
I'm using in Sierra(MacOSX 10.12.x), But There is problems with your manual.

me too. Did you finally work it around?


What exactly does choices return?

I'm using choices to create a collection from a sharepoint choice column, and it appears to create an object that looks like this:
[ { '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id:IdOfOption,Value:ValueOfOption}]
However, when I use this in a ForAll functions, and I try to insert the Id field I get an error, identifier not found.

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

ID: 70491d54-3aae-1104-bbe2-4162b34e4fb2
Version Independent ID: 52ed1d09-e95f-4bb4-ac9e-cc3481cb7c93
Content: Choices function - Power Apps
Content Source: powerapps-docs/maker/canvas-apps/functions/function-choices.md
Service: powerapps
GitHub Login: @gregli-msft
Microsoft Alias: gregli

As the docs state: The Choices function returns a table of the possible values for a lookup column.
I'm not sure where you are seeing the @odta.type column, perhaps a network trace of Monitor.  That column is internal only and shouldn't be visible when authoring an app and won't be available as a column when writing a formula.
Here's an example of looking for the possible values for a Choices field in SharePoint using Collect( a, Choices( 'My List'.'Choices Column' ) ):

And the SharePoint list definition:

When collecting the SharePoint list with Collect( b, 'My List' ), the value for the column will appear as a record or table, depending on if supports multi-select or not (this example does not):

And we can read the first value:


Exception occurs when subject is not provided

It happens due to this line.
https://github.com/Woile/commitizen/blob/master/commitizen/cz/conventional_commits/conventional_commits.py#L29
In cz-cli, they simple ignore it and generate an empty commiit.

I like your idea more, but it seems to me that we can handle the exception in a better way.

Yeah, to me it doesn't make sense if no subject is provided. Wanna make a PR to catch the filter errors?

🙆♂

In the current implementation, the NoSubjectException is an exception only for ConventionalCommitsCz. Thus, it does not make sense to me catch this exception in commands/commit.py. Maybe we can add a error.py under cz/ which contains all the possible excepction and a base exception like CommitzenException so that catching CommitzenException in commands/commit.py would make more sense. What do you think about this idea?

I like the idea, I would call the file exceptions.py though

Thanks for the help @Lee-W I'm closing this issue now


Inlined subobject expand toggle button

Fixes https://github.com/pyviz/panel/issues/308

Codecov Report

Merging #329 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #329      +/-   ##
==========================================
+ Coverage   89.53%   89.54%   +0.01%
==========================================
  Files          84       84
  Lines        6784     6811      +27
==========================================
+ Hits         6074     6099      +25
- Misses        710      712       +2

Impacted Files
Coverage Δ

panel/param.py
92.18% <100%> (+0.06%)
:arrow_up:

panel/tests/test_param.py
100% <100%> (ø)
:arrow_up:

panel/pane/markup.py
92.7% <0%> (-0.35%)
:arrow_down:

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 f90d5c2...eebb030. Read the comment docs.


English course issue with responses and their feedback

There is a few responses for the English quizzes where in the feedback of a wrong response there is a word in backticks but it is translatable in the bad response, these feedbacks or the related responses should be reviewed and reworded I believe.
https://github.com/freeCodeCamp/freeCodeCamp/blob/db5854ecf6900af4ce952b4d2bd536ea75aa9671/curriculum/challenges/english/21-a2-english-for-developers/learn-conversation-starters-in-the-break-room/657dca763bc23c5fc3398d95.md?plain=1#L25-L29
https://github.com/freeCodeCamp/freeCodeCamp/blob/db5854ecf6900af4ce952b4d2bd536ea75aa9671/curriculum/challenges/english/21-a2-english-for-developers/learn-conversation-starters-in-the-break-room/657dca763bc23c5fc3398d95.md?plain=1#L33-L37
https://github.com/freeCodeCamp/freeCodeCamp/blob/db5854ecf6900af4ce952b4d2bd536ea75aa9671/curriculum/challenges/english/21-a2-english-for-developers/learn-conversation-starters-in-the-break-room/657dca763bc23c5fc3398d95.md?plain=1#L45-L49
https://github.com/freeCodeCamp/freeCodeCamp/blob/db5854ecf6900af4ce952b4d2bd536ea75aa9671/curriculum/challenges/english/21-a2-english-for-developers/learn-conversation-starters-in-the-break-room/657dd047e755e37d58f5084f.md?plain=1#L30-L34
https://github.com/freeCodeCamp/freeCodeCamp/blob/db5854ecf6900af4ce952b4d2bd536ea75aa9671/curriculum/challenges/english/21-a2-english-for-developers/learn-conversation-starters-in-the-break-room/657dd047e755e37d58f5084f.md?plain=1#L41-L46
cc/ @DanielRosa74 @nieldakarla

On it, @ilenia-magoni. Thanks for adding these as a PR.

Proposed Fix:
The backticks should be removed from normal English words and phrases in the feedback to clarify the text and avoid issues during translation or interpretation. For example:
Instead of:
Definitely is too certain compared to probably.
It should be:
"Definitely" is too certain compared to "probably."
Breakdown of Specific Cases:
Definitely next Monday.
Feedback: "Definitely is too certain compared to probably."
Fix: Change backticks to quotes: "Definitely is too certain compared to probably."
Maybe in two weeks.
Feedback: "Maybe in two weeks suggests less certainty and a longer timeframe than indicated by probably."
Fix: Use quotes: "'Maybe in two weeks' suggests less certainty and a longer timeframe than indicated by 'probably.'"
On Friday.
Feedback: "On Friday is not mentioned and does not align with probably next Monday."
Fix: Replace backticks with quotes: "On Friday is not mentioned and does not align with probably next Monday."
Absence of parks.
Feedback: "Absence suggests that there are no parks."
Fix: Replace backticks with quotes: "'Absence' suggests that there are no parks."
Many parks.
Feedback: "Many indicates a larger quantity, which doesn't match the context."
Fix: Replace backticks with quotes: "'Many' indicates a larger quantity, which doesn't match the context."
This rewording will ensure that the feedback remains clear and consistent while avoiding unnecessary formatting that might confuse learners or translators.

@DanielRosa74 did you ever made these changes?

Changes applied to files 657dca763bc23c5fc3398d95.md and 657dd047e755e37d58f5084f.md.
Thanks for pointing it out.


UTM UUID is handled as a string instead of binary data

The getUasIdAsString method of the Identification class handles all IDs as strings, but according to the ASTM remote ID standard (under BASIC ID MESSAGE <IP_ADDRESS>) UAS ID Type 3 (UTM UUID) should be handled as a 128-bit UUID - binary encoded with network byte order.

You are correct. That is something that is not properly handled in the receiver implementation at the moment. Based on the value of IdTypeEnum, it should handle the uasId either as ASCII or binary data. If you have a good suggestions on how to correct this, please upload a Pull Request.

Here's one method/suggestion (courtesy stack overflow) :
import java.nio.ByteBuffer;
import java.util.UUID;

public static UUID getUUIDFromBytes(byte[] bytes) {
    ByteBuffer byteBuffer = ByteBuffer.wrap(bytes);
    Long high = byteBuffer.getLong();
    Long low = byteBuffer.getLong();

    return new UUID(high, low);
}

This will return a UUID object.  .toString() will return the "common looking" UUID string in the 4-2-2-2-6 format.


[Go] Every API function returns the HTTP response

That is, it returns the undecoded HTTP response in addition to the decoded HTTP response.
I'm using swagger-codegen because I don't want to mess with HTTP. I realise that the HTTP response might be useful in error situations, but then put it in the error value.
If the client library is doing its job, then the HTTP response has no place being returned for successful API calls.

Fixed when I rolled main forward to issue/http-response


Whitespace issue with default help text

Please answer the following questions before submitting your issue. Thanks!
What version of DCOS + DCOS CLI are you using (dcos --version)?
If DCOS CLI version < 0.4.5, DCOS version can be found at http://dcos_url/dcos-metada/dcos-version.json
Binary CLI
What operating system and version are you using?
Mac OS X
What did you do?
If possible please provide a recipe for reproducing.
./dcos --help
What did you expect to see?
What did you see instead?
➜  dcos-native ./dcos --help
Description:
    The Mesosphere Datacenter Operating System (DCOS) spans all of the machines in
your datacenter or cloud and treats them as a single, shared set of resources.

Usage:
    dcos [options] [<command>] [<args>...]

Options:
    --debug
        Enable debug mode.
    --help
        Print usage.
    --log-level=<log-level>
        Set the logging level. This setting does not affect the output sent to
        stdout. The severity levels are:
        The severity level:
        * debug    Prints all messages.
        * info     Prints informational, warning, error, and critical messages.
        * warning  Prints warning, error, and critical messages.
        * error    Prints error and critical messages.
         * critical Prints only critical messages to stderr.
    --version
        Print version information

Environment Variables:
    DCOS_CONFIG
        Set the path to the DCOS configuration file. By default, this variable
        is set to ~/.dcos/dcos.toml.
    DCOS_DEBUG
        Indicates whether to print additional debug messages to stdout. By
        default this is set to false.
    DCOS_LOG_LEVEL
        Prints log messages to stderr at or above the level indicated. This is
        equivalent to the --log-level command-line option.
    DCOS_SSL_VERIFY
        Indicates whether to verify SSL certificates for HTTPS (true) or set the
        path to the SSL certificates (false). By default, this is variable is
        set to true. This is equivalent to setting the `core.ssl_config` option
        in the DCOS configuration file.

There's an extra space before *critical - which looks odd.

Woohoo 🚀