Check example showcase patches in CI

What problem does this solve or what need does it fill?
When PRs are merged, the "example-showcase patches" can go stale and break tooling that relies on example-showcase.
For example, the automated screenshot diffing happening at https://thebevyflock.github.io/bevy-example-runner/. I also hit this recently in my own local screenshot diffing infrastructure.
Motivated by:
#12440
#11596
#11058
What solution would you like?
Add CI that checks to make sure the patches apply.
What alternative(s) have you considered?
Add CI-only rust code / APIs for doing the overrides that these patches are doing.

I'm thinking something like git apply path/to/foo.patch, and then checking if it exits with a non-zero code. This sounds quite easy to do in Github Actions.
Should this be included in the ci tool, or just Github Actions?


Add a failing test for annotated tag functions

This is a failing test for https://code.djangoproject.com/ticket/25422
I added more detail there. Happy to copy it here if that's more practical!
Cheers,

Sorry, but Django 1.8 won't be getting Python 3.5 support.

@timgraham That's fair (albeit undocumented), but function annotations aren't actually a Python 3.5 feature. They were added in PEP 3017, and shipped with Python 3.0. Type hinting was added in Python 3.5, but that's just (one) way of using annotations.
E.g., the test I provided fails under Python 3.2 just as well.
Cheers,

Sorry I got that wrong. Does it work on any older Django versions? If it's not a regression, then a fix probably doesn't qualify for a backport per our supported versions policy.


Allow Angular 1.3 as dependency

I'm running Angular 1.3 with this library. Haven't notice any problems so far.

Hi @websirnik Thanks. Could you also fix devDependencies?


Pixi.js states and panels?

I see classes for BasePanel and BaseState that use Easel.js (in easels-states.js), but I can't find similar for Pixi.js. Is there such?

There is not - they were created because we had made and were making a number of EaselJS games that were set up basically the same, but the PixiJS games were created with more varied needs. The stuff in easeljs-states module don't do anything that is particularly special anyway.

Ah, cool; glad I wasn't just overlooking something. Mainly I was searching for a straightforward way to be hooked into the same asset loading and scaling flow using Pixi as the renderer.

Yep, that stuff is built into the regular BaseState with the preload and scaling state options.


thread 'main' panicked at 'Error in Surface::configure: invalid surface'

As I cargo run --package counter inside ~/iced/examples , the following error occurs.
thread 'main' panicked at 'Error in Surface::configure: invalid surface', /home/username/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.12.0/src/backend/direct.rs:214:9

What should I do for next?

Duplicate of #1129.

I've also resolved that problem with sudo apt install -y nvidia-driver nvidia-cuda-toolkit


Bower 0.8.5 seems to be stuck

I updated from 0.8.0 (I guess) or later to 0.8.5 and bower seems stuck when i do a simple bower install. It happens on my machine and with my cloudbees hosted jenkins.
I tried to do a bower clean-cache, a bower install --force and a rm -rf ~/.bower with no luck.
It always gets stuck on copying instructions such as :
bower copying /home/bigx/.bower/cache/require/34f0965def4ee39276726c265c9162b6

or any other lib, there is no pattern.
I've got the following when I try to reinstall bower (only on my machine not on cloudbees):
npm WARN unmet dependency /usr/lib/node_modules/modulus/node_modules/prompt/node_modules/winston requires<EMAIL_ADDRESS>but will load
npm WARN unmet dependency /usr/lib/node_modules/modulus/node_modules/prompt/node_modules/pkginfo,
npm WARN unmet dependency which is version 0.3.0

And here is my component.json
{
    "dependencies": {
        "angular": "~1.0.5",
        "requirejs": "~2.1.4",
        "jquery": "~1.9.1",
        "angular-sanitize": "~1.0.5",
        "foundation": "http://foundation.zurb.com/files/foundation-3.2.5.zip",
        "less.js": "~1.3.3",
        "font-awesome": "~3.0.2"
    },
    "devDependencies": {
        "angular-mocks": "~1.0.5"
    }
}

Any idea? Any debug options?
Regards,
Xavier

I'm still experiencing this issue. v0.10.26 on Ubuntu 12.04 and am unable to locate a solution. Initially I ran is as a user sudo su as root, and added the --allow-root option, then tried again as non-root without that option and it still hangs. The repo it's accessing is git://github.com/twbs/boostrap.git

Have you generated your ssh public/private key and registered the public key in the github server already??? Maybe git is using ssh and the authentication is failing...
Regards

just tried from visual studio code and still stucks , its also stuck in the terminal , i think this project is dead

0.8.5 is not supported for a long time


Ability to disable the automatic zoom out when pinch end.

Is your feature request related to a problem? Please describe.
I'd like to zoom in very deep in the image, but as the pinch end, the original gets back its original size, so I can't zoom more.
Describe the solution you'd like
An option to disable the revert back to original size.
As a bonus, an option to double tap to zoom between scaledToFit and real size (100%).

Thank you for the suggestion. I have begun implementing this on the add-zoom-options branch. It is very buggy right now, as I am still figuring out how to calculate the new anchor position, along with some animation bugs.

Hi, I'm interested in this feature too. How can I test this branch locally?


feat: added top deals

Title and Issue number

Title : Added top deals section
Issue No. :#374
Code Stack :
Close #374

Description

Video/Screenshots (mandatory)

Type of PR

[x] Feature enhancement

Checklist:

[x] I have performed a self-review of my code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[x] I have gone through the  contributing.md file before contributing

Additional context:

##Are you contributing under any Open-source programme?

[x] I am contributing under GSSOC'24
[ ] I am contributing under VSOC'24

Sure making new issue


Update package.json to include the repository key

With the rise in supply chain attacks and OSS dependencies being used as a attack vector, Microsoft is working with our ecosystem partners, such as the Linux Foundation's OpenSSF, to enable OSS consumers to track packages back to their public sources.
We've identified that the following packages published to NPM do not report where sources can be found, typically accomplished by including a link to your GitHub repository in your package.json REPOSITORY field. This PR was created to add this value, ensuring future releases will include this provenance information.
Published NPM packages with repository information:
*@convertkit/slate-keymap

Is there anything that is needed to land this pull request ?

ls there anything else I can do to land this pull request ?

Is there anything that is needed to land this pull request?


Bug - Controller Mapping

Issues with controller mapping via backbone. Possibilty to set L3 or R3 as mappable for Menu button. Other users are reporting issues via DualShock or Xbox wireless controller as well with buttons resetting after gameplay. I do not experience this issue but mine is backbone and not connected via Bluetooth
iPhone 13 Pro Max
iOS 18 (dev beta 1)

I’ll need to get a Bluetooth controller to test those again. Their button
mappings are resetyobg after each game? I’ll get L3 and R3 mapped in the
next update. Thank you, much appreciated!
On Fri, Jun 21, 2024 at 11:48 AM JD9871 @.***> wrote:

Issues with controller mapping via backbone. Possibilty to set L3 or R3 as
mappable for Menu button. Other users are reporting issues via DualShock or
Xbox wireless controller as well with buttons resetting after gameplay. I
do not experience this issue but mine is backbone and not connected via
Bluetooth
iPhone 13 Pro Max
iOS 18 (dev beta 1)
6B85F358-F748-4632-BDE3-608208B73297.png (view on web)
https://github.com/zodttd/GammaSupportDocs/assets/164794137/e6197d6d-7c99-4d2a-9aaf-dc6ca023d73b3EFFEBB0-DB28-4F58-BE98-E3AFCF6CA6FC.jpeg
(view on web)
https://github.com/zodttd/GammaSupportDocs/assets/164794137/d3943a14-4c06-4435-89b0-7213ba99357bBF7D1557-495D-48AB-B299-D204A5C4A0E5.png
(view on web)
https://github.com/zodttd/GammaSupportDocs/assets/164794137/3e4cc8b2-018b-4fe8-9692-969580b64ee6
—
Reply to this email directly, view it on GitHub
https://github.com/zodttd/GammaSupportDocs/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAAUIO32BL32S4XII4KXI3ZIRDOLAVCNFSM6AAAAABJWHRDF6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3DMOBQHAZDKMQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I just released v1.5.4 that adds L3 R3 button mapping. It should be available in about an hour. It's a bit tricky to test mappings with all the devices so if you notice anything wrong with it, just let me know. I'll look into the bluetooth resetting issue next, as I still need to get a controller in-hand to test with.

Update 1.5.4 resolved issues with button remapping. Will reopen if bugs present with Bluetooth connectivity.


comments style

The ### comments are a bit loud. It isn't in markdown but in the code.  Python comments describing functions should look like:
def func(self):
"""This is a python function."""
and with additional param docs and return value docs when appropriate to have more than a one-liner (when not obvious).  There are some good examples in the watson python SDK and also here https://github.com/IBM/watson-online-store/blob/master/watsononlinestore/watson_online_store.py

Changed the comments style.

Removed in commit 67022be2452db9694e153626fce3469113b99446


Add config for maximum hearts added

Would be better for balancing to not be completely unkillable. In my modpack, I'd like for players to only be able to double their hearts, for instance.

Could I ask specifically how you mean, do you mean individual stack sizes of hearts/canisters or do you mean the number of tiers available?

I think ideally you'd make the maximum added hearts configurable instead, since that's more relevant to gameplay balance.


txn is null

Hi there,
Is Model.transaction supported?
It seems that txn is always null.
Model.transaction(function (txn) { // txn is null });

Thanks!

It looks like the comment here is not correct.
I can obtain a knex transaction object by doing:
Survey.transaction().then(function (txn) { // txn is knex transaction object });
But if I perform any queries inside of the promise callback, I get an error:
Knex:warning - calling knex without a tableName is deprecated. Use knex.queryBuilder() instead.
I'm still digging in, but any help would be appreciated.

Just realized that Model.transaction(function (err, txn) {  }); will work - forgot to expect err parameter as I was following the example in the comment. Whoops.
But I guess this isn't implemented (besides grabbing txn and making a query using knex outside of Waterline.)
https://github.com/waterlinejs/postgresql-adapter/blob/master/lib/adapter.js#L450 Should be calling transacting() if queries are to respect a transaction.
@tjwebb Do you have ideas on how you want this to be implemented? I can make a pull request when I have time.


Where can I find my Client ID and Client secret.

I've deployed firebase functions.
Where can I find Client ID and Client secret
Instructions are saying next:

Client ID:: placeholder-client-id
Client secret:: placeholder-client-secret

The client ID and secret are provided by you as the developer for your OAuth implementation. As this is a sample, you should be fine with using the placeholders.

@Fleker Thanks, so I will just copy-paste the "placeholder-client-id".
One more question, does the instruction below means that I should go to the Google Home App and just simply add the device from the list?

Trigger a SYNC request by linking the placeholder smarthome provider to your account in the Google Home app.

Yes that step means you add the device through the Google Home app.

@Fleker Thanks, closing the issue now.

@Fleker Can you help me with this error

Error: Forbidden
Your client does not have permission to get URL /authorize?redirect_uri=https%3A%2F%2Foauth-redirect.googleusercontent.com%2Fr%2Fhome-300bd&client_id=placeholder-client-id&response_type=code&state=AFVGnUGxgfsqVpMyJUXH404ET8xvoxkUQlJ9sc0EKKNkakwJAS1p2541fE3NAo_cSBJlmpF8TjRViAn-nRcfOuNzEmVjXYhU46Aatk8ZULRkwBdlGQ-O3GU2YX7qH-P_5vDyqgp7TzZvZIlmzbylTK7H5RStNj_wRfWDvK2qQpGpu7E-q7aB-OnSokwl05yilibH1o0kK0r6_rlFYtD__JFFlowV8uFLH9yziHXuGJkfP1DQCMSeIApeyuVlIrFT3iv88MWWas5b3Hb8joQrxsofDUH6u2dNSrWjrvBpJpW_YAZJx6np1kxraRL6FjB4BkMFn406GOpMyXL8NB_l4Bbo9cvRDNd0Nd_BTb45fvymfp3txrFjeI183XzPTjhSfqn72SyDURj_NQbna2oL8FklM9NcI4302rVcnSho4RnAbQG4xtuBFXnQ_j-OGSrBhnqDqZb6uct63n7LMpqBfp5wx3E2BeI9DXIO6UiULKHY-KbXNMqgWDWvbuYvhczUj5mqjPssvsiEe3kX4Yo2wH5Dk9L2TaAUgw&user_locale=en-GB from this server.

I'm getting it when I try to add device to Home Smart app.

How do you arrive at that error?

From Smart Home Android App, when I go to Add->Set up device and select my device.

Have you changed the URL for auth and token in the console?

Yes. You can see it in the picture below:

Hi Milan991,
I had the same issue.
After following this instruction (https://cloud.google.com/functions/docs/securing/managing-access-iam#allowing_unauthenticated_function_invocation), I was able to add the device to my Google Home App.
kind regards
Marc

@marcnesello thanks for figuring a workaround, it seems like a consequence of a recent update to cloud functions:
From https://cloud.google.com/functions/docs/securing/managing-access-iam#allowing_unauthenticated_function_invocation

Note: As of January 15, 2020, HTTP functions require authentication by default. You can specify whether a function allows unauthenticated invocation at or after deployment.

Looks like the restriction might be implemented sightly differently from Firebase functions.:
From: https://firebase.google.com/docs/functions/callable#write_and_deploy_the_callable_function

Caution: New HTTP and HTTP callable functions deployed with any Firebase CLI lower than version 7.7.0 are private by default and throw HTTP 403 errors when invoked. Either explicitly make these functions public, or update your Firebase CLI before you deploy any new functions.

@Milan991 can you confirm if updating the firebase-tools==7.7.0 fixes the issue for you?

@marcnesello Thanks, that have solved my issue.
@proppy I've solved issue by @marcnesello workaround. I had error with newest version of firebase-tools.


Need Subtitle Feature

Could you please implement the subtitle feature for this library?

not implement for the near term ，but U can consider the ExoPlayer that support  the subtitle

Okay


Context API implement

Context API implement
Use pub-sub to implement Context API, better React compatibility.
import { h, render, createContext, useContext } from '../../src'

const Context = createContext(null)

function App() {
  return <Context.Provider value={'hello world'}>

  </Context.Provider>
}

function A() {
  const context = useContext(Context)
  return
{context}

}

render(<App />, document.body)

Stare at speculative mode

Codecov Report

Merging #139 into master will decrease coverage by 4.13%.
The diff coverage is 20%.

@@            Coverage Diff             @@
##           master     #139      +/-   ##
==========================================
- Coverage    97.5%   93.36%   -4.14%
==========================================
  Files           7        7
  Lines         360      377      +17
  Branches      110      114       +4
==========================================
+ Hits          351      352       +1
- Misses          8       21      +13
- Partials        1        4       +3

Impacted Files
Coverage Δ

src/index.js
100% <ø> (ø)
:arrow_up:

src/hooks.js
75% <16.66%> (-22.92%)
:arrow_down:

src/reconciler.js
97.76% <50%> (-0.55%)
: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 46214a0...e46c7a8. Read the comment docs.

I opened another PR


Travis: CodeClimate usage with after_success

This PR adds the after_success hook to Travis builds, to use the supported way of using CodeClimate.
Read more at https://docs.codeclimate.com/v1.0/docs/travis-ci-ruby-test-coverage.
Issue: Cannot post results: environment variable CODECLIMATE_REPO_TOKEN must be set. Is there a problem with the secure ENV var, somehow?

There is a note in this page: https://docs.codeclimate.com/v1.0/docs/travis-ci-ruby-test-coverage
addons:
  code_climate:
    repo_token: <token>
# regular test configuration
after_success:
  - bundle exec codeclimate-test-reporter

Somehow, the encrypted ENV var does not get there.

See: https://docs.travis-ci.com/user/pull-requests/#Pull-Requests-and-Security-Restrictions

@laserlemon Thanks for a great link.

@olleolleolle I'm going to take your primary commit and move it to a new PR so we can properly test the implementation. It sounds like a PR for a branch on the same repo will properly set secure ENV variables. Stand by! And thank you! 👏

@laserlemon Now were down to "start simplecov, avoid calling CodeClimate if not on a real branch".

@olleolleolle Closing in favor of #143. I don't mind if we always try to send stats to CodeClimate. If we're not on a repo-owned branch that will expose the secure ENV variable, it'll just skip that step quietly anyway.


How to use hinting like vimium?

cant figure out how to use hinting

Hi.
In default, you can call the hinting feature with F (in key, Shift + F), which you can try after the first launch of win-vind.
The default initial mode is called GUI Normal, which absorbs all inputs, but GUI Insert which does not. You can switch between GUI Normal and GUI Insert by pressing ESC+Left and i respectively.
If you only want to use the hinting function, you can easily do it by following the steps.

Open the key-config file, which locates ~/.win-vind/bindings.json by installer or config/bindings.json by zip.
Jump to line 1396. In Vim, you can jump to the line by /easy_click command.
Rewrite the value of guii(GUI Insert Mode).  In the following example, we can call the feature with Right Alt -> Right Ctrl.   {
     "name": "easy_click",
     "guin": ["F"],
     "guii": ["<ralt><rctrl>"],
     "guiv": [],
     "edin": [],
     "edii": [],
     "ediv": [],
     "edivl": [],
     "cmd": ["ec"],
     "en": "EasyClick",
     "jp": "EasyClick"
 },

Please refer to How to Use/Customization/Key Config.
Input :set command, or right-click on the tray and select Preference.
Settings/Common/Initial Mode -> GUI Insert and [   OK   ].

If you want more detailed information about EasyClick, please see the CheatSheet or let me know.

Hi.
In default, you can call the hinting feature with F (in key, Shift + F), which you can try after the first launch of win-vind.
The default initial mode is called GUI Normal, which absorbs all inputs, but GUI Insert which does not. You can switch between GUI Normal and GUI Insert by pressing ESC+Left and i respectively.
If you only want to use the hinting function, you can easily do it by following the steps.

Open the key-config file, which locates ~/.win-vind/bindings.json by installer or config/bindings.json by zip.
Jump to line 1396. In Vim, you can jump to the line by /easy_click command.
Rewrite the value of guii(GUI Insert Mode).  In the following example, we can call the feature with Right Alt -> Right Ctrl.   {
     "name": "easy_click",
     "guin": ["F"],
     "guii": ["<ralt><rctrl>"],
     "guiv": [],
     "edin": [],
     "edii": [],
     "ediv": [],
     "edivl": [],
     "cmd": ["ec"],
     "en": "EasyClick",
     "jp": "EasyClick"
 },

Please refer to How to Use/Customization/Key Config.
Input :set command, or right-click on the tray and select Preference.
Settings/Common/Initial Mode -> GUI Insert and [   OK   ].

If you want more detailed information about EasyClick, please see the CheatSheet or let me know.


CSS not applied to SVGs

See this demo for an illustrated example.
When inline SVGs are styled using CSS the properties are not rendered.
My example above shows how an SVG that includes a defined fill property as:
<path fill="red" ...

But is then overridden in the browser using the CSS:
path {
    fill: green;
}

will render in the browser as a green path but once converted to a canvas using html2canvas the property is lost and is instead rendered as red.

It looks like this can be solved by explicitly applying svg styles to the SVG and each of its nodes using getComputedStyle. See this updated demo.
For my use case, all of my styles are defined in my stylesheets including the SVG dimensions. So iterating over each SVG in my document and applying:
svg.setAttribute('height', svg.clientHeight);
svg.setAttribute('width', svg.clientWidth);

and then over each node in SVG I can apply:
node.setAttribute('fill', style.getPropertyValue('fill'));
// stroke, stroke-width, and any other SVG properties will also be needed

I then remove all of the changes I made after the canvas is rendered so that media queries and hover states will be rendered as expected again.
It would be great if a solution, this one or a better one if it exists, was incorporated into html2canvas.

@G0dwin, I'm interested in trying this workaround, but in the link you provided to the updated demo, I don't see the problem being resolved:

In Chrome, I still see red instead of green, plus I see extra jpeg artifacts
In Firefox, I see a mostly-white jpeg
In Edge, I see black instead of green

The demo seems to link directly to the master branch of this repo, so maybe changes in html2canvas since your last post have affected the demo?

I got this working using computed-style-to-inline-style and one workaround https://github.com/lukehorvat/computed-style-to-inline-style/issues/2
computedToInline(element, true);

for (const attribute of ["width", "height"]) {
    for (const rect of element.querySelectorAll("svg ["+attribute+"]")) {
        rect.style[attribute] = "";
    }
}

html2canvas(element).then(function(canvas) {
   // ...
});

Here's a version of the fix that does not rely on external libraries:
function applyStyleToSvgTrees(container) {
  for (let svg of container.getElementsByTagName('svg')) {
    for (let el of svg.getElementsByTagName('*')) {
      s = getComputedStyle(el);
      for (let key in s) {
        let prop = key.replace(/\-([a-z])/g, v => v[1].toUpperCase());
        el.style[prop] = s[key];
      }
    }
  }
}

html2canvas(document.body, {
  onclone: (clonedDoc) => {
    applyStyleToSvgTrees(clonedDoc);
  },
}).then(canvas => {
  document.body.appendChild(canvas);
});

Try here with jsFiddle

@Jerther you saved my day, thanks a lot!
I confirm this works, here's a Typescript version if anyone needs it:
function applyStyleToSvg(container: Element | Document) {
    for (let svg of Array.from(container.getElementsByTagName('svg'))) {
        for (let element of Array.from(svg.getElementsByTagName('*')) as Array<SVGElement>) {
            const computedStyle = getComputedStyle(element);
            for (let property of Array.from(computedStyle)) {
                element.style.setProperty(property, computedStyle.getPropertyValue(property));
            }
        }
    }
}

@Jerther  & @PawelBaranowski
I confirm the solution you guys shared works for me!!!
 "html2canvas": "1.0.0-rc.1"


-Wl,-rpath inconsistencies

Commentary in Configure line 551 suggests that -Wl, options are meant to end up in LDFLAGS, while in reality they go to LDLIBS. Former is correct one.
-Wl is primary choice for specifying rpath. util/shlib_wrap.sh.in assumes that rpath variable resides in ex_libs[?]. So condition is never met.
As for rpath in util/shlib_wrap.sh.in. Relevant commit says "there are some configuration options that do not work with preloaded OpenSSL libraries, such as sanity checking ones." The message is confusing, at least I fail to figure out what is sanity checking option? Or are we talking about sanitytest? As far as sanitytest (or any other test) go, I fail to reproduce the problem. And I fail to imagine how it would fail... Well, shlibloadtest actually fails, but that's not what message suggests. Besides, one can actually question "legitimacy" of shlibloadtest. I mean what does attempt to load shared library you are already linked with supposed to prove? If it's about not being linked with libssl, then maybe test should exercise libssl alone. BTW, is it possible to fix the shlibloadtest if I configure with -rpath and reinstate pre-loading? Yes! All I need to do is to point target libraries by actual path, e.g. ../../libssl.so, and not by path-less libssl.so. Actual path is actually the Right Thing to do in either case.
On more general note about rpath. I understand the problem with it is that on Linux it takes priority over LD_LIBRARY_PATH. One can argue if it's a good or bad thing, but question is why was it assumed that same line of reasoning applies to all platforms? I mean line of events seemed to be "we decide that rpath is no good for Linux", hence "let's remove rpath on all platforms". Except on Mac OS X[?] apparently...

The message is confusing, at least I fail to figure out what is sanity checking option?

Oh! Next second after I've pushed I realized that it's about sanitizer builds. Well, sanitizer builds are not production, so one can wonder if one has to punish production builds... Can't one simply say [and enforce] that sanitizer builds has to be no-shared? Hmm, and on travis no-shared is passed along at least with ubsan and asan...

The main argument was actually that it's not our job to enforce rpath, but should be a user / packager choice. However, you seem to have found some bugs, those should be fixed of course...

For reference. LD_LIBRARY_PATH (or its equivalent) has precedence over -rpath (or its equivalent) at least on Solaris, AIX, HP-UX, contemporary FreeBSD.

The main argument was actually that it's not our job to enforce rpath, but should be a user / packager choice.

CHANGES say "this was a remainder from OpenSSL 1.0.x and isn't needed any more." This ought to be the main argument, since it made to CHANGES, and it still leaves question "where it isn't needed any more" open. There was a note about /usr/local being default and being standard, but is it actually universal standard? Or just Linux (and likely BSDs)? What about Solaris, AIX, HP-UX, Mac OS X...
Packager's choice, yeah, I can accept that. Individual user who downloads source code and builds from that, not so much. In sense that such user are more than likely to appreciate automatic rpath. Of course these are effectively irreconcilable, but at least one could issue warning "don't forget about rpath" if --prefix is not /usr or /usr/local [or simply set]. But whatever...

Andy Polyakov wrote:

For reference. LD_LIBRARY_PATH (or its equivalent) has precedence over -rpath (or its equivalent) at least on Solaris, AIX, HP-UX, contemporary FreeBSD.

Search is not OS specific as --enable-new-dtags is used for elf format.
Quick and limited search shows:
Outdated  FreeBSD manual page for runtime loader is
(https://www.freebsd.org/cgi/man.cgi?query=ld.so) ?
If OS uses elf format search should be same as on Linux : DT_RPATH,
environment, DT_RUNPATH.
Solaris pages also state that rpath (-R) take precedence "A historic
alternative to specifying the -R option is to set the environment
variable LD_RUN_PATH, and make this available to the link-editor. The
scope and function of LD_RUN_PATH and -R are identical, but when both
are specified, -R supersedes LD_RUN_PATH." Quoted from
https://docs.oracle.com/cd/E23824_01/html/819-0690/chapter2-55859.html#chapter2-84569
.
Regards,
Roumen Petrov

I would argue that because GNU, /usr/local has become a fairly universal standard...

For reference. LD_LIBRARY_PATH (or its equivalent) has precedence over -rpath (or its equivalent) at least on Solaris, AIX, HP-UX, contemporary FreeBSD.

For the record, this is based on actual experiments.

Search is not OS specific as --enable-new-dtags is used for elf format.

I guess you meant to write "search is OS-specific," which is also my point here. If not, then clarify. One also has to recognize that not all platforms are ELF. Mac OS X isn't, AIX isn't, legacy HP-UX binaries aren't, ...

Outdated  FreeBSD manual page for runtime loader is

Note contemporary in "contemporary FreeBSD" :-)

Solaris ... when both are specified, -R supersedes LD_RUN_PATH."

Note that they are talking about link time, while what I'm referring to here is rather run-time linker. In the essence I question/challenge projection of Linux run-time linker "experience" to all OSes.

I would argue that because GNU, /usr/local has become a fairly universal standard...

Question was if it's universal standard from run-time linker's vendor viewpoint, not from user's perspective. In other words question is rather about out-of-box configuration of run-time linker on chosen system. Thing is that if /usr/local/lib is not part of out-of-box config, then chances are that configuring rpath would be more than appropriate.

Well, /usr/local is not part of out-of-box RedHat config(*). In other words assertion that -rpath is not needed anymore because /usr/local/lib is universally recognized run-time linker location seems to be not just projection of Linux (and BSD) experience, but projection of Debian/Ubuntu (and BSD) experience.
(*) Well, maybe it is in most recent.

#6515 suggests following for util/shlib_wrap.sh.in:
 output_off() unless grep (/-rpath/, @{$config{LDFLAGS}})

Why only -rpath, and not for example -R? Formally speaking it would be appropriate to have Configure recognize e.g. --run-path, which would be then mapped to platform-specific -rpath/-R/-Wl,-rpath,/-Wl,+b/whatever compiler option. So that above condition would check if --run-path was passed at config time, instead of -rpath in LDFLAGS. It just so happens that this section is actually required only on systems that use -rpath option. I mean Solaris specifies run-time path with -R, but since LD_LIBRARY_PATH takes precedence, one doesn't have to pre-load newly compiled shared libraries. Same for HP-UX with +b, AIX, ... [Well, Solaris is actually bad example in the context because pre-load variable is set prior this section.]
Relevant question is following. Even though check for -rpath in LDFLAGS works out, it does so incidentally. And in such case wouldn't it be appropriate to have Configure recognize e.g. --run-time option?

I just saw in Debian unstable's ld.so(8) that DT_RPATH is now deprecated, so it seems that the world is slowly converging to the use of DT_RUNPATH on ELF...  That being said, we can't toss our LD_PRELOAD hack just yet.
As for --run-path, I don't think that's a good idea.  Also, since we now handle assignments of "make variables" in configuration, and people seem to increasingly rely on that, we're going toward a future where our configuration command options become less relevant.
So I think that checking the presence of -rpath in @{$config{LDFLAGS}} should be sufficient, and if there comes a case when we need to rethink that, we take care of it then.

it seems that the world is slowly converging to the use of DT_RUNPATH on ELF...

So we can expect for example IRIX to convert too?

That being said, we can't toss our LD_PRELOAD hack just yet.

??? It's not exclusively about ELF systems. I mean whether or not it can be tossed is not tied to Linux finally adopting RUNPATH.

we're going toward a future where our configuration command options become less relevant.

??? We will always have set of options that we don't want to be overridable  by passing commonly recognized make variables such as LDFLAGS. I mean flags triggered by --run-path don't have to go to LDFLAGS. Besides, as far as things like outputoff() go, they are not affected by passing LDFLAGS to make. Because data comes from configdata.pm and not from "live" make variable...

I have no knowledge about IRIX, didn't even know that DT_RUNPATH was relevant there...

??? It's not exclusively about ELF systems. I mean whether or not it can be tossed is not tied to Linux finally adopting RUNPATH.

Isn't it?  I thought the whole DT_RPATH / DT_RUNPATH issue was an ELF issue...  but then again, I do not know why the _RLD_LIST and DYLD_INSERT_LIBRARIES hacks are needed.

??? We will always have set of options that we don't want to be overridable by passing commonly recognized make variables such as LDFLAGS.

Sorry, you lost me there...  I'm not sure why you'd want the rpath flags to be non-overridable, especially since they get triggered by the user anyway.

I have no knowledge about IRIX

It's enough to know that SGI is no more, has ceased to be, so that nothing is going to happen on IRIX.

Isn't it [exclusively about ELF systems]?

No. The DT_RPATH/DT_RUNPATH are of course ELF-specific terms, but the concept of runtime path and problem of just linked binary picking up previously installed shared libraries is not specific to ELF. That's why you can't judge whether or not that section is needed by looking at what's happening on Debian alone.

I'm not sure why you'd want the rpath flags to be non-overridable,

Because it's a choice that was not made yet. And as already said, if it's placed in user-overridable, there will be disconnect between what user passes to make and what outputoff "sees". But whatever...

No. The DT_RPATH/DT_RUNPATH are of course ELF-specific terms, but the concept of runtime path and problem of just linked binary picking up previously installed shared libraries is not specific to ELF. That's why you can't judge whether or not that section is needed by looking at what's happening on Debian alone.

Hmmm, we may be talking about different things...  The thing that I thought was unique for ELF was that DT_RPATH is used before any environment variable is used (LD_LIBRARY_PATH or other corresponding ones), and that all other implementations of the same concept only had what corresponds to ELFs DT_RUNPATH.  Correct or not?

Correct or not?

Incorrect. Question was if all other platform work like ELF-erly RUNPATH, i.e. with an environment variable overriding runtime path linked into binary. Yes, there are platforms that work like ELF-erly RUNPATH, e.g. AIX, HP-UX(*), Mac OS X (apparently). But there are platforms that work like ELF-erly RPATH, e.g. Tru64, IRIX(**).
(*) legacy HP-UX binaries, i.e. PA-RISC 1-stuff are not ELF, newer executable format is ELF with RPATH, yet it behaves like RUNPATH;
(**) well, IRIX is ELF-based and has only RPATH;

Ah!  Thanks for explaining.  (I learn something new every day)

As for --run-path, I don't think that's a good idea.

Well, it's not worse than say --enable-asan. I mean you can enable sanitizer by passing additional -fsanitize=address at config time, so why do we have --enable-asan? The only reason is because it's easier to remember and type. With this in mind --run-path is actually better idea, because it spares more biological memory. I mean people won't have to remember which options to pass on which system.

--enable-asan is special case for OpenSSL developers and only applies on a very restricted set of platforms (and at your own risk).  I don't think that compares...

--enable-asan is special case

And --run-path can also be viewed as special case. I again sense inconsistency. Indeed, choice between config -fsanitize=address vs. config --enable-asan is resolved in favour of latter. While choice between config -Wl,something,that,varies,between,systems vs. config --run-path is suggested to be resolved in favour of former. I don't follow how "developers, restricted set of platforms and own risk" come into picture in first choice. If anything, these are arguments against having --enable-asan.

You know, I've slept on it, and had a change of heart.
So next step is that you provide a PR for the --run-path option.

Here is another inconsistency, multilib attribute is apparently ignored (on Unix systems). Well, given the way things look on Linux, it might be a good thing. I refer to the fact there apparently is no common convention on how to classify libraries by their bitness. Some put 64-bit libraries to /lib64, others to /lib/x86_64-linux-gnu, so one can't have common attribute... I wonder how package maintainers solve it. But in more mono-cultural cases, e.g. Solaris, it would still be appropriate to use multilib suffix...

multilib attribute is apparently ignored (on Unix systems)

Ah! It gets ignored under certain circumstances, namely when target directory doesn't exist. I mean if one specifies --prefix=/x and multilib suffix is y, then it's ignored if there is no /x/liby at the config moment...

That started happening somewhere between the releases of 1.0.0a and 1.0.0b, as of this commit: 73190f1b46c921ec7a9155a9944ceb84064ebc20  (yours, I might add ;-))

"Ah!" and lack of "this is wrong" implies "I can see it's a compromise [and I recognize both sides]". I failed to recall that it was me who did this, but commentary in referred commit does spell "it's compromise solution", so that current and past assertions don't really contradict :-) One can wonder if it might be time to reconsider the compromise... Well, as also mentioned, in most popular case, a.k.a. Linux, it's not given that there is simple solution...

Is there still anything to fix here? I see the #6560 was closed without merging. Not sure if we want to revive it.

There is a slightly different idea that I've seen somewhere, with a --with-rpath=FLAG sort of configuration option, where users can specify the rpath flag to be used (or "yes", which defaults to FLAG == -R), and in so doing, specify that rpath settings are desirable.
Ah, found it:
https://gitlab.com/secsh/pkixssh/-/blob/6af7d04572bc0c8b26e85b97742036b9daf1a9eb/configure.ac#L346-357
That's a pretty smart way to handle it...

Marking as inactive, to be closed at the end of 3.4 dev barring further input


Search options type:dataset or all versions or replica

There are some search options I used in CoG, which I cannot find in Metagrid (might be only a matter of making them more prominent):

The default search results in CoG are datasets. How would a user search for datasets instead of files?
How do I search for 'all versions' to see also retracted datasets with only metadata left?
How do I search on specific data nodes (including replica)?

Hi Martina, the "design philosophy" for Metagrid gave a preference toward a tidy, compact interface at the expense that all options might not be immediately apparent.  The search options are hidden (along with the version-by-date search from the other issue).   Probably the first step is to make this all clear in our FAQ.  That all said, we are open to making adjustments as needed.

Thanks Sasha, the second question is around the default search changed from 'dataset' to 'file'. The versions are documented on 'dataset', so I would vote to keep the default 'dataset'.

Hi @MartinaSt  On that second question, perhaps you can point out what's confusing and gives the impression that the search is for files rather than datasets.  I must be missing some key detail.  Perhaps annotate a screenshot?


Hystrix Dashboard Keeps Loading

I've tried Turbine 1.x branch to see aggregated result for cluster. However I keep seeing loading and log doesn't seems to be appearing any error.
####config.properties
turbine.aggregator.clusterConfig=111host
turbine.instanceUrlSuffix=:8080//hystrix.stream
turbine.ConfigPropertyBasedDiscovery.default.instances=<IP_ADDRESS>,<IP_ADDRESS>
turbine.ConfigPropertyBasedDiscovery.111host.instances=<IP_ADDRESS>,<IP_ADDRESS>
Separate Monitor for each of the host using http://hystrix-app:port/hystrix.stream works well.
However Aggregated view http://turbine-hostname:port/turbine.stream?cluster=111host keeps telling me 'loading...' very strange.
While I do 'curl http://<IP_ADDRESS>:8080/turbine/turbine.stream?cluster=111host'
keeps telling me
' : ping
data: {"reportingHostsLast10Seconds":0,"name":"meta","type":"meta","timestamp":1477312614662}
'
attach the log also
RETURNING FROM waitOnConnection: StreamingHandler_c3fdf7a1-bb48-49a1-b8bc-0ab2ec8763e9
2016-10-24 19:51:36 INFO  com.netflix.turbine.handler.TurbineDataDispatcher:193 [TurbineDataDispatcher] [deregisterEventHandler]: Removing event handler: StreamingHandler_c3fdf7a1-bb48-49a1-b8bc-0ab2ec8763e9
2016-10-24 19:51:36 INFO  com.netflix.turbine.utils.WorkerThread$1:156 [WorkerThread$1] [call]: Worker got interrupted, shutting down
2016-10-24 19:51:36 INFO  com.netflix.turbine.handler.HandlerQueueTuple:132 [HandlerQueueTuple] [stop]:
Removing tuple for : StreamingHandler_c3fdf7a1-bb48-49a1-b8bc-0ab2ec8763e9 tuple running: false
2016-10-24 19:51:36 INFO  com.netflix.turbine.handler.TurbineDataDispatcher:200 [TurbineDataDispatcher] [deregisterEventHandler]:  tuples : [StaticListener_For_Aggregator]
2016-10-24 19:51:36 INFO  com.netflix.turbine.handler.TurbineDataDispatcher:201 [TurbineDataDispatcher] [deregisterEventHandler]: Removed handler queue tuple for handler: HandlerQueueTuple [eventHandler=com.netflix.turbine.streaming.TurbineStreamingConnection@79af8bd9]
2016-10-24 19:51:38 INFO  com.netflix.turbine.discovery.InstanceObservable$1:260 [InstanceObservable$1] [run]: Retrieved hosts from InstanceDiscovery: 2
2016-10-24 19:51:38 INFO  com.netflix.turbine.discovery.InstanceObservable$1:272 [InstanceObservable$1] [run]: Found hosts that have been previously terminated: 0
2016-10-24 19:51:38 INFO  com.netflix.turbine.discovery.InstanceObservable$1:289 [InstanceObservable$1] [run]: Hosts up:2, hosts down: 0
2016-10-24 19:52:38 INFO  com.netflix.turbine.discovery.InstanceObservable$1:260 [InstanceObservable$1] [run]: Retrieved hosts from InstanceDiscovery: 2
2016-10-24 19:52:38 INFO  com.netflix.turbine.discovery.InstanceObservable$1:272 [InstanceObservable$1] [run]: Found hosts that have been previously terminated: 0
2016-10-24 19:52:38 INFO  com.netflix.turbine.discovery.InstanceObservable$1:289 [InstanceObservable$1] [run]: Hosts up:2, hosts down: 0

This seems like a Turbine issue.  I don't have any experience operating Turbine, so I can't really recommend a solution here.


d3plus.Geomap -> colorscale - > groupby -> tooltip issue

Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

Your Environment

Browser Name:
Operating System and Version:

I've been scouring the web for a fix of this issue/bug(?)
Tooltips seem to be fine on a geomap when you dont have a groupby. Once you add a groupby the tooltips now appear over the legend categories. Any ideas on how to fix this?
Ok, so sample design would be data for elections
data = ["Party 1",1000,"New York",
"Party 1",2000,"Penn",
"Party 1",100,"Mich",
"Party 2",1500,"Texas",
"Party 2",1700,"Illinois",] etc
new d3plus.Geomap().groupby party (code) etc
shapeConfig to show colors by party
The tooltip (hover) simply shows over the legend and not the map itself. I guess the only current workaround for now is to use D3 and attach a mouse event to each map path(?)
Any assistance much appreciated
Thanks

Interestingly enough I kinda hacked my way around this, or probably used the proper colourscale method and removed the groupby completely.
Basically all I am doing is color coding states of a country with the winnin votes of a party. The dataset has each state with party code, number of states etc, so I initially grouped by the party code in order to summarize the values for the legend.
However once a groupby is used, the tooltip only shows over the legend colors and label, I guess because the underlying dataset is now grouped on party instead of state.
I have since removed the groupby and now looking to setup a custom function to draw the legend labels.
Thanks for asking.


Ensure calculations for weighting is true to the original algorithm

print(weights) at the line before this line will print the array
[0.00020585 0.00020585 0.00020585 ... 0.00020585 0.00020585 0.00020585]

And print(weights) after said line will print arrays
[0.00020585 0.00020585 0.00020585 ... 0.00020585 0.00020585 0.00020585]
[0.00020585 0.00020585 0.00020585 ... 0.00020585 0.00020585 0.00020585]
[0.00013831 0.00013831 0.00013831 ... 0.00013831 0.00030636 0.00030636]

I need to replicate this in Julia.

Distinctly not fixed.  I thought this was fixed because I rectified the featureIndices size, but this is still incorrect.  May relate to the result of #11.

Closed by 6b35f6d5.


Zone info, initial dpkg-query and PGB

DPE-1649 Changes necessary to switch pgb-k8s to the rock
DPE-2015 Instal tzinfo overlay package
DPE-2016 Generate query for security scans
Manual dispatch for publishing

Two testing PRs to validate the changes:
https://github.com/canonical/pgbouncer-k8s-operator/pull/72
https://github.com/canonical/postgresql-k8s-operator/pull/173

Relevant MM discussion about dpkg-query.


Add a Test for Length Prefix between Coders

This demonstrates that user type -> bytes -> user type cycles correctly.

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue.
[ ] Write a pull request description that is detailed enough to understand:

[ ] What the pull request does
[ ] Why it does it
[ ] How it does it
[ ] Why this approach

[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Run mvn clean verify to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

R: @lostluck

run java precommit

run java precommit


could invoke cmd: openssl pkcs12 -nodes -nokeys -in 1.pfx -passin pass:证书密码 -out 1.cer in ios platform?

could invoke cmd: openssl pkcs12 -nodes -nokeys -in 1.pfx -passin pass:证书密码 -out 1.cer in ios platform?
if can how?

Ping @levitte to talk about utf8 and passphrases :)

@richsalz, I think you are in a great position for this, actually.
I'm out and about right now, won't be able to check this in depth before late evening. Please feel free to do a preliminary investigation.

Actually, this is a many faceted issue.  Did you try that command on an ios device?  What happened?  Can you show us?

@hatjs880328s mind telling us the meaning of "证书密码"?  Is it "1234"? 😆

Ah, it's "certificate password"!

I think a few pieces of information will help.

What is the string of bytes that the program sees; what is the value of "passinarg" just before the call to app_passwd() ?
What value is returned by app_passwd (the value of passin just after the function returns)
Just before exiting, what value is returned by password_callback() ?

@richsalz  i don't know how invoke the cmd..
the  "证书密码" is the pfx file's pwd.
really :(

@levitte  never invoke it, don't know how , 😭

I am sure that this is the password.  I don't know how to help unless you can run the command under the debugger and get that information, sorry.  Maybe someone else has ideas.

@richsalz, @mspncp, you guys need to stop and listen
This issue is about how to invoke a command on iOS, not about the pass phrase.

Thanks for the clarification @levitte, I just didn't understand.  Sorry, @hatjs880328s.  There is a work-around: Put the passphrase in a file and use the file:/path/to/file command.

I believe the shell, bash, does not support multiple character sets in a single line; sorry.

Why different character sets? Doesn’t bash use  utf8 by default?

@hatjs880328s, let's start simple: do you have a shell in your iOS environment/device?  Do you know how to use it?

I guess @hatjs880328s was asking about how to run a command in shell on iOS

http://osxdaily.com/2018/01/08/get-terminal-app-ios-command-line/
this might be a good start but openssl is not shipped with this term so it's still needed to figure out cross compiling a binary and put it there.

@levitte  @mspncp @richsalz  @InfoHunter
just want to invoke the cmd use objective-c


Add ACS specific metrics

These will be used in ACS airflow runs.

Can one of the admins verify this patch?


Cannot launch Spyder after latest Ubuntu update

When I try to launch Spyder I receive this error message:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/spyderlib/spyder.py", line 2331, in main
mainwindow = run_spyder(app, options, args)
File "/usr/lib/python2.7/dist-packages/spyderlib/spyder.py", line 2215, in run_spyder
main.setup()
File "/usr/lib/python2.7/dist-packages/spyderlib/spyder.py", line 734, in setup
message=_("Spyder Internal Console\n\n"
File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/console.py", line 74, in init
self.find_widget.set_editor(self.shell)
File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/findreplace.py", line 260, in set_editor
from spyderlib.qt.QtWebKit import QWebView
File "/usr/lib/python2.7/dist-packages/spyderlib/qt/QtWebKit.py", line 10, in
from PyQt4.QtWebKit import *  # analysis:ignore
ImportError: No module named QtWebKit
Versions and main components

Spyder Version: 2.3.8+dfsg1-1build1
Python Version: 2.7
Operating system: Ubuntu 16.10

Ubuntu/Debian broke Spyder by removing the Qt4 QtWebKit module, which is not our fault.
We recommend you to use the Anaconda Python distribution instead.


Release 2.2.0

Release 2.2.0

Hi @VonDerBeck! Thank you for this. I've gone ahead and released this new version, and you should see it on Maven Central shortly! :)

Thanks!


UI tests, Download in background, Progress bar, Fixes from last PR

@creativepsyco Please check
#51 #62

@creativepsyco Tests fail due to Travis using an emulator which uses 3g not wifi.

@mananwason Not merging, this PR is not clean.


Improve performance when displaying token lists, using newly available data

~This depends on https://github.com/oasisprotocol/nexus/pull/493.~
This also depends on #761. (Since the Nexus  PRs also depend on each other.)
Please note that while this version is backward compatible with the currently deployed staging or production versions of nexus, the performance improvements will only be realized if the new version of nexus is deployed.

Tested with latest staging Nexus deployment, seems to work fine. (For testing, I had to change the API endpoints to staging, and enable Emerald.)

Now that the relevant Nexus changes have been merged, this PR has also been updated accordingly.


font-family at class="ag-courses-item_title" and class="intro-con

change the font family to Space Grotesk @annavarughese
` Discover the future of chest X-ray analysis with RadioX

                  Our revolutionary AI-powered app leverages cutting edge AI technology to predict  and analyze chest diseases with unmatched accuracy and speed.

                      Say goodbye to manual intepretations and long waiting times.With RadioX, healthcare professionals can make informed decisions and provide timely care to patients.

                          Join us on this transformative journey as we redifine the field of radiology and improve patient outcomes.

`

Made the required changes, kindly verify and let me know

change the font family in body (style.css file) then it will reflect


Fix error handling

WHY
Checking error.Error() is anti-pattern
cf. https://deeeet.com/writing/2016/04/25/go-pkg-errors/
WHAT
Fix error handling logic.

Close by https://github.com/wantedly/ev-cli/pull/22


Support for function callbacks as properties

First of all kudos to the awesome work.
In the organization that I work for, we have a widget library developed as LitElements. We don't use events much but use functions as properties inside the LitComponent. Currently, this code assumes that all props which are functions should be event handlers. But in our case, some functions need to be set as properties.

Hey @kurienzach!
I am working on a different (albeit similar) hook was wondering how you would like to make the distinction between functions that you want added as a handler and those that you just want as a prop.
Just to give an example, Angular will generally create a handler if you use (mouseleave) but not if you use mouseleave (it passes it through as a prop).
Initially I was thinking you could use a pattern like onMouseLeave (on followed by uppercase) to mean you want a handler and anything else, like mouseLeave to be a prop. Would that work?


Make build install go directly to packages cache

/cc @pranavkm @dougbu

The only concern is it's a bit easy to wipe out all your locally built packages now - all you do is wipe our your .nuget folder. You'd have to hunt these packages down in the future when you want to switch back to packages from the feed.

think I have a similar concern to @pranavkm
kpm packages add determines the target directory from the project.json file, with default $env:USERPROFILE.dotnet\packages.  so this update mixes what I've downloaded (potentially just for a single project) with my locally-built overrides.
scenario 1: blow away everything I've downloaded but keep what I've installed locally.  I can do that today because the local installations are kept separate (just have exploded copies in $env:USERPROFILE.dotnet\packages).  ugly after this change.
scenario 2: temporarily build using only published packages.  today I would I disable my NuGet cache source for that build.  only option is to manually remove (or temporarily move) all "*-t00000000000.nupkg" packages after this change.
suggest we use the second, optional parameter to kpm packages add, providing the target directory.  or provide an kpm packages push-local command.  in either the .shade file or the push-local command, use a well-known default location such as $env:USERPROFILE.dotnet\local that we can either add to our NuGet.config files or manage on a per-developer basis.
side notes  :frowning: -

kpm help packages add fails
kpm packages add -? oddly describes the target packages directory as the [source]

Few comments:

kpm packages add determines the target directory from the project.json file, with default $env:USERPROFILE.dotnet\packages. so this update mixes what I've downloaded (potentially just for a single project) with my locally-built overrides.

It doesn't mix anything. Think of it as a way to populate the local packages folder to make your package "visible". It skips the build install step which I think is pointless since you don't have to kpm restore on the other projects to actually consume this package.

scenario 1: blow away everything I've downloaded but keep what I've installed locally. I can do that today because the local installations are kept separate (just have exploded copies in $env:USERPROFILE.dotnet\packages). ugly after this change.

This isn't true at all. When you build install and kpm restore, you're in the same boat so I'm not quite sure what you mean. Are you saying that its easy to remove locally built packages before they are installed? Sure that's true, except as soon as you do kpm restore you're hosed in the same way.

scenario 2: temporarily build using only published packages. today I would I disable my NuGet cache source for that build. only option is to manually remove (or temporarily move) all "*-t00000000000.nupkg" packages after this change.

Same as before, if you do a single kpm restore at any point ever, you'll have to clean up the local cache anyways so I don't quite understand the sentiment.

suggest we use the second, optional parameter to kpm packages add, providing the target directory. or provide an kpm packages push-local command. in either the .shade file or the push-local command, use a well-known default location such as $env:USERPROFILE.dotnet\local that we can either add to our NuGet.config files or manage on a per-developer basis.

So the general fear seems to be around cleaning up these things when you're ready to not use them anymore (a problem that exists today) and one that I agree sucks. Let's go with your suggestion but I'd rather not have to run kpm restore in order to make these packages visible to the runtime. So we also need a clean way to add extra packages locations (or have a default one) that is separate from %userprofile%\.dotnet\packages. Unfortunately, NuGet.config doesn't work for this.

Spoke to @davidfowl about this offline. We can evolve kpm to take away the pains of cleaning this up.
:shipit:  from me

@davidfowl, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.
Thanks, DNFBOT;

This was addressed as part of https://github.com/aspnet/Universe/pull/152


unsafe into_inner()

@alexcrichton thanks for this tool, it looks amazing. I was trying to get it running from master and I am running into an unsafe call error. I tried wrapping the module in unsafe but that didn't seem to work.
code
#![feature(proc_macro)]

extern crate wasm_bindgen;

use wasm_bindgen::prelude::*;

wasm_bindgen! {
    pub fn greet(name: &str) -> String {
      format!("Hello, {}!", name)
    }
}

error[E0133]: call to unsafe function requires unsafe function or block
   --> /Users/charlesking/.cargo/git/checkouts/wasm-bindgen-aa905f4284ca7fbe/322f520/src/lib.rs:341:13
    |
341 |             self.value.into_inner()
    |             ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function

error: aborting due to previous error

error: Could not compile `wasm-bindgen`.

Seems to be related to changes made here - https://github.com/alexcrichton/wasm-bindgen/commit/c51a342cb3ef27d176d5713084d05ac04963b6db. If I specify an earlier revision, it compiles without error.

Nightly was out of date! Sorry


Dump hypertables and retention policies last, for compatibility with foreign keys

TimescaleDB doesn't allow us to add new foreign keys to compressed hypertables, so we need to make sure that the foreign keys have been added before enabling compression.
The same is also true of retention policies.
Fixes #33.

Getting some unexpected failures locally, but I'm not sure if it's me or the tests that are broken :grin:
I've fixed some of them by installing the timescaledb-toolkit extension, I hadn't realised that was necessary (worth mentioning in the docs?).
For the other test failures, I get:
Failures:

  1) Timescaledb::SchemaDumper dumps a create_continuous_aggregate for a view in the database
     Failure/Error:
             def create_view(name, version: nil, with: nil, sql_definition: nil, materialized: false, no_data: false)
               if version.present? && sql_definition.present?
                 raise(
                   ArgumentError,
                   "sql_definition and version cannot both be set",
                 )
               end

               if version.blank? && sql_definition.blank?
                 version = 1

     ArgumentError:
       wrong number of arguments (given 2, expected 1)
     # ./lib/timescaledb/scenic/extension.rb:29:in `create_view'
     # ./spec/timescaledb/schema_dumper_spec.rb:17:in `block (2 levels) in <top (required)>'

  2) Timescaledb::Toolkit::Helpers pipeline functions #volatility several devices is expected to eq [{"device_id"=>nil, "volatility"=>11.0}]
     Failure/Error:
       expect(volatility_query_for_all.map(&:attributes)).to eq([
         {"device_id"=>nil, "volatility"=>11.0}])

       expected: [{"device_id"=>nil, "volatility"=>11.0}]
            got: [{"volatility"=>11.0}]

       (compared using ==)

       Diff:
       @@ -1 +1 @@
       -[{"device_id"=>nil, "volatility"=>11.0}]
       +[{"volatility"=>11.0}]

     # ./spec/timescaledb/toolkit_helper_spec.rb:122:in `block (5 levels) in <top (required)>'

Finished in 3.73 seconds (files took 0.98348 seconds to load)
52 examples, 2 failures

Failed examples:

rspec ./spec/timescaledb/schema_dumper_spec.rb:10 # Timescaledb::SchemaDumper dumps a create_continuous_aggregate for a view in the database
rspec ./spec/timescaledb/toolkit_helper_spec.rb:121 # Timescaledb::Toolkit::Helpers pipeline functions #volatility several devices is expected to eq [{"device_id"=>nil, "volatility"=>11.0}]

Neither of these seem to be directly related to my changes, and just to make sure I rolled my changes back to see if it helped (it didn't). Any ideas?

Hi @stevehill1981! Thanks for jumping in! It was not your fault! I fixed the spec failing on the master branch now.

Ok, I've removed the additional streams and tidied things up a bit.

I'll merge it soon! Just adding some specs and got the matrix of specs failing!

No rush, your efforts are much appreciated as always 😁

Ugh! I merged it, but it didn't close the PR for some reason. Now, the code is already on the master branch @stevehill1981 ! Thanks for the PR! I'll release a new version of the gem now.


Multiple values for a single metric not working

I'm trying to log multiple values for a single metric using powertool's Metrics class.
However when doing so I only get the last added value flushed.
Here is a minimal example which triggers the problem:
#!/usr/bin/env python3

import json

from aws_lambda_powertools import Metrics
from aws_lambda_powertools.metrics import MetricUnit

metrics = Metrics(namespace="Test", service="Test")

@metrics.log_metrics
def handler(event, context):
    metrics.add_metric(name="TestMetric", unit=MetricUnit.Count, value=1)
    metrics.add_metric(name="TestMetric", unit=MetricUnit.Count, value=5)

handler(None, None)

The code above produces the following output (formatted for better readability):
{
    "_aws": {
        "Timestamp":<PHONE_NUMBER>457,
        "CloudWatchMetrics": [
            {
                "Namespace": "Test",
                "Dimensions": [
                    [
                        "service"
                    ]
                ],
                "Metrics": [
                    {
                        "Name": "TestMetric",
                        "Unit": "Count"
                    }
                ]
            }
        ]
    },
    "service": "Test",
    "TestMetric": 5.0
}

What I'd expect instead would be the following:
{
    "_aws": {
        "Timestamp":<PHONE_NUMBER>457,
        "CloudWatchMetrics": [
            {
                "Namespace": "Test",
                "Dimensions": [
                    [
                        "service"
                    ]
                ],
                "Metrics": [
                    {
                        "Name": "TestMetric",
                        "Unit": "Count"
                    }
                ]
            }
        ]
    },
    "service": "Test",
    "TestMetric": [1.0, 5.0]
}

I'm not sure if this is a bug or if I'm missing something from the documentation, but to me it currently looks that logging multiple values for a single metric isn't possible without flushing manually between adding them.

hey @Dunedan - This is not a bug but a known behaviour of Embedded Metric Format (EMF) feature we use for creating metrics async. It only supports one value per unique key name - If you add multiple values it'll override with the last one.
For that and other purposes, we created the with single_metric context manager so it'll create one metric and flush it automatically.
I thought of having another API for that would keep multiple values for the same metric, and then flush them at the end as a workaround to EMF specification - But not entirely sure on the value and UX yet. If you think this is a good idea, please feel free to write up a RFC to discuss more about it :)

Are you sure that this is a limitation of EMF?
The EMF specification suggests otherwise:

Metric targets MUST be either a numeric value or an array of numeric values.

Also aws-embedded-metrics-python implements it as I would expect it and I believe such records are properly handled by CloudWatch Metrics.
#!/usr/bin/env python3

import os

os.environ["AWS_LAMBDA_FUNCTION_NAME"] = "dummy"

from aws_embedded_metrics import metric_scope

@metric_scope
def handler(metrics):
    metrics.put_dimensions({"Foo": "Bar"})
    metrics.put_metric("TestMetric", 1, "Count")
    metrics.put_metric("TestMetric", 1, "Count")

handler()

{
    "LogGroup": "dummy",
    "ServiceName": "dummy",
    "ServiceType": "AWS::Lambda::Function",
    "Foo": "Bar",
    "executionEnvironment": "",
    "memorySize": "",
    "functionVersion": "",
    "logStreamId": "",
    "_aws": {
        "Timestamp":<PHONE_NUMBER>937,
        "CloudWatchMetrics": [
            {
                "Dimensions": [
                    [
                        "LogGroup",
                        "ServiceName",
                        "ServiceType",
                        "Foo"
                    ]
                ],
                "Metrics": [
                    {
                        "Name": "TestMetric",
                        "Unit": "Count"
                    }
                ],
                "Namespace": "aws-embedded-metrics"
            }
        ]
    },
    "TestMetric": [
        1,
        1
    ]
}

Aha! Thanks Daniel - I’ll revisit this on Friday
On Wed, 16 Sep 2020 at 18:03, Daniel Roschka<EMAIL_ADDRESS>wrote:

Are you sure that this is a limitation of EMF?
The EMF specification
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format_Specification.html
suggests otherwise:
Metric targets MUST be either a numeric value or an array of numeric
values.
Also aws-embedded-metrics-python
https://github.com/awslabs/aws-embedded-metrics-python implements it as
I would expect it and I believe such records are properly handled by
CloudWatch Metrics.
#!/usr/bin/env python3
import os
os.environ["AWS_LAMBDA_FUNCTION_NAME"] = "dummy"
from aws_embedded_metrics import metric_scope
@metric_scope
def handler(metrics):
metrics.put_dimensions({"Foo": "Bar"})

metrics.put_metric("TestMetric", 1, "Count")

metrics.put_metric("TestMetric", 1, "Count")

handler()
{
"LogGroup": "dummy",

"ServiceName": "dummy",

"ServiceType": "AWS::Lambda::Function",

"Foo": "Bar",

"executionEnvironment": "",

"memorySize": "",

"functionVersion": "",

"logStreamId": "",

"_aws": {

    "Timestamp":<PHONE_NUMBER>937,

    "CloudWatchMetrics": [

        {

            "Dimensions": [

                [

                    "LogGroup",

                    "ServiceName",

                    "ServiceType",

                    "Foo"

                ]

            ],

            "Metrics": [

                {

                    "Name": "TestMetric",

                    "Unit": "Count"

                }

            ],

            "Namespace": "aws-embedded-metrics"

        }

    ]

},

"TestMetric": [

    1,

    1

]

}
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/aws-lambda-powertools-python/issues/165#issuecomment-693505070,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZPQBA7KRV3QI6V2ZOG263SGDOWZANCNFSM4ROSJPDQ
.

@Dunedan just confirmed with the CloudWatch team - This was added recently, it wasn't in the original implementation.
Added the feature request label, and we'll implement this to be available in the next release 1.6.0 this month.
Thanks for flagging it, much much appreciated

hey @Dunedan - @cakepietoast just finished implementing it, and as I mentioned before, it'll be available in the next release.
Thanks for flagging this and letting us know about the EMF update, much appreciated!

This can be closed now :)

Fixed in 1.6.0


Context menu's corners are not anti-aliased and have no outside stroke.

As you can see from the screenshot. the context menu has jagged edges due to the lack of anti-aliasing.

This is a screenshot of the Command Bar Flyout from WinUI 3. Unlike the context menu currently in Shell, it has an outside stroke of #000000 at 20% opacity in Dark mode, and in Light mode, it has an outside stroke of #000000 at 5.78% opacity.

Shown with only the blur and acrylic effect because this function SetWindowRgn is used to change the corners of the menu window and it does not support anti-aliased. It will be replaced in the future with special functions capable of smoothing the edges of the corner.


adds LinkedProfile and LinkedSite boilerplate

I am not entirely sure what to be testing in the models aside for their relationships.
🙏
@NuckChorris

I have a feeling my mistake is not doing validates :name, presence: true and for all the other null: false fields added to the database (is this why FactoryGirl is failing?)

LGTM :tada:


Is possible use django-taggit for mention user?

Thanks in advance

Sorry, it isn't clear to me what the issue is. If you're experiencing an issue, please provide a detailed bug report with steps to reproduce. Thanks.

Like tag of instagram o facebook @jdufresne
Sorry for my bad english


[6.x] Check if an array lock exists before releasing it

It just fixes the thing where we would be thrown an Undefined index {index} exception when releasing a non-existing array lock.
Reference: https://github.com/laravel/framework/pull/30253#issuecomment-593665419
Thanks to @timacdonald for adding the ArrayLock and the test for this PR!

Thanks for fixing this for everyone Paul and, if I’m not mistaken, congrats on your first contribution to Laravel 🥳

Yeah, that's my first contribution. Thanks for helping me with it though! :)

No worries, always happy to help


Installation with mamba results in TypeError on startup

Hi,
Just tried to install micro-sam in a fresh env with mamba and ended up with this error:
(micro-sam)❯ micro_sam.annotator
Traceback (most recent call last):
  File "/home/tibuch/Apps/micromamba/envs/micro-sam/bin/micro_sam.annotator", line 6, in <module>
    from micro_sam.sam_annotator.annotator import main
  File "/home/tibuch/Apps/micromamba/envs/micro-sam/lib/python3.9/site-packages/micro_sam/sam_annotator/__init__.py", line 5, in <module>
    from .annotator import annotator
  File "/home/tibuch/Apps/micromamba/envs/micro-sam/lib/python3.9/site-packages/micro_sam/sam_annotator/annotator.py", line 13, in <module>
    from .annotator_2d import annotator_2d
  File "/home/tibuch/Apps/micromamba/envs/micro-sam/lib/python3.9/site-packages/micro_sam/sam_annotator/annotator_2d.py", line 8, in <module>
    from napari import Viewer
  File "<frozen importlib._bootstrap>", line 1055, in _handle_fromlist
  File "/home/tibuch/Apps/micromamba/envs/micro-sam/lib/python3.9/site-packages/napari/_lazy.py", line 45, in __getattr__
    submod = import_module(
  File "/home/tibuch/Apps/micromamba/envs/micro-sam/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/home/tibuch/Apps/micromamba/envs/micro-sam/lib/python3.9/site-packages/napari/viewer.py", line 8, in <module>
    from napari.components.viewer_model import ViewerModel
  File "/home/tibuch/Apps/micromamba/envs/micro-sam/lib/python3.9/site-packages/napari/components/__init__.py", line 18, in <module>
    from napari.components.dims import Dims
  File "/home/tibuch/Apps/micromamba/envs/micro-sam/lib/python3.9/site-packages/napari/components/dims.py", line 17, in <module>
    class Dims(EventedModel):
  File "/home/tibuch/Apps/micromamba/envs/micro-sam/lib/python3.9/site-packages/napari/utils/events/evented_model.py", line 82, in __new__
    cls = super().__new__(mcs, name, bases, namespace, **kwargs)
  File "pydantic/main.py", line 205, in pydantic.main.ModelMetaclass.__new__
  File "pydantic/fields.py", line 491, in pydantic.fields.ModelField.infer
  File "pydantic/fields.py", line 421, in pydantic.fields.ModelField.__init__
  File "pydantic/fields.py", line 537, in pydantic.fields.ModelField.prepare
  File "pydantic/fields.py", line 641, in pydantic.fields.ModelField._type_analysis
  File "/home/tibuch/Apps/micromamba/envs/micro-sam/lib/python3.9/typing.py", line 852, in __subclasscheck__
    return issubclass(cls, self.__origin__)
TypeError: issubclass() arg 1 must be a class

I figured out that this has something to do with a version mismatch between typing-extensions and pydantic:
(micro-sam)❯ mamba list | grep typing-extensions
  typing-extensions              4.7.1         hd8ed1ab_0               conda-forge

(micro-sam)❯ mamba list | grep pydantic
  pydantic                       1.9.1         py39hb9d737c_0           conda-forge

After downgrading typing-extensions=4.5 everything seems to work.
This is with Python 3.9.

Thanks for reporting @tibuch. It's a bit weird that the pydantic version being installed is so old; the most recent one is 2.3.0 (https://anaconda.org/conda-forge/pydantic) and I checked in an older environment for SAM and have 1.10.7 there.
I will try with a fresh env later and see if I can reproduce it.

I just installed an environment fresh (using environment_cpu.yaml). For me this issue does not occur, and I get the following versions:
$ conda list | grep typing-extensions
typing-extensions         4.7.1                hd8ed1ab_0    conda-forge
$ conda list | grep pydantic
pydantic                  1.10.12         py311h459d7ec_1    conda-forge

I have tried on Linux 22.04 with mamba 1.4.2 and conda 23.3.1. What OS did you use, and which mamba/conda versions did you use?

Sorry for wasting your time @constantinpape. I tried again this morning and can not reproduce the issue from yesterday. I must have done something weird yesterday.
Everything is working fine with today's installation.

Sorry for wasting your time @constantinpape.

No worries!

I tried again this morning and can not reproduce the issue from yesterday. I must have done something weird yesterday.

Thanks for checking again.
(And in general: please let us know any feedback, especially things that don't work quite as expected or are incovenient!!)


DPL-998-3 As developers, we need to clean up traction-ui after Revio multiplexing work to remove any code and disable any feature flags that are used for pool and run creation/editing using data before introducing aliquots to reduce technical debt and improve maintainability.

Describe the Housekeeping
As developers, we need to clean up traction-ui after Revio multiplexing work to remove any code and disable any feature flags that are used for pool and run creation/editing using data before introducing aliquots to reduce technical debt and improve maintainability.
Things to do

[ ] Remove  components/pacbio/V1 folder
[ ] Remove tests/unit/components/pacbio/V1 folder
[ ] Remove all files suffixed with V1
- src/views
- tests/unit /views
-  tests/data
-  tests/e2e/specs/pacbio
-  tests/fixtures
[ ] Remove code that handles the unintended data returned from service in pacbioPoolCreate
[ ] Remove following feature flags
- dpl_989_ui
- multiplexing_phase_2_pool_with_aliquot
- dpl_1113_run_well_aliquots
- dpl_1113_run_edit_well_aliquots

Closing as covered in https://github.com/sanger/traction-ui/issues/1605


'Failed to create thread: Resource temporarily unavailable (11)' in rabbitmq sts when CPU cores > 64

rabbitmq0 pod was crashloop back with the subject log.
According to some docs it seems in environments that have nodes with 64 or more CPU cores,  rabbitmq may fail to start. I've fixed it by:
oc set env sts -n contrail rabbitmq1-rabbitmq-statefulset RABBITMQ_IO_THREAD_POOL_SIZE=128

oc delete pod -n contrail rabbitmq1-rabbitmq-statefulset-0 rabbitmq1-rabbitmq-statefulset-1 rab
tmq1-rabbitmq-statefulset-2

Hi @e-minguez,
contrail-operator has migrated to Tungsten Fabric now.
https://github.com/tungstenfabric/tf-operator

And if you want to fill a bug here's the Tungsten Fabric Jira :)
https://jira.tungsten.io/projects/TFB/issues/TFB-15?filter=allopenissues


ERROR: Memory: bad allocation size

So, in unpacking a game's pak files, I get this issue for only a few files. All the other files work just fine. I found some answers saying the game might not be supported but since a large majority of the other assets open/export just fine, I thought this might be something else. I also saw a response saying the ue version might be off. While I'm not sure exactly of the games engine version, I know its later than 4.20 since most stuff doesn't work with versions before it. I tried opening it with 4.20, 21, 22, and 23 and got the same error (below) both times. Any suggestions to try?
Loading package: /Game/Mist/UI/Widgets/RealmMap/Assets/M_Background.uasset Ver: 517/0 Engine: 0 [Unversioned] Names: 94 Exports: 30 Imports: 35 Game: 1000150 Full package loaded in 0.0 sec, 4 allocs, 0.00 MBytes serialized in 0 calls. Loading Material3 M_Background from package /Game/Mist/UI/Widgets/RealmMap/Assets/M_Background.uasset WARNING: ByteProperty "UMaterial3::MaterialDomain" was not found WARNING: ArrayProperty "UMaterial3::MaterialFunctionInfos" was not found WARNING: BoolProperty "UMaterial3::bCanMaskedBeAssumedOpaque" was not found WARNING: StructProperty "UMaterial3::StateId" was not found WARNING: ArrayProperty "UMaterial3::CachedQualityLevelsUsed" was not found WARNING: Import(Material'Default__Material'): package /Script/Engine was not found WARNING: Import(MaterialExpressionMaterialFunctionCall'Default__MaterialExpressionMaterialFunctionCall'): package /Script/Engine was not found WARNING: Import(MaterialExpressionScalarParameter'Default__MaterialExpressionScalarParameter'): package /Script/Engine was not found WARNING: Import(MaterialExpressionTextureSample'Default__MaterialExpressionTextureSample'): package /Script/Engine was not found WARNING: Import(MaterialExpressionVectorParameter'Default__MaterialExpressionVectorParameter'): package /Script/Engine was not found Loading package: /Engine/Functions/Engine_MaterialFunctions01/Density/ExponentialDensity.uasset Ver: 517/0 Engine: 0 [Unversioned] Names: 19 Exports: 1 Imports: 3 Game: 1000150 WARNING: Unknown class "MaterialFunction" for object "ExponentialDensity" Loading package: /Engine/Functions/Engine_MaterialFunctions01/Gradient/RadialGradient.uasset Ver: 517/0 Engine: 0 [Unversioned] Names: 17 Exports: 1 Imports: 3 Game: 1000150 WARNING: Unknown class "MaterialFunction" for object "RadialGradient" Loading package: /Engine/Functions/Engine_MaterialFunctions01/Gradient/RadialGradientExponential.uasset Ver: 517/0 Engine: 0 [Unversioned] Names: 24 Exports: 3 Imports: 7 Game: 1000150 WARNING: Unknown class "MaterialFunction" for object "RadialGradientExponential" Loading package: /Engine/Functions/Engine_MaterialFunctions01/Vectors/RotateVector.uasset Ver: 517/0 Engine: 0 [Unversioned] Names: 19 Exports: 1 Imports: 3 Game: 1000150 WARNING: Unknown class "MaterialFunction" for object "RotateVector" Loading package: /Engine/Functions/Engine_MaterialFunctions02/Math/TimeWithSpeedVariable.uasset Ver: 517/0 Engine: 0 [Unversioned] Names: 19 Exports: 1 Imports: 3 Game: 1000150 WARNING: Unknown class "MaterialFunction" for object "TimeWithSpeedVariable" Loading package: /Engine/Functions/Engine_MaterialFunctions02/Texturing/CustomRotator.uasset Ver: 517/0 Engine: 0 [Unversioned] Names: 19 Exports: 1 Imports: 3 Game: 1000150 WARNING: Unknown class "MaterialFunction" for object "CustomRotator" Loading package: /Game/Mist/Effects/UltraDynamicSky/Materials/MF_CloudLayer.uasset Ver: 517/0 Engine: 0 [Unversioned] Names: 73 Exports: 36 Imports: 25 Game: 1000150 WARNING: Unknown class "MaterialFunction" for object "MF_CloudLayer" Loading package: /Game/Mist/Effects/UltraDynamicSky/Materials/MF_FilterClouds.uasset Ver: 517/0 Engine: 0 [Unversioned] Names: 15 Exports: 1 Imports: 3 Game: 1000150 WARNING: Unknown class "MaterialFunction" for object "MF_FilterClouds" Loading package: /Game/Mist/Effects/HeatPP/Grass_Noise.uasset Ver: 517/0 Engine: 0 [Unversioned] Names: 21 Exports: 1 Imports: 3 Game: 1000150 Loading package: /Game/Mist/Props/Nature/TataouineRocks/Particles/Textures/T_Dust_01.uasset Ver: 517/0 Engine: 0 [Unversioned] Names: 18 Exports: 1 Imports: 3 Game: 1000150 Loading package: /Game/Mist/Props/Nature/TataouineRocks/Particles/Textures/T_Dust_02.uasset Ver: 517/0 Engine: 0 [Unversioned] Names: 15 Exports: 1 Imports: 3 Game: 1000150 Loading package: /Game/Mist/UI/Widgets/RealmMap/Assets/T_WorldMapBackground_D.uasset Ver: 517/0 Engine: 0 [Unversioned] Names: 17 Exports: 1 Imports: 3 Game: 1000150 Loading Texture2D Grass_Noise from package /Game/Mist/Effects/HeatPP/Grass_Noise.uasset Loading data for format PF_G8 ... Loading Texture2D T_Dust_01 from package /Game/Mist/Props/Nature/TataouineRocks/Particles/Textures/T_Dust_01.uasset Loading data for format PF_DXT1 ... Loading Texture2D T_Dust_02 from package /Game/Mist/Props/Nature/TataouineRocks/Particles/Textures/T_Dust_02.uasset Loading data for format PF_DXT1 ... Loading Texture2D T_WorldMapBackground_D from package /Game/Mist/UI/Widgets/RealmMap/Assets/T_WorldMapBackground_D.uasset Loading data for format PF_B8G8R8A8 ... ******** Loading object Texture2D'T_WorldMapBackground_D.T_WorldMapBackground_D' ******** *** ERROR: Memory: bad allocation size 472366756 bytes appMalloc:size=472366756 (total=17 Mbytes) <- FByteBulkData::SerializeDataChunk <- FByteBulkData::Serialize <- FTexture2DMipMap::Serialize4 <- TArray::Serialize: 0/1 <- FTexturePlatformData<< <- UTexture2D::Ser ialize4 <- UTexture2D::Serialize <- LoadObject:Texture2D'T_WorldMapBackground_D.T_WorldMapBackground_D', pos=40C, ver=517/0 (unversioned), game=ue4.21 <- UObject::EndLoad <- Main:umodel_build=1021

Hi. Current UE Viewer build is 1101. Your version is 1021. It is quite possible that this is the core of your problem.


Ikea lamps are controlled, but there is no response in the group.

Hi Stas, I have 8 Tradfri lamps in the kitchen, I have now made them into a group.
When I switch the group on or off, the 8 lamps are controlled, but there is only one message from lamp 1 Back message to domoticz.
And the group switch always stays off, whether on or off.

Unfortunately, don't have any zigbee bulbs to test how groups actually work

how can I help? Do you need log or something else?

Stas Can you do something there?
Optional: Default transition to be used when e.g. changing brightness (in seconds) (default: 0)
transition: 2

Optional: Change group state when one of the devices in it changes state, see 'State changes' below (default: true)
State changes #
By default when one of the devices in a group changes its state, the group state will update to reflect the change. If any lights within the group have a state of on, the group state will stay on. Also when the state of a group is changed by a command (so not via a state change of a device in it; see previous line), all devices in the group will also change its state. This behaviour can be disabled by setting optimistic: false for the group.


Clarify documentation of doLog()

The current documentation on doLog is inadequate, because it does not mention that doLog is also a variant of doError. doLog is a variant of doError, since it also logs error events.
This pull request removes the reference to doAction and replaces it with a statement about production-readiness of doLog.

I think you could even start the documentation of doLog with something else than "like X but different" :)

@raimohanska I just updated the readme. It now starts with a statement that is not relative to log(). Whaddya think?


feat(release): use an explicit environment variable to determine when to push docker images

existing: if alpine we push kong:x.y.z and kong:latest
new behaviour: if RELEASE_DOCKER=true we push kong:x.y.z-dist
also when the base image is debian we use a slim debian

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


Source map + minimizer results in silent failure

Bug report

What is the current behavior?
Using source map with minimizer causes silent failure. Output file not created. No console output.
If the current behavior is a bug, please provide the steps to reproduce.

Create empty file 1.js
Create webpack.config.js file with contents:

const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
    devtool:  'source-map',
    entry: './1.js',
    resolve: {
        extensions: ['.js']
    },
    output: {
        filename: 'main.js',
        path: __dirname,
    },
    optimization: {
        minimize: true,
        minimizer: [
            new TerserPlugin({
                sourceMap: true,
            }),
        ],
    }
};

Run webpack --config webpack.config.js

What is the expected behavior?
Output file main.js is created. Console output.

Other relevant information:
webpack version:  4.35.0
Node.js version: 10.15.3
Operating System: Win 10 Pro
Additional tools:

It works after reverting terser-webpack-plugin to v1.2.4. Something to do with the terser upgrade? Or is it a caching problem?

It works after reverting terser-webpack-plugin to v1.2.4. Something to do with the terser upgrade? Or is it a caching problem?

@webpack-bot move to webpack-contrib/terser-webpack-plugin


Cannot prevent record on Modal ?

What ?
@gbumps

I tried to record and opened modal at the same time. Seem like we cannot prevent record the modal. Is there any workaround? My app mostly uses modal, and cannot be replaced with View . Thanks so much

Please describe the version, and the Modal library you encountered the problem.
I'm running React native 0.71, iOS 17,  using Modal of React-native and react-native-modal, works normally.

Please describe full detailed of react-native version, and the modal library in which you encountered the problem, what View or Component the Modal contains inside.
I've tested on both simulator and real device, with Modal turned on (from react-native and react-native-modal) screen recording and screen capturing cannot capture any content inside it.

Sr @gbumps for lacking of info.
Its happening on Android.
Im using react-native-modal

Yep, probably encountered even though the FLAG_SECURE turned on. This has been reported here
I might suggest for you a workaround for Android: Instead of using Modal, try to set the content inside a TouchableWithoutFeedback, set the style View overlay to absolute and position as you wish, and don't forget to set an animation for it when user tapped outside or pressing close.

I faced this on iOS. The keyboard seems not be able to ve hidden
@gbumps

The keyboard or alerts which is part of the OS, covering these required deeper manipulation, harder techniques on the native side, which may result in rejection of your app. Beside, covering these doesn't mean anything at all.


My Sonoff Switches dont show up in devices

My Sonoff Switches dont show up in devices which means i cant add them to automations. Please Help

You don't need switches as devices.
Use an entity and call the service, example switch.turn_on.

oh thanks. Im new to home assistant and still learning.

Ok im in automations and select call service under actions and they dont show up. What am i doing wrong?

Duplicate pinned issue


[Automation] Generate Fluent Lite from Swagger baremetalinfrastructure#package-preview-2023-08

[Automation] Generate Fluent Lite from Swagger baremetalinfrastructure#package-preview-2023-08

API change check
APIView has identified API level changes in this PR and created following API reviews.
com.azure.resourcemanager:azure-resourcemanager-baremetalinfrastructure


Aggregations by Station, Space and Time

Aggregation by Station: After we have a set of 5-minute, lane-by-lane data that consists of flow, occupancy and speed which doesn't contain any holes, our next step is to aggregate this data to one set of flow, occupancy and speed values at each detector location. This means that we aggregate across the lanes. We perform the following computations for each variable:
For flow, we sum the flow across the lanes.
For occupancy, we take the average across the lanes.
For speed, we compute the flow-weighted harmonic mean speed.
Since we started with a complete set of data (which might have been imputed), we can perform these operations.
Aggregation over Time and Space: Once we have the 5-minute raw data of flow and occupancy, and the calculated values of speed and the performance measures, we then aggregate up in time and space. One of the major goals of the PeMS system is to report performance measures over geographical segments for long periods of time. For example, we would like to be able to report the total VMT per day for a particular District over a year. This involves a lot of data. In order to do this in a timely manner we aggregate the values in the database beforehand.
Over time we aggregate the 5-minute values to hourly, daily, weekly and monthly values. For flow, VMT, VHT and delay, we simply sum to get the next value up. For occupancy and speed we just average. Once you get above the hourly values, it doesn't really make sense to look at values of occupancy and speed. For Q and TTI, those values are computed off of the aggregates at that level.
We also aggregate over larger geographical segments. While we have the ability to display the information over a couple of different geographical segments (loop, county, district, state), we have found that we only need to aggregate to the county level. That provides enough aggregation so that the queries over the state are reasonably fast and at the same time that we can easily see the detail at the county-by-county level. Over larger geographical segments, users are interested in quantities that can be summed over different physical locations and still retain their meaning. This includes VMT, VHT and delay. The measures Q and TTI are simply ratios of these values.

@kengodleskidot, I can start developing model for this aggregation if you have not already started! Thank you!

Thanks for writing this up @kengodleskidot. On the topic of (pseudo)geographic aggregations: is there also interest in aggregating by highway? Or by highway-district?
The other thing I would note is that we needn't necessarily wait on the imputation work to start doing some of these aggregations: the imputed data should have the same structure as the unimputed data, so we can easily swap in imputed data later as it comes online. (you're probably already thinking of doing this)

Mintu has completed this issue and is awaiting review.


Test assign roles to users & all system-users available

AB#30157
Describe your changes
Adds E2E tests:

Add roles to user
All system-users available

Checklist before requesting a review

[x] I have performed a self-review of my code
[x] I have added tests wherever relevant
[x] I have made sure that all automated checks pass before requesting a review
[x] I do not need any deviation from our PR guidelines

Closing. PR moved with other changes to https://github.com/global-121/121-platform/pull/5797


JavaScript

JavaScript
User Story
As a boot camp student
I want the prework notes to be structured on a webpage
So that I can easily find and read the information
Acceptance Criteria
GIVEN a Prework Study Guide
WHEN I view the study guide
THEN I can see the four topics I learned listed along with a suggestion on what I should study first

done


Correct replication instructions to use bucket id

Correct mistake in docs that use a command line argument that does not exist.

!signed-cla


Add aws-service-opeartor CSV, CRD, and Package Files.

Could you please review @christopherhein

/approve

Thanks for the review @christopherhein!

Do we have suggestion on how operator authors should manage keeping these up to date as we release new versions?

We will be adding documentation, but the basic flow should be akin to:

Copying the CSV into a new file.
Updating the new CSV with the correct values, adding a replaces tag to manage the upgrade path, etc...
Submitting a PR to the community-operators repository for review.

/approve

Pushed to upstream-community-operators quay namespace


Feedback for Samsung page

What about Android 12?

A12 Samsung seems to have gotten better and will respect your settings now.

What about A71?

A12 Samsung seems to have gotten better and will respect your settings now.

What about A71?


Fix ensure_connection

Related Ticket: [ https://code.djangoproject.com/ticket/24810 ]
Related PR: [ https://github.com/django/django/pull/10217 PR]

Error 1: confused about this. what it is? It seems nothing related with DB.
https://djangoci.com/job/pull-requests-xenial/database=postgres,label=xenial,python=python3.5/642/console
FAIL [0.003s]: test_format_lazy (utils_tests.test_text.TestUtilsText)
Traceback (most recent call last):
File "/home/jenkins/workspace/pull-requests-xenial/database/postgres/label/xenial/python/python3.5/tests/utils_tests/test_text.py", line 244, in test_format_lazy
self.assertEqual('Ajout de article «\xa0My first try\xa0».', s)
AssertionError: 'Ajout de article «\xa0My first try\xa0».' != 'Added article "My first try".'
Error 2:  It may be a long-time query in mysql, and what could i do?
https://djangoci.com/job/pr-mariadb/database=mysql,label=mariadb,python=python3.7/199/console
_mysql_exceptions.OperationalError: (2013, 'Lost connection to MySQL server during query')
Error 3: This error should not occur, but connection must go wrong status and then will call my ensure_connection function. And please tell me what i can do.
https://djangoci.com/job/pull-requests-xenial/database=postgres,label=xenial,python=python3.5/642/
django.db.transaction.TransactionManagementError: This is forbidden when an 'atomic' block is active.

As the ticket says, "This may not be easy to implement." I don't think you're going to get much help. Some of those errors look like transient failures of the CI servers. Usually the builds work best if you push a single squashed commit. You should try running the tests locally and fix errors there first to avoid the risk of hanging the CI servers again.

Yes, I do run tests in my local PC and everything passed.


fix: unable to notify webhook when egress ending with EGRESS_LIMIT_REACHED

fix: unable to notify webhook when egress ending with EGRESS_LIMIT_REACHED

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


How to disable - Create a Branch - feature

We use "Github for Jira" to link our Jira tickets to our Github tickets, but we have our own process for creating branches, creating pull requests, merging, and deleting branches.
We would like to disable the "Create a Branch" link and confirm that Jira isn't performing any other modifications to our repository.

The documentation for this plugin says it requires read/write access in order to set up webhooks:

The documentation doesn't mention modifying the repository, which can be very disruptive to the development process. It also doesn't mention the "Create a Branch". Is there a way to disable this?
Thank you for any information you can provide.

This is not a Github for Jira specific issue, but one within Jira itself.  This problem would arise using any other source code integration.  Sadly, it seems like this is not supported yet, but I would recommend you vote for the issue to be resolved by an Atlassian Jira team member.  A "workaround" is to disable the Development View altogether, which is sub-optimal.
Sorry I can't give you better news. I'll be closing this ticket as it's not related with the integration.


Passing along a distrax object in args: Mismatch custom node data

Hi all,
I have a value error ' Mismatch custom node data' when I want to put a distrax object in args.
Minimal example:
import jax
import jax.numpy as jnp
import distrax
import diffrax

def ode(t, x, args):
    p = args['p']
    return p.log_prob(x)

p = distrax.Normal(jnp.zeros(1), jnp.ones(1))
args = {'p': p}

path = diffrax.diffeqsolve(diffrax.ODETerm(ode), diffrax.Euler(), 0., 1., 0.1, 0., args=args)

Is there a fix for this? Or a work-around?

Distrax is broken:
https://github.com/patrick-kidger/equinox/issues/252
I'm afraid you'll have to use something else. :(

Ah, I'd love to see such an Eqx-based "Diffrax 2.0" package. That'd be excellent.
I don't have a template repo, I just copy-paste between them! Quax is probably the smallest+simplest if you want to use it as a starting point.

Thanks for your comments all, I'll just use the parameters of the distributions directly and implement what I need myself.
Would indeed be a good idea to have a proper distrax package.

It's still in very preliminary stages, but something you might be interested in is distreqx: https://github.com/lockwo/distreqx. Here you can see an example that works:
import jax
import jax.numpy as jnp
from distreqx import distributions
import diffrax

def ode(t, x, args):
    p = args['p']
    return p.log_prob(x)

p = distributions.Normal(jnp.zeros(1), jnp.ones(1))
args = {'p': p}

path = diffrax.diffeqsolve(diffrax.ODETerm(ode), diffrax.Euler(), 0., 1., 0.1, jnp.array([0.]), args=args)

Oh this is awesome! Please keep us posted as this develops -- once it's further along then I'd love to advertise this more widely. (At minimum, add it to the ecosystem list.) Is the plan to produce something that is API-compatible with Distrax (including things like Jittable, which IIRC was their eqx.Module-equivalent), or something that is API-different but fills the same niche?
I am a particular fan of the name :D

Will definitely let you know once I cut a first release. It is API-different but fills the same niche (early versions will pretty much have 1 to 1 feature mapping). Given the state distrax was in, I don't think a lot of (external to deepmind) applications were built on it, so I figured there wouldn't be much demand for exact API matching. Additionally, one of the key design decisions was to largely drop the concept of a "batch" from any distributions knowledge and force more explicit vmaping to give the user more control and flexibility.


Wild card for docker

Does redbird support wild card for docker?
  ...
  .docker(redbird)
  .register("example.com", 'company/myimage:*'); // <------------ possible?

no sorry, not supported. But it should not be particularly difficult to implement. I do not have so much time right now, so I welcome you to write a patch, I can give you hints if you need them.

Sure :D
I'll try to send a PR tonight

this should be closed, ya?