AlreadyRegisteredException: A wizard has already been registered for model: Post

On my instance of django-cms, I added 2 instances of the djangocms-blog app, under different namespaces. Everything seemed to work together, but I later restarted the server to disable CMS caching, and now I get the following error:
AlreadyRegisteredException: A wizard has already been registered for model: Post
(Not sure if this larger DjangoCMS issue, or related to djangocms_blog, but figured the mention of 'Post' means this would be a good place to start)
Not sure what happened, but since I don't need 2 blog instances (I was just testing stuff), I think I'm going to just drop my database tables and start all over. Thought I would post this here just in case this is an actual bug.
Traceback (most recent call last):
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 174, in get_response response = self.process_exception_by_middleware(e, request)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 172, in get_response response = response.render()
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/response.py", line 160, in render self.content = self.rendered_content
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/response.py", line 137, in rendered_content content = template.render(context, self._request)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/backends/django.py", line 95, in render return self.template.render(context)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/base.py", line 206, in render return self._render(context)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/base.py", line 197, in _render return self.nodelist.render(context)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/base.py", line 992, in render bit = node.render_annotated(context)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated return self.render(context)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 173, in render return compiled_parent._render(context)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/base.py", line 197, in _render return self.nodelist.render(context)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/base.py", line 992, in render bit = node.render_annotated(context)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated return self.render(context)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 173, in render return compiled_parent._render(context)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/base.py", line 197, in _render return self.nodelist.render(context)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/base.py", line 992, in render bit = node.render_annotated(context)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated return self.render(context)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/classytags/core.py", line 138, in render return self.render_tag(context, **kwargs)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/sekizai/templatetags/sekizai_tags.py", line 83, in render_tag rendered_contents = nodelist.render(context)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/base.py", line 992, in render bit = node.render_annotated(context)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated return self.render(context)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/classytags/core.py", line 138, in render return self.render_tag(context, **kwargs)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/cms/templatetags/cms_tags.py", line 687, in render_tag request.toolbar.post_template_populate()
 File "/home/site/.env/site/local/lib/python2.7/site-packages/cms/toolbar/toolbar.py", line 313, in post_template_populate self._call_toolbar('post_template_populate')
 File "/home/site/.env/site/local/lib/python2.7/site-packages/cms/toolbar/toolbar.py", line 351, in _call_toolbar result = getattr(toolbar, func_name)()
 File "/home/site/.env/site/local/lib/python2.7/site-packages/cms/cms_toolbars.py", line 73, in post_template_populate self.add_wizard_button()
 File "/home/site/.env/site/local/lib/python2.7/site-packages/cms/cms_toolbars.py", line 109, in add_wizard_button list(entry_choices(user, self.page))) == 0
 File "/home/site/.env/site/local/lib/python2.7/site-packages/cms/wizards/wizard_pool.py", line 19, in entry_choices for entry in wizard_pool.get_entries():
 File "/home/site/.env/site/local/lib/python2.7/site-packages/cms/wizards/wizard_pool.py", line 117, in get_entries self._discover()
 File "/home/site/.env/site/local/lib/python2.7/site-packages/cms/wizards/wizard_pool.py", line 35, in _discover load('cms_wizards')
 File "/home/site/.env/site/local/lib/python2.7/site-packages/cms/utils/django_load.py", line 61, in load get_module(app, modname, verbose, failfast)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/cms/utils/django_load.py", line 45, in get_module module = import_module(module_name)
 File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/djangocms_blog/cms_wizards.py", line 53, in <module> wizard_pool.register(post_wizard)
 File "/home/site/.env/site/local/lib/python2.7/site-packages/cms/wizards/wizard_pool.py", line 80, in register model.__name__) AlreadyRegisteredException: A wizard has already been registered for model: Post

I tried to upgrade djangocms-blog app from version 0.6.3 to 0.7.0b1. On the production-like local computer - everything works well, but upgrade of djangocms-blog crushed the production and now I have the same issue. Now I can't edit all the cms pages because of AlreadyRegisteredException error.

@bxm156 @rt-em which django and django CMS version are you using?

AlreadyRegisteredException is triggered by the CMS when multiple wizards with the same  class id (ie: same memory address in python) are registered. Leftover pyc around when upgrading the blog, maybe?

In my case,  I didn't upgrade anything.
On Mar 3, 2016 10:23 PM, "Iacopo Spalletti"<EMAIL_ADDRESS>wrote:

AlreadyRegisteredException is triggered by the CMS when multiple wizards
with the same class id (ie: same memory address in python) are registered.
Leftover pyc around when upgrading the blog, maybe?
—
Reply to this email directly or view it on GitHub
https://github.com/nephila/djangocms-blog/issues/217#issuecomment-192130007
.

@bxm156 did you mean you just removed CACHES settings from settings.py? Which django / django CMS / djangocms_blog version are you on?

Django CMS 3.2.0
Django 1.8.8
I delete all Blog configs, except one(wich was connected with posts), delete the blog page in cms pages, delete all the Blog plugins from placeholders using pgadmin. Then I restarted uwsgi and nginx, and after that my site started. Then I add blog page again and set blog apphook to this page - blog now is working. But now I can't add plugins to cms placeholders... I keep digging

Django CMS 3.2.1
Django 1.9
The only change in my code was adding
CMS_PAGE_CACHE = False
CMS_PLACEHOLDER_CACHE = False
CMS_PLUGIN_CACHE = False

to settings.py

I found that can't add blog plugins inside bootstrap elements of djangocms-cascade plugin where I previously delete blog plugins using pgadmin. I totaly cleaned the placeholders using cms, rebuild the page structure, and add the blog plugins again. For this moment everything works well, but I didn't identified the reason of the crash and I didn't identified wich action led to total recovery... But I hope that information will be usefull for someone facing the same problems

@rt-em @bxm156 aldryn-apphooks-config 0.2.7 should fix some of these issues
I opened a issue there to track it. It has little to do with the blog, although I'll improve how the blog can mitigate these issues

You can test linked PR

Sorry comments / links on wrong issue :/

@bxm156 @rt-em I've been unable to reproduce the issue, but commit 344064d should mitigate the isue for production websites. In development the error is triggered to help debugging

I opened a pull request with a mitigation strategy for this issue

@bxm156 @rt-em I released djangocms_blog 0.7.0b2 which includes the mitigation fix

Thanks @yakky !

I'm having the same issue: I have two appconfigs for the blog and I'm getting the same exception.

@sephii using version 0.7 final?

@sephii are you able to reproduce locally / with a small projec / dataset you can share?

I have tested against latest develop. I don't have time right now to reproduce it with a small project but I'll gladly share my current findings, hoping they will be of any use.
I created two different pages attached to two different Sites, and set each of them to a different AppConfig. Because of this, the following code (from djangocms_blog/cms_wizards.py) goes two times in the loop (because I have two BlogConfig objects):
for config in BlogConfig.objects.all().order_by('namespace'):
    new_wizard = type(str(slugify(config.app_title)), (PostWizard,), {})
    new_form = type(str('{0}Form').format(slugify(config.app_title)), (PostWizardForm,    ), {
        'default_appconfig': config.pk
    })
    post_wizard = new_wizard(
        title=_('New {0}').format(config.object_name),
        weight=200,
        form=new_form,
        model=Post,
        description=_('Create a new {0} in {1}').format(config.object_name, config.app    _title),
    )
    try:
        wizard_pool.register(post_wizard)
    except AlreadyRegisteredException:  # pragma: no cover
        if settings.DEBUG:
            raise

When running wizard_pool.register, the following code is executed (from cms/wizards/wizard_pool.py):
 def register(self, entry):
    """
    Registers the provided «entry».

    Raises AlreadyRegisteredException if the entry is already registered.
    """
    assert isinstance(entry, Wizard), u"entry must be an instance of Wizard"
    if self.is_registered(entry, passive=True):
        model = entry.get_model()
        raise AlreadyRegisteredException(
            _(u"A wizard has already been registered for model: %s") %
            model.__name__)

The is_registered method checks if the id attribute of the entry is already present in the registered entries. It will run fine for the 1st wizard but will raise an exception for the second wizard because the id property is computed from the self.__module__ and self.__class__.__name__ attributes, which are the same for the two wizards created previously.
I hope that's clear and that my analysis is correct. I have absolutely no idea how to solve it though. ;) Maybe by never raising an exception if a wizard is already registered and just ignore it?

I found a workaround that avoids patching DjangoCMS itself but I'm really not sure it's clean (djangocms_blog/cms_wizards.py):
registered_wizards = set()
for config in BlogConfig.objects.all().order_by('namespace'):
    new_wizard = type(str(slugify(config.app_title)), (PostWizard,), {})
    new_form = type(str('{0}Form').format(slugify(config.app_title)), (PostWizardForm,), {
        'default_appconfig': config.pk
    })
    post_wizard = new_wizard(
        title=_('New {0}').format(config.object_name),
        weight=200,
        form=new_form,
        model=Post,
        description=_('Create a new {0} in {1}').format(config.object_name, config.app_title),
    )

    if post_wizard.id not in registered_wizards:
        try:
            registered_wizards.add(post_wizard.id)
            wizard_pool.register(post_wizard)
        except AlreadyRegisteredException:  # pragma: no cover
            if settings.DEBUG:
                raise

@sephii thanks for the great analysis! Actually the id of the classes should be different because they are two different classes (generated using type at the very beginning of the for cycle)
With the above workaround you can then use the wizard on both sites and have the correct apphookconfig provided to the post instance when you create them?
I'll add the workaround to the next release, anyway.
Thanks for sharing your findindgs

Ok thanks to your last comment I realized what's happening. I didn't realize app_title was supposed to be unique so I gave my two BlogConfig objects the same app_title attribute (I named them both Blog), so they got the same generated id and this led to the exception being raised. Maybe in the end I shouldn't even use two different BlogConfig objects, I did it that way because the migration process from a preview version created these.
I made a test with the workaround I proposed and it works but it then only lets you use the wizard for the first BlogConfig object, which might be a problem. So I think even if the workaround gets integrated there should at least be a warning mentioning the duplicate.

@sephii how about this: https://github.com/nephila/djangocms-blog/pull/235/files#diff-1f2d0570b8d241f3dba4a8de6981b04dL49
This should make the whole thing more unique

Looks good! I would just add the name of the failing wizard to the warning to simplify debugging.


Error running the dsr_example_py files

I'm trying to run the python files in the dsr_example, yesterday they worked, today not anymore.
This is the error i got:
rosrun dsr_example_py dance_m1013.py
_robot_id =dsr01
_robot_model =m1013
_srv_name_prefix =/dsr01m1013
_topic_name_prefix =/dsr01m1013
Traceback (most recent call last):
File "/home/dario/doosan_final_ws/src/doosan-robot/dsr_example/py/scripts/demo/dance_m1013.py", line 116, in
movej(JReady, v=20, a=20)
File "/home/dario/doosan_final_ws/src/doosan-robot/common/imp/DSR_ROBOT.py", line 1456, in movej
ret = _movej(pos, vel, acc, time, radius, mod, ra, v, a, t, r, _async=0)
File "/home/dario/doosan_final_ws/src/doosan-robot/common/imp/DSR_ROBOT.py", line 1554, in _movej
srv = _ros_movej(_pos, _vel[0], _acc[0], _time, _radius, mod, ra, _async)
File "/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_service.py", line 442, in call
return self.call(*args, **kwds)
File "/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_service.py", line 502, in call
service_uri = self._get_service_uri(request)
File "/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_service.py", line 474, in _get_service_uri
rospy.core.parse_rosrpc_uri(self.uri)
File "/opt/ros/noetic/lib/python3/dist-packages/rospy/core.py", line 113, in parse_rosrpc_uri
if uri.startswith(ROSRPC):
AttributeError: 'NoneType' object has no attribute 'startswith'
shutdown time!
shutdown time!
shutdown time!
I tried to uninstall and install everything again several times, but didn't work.
I also got an error in the masterapi.py file and I had to comment the next row, in the lookupService function:
#return self._succeed(self.handle.lookupService(self.caller_id, service))
I don't know if this can be the problem.
Thanks very much for the attention, hope someone can help me.

Hello @MLDario ,
Thank you for your interest and for using our ROS services.
This repository contains Q&A related to Ros2.
While the Ros2 version does not provide dance.py in the examples, could you please let us know which version you are currently using?
Thank you.

Hello @song-ms,
Thank you very much for your reply.
I'm sorry to say that I posted the question in the wrong page because i'm actually using Ros1 and not Ros2.
I really hope that the problem can still be solved.
Thank you.


CSKG single faceted browsing page: search results, filters, detail view

Similar to policy set viz interface by Joshua.

I implemented getMatchingNodeFacets(query = filters + text). The facets are currently sources only.
Standard faceted search =
query for "all facets" before filters (query = text only or the whole database if no text was specified)
query for "current facets" after filters (query = filters + text)
For searchbox full text search all facets = current facets to start out with.
Then display checkboxes for "selected" current facets out of all facets.
All facets stays the same throughout the faceted search process, since text is not changing. If the user enters a new search and text changes, then the facets are also reset.

Added facets as a side panel to the search results page. We could still add a detail page, not sure.


[Event Request] Table 7302 "Bin Content" - New Event OnBeforeCalcQtyUOM()

Hi Team,
we would need a new event  in table "Bin Content" in procedure CalcQtyUOM().
Here
procedure CalcQtyUOM(): Decimal
var
    IsHandled: boolean;
    Quantity: decimal;
begin
    // New Event
    OnBeforeCalcQtyUOM(Rec, IsHandled, Quantity);
    if IsHandled then
        exit(Quantity);
    // --

    GetItem("Item No.");
    CalcFields("Quantity (Base)");
    if Item."No." <> '' then
        exit(
          Round("Quantity (Base)" / UOMMgt.GetQtyPerUnitOfMeasure(Item, "Unit of Measure Code"), UOMMgt.QtyRndPrecision));
end;

Event Definition:
    [IntegrationEvent(false, false)]
    local procedure OnBeforeCalcQtyUOM(var BinContent: Record "Bin Content";  var Quantity: Decimal; var IsHandled: Boolean);
    begin
    end;

Thanks in advance,
Christian

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


"strict" Increasing/decreasing is slow

Increasing/decreasing is very slow.
Once you use strict=True, it is using rolling.apply which turns each row of the df into a series and then pass it to a custom function for transformation.  In my case, I have a six month 1 minute OHLC, a 95000 record, which takes 16 seconds to run.
Moreover, it is a strict comparison, in a typical scenario, you want it to return true if current close is a percentage above previous close.
I'm working on a new function to fix the problem, my initial test shows it is less than a second to run the same test.

Hello @ben1628,

Increasing/decreasing is very slow.

The default case, strict=False, it is not.

Once you use strict=True, it is using rolling.apply which turns each row of the df into a series and then pass it to a custom function for transformation. In my case, I have a six month 1 minute OHLC, a 95000 record, which takes 16 seconds to run.

Understandable.

Moreover, it is a strict comparison, in a typical scenario, you want it to return true if current close is a percentage above previous close.

Increasing/Decreasing are based off of TradingView's Rising/Falling builtin functions. They are not percentage based. However we can easily add a percentage argument option to account for that scenario.

I'm working on a new function to fix the problem, my initial test shows it is less than a second to run the same test.

Excellent! I welcome any contribution that is at a minimum accurate and optimally fast. Fork, edit, and submit a PR whenever you develop a satisfying solution. 😎
Kind Regards,
KJ

@ben1628,

Instead of trying to Fork, edit and submit, which I'm not too familiar with. Here is the version I have that seems to do what is expected with good speed.

I hear you. We all start somewhere. I will modify them as soon as I can and let you know when it is up on the development branch to check out and make sure that it is working as intended. I'll also add you to the contribution list.
Thanks,
KJ

Hey @ben1628,
The improvements in speed are great! One question regarding pct between increasing and decreasing.  Are they both supposed to be the same:  adj_close = close + close * pct * 0.01?  Or should the decreasing one be adj_close = close - close * pct * 0.01?
Thanks,
KJ

Hey @ben1628,
It is available on the development branch for testing. Would be nice if you can verify before I post to main.
$ pip install -U git+https://github.com/twopirllc/pandas-ta.git@development

Thanks,
KJ

Welp @ben1628,
I have pushed it to the main branch now:
$ pip install -U git+https://github.com/twopirllc/pandas-ta

Please let me know how it works out when you get a chance.
Thanks,
KJ


Fix compatibility issues with old x86 machines

This PR will resolve the issue of native-images with old x86 images

Nice. How to test it ?

Igor who reported in slack, tested it and it works for him
https://nextflow.slack.com/archives/C0477AS31T5/p1716811520298989?thread_ts=1716806208.703459&cid=C0477AS31T5
I will test in current ubuntu to make sure that it doesn't break anything

Tested on Ubuntu 24.04 LTS with x86_64
$ ./wave --version
1.4.0_9a91533
$ ./wave --conda-package bwa  --wave-endpoint https://wave.dev-tower.net
wave.dev-tower.net/wt/d2a49fb81970/wave/build/dev:bwa--11cd60ae67b658b3


Linear2D and Linear3D use more memory than Linear1D

🐛 Describe the bug
There is a demo code to evaluate the GPU memory when use Linear1D, Linear2D and Linear3D
import torch

import colossalai
import colossalai.nn as col_nn
import colossalai.nn.layer.parallel_1d._utils as col_op1d
import colossalai.nn.layer.parallel_2d._operation as col_op2d
import colossalai.nn.layer.parallel_3d._operation as col_op3d

from colossalai.core import global_context as gpc
from colossalai.context import ParallelMode
from colossalai.utils import get_current_device, print_rank_0

def print_current_memory(prefix):
    max_allocated = torch.cuda.max_memory_allocated() / 1024 / 1024
    max_reserved = torch.cuda.max_memory_reserved() / 1024 / 1024
    cur_allocated = torch.cuda.memory_allocated() / 1024 / 1024
    print_rank_0(f'{prefix}: gpu(cur-used): {cur_allocated:.2f} MB, gpu(max-used): {max_allocated:.2f} MB, '
                 f'gpu(reserved): {max_reserved:.2f} MB')

def evaluate_memory(mode='1d'):
    linear = col_nn.Linear(256, 1000000, bias=False)
    for i in range(3):
        x = torch.randn(64, 256, device=get_current_device())
        x.requires_grad = True
        if mode == '1d':
            x = col_op1d.gather_forward_split_backward(x, dim=0, parallel_mode=ParallelMode.PARALLEL_1D)
            x = col_op1d.reduce_grad(x, ParallelMode.PARALLEL_1D)
        elif mode == '2d':
            x = col_op2d.all_gather_tensor_2d(x, dim=0, parallel_mode=ParallelMode.PARALLEL_2D_ROW)
            x = torch.chunk(x, 2, dim=-1)[gpc.get_local_rank(ParallelMode.PARALLEL_2D_ROW)]
        elif mode == '3d':
            x = col_op3d.all_gather_tensor_3d(x, 0, ParallelMode.PARALLEL_3D_OUTPUT)
            x = torch.chunk(x, gpc.get_world_size(ParallelMode.PARALLEL_3D_OUTPUT),
                            dim=-1)[gpc.get_local_rank(ParallelMode.PARALLEL_3D_OUTPUT)]
        else:
            raise ValueError(f'illegal mode {mode}')
        out = linear(x)
        print_current_memory('before backward')
        out.sum().backward()
        print_current_memory('after backward')

if __name__ == '__main__':
    mode = '3d'  # change to '2d', '3d'
    gpus = 8  # change to 8 for '3d'
    CONFIG = dict(parallel=dict(
        data=1,
        pipeline=1,
        tensor=dict(size=gpus, mode=mode),
    ))
    colossalai.logging.disable_existing_loggers()
    colossalai.launch_from_torch(config=CONFIG)
    evaluate_memory(mode)

Compare Linear1D and Linear2D in 4-GPUS:

1D-4GPUs:
before backward: gpu(cur-used): 488.59 MB, gpu(max-used): 488.59 MB, gpu(reserved): 494.00 MB
after backward: gpu(cur-used): 732.98 MB, gpu(max-used): 977.13 MB, gpu(reserved): 986.00 MB
before backward: gpu(cur-used): 732.73 MB, gpu(max-used): 977.19 MB, gpu(reserved): 986.00 MB
after backward: gpu(cur-used): 732.98 MB, gpu(max-used): 1221.27 MB, gpu(reserved): 1232.00 MB
before backward: gpu(cur-used): 732.73 MB, gpu(max-used): 1221.27 MB, gpu(reserved): 1232.00 MB
after backward: gpu(cur-used): 732.98 MB, gpu(max-used): 1221.27 MB, gpu(reserved): 1234.00 MB

2D-4GPUs:
before backward: gpu(cur-used): 488.47 MB, gpu(max-used): 976.88 MB, gpu(reserved): 986.00 MB
after backward: gpu(cur-used): 732.67 MB, gpu(max-used): 1465.22 MB, gpu(reserved): 1970.00 MB
before backward: gpu(cur-used): 732.61 MB, gpu(max-used): 1465.28 MB, gpu(reserved): 1970.00 MB
after backward: gpu(cur-used): 732.67 MB, gpu(max-used): 1709.36 MB, gpu(reserved): 2708.00 MB
before backward: gpu(cur-used): 732.61 MB, gpu(max-used): 1709.36 MB, gpu(reserved): 2954.00 MB
after backward: gpu(cur-used): 732.67 MB, gpu(max-used): 1709.36 MB, gpu(reserved): 3692.00 MB

Compare Linear1D and Linear3D in 8-GPUS

1D-8GPUs
before backward: gpu(cur-used): 366.77 MB, gpu(max-used): 366.77 MB, gpu(reserved): 372.00 MB
after backward: gpu(cur-used): 489.34 MB, gpu(max-used): 733.49 MB, gpu(reserved): 742.00 MB
before backward: gpu(cur-used): 488.84 MB, gpu(max-used): 733.55 MB, gpu(reserved): 744.00 MB
after backward: gpu(cur-used): 489.34 MB, gpu(max-used): 855.56 MB, gpu(reserved): 990.00 MB
before backward: gpu(cur-used): 488.84 MB, gpu(max-used): 855.56 MB, gpu(reserved): 990.00 MB
after backward: gpu(cur-used): 489.34 MB, gpu(max-used): 855.56 MB, gpu(reserved): 992.00 MB

3D-8GPUs
before backward: gpu(cur-used): 610.66 MB, gpu(max-used): 1587.23 MB, gpu(reserved): 1722.00 MB
after backward: gpu(cur-used): 488.53 MB, gpu(max-used): 1953.50 MB, gpu(reserved): 3688.00 MB
before backward: gpu(cur-used): 732.73 MB, gpu(max-used): 1953.56 MB, gpu(reserved): 5284.00 MB
after backward: gpu(cur-used): 488.53 MB, gpu(max-used): 2075.57 MB, gpu(reserved): 7376.00 MB
before backward: gpu(cur-used): 732.73 MB, gpu(max-used): 2075.57 MB, gpu(reserved): 8972.00 MB
after backward: gpu(cur-used): 488.53 MB, gpu(max-used): 2075.57 MB, gpu(reserved): 11062.00 MB

Environment
PyTorch version：1.8.1
Colossal version：0.1.0

Hi, can you let know how many GPUs are you using?

Linear1D vs Linear2D：use 4GPUs
Linear1D vs Linear3D：use 8GPUs

Could you please also print the shapes of x between preprocessing (those gatherings and chunkings) and computing linear_1? This may help us know exactly how much data is processed by each worker.

我暂时采用中文进行回复了（沟通后后续可以改成英文）
说明：官方例子是认为每张卡上都拥有全部的数据，此处是预先假设数据Data Parallel在不同卡上
设定：每块GPU上面都有一个64x256 (batch-size x dim) 的输入，针对3种不同Linear情况各自进行下述操作，以保证最后的输出是等价的（上述的gather和chunk操作都是为了保证最后输出是一致的）
4GPUs情况下Linear1D vs Linear2D：此时总的数据大小为（(64*4)x256）
- Linear1D对weight进行拆分，并未对input进行拆分，因此需要先gather所有数据，每块卡上的输入变为 (64*4)x256
- Linear2D对weight和input进行了四宫格拆分，因此需要只需将两张卡上数据收集，然后按照dim进行砍半，此时每张卡上的理论输入是 (64*2)x128
8GPUs的情况类似~

Suppose the complete input shape is [64, 256], please try the following ways to get input tensor for each worker
1d:
    x = torch.randn(64, 256, device=get_current_device())
    src = gpc.get_ranks_in_group(ParallelMode.TENSOR)[0]
    torch.distributed.broadcast(x, src, group=gpc.get_group(ParallelMode.TENSOR))

2d:
    x = torch.randn(64, 256, device=get_current_device())
    src = gpc.get_ranks_in_group(ParallelMode.TENSOR)[0]
    torch.distributed.broadcast(x, src, group=gpc.get_group(ParallelMode.TENSOR))
    x = col_op2d.split_tensor_2d(x)
    x = torch.chunk(x, gpc.get_world_size(ParallelMode.PARALLEL_2D_ROW), dim=-1)
    x = x[gpc.get_local_rank(ParallelMode.PARALLEL_2D_ROW)].contiguous()

3d:
    x = torch.randn(64, 256, device=get_current_device())
    src = gpc.get_ranks_in_group(ParallelMode.TENSOR)[0]
    torch.distributed.broadcast(x, src, group=gpc.get_group(ParallelMode.TENSOR))
    x = col_op3d.split_batch_3d(x)
    x = col_op3d.split_tensor_3d(x, -1, ParallelMode.PARALLEL_3D_OUTPUT)

BTW, please reset the memory statistics before computing like
    x = ...
    torch.cuda.reset_peak_memory_stats(gpc.get_global_rank())
    out = linear(x)

Also, please share the results with us after applying the changes above. Thank you!

after applying the changes above, the results as follows (add torch.cuda.reset_peak_memory_stats(gpc.get_global_rank()) before print memory information):
4GPUs:  Linear1D vs Linear2D
1D-4GPUs:
before backward: gpu(cur-used): 306.20 MB, gpu(max-used): 306.20 MB, gpu(reserved): 310.00 MB
after backward: gpu(cur-used): 550.34 MB, gpu(max-used): 550.34 MB, gpu(reserved): 618.00 MB
before backward: gpu(cur-used): 550.34 MB, gpu(max-used): 550.34 MB, gpu(reserved): 618.00 MB
after backward: gpu(cur-used): 550.34 MB, gpu(max-used): 550.34 MB, gpu(reserved): 864.00 MB
before backward: gpu(cur-used): 550.34 MB, gpu(max-used): 550.34 MB, gpu(reserved): 864.00 MB
after backward: gpu(cur-used): 550.34 MB, gpu(max-used): 550.34 MB, gpu(reserved): 864.00 MB

2D-4GPUs:
before backward: gpu(cur-used): 306.16 MB, gpu(max-used): 306.16 MB, gpu(reserved): 802.00 MB
after backward: gpu(cur-used): 550.30 MB, gpu(max-used): 550.30 MB, gpu(reserved): 1602.00 MB
before backward: gpu(cur-used): 550.30 MB, gpu(max-used): 550.30 MB, gpu(reserved): 2094.00 MB
after backward: gpu(cur-used): 550.30 MB, gpu(max-used): 550.30 MB, gpu(reserved): 3078.00 MB
before backward: gpu(cur-used): 550.30 MB, gpu(max-used): 550.30 MB, gpu(reserved): 3078.00 MB
after backward: gpu(cur-used): 550.30 MB, gpu(max-used): 550.30 MB, gpu(reserved): 3816.00 MB

8GPUs: linear1D vs Linear3D
1D-8GPUs
before backward: gpu(cur-used): 152.65 MB, gpu(max-used): 152.65 MB, gpu(reserved): 158.00 MB
after backward: gpu(cur-used): 274.72 MB, gpu(max-used): 274.72 MB, gpu(reserved): 314.00 MB
before backward: gpu(cur-used): 274.72 MB, gpu(max-used): 274.72 MB, gpu(reserved): 314.00 MB
after backward: gpu(cur-used): 274.72 MB, gpu(max-used): 274.72 MB, gpu(reserved): 438.00 MB
before backward: gpu(cur-used): 274.72 MB, gpu(max-used): 274.72 MB, gpu(reserved): 438.00 MB
after backward: gpu(cur-used): 274.72 MB, gpu(max-used): 274.72 MB, gpu(reserved): 438.00 MB

3D-8GPUs
before backward: gpu(cur-used): 396.75 MB, gpu(max-used): 396.75 MB, gpu(reserved): 804.00 MB
after backward: gpu(cur-used): 274.67 MB, gpu(max-used): 274.67 MB, gpu(reserved): 1544.00 MB
before backward: gpu(cur-used): 518.82 MB, gpu(max-used): 518.82 MB, gpu(reserved): 1914.00 MB
after backward: gpu(cur-used): 274.67 MB, gpu(max-used): 274.67 MB, gpu(reserved): 2160.00 MB
before backward: gpu(cur-used): 518.82 MB, gpu(max-used): 518.82 MB, gpu(reserved): 2222.00 MB
after backward: gpu(cur-used): 274.67 MB, gpu(max-used): 274.67 MB, gpu(reserved): 3086.00 MB

Hi, @Ice-cool . I think the new results basically make sense. Since the weight is much larger than input, we can simply consider the memory usage of the weight tensor.
On 4 GPUs, 2D and 1D both consume 1/4 of the complete weight tensor, so the results are very close.
On 8 GPUs, 3D and 1D both store 1/8 partitions of weight (cur_used). The peak memory usage of 3D is 1/4 of weight, while 1D is 1/8 (max-used).

thank you for your reply, i am still curious about why the max_memory_reserved in Linear2D and Linear3D is much larger than Linear1D.

Hi, in fact, I found this issue as well. Usually, a large gap between allocated memory and cached memory suggests the presence of memory fragmentation. I am investigating deeper into this issue. I will update you if I reach any conclusion :)

I agree with you. However, here is a special case in face recognition, there is a large linear layer (dim x num_classes, the num_classes is very large), the largest batch-size in Linear2D is smaller than Linear1D in same setting.


Chapter 4 on(Request)Close callback of Notifier.js in the book text

Looks like book suggest to use some outdated onRequestClose callback, which causes error.
BTW 4-end repo uses onClose instead, and it works fine.

@YuriGor You are right. We previously used onRequestClose from Material-UI, but it was changed to onClose (https://github.com/mui-org/material-ui/issues/9432). All of the book code uses onClose. We just needed to update the book text.
I made sure there is no instance of onRequestClose in the book text.


Trading Review Feedback

Hello Augur Community,
We are currently in the process of updating the information seen on the trading page when you click on review for a trade you intend to make. Currently that looks something like this:

We are looking to improve the information shown here in an attempt to make it more clear to users what they stand to gain/lose for the trade. An early mock up of an improved view is pictured here:

In this above case, there are 2 orders on the book, one for 1 share at .4 and 1 for 1 share at .5. Assuming the orderbook is the same by the time this trade is processed the est cost of that trade would be .9 ETH, however the maximum cost of this trade is 1 ETH because if that .4 order is gone by the time you make your trade, it's going to cost you 1 ETH to either take 2 orders at .5 or place an order to sell 2 shares at .5. You can see these values reflected in the potential profit and loss here, you stand to lose a maximum of 1 ETH (if you had to spend 1 ETH to place an order for 2 shares at .5) but you stand to gain 1 ETH in this case as well (2 shares purchased for .5 Each, if you win, would be worth 1 ETH each, you paid 1 ETH for them, you get back 2 ETH, thats a gain of 1 ETH - fees).
Our goal is to provide a clear understanding of how the trade might effect the user.
Here are some questions for the community:

Is this information clear to you?
Would you want to see other information?
Do you have a suggestion for how you would like to see this information laid out?

Hi @JohnDanz
I was initially confused looking over UI2 because the estimated cost didn't make sense with the information I had available.
After reading your description I do understand what's going on here.
Due to this initial confusion, if both Estimated and Max costs are going to be included I think they both needs a little "?" blurb to help users understand what the estimate is based off of.
To play devils advocate with regards to Estimated & Max costs:

What happens to the cost & estimate if you are closing a position or reversing a position?
Possibly only the Max cost is needed. The estimate may be too high or too low due to moving market conditions. The final cost should be made easily findable somewhere after the fill details are known.
Adding an additional number to an already highly numerate view, may overload average users.
Estimated cost provides conflicting numbers vs Potential Profit & Loss
My verdict would be to stick to the concrete value of Max Cost. Especially since this is a distributed application where we can't know for sure what the market conditions will be when the order is filled.

Some other points of observation:

With respect to potential profit and potential loss, isn't the potential loss always 100%? And therefore only the potential profit is needed?
Potential percent profit works great for me, but others might want more of an odds type of value. I'm not sure what is typical on other betting platforms.
I think it might be more intuitive to have the confirm buy and sell buttons in green and red.

Thank you for seeking input, and feel free to disregard portions of my comments that are out of scope or not popular opinion. I'm excited to see how things shape up.

@page1 thanks for the feed back! These are some great points!
to answer your questions:
What happens to the cost & estimate if you are closing a position or reversing a position?
the est cost will still try to show you best case scenario given current book.
Max cost would show the maximum amount of ETH and shares dumped to make that trade if the book isn't the same/worse when your transaction gets processed.
With respect to potential profit and potential loss, isn't the potential loss always 100%? And therefore only the potential profit is needed?
For the most part yes, but if you had Shares and you are closing your position the potential loss is 0 and 0% because you only stand to gain from turning in your shares/trading away shares. The trade itself is "cashing out" basically so you can't "lose" ETH if you plan to turn in your shares for ETH. So it makes sense to just show them both for clarity reasons.

@JohnDanz Some more food for thought
Example scenario starting with empty market:

Place order below market for 1 share at 25% - Max cost = 0.25 eth
Other party places order to open position by selling 1 share at 25% - Max cost = 0.75 eth
Place order above market to sell 1 share at 75% - Estimated proceeds = 0.75 eth, Max cost = 0.25 eth
Place order above market to sell 1 share at 50% - Estimated proceeds = 0.5 eth, Max cost = 0.5 eth
Other party places order to open position by buying 2 shares at 75% - Estimated cost = 1.25 eth, Max cost = 1.5 eth

In this scenario, orders 1, 3, 4 are placed by me, and orders 2 & 5 are placed by 2 separate other parties.
Observations:

Avoid the confusing use of shares in the estimated/max cost/proceeds verbiage. Shares are a unit of volume to be bought and sold, never "costed" or "proceeded" (i'm sure there is a better word for what I'm implying)
Estimated Proceeds denotes the expectation that shares will be sold and free up funds to place new bets
Max "cost" is always a "cost" and always denoted in eth because you might be opening a new position. (Sync issues, or placing a second order that closes the position prior to the first order... making the first order open a new position)

Avoid the confusing use of shares in the estimated/max cost/proceeds verbiage. Shares are a unit of volume to be bought and sold, never "costed" or "proceeded" (i'm sure there is a better word for what I'm implying)
Estimated Proceeds denotes the expectation that shares will be sold and free up funds to place new bets
Max "cost" is always a "cost" and always denoted in eth because you might be opening a new position. (Sync issues, or placing a second order that closes the position prior to the first order... making the first order open a new position)
I personally totally  agree with this approach - from a trading standpoint, this is how I would expect to see.....Playing Devil's advocate - on blockchain etherscan doesn't always show the transaction amount to match this and depending on the users position the transaction amount may only display the partial value because of shares owned.


Add group replacement injecting

This feature might feel spuerfluous to some, because the result can be achieved with look aheads and look beahinds.
When replacing http://(/w+).com for http://google.com you could inject group 1 with 'xd', that would result in 'http://xd.com'.

It could look like this
pattern('site:(\w+):(\d+)')->replace('site:google:80')->all()->callback(function (ReplaceMatch $m) {
    return $m->group(1)->inject('new');
});

result:
site:new:80

What about injecting multiple groups?

Groups don't have to be matched, to allow injecting in them


Web Pattern Navigation Profiling for Online Marketing Campaigns

In today’s digital era, it is merely impossible for a majority of the population to perform their day-to-day activities without using the internet. This internet usage has opened up a lot of possibilities in product promotion and also in offering services. But with billions of people surfing the internet, it is important to target the right customer for your product promotions or to provide a solution based on their needs. The best strategy to understand the users’ behavior is by analyzing their online-navigation pattern. With Web-mining techniques, you can extract quality information related to the users’ interest and their needs.
This AI-based project aims to provide quality data through web pattern navigation profiling to tailor efficient online marketing campaigns.

@Niketkumardheeryan please assign this issue to me

@paritoshtripathi935 go for it.

thanks @Rutikab12

I am interested in working on this AI-based project focused on web pattern navigation profiling to enhance online marketing campaigns. Could you please assign this issue to me?
I am a GSSOC'24 contributer and I have previously worked on project like this , have a look https://docs.google.com/presentation/d/1XqTt392cLF-ALmtvrKscFf3YQJMbfbyu2TyoNOkDr1w/edit#slide=id.g2704694f159_0_471

I will do it by collecting data using web scrapper tool like beautifulsoup and integrate the Google Analytics API with Python to extract this data.
then I will preprocess it and extract relevant features.
I will apply ml algo like clustering , classification and SPMF etc;
then I am gonna use tensorflow to tarin the model as i am a tensorflow developer.
at the end deploy using flask.


Notify deletion of Kubelet Bootstrap Token

Description:
Kubeadm deletes the file /etc/kubernetes/bootstrap-kubelet.conf as per https://github.com/kubernetes/kubernetes/pull/80676.
When checking out the Kubelet init arg --bootstrap-kubeconfig the highlighted file no longer exists in the file system which can cause some users confusion. Had to find the aforementioned PR to figure out it has been deleted.

Thanks @chirangaalwis .
/approve


Improve API docs

There's a typo in one of the parameters

Thank you! Maybe I should learn to spell before making jokes on the internet 😅

No fun allowed!


Added Book Entries

Added some of the latest Books from https://djangobook.com/ Maybe a link to https://djangobook.com/ would also fit on top of the section?
I did not filled out the form below, as I did not submit a project only some books which were not listet but I found on https://djangobook.com/
Hope this is ok.
Kind regards
Harald Lux

name: Add a new project
about: Suggest a new Django project for the Awesome Django list
title: "[NEW] Project Name"
Project Information

Project Name:

Project URL:

Description:
(Please provide a brief description of the project.)

Criteria
Please answer the following questions about the project you are submitting. This will help us evaluate if the project should be included in the Awesome Django list.
Note: If your project is only a few months old or has under 50 to 100 stars on GitHub, it may NOT meet the criteria for inclusion in the Awesome Django list. We recommend that you promote your project more and then consider a submission at a later date when it has gained more visibility and community support.

Is the project new?

[ ] Yes
[ ] No

How long has the project been maintained?
(Please provide an approximate duration in months or years.)

How many releases has it had if it's a library or package?
(Please provide the number of releases, or link to the project's release history.)

Are you the author or are you submitting the project on behalf of a company?

[ ] I am the author
[ ] I am submitting on behalf of a company
[ ] Other (please specify)

What makes it awesome?
(Please provide a brief explanation of why you believe this project is a valuable addition to the Awesome Django list.)

Additional Information
Please provide any additional information you believe is relevant to the project or its evaluation for inclusion in the Awesome Django list. This might include information about the project's documentation, test coverage, community support, or any unique features that set it apart from other Django projects.
(Please provide any relevant additional information here.)
Thank you for your submission!

Thanks for the PR @010011000101010101011000 .


Accept token authentication only?

In some parts of my application ( Eg.: API ) I want to accept only token authentication strategy.
But when i set "before_action: authenticate_user!" and an invalid auth token is provided, it will also check session to verify if user is already logged in.
Is there a way to disable this behavior and force token authentication?

https://github.com/baschtl/devise-token_authenticatable#troubleshooting

Sorry, maybe I didn't explain it well. I already have:
config.skip_session_storage = [:http_auth, :token_auth]

In my devise.rb initializer.
When a non logged-in user use a token, a session isn't created. This is working fine.
What I'm asking is: how can I force token authentication even when an user signed in before with his username/password using the login form that Devise provides?

Could you just log the user out in this case and use the token for the next login?


App crashes when load many images from firestore - swift

New Issue Checklist

[ yes] I have read and understood the CONTRIBUTING guide
[ ] I have read the Documentation
[yes ] I have searched for a similar issue in the project and found none

Info
Value

Platform Name
ios

Platform Version
10.13.0 / 11.0

SDWebImage Version
4.2.0

Integration Method
cocoapods

Xcode Version
Xcode 9

Repro rate
all the time (100%)

Repro with our demo prj
It happens with my demo project

Issue
I was trying to load imageUrl from firestore and load it to my application. Initially i tried to load around 4 or 10 images and it works fine. But when i want to load around 20 images and my app crashes and it also shows error in my console states that Message from debugger: Terminated due to memory issue .

@SamboVisal thanks for taking the time do describe the issue. We had similar issues in the past, usually because the iOS system cannot handle decompressing of many images at once, due to the memory spike that causes an out-of-memory crash. You can look at similar issues here: https://github.com/rs/SDWebImage/search?q=Terminated+due+to+memory+issue&type=Issues
One thing you can try is:
[[SDImageCache sharedImageCache] setShouldDecompressImages:NO];
[[SDWebImageDownloader sharedDownloader] setShouldDecompressImages:NO];

Also check out these points about reducing the memory footprint: https://github.com/rs/SDWebImage/issues/2252#issuecomment-375891085
One thing I recommend is just running the app through instruments and inspecting the memory.

Now i am having another question. For example, images are downloading and suddenly internet has been disconnected and image will not loaded anymore. But when internet is back i want it to continue to download from it stopped. How to solve this? Thank you

Hi guys,
I am having a very similar issue (using GIFs with v5.0) but can't get hold of the of the shouldDecompress method/ variable in Swift (went through the doc but couldn't find it)...
Do you mind letting me know how to set off the decompression in Swift? I'll try to see if this works before opening a new issues (if necessary).
Thanks!
Francois

@fschaus Hi. The SDWebImage 5.x, change that global control level shouldDecompress, to the SDWebImageOptions level, which allow you to control each image request instead of a global one (Because some small images, it's no need to trun off that force decode feature).
See the migration guide here : 5.0-Migration-guide
You should now use like this to disable the force decode feature:
imageView.sd_setImage(with: url, placeholderImage: nil, options: [.avoidDecodeImage])

Thanks for the input, I should have looked in the migration guide.
So I profiled a bunch of tests on my app to get to the bottom of this and see really weird behavior. See the link below for the details:
• My debug version runs as expected - once loaded my app allocates ~70Mb in memory (which is in line with what I saw previously when I was using KF). After a bit of usage (message loading + images) it goes up to 120-13Mb, rarely above (maxCache works) and flushes itself once the app enters background.
• My release/ prod scheme however shots straight to 160Mb at load, quickly goes to 300Mb (or more if I keep loading but then more often than not crashes) which doesn't respect my cache limit. If I don't turn off decoding the memory doesn't get flushed once the app enters the background (it decoding is off but still retains more than expected at 120-140Mb vs. 20-30Mb w/ my debug scheme).
• I use 5.0 beta 2, with a mix of fixed images and gifs (the initial loading screens only have fixed images). I also tested with UIImageView and AnimatedImgView but that makes no difference
• I also used Kingfisher to compare and its behavior with my prod release was similar to SDWI with my debug scheme. In all cases I use the "default" manager settings (except decode that I toggle on/ off for one of my use case).
My detailed tests are here: https://drive.google.com/open?id=1HIRHttQYn1NIJr0Omb9BG2FLOeWa8E_9
I am not deep enough in this library nor in iOS image frameworks to understand how they differ between the debug and the release scheme but I feel like the culprit is likely there (given the vastly different behavior observed).
I really like SDWebImg as it is the only library with a strong gif manager which allows me to have a single cache/ image processor for PGN & Gifs (I had a weird convoluted kingfisher + FLAnimatedImg setup before) and like how more flexbile SDWebImg is (e.g., add fade, progress bar, etc.) so really hope we can get to the bottom of this together J
Thanks!
Francois

@fschaus thanks for the detailed write-up, we will look into this issue in detail.
For now, I think it's a good idea to move your scenario to a separate issue, to keep the conversation clean. I don't think it's the exact same issue as the one in the description.

Moved @fschaus conversation to #2448

@SamboVisal can we close this issue now? Did you get what you needed?


Fix default scalaBinaryVersion for Dotty

Dotty is versioned as 0.*, but CrossVersionUtil#binaryScalaVersion
will return the full version instead of just major.minor for all
compiler versions < 2.10, add a special case for Dotty to avoid this.

oops, miss clicked "request changes".

Another spurious test failure, unrelated to the PR:
[info] [error] (*:ivyConfiguration) Could not create file /tmp/sbt_3d9e72fd/info/target/streams/$global/ivyConfiguration/$global/streams/outjava.io.IOException: No such file or directory

[info] [error] Total time: 0 s, completed Apr 28, 2017 1:05:03 PM

[error] x dependency-management / info

[error]    {line 4}  Command failed: clean failed


fix(DDI-938): correct usage of dropdown's aria-selected attribute

:tada: This PR is included in version 4.0.0-alpha.57 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-alpha.104 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-alpha.17 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.0.0-alpha.6 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add Ignition simulation plugins and demos

This (large!) PR introduces support for Ignition Gazebo in RMF demos, it includes:

Updates to map generation CMakeLists to generate Ignition maps as well.
Ignition gazebo launch files, they are the same as the official launch files but have a _ign suffix (i.e. office.launch.xml becomes office_ign.launch.xml).
Plugins refactorization: All the rmf_demos_plugins have been refactored in common library + ignition / gazebo wrapper, the same way it has been done in traffic_editor.
A few additional dependencies to be built from source, including ros_ign, used for synchronizing Ignition and ROS clock, as well as menge_core used for crowd simulation (no crowd simulation demos have been generated yet).
Updated documentation on how to install Ignition from either binaries or source.

For now all the simulations run with the DART physics engine. Support for the higher performance TPE is in progress, there is still a few features pending in the core libraries.
Testing any of the environments should be as simple as building the new packages in the yaml file, running sudo apt install ignition-dome and appending use_ignition:=1 when launching demos through the ros2 launch.

The linking problem related to rmf_plugin_utils was solved after another clean build, so that's great. Still facing issues with the airport world in gazebo. But I suspect it might be due to my workspace setup.
On a side note, since we have replaced the robot placeholders with robot models in the airport world, we can go ahead and delete the /demos/scripts/ folder

Went through a clean build, yet still facing issue on crowdsim plugin:
[gzserver-10] gzserver: symbol lookup error: /home/youliang/rmf_ws/install/building_gazebo_plugins/lib/libcrowd_simulator.so: undefined symbol: _ZNK15crowd_simulator17CrowdSimInterface6loggerEv
[ERROR] [gzserver-10]: process has died [pid 25542, exit code 127, cmd 'gzserver --verbose -s libgazebo_ros_init.so -s libgazebo_ros_factory.so /home/youliang/rmf_ws/install/cag_maps/share/cag_maps/maps/terminal3/terminal3.world'].

Went through a clean build, yet still facing issue on crowdsim plugin:
[gzserver-10] gzserver: symbol lookup error: /home/youliang/rmf_ws/install/building_gazebo_plugins/lib/libcrowd_simulator.so: undefined symbol: _ZNK15crowd_simulator17CrowdSimInterface6loggerEv
[ERROR] [gzserver-10]: process has died [pid 25542, exit code 127, cmd 'gzserver --verbose -s libgazebo_ros_init.so -s libgazebo_ros_factory.so /home/youliang/rmf_ws/install/cag_maps/share/cag_maps/maps/terminal3/terminal3.world'].

Do you have the latest traffic editor master?

@luca-della-vedova  yes, latest traffic_editor. Btw, I shouldnt mention this issue here as it is relevant to traffic-editor

@luca-della-vedova yes, latest traffic_editor. Btw, I shouldnt mention this issue here as it is relevant to traffic-editor

It shouldn't be an issue but did you include menge in your workspace?

Did another clean build after pulling master on traffic_editor.

Airport world crashes during launch with error

[gzserver-9] [libprotobuf FATAL google/protobuf/descriptor.cc:1358] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
[gzserver-9] terminate called after throwing an instance of 'google::protobuf::FatalException'
[gzserver-9]   what():  CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
[gzclient-10] [INFO] [1604502616.812901911] [gazebo_ros_node]: ROS was initialized without arguments.
[ERROR] [gzserver-9]: process has died [pid 86668, exit code -6, cmd 'gzserver --verbose -s libgazebo_ros_init.so -s libgazebo_ros_factory.so /home/yadu/ws_rmf_demos/install/rmf_demo_maps/share/rmf_demo_maps/maps/airport_terminal/airport_terminal.world'].

All the ignition worlds crash during launch with error

[ign-9] ign gazebo server: symbol lookup error: /home/yadu/ws_rmf_demos/install/building_ignition_plugins/lib/libslotcar.so: undefined symbol: _ZN19building_sim_common13SlotcarCommon14set_model_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

OK!

Airport world crashes during launch with error

[gzserver-9] [libprotobuf FATAL google/protobuf/descriptor.cc:1358] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
[gzserver-9] terminate called after throwing an instance of 'google::protobuf::FatalException'
[gzserver-9]   what():  CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
[gzclient-10] [INFO] [1604502616.812901911] [gazebo_ros_node]: ROS was initialized without arguments.
[ERROR] [gzserver-9]: process has died [pid 86668, exit code -6, cmd 'gzserver --verbose -s libgazebo_ros_init.so -s libgazebo_ros_factory.so /home/yadu/ws_rmf_demos/install/rmf_demo_maps/share/rmf_demo_maps/maps/airport_terminal/airport_terminal.world'].

"Fixed" in the last commit. I had to comment out the ignition caddy plugin which means the caddy in ignition is not working but at least it won't break the existing simulation, we can figure out how to load its plugin in a future PR.

All the ignition worlds crash during launch with error

[ign-9] ign gazebo server: symbol lookup error: /home/yadu/ws_rmf_demos/install/building_ignition_plugins/lib/libslotcar.so: undefined symbol: _ZN19building_sim_common13SlotcarCommon14set_model_nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

This should be fixed in the traffic_editor PR #262


Are A or W APIs recommended?

Hello,
I am excited about the UTF-8 support. The page mentions "Until recently, Windows has emphasized "Unicode" -W variants over -A APIs." Does this mean the ANSI functions are now preferred over the WCHAR ones? For a new application wanting to support multiple languages, which of calling the UTF-8 APIs or the UTF-16LE ones is recommended? Would it be possible to update the page with the information?
Thank you!

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

ID: 77a994ff-cdad-3cbc-11c3-626285d3cb7e
Version Independent ID: 6fcd9265-4bfc-657a-9177-7c958f1b4b06
Content: Use the Windows UTF-8 code page - Windows apps
Content Source: hub/apps/design/globalizing/use-utf8-code-page.md
Product: uwp
Technology: design
GitHub Login: @Karl-Bridge-Microsoft
Microsoft Alias: kbridge

While UTF-8 now works, and could be convenient for x-platform code, WIndows is still at its base a 16-bit Unicode system and using A APIs always involves a runtime conversion (small but nonzero performance impact). So, depends on your codebase and specific app requirements.  UTF-8 is still relatively new, and there are likely interesting edge cases and potential interop issues that could be problematic. (e.g. low-level file system edge cases with nonconforming Unicode sequences.)

Another thing to note is the A variants are not necessarily UTF-8 - they are whatever code page set on the system or manifested for your application. Converting UTF-8 to UTF-16 yourself and then calling the W variants is more reliable if you are not aware of the settings.


Pass UrlFile object to Provider.checkFileUrl instead of string

Changes proposed in this PR:

Pass UrlFile object to Provider.checkFileUrl instead of a string

Depends on https://github.com/oceanprotocol/ocean.js/pull/1627
Reasoning:
This is an incremental step towards supporting other file storage types like Arweave, Filecoin, etc...

Hello, @kremalicious Thanks for taking a look at this and approving the CI checks to run.  I believe the CI checks are failing because this PR depends on https://github.com/oceanprotocol/ocean.js/pull/1627 which has not yet been merged/released.

Hello @alexcos20 @kremalicious @mihaisc @bogdanfazakas
This PR depends on https://github.com/oceanprotocol/ocean.js/pull/1627, but other than that, I think it is ready for review.

Misses one more usage of that file check:
https://github.com/oceanprotocol/market/blob/83d83447b6f241740d3fdd1c3b78f99a01b3f5c9/src/components/Asset/AssetActions/index.tsx#L44-L82

ocean.js v2.3.0 has the changes required for this PR

Misses one more usage of that file check, be sure to handle this for publish preview & published asset which is what the condition for fileInfoResponse in here is for:
https://github.com/oceanprotocol/market/blob/83d83447b6f241740d3fdd1c3b78f99a01b3f5c9/src/components/Asset/AssetActions/index.tsx#L44-L82

I looked at this briefly, but I don't know how to fix it.

This needs merge or rebase against main and then continue. No need to update ocean.js in here then.

I looked at this briefly, but I don't know how to fix it.

ok, what did you try to solve this? What exactly is unclear?

closing as abandoned, and #1765 is picking things up from here.


Normalized leaf diff

Coverage: 99.669% (+0.02%) from 99.65% when pulling dc1f83b7cf73e61ad2f0e48329d360f25c8a1d79 on normalized-leaf-diff into af6d574acdbafb5f389b5e44e9a1a639bfff980f on master.

Codecov Report

Merging #170 (dc1f83b) into master (af6d574) will not change coverage.
The diff coverage is 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff            @@
##            master      #170   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           10        10
  Lines          236       244    +8
  Branches        83        89    +6
=========================================
+ Hits           236       244    +8

Impacted Files
Coverage Δ

src/lib/domain.ts
100.00% <100.00%> (ø)

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


Save and be able to restore partition information, check if partitions are mounted before restore

Output of restic version
restic 0.12.1 compiled with go1.16.6 on linux/amd64
What should restic do differently? Which functionality do you think we should add?
I'd like to see restic save partition information during the backup and be able to write that information onto the disk it restores a backup to.
Additionally it would be great if restic could check if those partitions are mounted to make sure any data contained within them are written to the correct location.
What are you trying to do? What problem would this solve?
It would make bare metal recovery simpler if you could be sure that you have the partition information contained in the backup could optionally overwrite the partition information on the disk.
Since the data on the additional partitions was saved in the backup, it would be great if restic could check if the relevant partitions were mounted before attempting a restore. Right now the data on boot and efi partitions are saved as data in regular directories (/boot/ and /boot/efi/ respectively) instead of mounting the partitions and writing the data there.

Related to #3560. This feature would be very platform dependent. Just restoring the partition information is by far not enough, we'd have to run the OS specific tools to create new partitions and so on.


Improve branch coverage for PhoneNumberUtil::getLengthOfNationalDestinationCode

Current missing branch:

Requirements
If a PhoneNumber has an extension, as the comment states, it is cleared. This means that if this branch is covered, the same PhoneNumber with and without an extension should yield the same result.

After adding the test.


content of maps is not loading

facing wierdest issue
as you can see in below image

it is loading only maptype and its labels, full screen, marker, zooming control and its logo
and the version i am using
agm/core : 1.0.0-beta.3
angular cli : 6.0.3
node : 8.9.1

Please use the issue template and fill it in. It's presented for a reason -- and that reason is not to delete it and ignore it.
Feel free to open a new issue by following the steps from the issue template.


Arbitrary margin value proof of concept

Did I provide a test: YES
Do the tests pass: YES
Is this ready to merge: NO
I used what Adam did in #99 as inspiration for this PR.
I have updated the tests to include a proposed acceptance, though there is still more work to be done to add this support to the other utility classes. The test is definitely brittle.
Since this swaps out asLength for asValue, I'm guessing that might break something else in the framework, though the tests in this repo did not break. ¯\_(ツ)_/¯
I couldn't wrap my head around most of the source code, but I noticed in the asValue() helper function, that there is some special stuff going on for calc(). I wonder if all of the CSS functions could be supported using a similar method?
I also wonder if you can use asLength first, and if that returns undefined to then instead try and look for a supported list of arbitrary CSS functions? I know #102 mentions using var() and my example is clamp()
As a slight tangent, I think this would be super valuable to include, because of the utility of these arbitrary function values. Functions like clamp/min/max etc are extremely helpful for building custom one off design elements.
Great work on the JIT; Overall, it's awesome 🤘

Looks good, thanks @Daronspence!

Ah, just noticed you only updated mt (margin-top), I'll update the rest :)


Add backstage-grpc-playground plugin to marketplace

Add backstage-grpc-playground plugin
A modified version of BloomRPC for Backstage offers a GUI client to view and test gRPC APIs with ease
See project document

@Rugvip LGTY?

Congrats on your first PR merged @fr0stf0x! Happy to count you as a contributor.


Run lodestar e2e with validators over rest api

changed max validators per duty request to 64
changed external error json serialization to only include error messages since some errors have huge metadata and even circular references.

the unit test for toJson util function is failing


fix: ci

#5  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @GoodM4ven and the rest of your teammates on  Graphite


Somehow Powershell kernel can't find any cmdlet

I'm trying to make an extension for the .NET Interactive + Powershell Kernel. At this point i'm just trying to experiment, making a few tests. Looks like this:
    public OutTableTests()
    {
        var psKernel = new PowerShellKernel("powershell")
            .UseValueSharing();

        var csKernel = new CSharpKernel()
            .UseValueSharing()
            .UseWho();

        _kernel = new CompositeKernel
        {
            { psKernel, ["powershell"] },
            { csKernel, ["c#", "C#"] }
        };

        _kernel.DefaultKernelName = "powershell";

        //OutTableExtension.Load(_kernel);

        KernelEvents = _kernel.KernelEvents.ToSubscribedList();
    }

    public void Dispose()
    {
        _kernel.Dispose();
    }
    [Fact]
    public async Task BasicTest()
    {
        using var events = _kernel.KernelEvents.ToSubscribedList();

        //await _kernel.SendAsync(new SubmitCode("(Get-Process)[0] | Out-Table") );
        //var psModulePath = Environment.GetEnvironmentVariable(PSModulePathEnvName);

        await _kernel.SendAsync(new SubmitCode("$env:PSModulePath"));
        //await _kernel.FindKernelByName("powershell").SendAsync(new SubmitCode($"$env:PSModulePath = \"{psModulePath}\""));
        //await _kernel.SendAsync(new SubmitCode("Import-Module Microsoft.PowerShell.Management"));
        await _kernel.SendAsync(new SubmitCode("Get-ChildItem env:"));

        //await _kernel.FindKernelByName("powershell").SendAsync(new SubmitCode("dir env:"));
    }
}

However, somehow, after below is called,
await _kernel.SendAsync(new SubmitCode("Get-ChildItem env:"));

in the KernelEvents i see:

What do i do wrong?
Repo: https://github.com/eosfor/quickgraph-interactive/blob/experiments/OutTableExtension.Tests/OutTableTests.cs

If you add this reference in your extension project, does it work as expected?
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.4.3" />

This seem worked, i'll doublecheck and close the issue

Let's leave this open for the moment and document this. This is the second time I've seen someone hit this gotcha.


text.last-index-of implemented

https://github.com/objectionary/eo-strings/issues/43

@Graur as I remember, you also encountered a problem with tests falling only on Windows. Is it possible that there is a similar problem here?

@Graur as I remember, you also encountered a problem with tests falling only on Windows. Is it possible that there is a similar problem here?

@EugeneDar Yes, this is the same problem, I will fix it as soon as I can

@Graur please, have a look again

@yegor256 please, have a look

@rultor merge

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@yegor256 Done! FYI, the full log is here (took me 3min)


Code to download file from Google Drive

Need a python function that accepts a file link and downloads that file from Google drive. This module will be used to download the CNN model and users' meeting videos from drive.

Closed by #14


PR: Add git command for changing base branch to Contributing guide.

Fixes #4592

Looks good. I left a couple of minor comments, then I'll merge.


New version: ClimaCoreTempestRemap v0.3.6

Registering package: ClimaCoreTempestRemap
Repository: https://github.com/CliMA/ClimaCore.jl
Created by: @simonbyrne
Version: v0.3.6
Commit: ea5f32bbea02a216c47442194565bf348d8b25f8
Reviewed by: @simonbyrne
Reference: https://github.com/CliMA/ClimaCore.jl/commit/ea5f32bbea02a216c47442194565bf348d8b25f8#commitcomment-93097895
Description: CliMA model dycore

replaced by #75804


[QUESTION] duplicate snippet in fibonacciUntilNum.md + fibonacciCountUntilNum.md???

Hey all I'm just wondering what the difference is between fibonacciUntilNum.md + fibonacciCountUntilNum.md?
Looks like two different implementations with the same example code? Are they accomplishing the same thing and if so is one better?
Should one be deleted?
Thanks!

No fibonacciCountUntilNum gives you the number of fibonacci numbers till a given number.
And fibonacciUntilNum gives you the array of fibonacci numbers until num.

The example was wrong, I updated to resolve this. Thanks for the heads up!


[azure-core-tracing-opentelemetry-cpp] publish version 1.0.0-beta.2

Update vcpkg ports for Azure SDK release. This release may contain multiple ports.

Adding azure-core-tracing-opentelemetry to release
cc: @rickwinter, @ahsonkhan, @antkmsft, @vhvb1989, @gearama, @LarryOsterman

Adding azure-core to release
cc: @rickwinter, @ahsonkhan, @antkmsft, @vhvb1989, @gearama, @LarryOsterman

All features are tested successfully in the following triplet:

x86-windows
x64-widnows
x64-windows-static


[B11] Thaumcraft made all Vanilla Leaves opaque?

I noticed after I installed Thaumcraft that Vanilla Leaves and Spruce Leaves in my world were no longer transparent, I don't know if that's a coincidence, or some mod interaction problem.

Minecraft: 1.12.2
Forge: 2673
Thaumcraft: B11
Mods: list.txt

Not seeing this myself, and I'm even using OptiFine as well.  Looks like something else is doing it.

could it be because of the texture pack youre using

I'm getting this too with only Thaumcraft, Baubles, and Optifine in my mod list, with any custom resourcepack. Removing either TC or Optifine fixes it, or using vanilla textures with both. Getting rid of the leaf blockstates file also works.


Is it possible to use same change password algorithm as whatsminer tools?

Is your feature request related to a problem? Please describe.
To use commands on whatsminer you always have to use whatsminer tools to change default password
Is it possible to use the same protocol as they do with sending some TCP packages to port 8889?

Unless someone knows the type of encoding and schema they use on 8889, it's not possible.  8889 is used by the Whatsminer tool, and they are using something called the "super-user" account, which I don't have the information to access.
If someone has this I would love to implement it, as it is much more powerful than even the privileged API, even supporting SSH unlock, but I consider this to be a very well guarded secret on the part of MicroBT.


External links should open in new tabs

Investigate pandoc options for this, or consider sed as a last resort.

https://stackoverflow.com/a/48487675/6627273
but that looks like Overhead :tm: and I don't like it. If that's the pandoc solution, it may be time for sed.

Fixed in cb4fcd09aef3b9bd6365fa4c9c3160e80a9aaf5f


better email validation

I have added validation for email with a regex works with predicate.

Thank you @abdullahselek


Update to sqlalchemy 2.0 (and fix some other deprecation warnings)

Motivation for changes:
Getting ready for sqlachemy 2.0
Ended up finding other deprecated things unrelated to sqlalchemy as well
May merge this PR before we are fully sqlalchemy 2.0 ready, as I'm not sure how extensive those changes will end up being.
Detailed changes:

Remove old deprecated sqlalchemy behavior
Update sqlalchemy to 2.0
Remove other things that were causing deprecationwarnings while debugging

Would be great if people could back up their database then try this out. Seems like things are working, but I'm not sure we have 100% test coverage on everything necessary.

apscheduler needs a version >= 3.10.0 to fix incompatibility with sqlachemy 2.0 (cf agronholm/apscheduler#705)

Updated, thanks!


[chore] Support for Visibility in Content APIs

Notes for Reviewers
This PR adds  support for visibility filtering to

Content APIs (patterns and filters).
GraphQL Configuration Subscription
GraphQL Pattern/Filters Query

This PR fixes #
Signed commits

[ ] Yes, I signed my commits.

🚀 Preview for commit 18a8b25be9e59df1aeb8cb9f2a9fb3d1de08b3c3 at: https://65338c5c42df067e0a158e6c--meshery-docs-preview.netlify.app

🚀 Preview for commit<PHONE_NUMBER>59ca20acbc83e3e0852114a7fc807b at: https://65338df3598cac4c077894f8--meshery-docs-preview.netlify.app

🚀 Preview for commit 0d2c670ea29aa191afe4aa007b9dc8d160503278 at: https://65339724d9bdce033c8c9401--meshery-docs-preview.netlify.app

Thankyou @theBeginner86 .  for the events api we are using a array to pass multiple filters , can we use the same structure here , so we remain consistent and reuse the same functions and utils to parse and generate them .

Task linked: CU-85ztrgw1z Update API of Content Endpoints to support filtering

Task linked: CU-85ztrgw1z Update API of Content Endpoints to support filtering

Thankyou @theBeginner86 . for the events api we are using a array to pass multiple filters , can we use the same structure here , so we remain consistent and reuse the same functions and utils to parse and generate them .

I see you're referring to the actions, severity, and category parameters in v2/events. I can update the visibility parameter to work as an array. It's worth noting that the events API is the only place where we use an array to represent filters, while in other APIs, we use strings for filters. // @MUzairS15
An older comment from @leecalcote at https://github.com/layer5io/meshery-cloud/pull/1481#issuecomment-1718302045 for related discussions about query param requirement for filtering.
Nevertheless, I'll make the necessary updates to this PR. 👍

@aabidsofi19,
Updated 👍
Looks good?

🚀 Preview for commit 1d27e7d598be0f52c95e2af6ad3edd07a6a53d6b at: https://653524a4307ae26eaec8504c--meshery-docs-preview.netlify.app


issue 565 fixed - added placeholder property to contact form

What is the change?
Added placeholder property to contact form
Related issue?
close: #565
How was it tested?
Remove this line and tell us how the code was tested.
Checklist:
Before you create this PR, confirm all the requirements listed below by checking the checkboxes [x]:

[] Have you followed the Contribution Guidelines while contributing.
[] Have you checked there aren't other open Pull Requests for the same update/change?
[] Did you lint your code before making the Pull Request?
[] Have you made corresponding changes to the documentation?
[] Your submission doesn't break any existing feature.
[] Have you tested the code before submission?

Screenshots or Video:
Add a screenshot or demo video if appropriate.

Sir, I'm extremely sorry for the previous mistakes. Can you please review this PR.

Ok sir done. Can you please review it.


Amazon Fire TV widevine support in webview

Have you read the FAQ and checked for duplicate open issues?:
Yes
What version of Shaka Player are you using?:
Latest
Can you reproduce the issue with our latest release version?:
Yes
Can you reproduce the issue with the latest code from master?:
Yes
Are you using the demo app or your own custom app?:
Demo app
If custom app, can you reproduce the issue using our demo app?:
NA
What browser and OS are you using?:
Fire TV android Web View (firefox)
What are the manifest and license server URIs?:
What did you do?
Play widevine content
What did you expect to happen?
Not sure :)
What actually happened?
Shaka Error DRM.REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE ()
It looks like Amazon fire TV does not support Widevine in web view - per this https://forums.developer.amazon.com/questions/46188/will-drm-for-firetv-html5-webapps-be-available-in.html. This is from 2016 and the official documentation doesn't seem to say one way or another for web view.
Anyone had success playing Widevine on webview on Fire TV? I created a sample app with a web view pointing to the shaka demo app and i got DRM.REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE. Looks like the 2016 comment is still applicable - but looking for confirmation.

Hi,
To the best of our knowledge, the comment you reference is still applicable.

Turned out my sample webview app was missing PROTECTED_MEDIA permissions. Setting that fire tv is able to play shaka demo app DRM content.

How did you set it?

https://stackoverflow.com/questions/49187659/android-webview-drm-content-playback


Service UP then 502 after few minutes

Hi,
I use docker-compose and launch redmine + postgresql + nginx-proxy + SSL & let's encrypt
I configure those 3 services and use them with SSL.
Redmine is available in SSL (only) on 443 port.
Services run great, redmine is available, i can navigate, create projects, tickets etc. Few minutes later (10~20 min), when i came back, i have a 502 error.
Even trying to access to redmine from my server host which launch docker give me a 502 from browser, and Connexion refused from curl.
Ex:
$ curl https://<IP_ADDRESS>
curl: (7) Failed to connect to <IP_ADDRESS> port 443: Connection refused

After restarting redmine container, i can connect (for few minutes)
My docker-compose for redmine part:
version: 2

services:
  redmine-postgresql:
    image: sameersbn/postgresql:9.6-2
    container_name: redmine-postgresql
    environment:
    - DB_USER=redmine
    - DB_PASS=mypass
    - DB_NAME=redmine_production
    volumes:
    - /srv/docker/redmine/postgresql:/var/lib/postgresql

  redmine:
    image: sameersbn/redmine:3.4.2
    container_name: redmine
    hostname: my.domain
    depends_on:
    - redmine-postgresql
    expose:
      - 80
      - 443
    environment:
    - "VIRTUAL_HOST=my.domain"
    - "VIRTUAL_PROTO=https"
    - "VIRTUAL_PORT=443"
    - "LETSENCRYPT_HOST=my.domain"
    -<EMAIL_ADDRESS>
    - SSL_KEY_PATH=/home/redmine/data/certs/my.domain.key
    - SSL_CERTIFICATE_PATH=/home/redmine/data/certs/my.domain.crt

    - DB_ADAPTER=postgresql
    - DB_HOST=redmine-postgresql
    - DB_PORT=5432
    - DB_USER=redmine
    - DB_PASS=mypass
    - DB_NAME=redmine_production

    - REDMIN_PORT=443
    - REDMINE_HTTPS=true

    - REDMINE_SUDO_MODE_ENABLED=false
    - REDMINE_SUDO_MODE_TIMEOUT=15

    - REDMINE_CONCURRENT_UPLOADS=2

    volumes:
    - /srv/docker/redmine/redmine:/home/redmine/data
    - /srv/certs:/home/redmine/data/certs

any idea ?

Here is netstat result when redmine is (and is not) available:
tcp        0      0 <IP_ADDRESS>:443             <IP_ADDRESS>:*               LISTEN      249/nginx -g daemon
tcp        0      0 <IP_ADDRESS>:80              <IP_ADDRESS>:*               LISTEN      249/nginx -g daemon
tcp6       0      0 :::443                  :::*                    LISTEN      249/nginx -g daemon
tcp6       0      0 :::80                   :::*                    LISTEN      249/nginx -g daemon

When connection is refused, i don't even have logs in /var/log/redmine/nginx/redmine_access.log.
To resume, nginx listen port 80 and 443, i query both 80 and 443 which return connection refused calling from docker host, 502 error from browser. And no access logs in redmine/nginx.

What do the 'docker-compose logs' show?  I'm curious if the nginx server is
crashing for some reason and this would show up here.
I think these logs will also show up in the '/var/log/redmine/supervisor/*'
directory.
On Mon, Sep 4, 2017 at 8:46 AM, GoZOo<EMAIL_ADDRESS>wrote:

Here is netstat result when redmine is (and is not) available:
tcp        0      0 <IP_ADDRESS>:443             <IP_ADDRESS>:*               LISTEN      249/nginx -g daemon
tcp        0      0 <IP_ADDRESS>:80              <IP_ADDRESS>:*               LISTEN      249/nginx -g daemon
tcp6       0      0 :::443                  :::*                    LISTEN      249/nginx -g daemon
tcp6       0      0 :::80                   :::*                    LISTEN      249/nginx -g daemon
When connection is refused, i don't even have logs in
/var/log/redmine/nginx/redmine_access.log.
To resume, nginx listen port 80 and 443, i query both 80 and 443 which
return connection refused calling from docker host, 502 error from browser.
And no access logs in redmine/nginx.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sameersbn/docker-redmine/issues/303#issuecomment-326954793,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFWomUZHG7FNpEFzgp311UNAAiRyKUkQks5se_E5gaJpZM4PLoyI
.

--
Jonathan Cormier
Software Engineer
Voice:<PHONE_NUMBER> <%28315%29%20425-4045> x222
[image: Inline image 1]
http://www.CriticalLink.com http://www.criticallink.com/
6712 Brooklawn Parkway, Syracuse, NY 13211
https://www.linkedin.com/company/critical-link-llc
https://twitter.com/Critical_Link

Closed due to old age


Custom HTTP status codes invalid

I'm having problem when trying to use a custom status code: 419 with zend-http.
The error:
Fatal error: Uncaught exception 'Zend\Http\Exception\InvalidArgumentException' with message 'Invalid status code provided: "419"' in /home/jean/projects/clipp/Backend/vendor/zendframework/zend-http/src/Response.php:254
Stack trace:
#0 /home/jean/projects/clipp/Backend/module/Api/Module.php(96): Zend\Http\Response->setStatusCode(419)

I thought It would be better to enable the usage of custom status. Maybe through the activation of a parameter.

I thought It would be better to enable the usage of custom status. Maybe through the activation of a parameter.

Already possible, see method Zend\Http\Response::setCustomStatusCode.


Crimeflare DB Port Changed

Currently the script is broken because of a 404 to the crimeflare db. This can be fixed by simply updating the port number to the appropriate one on line 16 as below:
14     try:
 15         # From http://www.crimeflare.us/zippy.html
 16         url = 'http://crimeflare.net:83/domains/ipout.zip'
 17         file_name = url.split('/')[-1]
 18         u = urllib2.urlopen(url)
 19         f = open(file_name, 'wb')
 20         meta = u.info()
 21         file_size = int(meta.getheaders("Content-Length")[0])
 22         print "[+] Downloading: %s Bytes: %s" % (file_name, file_size)

Fixed in https://github.com/nethunteros/punter/commit/fff76acde59d006b19e67dc9ff5b9ea14cd062d4


[Bug]: Cannot use TypeSpec extension for VS code

Describe the bug
I went to VS code extension market and installed the TypeSpec extension for VS code. I cannot use it, "F12" not working at all with error:
Error: Cannot find module<EMAIL_ADDRESS>at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
at Module._load (node:internal/modules/cjs/loader:841:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.12.1
[Info  - 7:33:44 PM] Connection to server got closed. Server will restart.
[Error - 7:33:44 PM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 7:33:44 PM] TypeSpec client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 7:33:44 PM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 7:33:44 PM] Client TypeSpec: connection to server is erroring. Shutting down server.
[Error - 7:33:44 PM] Stopping server failed
Reproduction
As described above.
Checklist

[X] Follow our Code of Conduct
[X] Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.
[X] The provided reproduction is a minimal reproducible example of the bug.

Can you share a little more info, do you have a .vscodr folder with settings where you configured that tsp-path, is typespec installed in the folder you are looking?

The only way I can repro this is if you have this in your settings.json but the package is not installed there
    "typespec.tsp-server.path": "./node_modules/@typespec/compiler"

If I don't have the compiler installed at all(locally or globally) you get an error explaining you need to install it
[Error - 8:27:31 AM] TypeSpec client: couldn't create connection to server.
Launching server using command tsp-server failed. Error: spawn tsp-server ENOENT
[Error - 8:27:31 AM] TypeSpec server executable was not found: 'tsp-server' is not found. Make sure either:
 - TypeSpec is installed locally at the root of this workspace ("/Users/timotheeguerin/dev/test/vitest-debug-repro") or in a parent directory.
 - TypeSpec is installed globally with `npm install -g @typespec/compiler'.
 - TypeSpec server path is configured with https://github.com/microsoft/typespec#installing-vs-code-extension.


Running on Visual Studio Mac (VSM)

Hi
My VSM (v8.6.1) is in Spanish, then some can be bad translation, my english is not good.
I clone the repository and load the solution in VSM and all compile properly
But when run with the default config, wich use the terminal docked in the a tab of the IDE, the program works but with some display errors.(Lines breaks, and the screen seen broken)
For working fine i must to disable embedded terminal (this is a global option, cant be done by project), then the program run on external console properly
Nice job
PD.
you can udpate instructions to run on mac
Open solution on VSM and run on external terminal

I had a similar problem recently, and reported that to the VSMac folks, an update to VSMac should have that fixed.


Problem with single spa layout (C is not a function)

Please provide a repository demonstrating the problem. I don't see anything wrong in the code you shared but it's hard to diagnose without a demonstration.


Digital Miner won't mine!

Please use the search functionality before reporting an issue. Also take a look at the closed issues!
Issue description:
Simple the Digital Miner does not mine what so ever in Solo or Multiplier. Everything is setup properly. Filters, power, replacement block etc .... I thought it was because of the Fake player thing. So I did /mk op and nothing help. Then I though it migh be the claimed chunk so I tried in solo, same thing, then I tried removing the FTBUtils mod. Same thing the Digita Miner is stuck at Mining 0.
Version (make sure you are on the latest version before reporting):
Forge: forge-<IP_ADDRESS>4
Mekanism: Mekanism-1.7.10-<IP_ADDRESS>1
Other relevant version: MekanismGenerators-1.7.10-<IP_ADDRESS>1, MekanismTools-1.7.10-<IP_ADDRESS>1, MDK-1.7.10-<IP_ADDRESS>1
If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)
[gist/pastebin/etc link here]

1.7.10 is no longer supported. Though it is likely some kind of chunk protection that doesnt like fake players at all. Make sure if FTBU has the option to allow fake players that you enable it.


Refactor Tests

Testing

split to big tests like MathUtilsTest::testRoundToDecimalsAsString to atomic smaller one
clean up code for MapCanvasTest like: remove unused, exception testing, speaking names

split: wouldn't do that...
clean up: yeah, agreed

@floric please make a review of this 2 commits. If you think the issue is still open, please reopen the issue and give the assignee to me again.

closed with https://github.com/floric/HTWK_Visu/commit/bb93c63afe3996df5db7d845253a64081d52249c


Added my Contributions

Hey 👋, I have added my contribution data. Please let me know if any conflicts in data/ file.
Please add hacktoberfest-accepted tag, so that I can keep track of my contributions this year.

@jsvigneshkanna add your data in contributors.md not in data/contributors.md
Marking this pr as invalid and closing it.
Please make a fresh pr again


Moore/hdfs update

What does this PR do?
Adds SSL validation toggle for HDFS Namenode and Datanode. In some instances there may be a proxy or self-signed cert and we have no need to validate.
Motivation
Is a stopping issue for a customer.
Testing Guidelines
An overview on testing
is available in our contribution guidelines.
Versioning

[x] Bumped the version check in manifest.json
[x] Updated CHANGELOG.md

Additional Notes
Validate that check works with HTTPS or not.

Looks like something failed here. Will address before review...

And we're back. Looks like some stuff didn't format correctly the first time but we should be good on the fix.

Just make sure that this is set everywhere the function is called, otherwise it looks fine at first glance.

hey @themsquared do you still wanna merge this? can you make sure you get rid of the conflicts? we can merge this pretty easily then I think


[iOS] Memory usage not being clean after successful upload

Hi, when uploading a large amount of files using ReactNativeBlobUtil.fetch(), the memory usage will climb steadily and it will not get cleared up after each successful upload, even after the entire upload process gets completed with some wait time thereafter. And there were no other activities while conducting the test. See screenshot, sample code below. Any suggested changes to flush the memory or this is an expected behavior?
Any input will highly appreciated. Thank you!

Xcode profiler

https://drive.google.com/file/d/1_L8nzlYSR9YH_XWmVQzRXQ9zoG7LwW1x/view?usp=sharing

Version used:

"react-native-blob-util": "^0.16.2"
"react-native": "0.68.2"

Sample code snippet

const testUpload = async () => {
    const fileBasePath = RNBlobUtil.fs.dirs.DocumentDir.replace(
      /\/Documents$/,
      '/tmp/react-native-image-crop-picker/',
    );
    console.log('fileBasePath', fileBasePath);
    const imageFiles = await RNBlobUtil.fs.ls(fileBasePath);

    for (let i = 0; i < imageFiles.length; i++) {
      const filePath = fileBasePath + imageFiles[i];
      try {
        await RNBlobUtil.config({
          fileCache: false,
        }).fetch(
          'PUT',
          'https://<subdomain>.blob.core.windows.net/<params>',
          {
            'x-ms-version': '2020-02-10',
            'x-ms-blob-type': 'BlockBlob',
            'x-ms-meta-IsPublic': 'true',
          },
          RNBlobUtil.wrap(
            Platform.OS === 'ios'
              ? filePath!.replace('file://', '')
              : filePath!,
          ),
        );
        console.log('uploaded ' + i + ',' + filePath);
      } catch (error) {
        console.error('error on ' + i, error);
      }
    }
  };

heyy @RonRadtke, any updates regarding this issue?

any update on this

any update issue still persist

I'm still experiencing this issue. Start out with 470MB, end up with 900MB memory taken.

Perhaps it has to do with https://github.com/facebook/hermes/issues/1147

I'm still experiencing this issue. Start out with 470MB, end up with 900MB memory taken.

Which version are you using?


[Settings] Nuget packages update

Summary of the Pull Request
WinUI upgrade fixes: #13080
Quality Checklist

[X] Linked issue: #13080
[ ] Communication: I've discussed this with core contributors in the issue.
[ ] Tests: Added/updated and all pass
[ ] Installer: Added/updated and all pass
[ ] Localization: All end user facing strings can be localized
[ ] Docs: Added/ updated
[ ] Binaries: Any new files are added to WXS / YML

[ ] No new binaries
[ ] YML for signing for new binaries
[ ] WXS for installer for new binaries

Contributor License Agreement (CLA)
A CLA must be signed. If not, go over here and sign the CLA.

i'm find with this but my suggestion is verify at the SLN level we got all references

i'm find with this but my suggestion is verify at the SLN level we got all references

I think @crutkas means updating other instances of these packages through the solution as well. From what I see, Microsoft.UI.Xaml is used on the PowerRenameUILib project as well.

i'm find with this but my suggestion is verify at the SLN level we got all references

I think @crutkas means updating other instances of these packages through the solution as well. From what I see, Microsoft.UI.Xaml is used on the PowerRenameUILib project as well.

Yep, we had that one covered in: #15707. But yeah, makes sense to update these across the board although these two projects are probably the only ones using it..

This change ended up being reverted in https://github.com/microsoft/PowerToys/pull/15138 , due to including the WebView dependencies. A bit more investigation needs to be put here to understand the implications.


undefined method `trending' for Giphy:Module

Hello!
I can't seem to call trending. I do see recent tho.
Thanks!

Hi,
I am also having an issue regarding this:
NoMethodError: undefined method `trending' for Giphy:Module
Any update on this chaos?
Thanks

@chaosxregulus, @frubesss just released version 3.0.0 of the gem which includes the bug fix. Upgrade to that version and you should no longer get this issue.


As a coach, I can quickly get the information of all contacts tagged to a specific task so that time is saved on contact retrieval

PR related to #101
Implements the get-person feature and its relevant test cases
Conflicts will be solved after add and delete player PR is merged

Codecov Report

Merging #100 (cf613db) into master (1328b61) will decrease coverage by 0.00%.
The diff coverage is 81.81%.

@@             Coverage Diff              @@
##             master     #100      +/-   ##
============================================
- Coverage     77.24%   77.23%   -0.01%
- Complexity      805      815      +10
============================================
  Files           118      121       +3
  Lines          2351     2390      +39
  Branches        273      278       +5
============================================
+ Hits           1816     1846      +30
- Misses          449      457       +8
- Partials         86       87       +1

Impacted Files
Coverage Δ

src/main/java/seedu/address/commons/core/Tabs.java
0.00% <0.00%> (ø)

.../seedu/address/logic/parser/AddressBookParser.java
74.19% <0.00%> (-2.48%)
:arrow_down:

src/main/java/seedu/address/ui/MainWindow.java
0.00% <0.00%> (ø)

...va/seedu/address/logic/commands/CommandResult.java
80.00% <80.00%> (-8.89%)
:arrow_down:

...seedu/address/logic/commands/GetPersonCommand.java
92.30% <92.30%> (ø)

...java/seedu/address/logic/commands/ExitCommand.java
100.00% <100.00%> (ø)

...java/seedu/address/logic/commands/HelpCommand.java
100.00% <100.00%> (ø)

...u/address/logic/parser/GetPersonCommandParser.java
100.00% <100.00%> (ø)

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

LGTM. Though I am not sure why the tabpane is added into the command result

Thanks for the review. I have added the tab-pane to the command result so that I can pass this value (needed to switch the tab-pane that I am current in) back to the Main Window class

LGTM. Though I am not sure why the tabpane is added into the command result

Thanks for the review. I have added the tab-pane to the command result so that I can pass this value (needed to switch to the contact tab) back to the Main Window class

Got it. It looks ok to merge for me.


Recalling a session while a network is loaded doesn't flush the loaded network

Overlapping over existing network after recall

Ells mentioned this bug in MT Dev meeting 10/15/20

I thought this was fixed in Dev.
From: roxycintron<EMAIL_ADDRESS>Sent: Friday, October 16, 2020 4:33 PM
To: CDCgov/MicrobeTrace<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: Re: [CDCgov/MicrobeTrace] Recall function (#285)
Ells mentioned this bug in MT Dev meeting 10/15/20
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/CDCgov/MicrobeTrace/issues/285#issuecomment-710577459, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHMTDBKGKVI7ERDFD3FNRJ3SLCUWLANCNFSM4STZITZA.

Nope, it's still there.

OK, did a little research. The problem is in the recall function (common.js#L479-ish). For some reason, it doesn't call MT.reset (probably has something to do with old session files). To fix this, we may need to version bump and note that there's a breaking change, so much older session files may not work.

Thanks Tony!
From: Tony Boyles<EMAIL_ADDRESS>Sent: Wednesday, October 21, 2020 9:22 AM
To: CDCgov/MicrobeTrace<EMAIL_ADDRESS>Cc: Switzer, Bill (CDC/DDID/NCHHSTP/DHPSE<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [CDCgov/MicrobeTrace] Recalling a session while a network is loaded doesn't flush the loaded network (#285)
OK, did a little research. The problem is in the recall function (common.js#L479https://github.com/CDCgov/MicrobeTrace/blob/master/src/common.js#L477-ish). For some reason, it doesn't call MT.reset (probably has something to do with old session files). To fix this, we may need to version bump and note that there's a breaking change, so much older session files may not work.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/CDCgov/MicrobeTrace/issues/285#issuecomment-713566888, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHMTDBLMOJA4I5MSPF43FK3SL3N6FANCNFSM4STZITZA.

Hi Tony, do you suggest to call MT.reset before applying the old session data?

@mchiuw Yes, like first thing in the recall function.


[T3A3][T15-A4]AngShiYa

Ready for review

@AngShiYa stellar work.

As mentioned you don't need to use value anymore, hence you need to replace all instances/ calls to it.
You've managed to modify nearly all the required files.

Please close the PR after reading comments.