How to hide port of java app from consumers?

First of all thanks for this POC. Learnt a lot.
I tried building the app and when I ran the app, I saw that a GUI showed up, but since spring boot app was running in the background, I was able to go to postman(or chrome) and hit localhost:8080/api/items and get response.

8080 is a common port in java world, if we build a GUI app which end users use, we might want to hide 8080 from end users, I mean they should be able run their own apps on 8080 port as well right?
One simple solution would be use random port always, but I was wondering if there was a way to hide this implementation detail from end users? implementation detail here being that we are starting a jar in the background where a process is running on some port?

One way you may try is to let the Electron app scan for a free port (there are several npm libraries to do so, such as find-free-port), and pass the found port to Java side via system properties (i.e. -Dserver.port=8081), when the Electron launch the backend server.


no shared framework schemes for any of the platforms: iOS

There's an error when you building Chatto with Carthage:
carthage update --platform iOS
*** Skipped building Chatto due to the error:
Dependency "Chatto" has no shared framework schemes for any of the platforms: iOS
If you believe this to be an error, please file an issue with the maintainers at https://github.com/badoo/Chatto/issues/new

Thanks for reporting - it's been broken on dev branch recently after updating pods in ChattoApp (with CocoaPods 1.0.1).
If I share frameworks inside ChattoApp then it will work (but output reports that it builds them from Chatto.xcworkspace, which is what we want, but doesn't make any sense with not being able to find them now). So I'm not sure at this point if Carthage is building the frameworks with the Pod's configuration or the one in Chatto.xcworkspace (difference is whole-module optimization for release)
I'll push the "fix" now

Please check again

Building works, thank you 👍🏼


Test

@Hemanths96 Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.


Adds policies to the documentation

It is empty. Can you make sure that abstract methods are visible like chainerrl.agent.Agent?


fix: the temporal x-axis results in a none time_range.

SUMMARY
When the GENERIC_CHART_AXES feature is enabled, the time_range parameter in the API request is null.
Consequently, the from_dttm and to_dttm parameters rely on the time_range value, resulting in incorrect values being set for these parameters.
Specifically, this directly impacts the from_dttm and to_dttm variables in the Jinja as well.
Fixes #25301
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[x] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

@mapledan Thank you so much for the contribution, we should consider the multiple time filters in adhoc filters, I'll give you some snippet in this evening.

I have addressed multiple cases related to the temporal filters.
Specifically:

Prioritize using the filter associated with the base_axis column.
When there is no base_axis, utilize the first temporal filter.
If None is passed as the time_range parameter, it will be corrected to NO_TIME_RANGE when calling the get_since_until_from_time_range function.
The processed time_range is not written back into the QueryObject.

@zhaoyongjie are you able to review the updates from @mapledan ? 🙏

/testenv up FEATURE_GENERIC_CHART_AXES=true

/testenv up FEATURE_GENERIC_CHART_AXES=true FEATURE_ENABLE_TEMPLATE_PROCESSING=true


Add attr and attrlink attributes to figure shortcode

Feature Request
Is your feature request related to a problem? Please describe.
Currently, the Academic theme has a {{< figure >}} shortcode that does not have "attr" and "attrlink" attributes. At the same time, the {{< figure >}} shortcode embedded into hugo does have these attributes. These attributes are useful when you embed some content, e.g., images, in your
post from the external source, and according to the license you have to provide a link to the source.
Describe the solution you'd like
I would like to have optional "attr" and "attrlink" attributes in the Academic figure shortcode. It would be also great to display this attr text somewhere on the figure (specifying the location manually, e.g., upper right, bottom center, etc.)
Describe alternatives you've considered
There are several alternatives:

I can rename Academic figure shortcode into something new, e.g., afigure. Thus, I would be able to use the default figure shortcode. However, the default style is not great and there is no possibility to specify the location of the attr text.
I can create a separate shortcode for every source where I take the pictures from.

What's the issue with writing the attribution within the caption field?

Caption is quite big. I would like to have the attribution information small and separate from the title of the figure. Moreover, it seems that the default shortcode have all these attributes: title, caption, attr and attrlink. I do not know what is the purpose of having all of them, but it seems that people need them.


Average price Selected period

Hi,
Would it be possible to implement, in addition to the already existing "Average price" functionality, an "Average price Selected period" calculation, where you could define the starting time and the ending time or the length of the period yourself.
It would make it much easier to play with solar electricity and water heater controls, when you could compare the next day's average selling price (from the solar production period) with the current day's night electricity price and make decisions based on that.

I have extended functionality for my similar needs by using automations and helpers in Home Assistant.
I have a water heater that heats during night but because of "reasons" I can't control when night time electricity "pulse" from electricity company comes and so when is the earliest the heater can heat. I calculate cheapest continuous hours for heat start time based on number of hours to heat from helper input number input_number.water_heater_hours and a first_hour variable which depends on week day. Night time electricity ends at 7:00, so I have start of last_hour set to 6.
Automation sets helper input datetime input_datetime.water_heater_start_time and also calculated average price to helper input number input_number.water_heater_average_price.
In your case first_hour could be set based on some helper input_number instead of based on weekday.
For example
first_hour: |-
    {{ states("input_number.water_heater_first_hour") | int }}

Similar for last_hour.
Here is my automation.
alias: Water heater start time setter
description: ""
trigger:
  - platform: state
    entity_id:
      - input_datetime.shf_cheapest_period_start
  - platform: state
    entity_id:
      - input_number.water_heater_hours
condition:
  - condition: not
    conditions:
      - condition: state
        state: unknown
        entity_id: input_datetime.shf_cheapest_period_start
action:
  - variables:
      first_hour: |-
        {%- set firstHour = 24 -%}
        {%- if now().weekday() in (0,3) -%}
          {%- set firstHour = 22 -%}
        {%- elif now().weekday() in (1,5,6) -%}
          {%- set firstHour = 23 -%}
        {%- endif -%}
        {{ firstHour}}
      last_hour: 6
      start_index: >-
        {% set hours = states("input_number.water_heater_hours") | int %}
        {% set output = namespace(value=[])%}
        {% set data = state_attr("sensor.shf_electricity_price_now","all_prices")[first_hour:24+last_hour+1] %}

        {% for inval in data[:min(-hours+1, -1)] %}
          {% set temp = namespace(value=[]) %}
          {% set j = loop.index -1 %}
          {% for i in range(hours) %}
            {% set temp.value = temp.value + [data[j+i]] %}
          {% endfor %}
          {% set output.value = output.value + [temp.value | average] %}
        {% endfor %}

        {{ output.value.index(output.value|min) + first_hour}}
      average_price: >-
        {% set output = namespace(value=[])%} {% set hours = states("input_number.water_heater_hours") | int %}
        {% set data = state_attr("sensor.shf_electricity_price_now","all_prices")[start_index:start_index + hours + 1] %}
        {% for i in range(hours) %}
          {% set output.value = output.value + [data[i]] %}
        {% endfor %}
        {{ output.value | average }}
  - service: input_datetime.set_datetime
    data:
      datetime: >-
        {%- set data2 = state_attr("sensor.shf_electricity_price_now", "data")[first_hour:24+last_hour+1] -%}
        {%- set time = data2[start_index - first_hour]["DateTime"] -%}
        {{ time[:19] | replace("T", " ") }}
    target:
      entity_id: input_datetime.water_heater_start_time
  - service: input_number.set_value
    data:
      value: "{{ average_price }}"
    target:
      entity_id: input_number.water_heater_average_price
mode: single

Hello and thank you for this enhancement proposal!
I have rewritten a lot of the code and the new version is in "beta testing phase". I will merge it to master branch if I don't hear any problems with it. You can find it here: https://github.com/T3m3z/spotprices2ha/tree/v0.2.0-draft
With this new version you should be able to create a new Template sensor which could use a code like below to get average price between some specific times. Attribute "TotalPrice" contains also fixed fees (if given by the user) such as transmission fees and extra fees collected by the electricity seller. So depending on the use case using "PriceWithTax" or "PriceNoTax" might be better (raw stock price of the electricity without any extra fees). You could use triggered Template sensors to make this calculation happen at certain time (if necessary).
Please note that running the code below at 17:00:01 would result the calculation starting from the next available hour which is 18 (and end would be +12h).
{% set start = now() %}
{% set end = start + timedelta(hours=12) %}

{{ state_attr('sensor.shf_data', 'data') |
selectattr("Timestamp", "ge", start | as_timestamp) |
selectattr("Timestamp", "lt", end | as_timestamp) | map(attribute="TotalPrice") |
average }}

For debugging purposes you can use "Developer Tools -> Template" and possibly the code below which returns the data as a list (to debug start and end times maybe?):
{% set start = now() %}
{% set end = start + timedelta(hours=12) %}

{{ state_attr('sensor.shf_data', 'data') |
selectattr("Timestamp", "ge", start | as_timestamp) |
selectattr("Timestamp", "lt", end | as_timestamp) | list }}

If this solution is ok for you, then please consider closing this issue. I'm not sure whether it makes sense to add this to the actual code base. Maybe I could add a folder called "Examples" where this code snippets could be added.

Other feature request, rank of next hour (and if possible rank for n+1hours from now) would be handy (or can this be had already somehow?).
Use case: I for example have dish washer that washes bit over 1h, and does not take any major power during first 10minutes. It would thus be handy to trigger script on next hour rank being 1 and wait 50min before starting...

This Template code should give you Rank of the next hour:
{{ (state_attr("sensor.shf_data", "data") | selectattr("Timestamp", "eq", now().replace(minute=0, second=0, microsecond=0)| as_timestamp + 3600) | first)["Rank"]}}
Just multiple 3600 with some integer to get Ranks of n hours from now. Just note that you cannot always expect to have Ranks more than 9 hours from now as there is not enough data when new prices haven't yet arrived.

Kinda on topic, kinda not... sorry for abusing this ticket
Trying to get month average so far calculated. With this:
  - platform: average     name: Electricity current month average price     start: "{{ now().replace(day=1).replace(hour=0).replace(minute=0).replace(second=0) }}"     end: "{{ now().replace(hour=00).replace(minute=00).replace(second=00)+timedelta(days=2) }}"     entities:       - sensor.shf_electricity_price_now
(https://github.com/Limych/ha-average)
based on this https://community.home-assistant.io/t/monthly-average-to-date-how/463887/4
In am close but as this accesses history of sensor.shf_electricity_price_now it does not see the rest of today )and tomorrow when available) despite those are included in the times...
Ideas, tips? I am sure I am not the only one who would like to show month average price (for kulutusvaikutus "fixed price" use on graph.


GetEnergy(), GetPosition() functions in TGRSIDetector

I will add these functions to access the energy and position of each TGRSIDetector. We have to make a decision about what charge gets recorded at this point. Are we going to record the K-Value corrected charge? My vote is yes.

Mine too, or integration correct value depending on the detector.  And also
as a double or float!
On May 6, 2015 9:08 PM, "Ryan Dunlop"<EMAIL_ADDRESS>wrote:

I will add these functions to access the energy and position of each
TGRSIDetector. We have to make a decision about what charge gets recorded
at this point. Are we going to record the K-Value corrected charge? My vote
is yes.
—
Reply to this email directly or view it on GitHub
https://github.com/GRIFFINCollaboration/GRSISort/issues/314.

look up ROOT Double32_t. You can choose the precision ROOT writes it with in the class definition! And there are neat write speed vs precision graphs too!

Sounds good to me.
On May 6, 2015 9:13 PM, "Ryan Dunlop"<EMAIL_ADDRESS>wrote:

look up ROOT Double32_t. You can choose the precision ROOT writes it with
in the class definition! And there are neat write speed vs precision graphs
too!
—
Reply to this email directly or view it on GitHub
https://github.com/GRIFFINCollaboration/GRSISort/issues/314#issuecomment-99667059
.

Any thoughts on the best way to access high and low gains? I can put two functions in the base, where one is defaulted to do nothing. I can put an input parameter on GetEnergy (likely an int). Or I can put the extra GetEnergy functions in the derived and expect the user to cast appropriately.

I like the former better, one function with a default option.  That also
works for the other sub-systems where there will never be too gains with
minimum effort.
On Thu, May 7, 2015 at 9:23 AM, Ryan Dunlop<EMAIL_ADDRESS>wrote:

Any thoughts on the best way to access high and low gains? I can put two
functions in the base, where one is defaulted to do nothing. I can put an
input parameter on GetEnergy (likely an int). Or I can put the extra
GetEnergy functions in the derived and expect the user to cast
appropriately.
—
Reply to this email directly or view it on GitHub
https://github.com/GRIFFINCollaboration/GRSISort/issues/314#issuecomment-99927112
.

There is some more info we are keeping like crystal numbers, etc, which are technically stored in the address. We can keep these, or ditch these as well, or at least take them out of the streamer. That way we can fill them when using these classes, but do not write this information to disk. My fear is that these should be highly compressible numbers, but root is having trouble due to the vector. When reading back the analysis tree, a quick call to SetDetectorHit, or something like that, could initialize all of these members in the class, for use during histograming, while saving a hundred mb or so of disk space.
All of this is coming up because to have a base get position and base get energy, it makes a lot of sense to have a base address.
The other thing I was thinking about is migrating charge to the base hit class. The only issues are the hits with high gain charge and low gain charge. It's a semantic question. I can leave charge in every class like it is now, or I can put an extra charge in those other classes. I'm using this upgrade as a chance to really clean up these classes. We will also need a testing phase after we are done because I cannot guarantee that my positions and energies are correct for every single class.

On May 7, 2015, at 12:26 PM, pcbend<EMAIL_ADDRESS>wrote:
I like the former better, one function with a default option. That also
works for the other sub-systems where there will never be too gains with
minimum effort.
On Thu, May 7, 2015 at 9:23 AM, Ryan Dunlop<EMAIL_ADDRESS>wrote:

Any thoughts on the best way to access high and low gains? I can put two
functions in the base, where one is defaulted to do nothing. I can put an
input parameter on GetEnergy (likely an int). Or I can put the extra
GetEnergy functions in the derived and expect the user to cast
appropriately.
—
Reply to this email directly or view it on GitHub
https://github.com/GRIFFINCollaboration/GRSISort/issues/314#issuecomment-99927112
.

—
Reply to this email directly or view it on GitHub.

Let me just state that I am saying the above looking to the future of Garrett style experiments. Where 100 mb per subrun might add up to a couple of terabytes in an experiment.

On May 7, 2015, at 12:26 PM, pcbend<EMAIL_ADDRESS>wrote:
I like the former better, one function with a default option. That also
works for the other sub-systems where there will never be too gains with
minimum effort.
On Thu, May 7, 2015 at 9:23 AM, Ryan Dunlop<EMAIL_ADDRESS>wrote:

Any thoughts on the best way to access high and low gains? I can put two
functions in the base, where one is defaulted to do nothing. I can put an
input parameter on GetEnergy (likely an int). Or I can put the extra
GetEnergy functions in the derived and expect the user to cast
appropriately.
—
Reply to this email directly or view it on GitHub
https://github.com/GRIFFINCollaboration/GRSISort/issues/314#issuecomment-99927112
.

—
Reply to this email directly or view it on GitHub.

I assume we mean to put them into TGRSIDetectorHit class...

Yes. My apologies if I wrote something different from that.

On May 11, 2015, at 3:32 PM, pcbend<EMAIL_ADDRESS>wrote:
I assume we mean to put them into TGRSIDetectorHit class...
—
Reply to this email directly or view it on GitHub.

Can you change the title for me?

On May 11, 2015, at 3:32 PM, pcbend<EMAIL_ADDRESS>wrote:
I assume we mean to put them into TGRSIDetectorHit class...
—
Reply to this email directly or view it on GitHub.

Yes, I am also working on the hit....

Ok I have already implemented this in a couple of detectors

On May 11, 2015, at 3:37 PM, pcbend<EMAIL_ADDRESS>wrote:
Yes, I am also working on the hit....
—
Reply to this email directly or view it on GitHub.

ok. can you push it to leangrsi when you get a chance?

Will do. I can deal with final conflicts later if you want

On May 11, 2015, at 3:43 PM, pcbend<EMAIL_ADDRESS>wrote:
ok. can you push it to leangrsi when you get a chance?
—
Reply to this email directly or view it on GitHub.

Thanks, we are changing enough that there will be some code head butting here.  I rather tackle it sooner than later to make sure we are on the same page.

Sure. I'm doing radiation training right now for the umpteenth time. I have also stopped compiling a few detectors just for ease of debugging. So those may be off. I will push in an hour or two. Also sen me some suggestions if you don't like the direction.

On May 11, 2015, at 3:48 PM, pcbend<EMAIL_ADDRESS>wrote:
Thanks, we are changing enough that there will be some code head butting here. I rather tackle it sooner than later to make sure we are on the same page.
—
Reply to this email directly or view it on GitHub.

Sounds good.

GetEnergy() is now in the base TGRSIHit class. As it references TChannel, it should be fairly general. Of course, everyone else can add their own version for their own class if they would like. All that's left is updating the GetPosition for everything, but the base class actually can control most of this as well.

These are now done in the GRIFFIN systems. They now need to be updated in the TIGRESS systems.

I believe this is done. Just the final cleanup for a couple of derived classes is required.


Support for Digital Publishing

see title. :)

I don't have currently time for that. Feel free to create an PR when you want


Tensorflow Error in Jupyter Notebooks

I receive the errors below when importing tensorflow in a Jupyter Notebook.

ImportError                               Traceback (most recent call last)
~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in ()
57
---> 58   from tensorflow.python.pywrap_tensorflow_internal import *
59   from tensorflow.python.pywrap_tensorflow_internal import version
~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in ()
27             return _mod
---> 28     _pywrap_tensorflow_internal = swig_import_helper()
29     del swig_import_helper
~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper()
23             try:
---> 24                 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
25             finally:
~\Anaconda3\lib\imp.py in load_module(name, file, filename, details)
242         else:
--> 243             return load_dynamic(name, filename, file)
244     elif type_ == PKG_DIRECTORY:
~\Anaconda3\lib\imp.py in load_dynamic(name, path, file)
342             name=name, loader=loader, origin=path)
--> 343         return _load(spec)
344
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
ImportError                               Traceback (most recent call last)
 in ()
----> 1 import tensorflow as tf
~\Anaconda3\lib\site-packages\tensorflow_init_.py in ()
22
23 # pylint: disable=g-bad-import-order
---> 24 from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
25
26 try:
~\Anaconda3\lib\site-packages\tensorflow\python_init_.py in ()
47 import numpy as np
48
---> 49 from tensorflow.python import pywrap_tensorflow
50
51 from tensorflow.python.tools import component_api_helper
~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in ()
72 for some common reasons and solutions.  Include the entire stack trace
73 above this error message when asking for help.""" % traceback.format_exc()
---> 74   raise ImportError(msg)
75
76 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long
ImportError: Traceback (most recent call last):
File "C:\Users\ashbat\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\ashbat\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\ashbat\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\ashbat\Anaconda3\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\ashbat\Anaconda3\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.

Please provide the following information asked by the template:
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary):
TensorFlow version:
Python version:
Installed using virtualenv? pip? conda?:
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:

Describe the problem
Provide the exact sequence of commands / steps that you executed before running into the problem
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


Option to dump imports to file to easily reproduce workloads.

We've come across a number of scenarios where it would be nice to be able to capture the import requests that go-pilosa is making during an ingest job. This would be useful for sharing things that (e.g.) trigger bugs or performance problems in Pilosa without needing to share the raw data or custom ingest code.
We would also need the ability to fairly easily replay the data.
This would also be nice for isolated performance testing, removing any possible overhead or bottlenecks in parsing and sending through channels, and just having the raw imports ready to send to Pilosa.
I'm envisioning that this option would dump the data into a file on disk while also working normally (ingesting to Pilosa). The replay would produce exactly the same set of requests that would have been made during the original import, so we would probably define some kind of Request object as protobuf or whatever that we can serialize a stream of.

Instead of updating the client, it would be better to use a more generic solution for intercepting and recording the HTTP traffic between the client and the server, something like a proxy. That would help with recording/playing back all requests for all client libraries.


The zipper is corrupted when adding multiple folders

the code as above. when the progress reached 300---pull out the usb， the zipper is corrupted. it must wait before normal.

what do you mean by zipper is corrupted?

what do you mean by zipper is corrupted?

the final compressed package damaged.


Define GOBIN targets for tools

Which problem is this PR solving?

avoid tools reinstall

Description of the changes

define targets for tools so they are not reinstalled once they are installed in GOBIN dir

How was this change tested?

CI

Checklist

[x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
[x] I have signed all commits
[ ] I have added unit tests for the new functionality
[ ] I have run lint and test steps successfully

for jaeger: make lint test
for jaeger-ui: yarn lint and yarn test

Would having a clean target that would rm those binaries help ?
Or is this just a false good idea?

I don't think we need it. You don't install tools all the time to warrant a speed-up, and we don't call the target from local testing, only in CI.


Add a 'Creating an EIB SLE Micro raw image' example for BMH provisioining

Would this type of an example be helpful?

This information seems to be available in ATIP ZTP section.


Support project group operations with -g on lab clone and lab project list

Following on from #185 we want to support listing and cloning groups directly without having to parse lab project list results

Also for lab project create (#211)?

Hello. I put this tiny change into mentioned PR. It is only for project list.

Hello. It seems there is not much activity in this project :crying_cat_face:

@dosmanak most development has moved to https://github.com/aristocratos/btop, as it is the next iteration of bpytop

What does btop have to do with lab?

@alerque wow, it seems I really messed up some tabs at some point, one was nothing to do with the other really,

Are you still interested in supporting this? I think we could provide a PR.

@alex0ptr I am not sure what do you mean. I've prepared the PR #842 to list projects within groups. It is tiny but working.
for lab clone a PR would be nice.

Sorry I meant lab clone of course. Ok, I'll look into it in the coming weeks.


Allow folding multiline conditions

TypeScript Version: 4.2.0-dev.20201103
Search Terms:

fold / folding
getOutliningSpans

Code
> if (
  1 &&
  2 &&
  3
) {}

or

> while (
  1 &&
  2 &&
  3
) {}

Expected behavior:
An outlining span is returned for the if and while
Actual behavior:
No outlining span returned

@RyanCavanaugh I've updated the example to make it more clear.


Add Storage Access

Similar to #59 I'd like to ask whether it is possible to implement storage access for the scoped storage that Aether/Nether uses. Similar to Yuzu/Citra and other apps, this would allow storage access to the data folders by the android file manager and by other applications (Like FolderSync) by requesting the appropriate permissions.
See picture below from Dr4goonD3mon's original issue

Not really possible with the current reverse engineered version of AetherSX2 since those paths are built into the emulation core and not easy to change as a result. Future versions of NetherSX2 that is built from scratch using our own front end and core based on PCSX2 will have this feature since scoped storage in Android 11 and up has become problematic


created a state variable for Search

Just created a state variable for Search-Box.

I changed the search component. I suggest you to check the core components branch. I will make the correction you mentioned. Or if you want, post pr to the core components branch. Also, please only make changes to the file where you are doing the work you mentioned. Do not change other files.


Distillation with ResNet-50

I just reproduced your project on miniImageNet. Wonderful work!
But I've got a question, have you used ResNet-50 for knowledge distillation in your miniImageNet experiments, and how do the results compare to ResNet-18/ResNet-34. I didn't find it in the paper. Looking forward to your reply!

I just reproduced your project on miniImageNet. Wonderful work! But I've got a question, have you used ResNet-50 for knowledge distillation in your miniImageNet experiments, and how do the results compare to ResNet-18/ResNet-34. I didn't find it in the paper. Looking forward to your reply!

I mean using ResNet-50 as student's backbone.

Are you referring to the performance of the resent-50 without distillation? Or the performance of resnet-50 with distillation?

I mean the performance of resnet-50 with distillation. Thanks for your timely reply!

In our preliminary experiments, distilling resnet50 with resnet50 will slightly improve performance.

I got it. Best wishes!


ngrok too many connections

after some time the pokemons start to disappear from the app. live map is still working, mobile access is still enabled. testing the ngrok server url in safari brings this error: "too many connections! the tunnel session...has violated the rate-limit policy of 20 connections per minute. please decrease your inbound connection volume or upgrade to a paid plan for additional capacity. "
the server url which the live map creates isn't connected to any ngrok account with a higher rate limit-and can't be right?-. is there a possibility to fix that?

You can register for a free account at ngrok, this increases the limit to 40 connections per minute.

yes i know but the app creates the grok url's. its not connected to my account. i run the app on a mac without command lines. so this basically does not work for me

I assume you're using https://github.com/mchristopher/PokemonGo-DesktopMap then. Unfortunately, unless that app adds support for registered ngrok accounts, it's not possible to fix this without setting up a map of your own, without the Electron wrapper app.
I'd suggest raising the issue there and see if they can lend a hand.


Rosetta Constructor DSL: error parsing a string containing a "-" character

Describe the bug
Hi! When using the Rosetta Constructor DSL for example following way:
create_account(1){
  create{
    network = {"network":"chrysalis-devnet", "blockchain":"iota"};
    key = generate_key({"curve_type": "edwards25519"});
    account = derive({
      "network_identifier": {{network}},
      "public_key": {{key.public_key}}
    });

   ...

  }
}

the Rosetta Construction API check fails. The - between "chrysalis-devnet" looks like a subtraction for the parser.
Is there a way around this issue? Can I encode the  - somehow?
To Reproduce
Steps to reproduce the behavior:

setup a *.ros file for the Construction API check
choose a network name that contains a -
start the Construction API check

Expected behavior
I expect that the network name is allowed to contain a - char.
Many thanks for the help.

Please follow the solution suggested in https://github.com/coinbase/rosetta-cli/issues/248
Will work on fixing the native parsing.


CI Setup: Github Action Templates

Create github action templates to avoid duplication regarding step setup such as installing dependencies.

This is done, we have now reusable composite actions and workflows in our dedicated github-actions repository.


Throw 403 Instead of of new RuntimeException

Hey, just installed this in favor of slimphp/slim-csrf that has issues with multiple dynamic forms (which this one hopefully doesn't).
Just wanted to ask if you think throwing a 403 might be more appropriate than a runtime exception?

403 is a HTTP specific error code and not a PHP Exception like RuntimeException. But I know what you mean. The CSRF library could throw a specific e.g. InvalidCsrfTokenException and your (Slim) Exception Middleware could map it into a Response with a 403 HTTP-StatusCode.

That would be a better option yeah, agree :)
How would you handle WYSIWYG editors with this middleware?
This is the issue:
I'm using Froala, when you add/remove images a post request is made, but since the Froala editor is part of a bigger html form, this form generates a RunTimeException on submit, because of the previous http post request(s) made by the editor.
Is there a good way to handle these scenarios?
Thanks for your hard work man, appreciated :)

In Froala it's possible to add the CSRF-token via the imageUploadParams option:
https://www.froala.com/wysiwyg-editor/docs/options#imageUploadParams
.on('editable.beforeImageUpload', function (e, editor, images) {
    editor.options.imageUploadParams[csrf_token_name]=csrf_token_value;
})

Source: https://github.com/froala/wysiwyg-editor/issues/571#issuecomment-109294137

Yeah that is not the issue, I did that already.
The problem is that after every POST request a new csrf token is generated, and simply dropping/adding a new image in Froala (or other editors) already generates a POST request to save images/files.
And when you then submit the html form you get a runtime exception...
So the first request works, but subsequent request do not because the token changed and the html still has the old token everywhere.

Well the Token depends on the session id. This would mean, that your session id changes after every request?

I'm using redis sessions, in this format:
klever_b678cad862317ece8cc1041bf8a16ce928896f23da66e7f1e30a79d33afd62cbaab1b2727dbba23b

Okay, it actually started working, sorry lol :)
Def. not a problem of your middleware.
I think there must have been some kind of cache from slimphp/slim-csrf that caused this, because that package doesn't work correct with multiple forms.
For anyone who runs into this, use this to add the csrf token to the headers that Froala sends:
requestHeaders: {
               "X-CSRF-Token":  '{{ csrf_token }}',
            },


[R-package] docs for lgb.Dataset in R are incomplete

In the R package, the function lgb.Dataset has a parameter categorical_feature, with this description:
categorical features

https://github.com/microsoft/LightGBM/blob/7ea2bc4dbca53c03eaae2aa2b22f9b30447caea4/R-package/R/lgb.Dataset.R#L736
It does not describe what kind of input it needs to be, in contrast to lgb.Dataset.set.categorical.

Thanks for using {lightgbm} and for looking into the documentation.
In this case, the parameter categorical_feature can be either:

A character vector of feature names
A numeric or integer vector of column indices (1-based, so e.g. "3" would mean "the third column")

Are you interested in contributing some improvements to the R package's documentation? If you are, we would be really grateful for the help! If not, then no problem at all and I can update this documentation soon.

Thanks but I'll pass on that as I'm not really familiar with it.
BTW I notice it's missing the docs for allowed parameters.

Ok no problem. Can you please clarify what you mean by "allowed parameters"?

Ok no problem. Can you please clarify what you mean by "allowed parameters"?

Functions lightgbm, lgb.train, lgb.cv, have an argument params which says: List of parameters.

I see, ok. Yes we should be linking to https://lightgbm.readthedocs.io/en/latest/Parameters.html in those places.


regional parameters RU864_870

Hello Brocaar!
I ask to compile a new build lora-app-server
LoRaWAN Regional Parameters v1.1rB - Final.pdf
on the basis of regional parameters RU864_870

This has already been released.


Inconsistent api for strings/atoms in Relation.cast

Below is accurate as of Ecto v1.1.1.
I couldn't get v2.0.0-dev to compile, so I don't know if things have changed.

Following the Nested associations and embeds part of this example: http://blog.plataformatec.com.br/2015/08/working-with-ecto-associations-and-embeds/
Nearly all Changeset interfaces allow either a map of strings or atoms to be given as the parameters when manipulating models.
However, there appears to be an inconsistency when working with nested associations, which requires strings:
Given:
todo_list =
  FormTest.TodoList
  |> FormTest.Repo.get(1)
  |> FormTest.Repo.preload([:todo_items])

params = @params

todo_list
|> FormTest.TodoList.changeset(params)
|> FormTest.Repo.update

For string parameters, the following is given:
@params %{
  title: "Grocery List",
  todo_items: [%{
    "id" => 2,
    "body" => "Bananas"
  }]
}

{:ok,
 %FormTest.TodoList{__meta__: #Ecto.Schema.Metadata<:loaded>, id: 1,
  inserted_at: #Ecto.DateTime<2016-01-08T00:46:37Z>, title: "Grocery List",
  todo_items: [%FormTest.TodoItem{__meta__: #Ecto.Schema.Metadata<:loaded>,
    body: "Bananas", delete: nil, id: 2,
    inserted_at: #Ecto.DateTime<2016-01-08T00:46:37Z>,
    todo_list: #Ecto.Association.NotLoaded<association :todo_list is not loaded>,
    todo_list_id: 1, updated_at: #Ecto.DateTime<2016-01-08T17:37:38Z>}],
  updated_at: #Ecto.DateTime<2016-01-08T17:37:38Z>}}

For atom parameters, the following error is received:
@params %{
  title: "Grocery List",
  todo_items: [%{
    id: 2,
    body: "Bananas"
  }]
}

** (RuntimeError) you are attempting to change relation :todo_items of
FormTest.TodoList, but there is missing data.

By default, if the parent model contains N children, at least the same
N children must be given on update. In other words, it is not possible
to orphan embed nor associated records, attempting to do so results
in this error message.

It is possible to change this behaviour by setting `:on_replace` when
defining the relation. See `Ecto.Changeset`'s section on related models
for more info.

    (ecto) lib/ecto/changeset/relation.ex:279: Ecto.Changeset.Relation.local_on_replace/2
    (ecto) lib/ecto/changeset/relation.ex:264: Ecto.Changeset.Relation.on_replace/2
    (ecto) lib/ecto/changeset/relation.ex:392: Ecto.Changeset.Relation.build_changeset!/4
    (ecto) lib/ecto/changeset/relation.ex:349: Ecto.Changeset.Relation.reduce_delete_changesets/5
    (ecto) lib/ecto/changeset.ex:585: Ecto.Changeset.cast_relation/4

Additionally, the documentation around this behavior is lacking a bit, it took me quite a while to track down the behavior to implement manually where Ecto sorts and groups by the primary key in nested associations, and that's all that is really required to get it working properly.
Can we update Relation.cast to accept atoms as well as strings for consistency, and perhaps add a note about requiring the primary key to be present?

This is definitely a bug.
I think the correct solution is to make Ecto.Changeset.convert_params/1 recursive

I have some free time right now so I'm going to see if I can get this fixed.

@michalmuskala Making convert_params recursive is not enough.  If a params map of all atom keys is given, it will still fail currently

Ah nevermind.  Misunderstood. That looks like it will do fine :+1:

Actually, I don't think we should make it recursive. That's because we can pass a regular map inside the params that is going to be part of a field and not part of an association. We should probably change just Relation.cast on how it finds the related data.


Stuck out of the control panel

Hi,
I have a model Yi 1080p Home, hardware IFUS, with firmware 9.0.36 and y211ga installed.
Everything worked fine, i've followed the instruction on the Home Assistant integration page and set an FTP password and username as requested.
once i've reset the camera, I cannot access the managing system, even with the credentials Ive just set.
can these be reset somehow?
this is the login request im getting:

Thanks,

Nevermind,
I just needed to login with no password...

Thought it got solved but im still stuck.

This integrations isn't compatible with new yi models.
Please try this:
https://github.com/roleoroleo/yi-hack_ha_integration

I ended up using the ONVIF integration.
works fine. still cant set a password as it locks me out.


Added code coverage w/ Coveralls.

Changes Unknown when pulling c169dbe3915fc6f84dd376bd73e6a1d967469bcd on dblock:coveralls into ** on ruby-grape:master**.

Changes Unknown when pulling 171db1f7afc164f680fed1a54bb3b3053fdb5fda on dblock:coveralls into ** on ruby-grape:master**.

Changes Unknown when pulling 171db1f7afc164f680fed1a54bb3b3053fdb5fda on dblock:coveralls into ** on ruby-grape:master**.

Changes Unknown when pulling 171db1f7afc164f680fed1a54bb3b3053fdb5fda on dblock:coveralls into ** on ruby-grape:master**.

Changes Unknown when pulling 171db1f7afc164f680fed1a54bb3b3053fdb5fda on dblock:coveralls into ** on ruby-grape:master**.

Changes Unknown when pulling 171db1f7afc164f680fed1a54bb3b3053fdb5fda on dblock:coveralls into ** on ruby-grape:master**.

Changes Unknown when pulling 171db1f7afc164f680fed1a54bb3b3053fdb5fda on dblock:coveralls into ** on ruby-grape:master**.

Changes Unknown when pulling 171db1f7afc164f680fed1a54bb3b3053fdb5fda on dblock:coveralls into ** on ruby-grape:master**.

Changes Unknown when pulling 171db1f7afc164f680fed1a54bb3b3053fdb5fda on dblock:coveralls into ** on ruby-grape:master**.

Changes Unknown when pulling b72b26296000efe4802064cce708d881840d4a52 on dblock:coveralls into ** on ruby-grape:master**.

Changes Unknown when pulling 644a4c195cf068766f3307dd5a56bc0e9fa56a38 on dblock:coveralls into ** on ruby-grape:master**.

Changes Unknown when pulling 644a4c195cf068766f3307dd5a56bc0e9fa56a38 on dblock:coveralls into ** on ruby-grape:master**.

@dblock would be nice to see it in the other gems, I'm not sure if I can do it 😉
How about using of hound ci, with that the commiter see there rubocop offences and can adapt theyr PRs …
… it would be really nice to use it

Yes you can, enabling it in coveralls (login as yourself via github) and the rest is just code as in this PR.

I've tried Hound, I personally am not in love with it because it makes rubocop an external thing. But obviously feel free to do it for anything you're maintaining.


IBM-19 script to run migrations executable by npm and make normal processes start with 'production' not altering the db schema

@allandegnan please merge this when you make jenkins run npm run migrations before deploying

add lewis to the team and then feel free to assign this to him.


introduce server match model for sticky session

This PR is trying to enhance sticky session by introducing a server match model.
The existing model CookieConsistentHash will influence a bit stickiness when servers scale out because of re-hashing, but the new model will keep the max stickiness in the same situation by matching server exactly.

Codecov Report
Base: 76.81% // Head: 77.03% // Increases project coverage by +0.22% :tada:

Coverage data is based on head (4c6160b) compared to base (2410c79).
Patch coverage: 88.73% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #838      +/-   ##
==========================================
+ Coverage   76.81%   77.03%   +0.22%
==========================================
  Files         103      103
  Lines       11577    11650      +73
==========================================
+ Hits         8893     8975      +82
+ Misses       2176     2169       -7
+ Partials      508      506       -2

Impacted Files
Coverage Δ

pkg/filters/proxy/loadbalance.go
87.11% <88.40%> (+0.49%)
:arrow_up:

pkg/filters/proxy/pool.go
80.17% <100.00%> (+0.99%)
:arrow_up:

pkg/object/meshcontroller/spec/builder.go
80.00% <0.00%> (+0.08%)
:arrow_up:

pkg/object/meshcontroller/spec/sidecar.go
85.03% <0.00%> (+0.20%)
:arrow_up:

...kg/object/meshcontroller/spec/ingresscontroller.go
87.09% <0.00%> (+0.21%)
:arrow_up:

pkg/object/mqttproxy/client.go
82.51% <0.00%> (+0.89%)
:arrow_up:

pkg/cluster/op.go
66.46% <0.00%> (+1.82%)
:arrow_up:

pkg/cluster/syncer.go
83.33% <0.00%> (+5.76%)
:arrow_up:

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

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


Split git and hub completion scripts

Not everyone that installs hub wishes to use the git alias. Unfortunately, we can't install bash-completion for just hub, because the script that provides it also takes over the git completion.
Please provide separate completion scripts for both git and hub so that they can be installed independently.

In my case I type git br and hit "tab" to show the completion options, and "browse" is a hub-only option.
Can we have the bash completion script do a sanity-check that "git" is aliased as "hub" before activating the completion settings for "git"?


Typo in preview image of README.md

The text "List of all componenets used" should say "List of all components used".
Great job, keep it up!

Another one: "veritcal" should be "vertical"... but ditto 👆
Great project!

@tiomno @mccallofthewild Aww! Never noticed that. Thanks for the heads up. This will be fixed soon.

It's fixed in the code. The screenshot will be soon updated 🍡 . Will close the issue after that.

I'm having issues cloning this project. I have node and npm installed.

@pcabrera83  Can you be a little more specific?

@tiomno @mccallofthewild  Screenshots has been updated 💪🏼


Other's satisfaction vote mysterious lost after making my own vote

I just completed this kata. Before me giving my vote it was like this:

Okay, so I gave a ranking and satisfaction vote. Then it had 3 ranking and satisfaction votes, but beta status was Ranking feedback needed, which is not surprising because of #1470 (I've encountered it fairly often). So I retracted and re-applied my satisfaction vote again.
Now somebody else's satisfaction vote is lost:

Related: #1660

Probably something similar: https://www.codewars.com/kata/string-to-range-to-sum

I'm guessing the following had happened

User A does something to votes
Codewars messes up (like #1660)
User B does something to votes
Codewars partially corrects itself by recalculating some fields triggered by this action

This is most likely the case considering how many bugs like this exist on Codewars.
I don't think it's possible for one user's vote to actually remove a vote from someone else because of how it's stored. Recalculating all the fields should fix this like #1660 so maybe Codewars should do it every night or something for beta kata.


NPM self-destructed on error

I attempted a "npm update -g" today not remembering that one module had a permissions error<EMAIL_ADDRESS>on node v0.6.5 correctly errored out with the log "1" at https://gist.github.com/1567273
When I went to do a "sudo npm update -g" afterwards (and anything involving npm now), I get the error at log "2" at the same gist url.
I will just reinstall npm manually to fix it, but I figured this is probably an actual problem.

Reinstalled NPM (version 1.1.0-beta-10) and did the same thing. Got a similar error (with more noise) the first time, and then npm seems to have deleted its executable ("bash: /usr/local/bin/npm: No such file or directory") instead of giving the missing module error.

Sorry for the fast updates, but I manually removed the offending package, reinstalled NPM again (using "curl http://npmjs.org/install.sh | sh"), and did "npm update -g", which failed with error "3" at the same gist url in the original report.

I can confirm the same kind of problem.
Npm originally installed using the Mac OSX installer package from nodejs.org, issuing "npm update -g" kills npm itself.

Same here.


feature request:

-invocation presets with names
-swap talk to with 'proceed' after demi bosses
-swap talk to with 'begin' on npc before final boss

presets have now been added and released in v1.1.0
static swaps like that can be added manually with runelite custom swaps but i'll also add them to the plugin

added in 8147d919e6e9a7256f70de9610b0fb3362fff5ce


Error When Running i18n

🐞 Bug report
Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [x ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?
Never tried other version, just start the project using latest angular and angular CLI
Description
 A clear and concise description of the problem...
Schema validation failed with the following errors:   Data path "" should have required property 'outputPath'.
I got error when i perform ng xi18n --output-path src/locale
I created the project and start with testing internationalization and universal, and everything is working.
then i start to add few component and tried to generate the messages,xlf again and it show me this error. i cant understand where is the problem and how to debug it.
"extract-i18n": {           "builder": "@angular-devkit/build-angular:extract-i18n",           "options": {             "browserTarget": "hb-store-vietnam:build",           }         },
this is my angular.json part
i really didnt understand where the outputPath required mean to be
i even tried:
"extract-i18n": {           "builder": "@angular-devkit/build-angular:extract-i18n",           "options": {             "browserTarget": "hb-store-vietnam:build",             "outputPath": "src/locale",           }         },
or
"extract-i18n": {           "builder": "@angular-devkit/build-angular:extract-i18n",           "outputPath": "src/locale",           "options": {             "browserTarget": "hb-store-vietnam:build",           }         },
all return me same error.
🔥 Exception or Error

Schema validation failed with the following errors:
  Data path "" should have required property 'outputPath'.

🌍 Your Environment

Angular CLI: 8.2.2
Node: 10.15.3
OS: win32 x64
Angular: 8.2.2
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router

Package                                    Version
--------------------------------------------------------------------
@angular-devkit/architect                  0.802.2
@angular-devkit/build-angular              0.802.2
@angular-devkit/build-optimizer            0.802.2
@angular-devkit/build-webpack              0.802.2
@angular-devkit/core                       8.2.2
@angular-devkit/schematics                 8.2.2
@ngtools/webpack                           8.2.2
@nguniversal/express-engine                8.1.1
@nguniversal/module-map-ngfactory-loader   8.1.1
@schematics/angular                        8.2.2
@schematics/update                         0.802.2
rxjs                                       6.4.0
typescript                                 3.5.3
webpack                                    4.38.0

I am so sorry, i have figured out the problem
closing this issue.


PAge upadetd

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/aggregation-containers.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Add Support for "Audio" Device Type

Thanks for creating this plugin!  Would it be possible to add support for Audio device group?

What would audio device map to? There isn't a "Audio device" in HomeKit. Airplay 2 is not supported by home bridge.

Maybe it can be mapped to "uncategorized"? Or even as a switch if that would enable to control on/off?
For instance in the Google home app the audio device is recognized as audio but cannot be controlled for any functions other on/off

Yes, even controlling some device as a switch would be helpful, this way we can activate amplifiers, TVs etc.


When creating a field, use Schema length and/or max validation fields as varchar lengths

When joiSchema has max or length defined, set the STRING (varchar) datatype length accordingly

@derekryansnider
Thanks, this is a very useful feature to handle the database layer.
I have included this in my fork
https://github.com/jagql/store-sequelize


getCurrentView() hang when I run multi test function in one class.

Here is the situation:
I write test function and make sure it works. So I try to run multi test function,  In the second of test function process, I found the application doesn't response. so I try to find out. I add some log like above.
Log.e("KuaiXiao", "before get currentActivity");
Activity activity = solo.getCurrentActivity();
Log.e("KuaiXiao", "after get currentActivity");
the logcat did print "before get currentActivity" but didn't print "after get currentActivity".So I check the code. and I try to use solo.getActivityMonitor().getLastActivity() to see what I get. the result of it is an exception that java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.Activity android.app.Instrumentation$ActivityMonitor.getLastActivity()' on a null object reference
I'm confused. why the activityMonitor is null ?
what's the diference between single test function run and multi test function run ?
here is my setUp() and tearDown()：
@Override
public void setUp(){
		Config config = new Config();
		config.commandLogging = true;
		config.commandLoggingTag = "TAG";
		config.screenshotFileType = ScreenshotFileType.PNG;
		config.screenshotSavePath = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "robotium" + File.separator + System.currentTimeMillis();
		config.timeout_large = 20000;
		config.timeout_small = 10000;
		config.shouldScroll = true;
		config.trackActivities = true;
		instrumentation = getInstrumentation();
		solo = new Solo(instrumentation, config, getActivity());
		soloUtils = SoloUtils.getInstance(solo, instrumentation);
		logger = Logger.getLogger(VisitTest.class);
	}

teardown:
@Override
public void tearDown(){
	solo.takeScreenshot();
	solo.finishOpenedActivities();
	try {
		try {
			solo.finalize();
		} catch (Throwable e) {
			//TODO Auto-generated catch block
			e.printStackTrace();
		}
		super.tearDown();
	} catch (Exception e) {
		logger.debug("teardown fail:" + e);
	}
}

anybody have any ideas?  share with me, thank you in advance

Please use code tags from markdown
Our company faced same issue - random hanging batch of multiactivity tests. Firstly I have found when enabling "Do not keep activities" in Android: Settings -> Developer Options helps to reproduce this bug more often
As I understood it happens because previous activity was not killed when new intent for launching new have come. But may be I am wrong
Please check with "Do not keep activities"  flag

Thank you for your reply. but the tests still hang no matter enabling or disabling "Do not keep activities".I have searched the question  with google, got the reason as you mentioned and tried to use the methods to solve it. But they didn't work and I'm puzzled.

@Mrxiaoxie I have mentioned "Do not keep activities" because it makes problem even worse so it will be easy to understand what is going wrong (by attaching to device with debugger and making thread dump for example).
But I think you will see something like this:
"Instr: com.android.test.runner.MultiDexTestRunner@5695" prio=5 waiting
  java.lang.Thread.State: WAITING
	 blocks Instr: com.android.test.runner.MultiDexTestRunner@5695
	  at java.lang.Object.wait(Object.java:-1)
	  at android.app.Instrumentation.startActivitySync(Instrumentation.java:410)
	  - locked <0x1b25> (a java.lang.Object)
	  at android.test.InstrumentationTestCase.launchActivityWithIntent(InstrumentationTestCase.java:119)
	  at android.test.InstrumentationTestCase.launchActivity(InstrumentationTestCase.java:97)
	  at android.test.ActivityInstrumentationTestCase2.getActivity(ActivityInstrumentationTestCase2.java:104)
	  at %MY_COMPANYDOMAIN%.core.ActivityTestCase2.getActivity(ActivityTestCase2.java:125)
	  at %MY_COMPANYDOMAIN%.core.ActivityTestCase2.setUp(ActivityTestCase2.java:31)
	  at junit.framework.TestCase.runBare(TestCase.java:132)
	  at junit.framework.TestResult$1.protect(TestResult.java:115)
	  at junit.framework.TestResult.runProtected(TestResult.java:133)
	  at junit.framework.TestResult.run(TestResult.java:118)
	  at junit.framework.TestCase.run(TestCase.java:124)
	  at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
	  at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
	  at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
	  at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1886)

At the same time I can see activity launched by previous test
You may try workaround (I am not sure about this) to add Thread.sleep() for example for 10-30 seconds after each test - and see if this will help
As in our company we have solved this (and other problems related to tests - like crashing of the app main thread causing test run to stop, or crashing in native code of android framework which also results in broken test run) by creating system which launch test just one by one

Thank you for your help.  I have find that it's my mistake. I make the Class SoloUtils Singleton. After the first test function ran. solo finalized. and so soloUtils still use the finalized solo when the next test function run.
Again, Thank you for your help.


Click on Layer

I can't see a way to handle a click on a Layer (KML or GeoJSON), am I missing something ?
Thanks !

same here. I am working on a piece of disaster relief software for DHS/FEMA, and it would be great if I could show the evacuation zone # when a user clicks on one of the map features.

I ended up ditching android-maps-util and manually extracting the KML polygons and adding them using the GMaps addPolygon / setOnPolygonClickListener functions. It works but the click zone are not precise at all, seems like Polygons are over simplified for click detection.

I just found out you could do that earlier today. That's what I will do. Thanks.

Added in 19344ee34ec1d14e19adc41146ecf2af598f88ec


Add support for zod lazy and recursive zod schema

This is exciting to see... Could you:

Run prettier --write src on the code? Besides enforcing the pre-existing style pattern, it should make the diffs easier to read.
Add some tests? (ideally so that npm test shows perfect coverage (besides ui.ts))

Great, thank you! It’s too long to review on my phone, so I’ll try to remember to look at it next week when I’m at my laptop again

@Gregoor : I've added #29 as an alternative to this PR. It avoids requiring id on each object, instead doing its own internal tracking of paths. It also uses JSON references as the pointers which, besides being familiar to JSON Schema and other users, can optionally be processed first with another JSON references-aware library to allow modular storage of schemas in other files.

I think this can be closed now that #29 landed.


btrbk: remove asciidoc dependency

asciidoc is not needed and pulls in inkscape which is currently not available in the binary cache, so it triggers a noticeable build process.
Other distros don't pull in asciidoc either, see e.g. https://packages.gentoo.org/packages/app-backup/btrbk/dependencies or https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=btrbk
I have checked the build output of btrbk built with and without asciidoc and it's the same, so I would argue it's really not needed at all.

Motivation for this change
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
[x] 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 157651 run on x86_64-linux 1

1 package built:

btrbk


Poll UI

Description 📜
It's a basic Poll UI, which is made using HTML,CSS,JAVASCRIPT. The Code is responsive and You can use the design of Pole in anny of your web-application.

Fixes #1230

Type of change 📝

[x] Add a new project

Domain of Contribution 📊

[x] Project using HTML, CSS & JS

Checklist ✅
Please delete options that are not relevant. In order to tick the check box just put x inside them for example [x] like this

[x] I have performed a self-review of my own code or work.
[x] I have commented on my code, particularly in hard-to-understand areas.
[x] My changes generate no new warnings.
[x] I'm GSSoC'22 contributor

Screenshots / Gif (Recommended) 📸
https://user-images.githubusercontent.com/77873383/166998628-7c52a8a3-7c0b-4d85-8108-12e8f26eb854.mp4

@gurjeetsinghvirdee  please check


How do you chain questions using botkit

I want to develop a guessing game using botkit.
The game is easy, guess a number from 0-100. And users have infinite chance to make a guess
The bot will keep ask the user until they get it.
the code is like
bot.startConvo((convo)=>{ 	convo.ask('what is your guess?',(response)=>{ 		if(guess==answer){ 			convo.say('congrat'); convo.stop(); 		} else { 			convo.ask('what is your guess?',(response)=>{...} 		} 	} }
You can imagine the infinite callback pyramid is coming.
How should i implement chatflow like this using botkit.

Check out passing an array of callbacks to convo.ask()
You can use threads to move between asking for user input and success state. A non-success answer could send a "Nope that's not it" message and then run convo.repeat to ask again and wait for input

true. thread did solve this situation.
One more question, what if I want to queue some question in series. Like I want to ask 10 questions in sequence. Do I build up 10 thread to solve it or I can have a more convenient API to do so?

Interested in the answer to @wingliu0 question

Here is a simple example.
This example assumes you want to ask however many questions all in a row, without branching logic like "if user says NO then go to NO thread", which would be done the same way but with an array of callbacks as shown in the link above.
A more convenient way to build conversations is to do so visually using a Content Management System like studio.botkit.ai which is in beta right now.

@jonchurch I just applied for studio.botkiti.ai
lets see what can it do!


Angular SharedModule problem

Bug Report
For more information, see the CONTRIBUTING guide.
Prerequisites

[x] Can you reproduce the problem in a MWE?
[x] Are you running the latest version?
[x] Did you perform a search in the issues?

Environment Details and Version
Piral 1.3.3
Description
import { SharedModule } from 'piral-ng/common'; fails as it says that it cannot find module, even tho it's shared module from app shell. Installing it separately in the pilet, results in errors that @types/react isn't installed. Even after instaling types, errors are shown.
Steps to Reproduce

Initialize Angular pilet
Add SharedModule inside of @NgModule

Expected behavior
To be able to use <extension-component>
Actual behavior
Throws errors on build/debug once it's imported.

Can you please show a MWE and have your steps to reproduce filled out properly?
For instance, "initialize Angular pilet" - what does that mean? Are you using the template? Also, keep in mind that the package is piral-ng-common, not piral-ng/common, which is the old / outdated shim.

Thanks for the info - yes the peer dependencies (look at top of the document) are mentioned, however, as you stated it should be more clear that
npm i piral-ng-common

is mostly needed (otherwise some version is installed which might fit your Angular version or not - in the latter case leading to problems).

Re-opened as documentation task.

Landed in develop.


Running SMARTS/ULTRA on Compute Canada

TODO: Introduction of this discussion
Feel free to put all questions, comments, etc. about running SMARTS and ULTRA on Compute Canada in this discussion issue.
Running SMARTS on Compute Canada
# Login to Compute Canada with Trusted X11 Forwarding and the forwarded port for Envision.
$ ssh<EMAIL_ADDRESS>-Y -L localhost:8081:localhost:8081

# On your Compute Canada login node, obtain the Docker image for SMARTS and compress it.
$ cd ~/scratch
$ wget https://raw.githubusercontent.com/moby/moby/master/contrib/download-frozen-image-v2.sh
$ sh download-frozen-image-v2.sh smarts-0416_docker huaweinoah/smarts:v0.4.16
$ cd smarts-0416_docker && tar cf ../smarts-0416_docker.tar * && cd ..

# Start an interactive job and build the Singularity container.
$ cd ~/scratch
$ salloc --mem-per-cpu=2000 --cpus-per-task=4 --time=2:0:0
$ module load singularity
$ singularity build smarts-0416_singularity.sif docker-archive://smarts-0416_docker.tar
$ exit  # Exit out of the interactive job once the Singularity container is built.

# Move the Singularity container back to your projects directory and clone SMARTS.
$ cd ~/scratch
$ mv smarts-0416_singularity.sif ~/projects/<sponsor-name>/<user-name>/
$ cd ~/projects/<sponsor-name>/<user-name>/
$ git clone https://github.com/huawei-noah/SMARTS.git

# Execute the Singularity container and bind your SMARTS directory to the /SMARTS directory in the container.
# After, go to your the SMARTS directory in the container, modify the PYTHONPATH, and run an example!
$ cd ~/projects/<sponsor-name>/<user-name>/
$ singularity shell --bind SMARTS/:/SMARTS smarts-0416_singularity.sif
Singularity> cd /SMARTS
Singularity> export PYTHONPATH=/SMARTS:$PYTHONPATH
Singularity> supervisord

Running ULTRA on Compute Canada
Follow the steps above to obtain smarts-0416_singularity.sif and SMARTS/.
# Start an interactive job to run an ULTRA experiment.
$ salloc --time=1:0:0 --mem=16G --cpus-per-task=8 --ntasks=1
$ module load singularity
$ singularity shell --bind SMARTS/:/SMARTS smarts-0416_singularity.sif
Singularity> cd /SMARTS/ultra
Singularity> export PYTHONPATH=/SMARTS/ultra:$PYTHONPATH

# Follow instructions in https://github.com/huawei-noah/SMARTS/blob/master/ultra/docs/getting_started.md to run the experiment.

How can we install some additional packages in the container? There seem to be some permission issues to do so on Compute Canada.

@2017soft,

How can we install some additional packages in the container?

I believe if you also bind the /etc directory of the Compute Canada machine to the /etc directory of the Singularity container, then the certificates needed to install extra packages should be found. That is, run it like this:
$ singularity shell --bind /etc/,SMARTS/:/SMARTS smarts-0416_singularity.si

And then try pip install ... or whatever.
This worked for some packages, but I know when I tried to setup SMARTS this way, some packages wouldn't install. If this is the case for you, perhaps I would try changing the Dockerfile of SMARTS so that it also installs the packages you need. https://github.com/huawei-noah/SMARTS/blob/c5a16088152e840dbaa9afe302e8bb9338bc6a93/Dockerfile#L62-L63 Then you can build and push this new image to your DockerHub (see http://jsta.github.io/r-docker-tutorial/04-Dockerhub.html), and then use this image instead of huaweinoah/smarts:v0.4.16.

Thanks for the instructions! I ended up using the Docker method and it seems to work now. However, when I tried to run SMARTS using a different algorithm, the following error shows up:
RendererException: Error in initializing framework for opening graphical display
and creating scene graph. A typical reason is display not found. Try running
with different configurations of `export DISPLAY=` using `:0`, `:1`... . If this
does not work please consult the documentation.
Exception was: {e}
ERROR:RemoteAgentBuffer:Exception while tearing down buffered remote agent. ValueError('Cannot invoke RPC on closed channel!')

I have tried export DISPLAY= :0, :1, ..., but they didn't seem to work. What might be happening here? There seem to be a similar issue that was mentioned here https://github.com/huawei-noah/SMARTS/issues/786

Hi @2017soft, no worries, glad it seemed to work. Regarding your issue, yes we have seen that before. Unfortunately, I am not getting this error though when running SMARTS using Singularity on Compute Canada. Could you provide some more information? For example, what command did you use to SSH into Compute Canada? When running this experiment, did you use a compute node (instead of a login node) on Compute Canada? What command did you run to execute this experiment?

Hi @christianjans, I used ssh -Y<EMAIL_ADDRESS>to log in to Compute Canada.
I have tried both compute node and login node, but they both gave the same error.
I was running code from another Git repository, but I imported some SMARTS modules into some of the files in that repository.

@2017soft would this work? singularity shell --bind $PWD:/SMARTS DISPLAY=$DISPLAY smarts-0416_singularity.sif

Hi @reneeleung @christianjans, I have just figured out the problem. It turns out that I have to downgrade XQuartx from 2.8.1 to 2.7.8 on my MacBook. The DISPLAY starts working after that.

Also, @reneeleung is right. We have to set DISPLAY inside Singularity to be equal to the DISPLAY outside the container as well.

Okay great, thank you @reneeleung! I will update the instructions.

hey! is anyone encoutering this error while executing supervisord:
ImportError: libmkl_rt.so: cannot open shared object file: No such file or directory

thanks, @christianjans,
Some cache files were stored in my home directory, causing some path issues and thus this error. NVM,  this was some mistake from my end. The above-given steps work perfectly.

Hi @Dikshuy, okay great to hear! Glad the issue was resolved.

Thanks, @christianjans for the help here. I can now run salloc and srun with X11 forwarding. However, it seems that sbatch does not support X11 forwarding. Is it possible to resolve this (hence running the training job for SMARTS using sbatch)?

@2017soft,

How can we install some additional packages in the container?

I believe if you also bind the /etc directory of the Compute Canada machine to the /etc directory of the Singularity container, then the certificates needed to install extra packages should be found. That is, run it like this:
$ singularity shell --bind /etc/,SMARTS/:/SMARTS smarts-0416_singularity.si

And then try pip install ... or whatever.
This works for some packages, but I know when I tried to setup SMARTS this way, some packages wouldn't install. If this is the case for you, perhaps I would try changing the Dockerfile of SMARTS so that it also installs the packages you need.
https://github.com/huawei-noah/SMARTS/blob/c5a16088152e840dbaa9afe302e8bb9338bc6a93/Dockerfile#L62-L63
Then you can build and push this new image to your DockerHub (see http://jsta.github.io/r-docker-tutorial/04-Dockerhub.html), and then use this image instead of huaweinoah/smarts:v0.4.16.

Hi!
When I bind /etc/, my python and pip are no longer found:

Hi @mansur007, try binding just the certificate, something like:
singularity shell --bind /etc/pki/tls/certs/ca-bundle.crt,SMARTS:/SMARTS --env DISPLAY=$DISPLAY smarts-0416_singularity.sif

I will update the comment.

However, it seems that sbatch does not support X11 forwarding. Is it possible to resolve this (hence running the training job for SMARTS using sbatch)?

Good catch @2017soft, I will look into this as well.

@2017soft, I am able to run a SMARTS experiment using sbatch with the following job script:
#!/bin/bash
#SBATCH --time=00:03:00
#SBATCH --mem=16G
#SBATCH --cpus-per-task=8
#SBATCH --ntasks=1
#SBATCH --output=slurm-%j.out

# This file should be in the /SMARTS directory, the Singularity file should
# be outside of the /SMARTS directory.

module load singularity

singularity exec --bind ../SMARTS/:/SMARTS --env DISPLAY=$DISPLAY,PYTHONPATH=/SMARTS:/src --home /SMARTS ../smarts-0416_singularity.sif supervisord

Feel free to let me know of any problems you encounter.

@christianjans I just tried it and unfortunately it does not work for my training script. I think the above command works because it does not render camera observations. If any of rgb, ogm, drivable_area_grid_map, and lidar are set to be True in AgentInterface, then SBATCH will no longer be working because it does not have DISPLAY. My training script needs the image from the camera observations.

@christianjans Yes, salloc and srun do work for camera observations on my end.
And yes, I used similar commands to run experiments with camera observations as well. To run salloc and srun successfully, I think I have to downgrade my XQuartz from 2.8.1 to 2.7.8 as well on my MacBook.

Oh that's right, thanks! I just downgraded as well, and it seems to be working fine 👍🏻.

@christianjans I wonder if it is possible to just turn off the DISPLAY. When I run the experiments using GPU, the following errors show up:
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(error): Unable to detect OpenGL version

It just keeps showing this error :display:gsg:glgsg(error): Unable to detect OpenGL version

@2017soft,

I can now run salloc and srun with X11 forwarding. However, it seems that sbatch does not support X11 forwarding. Is it possible to resolve this (hence running the training job for SMARTS using sbatch)?

I have been looking into this too, but am thinking that your assumption is correct in that by allocating resources through sbatch, X11 forwarding cannot be done. However, if this is needed, I would contact Compute Canada support (https://docs.computecanada.ca/wiki/Technical_support) to see if they have any solutions.

I wonder if it is possible to just turn off the DISPLAY.

I have talked to @Gamenot about this, and in future versions of SMARTS, this display issue will not be a problem if camera observations are not needed. However, if camera observations are required by agents, then rendering will be needed in order to produce these observations, and this rendering needs this X11 DISPLAY environment variable (not sure about the exact details here).

When I run the experiments using GPU, ...

I have been looking into running SMARTS/ULTRA using the GPU on Compute Canada as well, and in order to do so, I...

Had to modify the first line of the Dockerfile to be FROM nvidia/cuda:10.1-cudnn7-runtime-ubuntu18.04 so that the image would have NVIDIA drivers.
Rebuilt the Docker image with this new Docker base image.
Uploaded this new image to my DockerHub.
Created the Singularity container of this Docker image on the Compute Canada machine.
salloc'd GPU resources by setting the --gres argument (see https://docs.computecanada.ca/wiki/Using_GPUs_with_Slurm).
Ran singularity shell with the --nv flag (https://sylabs.io/guides/3.5/user-guide/gpu.html) on the GPU compute node.

If your process to get SMARTS running with GPUs on Compute Canada is different, can you describe what you did?
When I try and run a script that has an agent with a PyTorch network, it sometimes succeeds, but I also sometimes get that :display:gsg:glgsg(error): Unable to detect OpenGL version error too. I found that if I get this error, I can exit out of the current Singularity container I am in, then simply restart the Singularity container (with singularity shell --nv ...) and then it sometimes works, but other times still does not.
So I am not sure what is going on here with this error, I will try and look into it more. And again, Compute Canada support might have some ideas too.

@christianjans I have already got SMARTS running with GPU on Compute Canada. I used more or less the same process except I used nvidia/cudagl:11.0.3-devel-ubuntu18.04 as the base Docker image. This has OpenGL installed and then we can install cudnn on top of the base image by using apt-get install -y cudnn8.

Ahh okay great @2017soft, are you still encountering this error?
Also, just for-your-information, I have submitted #993 to hopefully get more information and help on running SMARTS with camera observations through a non-interactive job (i.e. when submitting jobs through sbatch).

@christianjans Thanks a lot for submitting the issue for non-interactive Slurm jobs. I have emailed Compute Canada as well and got a response from them today:
Unfortunately, there is no way to run jobs with sbatch and X11 forwarding. You have to find a way to run your code in batch mode. If there is no way to disable this feature, your application is not suitable for batch mode and you have to use only interactive jobs via salloc.

It looks like it may not be possible to run sbatch jobs with X11 forwarding. As you mentioned in the new issue, I also wonder how possible it is to remove the X11 dependency from SMARTS.
Also, by using nvidia/cudagl:11.0.3-devel-ubuntu18.04 as the base image, I no longer have the OpenGL error :display:gsg:glgsg(error): Unable to detect OpenGL version here anymore. I can run the interactive training jobs without any issues.

Okay great, thanks for confirming with Compute Canada support.


data structure passed through InstanceContext isn't preserved

Describe the bug
Hey, I'm currently using wasmer in gossamer. In our usage of wasmer, we pass in a Ctx struct as the InstanceContext here. We instantiate the module here. The Storage field in the struct has an underlying trie data structure. (relevant code is here and here) The instance imports various go functions here that use Storage to manipulate the trie key-values.
I've noticed that between calls to the imported functions, the trie values become incorrect (I've verified this isn't an issue with the actual trie structure by replicating the key-values that are being inserted)  I first noticed this using the substrate runtime. I created a small test wasm program to isolate this here. It first calls the external function ext_set_storage setting a key-value pair in the trie. Then, it calls another external function ext_twox_128 which simply hashes some value and returns it. In between these two calls, the value stored in the trie at key changes.
Steps to reproduce
git clone https://github.com/ChainSafe/gossamer.git
cd gossamer
git checkout noot/execute-block
go test ./lib/runtime/ -v -run Test_mock_execute_block

this will download the test wasm file and call the mock_execute_block function that performs the above, in the logs you can see the external function call logs and the trie contents:
=== RUN   Test_mock_execute_block
t=2020-06-11T22:02:50-0400 lvl=dbug msg=[NewRuntime] runtimeCtx="{storage:0xc0005b6010 allocator:0xc0001b6280 keystore:0xc0000faaa0}"
t=2020-06-11T22:02:50-0400 lvl=trce msg="[ext_set_storage] executing..."
t=2020-06-11T22:02:50-0400 lvl=trce msg=[ext_set_storage] key=0x4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d val="[0 0 0 0]"
t=2020-06-11T22:02:50-0400 lvl=dbug msg="[teststate] SetStorage" key=0x4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d val=0x00000000
leaf prefix  key 4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d value 00000000

t=2020-06-11T22:02:50-0400 lvl=trce msg="[ext_twox_128] executing..."
t=2020-06-11T22:02:50-0400 lvl=trce msg="[ext_twox_128] hashing..." value=u\r\r"
leaf prefix  key 4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d value 08007500

after the first call, the key 4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d has value 00000000 which is correct. then, after the second call, the value is now 08007500.
Expected behavior
the values stored in the trie stay the same
Actual behavior
the values changed
Additional context
let me know if you need any more info - I've tried to isolate the issue, but please let me know if you need me to extract it more. I suspect the issue is something to do with the underlying memory being overwritten or some pointers getting mangled, but I'm not totally sure. maybe there's something I'm missing in the usage of InstanceContext.  any help would be much appreciated!

This is due to the issue described in my comment here most likely:
https://github.com/wasmerio/go-ext-wasm/issues/46#issuecomment-631196119

@AdamSLevy thanks for pointing that out! I'll take a look and see if I can fix it

It's possible I'm mistaken. Apologies for a red herring.

no worries! I'll continue to investigate in the meantime.

@Hywan hey, any updates on the status of this issue? let me know if I can help speed this up in any way.

Sorry, the entire team is busy on a giant secret project. I'll get back to you very soon! Thank you for your patience :-).

@Hywan ping on this for next work :)


Remove dependency on unused cookbooks

I think, chef-vault, nginx and ssl_certificate can be safely removed. What do you think @jmccann?

@szymonpk 👍 !!!  Thanks for pointing that out.  I'll take care of it today and do a 4.0.1 release!

Done!


Install link 404

What is with the install link?

None of the links at https://gtoolkit.com/install/ work.

What operating system are you trying them on?

macOS
https://dl.feenk.com/gt/GToolkitOSX64-release.zip is for example 404, but also the linux one is.

I am not sure I understand. The link from https://gtoolkit.com/install/ point to https://dl.feenk.com/gt/GToolkitOSX64-v0.7.183.zip not to https://dl.feenk.com/gt/GToolkitOSX64-release.zip.

I understand now. I had javascript disabled. Without it looks like:

Aha, I see. That's a good point. @georgeganea I think it would make sense to make the symbolic link work as well.

Fixed, the links work now.

Thanks!


feat: add UMAP encoder

This pull request adds a Uniform Manifold Approximation and Projection (UMAP) encoder.

recheckcla

Jina CLA check
❤ Thank you for your pull request. It looks like this is your first contribution to an open source project maintained by Jina AI Limited. Before we can look at your pull request, we kindly ask that you sign our Contributor License Agreement. You can sign it by commenting in format below.
I have read the CLA Document and I hereby sign the CLA

the link to CLA.md is broken, but sure I consent


Record kmod load & unload events

Record the ModuleLoaded and ModuleUnloaded events.
Fixes #473
/cc @yevgeny-shnaidman

Codecov Report
Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (5d7b425) 80.05% compared to head (debbda3) 80.23%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #583      +/-   ##
==========================================
+ Coverage   80.05%   80.23%   +0.17%
==========================================
  Files          47       47
  Lines        4679     4725      +46
==========================================
+ Hits         3746     3791      +45
  Misses        764      764
- Partials      169      170       +1

Files
Coverage Δ

internal/utils/kmmlabels.go
38.77% <100.00%> (+11.50%)
:arrow_up:

internal/controllers/nmc_reconciler.go
77.88% <92.30%> (+0.87%)
:arrow_up:

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

/test pull-kernel-module-management-unit-tests

/lgtm


What about the compatibility for .xls excel files which generated before MS excel 2007?

What about the compatibility for .xls excel files which generated before MS excel 2007?

Thanks for your issue. I have added Object Linking and Embedding (OLE) format support to the Roadmap. Reference issue #44 and #158.


Fix Nuget grouped PR's

This isn't ready yet. Needed smoke tests to run.
The issue here is that we're resetting the repo files in the updater. This is causing grouped PR's to reset each other's commits leaving us in a scenario where only the last commit gets applied.
The solution is to not reset when still updating within a single group. We still need to reset if running updates in a different group, or running individual updates

@jakecoffman The behavior I observed when removing the line that resets the changes was that a single grouped update would work as expected but if multiple individual updates were applied in a single job then the updates would become cumulative where in the end the last update contained all of the previous updates.
Wouldn't this mean that the modified dependency files are already being written to the disk? (Please correct me if I'm wrong)
In any case, a working solution would be to have the updater only reset if we're not conducting a grouped update which brings a lot of edge cases such as handling multiple groups or a group + an individual update.

a working solution would be to have the updater only reset if we're not conducting a grouped update

We already have that with this helper 👇
https://github.com/dependabot/dependabot-core/blob/c676f5980bcd905fbb1367b3de5e9181b8f89b7d/common/lib/dependabot/shared_helpers.rb#L44-L63
For non-grouped updates it goes into this path:
https://github.com/dependabot/dependabot-core/blob/c676f5980bcd905fbb1367b3de5e9181b8f89b7d/common/lib/dependabot/shared_helpers.rb#L52-L58
For a grouped update it defers to the active workspace, where it resets at the end of all updates:
https://github.com/dependabot/dependabot-core/blob/1e066546b40e22bc588b32443e826df4f0a5a3ce/updater/lib/dependabot/updater/group_update_creation.rb#L92
Here's probably the clearest example of how to use it:
https://github.com/dependabot/dependabot-core/blob/86e8577a32223786ce7a6ff1414494a0d398de4f/npm_and_yarn/lib/dependabot/npm_and_yarn/file_updater/yarn_lockfile_updater.rb#L56-L70
write_temporary_dependency_files is where it takes the in-memory files and writes them to the repo directory which may or may not have been reset, depending on if this is a grouped update or not.


NTR: data items for pathogen species, blood meal host species,

My current plan to move pathogen assay data (insect samples assayed for a small number of pathogens by ELISA or PCR) and blood meal host identification data (similar idea but for around ~100 species of blood meal host) into VEuPath is NOT with a variable for each pathogen or host species (although we can try that if my proposal doesn't work out).
For this approach each assay will have a number of characteristics/properties/variables. One assay per organism detection goal.  Firstly for the pathogen infection assays:

pathogen organism (EUPATH_0000756) - value is a taxonomy term
presence of pathogen (EUPATH_0010889) - value is boolean
prevalence of pathogen (???) - value is a prevalence - units are usually percent

1 above is an existing term, but it's not a data item, so maybe we need a new term?
Then for the blood meal host data, it's very similar:
A. blood meal host organism
B. presence of blood meal host organism
C. prevalence of blood meal host organism (this is called 'host blood index' in the community, value in percent)
For the blood meal data we're a bit less concerned about collecting negative results, so we could negotiate the need for B.

To clarify, request is for potentially 4 new terms:
prevalence of pathogen - data item
blood meal host organism - organism with role 'blood meal source role'
presence of blood meal host organism - data item (boolean)
prevalence of blood meal host organism (e.g., % of mosquitoes that have human blood as a meal) - data item

To clarify, request is for potentially 4 new terms:
prevalence of pathogen - data item
blood meal host organism - organism with role 'blood meal source role'
presence of blood meal host organism - data item (boolean)
prevalence of blood meal host organism (e.g., % of mosquitoes that have human blood as a meal) - data item

@bobular @SAK22 I've posted proposed labels, definitions, and examples of usage in the associated OBI tracker. https://github.com/obi-ontology/obi/issues/1288
Can you review to see if OK? Thanks.

@cstoeckert I will look at this now and then confirm with @bobular his thoughts too.

These have been added to OBI and will be in the upcoming release.
OBI_0002992 prevalence of pathogen in specimens
OBI_0002993 prevalence of blood meal specimens from a host organism
OBI_0002994 presence of blood from host organism in blood meal specimen
OBI_0002995 blood meal source organism
OBI_0002996 blood meal source role
https://github.com/obi-ontology/obi/pull/1316


Kotlin implementation appreciated?

Hi there,
I would rewrite this library in Kotlin. Is this okay for you?

No answer. Closing this.


fish: autogenerate completions from man pages

Analogue to nixos/nixpkgs#52464.
Note: This prevents fish_update_completions from doing its job since the target directory becomes a read-only symlink, meaning people wanting to get autogenerated completions for software installed with nix-env are out of luck. I believe that's a rather minor usecase, but if it's regarded as a problem we could try and use a different target directory.

Looks good, thanks!
I guess if somebody would like to generate completions also for programs installed using nix-env then it would be possible to make this automatic generation optional. But could wait with this until somebody complains 🙂
I wrote a comment about prefering local builds in the Nixpkgs PR, which would apply here as well.

The problem with just appending is that it means fish will still generate its own completions initially, which inevitably become outdated without further maintenance.
Afaik it is best practice not to use nix-env directly anyway?
There is also the question of which completions should override which.
The best option is probably to let the user override the target directory and link it manually into $fish_complete_path as they please.

The alternative would be to link the individual files into the generated_completions directory instead of he entire directory being a symlink, but I'm not sure how to do that.

Wouldn't it be better to just expand the complete path rather than overwrite the folder?

Well, you tell me. shrug

The problem with just appending is that it means fish will still generate its own completions initially, which inevitably become outdated without further maintenance.
...
There is also the question of which completions should override which.

If you want to make an argument these two are smaller issues than overriding the directory by default and offering users to sculpt their completions according to their preference as an alternative, please do so.

Apologies, I missed that post.
I propose prepending the ones generated by Nix to the complete path. If we generate only for the packages installed by Nix, then these should always be up to date.
Thus the user is responsible for updating the standard fish completions when using nix-env to install a package.

I would also like to only affect packages installed by home-manager, but my (limited) understanding is that completions are additive, instead of replacements, the effect being that fish would provide outdated completions for programs installed with home-manager - meaning that automatically generating them would as a whole be somewhat pointless (since users have to keep using fish_update_completions anyway).
The saving grace of the approach I have taken with 'override-by-default', in my view, is that it will not act if the directory already exists, in effect prompting the user to make a decision on what they want instead of purging the completions of other programs (afaik fish generates these completions once upon install, so only when fish is installed with home-manager for the first time will completions for non-home-manager (and non-NixOS) commands not be available by default.

IIUC, we can prepend a path to the nix store with completions. It will then look in that path before it looks in the ones generated with fish_update_completions. If you do echo $fish_complete_path you will see that  $HOME/.local/share/fish/generated_completions is the last entry.
The optimal solution would be to remove all completions from our generated completions folder that are not installed by home-manager (not in home.packages ?) and then add the path to our folder just infront of the default one for generated completions.
I agree that we need some way to cut down on what we generate completions for, as it would become annoying having to wait for the generation with each build, if it is not needed.

I fear you misunderstand me. Fish will apply completions from all paths in $fish_complete_path, meaning that all our nice up-to-date completions will have a bunch of out of date completions added on top for the same command. In the current state of the PR, only the packages installed by home-manager have their completions generated by home-manager. The way proposed in the edit is an alternative to the implementation currently provided in the PR to work around the issues we discussed before that.

This is not true. See faho's answer to this stackoverflow question..
https://stackoverflow.com/a/53434647/4271526
It will use the first completion file found in a path in fish_complete_path. Thus we can easily override generated completions by putting our completion folder before the auto generated one in the environment variable.

Great find! I wasn't able to find this detail in the docs. Will implement it this way tomorrow! :D

Here we go. This puts generated completions in a new directory, and adds that to $fish_complete_path` in front of other generated completions.
Thanks @Jomik for driving this to a 'have our cake and eat it too' solution instead of the compromise it was originally. :D

Thanks for finding an elegant solution 😃 I'm traveling at the moment and will not be able to merge until the 7th.
On January 1, 2019 2:25:51 PM GMT+00:00, Jonas Holst Damtoft<EMAIL_ADDRESS>wrote:

Awesome work! :+1:
This makes me happy :smile:
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/rycee/home-manager/pull/505#issuecomment-450732471

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


No module called lavis

Hi,
I have the following error when I'm running the code: No module called 'lavis'
As I checked, there is no module called 'lavis' in your files. Do I need to install it from somewhere else?
Nice work and paper.

I also encountered it, I solved it, but I forgot how to solve it. It seems that the version of a certain package is incorrect. You can add more logs

https://github.com/pix2pixzero/pix2pix-zero/issues/31


there's no mechanism for separating kernel and usespace revocation sweeps

sstatus.CRG is a single bit covering the whole system
There is currently no way of separating userspace revocatoin and kernel space revocation.
The proposal is to split the bit into two, and have different CRG settings for user and kernel, both in sstatus.
An alternative would be to ahve a bit in mstatus to control the kernel pages, but then the kerneal would have to call M-mode software to update the generation which may be awkward

We have not even prototyped kernel revocation. Adding anything to the spec is premature and requires real prior research effort.