shell: Add an application service

This is useful as a placeholder for all commands common to applications. For now we start with malloc stats, useful in debugging libc HEAP issues.

Feels like it would make more sense to leave the command "app" for the app.
For the heap one specifically, how about putting it under "kernel"? It's a kernel service, there's already "kernel stacks" and "kernel threads" etc... these are from subsys/shell/modules/kernel_service.c. I think the heap stats very much belong in there, though you'd probably want to wrap it in something so it could use shell_print.

Feels like it would make more sense to leave the command "app" for the app.
For the heap one specifically, how about putting it under "kernel"? It's a kernel service, there's already "kernel stacks" and "kernel threads" etc... these are from subsys/shell/modules/kernel_service.c. I think the heap stats very much belong in there, though you'd probably want to wrap it in something so it could use shell_print.

The problem is there is already a kernel heap command when CONFIG_SYS_HEAP_RUNTIME_STATS is enabled, so, as a counter part had to add a app heap. Don't want to put this in the kernel_service.c as this is purely application related, but if no one has objections and we don't foresee any other commands, happy to extend kernel_service.c.

The problem is there is already a kernel heap command when CONFIG_SYS_HEAP_RUNTIME_STATS is enabled, so, as a counter part had to add a app heap. Don't want to put this in the kernel_service.c as this is purely application related, but if no one has objections and we don't foresee any other commands, happy to extend kernel_service.c.

What do you mean by "application related"? Sorry I'm missing context here and I'm a bit confused by:
$ git grep malloc_stats
$

The problem is there is already a kernel heap command when CONFIG_SYS_HEAP_RUNTIME_STATS is enabled, so, as a counter part had to add a app heap. Don't want to put this in the kernel_service.c as this is purely application related, but if no one has objections and we don't foresee any other commands, happy to extend kernel_service.c.

What do you mean by "application related"? Sorry I'm missing context here and I'm a bit confused by:
$ git grep malloc_stats
$

This is for applications using malloc (libc HEAP) and doesn't include kmalloc (this is covered by kernel heap command).

This is for applications using malloc (libc HEAP) and doesn't include kmalloc (this is covered by kernel heap command).

Ok I see what you mean now, wondering if should not be a standalone command then. Adding the C library maintainers as reviewers.

This is for applications using malloc (libc HEAP) and doesn't include kmalloc (this is covered by kernel heap command).

Ok I see what you mean now, wondering if should not be a standalone command then. Adding the C library maintainers as reviewers.

yeah, we can rename app to something more appropriate, suggestions welcome.

yeah, we can rename app to something more appropriate, suggestions welcome.

Hard to say, do you already have something in mind that should go under this?

yeah, we can rename app to something more appropriate, suggestions welcome.

Hard to say, do you already have something more in mind that should go under this?

Not currently.

Not currently.

Ok then I'm thinking it may make sense to either let it live as a top level command for now, maybe under lib/libc, and then we could regroup down the road if and when we get more and having a group becomes more natural. @cfriedt what do you think?

Not currently.

Ok then I'm thinking it may make sense to either let it live as a top level command for now, maybe under lib/libc, and then we could regroup down the road if and when we get more and having a group becomes more natural. @cfriedt what do you think?

Moved to libc, now the command is libc heap.

Given that virtually every Zephyr app includes the libc, to me it seems weird that there would be a "libc shell".
I think this should go under shell/modules/app_service.c in order to differentiate it from the kernel heap command.
e.g. app heap vs kernel heap (I can't recall if that was the exact command name)

That was the original change but based on comment from moved to libc, I am okay either way, but if we can agree on one then I can update this PR.

Given that virtually every Zephyr app includes the libc, to me it seems weird that there would be a "libc shell".
I think this should go under shell/modules/app_service.c in order to differentiate it from the kernel heap command.
e.g. app heap vs kernel heap (I can't recall if that was the exact command name)

Yeah I was suggesting to not use the category app and leave it for the app instead. Were would you put it @cfriedt? I was thinking a libc command would make sense if we had more of those, otherwise I would just leave it at top level for now. Or under kernel with a different name? I don't have a strong opinion about it, it just felt weird to me to use app in the system. Mmh... "system"...

Hmm... yeah, I get that app might not be ideal. Is "system" too vague?

Hmm... yeah, I get that app might not be ideal. Is "system" too vague?

How about staying under kernel but with a different name? kernel libc_heap?

Hmm... yeah, I get that app might not be ideal. Is "system" too vague?

How about staying under kernel but with a different name? kernel libc_heap? It's not really a kernel service though :-\
Update: how about making kernel heap show both the Zephyr heap and the libc one?

Not ideal esp. if CONFIG_USERSPACE is set, we need a way to clearly convey that this is for the applications and separate from the kernel. system also doesn't fit quite right, app as a shell module seems the closest fit IMHO.

Please also add a testcase in tests/lib/c_lib

Just revisiting this now, the pain point to get all tests is mallinfo vs mallinfo2 availability, and AFAIK, there is no common define that can be used across libc implementations? below works for glibc but not for others, it just uses the __GLIBC__ define from the cross compiler's files in build system. Is there a common macro that I can use reliably? or some kind of has_mallinfo/has_mallinfo2 ?
#if __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 33)
struct mallinfo mallinfo(void)
#else
struct mallinfo2 mallinfo2(void)
#endif /* __GLIBC__ < 2 && (__GLIBC__ == 2 && __GLIBC_MINOR__ < 33) */

Is there a common macro that I can use reliably? or some kind of has_mallinfo/has_mallinfo2 ?

#if __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 33)
struct mallinfo mallinfo(void)
#else
struct mallinfo2 mallinfo2(void)
#endif /* __GLIBC__ < 2 && (__GLIBC__ == 2 && __GLIBC_MINOR__ < 33) */

I would venture to say that the mallinfo2 variant is the only one that we will need. If you google "glibc release dates" you'll see that glibc 1.x was last released in 1995.
However, would it be ok to simplify it to just be called struct mallinfo?


signup login feature

DONE able to sign up a new account from front end (backend is set up) *
DONE able to login with an account from front end (backend is set up) *
DONE preset buttons enabled when signed up (front set up for this) *
"save default startup preset" button enabled after signed up need back and front set up for this) **

able to save presets to account as a default preset

able to login and signup from the front end and back end

save default feature is added and working


[WIP] Fuzz testing for xi-rope

This PR adds a fuzz testing framework for xi-rope with two starter fuzz tests. The first one just tests that single edits work, the second tests that linear sequences of edits involving undo work.
However, this is totally blocked on https://github.com/rust-lang/rust/issues/39882 / https://github.com/rust-fuzz/cargo-fuzz/issues/81 because undo uses BTreeSet and due to that bug any code involving BTreeSet will immediately turn up false positive address sanitizer errors.
I'm pretty sure the op_seq fuzz test is correct, but I can't test it until that issue is fixed. I don't think this PR should be merged before then.
cc @raphlinus

The rust  issue (rust-lang/rust#39882 ) is closed by now. This might be fixed, needs triage.

I confirm I've done the CLA and consent to this work being included.

🤖💥🔫

@trishume so I have this working again, and I'm not totally sure what's going on in the op_seq test. No pressure, but if you'd like to take a quick look I wouldn't complain?

I unfortunately don't remember anything about this really, I took a quick look and nothing jogged my memory. I don't think I'd be any more effective than you. 😛

Yep fair enough. will poke around a bit and see if I can make sense of it.

Okay, thinking about this more:

fuzzing is definitely something we will want to explore at some point
It isn't totally clear where and how best to apply fuzzing, right now; we don't have an obvious entrance point (although actually fuzzing the RPC surface would be interesting)
When we do do this, it probably makes the most sense to keep it out-of-band; that is, we can just have an external 'xi-fuzzing' repo we can work from, so that we aren't committing corpuses and other test data to the main repo

And with that in mind, I'm going to close this; we'll keep the branch around for future reference.


gvm-libs: 21.4.2 -> 21.4.3

Motivation for this change
https://github.com/greenbone/gvm-libs/releases/tag/v21.4.3
Fixes 152449
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 153011 run on x86_64-linux 1

1 package built:

gvm-libs


Swiper Svelte doesn't support SSR under Sapper JS

This is a (multiple allowed):

[] bug

[x] enhancement

[ ] feature-discussion (RFC)

Swiper Version: 6.3.5.

Platform/Target and Browser Versions: Ubuntu 20.04, Firefox 83.

What you did
Sapper bundle compilation in dev mode fails both whether Swiper is added according to Swiper site example or with Mount according to Sapper recommendations.

Would it be possible to include the source *.svelte components in the build?

@igolkotek @btakita can you confirm that it's fixed ?

Same problem here.
When I import the *.svelte components directly, Rollup fails to import some helper files like ./init-swiper and ./ultis, or am I missing something?

I've managed to fix it in a fork just enough so we can keep using Swiper in our project, however I'm not sure what a proper fix would be because I'm not familiar with the build process (which seems fairly complex).
It seems like the main issue is that when you import something in a Svelte project, it expects to compile the component along with all of its dependencies, through each projects' build process.
In this repository however, none of the built JS files that the Svelte components are trying to import are actually included, so Svelte complains that it can't find the files and the build doesn't work.
Here are the changes I made in order to get it to work: https://github.com/zakkor/swiper/commit/0984204eafe301ab9bce8b717117e548a1edea19
I fixed the import paths so they point to the correct files, and included some of the needed pre-built JS files in the build dir (esm version only)

@zakkor could you take a look at the suggested change in #4061 PR? I think this should work well.

For anyone wondering: this works now, but you need to load the Swiper module dynamically in the onMount function. There is an example in the Sapper docs.

@silllli any chance you can provide a working code snippet? I managed to get the imports working using onMount, and the first slide displays with left/right carets overlaid but empty pagination tag and navigation isn't possible - it's just stuck on first slide, with no console errors.

Maybe you forgot to import and tell Swiper about the navigation and pagination modules?
I didn’t test it, but something like this should work:

// NOTE: the swiper stylesheets need to be imported as well

<svelte:component
  this={Swiper}
  navigation={{
    nextEl: '.swiper-button-next',
    prevEl: '.swiper-button-prev',
  }}
  pagination={{
    el: '.swiper-pagination',
    type: 'bullets',
    clickable: true,
  }}>

  <svelte:component this={SwiperSlide}>
    Slide content
  </svelte:component>

</svelte:component>

You also need to import the needed Swiper stylesheets. I do it in the style tag via SASS, the Swiper docs import in the

<svelte:component
  this={Swiper}
  navigation={true}
  pagination={{
    type: 'bullets',
    clickable: true,
  }}
  slidesPerView={1}
  spaceBetween={100}>

  <svelte:component this={SwiperSlide}>
    Slide content 1
  </svelte:component>

  <svelte:component this={SwiperSlide}>
    Slide content 2
  </svelte:component>

  <svelte:component this={SwiperSlide}>
    Slide content 3
  </svelte:component>
</svelte:component>

I also found this in the docs:

Note, Swiper Svelte component will create required elements for Navigation, Pagination and Scrollbar if you pass these params without specifying its elements (e.g. without navigation.nextEl, pagination.el, etc.)

So we actually don’t need to use the slots.

Thanks @silllli . Still no joy for me. Not sure what's wrong with it.
I copied and pasted the carousel from https://github.com/beyonk-adventures/svelte-carousel/blob/master/src/Carousel.svelte into my own Carousel component and that worked.

https://swiperjs.com/svelte#using-with-sapper

@nolimits4web thanks for this but still having trouble. I'm using SvelteKit (beta), the replacement for Sapper.
After updating swiper dependencies and imports as per new docs, the production build runs but the the carousel doesn't work (all slides are displayed at once).
The local dev build results in the following error:

@brian-hay
Did you try this yet?
https://swiperjs.com/svelte#using-with-sapper-and-svelte-kit

I have this error, and solve it by import from esm. But now swiper navigation doesnt work.
I'm using svelte-kit...

https://swiperjs.com/svelte#using-with-sapper

any news on this? having the same issue with sveltekit, navigation won't work


Lack of tests with MarshalCharAsManagedChar = false is causing issues now and will in the future

CSharp test projects wont build
// A value of type 'char' cannot be used as a default parameter because there are no standard
public void DefaultChar(sbyte c = 'a')

public sbyte** Names {
    get {
      // Cannot take the address of, get the size of, or declare a conversions to type 'sbyte'
        return (string*) ((global::CSharp.TestPointers.__Internal*) __Instance)->Names;
    }
}
// error CS1503: Argument 1: cannot convert from 'char' to 'sbyte'
Assert.That(*CSharp.CSharp.TakeConstCharRef(z), Is.EqualTo(z));

// error CS1503: Argument 1: cannot convert from 'char*' to 'sbyte*'
Assert.That(*CSharp.CSharp.TakeCharPointer(&c), Is.EqualTo(c));

These other bugs would have been found much sooner with MarshalCharAsManagedChar set to false
https://github.com/mono/CppSharp/issues/1417
https://github.com/mono/CppSharp/issues/1420
https://github.com/mono/CppSharp/issues/1409

@ddobrev We should definitely add a new CI test configuration to keep this tested.


Hide encryption key rotation for 2.6.5

Per https://github.com/rancher/dashboard/issues/4540#issuecomment-1109113077, a feature designed for 2.6.5 has been delayed. We'd like to rotate encryption keys but the backend code is delayed so UI need to ensure that we won't see this in Dashboard.
This will be hopefully available in a future version.
Original work for this feature 2.6.5 (now set for 2.6.6): https://github.com/rancher/dashboard/issues/4540
Work to hide done here, already merged: https://github.com/rancher/dashboard/pull/5709
@snasovich let me know if I missed anything.

Test Environment:
Rancher version: v2.6-head 7db4fe4
Rancher cluster type: HA
Docker version: 20.10

Testing:
Encryption key rotation is hidden in 2.6.5


feat(intersection_occlusion): enable intersection_occlusion detection

Description
https://tier4.atlassian.net/browse/RT1-5748
Related links
https://tier4.atlassian.net/browse/RT1-5748
Tests performed
https://evaluation.tier4.jp/evaluation/reports/87c69bd0-2804-5fbc-a4e7-9206c6c6cc99?project_id=prd_jt
Notes for reviewers

Interface changes

Effects on system behavior

Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[ ] I've confirmed the contribution guidelines.
[ ] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.
[ ] The PR has been properly tested.
[ ] The PR has been reviewed by the code owners.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.
[ ] The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

LGTM


Improved SELinux documentation

Need to cover better steps to take denials and make custom policy that might need to be modified.
Also document ondemand_use_kubernetes boolean.
┆Issue is synchronized with this Asana task by Unito

This is just an issue for 2.0 docs.  This is already documented in develop branch.


error with bump/diff when docs.json line is longer than 65535 (in 0.19.1 but not 0.19.0)

Quick Summary: ???
Ran into a known bug that prevents publishing my package with Elm 0.19.1. This just adds another data-point to issue #2055 (like #2098, #2132, from which this text was copied).
(cc @juanedi)
SSCCE
$ elm bump
-- PROBLEM LOADING DOCS --------------------------------------------------------

I need the docs for 12.16.0 to compute the next version number, so I fetched:

    https://package.elm-lang.org/packages/NoRedInk/noredink-ui/12.16.0/docs.json

I got the data back, but it was not what I was expecting. The response body
contains 194940 bytes. Here is the beginning:

    [{"name":"Nri.Ui","comment":" A collection of helpers for working with No...

Does this error keep showing up? Maybe there is something weird with your
internet connection. We have gotten reports that schools, businesses, airports,
etc. sometimes intercept requests and add things to the body or change its
contents entirely. Could that be the problem?

Elm: 0.19.1
Browser: fish shell
Operating System: OSX Catalina

Additional Details
npx<EMAIL_ADDRESS>bump worked fine.

This issue has a workaround described here, in case anyone need it: https://package.elm-lang.org/packages/NoRedInk/noredink-ui/latest/
npx -p<EMAIL_ADDRESS>elm bump


[FR]: Support context/comments

Would it be possible, to implement context as this fork https://www.npmjs.com/package/@shavenzov/ngx-translate-extract ?

Note: the feature is described here: https://www.npmjs.com/package/@shavenzov/ngx-translate-extract#context-and-comment-support
I'll leave this to the community to see if someone has the will and ability to implement this. If so, let me know and we can discuss whether that API is the best option.

I created a first running version for us. https://github.com/vandres/ngx-translate-extract
Docs are lacking and I am not sure, if the quality is good enough for a PR. Would love some feedback from you guys!
We are using it with CrowdIn the following way:
ngx-translate-extract -k --input ./src --output ./src/static/assets/i18n/{en,de,fr,it,nl,es,sv,ja,da,no}.json --clean --sort --format context-json --format-context-key crowdinContext --format-value-key text
With marker from https://github.com/vandres/ngx-translate-extract-marker:
marker('We', 'Short for Wednesday');
With Pipe, Service or Directive, just provide a "_context" translate param:
<h3 mat-subheader>{{ "User" | translate: {_context: 'System-User'} }}</h3>
Known issues:

remove context, after it has been added to the translations files, not automatically possible
no unit tests for context
conversion between different json formats untested


release feature with myapp.version

Hello, any reason why Sentry does not seem to detect my RELEASE setting put this way:
import myapp
RAVEN_CONFIG = {
    'CELERY_LOGLEVEL': env.int('DJANGO_SENTRY_LOG_LEVEL', logging.INFO),
    'DSN': SENTRY_DSN,
    'RELEASE': myapp.__version__,
}

You need to use lowercase attributes names IIRC. If that doesn't work let us know and we'll re-open this ticket.

Thanks for the quick answer @dcramer. Unfortunately using lowercase yields the same message from the "Releases" tab: "There don't seem to be any releases yet."

@aleprovencio what version of the SDK?

This is raven-python 5.21.0

I can't explain how it'd happen at this point. You should be able to import the client and do $client.release to confirm it's actually set, but our Django integration is definitely reading that config value.

Is it possible you're configuring RAVEN_CONFIG after settings have already been loading? Sentry won't re-evaluate the client when settings change, and I cannot reproduce this issue (we use this exact same kind of configuration ourselves).

Please have look at cookiecutter-django which is what I'm using. They still don't have a "release" setting on their implementation, so I was thinking of making a PR there as soon as I get this to work.

@aleprovencio did you ever get this functioning with Cookiecutter Django? If so, please send a pull request to the project. The more we can provide support for Sentry and Raven usage the better.

I wish I had @pydanny :(
Will try to make more tests in a few days and promise to post relevant info if any OK?

@aleprovencio any news on that with regards to Cookiecutter Django?

I'm so sorry I've completely forgotten about this issue. Unfortunately I don't have nowadays a single cookiecutter project on production which I have access to test this. If no one can test this now, I might start a new project in three months.


WIP: Inline recirc

opening this up early so people can take a look @mparent61 @benghaziboy @spra85

Fine. I would test this with a new test object in example/testcontent/models.py that uses it so we can test basic migration/save/validation

yeah, i was just in the middle of building out the tests with a new object

Coverage decreased (-0.3%) to 88.267% when pulling 84b9bc57972dcc71b0b1449a6f88a89ada661b2b on inline-recirc into 8862b117162fc41d442b10544265ec4a69ee3aef on master.

Coverage decreased (-0.2%) to 88.37% when pulling dad6cef377827543b807fcb0d10e3f7af47859c1 on inline-recirc into 8862b117162fc41d442b10544265ec4a69ee3aef on master.

@mparent61 @benghaziboy @spra85 going to find a sane way to reverse the order of the content objects in the response, but other than that, this should be good for review

outside of the reusable method, lgtm

Coverage decreased (-0.3%) to 88.241% when pulling 49cfbe06e3a1cc3ef967e652d3d0f16ba9e202fb on inline-recirc into 8862b117162fc41d442b10544265ec4a69ee3aef on master.

Coverage decreased (-0.3%) to 88.241% when pulling 49cfbe06e3a1cc3ef967e652d3d0f16ba9e202fb on inline-recirc into 8862b117162fc41d442b10544265ec4a69ee3aef on master.

:+1:

Coverage decreased (-0.3%) to 88.228% when pulling cf086c5dc8cc924f92005bcb09ea8a5d4df3343c on inline-recirc into 8862b117162fc41d442b10544265ec4a69ee3aef on master.

Coverage decreased (-0.2%) to 88.318% when pulling 1f7fd7d7bab95814702fc24cd58f4730f3e653a0 on inline-recirc into 8862b117162fc41d442b10544265ec4a69ee3aef on master.

Coverage increased (+0.006%) to 88.557% when pulling 56b4affb00529fd926e6b7713ea42beb4c9cea4e on inline-recirc into 8862b117162fc41d442b10544265ec4a69ee3aef on master.


lua-dev.nvim

Checklist:

[ x ] The plugin is specifically built for Neovim.
[ x ] The lines end with a .. This is to conform to awesome-list linting and requirements.
[ x ] It's not already on the list.
[ ] If it's a colorscheme, it supports treesitter syntax.
[ x ] The title of the pull request is Add `username/repo`  when adding a new plugin.
[ x ] Neovim is spelled as Neovim (not nvim, NeoVim or neovim), Lua is spelled as Lua (capitalized).

folke/lua-dev.nvim is already on the list.


issue in distance_type.tpp

The return value of point_triangle_distance_type is incorrect.
For example: p =[0.488166 0.0132623  0.289055]; v0 = [0.456476 0.0526442  0.260834]; v1 = [0.609111 0.0595969  0.275928]; v2 = [0.431262 0.0508414  0.255831].

Hi, thank you for pointing this issue out. I replaced the incorrect point_triangle_distance_type with the one used in the original IPC code. I also added some extra tests for the function. Let me know if there are any further problems.

It's cool!
BTW, I guess that assert(....toi <= 0) in lines 806, 830 and 853 of ipc.cpp should be changed to assert(...toi <= 1). Is that correct?

Yes, you are right. I will push a fixed version.


Fix invalid generation of report structures for XML and JSON when dry run flag is turned on

Fix invalid generation of report structures for XML and JSON when dry run flag is turned on

Just for build


Isomorphic snabbdom

It's rather a question. Is it possible to use snabbdom.js in isomorphic apps?
UPD: I found motorcycle-isomorphic-boilerplate, motorcycle.js uses snabbdom in DOM Driver. But what about CSR after SSR - obviously there is no built-in way for components to understand that they were rendered on the server (as React.js does by data-react-checksum attribute)?

npm install --save snabbdom-to-html
--
Best Regards,
Ivan Borisenko

Anyone know whether there's an actual example out there of SSR with snabbdom? I'm guessing it'll need the use of snabbdom-virtualize (or similar) on the client?

I have put together a little starter kit that does SSR with snabbdom-to-html, https://github.com/andyrj/snabbdom-redux-starter ...  It also has custom routing, and integration with Redux.  I think the part that you are interested in is fairly straight forward to pull from src/server.js for the SSR code and src/index.js for the client side rendering of the same components.
It's just a rough extraction of some logic from another project of mine, so it's not "CSS" pretty or well documented at the moment but it works well for my purpose as a basic starter kit.

Oh cool! Will take a look...I'm having fun with snabbdom and Mobx at the mo' - nice combination...but SSR will be the icing on the cake!

Yes snabbdom-to-html is pretty good and we use that in Cycle.js, example: https://github.com/cyclejs/cyclejs/tree/master/examples/isomorphic
I think this issue can be closed, since it's a question.


ant is not present in macOS but is in Linux and Windows

Closing in favor of https://github.com/actions/virtual-environments/issues/1040
The actions/virtual-environment team can help get certain software pre-installed on our hosted runners.


Battery weapons with BatterySelfRecharger tends to not recharge to max capacity, instead stopping at max - 1

Description
Title.
Reproduction
Step 1. Fire a bunch of antique laser pistols or advanced laser pistols until it "jams" at 9.
Screenshots
https://github.com/user-attachments/assets/dfa8b2d8-6e43-482e-a49f-929ec0f92fde
Additional context
My best guess is that it recharges mid-firing and breaks

I had this happen on Frontier yesterday. But it seemed to only be a visual bug and the max charge was actually still 10 shots.

I had this happen on Frontier yesterday. But it seemed to only be a visual bug and the max charge was actually still 10 shots.

It wasn't at 10 shots. It was at 9 but extremely close to 10. close enough that it near instantly reached 9 shots again after you shot it.


⚠ Bofrost.be has degraded performance

In 950f26f, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1134 ms

Resolved: Bofrost.be performance has improved in 4cda8c5.


Recalibrate slide width with CSS animation

Hoping there is a way to have the width of the slide recalibrate during a triggered CSS animation.
I'm adding a slide in panel alongside a full screen Slick carousel that pushes the current slide to the right, shrinking the visible space. I've modified the container with both padding and margin, but the results are the same. I've also tried modifying a number of the elements from the container, the .slick-list and the .slick-track. Is there an option or API method I'm missing to solve this?
====================================================================
https://jsfiddle.net/mhigley/dpf7mLpL/
====================================================================
What is the expected behaviour?
I anticipated when the Slick container to be resized, the calibration would have automatically adjusted for the new width.
====================================================================
What is observed behaviour?
Presently, the visible slide just move off screen. When advancing to the next slide however, the calibration is accomplished.
====================================================================
More Details

Tested on Firefox and Chrome. Same results.
jQuery 2.2.4 and current version of Slick

Via @martinSFP on StackOverflow, I missed the setPosition Event. Thanks Ken for such an amazing script!
$('aside', $body).on('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){     $('.sections').slick('setPosition');   });


Create akversion

Looks like you may have accidentally sent this PR with one blank line.  Mind if I close it?

Sure
Sent from my iPhone

On May 17, 2015, at 5:38 AM, Matthew Warman<EMAIL_ADDRESS>wrote:
Looks like you may have accidentally sent this PR with one blank line. Mind if I close it?
—
Reply to this email directly or view it on GitHub.


feat: add function to create shapefiles with urban and rural areas

Pull Request doc
Purpose
Addresses https://github.com/Breakthrough-Energy/PreREISE/issues/273
Adds function to create shapefiles for urban areas and rural areas for each state
What the code is doing

Adds a function to download shapefiles from a URL, mostly copied from PostREISE
Adds a function to take shapefiles of US states and urban areas and returns a geodataframe of both urban and rural areas.
Adds a function to do the whole thing at once - download files, process data, and write new files.

Testing
TBD
Where to look

It's helpful to clarify where your new code lives if you moved files around or there could be confusion/

What files are most important?

Usage Example/Visuals
How the code can be used and/or images of any graphs, tables or other visuals (not always applicable).
Time estimate
10 mins

The code looks good and the test is great. The only thing we need to figure out before merging this is to finalize the directory of the code in the repo and the files in the blob storage. For the convenience of further discussion, here is what we have (comments in brackets open for discussion):

Code in the repo

prereise/utility/generate_rural_shapefiles.py (probably we want this module sitting closely with transportation module)
prereise/utility/shapefile.py(this provides a general interface of downloading shapefiles from blob storage and makes perfect sense to be part of utility module)

File on blob storage

state outlines: https://besciences.blob.core.windows.net/us-shapefiles/
urban outlines: https://besciences.blob.core.windows.net/shapefiles/urban-area-shapefiles/
(We probably want to reorganize all shapefiles currently on the blob storage as discussed during the meeting)


Can't use string as a HASH ref while "strict refs"

$VERSION = "0.07";
dies with
Can't use string ("Inactivity timeout") as a HASH ref while "strict refs" in use at /usr/local/share/perl/5.18.2/WWW/Telegram/BotAPI.pm line 204.
Replies to die:
Inactivity timeout
Connect timeout
Bad Gateway
Is that expected or not?
Thanks!

Hi! Sorry for the delay.
This indeed looks like something that shouldn't happen! This is probably because I trust too much the UserAgent to give me a reference of some sort, but it's indeed not happening right now.
I intend to fix this ASAP, however due to time constraints at the moment I'm unable to provide an immediate patch.
Stay tuned and thanks for your report!

Alright, here I come with an update.
On my current setup (Perl 5.22.0, Mojolicious 6.58/7.25) I currently cannot reproduce this.
It looks like the error is being caught & thrown appropriately:
ERROR: Inactivity timeout at WWW/Telegram/BotAPI.pm line 207.
        WWW::Telegram::BotAPI::api_request(undef, undef, HASH(0x20f4a9d0)) called at WWW/Telegram/BotAPI.pm line 76
        WWW::Telegram::BotAPI::AUTOLOAD(WWW::Telegram::BotAPI=HASH(0x20eeb790), HASH(0x20f4a9d0)) called at tg-bot-example.pl line 100

Would you please provide me with your Perl & Mojolicious versions? The issue seems indeed caused by these lines: according to your error message, it looks like the user agent is returning the error as a plain string (instead of returning false-y value and putting it in $tx->error). This is indeed strange.
The strangest thing is that I remember this happening to me some time ago, but I can't reproduce it any longer.
Also, can you reproduce the issue with the following example code?
use WWW::Telegram::BotAPI;

my $api = WWW::Telegram::BotAPI->new (token => 'your_token');
$api->agent->inactivity_timeout (5);
$api->getUpdates ({ timeout => 10 });

Thank you!

Thanks for your time! I'm using clean "Ubuntu 14.04.5 LTS" install.
As packet manager says, I have perl "5.18.2-2ubuntu1.1" and libmojolicious-perl "4.63+dfsg-1"
And yes, I can reproduce my issue with those three lines:
./test.pl  Can't use string ("Inactivity timeout") as a HASH ref while "strict refs" in use at /usr/local/share/perl/5.18.2/WWW/Telegram/BotAPI.pm line 204.

Alright, I reproduced this successfully.
The problem is caused by the very outdated version of Mojolicious provided by Ubuntu, which returned these kinds of errors as plain strings. This was changed in later versions, perhaps in 5.0 or something similar.
I understand that to update the module you would have to use CPAN, which is not always possible/preferable, so I am going to update the module adding a check for these conditions.

I issued a commit which should solve your issue.
Could you please test the module with the most recent changes and tell me if it works for you?
Thanks!

Thanks a lot!
Ancient Mojolicious version now works perfect )
ERROR: Inactivity timeout at /usr/local/share/perl/5.18.2/WWW/Telegram/BotAPI.pm line 208.         WWW::Telegram::BotAPI::api_request(undef, undef, 'HASH(0x27506f8)') called at /usr/local/share/perl/5.18.2/WWW/Telegram/BotAPI.pm line 76         WWW::Telegram::BotAPI::AUTOLOAD('WWW::Telegram::BotAPI=HASH(0x168e088)', 'HASH(0x27506f8)') called at /sisz/tg/SiszAddTicketBot.pl line 142

Great! I just released v0.08 (https://github.com/Robertof/perl-www-telegram-botapi/releases/tag/v0.08) which will be available on CPAN shortly.
Thanks for your efforts & for being a valuable contributor!


Enable builtinoperations, typeof and unary unit tests

Purpose
$subject
Fixes #23292
Fixes #23328
Fixes #23351
Check List

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

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

[ ] Increased Test Coverage
[ ] Added necessary documentation

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

Codecov Report

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

@@           Coverage Diff           @@
##           master   #23293   +/-   ##
=======================================
  Coverage   14.59%   14.59%
=======================================
  Files          51       51
  Lines        1411     1411
  Branches      219      219
=======================================
  Hits          206      206
  Misses       1189     1189
  Partials       16       16

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 df73fd3...3f42ad6. Read the comment docs.


@dependency and @not:dependency to list extensions installed as dependency of another extension

Is there an easy way to list extensions that are installed as a dependency of another extension?
If not, could we add filters for @dependency and @not:dependency (or something similar) in extension search to see that list? I'd love to see these work just like our @installed or @category:"extension packs" filters.

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


KAFKA-12635: Don't emit checkpoints for partitions without any offset…

…-syncs
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@ryannedolan Can you take a look?

@mimaison, just saw your comment on KAFKA-13659. I can take a look at this next week. @urbandan and @dorwi already has a fix for KAFKA-13659 (and thus this) in our distro that we wanted to contribute back. If they have time they may also review to your solution or share their approach.

@mimaison looks like it works, but topic's partitions without data are not replicated like before. Not sure it is intended behavior.
Reproducer procedure
SOURCE="localhost:9090"
TARGET="localhost:9093"
export KAFKA_HOME="$HOME/.kafka/home"

$KAFKA_HOME/bin/kafka-topics.sh --bootstrap-server $SOURCE --create --topic my-topic --config 'retention.ms=10000'
$KAFKA_HOME/bin/kafka-console-consumer.sh --bootstrap-server $SOURCE --group my-group --topic my-topic
for i in $(seq 1 100); do echo $i; done | $KAFKA_HOME/bin/kafka-console-producer.sh --bootstrap-server $SOURCE --topic my-topic
# wait until the retention policy deletes the records and then start mm2
$KAFKA_HOME/bin/kafka-consumer-groups.sh --bootstrap-server $TARGET --describe --group my-group

Test on 3.1.0 release
$ $KAFKA_HOME/bin/kafka-consumer-groups.sh --bootstrap-server $SOURCE --describe --group my-group

Consumer group 'my-group' has no active members.

GROUP           TOPIC           PARTITION  CURRENT-OFFSET  LOG-END-OFFSET  LAG             CONSUMER-ID     HOST            CLIENT-ID
my-group        my-topic        0          100             100             0               -               -               -
my-group        my-topic        1          0               0               0               -               -               -
my-group        my-topic        2          0               0               0               -               -               -

$ $KAFKA_HOME/bin/kafka-consumer-groups.sh --bootstrap-server $TARGET --describe --group my-group

Consumer group 'my-group' has no active members.

GROUP           TOPIC           PARTITION  CURRENT-OFFSET  LOG-END-OFFSET  LAG             CONSUMER-ID     HOST            CLIENT-ID
my-group        my-topic        0          100             0               -100            -               -               -
my-group        my-topic        1          0               0               0               -               -               -
my-group        my-topic        2          0               0               0               -               -               -

# mirrorMaker.out
[2022-03-08 15:14:49,985] TRACE latestDownstreamOffset 100 is larger than or equal to convertedUpstreamOffset 100 for TopicPartition my-topic-0 (org.apache.kafka.connect.mirror.MirrorCheckpointTask)
[2022-03-08 15:14:49,985] TRACE latestDownstreamOffset 0 is larger than or equal to convertedUpstreamOffset 0 for TopicPartition my-topic-1 (org.apache.kafka.connect.mirror.MirrorCheckpointTask)
[2022-03-08 15:14:49,985] TRACE latestDownstreamOffset 0 is larger than or equal to convertedUpstreamOffset 0 for TopicPartition my-topic-2 (org.apache.kafka.connect.mirror.MirrorCheckpointTask)

Test on branch mimaison:KAFKA-12635
$ $KAFKA_HOME/bin/kafka-consumer-groups.sh --bootstrap-server $SOURCE --describe --group my-group

Consumer group 'my-group' has no active members.

GROUP           TOPIC           PARTITION  CURRENT-OFFSET  LOG-END-OFFSET  LAG             CONSUMER-ID     HOST            CLIENT-ID
my-group        my-topic        0          0               0               0               -               -               -
my-group        my-topic        1          100             100             0               -               -               -
my-group        my-topic        2          0               0               0               -               -               -

$ $KAFKA_HOME/bin/kafka-consumer-groups.sh --bootstrap-server $TARGET --describe --group my-group

Consumer group 'my-group' has no active members.

GROUP           TOPIC           PARTITION  CURRENT-OFFSET  LOG-END-OFFSET  LAG             CONSUMER-ID     HOST            CLIENT-ID
my-group        my-topic        1          100             100             0               -               -               -

# mirrorMaker.out
[2022-03-08 15:56:50,978] TRACE latestDownstreamOffset 100 is larger than or equal to convertedUpstreamOffset 100 for TopicPartition my-topic-1 (org.apache.kafka.connect.mirror.MirrorCheckpointTask)

If I now send additional 100 messages, this is what I have on the target cluster:
$ $KAFKA_HOME/bin/kafka-consumer-groups.sh --bootstrap-server $TARGET --describe --group my-group

Consumer group 'my-group' has no active members.

GROUP           TOPIC           PARTITION  CURRENT-OFFSET  LOG-END-OFFSET  LAG             CONSUMER-ID     HOST            CLIENT-ID
my-group        my-topic        0          100             100             0               -               -               -
my-group        my-topic        1          100             100             0               -               -               -

@fvaleri Yes if no offsets are committed for a partition (because it can't be translated), it won't appear when describing consumer offsets in the target cluster. This is the expected behavior with this PR.

Thanks for the confirmation @mimaison.
Then, it's +1 for me.

@tombentley @showuon Can you take a look?

I'll take a look this week.

Help me understand where we are at with this issue.  @mimaison it appears you deleted the branch, but is this fixed in another branch or unreleased version of mirrormaker?  I am sorry if it is a misunderstanding from me.  I am new to community supported software.


[Bug]: Logging out when app is partially loaded causes incorrect error handling

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
When user logs out during app load, then user is redirected to server unavailable error instead of login page and going back on the browser page does a myriad of things that looks glitchy.

Steps To Reproduce
1, log out when an app is being freshly loaded
2. try to navigate back on the browser
Environment
Production
Version
Cloud

not reproducible anymore


[T5A2][F09-B2] Bernard Tan Ke Xuan

Some comments added. Please close the PR after reading comments.


replace propTypes with type Props from Libraries/Components/WebView/WebView.ios.js.

Fixes #22205.
I tried "Strengthening Flow Types for Core Components #22100".
But there is propTypes on Libraries/Components/WebView/WebView.ios.js.
I think, propTypes should be removed before trying to strengthening Flow Types.
So this PR replace propTypes with type Props.
Test Plan:

[x] npm run test
[x] npm run prettier
[x] npm run flow-check-ios
[x] npm run flow-check-android
[x] npm run flow

Changelog:

replace PropTypes with type Props
avoid to pass unused args to requireNativeComponent

@RSNara

What do you think about strengthening the flow typings here further, landing this PR, and then landing a sibling PR over at react-native-community/react-native-webview?

I'll strengthen the flow typings and then I'll also send PR to react-native-community/react-native-webview.


Installing by adding to .references

It was possible to install new packages with two steps:

Add a relevant line to a paket.references
Run paket install

With latest version (1.4.1) this doesn't work and I get an error saying Paket failed with: Package X was referenced, but it was not found in the paket.lock file.
Is this by design or a by-product of another issue. #779 maybe?

Yes it was decided that this feature is confusing for most devs. We removed
it.
But we already added similar feature to new tooling in atom editor and I
assume we will do the same later in the vs addin.
On May 9, 2015 2:43 PM, "Tomasz Pluskiewicz"<EMAIL_ADDRESS>wrote:

It was possible to install new packages with two steps:

Add a relevant line to paket.references
Run paket install

With latest version (1.4.1) this doesn't work and I get an error saying Paket
failed with: Package X was referenced, but it was not found in the
paket.lock file.
Is this by design or a by-product of another issue. #779
https://github.com/fsprojects/Paket/issues/779 maybe?
—
Reply to this email directly or view it on GitHub
https://github.com/fsprojects/Paket/issues/822.

That's unfortunate, because I liked that way. I will explore the add-in. Thanks


Optimise

slight tweaks to models

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.60%. Comparing base (983a012) to head (b68c497).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #257      +/-   ##
==========================================
- Coverage   94.67%   94.60%   -0.07%
==========================================
  Files          54       54
  Lines        2986     2948      -38
==========================================
- Hits         2827     2789      -38
  Misses        159      159

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


DNS failure during install of either 0.5.0 or 0.6.0 results in sshfs not found or installed.

Installation on Big Sur amd64 system....
Logs:
ha.stderr.log
ha.stdout.log
serial.log

I think qemu user mode networking will only use a single DNS server from the host config, so if that one cannot resolve the name, name lookup will fail because it cannot fall back to a secondary server.
Unfortunately I'm not sure how qemu will pick the DNS server, but I would first check (on the Mac) with scutil --dns to see if the first entry is a fully functioning nameserver.
I tried playing around with passing an invalid DNS server to qemu to repro your breakage, but it always worked correctly, so I'm not really sure if I'm looking at the right spot or not.

Looks like it eventually started working!

Upon further analysis, it looks like I have complete failure to connect out from the VM's network.
 % limactl shell default
satadru@lima-default:/usr/local/bin$ ifconfig -a
enp0s1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet <IP_ADDRESS>  netmask <IP_ADDRESS>  broadcast <IP_ADDRESS>
        inet6 fe80::5054:ff:fe12:3456  prefixlen 64  scopeid 0x20<link>
        inet6 fec0::5054:ff:fe12:3456  prefixlen 64  scopeid 0x40<site>
        ether 52:54:00:12:34:56  txqueuelen 1000  (Ethernet)
        RX packets 755  bytes 66321 (66.3 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1404  bytes 129204 (129.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet <IP_ADDRESS>  netmask <IP_ADDRESS>
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 710  bytes 51619 (51.6 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 710  bytes 51619 (51.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
satadru@lima-default:/usr/local/bin$ ip route show
default via <IP_ADDRESS> dev enp0s1 proto dhcp src <IP_ADDRESS> metric 100
<IP_ADDRESS>/24 dev enp0s1 proto kernel scope link src <IP_ADDRESS>
<IP_ADDRESS> dev enp0s1 proto dhcp scope link src <IP_ADDRESS> metric 100
satadru@lima-default:/usr/local/bin$ ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=255 time=0.982 ms
64 bytes from <IP_ADDRESS>: icmp_seq=2 ttl=255 time=0.984 ms
^C
satadru@lima-default:/usr/local/bin$ ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.

This is not a networking issue insofar as it is actually a DNS issue it seems.
I can put a working dns server into /etc/resolv.conf and networking starts working.

The permanent solution for me was to modify /etc/systemd/resolved.conf and add fallback solutions thus:
[Resolve]
# Some examples of DNS servers which may be used for DNS= and FallbackDNS=:
# Cloudflare: <IP_ADDRESS> <IP_ADDRESS> 2606:4700:4700::1111 2606:4700:4700::1001
# Google:     <IP_ADDRESS> <IP_ADDRESS> 2001:4860:4860::8888 2001:4860:4860::8844
# Quad9:      <IP_ADDRESS> 2620:fe::fe
DNS=<IP_ADDRESS> <IP_ADDRESS> 2606:4700:4700::1111 2606:4700:4700::1001
FallbackDNS=<IP_ADDRESS> <IP_ADDRESS> 2001:4860:4860::8888 2001:4860:4860::8844

Have you tried setting the nameserver in /etc/resolv.conf on the Mac and see if qemu forwards to that?
I'm just guessing based on this 10 year old comment in a bug report:

the implementation is rather simplistic - for DNS it merely forwards (like a NAT box) packets from guest to a nameserver from host /resolv.conf - only one nameserver, because you can't NAT to TWO destinations at once.

/etc/resolv.conf in macos states:
#
# macOS Notice
#
# This file is not consulted for DNS hostname resolution, address
# resolution, or the DNS query routing mechanism used by most
# processes on this system.
#
# To view the DNS configuration used by this system, use:
#   scutil --dns
#
# SEE ALSO
#   dns-sd(1), scutil(8)
#
# This file is automatically generated.
#
search lan
nameserver <local network dns server>

The local network dns server does work from macos.

So it looks like slirp no longer reads /etc/resolv.conf on macOS, but calls into libresolv.
Now there should be a way to set an env variable SLIRP_DEBUG=misc to get additional tracing information, that should show which nameserver IPs it finds, but I haven't been able to figure out where the g_debug output from inside qemu ends up.
@AkihiroSuda Any pointers?

Updated my advice accordingly...

Just another datapoint:
https://github.com/rancher-sandbox/rancher-desktop/issues/572#issuecomment-911805379 claims that removing an IPv6 nameserver from /etc/resolv.conf on the macOS host fixed the issue.

Manual setup for DNS/FallbackDNS helped me with resolving issues with DNS server that F5 VPN sets on connection. basically I had to hard-code that DNS server as a primary DNS and use Google as fallback.

I wonder if Lima shouldn't just auto-add the configured nameservers from the en0 interface on the host to the instance resolver:
$ system_profiler SPNetworkDataType -json | jq '.SPNetworkDataType[] | select(.interface == "en0").DNS.ServerAddresses'
[
  "<IP_ADDRESS>",
  "<IP_ADDRESS>"
]

I suspect this would fix the issue for most affected users, if not all.
Not sure what to do on Linux (if anything).

I've created #199 as an attempt to address this issue.
I would appreciate if everyone who encountered this problem and is comfortable building Lima from source code test it out and report if this fixes the problem for you or not!

@jandubois, it does not fix my issue, so I have to fallback to the workaround. I assume that it is again due to VPN case - it is launched after lima was started - meaning "VPN DNS" is only known after the connection. It also starts tunnel interface different to en0.

@aleskovets I don't think we'll be able to figure out DNS setting from VPN automatically, especially not when the VPN connection is established when the Lima instance is already running.
I've created #218 to have a mechanism to explicitly provide DNS addresses in lima.yaml. That way there should be no need to "manually" redo the installation of prerequisites in a provisioning script.
If you are comfortable building from source, could you test it and see if that works for you?

@jandubois , #218 resolved this issue for me. Thank you!

@jandubois , #218 resolved this issue for me. Thank you!

@aleskovets Awesome, thanks for letting me know!


cf app APP_NAME displays the stack from the current droplet instead of the app

Please fill out the issue checklist below and provide ALL the requested information.

[x] I tried updating to the latest version of the CF CLI to see if it fixed my problem.
[x] I attempted to run the command with CF_TRACE=1 to help debug the issue.
[x] I am reporting a bug that others will be able to reproduce.

Describe the bug and the command you saw an issue with
This was uncovered by a CATS (capi_experimental suite) failure after cf-deployment changed the default stack from cflinuxfs2 to cflinuxfs3. Specifically, this CAT fails.
The issue was that after applying a manifest that specified that the app use the cflinuxfs2 stack, the cf app APP_NAME command continued displaying the app's previous stack, which was cflinuxfs3.
Example test failure output:
• Failure [164.341 seconds]
[capi_experimental]
/go/src/github.com/cloudfoundry/cf-acceptance-tests/cats_suite_helpers/cats_suite_helpers.go:245
  apply_manifest
  /go/src/github.com/cloudfoundry/cf-acceptance-tests/cats_suite_helpers/cats_suite_helpers.go:251
    Applying manifest to existing app
    /go/src/github.com/cloudfoundry/cf-acceptance-tests/capi_experimental/manifest.go:89
      routing
      /go/src/github.com/cloudfoundry/cf-acceptance-tests/capi_experimental/manifest.go:103
        when routes are specified
        /go/src/github.com/cloudfoundry/cf-acceptance-tests/capi_experimental/manifest.go:104
          successfully completes the job [It]
          /go/src/github.com/cloudfoundry/cf-acceptance-tests/capi_experimental/manifest.go:154

          No future change is possible.  Bailing out early after 0.000s.
          Got stuck at:

              last uploaded:     Tue 15 Jan 02:25:53 UTC 2019
              stack:             cflinuxfs3
              buildpacks:        ruby

              type:           web
              instances:      0/2
              memory usage:   300M
                   state      since                  cpu    memory          disk          details
              #0   starting   2019-01-15T02:27:42Z   0.0%   19.1M of 300M   87.8M of 1G
              #1   starting   2019-01-15T02:27:37Z   0.0%   0 of 300M       0 of 1G

              type:           worker
              instances:      0/0
              memory usage:   256M

              There are no running instances of this process.

          Waiting for:
              stack:\s+cflinuxfs2

          /go/src/github.com/cloudfoundry/cf-acceptance-tests/capi_experimental/manifest.go:169

What happened
We found that the manifest application was working as expected and that the app was reporting the correct stack when observed through cf curl /v3/apps/<app-guid>. However, while running cf app APP_NAME -v we saw that the CLI appeared to take the stack from /v3/apps/<app-guid>/droplets/current.
This means that the CLI command displays the stack of the app's current droplet (usually what it was using when it was last staged) and matches up with the stack that will be used when the app next starts (i.e. a new Desired LRP is created on Diego). However, this also means that the displayed stack may not align with what is actually set on the app itself (what it will use the next time it is stages) and can cause confusion.
More information can be found in CAPI Story #163210854
Expected behavior
Not sure which is most helpful for the end user, but right now it can be confusing trying to disambiguate these two sources of stack -- especially since cf app implies it is reporting app state versus droplet state.
To Reproduce
Easiest way is to checkout v2.7.0 of CATS and run the capi_experimental/manifest.go suite.
A manual way is to:

cf push APP_NAME
Observe that the stack is cflinuxfs3 using cf curl /v3/apps/<app-guid>
Apply a manifest cf v3-apply-manifest -f <manifest-file-path>

An example manifest for a staticfile_buildpack is:
applications:
- name: APP_NAME
  stack: cflinuxfs2
  buildpacks:
  - staticfile_buildpack
  env:
    foo: qux
    snack: walnuts
  processes:
  - disk_quota: 1024M
    instances: 2
    memory: 300M
    timeout: 75
    type: web
  - disk_quota: 1024M
    health-check-type: process
    instances: 0
    memory: 256M
    type: worker

Observe that cf app APP_NAME still returns cflinuxfs3 as the stack and that  cf curl /v3/apps/<app-guid> returns cflinuxfs2.

Provide more context

Mac OS X 10.13 iTerm
cf version 6.42.0+0cba12168.2019-01-10
capi-release 1.75.0

Thank you! 🎉
Tim && @monamohebbi

Hey there, I'm noticing a similar issue occurring but when we attempt to change the stack of a stopped app through the curl command:
"curl", "/v2/apps/"+appGuid, "-X", "PUT", -d={"stack_guid":"+stackGuid+","state":"STOPPED"}

a cf app myapp results in the stack being blank. This is slightly different that showing the old stack.

@shanks3012 does the app still have a current droplet associated with it?

Thank you for your submission. If you still run into this issue with the latest CLI v8, please open a new ticket with the necessary information mentioned in our issue template.


Add an option to add space between Chinese and English

The behavior is following the spacing section of guidelines.
Some Examples
"零分sjkldfsdj赛姐" to "零分 sjkldfsdj 赛姐".
"赛琳方式docs囧带领防晒临登机" to "赛琳方式 docs 囧带领防晒临登机".


[1.10] Pick up correct gid

When setting the gid, we were not checking if RunAsGroup
from k8s was nil or not. We were simply converting that
to an int and nil was becoming 0. Hence all the containers
were being run with gid root regardless of their uid.
Adding that check here fixes it and we get the correct gid.
backport https://github.com/kubernetes-sigs/cri-o/pull/2173
Signed-off-by: Urvashi Mohnani<EMAIL_ADDRESS>

@mrunalp PTAL

/lgtm

/test kata-containers

kata is not working on 1.10

@sboeuf kata is down, probably need to disable the tests for 1.10 as well?

@umohnani8 let me pull @chavafg here because I thought the Kata CI was only testing CRI-O master.
@chavafg is it expected to have the CI running on the 1.10 branch?

It is working fine with master but 1.10 is failing consistently. Even 1.11 and 1.12 are fine. I am okay if we don't want to invest more time in 1.10 :)

yeah, I remember another PR for 1.10 last week which also failed, so it seems that kata is currently not working with 1.10.
I see it was an exec failure:
13:58:40 # time="2019-03-29 19:58:16.376764079Z" level=debug msg="ExecSyncRequest &ExecSyncRequest{ContainerId:e0e94e01dd4ad1857e5705c0a509123e21168aca157b2883c1e18ae8683cbc31,Cmd:[sleep 3],Timeout:1,}"
13:58:40 # time="2019-03-29 19:58:17.590045340Z" level=debug msg="Received container exit code: -1, message: command timed out"
13:58:40 # time="2019-03-29T19:58:17Z" level=fatal msg="execing command in container synchronously failed: rpc error: code = Unknown desc = command error: command timed out, stdout: , stderr: , exit code -1"

@mrunalp can we merge this?

LGTM


[SPARK-48228][PYTHON][CONNECT] Implement the missing function validation in ApplyInXXX

What changes were proposed in this pull request?
Implement the missing function validation in ApplyInXXX
https://github.com/apache/spark/pull/46397 fixed this issue for Cogrouped.ApplyInPandas, this PR fix remaining methods.
Why are the changes needed?
for better error message:
In [12]: df1 = spark.range(11)

In [13]: df2 = df1.groupby("id").applyInPandas(lambda: 1, StructType([StructField("d", DoubleType())]))

In [14]: df2.show()

before this PR, an invalid function causes weird execution errors:
24/05/10 11:37:36 ERROR Executor: Exception in task 0.0 in stage 10.0 (TID 36)
org.apache.spark.api.python.PythonException: Traceback (most recent call last):
  File "/Users/ruifeng.zheng/Dev/spark/python/lib/pyspark.zip/pyspark/worker.py", line 1834, in main
    process()
  File "/Users/ruifeng.zheng/Dev/spark/python/lib/pyspark.zip/pyspark/worker.py", line 1826, in process
    serializer.dump_stream(out_iter, outfile)
  File "/Users/ruifeng.zheng/Dev/spark/python/lib/pyspark.zip/pyspark/sql/pandas/serializers.py", line 531, in dump_stream
    return ArrowStreamSerializer.dump_stream(self, init_stream_yield_batches(), stream)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ruifeng.zheng/Dev/spark/python/lib/pyspark.zip/pyspark/sql/pandas/serializers.py", line 104, in dump_stream
    for batch in iterator:
  File "/Users/ruifeng.zheng/Dev/spark/python/lib/pyspark.zip/pyspark/sql/pandas/serializers.py", line 524, in init_stream_yield_batches
    for series in iterator:
  File "/Users/ruifeng.zheng/Dev/spark/python/lib/pyspark.zip/pyspark/worker.py", line 1610, in mapper
    return f(keys, vals)
           ^^^^^^^^^^^^^
  File "/Users/ruifeng.zheng/Dev/spark/python/lib/pyspark.zip/pyspark/worker.py", line 488, in <lambda>
    return lambda k, v: [(wrapped(k, v), to_arrow_type(return_type))]
                          ^^^^^^^^^^^^^
  File "/Users/ruifeng.zheng/Dev/spark/python/lib/pyspark.zip/pyspark/worker.py", line 483, in wrapped
    result, return_type, _assign_cols_by_name, truncate_return_schema=False
    ^^^^^^
UnboundLocalError: cannot access local variable 'result' where it is not associated with a value

	at org.apache.spark.api.python.BasePythonRunner$ReaderIterator.handlePythonException(PythonRunner.scala:523)
	at org.apache.spark.sql.execution.python.PythonArrowOutput$$anon$1.read(PythonArrowOutput.scala:117)
	at org.apache.spark.api.python.BasePythonRunner$ReaderIterator.hasNext(PythonRunner.scala:479)
	at org.apache.spark.InterruptibleIterator.hasNext(InterruptibleIterator.scala:37)
	at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:601)
	at scala.collection.Iterator$$anon$9.hasNext(Iterator.scala:583)
	at org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIteratorForCodegenStage2.processNext(Unknown Source)
	at org.apache.spark.sql.execution.BufferedRowIterator.hasNext(BufferedRowIterator.java:43)
	at org.apache.spark.sql.execution.WholeStageCodegenEvaluatorFactory$WholeStageCodegenPartitionEvaluator$$anon$1.hasNext(WholeStageCodegenEvaluatorFactory.scala:50)
	at org.apache.spark.sql.execution.SparkPlan.$anonfun$getByteArrayRdd$1(SparkPlan.scala:388)
	at org.apache.spark.rdd.RDD.$anonfun$mapPartitionsInternal$2(RDD.scala:896)

	...

After this PR, the error happens before execution, which is consistent with Spark Classic, and
much clear
PySparkValueError: [INVALID_PANDAS_UDF] Invalid function: pandas_udf with function type GROUPED_MAP or the function in groupby.applyInPandas must take either one argument (data) or two arguments (key, data).

Does this PR introduce any user-facing change?
yes, error message changes
How was this patch tested?
added tests
Was this patch authored or co-authored using generative AI tooling?
no

Merged to master for Apache Spark 4.0.0.

@dongjoon-hyun and @HyukjinKwon thanks for reviews

Late LGTM, thank you!


3.2 Markdown structure error

Following the code in the "Modern Drive" markdown book located on bookdown.org I encounter the follow errors in the .md html output after running data(flights). Per Ismay book "Getting used to R, Studio, and R Markdown" there was comment about chunks--calling functions listed above will result in error if not called in the current chunk. Something to that effect. For the remainder of the chapter 3, I had to use the eval function to bypass the .md error in the console otherwise all processes halted. Any thoughts or instruction on where I went wrong?

Sorry for the delay in responding.
What errors are you getting? I'm having a bit of trouble understanding. A "Minimal, Complete, and Verifiable example" of your error would be helpful.


Problems with recommended library

Hi, I installed advised library.
And I've tried many layouts but every single one typed out gibberish and println didn't make a newline afterwards.
I know It it is not exactly your issue but if you do not install it, you can use the in-built one in ...ppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\DigisparkKeyboard and that one will work. (of course with no layout options).

Hello!
You mean the keymap in another language? Example: special characters @!¡¿;...
I don't like Windows, I use Linux.
But... I think that the DigiKeyboard library has to be in Documents/Arduino/libraries directory
You have to edit the library configuration file and put the keymap of your country (you have to edit this in the DigiKeyboard.h file, in the latest versions of Arduino you can't modify this in the sketch .ino)
I hope to answer your question, my English is very bad and I may not have answered correctly
If I haven't answered correctly, explain your question better and I can help you :D

I know exactly what you mean.
The library is correctly placed.
I edited (defined) the country in DigiKeyboard.h. But the layout array is weird. Instead of powershell it types for example something like this dacogsobb. But If I tried the original bulit-in library. The scancode-ascii-table.h works just fine. But when I replace that with "digi_cz_cz.h", it types out same thing.

Now I understand this.
If... I can't say that all the layout work properly. I use the ES layout and it works
You can modify the library and add the correct layout for your keyboard
You can make a Pull Request for the library developer to add your change :D

Problem solved: https://github.com/ernesto-xload/DigisparkKeyboard/issues/5


Fix import of metadata files

Correct the file extension
Import the module using a file URL for compatibility with Windows, otherwise drive letters are recognized as an invalid protocol

I could not resist and had to try out the new features of mb_upload_to_caa_from_url, so I tried to setup the build environment on my computer ❤

(closed and reopened to trigger CI)

Thanks! Hope you like the new features :) I'm aiming to get them released before the end of the week, the main thing that's left to do is to add buttons to import from URLs attached to the release.

Of course I like the new features, now the script is basically doing all the things I was doing by hand all the time :) I thought it would take you longer to publish these new features, since my impression was that you wanted to port all of your userscripts before merging this branch, which still seems to be a fair bit of work.
So I checked out this branch, tried to install the dependencies and run the build script myself, which turned out to be not as straight forward as I initially thought:

NPM refused to install the github:ROpdebee/nativejsx dependency with npm ci and I had to manually install it afterwards.
The build script failed with this error image for all userscripts although the files are present in the repo:
https://github.com/ROpdebee/mb-userscripts/blob/afb202d53c94a973c3c54db8ef431ecb5b2984e8/rollup.ts#L77-L85 My first thought was that this was also problem with the handling of absolute paths on Windows (that was before I found the problem I have adressed in this PR), but it turned out that Node.js 14 LTS does not support Promise.any() and the catch-clause had absorbed this error.
After upgrading to Node.js 16 the build script was finally running far enough for me to discover the metadata bug and with the new NPM version npm ci was also able to resolve the github:ROpdebee/nativejsx dependency correctly.
Finally I had to look for places in the code where a module gets imported with an absolute path as the error message of the ESM loader was not very helpful and only showed the line numbers in ts-node where the error occurred...
The last hurdle was the file extension of the meta.ts modules, not sure why this did not cause any trouble for you. Did you still have an old untracked meta.js file from before the TS refactoring in your working directory?

After building and opening the compiled userscripts the huge amount of code which was generated by the typescript conversion and the polyfills (mostly JSX?) kind of surprised me. In case you want to make this build process appealing to me as well, the amount of foreign code should definitely be less massive, right now I only buy the advantages of typing 😜

Yeah I realised that it's better to port the scripts gradually whenever the situation calls for it. In this case, the port was (IMO) well justified.
I'd eventually like to set up a system so that CI compiles the script on every commit so that it's not necessary to compile it all the time, but that's some future work :)
As for the foreign code, most of it are babel helpers for classes and async/await etc. JSX should be fairly lightweight, as most of it is translated into fairly simple function calls at compile time. Same goes for TypeScript, the build simply removes all type information rather than having TS compile the code, the only thing I know of where it actually changes something is for enums.
Ultimately though, even the original code is barely recognisable after transpilation, because all classes are transpiled by babel for browser support. I've opted to support all browsers that MB supports, so it has to transpile/polyfill a lot of features :/ Because it's so unrecognisable, I've decided to change the build to minify all of the code. That leads to a 50% reduction in file size, which I think is worth it considering that the previously-unminified transpiled code wasn't readable either.
This build system should definitely be improved further, but currently I'm mainly concerned with getting this script out there for everyone to enjoy. It'll be released shortly 🎉


Build and push container to ghcr.io for each release

Adds GitHub Action to build and push the container.
Fixes #4

The button to create a release is here on the main page of this repo:


[Blackhole] ARC messages

ARC is not enabled on Blackhole at the moment. When we were bringing up new Blackhole features in UMD, there was a system limitation for us to enable ARC
Now everything is set up and we should implement ARC support for Blackhole

Just wanted to point out that this will likely be required to extract harvesting info (fw for this expected post holidays)


Refactor

Removed Async Handling
Added Option to disable logging
Calculations are now performed and saved when parsing the script file
It is now possible to reload the script by selecting the same file again
Updated html/css to make it easier to add new settings

Updated Parser:

Now allows to specify a frame range
Made it possible to leave out the control stick values
Now allows for lines to be commented out

Updated Example
Fixed right stick visualisation not displaying correctly
Main loop is now handled using setInterval

Added option to set the interval time

Added button for quick script reload
Changed resync button icon to the bluetooth icon
Changed main screen layout to using flexbox
Added a clear log button
Added option to disable the FPS graph


Default AES Registration is out of date

The default registration tries to use a 0 length plaintext for AES-GCM. This is considered AES-GMAC now. GCM does not support a 0 length plaintext.

That was changed in late July, added GMAC mid August. Using an old workspace ?


[Question]: Uanble to compile babelfishpg_money

Contact Details
<EMAIL_ADDRESS>What's the question?
Hi guys. I am trying to install babelfish extensions and I encountered with the problems like this:
voli@voli-VirtualBox:~/bf_ext/babelfish_extensions/contrib/babelfishpg_money$ sudo make
/bin/sh: 1: --version: not found
/bin/sh: 1: --version: not found
/bin/sh: 1: --version: not found
make: --pgxs: No such file or directory
/bin/sh: 1: --version: not found
/bin/sh: 1: --version: not found
/bin/sh: 1: --version: not found
/bin/sh: 1: --version: not found
/bin/sh: 1: --version: not found
make: *** No rule to make target '/fixeddecimal--1.1.0_base.sql', needed by 'babelfishpg_money--1.1.0.sql'.  Stop.
Can someone help me with this?
Relevant log output or information
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hi @voha-ov, did you set the PG_CONFIG environment variable? Could you try setting it and retry compiling the extension? You can find instructions to set it under the "Set environment variables and paths" section in the build instructions

@voha-ov: Was your issue resolved after following the build instructions? Do you require further help?

Please reopen or file a new issue if you are still facing problems.


small fix for gateways being deleted after placement deleted

Note
This is a fix but not a full fix.
The following also need to be addressed in separate issues

When a placement is deleted so is a placement decision the gateway should be removed from the placed clusters in this case
When the placement label is changed on the gateway, the old gateways on previous clusters should be removed

I am working on the above as a larger change set.

I'm trying to reproduce the error but instead of the Gateway being deleted it's status is changing to Unknown, is that the expected behavour or am I missing something?

Yes the gateway is not deleted and the status updates to unknown (different issue around the error stuff)

@sergioifg94 to verify

use quick start
create a gateway and place it
delete the placement
check the status (it should have a clear error now)
delete the gateway (it should not get stuck but should be removed)

taking a look at the integration test failure

I'm still not able to verify it. The status changes to Unknown but I don't see an error message. This is how the status looks like
status:
  addresses:
  - type: IPAddress
    value: <IP_ADDRESS>
  conditions:
  - lastTransitionTime: "2023-09-20T09:56:08Z"
    message: Deployed gateway to the cluster
    observedGeneration: 1
    reason: Accepted
    status: "True"
    type: Accepted
  - lastTransitionTime: "2023-09-20T09:56:08Z"
    message: Deployed gateway to the cluster
    observedGeneration: 1
    reason: ResourcesAvailable
    status: "True"
    type: Scheduled
  - lastTransitionTime: "2023-09-20T09:54:15Z"
    message: Gateway valid, assigned to service(s) prod-web-istio.kuadrant-multi-cluster-gateways.svc.cluster.local:443
    observedGeneration: 1
    reason: ListenersValid
    status: "True"
    type: Ready
  listeners:
  - attachedRoutes: 0
    conditions:
    - lastTransitionTime: "2023-09-20T09:54:11Z"
      message: No errors found
      observedGeneration: 1
      reason: Accepted
      status: "True"
      type: Accepted
    - lastTransitionTime: "2023-09-20T09:54:11Z"
      message: No errors found
      observedGeneration: 1
      reason: NoConflicts
      status: "False"
      type: Conflicted
    - lastTransitionTime: "2023-09-20T09:54:11Z"
      message: No errors found
      observedGeneration: 1
      reason: Attached
      status: "False"
      type: Detached
    - lastTransitionTime: "2023-09-20T09:54:11Z"
      message: No errors found
      observedGeneration: 1
      reason: Programmed
      status: "True"
      type: Programmed
    - lastTransitionTime: "2023-09-20T09:54:11Z"
      message: No errors found
      observedGeneration: 1
      reason: Ready
      status: "True"
      type: Ready
    - lastTransitionTime: "2023-09-20T09:54:11Z"
      message: No errors found
      observedGeneration: 1
      reason: ResolvedRefs
      status: "True"
      type: ResolvedRefs
    name: specific
    supportedKinds:
    - group: gateway.networking.k8s.io
      kind: HTTPRoute

I'm deleting the placement by running
kubectl delete placement -n multi-cluster-gateways http-gateway

looks like you are looking at the istio instance rather than the control plane definiton?

Tricked by the autocomplete in the terminal
 - lastTransitionTime: "2023-09-20T09:56:00Z"
    message: 'current state of the gateway is unknown error: failed to place gateway
      : no PlacementDecisions found for placement http-gateway via label selector:
      map[cluster.open-cluster-management.io/placement:http-gateway] error: PlacementDecision
      "http-gateway" not found'

Verified that the status gets an error message and the gateway can be deleted without getting stuck
/lgtm

/lgtm


Subql block handler

Change

subql now supports indexing effectiveGasPrice, and receipts from dex.swap transactions for erc20s
subql now use block handler instead of event handler, there are two reasons:

since we need to make api calls for each event, by handling block we can fire api calls parallel.
for dex.swap transactions, we will need to combine multiple events, so can't handle them separately

Test

added new e2e tests that made sure subql correctly indexed the dex.swap transactions.
manually checked that getting receipt from subql is the same as getting receipt from cache

Todo
haven't tested what happens for dex.swap between erc20 and native token.

@zjb0807 now it should includes all modules, and we did a filter for these with evm events so to avoid too many extra xhrs


Support of basesize in aufs

Description
I cannot set the basesize on an aufs filesystem, which stops me from exporting a docker image.
I am trying to export an oracle container which is of size > 10GB
I get the following error
$ docker commit <containerid> <image name>
time="2017-04-10T17:34:01+05:30" level=info msg="Unable to use system certificate pool: crypto/x509: system root pool is not available on Windows"
Error response from daemon: Error processing tar file(exit status 1): write /u01/app/oracle/product/11.2.0/xe/dbs/IDATA.dbf: no space left on device

Docker Version
$ docker -v
time="2017-04-10T17:42:33+05:30" level=info msg="Unable to use system certificate pool: crypto/x509: system root pool is not available on Windows"
Docker version 17.03.1-ce, build c6d412e

Docker Info
$ docker info
time="2017-04-10T17:41:26+05:30" level=info msg="Unable to use system certificate pool: crypto/x509: system root pool is not available on Windows"
Containers: 5
 Running: 1
 Paused: 0
 Stopped: 4
Images: 3
Server Version: 17.04.0-ce
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 27
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary:
containerd version: 422e31ce907fd9c3833a38d7b8fdd023e5a76e73
runc version: 9c2d8d184e5da67c95d601382adf14862e4f2228
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.4.59-boot2docker
Operating System: Boot2Docker 17.04.0-ce (TCL 7.2); HEAD : c69677f - Thu Apr  6 16:26:16 UTC 2017
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 995.8 MiB
Name: default
ID: WDBL:3AM3:HXQA:XKGN:XB5F:XTLC:5YBU:TFK5:OJMM:L6S7:J4ZJ:6HO6
Docker Root Dir: /mnt/sda1/var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 20
 Goroutines: 27
 System Time: 2017-04-10T12:11:28.035377324Z
 EventsListeners: 0
Registry: https://index.docker.io/v1/
Labels:
 provider=virtualbox
Experimental: false
Insecure Registries:
 <IP_ADDRESS>/8
Live Restore Enabled: false

After several hours of googling I figured out that there is a variable that controls this
dm.basesize
I tried setting this variable by multiple ways, for example
docker --config /c/Docker/config info commit <containerid> <image name>
But this and other solutions didn't work for me.
At the end I concluded that this may be due to my
Storage Driver: aufs
Unfortunately I am running windows 7 which has reduced my options.
Can somebody assist me on how can I export image > 10GB
workarounds are welcome.

The dm.basesize option is for devicemapper only. Aufs does not have a size limitation
However, I see you're running on boot2docker, so it's possible the VirtualBox VM in which docker runs just ran out of disk space

Thanks  thaJeztah , I hope this will solve my problem.


Razor debug information uses relative paths

The debug information generated for razor files uses relative paths for source line information. The debugger needs full path information in order to find the file to open.
Example

Get the Microsoft C# extension for VS Code
Get, restore and build cli-samples/HelloMvc
Open HelloMvc in VS Code and create a launch.json (example)
Set a breakpoint on Views/Index.cshtml line 4 and launch

Expected
VS Code breaks at the breakpoint and displays locals/watch expressions
Actual
VS Code breaks into no source page and cannot display locals/watch expressions

@rynowak @NTaylorMullen any ideas?

This seems like a behavior difference between VS debugger and VS code. I think that using the full path is generally the thing to do. Should be straightforward for us to fix.

/cc @pranavkm

I think we used relative paths because that's what the IFileProvider generally exposes. Using PhysicalPath was discouraged since it's not necessarily always available.  We could null coalesce it if it's fixes issues.

Is there any point to using a relative path from an IFileProvider? The debugger won't be able to use that path anyway. I think it makes sense to use the Physical Path if it's there, and use nothing if it's not. No?

I guess. VS didn't have issues with relative paths which is why we stuck to it.

@pranavkm assuming they happen to be rooted at the app root. But if they don't (e.g. my PhysicalFileProvider points at "~/AppContent/") and my Views are in there, does it find them?

Suspect VS makes little use of the paths we provide Doesn't VS cache file hashes for everything in the project and use them as its primary identifier when debugging?

@Eilon, self assigning this for 1.1.0.

@pranavkm any plans for this? Is it still needed? What is still broken?

I had a set of PRs for this change - https://github.com/aspnet/Mvc/pull/5112. Making this change required introducing a new host since the current interface doesn't allow for a way to pass in both the relative path and the absolute path both of which are currently required during view compilation. (The former is used to discover _ViewImports). When we discussed this last, @rynowak thought it would be better to address this as part of Razevolution, which would require yet another host contract, rather than fixing this piecemeal.

@pranavkm ok, moved this to 1.2.0.

This was fixed with the move to Razor-Evolution. We use absolute path in the generated code (as long as it's available). See https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNetCore.Mvc.Razor/Internal/RazorCompilationService.cs#L105


Improve bundle CSV

Add spec descriptors and improve CRD descriptions.

This improvement will be included in 1.0.8


Add id as custom dimension

Adds id to traits/properties object of identify/page/track events so that customers can map id as a custom dimension out of the box. Creates parity with server-side integration.

@hankim813 This PR satisfies this JIRA ticket: https://segment.atlassian.net/browse/EPD-2796


Add "array" and "error" options

array
forces the listener's parameters to be resolved as an array rather than a single value.
default: undefined
error
allows the name of the error event to be specified.
default: "error"

IMHO we are good to go once you squash your commits :)

IMHO we are good to go once you squash your commits :)

Done, thanks :-)

Thank you :)

I'll release it as 0.4.0 as I really don't want to cause any regressions in 0.3.

:+1:

:+1:

Done.


dhcp:max message size option

Adds the DHCP maximum message size option
Adds capacity methods to raw socket
Size defaults to the size of the raw socket recv buffer

Blocked on #313

Could you submit the changes to the core socket code as a separate PR?

Sure, I've opened #313.

:umbrella: The latest upstream changes (presumably a67ee07922b0f8edf79086f6d1ea1807321a770e) made this pull request unmergeable. Please resolve the merge conflicts.


Restart device per MQTT

Would be cool to restart the device per MQTT command.

Why should that be necessary? I do not understand the use for it.
Did you have problems with the stability of MQTT433gateway? If so, please report your issue in detail.


Docker Deployment Project

Create a new project that simplify the deployment of all components of the Threeal bot as a single container using Docker.

I am interested in this project.
Could you please give more insights into what is required
From what I understand, do you want the project to be dockerized? 🤔

Hi, thanks for reaching into this project.
Currently this bot is able to scrap some data from every Discord server which this bot joined, and communicate with any user using NLU. Also, currently this project consists of 2 components, threeal-bot (this repo) that handle the bot logic, and threeal-bot-nlu that handle the bot's NLU process. Later, there could be other components that enable the viewing of the bot data (from scraping), and maybe separating database API as a separate component instead combined in a bot logic.
And talking about the Docker deployment issue, the 2 components i mentioned earlier currently is deployed on separate Heroku app. But the problem is, when one of the component is sleeping, all the process could not continue until all of the components are running. That's why i think it's better to create a Docker project that enable the deployment of all the components of this project as a single Docker/app.
For starting, you could try by setup this on your local computer. After that, setup it as a Docker in your local computer. And the last, deploy it as a Docker on Heroku.

Component available on threeal/threeal-bot-docker. Docker deployment issue continued in here.


⚠ Quirk Club Argentina (API endpoint) has degraded performance

In 4598b5d, Quirk Club Argentina (API endpoint) (https://us-central1-quirkclub-dev.cloudfunctions.net/api/check/api) experienced degraded performance:

HTTP code: 200
Response time: 9541 ms

Resolved: Quirk Club Argentina (API endpoint) performance has improved in 77a1c38 after 2 minutes.


KeyError: 'amr_parse'

Not sure what this error means. Kindly suggest a solution. I executed the recommended AMR-CSLOGIC installation scripts and using flask app to run the model.
Found 32 observations
Mincount:  8
Loaded cache from ./cache/amr_cache.pkl len: 241
 47%|███████        | 15/32 [00:02<00:02,  5.69it/s]
Traceback (most recent call last):
  File "train.py", line 88, in <module>
    loa_agent.extract_fact2logic(difficulty_level=args.difficulty_level,
  File "/home/vboxuser/loa/loa_agent.py", line 633, in extract_fact2logic
    get_verbnet_preds_from_obslist(
  File "/home/vboxuser/loa/amr_parser.py", line 60, in get_verbnet_preds_from_obslist
    rest_amr.obs2facts(obs_text,
  File "/home/vboxuser/loa/amr_parser.py", line 380, in obs2facts
    ret = self.text2amr(text)
  File "/home/vboxuser/loa/amr_parser.py", line 147, in text2amr
    self.cache[sent] = ret[self.json_key][0]
KeyError: 'amr_parse'

Sorry for late reply. it uses cache not the server.
and i cannot reproduce it from only these information


编译UI时报错 ——An error is reported when compiling the UI

我在编译UI时，遇到了问题，希望编译成功的朋友能帮我看看，谢谢了。
When I was compiling the UI, I encountered a problem. I hope that friends who have successfully compiled it can help me, thank you.
问题如下
Questions are as follows

报错信息提示 go: command not found，需要安装一下 golang 哈。

报错信息提示 go: command not found，需要安装一下 golang 哈。
好的 谢谢！


Question about Performance Counters for App Service

Hi Team, I have 1 question but below perf counter's value is for each worker instance, is my understanding correct? (not for App Service (if it's running with multiple instances), or App Service Plan)
https://github.com/projectkudu/kudu/wiki/Perf-Counters-exposed-as-environment-variables
I reached to this doc from here so it would be helpful to have this point documented if possible.
Thank you very much!

Hi
If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure:
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
This way we can better track and assist you on this case
Thanks,
Joaquin Vano
Azure App Service


NPE in getConfigFromIntent

I received several crash reports in the Developer Console.
This is the relevant part of the stacktrace:
Caused by: java.lang.NullPointerException:
  at cat.ereza.customactivityoncrash.config.CaocConfig.isLogErrorOnRestart (CaocConfig.java:90)
  at cat.ereza.customactivityoncrash.CustomActivityOnCrash.getConfigFromIntent (CustomActivityOnCrash.java:280)

It seems that this is caused by a missing null check here:
https://github.com/Ereza/CustomActivityOnCrash/blob/edd5bb625d12bdf87c29039a27e48251f7f47f1b/library/src/main/java/cat/ereza/customactivityoncrash/CustomActivityOnCrash.java#L280

I'm beginning to think that this is the result of some sort of Google crawler bot. The one user this happens to is based in Czechia, and always seems to update my app and use it within a couple hours of me pushing a new version (regardless of time of day). I haven't had any users buy my app in Czechia. And the only way this could be happening is if the user is opening Activities programmatically (like using ADB), and thus the intent extras aren't being sent/received as they should.

Yep, seems that something is launching the ErrorActivity directly and not from inside the library. I added however a null checkso it should not happen anymore.
This will be fixed in the next release. Thanks for your report!


Flag no-cacerts to turn off CA certs setting generaion

https://github.com/rancher/rancher/issues/11388

Required by https://github.com/rancher/cli/pull/160


Bump lerna version

For #3151
We are blocked from upgrading ocular-dev-tools (which also bumps puppeteer version) due to this bug: https://bugs.chromium.org/p/chromium/issues/detail?id=968830&q=component%3AInternals>Headless
Change List

Force bump lerna version to v3

Coverage remained the same at 62.947% when pulling e76710b3c0ae27efefa8cab7098a79e1ca9ddaa7 on x/lerna-bump into 1e61b1cf1abaec37e3bcb882ae9fc7524e53ef2a on master.


All IPs are the same no matter what pc or IP I am on

I am not here if I should report this here or on the hidden cave git. When I run it on my pc, it works amazingly, firstly I want to say this project is amazing and you are very amazing at what you do. Anyways.. on to the problem. No matter what pc I run it on, it shows the same IP always, which is the pc localhost ip.. is this normal? Is there any way to seperate these logs between the pc? Because it just puts multiple browsers under <IP_ADDRESS>. Thanks very much

Hi, thank you for the report.
I think the problem is when the requests are coming from the same network where the hidden cave is deployed, for example if you deployed the hidden cave in your machine and used a VM in your same machine to test it then it will have the localhost ip.
could you please try it use it while deploying it on a machine outside of your network

I have hidden cave hosted on a totally different network overall. I have tried things like connecting my pc to a hotspot and testing on my laptop with a vpn but no matter what it still says 127.0.01 for everything and puts all the browsers under that one in hiddencave

can you look in the storage.json if the IPs are all <IP_ADDRESS>?

I figure out what the problem is, im working on it

@skeppysdoglol
i guess its fixed now, can you confirm that?


Draft homepage content

Create content for the homepage page for the Design System website.
Google Doc for drafting content

@wrendo
We're most of the way there for the homepage content thanks to the great work from last week. Here's what I think is still outstanding:

Review of the text for the Be a part of the Design System
In Who's using the Design System:

Do we want to feature COVID19.ca.gov?
We have space for text under each example. What, if anything, do we want to say about each example?

Final sign off on content

These seem like questions for the onboarding governance team. Since that team hasn't met, I'm happy to work with another decision maker(s) to tie up these pieces by December 17.
Google Doc version
Figma with Adam's mock ups

Onboarding gov team had our kickoff meeting this morning and will be meeting weekly. The purpose of the gov team to be macro and look at long term strategy for 2022-2024. They shouldn't be involved with tactical decisions like these, so we can sort this out amongst ourselves.
Let's set a review time for the Be a part... section.
Ok to showcase covid19 and we can talk specifically about the success behind the ppf component
Cannabis is obviously a full site using DS components.
Hope that helps.

Thanks for that direction! I'm ready for a review of the page as a whole. I think it should be quick. Want me to find 15 minutes to look at it together?

@adam-little Ehb and I reviewed the remaining pieces of the homepage content (Be a part of the Design System and Who's using the Design System). He asked I run it by you before it goes to the onboarding governance team.
If all looks good to you, would you like me to drop this content into your mockup?

Looks good to me. Go ahead and drop it in Figma. LMK if you have any problems.

@wrendo Homepage content is ready for onboarding governance team final review. I'm handing the assignment to you to facilitate that.
Both of these have the latest content loaded in:

Google Doc version
Figma with Adam's mock ups


Use Share instead of Share somewhere

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number:
Reproducible in staging?:
Reproducible in production?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:
Action Performed:
Break down in numbered steps

Click FAB
Click Assign Task
Enter in a title and description
Click next

Expected Result:
Describe what you think should've happened
Ensure text says "Share" and not "Share somewhere"
Actual Result:
Describe what actually happened
Text says "Share somewhere"
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

View all open jobs on GitHub

This has been merged and deployed


Document non-gunicorn based approaches for deployment

Just starting server.
Pushing multiple server processes behind nginx. Nginx config template should be attached.

what are the advantages/drawbacks of both approach as I think it's good to know why there's an alternative ? I already made for tornado a deployment like you described , nginx with a upstream configured to round-robin accross different processes handled by supervisor :)

You are getting rid of intermediate (gunicorn) but should control/monitor your services by external tool (supervisord or similar).
I very appreciate a contribution into this part of doc.
Looks like I cannot find a time for fixing the issue by myself.

I see I think I need to read a bit more about how gunicorn is working, because I always thought it was only for traditionnal sync framework and that it would not play well with asyncio ones (or at least it will hurt 'peformances'  by inducing extra buffering etc. )

Gunicorn does hurt performance but overhead is relative low.

+1 this would be awsome.  Since I was having problems with gunicorn #1223, I tried to run aiohttp web.run_app behind nginx without gunicorn, but couldn't get things to work.   Tried just proxy_pass to the <IP_ADDRESS> port but no go.   I'm not sure what i was doing wrong. nginx isn't that easy to understand and the interactions between webservers is really tricky.

Search does not work for Nginx+Gunicorn section in deployment.rst.
Steps to reproduce:

open https://aiohttp.readthedocs.io/en/stable/
Type 'Gunicorn' in the Quick search field, press Go
Click on 'Deployment using 'Gunicorn' result
Actual result: 'This page does not exist yet.'

I'm not sure why, but the 'Gunicorn' result leads to http://aiohttp.readthedocs.io/en/stable/gunicorn.html?highlight=Gunicorn url, although it should lead to some /deployment.html?highlight=Gunicorn
I was unable to find the mistake in deployment.rst.

Fixed by aiohttp==1.1.1


0.11.0

The 0.11.0 release -- including adding the CHANGELOG entries for releases 0.10.2 - 0.10.5 to the main branch CHANGELOG.

Sorry @dbluhm — found some issues in the Changelog that I needed to clean up. Missed it the first time around.


Understand the Brand and Media Center video discovery work

User Story

As a [user role below]:
DDS designer and developer

I need to:
understand the video discovery work done by both the Brand and MediaCenter squads

so that I can:
learn from their work and potentially include their learning in the DDS developed solution

Additional information

Jerry Ringuette:  MediaCenter Offering Manager
Russell Wakelin:  Brand Strategy and Experience Design Program Manager

Acceptance criteria

[ ] Meetings scheduled for information sharing

questions from WS team:

what are the elements that an author needs to provide in order to successfully use videos?
What are the capabilities of Kaltura platform

Eg) Title? any meta data? poster image? what are options? transcript?

@RobertaJHahn We should include Irene, Jill, Lila, Alain, Ke since WS will be the first adopter of this thing.

Meeting scheduled Jan 8, 2020.  Follow-on work (issues) will be added to the [Video Play Design Epic #724]  (https://app.zenhub.com/workspaces/ibmcom-library-5d449f3642eb1962336cbe52/issues/carbon-design-system/ibm-dotcom-library/724)