ImportError: No module named Sample.settings

When I use python manage.py runserver  then  its gives me error "ImportError: No module named Sample.settings"
I have first download "django-rest-framework-mongoengine-master" and unzip file, then  next i install all requirement packages (pytest ......isort ) , next I use  ./runtests.py --fast  this command... and next I use python manage.py runserver.
So, where is Sample.settings?  I want to connect my database  (stored in mongo) using mongoengine.
and show data output and complex queries in django-rest-framework  , I am confuse, how to connect database?

@KiranPrajapati345  Hi! What are you trying to achieve? Do you want to use DRF-Mongoengine in your project or do you want to contribute to DRF-Mongoengine?
If you want to use DRF-ME in your project, just say pip install django-rest-framework-mongoengine and you need all the dependencies from our requirements.txt installed (django, mongoengine, drf and blinker) - this can be done with pip install -r requirements.txt. Then you can use DocumentSerializers from it in your serializers.py and Router in urls.py.
If you want to contribute to DRF-ME, you just clone DRF-ME from github and then install testing  requirements from requirements/requirements-testing.txt. Then you run .runtests.py script, which runs all tests, using tox and pytest.

Hello sir,
I want to create a REST API that returns value of some data from mongodb
with django.
I used that  requirements.txt  and install all packages but next what  I
add for connect my mongodb database
my data is in mongodb (KIRAN database)  please find attachment (data.png) .
I want to show this data in  django-rest-api sever.
so I  have install django-rest-framework-mongoengine and all packages like
(blinker, pytest .pytest-cov, pytest-django,pep8..etc)
and I run python runtest.py file and gives  flake8 error, I solve that
error . next when I use python manage.py runserver its gives me error " No
module name "sample.settings ."
how to I connet my db database in djagno-restframework-mongoengine ?
can you please help me, how I got my data using
djago-restframework-mongoengine  when my data is stored in mongo?
Thanks and regards,
Kiran Prajapati
On Fri, Dec 2, 2016 at 4:33 PM, Boris Burkov<EMAIL_ADDRESS>wrote:

@KiranPrajapati345 https://github.com/KiranPrajapati345 Hi! What are
you trying to achieve? Do you want to use DRF-Mongoengine in your project
or do you want to contribute to DRF-Mongoengine?
If you want to use DRF-ME in your project, just say pip install
django-rest-framework-mongoengine and you need all the dependencies from
our requirements.txt installed (django, mongoengine, drf and blinker) -
this can be done with pip install -r requirements.txt. Then you can use
DocumentSerializers from it in your serializers.py and Router in urls.py.
If you want to contribute to DRF-ME, you just clone DRF-ME from github and
then install testing requirements from requirements/requirements-
testing.txt. Then you run .runtests.py script, which runs all tests,
using tox and pytest.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/umutbozkurt/django-rest-framework-mongoengine/issues/200#issuecomment-264429690,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATXC7v1ZQrGkEe2CaxAGvg4S795X2wqUks5rD_rvgaJpZM4LCWUN
.

@KiranPrajapati345
Ok, so you want to use DRF-Mongoengine for your project, not contribute to it. In such case, you don't need developer's dependencies, such as pytest, pytest-cov, pytest-django, pep8 etc.
You need only django, django-rest-framework, mongoengine and django-rest-framework-mongoengine. So, you just install them as follows:
pip install django djangorestframework mongoengine django-rest-framework-mongoengine

I don't really have time to explain, how to set up django and django-rest-framework in full detail, but I'll give you a short instruction. You need to:

create a django project and a django app with django-admin startproject <your project's name>, django-admin startapp <your app's name>
edit the settings.py file of your projects: add rest_framework and rest_framework_mongoengine to INSTALLED_APPS variable and set up connection to mongo like this:

MONGODB_DATABASES = {
    "default": {
        "name": "universe",
        "host": "workflows-mongo",
        "port": 27017,
        "tz_aware": True,  # if you use timezones in django (USE_TZ = True)
    },

    "test": {
        "name": "test_universe",
        "host": "workflows-mongo",
        "port": 27017,
        "tz_aware": True,  # if you use timezones in django (USE_TZ = True)
    }
}

    mongoengine.connect(
        db=MONGODB_DATABASES[db]['name'],
        # TODO: username=MONGO_DATABASES['default']['username'],
        # TODO: password=MONGO_DATABASES['default']['password'],
        host=MONGODB_DATABASES['default']['host']
    )

Now, how to write your API in drf-mongoengine? You can read the official documentation and this article for primer.

@KiranPrajapati345
As for the error:
mongoengine.connect(db="Tools",host="localhost")
NameError: name 'mongoengine' is not defined

You just haven't imported the mongoengine module. Add import mongoengine to the beginning of your settings.py.
I've also created an example project, using drf-monogoengine for you. Here it is: https://github.com/BurkovBA/django-rest-framework-mongoengine-example. Ask me, if you don't understand something in it.

Hello sir,
Thanks you so much sir,
Its  works. Happy to run this server finally :)
But can you just  attach data   that's you are stored in mongodb "
project"  db (database) ?
Because I have no idea which data is stored in  your project db?
and in settings.py file
mongoengine.connect(
db=MONGODB_DATABASES[db]['name'],
host=MONGODB_DATABASES[db]['host']
)
I need to include database name ['project'] instead of  ['name']  here?
db = MONGODB_DATABASES[db]['project']
host  =MONGODB_DATABASES[db]['host']
please see screen shot (doubt.png)
and once we run  http://<IP_ADDRESS>:8000/api/tool
how to see our data that we are stored in 'project' collection instead of
create data?
for example : in mongodb    [test db] I stored my data in collection
[KIRAN31] .
and if we use mongo shell , db.KIRAN31.find()     our collection data is
shows in mongo shell
please see screenshot (Doubt2.png)
and  using mongoengine I want to show in  djnago server
please see screen shot ( wbcis data.png)
Thanks and regards,
Kiran Prajapati
On Sun, Dec 4, 2016 at 2:41 AM, Boris Burkov<EMAIL_ADDRESS>wrote:

@KiranPrajapati345 https://github.com/KiranPrajapati345
As for the error:
mongoengine.connect(db="Tools",host="localhost")
NameError: name 'mongoengine' is not defined
You just haven't imported the mongoengine module. Add import mongoengine
to the beginning of your settings.py.
I've also created an example project, using drf-monogoengine for you.
Here it is: https://github.com/BurkovBA/django-rest-framework-
mongoengine-example. Ask me, if you don't understand something in it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/umutbozkurt/django-rest-framework-mongoengine/issues/200#issuecomment-264665769,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATXC7twNPMX8p-t7qYv_93vmdlC5Wqusks5rEdrlgaJpZM4LCWUN
.

@KiranPrajapati345
Ok, here's an example of data, stored in Tool collection. You can paste it into "raw data" view of your Browsable API and it will be stored in your database:
{
    "_id" : "Soapfuse",
    "class" : "CommandLineTool",
    "label" : "Soapfuse",
    "description" : "",
    "owner" : [
        "10"
    ],
    "contributor" : [],
    "inputs" : [
        {
            "id" : "#displayName",
            "label" : "JobName",
            "description" : "SomeId to code sample",
            "type" : [
                "string"
            ],
            "inputBinding" : {
                "position" : 1
            },
            "required" : true
        },
        {
            "id" : "#readsFile1",
            "label" : "readsFile2",
            "description" : "Fastq left reads",
            "type" : [
                "File"
            ],
            "inputBinding" : {
                "position" : 2
            },
            "required" : true
        },
        {
            "id" : "#readsFile2",
            "label" : "ReadsFile2",
            "description" : "Fastq right reads",
            "type" : [
                "File"
            ],
            "inputBinding" : {
                "position" : 3
            },
            "required" : true
        },
        {
            "id" : "#fileFormat",
            "label" : "",
            "description" : "",
            "type" : [
                {
                    "symbols" : [
                        "fq",
                        "fq.gz",
                        "fastq"
                    ],
                    "type" : "enum",
                    "name" : "allowedFileFormats"
                }
            ],
            "inputBinding" : {
                "position" : 4
            },
            "required" : true
        },
        {
            "id" : "#reference",
            "label" : "reference",
            "description" : "Reference for soapfuse",
            "type" : [
                "File"
            ],
            "inputBinding" : {
                "position" : 5
            },
            "required" : true
        },
        {
            "id" : "#insertSize",
            "label" : "",
            "description" : "",
            "type" : [
                "null",
                "int"
            ],
            "inputBinding" : {
                "position" : 7
            },
            "required" : true
        },
        {
            "id" : "#intronSearch",
            "label" : "",
            "description" : "",
            "type" : [
                "null",
                "int"
            ],
            "inputBinding" : {
                "position" : 8
            },
            "required" : true
        }
    ],
    "outputs" : [
        {
            "id" : "#outputFile",
            "type" : [
                "File"
            ],
            "outputBinding" : {
                "glob" : "result.soapfuse.tgz"
            },
            "required" : true
        }
    ],
    "baseCommand" : [
        "/workdir/run_soapfuse.sh"
    ],
    "arguments" : [
        {
            "position" : 6,
            "valueFrom" : "result.soapfuse.tgz"
        }
    ],
    "requirements" : [
        {
            "dockerPull" : "avkitex/soapfuse:latest",
            "class" : "DockerRequirement"
        },
        {
            "coresMin" : "4",
            "ramMin" : "15000",
            "class" : "ResourceRequirement",
            "outdirMin" : "50000",
            "tmpdirMin" : "100000"
        }
    ],
    "hints" : [
        {
            "defaultReferenceHint" : "first",
            "listReferencesFor" : [
                {
                    "referenceForTools" : [
                        "SOAPfuse-v1.26"
                    ],
                    "id" : "reference"
                }
            ],
            "class" : "bg:ReferenceEncode"
        }
    ],
    "successCodes" : [],
    "temporaryFailCodes" : [],
    "permanentFailCodes" : []
}

Hello sir, I got it ..! :)
In  setting.py
We define 2 Mongo databases - default and test
MONGODB_DATABASES = {
"default": {
"name": "Rabbi",
"host": "localhost",
"port": 27017,
"tz_aware": True,  # if you use timezones in django (USE_TZ = True)
},
I have use  where I data stored in mongodb.
So, my db is Rabbi and collection is  "tool"
and it's works.  Awesome code..!!
Thank you so much sir.
Thanks and regards,
Kiran Prajapati
On Mon, Dec 5, 2016 at 1:30 PM, Boris Burkov<EMAIL_ADDRESS>wrote:

@KiranPrajapati345 https://github.com/KiranPrajapati345
Ok, here's an example of data, stored in Tool collection. You can paste it
into "raw data" view of your Browsable API and it will be stored in your
database:
{
"_id" : "Soapfuse",
"class" : "CommandLineTool",
"label" : "Soapfuse",
"description" : "",
"owner" : [
"10"
],
"contributor" : [],
"inputs" : [
{
"id" : "#displayName",
"label" : "JobName",
"description" : "SomeId to code sample",
"type" : [
"string"
],
"inputBinding" : {
"position" : 1
},
"required" : true
},
{
"id" : "#readsFile1",
"label" : "readsFile2",
"description" : "Fastq left reads",
"type" : [
"File"
],
"inputBinding" : {
"position" : 2
},
"required" : true
},
{
"id" : "#readsFile2",
"label" : "ReadsFile2",
"description" : "Fastq right reads",
"type" : [
"File"
],
"inputBinding" : {
"position" : 3
},
"required" : true
},
{
"id" : "#fileFormat",
"label" : "",
"description" : "",
"type" : [
{
"symbols" : [
"fq",
"fq.gz",
"fastq"
],
"type" : "enum",
"name" : "allowedFileFormats"
}
],
"inputBinding" : {
"position" : 4
},
"required" : true
},
{
"id" : "#reference",
"label" : "reference",
"description" : "Reference for soapfuse",
"type" : [
"File"
],
"inputBinding" : {
"position" : 5
},
"required" : true
},
{
"id" : "#insertSize",
"label" : "",
"description" : "",
"type" : [
"null",
"int"
],
"inputBinding" : {
"position" : 7
},
"required" : true
},
{
"id" : "#intronSearch",
"label" : "",
"description" : "",
"type" : [
"null",
"int"
],
"inputBinding" : {
"position" : 8
},
"required" : true
}
],
"outputs" : [
{
"id" : "#outputFile",
"type" : [
"File"
],
"outputBinding" : {
"glob" : "result.soapfuse.tgz"
},
"required" : true
}
],
"baseCommand" : [
"/workdir/run_soapfuse.sh"
],
"arguments" : [
{
"position" : 6,
"valueFrom" : "result.soapfuse.tgz"
}
],
"requirements" : [
{
"dockerPull" : "avkitex/soapfuse:latest",
"class" : "DockerRequirement"
},
{
"coresMin" : "4",
"ramMin" : "15000",
"class" : "ResourceRequirement",
"outdirMin" : "50000",
"tmpdirMin" : "100000"
}
],
"hints" : [
{
"defaultReferenceHint" : "first",
"listReferencesFor" : [
{
"referenceForTools" : [
"SOAPfuse-v1.26"
],
"id" : "reference"
}
],
"class" : "bg:ReferenceEncode"
}
],
"successCodes" : [],
"temporaryFailCodes" : [],
"permanentFailCodes" : []
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/umutbozkurt/django-rest-framework-mongoengine/issues/200#issuecomment-264789387,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATXC7m1TbUEYpKl_EEiJS8fdXJBZPMnWks5rE8SfgaJpZM4LCWUN
.

Hello sir,
Is there any way to writing  queries for multiple fields using mongoengine?
I want to writing  a query  for   Fruit =Guava in Revenue_circle
=urlikanchan  and   also writing a query for
how many number of fruits are made in pune district,  nasik district .. etc?
we need to write queries in models.py file?
Please find attahcment
On Mon, Dec 5, 2016 at 1:35 PM, Kiran Prajapati<EMAIL_ADDRESS>
wrote:

Hello sir, I got it ..! :)
In  setting.py
We define 2 Mongo databases - default and test
MONGODB_DATABASES = {
"default": {
"name": "Rabbi",
"host": "localhost",
"port": 27017,
"tz_aware": True,  # if you use timezones in django (USE_TZ = True)
},
I have use  where I data stored in mongodb.
So, my db is Rabbi and collection is  "tool"
and it's works.  Awesome code..!!
Thank you so much sir.
Thanks and regards,
Kiran Prajapati
On Mon, Dec 5, 2016 at 1:30 PM, Boris Burkov<EMAIL_ADDRESS>wrote:

@KiranPrajapati345 https://github.com/KiranPrajapati345
Ok, here's an example of data, stored in Tool collection. You can paste
it into "raw data" view of your Browsable API and it will be stored in your
database:
{
"_id" : "Soapfuse",
"class" : "CommandLineTool",
"label" : "Soapfuse",
"description" : "",
"owner" : [
"10"
],
"contributor" : [],
"inputs" : [
{
"id" : "#displayName",
"label" : "JobName",
"description" : "SomeId to code sample",
"type" : [
"string"
],
"inputBinding" : {
"position" : 1
},
"required" : true
},
{
"id" : "#readsFile1",
"label" : "readsFile2",
"description" : "Fastq left reads",
"type" : [
"File"
],
"inputBinding" : {
"position" : 2
},
"required" : true
},
{
"id" : "#readsFile2",
"label" : "ReadsFile2",
"description" : "Fastq right reads",
"type" : [
"File"
],
"inputBinding" : {
"position" : 3
},
"required" : true
},
{
"id" : "#fileFormat",
"label" : "",
"description" : "",
"type" : [
{
"symbols" : [
"fq",
"fq.gz",
"fastq"
],
"type" : "enum",
"name" : "allowedFileFormats"
}
],
"inputBinding" : {
"position" : 4
},
"required" : true
},
{
"id" : "#reference",
"label" : "reference",
"description" : "Reference for soapfuse",
"type" : [
"File"
],
"inputBinding" : {
"position" : 5
},
"required" : true
},
{
"id" : "#insertSize",
"label" : "",
"description" : "",
"type" : [
"null",
"int"
],
"inputBinding" : {
"position" : 7
},
"required" : true
},
{
"id" : "#intronSearch",
"label" : "",
"description" : "",
"type" : [
"null",
"int"
],
"inputBinding" : {
"position" : 8
},
"required" : true
}
],
"outputs" : [
{
"id" : "#outputFile",
"type" : [
"File"
],
"outputBinding" : {
"glob" : "result.soapfuse.tgz"
},
"required" : true
}
],
"baseCommand" : [
"/workdir/run_soapfuse.sh"
],
"arguments" : [
{
"position" : 6,
"valueFrom" : "result.soapfuse.tgz"
}
],
"requirements" : [
{
"dockerPull" : "avkitex/soapfuse:latest",
"class" : "DockerRequirement"
},
{
"coresMin" : "4",
"ramMin" : "15000",
"class" : "ResourceRequirement",
"outdirMin" : "50000",
"tmpdirMin" : "100000"
}
],
"hints" : [
{
"defaultReferenceHint" : "first",
"listReferencesFor" : [
{
"referenceForTools" : [
"SOAPfuse-v1.26"
],
"id" : "reference"
}
],
"class" : "bg:ReferenceEncode"
}
],
"successCodes" : [],
"temporaryFailCodes" : [],
"permanentFailCodes" : []
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/umutbozkurt/django-rest-framework-mongoengine/issues/200#issuecomment-264789387,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATXC7m1TbUEYpKl_EEiJS8fdXJBZPMnWks5rE8SfgaJpZM4LCWUN
.

@KiranPrajapati345
Unfortunately, I didn't find any attachments in your e-mails. May be GitHub blocks them?
Django REST Framework doesn't support multiple id fields as yet. So, you cannot have a REST api endpoint e.g. /api/district/<nasik>/fruit/<guava>/ out of the box.
But, you can use filtering in DRF, which is supported out of the box. You need to override your APIView or APIViewSet to use this functionality.
Sorry, I don't have time to help you with the details about how to use standard DRF due to my full-time job. You'll have to familiarize yourself with the documentation of standard DRF first. And then, when you try using DRF-Mongoengine, you can find many helpful examples in the unit-tests of DRF-Mongoengine.
Good luck!

Thanks you sir,
you are helped me already so much.
Thanks a lot.
On Tue, Dec 6, 2016 at 3:46 PM, Boris Burkov<EMAIL_ADDRESS>wrote:

@KiranPrajapati345 https://github.com/KiranPrajapati345
Unfortunately, I didn't find any attachments in your e-mails. May be
GitHub blocks them?
Django REST Framework doesn't support multiple id fields as yet. So, you
cannot have a REST api endpoint e.g. /api/district//fruit//
out of the box.
But, you can use filtering in DRF
http://www.django-rest-framework.org/api-guide/filtering/, which is
supported out of the box. You need to override your APIView or APIViewSet
to use this functionality.
Sorry, I don't have time to help you with the details about how to use
standard DRF due to my full-time job. You'll have to familiarize yourself
with the documentation of standard DRF
http://www.django-rest-framework.org/ first. And then, when you try
using DRF-Mongoengine, you can find many helpful examples in the
unit-tests
https://github.com/umutbozkurt/django-rest-framework-mongoengine/tree/master/tests
of DRF-Mongoengine.
Good luck!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/umutbozkurt/django-rest-framework-mongoengine/issues/200#issuecomment-265112306,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATXC7g1xWPx-IWyCbIC-X7WF3PmPtXOaks5rFTYNgaJpZM4LCWUN
.

Hi,
i don't know if is the right place to ask, because it's not an issue, just a question.
I'm using rest_framework_mongoengine to build APIs for my app
I would like to know if there's a way to get this filter working
http://api/tool/?crop=banana,guava
to get all crop "banana OR crop "guava".
I've tried with
http://api/tool/?crop=guava&category=banana
but as expected it does an AND between the filters and retrieve only the banana crop (i suppose because it's the last filter).
I am not sure which packages need to import using rest_framework_mongoengine
Here is my views.py file:
from future import unicode_literals
from django.template.response import TemplateResponse
from rest_framework_mongoengine.viewsets import ModelViewSet as MongoModelViewSet
from app.serializers import *
def index_view(request):
context = {}
return TemplateResponse(request, 'index.html', context)
class ToolViewSet(MongoModelViewSet):
serializer_class = ToolSerializer
my_filter_fields = ('crop', 'district','taluka','circle','year',) # specify the fields on which you want to filter
def get_kwargs_for_filtering(self):
    filtering_kwargs = {}
    for field in  self.my_filter_fields: # iterate over the filter fields
        field_value = self.request.query_params.get(field) # get the value of a field from request query parameter
        if field_value:
            filtering_kwargs[field] = field_value
    return filtering_kwargs

def get_queryset(self):
    queryset = Tool.objects.all()
    filtering_kwargs = self.get_kwargs_for_filtering() # get the fields with values for filtering
    if filtering_kwargs:
        queryset = Tool.objects.filter(**filtering_kwargs) # filter the queryset based on 'filtering_kwargs'
    return queryset

This code is work for "And" query .
http://api/tool/?crop=guava&taluka=haveli
http://api/tool/?district=pune&taluka=haveli
etc gives correct output,
Now, I want to write query for "OR" query,
I know how to works  this  using django-filters
here is my code :
from rest_framework import generics,filters
from rest_framework.filters import SearchFilter
from django_filters import Filter,CharFilter
from django_filters.fields import Lookup
class ListFilter(CharFilter):
def sanitize(self, value_list):
    """
    remove empty items in case of ?number=1,,2
    """
    return [v for v in value_list if v != u'']

def customize(self, value):
    return value

def filter(self, qs, value):
    multiple_vals = value.split(u",")
    multiple_vals = self.sanitize(multiple_vals)
    multiple_vals = map(self.customize, multiple_vals)
    actual_filter = django_filters.fields.Lookup(multiple_vals, 'in')
    return super(ListFilter, self).filter(qs, actual_filter)

class ListIntegerFilter(ListFilter):
def customize(self, value):
    return int(value)

class ToolViewSet(ModelViewSet):
queryset = Toolobjects.all()
model=Tool
serializer_class = ToolSerializer
filter_backends = (django_filters.rest_framework.DjangoFilterBackend,SearchFilter,filters.OrderingFilter,)
filter_class = ToolFilterSet
but this code is works in django-filter, not working in rest-framework-mongoengine
So,can you please help me for how to write this code in rest-framework-mongoengine ? what i have to import in views.py file ?

This turned to be a discussion instead of a question. Closing


Slovak language support

Could you add Slovak language support for Android app in Lokalise? Home Assistant frontend and backend already support Slovak language.

Added.  You might need to request access to the language in Lokalise.


feat: Add common php extensions

In very common projects using symfony, there is a cache:clear command which is ran after composer update. This command requires DOM extension.
Script cache:clear returned with error code 1
!!
!!  In XmlUtils.php line 50:
!!
!!    Extension DOM is required.

Not sure to understand what you expect. Do you have an example for mbstring which was already installed ?

No just a simple example like the python tests. See test folder for example.

Does something like this suits to you ?


%matplotlib inline causes all figures to be printed in the notebook

I am not sure whether this is due to a bug, or if it's because I am "hacking" holoviews here.
See this notebook
from holoviews import Element2D
from holoviews.plotting.mpl import ElementPlot
import holoviews as holoviews
holoviews.notebook_extension()

class Figure(Element2D):
    pass

class FigurePlot(ElementPlot):

    def initialize_plot(self, ranges=None):
        element = self.hmap.last
        self.handles['fig'] = element.data
        return self.handles['fig']

    def update_frame(self, key, ranges=None, element=None):
        element = self._get_frame(key)
        self.handles['fig'] = element.data
        return self.handles['fig']

holoviews.Store.register({Figure: FigurePlot}, 'matplotlib')

from matplotlib import pyplot as plt

def get_figure(x):
    fig = plt.figure()
    ax = fig.add_subplot(1, 1, 1)
    ax.plot(range(10))
    return fig

calling
holoviews.HoloMap({i: Figure(get_figure(i)) for i in range(5)})

works as expected, but after calling %matplotlib inline and then the holomap, the problem appears.

We don't necessarily close all figures now so you'll have to be responsible for doing so yourself:
from holoviews import Element2D
from holoviews.plotting.mpl import ElementPlot

class Figure(Element2D):
    pass

class FigurePlot(ElementPlot):

    def initialize_plot(self, ranges=None):
        element = self.hmap.last
        self.handles['fig'] = element.data
        return self.handles['fig']

    def _init_axis(self, fig, ax):
        return None, None                   <----- Override this method to avoid creating a useless figure

    def update_frame(self, key, ranges=None, element=None):
        element = self._get_frame(key)
        self.handles['fig'] = element.data
        return self.handles['fig']

holoviews.Store.register({Figure: FigurePlot}, 'matplotlib')

from matplotlib import pyplot as plt

def get_figure(x):
    fig = plt.figure()
    ax =fig.add_subplot(111)
    ax.plot(np.linspace(0,x), )
    plt.close(fig) <---- Close your figures before returning them
    return fig

holoviews.HoloMap({i: Figure(get_figure(i)) for i in np.linspace(-.1, .1, 21)})

Since the above fix works for me I'll close this. Please reopen if you run into issues.

Great, that fixed it!


Utilization: disk IO RW

Depends on: https://github.com/kubevirt/web-ui-components/pull/332

Verified on a Ceph environment, seems to be working.
Anyway, I'll double-check with storage guys the metric - not sure if it is correct.
But it can be potentially fixed in a follow-up.


[Watson][4893a116-2ddd-2e6d-1388-8b1294a6c085]BAD_INSTRUCTION_PTR_c0000005_action_x64.dll! Unloaded

Generated issue from Watson
Watson Link:  https://watsonportal.microsoft.com/Failure?FailureSearchText=4893a116-2ddd-2e6d-1388-8b1294a6c085
ADO Link: ADO_LINK
Process: powertoys.exe,
Module: action_x64.dllv<IP_ADDRESS>
Note setting to priority-1 because there is only 1 hit, and the assembly version of action_x64.dll looks suspicious

could be closed, no hits in last 14 days. it's likely caused https://mirillis.com/, perhaps it was setting some hooks which were messing with us and other processes, e.g. dwm.exe.

Closing since this crash is unrelated.


azp: Expected a mapping error for empty each loop

The following syntax is valid in the azure-pipelines preview API
parameters:

- name: objectArray
  type: object
  default:
  - name: one
    options:
    - a
    - b
  - name: two
    # does not specify options

stages:
- ${{ each item in parameters.objectArray }}:
  - stage: ${{ item.name }}
    jobs:
    - job: ${{ item.name }}
      steps:
      - checkout: none
      - ${{ each option in item.options }}: # errors when options is null
        - bash: echo '${{ option }}'
          displayName: 'Option ${{ option }}'

However, when run, I get error The template is not valid. pipeline.yml (Line: 19, Col: 9): Expected a sequence, or a mapping, got:
I believe the issue is in the TemplateUnraveler:425, but not sure where to start.

I'm glad you were able to figure this out! I'll see what I can do to add a few more integration tests.
Unfortunately, I'm still having issues getting this up and running locally in my own environment. I can log an issue with what I've currently attempted.
As previously expressed, my principal interest is being able to validate the pipelines locally before pushing the commits to origin. I'm not sure that I would want my team to use the emulator to perform deployments locally as we'd lose a lot of traceability.  My ideal scenario would be to run the yaml verification without having to spin up a web-server. For example, extracting the ObjectTemplating SDK capabilities into a Visual Studio Code extension that can perform the template parsing to validate that the syntax is valid.


WIP. Continue node drain after reboot

Since drain operation started we don't need to requires
drain lock for this node because node already has required
annotation.
It's safe to continue node drain procedure without lock.
Closes: #230
Signed-off-by: Ivan Kolodyazhny<EMAIL_ADDRESS>

Let's keep this PR in a WIP state because it requires additional testing, unit-tests implementation and most probably additional fixes

I tested this patch on OCP. It works.

/cc @SchSeba

/test-all

/lgtm


[work in progress] Remove the docker layer caching

Removes the docker layer caching. It's preventing CircleCI from running because the ODK account doesn't support it.

thank you <3 for this PR but i beat you to it by a couple of hours :)
https://github.com/opendatakit/central/pull/111

(maybe please to review? :) )

Aw, thanks, @programmablemike! 😊


wisn

https://github.com/BesutKode/uni-task-1/wiki/wisn

https://github.com/yast/yast-translations/commits?author=wisn&since=2016-09-30T17:00:00Z&until=2016-10-31T17:00:00Z : 20 fixes :+1:
https://github.com/wisn/hapoid :+1:


Check the number of task in the queue

I am a user of gee_tools. I usually export image collection to google drive. However, when the number of the task in the queue is large than 3000, the program will be halted. I wonder if there is any way to check the number of the task in the queue and pause the program when the number is large?
Thanks for your kind help and looking forward to your reply.
Best,
Enze

Hi @enzezhang ! Yes, that is a limit imposed by GEE. I think it's a good idea, I'd need to think how to implement it. Thanks =)

Hi @fitoprincipe, I have made some changes to imagecollection.py. The mean purpose is to check the status of the last task every 10 seconds (it could be longer) after a series of tasks were submitted. When the last task becomes "COMPLETED", the program will keep moving.
after line 79, I add:
if n%20==0 and n>19:
while True:
ID=tasklist[n-2].id
status=ee.data.getTaskStatus(ID)
state=status[0].get('state')
if state=="COMPLETED":
break
else:
print("waiting, check on %s"%time.ctime())
time.sleep(10)

Hope my changes would be useful to you and others.

Hi @fitoprincipe, I have made some changes to imagecollection.py. The mean purpose is to check the status of the last task every 10 seconds (it could be longer) after a series of tasks were submitted. When the last task becomes "COMPLETED", the program will keep moving.
after line 79, I add: if n%20==0 and n>19: while True: ID=tasklist[n-2].id status=ee.data.getTaskStatus(ID) state=status[0].get('state') if state=="COMPLETED": break else: print("waiting, check on %s"%time.ctime()) time.sleep(10)

whats the corrent indentation for the above code snippet and what is the assigned value for variable 'n '  ?

Hi All,
I attached the code. The n is the current number of pictures when looping through the list.
Best,
Enze
On May 27, 2022 09:49，Aditya @.***> wrote：
Hi @fitoprincipe, I have made some changes to imagecollection.py. The mean purpose is to check the status of the last task every 10 seconds (it could be longer) after a series of tasks were submitted. When the last task becomes "COMPLETED", the program will keep moving.
after line 79, I add: if n%20==0 and n>19: while True: ID=tasklist[n-2].id status=ee.data.getTaskStatus(ID) state=status[0].get('state') if state=="COMPLETED": break else: print("waiting, check on %s"%time.ctime()) time.sleep(10)
whats the corrent indentation for the above code snippet and what is the assigned value for variable 'n ' ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Hi @fitoprincipe, I have made some changes to imagecollection.py. The mean purpose is to check the status of the last task every 10 seconds (it could be longer) after a series of tasks were submitted. When the last task becomes "COMPLETED", the program will keep moving.
after line 79, I add: if n%20==0 and n>19: while True: ID=tasklist[n-2].id status=ee.data.getTaskStatus(ID) state=status[0].get('state') if state=="COMPLETED": break else: print("waiting, check on %s"%time.ctime()) time.sleep(10)

Hi @enzezhang , is this in a pull requests??

what if there are other tasks running??? I think the code should cover that...

I've used this code for a while and it works fine.

Also, the number 20 can be changed to any number as long as the number is not close to 3000.

“Otherwise, the code will be stopped until that task is finished.” By "stopped", I mean waiting.

This would be my approach: 3d67fb5977f6bccee2f1285bd94271517e57b5a4. I tested it and works fine

Great!
On May 27, 2022 12:27，Rodrigo E. @.***> wrote：
This would be my approach: 3d67fb5. I tested it and works fine
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

You can test it and see if it works as expected.. if does I can populate the code the the other functions and finally merge and release..

I look at it again, and I think it should be “i<=secure” but not “i+n<=secure”.  i is the number of tasks in queue, and n is the number of current task.
Best,
Enze
On May 27, 2022 13:02，Rodrigo E. @.***> wrote：
You can test it and see if it works as expected.. if does I can populate the code the the other functions and finally merge and release..
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

You are right @enzezhang. I've already modified it, you can check it now. I have migrated the functions to utils so I can use them in the other functions. Thanks =)

Hi,
The data exporting is controlled by the command "task.start()”, in line 65 of imagecollection.py. So the status checking has to be after that command and in the same loop. In the current version, the status checking is after the entire data exporting loop. So the status checking will not be triggered if the program reaches the 3000 limit.
Thanks for your contribution.
Best,
Enze
On May 27, 2022 17:41，Rodrigo E. @.***> wrote：
You are right @enzezhang. I've already modified it, you can check it now. I have migrated the functions to utils so I can use them in the other functions. Thanks =)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

🤔 I've created a mock for testing: https://gist.github.com/fitoprincipe/09d4c24050cd971be475b41790a3f462
Have a look and let me know. I've added some comments to understand the flow. I think it works as expected.

I believe this one can work.
Best,
Enze
On May 28, 2022 13:30，Rodrigo E. @.***> wrote：
🤔 I've created a mock for testing: https://gist.github.com/fitoprincipe/09d4c24050cd971be475b41790a3f462
Have a look and let me know. I've added some comments to understand the flow. I think it works as expected.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

I'm revamping the lib toward a static implementation of gee-python interaction. having a machine running continuously checking if the task can actually be launched in GEE defeat this purpose. I will close this issue for now and I'll be happy to receive feedback once the exportation of ImageCollection is reimplemented.


Suggestions on how to implement associations in a prettier way

Unfortunately I found no way to run the test suite :( and my coffee script skillz are poor at best
class Associations
  @belongsTo: (name, attributes={}) ->
    ctor = attributes.as or (-> Object)

Why couldn't just the second argument be the constructor
IE window.Comment or Comment
In this function al uses of ctor are called anyway
    extend(attributes, set: (properties) ->
      @attributes[name] = new (ctor())(properties))
    @property name, attributes
    @property name + 'Id',

  @hasMany: (name, attributes={}) ->
    ctor = attributes.as or (-> Object)

Same thing applies here
Unless there is a reason for AssociationCollection to call the ctor
to recieve the ctor i argue that the second argument should be the
Contructor
    extend attributes,

It's actually surprisingly tricky to have that optional second argument. I tried that first, but it was pretty messy trying to check if it is given or not. Also, this leaves the problem of circular dependencies.


Cannot run flask on python 3.9

I followed basic example in root of flask repo but after: flask run i got this isssue:
* Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: off
Traceback (most recent call last):
  File "/usr/local/bin/flask", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 894, in main
    cli.main(args=args, prog_name=name)
  File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 557, in main
    return super(FlaskGroup, self).main(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/click/decorators.py", line 73, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 767, in run_command
    app = DispatchingApp(info.load_app, use_eager_loading=eager_loading)
  File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 293, in __init__
    self._load_unlocked()
  File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 317, in _load_unlocked
    self._app = rv = self.loader()
  File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 376, in load_app
    app = locate_app(self, import_name, None,
  File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 235, in locate_app
    __import__(module_name)
  File "/Users/tokra/Documents/Code/ghe/flash-test/app.py", line 4, in <module>
    app = Flask(__name__)
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 558, in __init__
    self.add_url_rule(
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 66, in wrapper_func
    return f(self, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1216, in add_url_rule
    self.url_map.add(rule)
  File "/usr/local/lib/python3.9/site-packages/werkzeug/routing.py", line 1563, in add
    rule.bind(self)
  File "/usr/local/lib/python3.9/site-packages/werkzeug/routing.py", line 710, in bind
    self.compile()
  File "/usr/local/lib/python3.9/site-packages/werkzeug/routing.py", line 766, in compile
    self._build = self._compile_builder(False)
  File "/usr/local/lib/python3.9/site-packages/werkzeug/routing.py", line 1129, in _compile_builder
    return self.BuilderCompiler(self).compile(append_unknown)
  File "/usr/local/lib/python3.9/site-packages/werkzeug/routing.py", line 1120, in compile
    co = types.CodeType(*code_args)
TypeError: code() takes at least 14 arguments (13 given)

Here is my python version:
python3 -V
Python 3.9.1

I'm running it on:  macOS Catalina 10.15.7
Can you help pls ?

Upgrade Werkzeug: pip install -U werkzeug


mi2: Follow tsc type recommendations for some parameters

Since tsc was emitting errors, I decided to apply the suggestions to mi2.ts to (try to) help understand the intent of the code and make the PR. (I know, lazy PR, and didn't check for other PRs).
Without this patch, I cannot launch the addon for debugging.
Open to comments/suggestions/edits/rejection.
EDIT: Added reason, removed some cruft.

Thank you for your contribution; the changes are already part of master so I'm closing that - but the MiNode part is actually only in because of your PR...


Nibs friend req

merge with main. Button currently with posts on home page

@thenibs Just made the fix. Otherwise, your code works on chrome, has some issues on safari tho. Will investigate that later. Probably due to the way the author's JSON is being parsed.


feat: Move Pinned Conversation Indicator

Moved Pinned Conversation indicator to left of title Removed Avatar Indicator
Cleaned up style of indicator to be more reusable
Closes https://github.com/ephemeraHQ/converse-app/issues/920

Let's tag @covrter for visibility on these smaller visual adjustments going forward

Great shout, thanks y'all

@saulmc @covrter This is the work noted in https://github.com/ephemeraHQ/converse-app/issues/729
Should I both at once, fine to do incrementally or do we want to hold off on this for now?

Fine to do incrementally imo!

Will hold onto this PR for a bit while we get the design system in place

For whenever it's appropriate … let's

truncate at 1 line (they're your pins, so you already know the name; this follows apple pattern)
display indicator on the right side (so it's congruent with placement in normal message rows)

NBD, of course … I'll move this full screen into a dev ready frame soon but this element is ready for implementation anytime

https://www.figma.com/design/PUfpkzt9dFX5GR1U1Fw3mQ/Converse-Global-Styles?node-id=28-7121&t=oPHEK3ad8Vi6CxlL-1


Type providers should have a way of affecting update check

In VS, I have code like this:
open FSharp.Data
type Query = SqlCommandProvider<"Query.sql", cn>

[<EntryPoint>]
let main argv =
    let q = new Query()
    let result = q.Execute()
    for v in result do printfn "%A" k.col1
    0

and 'Query.sql' looks like this:
select 1 as col1, 2 as col2
union all
select 2, 1

If I change the name of col1 in 'Query.sql' and save it, I get squiggles thanks to FileSystemWatcher code in FSharp.Data.SqlClient. If I then choose to build, the project is not rebuilt, so it looks like compilation succeeds! This is because 'Query.sql' is not checked by the project system when checking to see if the project needs to be rebuilt. The project system does not know that this file affects the build. Minor issue affecting F# demos everywhere. :)
This issue affects every TP that reads a local file.
A couple of ideas for solving this:

Modify TP interfaces to allow a TP to give a list of files to check. The list is checked after creation and after Invalidate is called.

Breaking change
Each TP needs to be modified to behave, making it an awkward jump to F# vNext for each TP.

Trigger a rebuild if Invalidate has been called on the TP
* No breaking change
* Won't work for incremental command-line builds
* Will not behave properly when solution has just been opened (either always trigger rebuild or never), as invalid state is not persisted.
Add a new TP interface
Can this be done in a way to still allow a TP to be usable from F# 3?

Don't you just add Query.sql to your project and mark it as "Content" (or whichever of those settings is appropriate? :) )

As per CONTRIBUTING.md, suggestions for the F# Language/Compiler/Core-Library should go to F# Language User Voice.

I'd have thought so too, but that doesn't work. That may be because I'm running some 3.x preview build.
Anyway, query.sql isn't content, it's source code without compilation, really.. :)
(Uservoice)[https://fslang.uservoice.com/forums/245727-f-language/suggestions/7090613-allow-type-providers-to-affect-update-check]

Uggh.  It's hard to believe what a mess of options MSBuild gives you.
Did you try BuildAction of "DesignData"?  It seemed to work for me when I just tried (not on a TP example though).  The docs indicate it's something to do with Xaml though so it may not be right http://stackoverflow.com/questions/145752/what-are-the-various-build-action-settings-in-vs-net-project-properties-and-wh

@dsyme Indeed. Unfortunately, "DesignData" does not work for me, though I am running a preview build of 3.1.2 in which @latkin had been messing with update-checks. :)

Adding the file as Content should work with the new fast up-to-date check, as that's one of the item types that gets tracked. See here. If that's not working for some reason, first step to debug is to set the reg key mentioned here so that logging is turned on.
And FWIW this behavior is not a regression with new up-to-date check, the old msbuild-based check didn't know about these files, either.

Sorry for this (sounds a bit like msbuild questions)
In my context I have dozens of .sql files (will become hundreds), and the code sample that @rojepp gave is generated whenever a file is added / removed.
Is there an option for me to make msbuild 'glob' all those files recursively (given a root directory) instead of having to maintain the project file?
Is there a way to make those file unseen in VS in case there is too much overhead showing those?


move testable to smart file

Closed by https://github.com/vslinko/ripster/commit/2b3f1e91cd83f6f7d7020cca1cd02fb961be20de


custom skeleton dataset and puppet scale

Hi, thanks for your nice work!
Currently, I'm working on skeleton-based action recognition from the video clip.
The dataset in your paper, JHMDB is a well-annotated dataset with a puppet scaling factor for all skeleton.
the explanation on the JHMDB website is
1. See a sample annotation of the 15 positions at http://jhmdb.is.tue.mpg.de/puppet_tool
2. Due to the nature of the puppet annotation tool, all 15 joint positions are available even if they are not annotated when they are occluded or outiside the frame.
In this case, the joints are in the neutral puppet positions.
3. The right and left correspond to the right and left side of the annotated person. For example, a person facing the camera has his right side on the left side of the image, and a person back-facing the camera has his right side on the right side of the image.

(4) pos_world is the normalization of pos_img with respect to the frame size and puppet scale,Â
the formula is as below

pos_world(1,:,:) = (pos_img(1,:,:)/W-0.5)*W/H./scale;
pos_world(2,:,:) = (pos_img(2,:,:)/H-0.5)./scale;

W and H are the width and height of the frame, respectively.

But in a custom dataset extracting from a video clip. there is no puppet scaling factor.
In my experiments, accuracy on JHMDB without puppet scaling dropped the accuracy from 77% to 62%, which is huge.
So, is there any suggestion for tuning/keyword/formula/idea to simulate the puppet scaling factor?
Thanks!

Hi, how do you think of normalizing the skeleton scale by using the spine length, e.g., ||p1-p2|| in puppet dataset.

@fandulu , thanks for your reply. I actually get 62% from ||p1-p2||. If I get anything. I'll update this!

@YLTsai0609 ,  thanks for your comments. The JHMDB generated by a pose estimator contains more noise than the hand-annotated ones (used in this paper), I cannot improve the performance than you by DD-Net.
Although 3D SHREC data is also very noisy, DD-Net works fine on it. I suppose that 2D noisy skeleton is more challenging than 3D noisy skeleton for DD-Net. It is a limitation of DD-Net.


Improve forward declaring types

Will fix https://github.com/water111/jak-project/issues/595

Pull Request Test Coverage Report for Build 941091857

44 of 56 (78.57%)  changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.004%) to 69.539%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

common/type_system/TypeSystem.cpp
39
51
76.47%

Totals

Change from base Build 937969101:
-0.004%

Covered Lines:
36440

Relevant Lines:
52402

💛  - Coveralls


Change code editor default font

I have checked the following:

[X] I've searched existing issues and found nothing related to my issue.

Describe the feature you want to add
Currently the default font of the CodeMirror editor is "monospace" which is I think a bit old fashioned and a bit too light also.
I suggest to use the same default font as Visual Studio Code which is: Consolas, 'Courier New', monospace
Mockups or Images of the feature
In light theme:

In dark theme:

Preferences:

This might be platform depended, since my default font seems quite good under GNU/Linux.
Then again, maybe I'm a bad example since I also changed my fonts via fontconfig under Linux see: https://gitlab.melroy.org/melroy/dotfiles/-/blob/main/home/melroy/.config/fontconfig/fonts.conf?ref_type=heads#L5


Are any exclusions required for Defender to live happily?

If another antivirus software is installed like CarbonBlack or CrowdStrike, do the Defender files and paths need to be excluded from in these other products? For example: CarbonBlack could tamper, touch and break Defender files in C:\SYSTEM\DEFENDER (Not the correct path, just an assumption for examples sake)
If Defender does in-fact require exclusion from other products, please can these exclusions be listed?

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

ID: 3b88aee4-6727-fa98-1180-29708eea027e
Version Independent ID: 374c671b-b21c-6eac-d887-892491357eb2
Content: Microsoft Defender Antivirus compatibility with other security products - Windows security
Content Source: windows/security/threat-protection/microsoft-defender-antivirus/microsoft-defender-antivirus-compatibility.md
Product: m365-security
Technology: mde
GitHub Login: @denisebmsft
Microsoft Alias: deniseb

This isn't Defender fault then. Third party tools need handle this correctly.
Or stay with Defender and live without such nonsense problems.

This isn't Defender fault then. Third party tools need handle this correctly.

Its not a fault at all, but if Defender requires other products do not touch its files then it must be documented. All other vendors do this.

Or stay with Defender and live without such nonsense problems.
Thats great in practice but some folks have a mandate to run certain anti-virus solutions, its silly and yes maybe nonsense but a real use case none the less. Again, if Defender needs exclusions to work correctly with other vendors, it needs to be documented.

Hello @Clickbaitcake ,
If another antivirus software is installed like CarbonBlack or CrowdStrike, do the Defender files and paths need to be excluded from in these other products? - no, they don't. Microsoft Defender Antivirus files are considered as system files and are not touched by third-party antiviruses.
However, you should remember that Windows Server 2016 doesn't support passive mode, and in this case you should remove Defender Antivirus prior to installation of the third-party antivirus.
Thank you


Corrected parameter types of two GL calls.

Function parameter types for glClearDepth and glDepthRange were incorrect, causing invalid data to be sent, breaking some 3D contexts.

Away3D displays a black screen in all of its examples, currently. That is how I found it in the first place, I ran apitrace through on the currently released versions of OpneFL and received some rather strange results on Linux, namely oddities like: glClearDepth(depth = 0.007812501848093234) When depth is 1 all throughout the haxe portion.

Well done ! TBH I searched this one for a long time before abandonning. You rock very much !


fix: set color index on overlay avatars

Fixes #37

@yuriy-fix this is a focus-ring which is set on closing to indicate that avatar has focus:
https://github.com/vaadin/vaadin-avatar/blob/37ffa30a5bb229c01e704202a2c3659806c1e18e/src/vaadin-avatar-group.html#L236

Ok, makes sense to create an enhancement ticket.


sprite json data "sourceSize" change to a optional data

Hm. Why is it optional?

@ivanpopelyshev
coz, I has recognized that Texture class's orig is optional, right?
https://github.com/pixijs/pixi.js/blob/dev/src/core/textures/Texture.js#L99

I do not know if it is optional in spritesheet format.

I do not know if it is optional in spritesheet format.

incidentally, v3 is working.
https://github.com/pixijs/pixi.js/blob/master/src/loaders/spritesheetParser.js#L85

I do not understand what's the bug and what are you trying to fix. Can you be more clear please?

Sorry for that, I tried to reduce in json size. But, it's not good technique.

Ah, that's fine. Just make your own parser for your format, and ask me if you will have problems with creating textures


Getting added/removed items

Wow this is a really nice library!
One thing im not sure how to accomplish is to actually get which items have been added or removed when comparing? It shows the count is different but i dont see how to actually get the needed items..
any clue?

Thanks for the kind words.  Set IgnoreOrder to false

I have done that but it still shows nothing about which item has been removed .. only that the count is different... ?
I am still experimenting with this...

I would:

Output your XML to a string
Format it with https://www.freeformatter.com/xml-formatter.html
Use Beyond Compare to compare the XML strings

Try adding a CollectionMatchingSpec.  See the help file.

I tried a little with the matxhingspec but got an error. I think my custom class is missing something for that to work.
I had to step out for 30 mins will take a look further when I'm back.

Ok i think i know what the problem is:
the schema i use (have to use its from a third party provider) is built like this:
<product_data>
<product_specs>
    <id>1</id>  - this im adding manually and it fixes the problem
    <classification>
      <key>123123</key>
       ....
    </classification>
   <marketing_copy>
     .....
   </marketing_copy>
</product_specs>
<product_specs>
    <id>2</id> - this im adding manually and it fixes the problem
    <classification>
      <key>323232</key>
        ...
    </classification>
   <marketing_copy>
     .....
   </marketing_copy>
</product_specs>
</product_data>
//and the line to compare, using product_data as type (product_specs also doesnt work, unless i manually add the id field)
ComparisonResult result = compareLogic.Compare(PreviousProductData, NewProductData);

So i guess one way is to manually add this id field after i receive the xml but i would like to avoid it if possible as it will create a lot of work making sure the IDs line up also leaves room for discrepancies .
Is there anyway to tell comparedotnet to look at the internal field of "classification" and do its magic?

hmm i think the actual issue was that there were other fields in the xml with property "key" .. once i changed classification -> key to key2 it works!

damn .. i tried this and it didnt work: (it only worked when i changed "key" to "key2" in the xml class, would like to avoid)
var spec = new Dictionary<Type, IEnumerable<string>>();
                        compareLogic.Config.IgnoreCollectionOrder = true;
                        compareLogic.Config.IgnoreObjectTypes = true;
                        spec.Add(typeof(classification), new string[] { "key" });
                        spec.Add(typeof(this_item_in_other_colorsProduct), new string[] { "key" });
                        compareLogic.Config.CollectionMatchingSpec = spec;

Greg i simplified my class and code so i can paste it hoping you can help me understand why its not doing what it seems like it should do:
The class structure:
public class product_data
{
    private product_specs[] product_specsField;
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("product_specs")]
    public product_specs[] product_specs
    {
        get
        {
            return this.product_specsField;
        }
        set
        {
            this.product_specsField = value;
        }
    }
}
public class product_specs
{
    private classification classificationField;
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("classification")]
    public classification classification
    {
        get
        {
            return this.classificationField;
        }
        set
        {
            this.classificationField = value;
        }
    }
}
public class classification
{
    private string keyField;
    private string brand_codeField;
    private this_item_in_other_colorsProduct[] this_item_in_other_colorsField;
    public string key
    {
        get
        {
            return this.keyField;
        }
        set
        {
            this.keyField = value;
        }
    }
    /// <remarks/>
    public string brand_code
    {
        get
        {
            return this.brand_codeField;
        }
        set
        {
            this.brand_codeField = value;
        }
    }
    /// <remarks/>
    public this_item_in_other_colorsProduct[] this_item_in_other_colors
    {
        get
        {
            return this.this_item_in_other_colorsField;
        }
        set
        {
            this.this_item_in_other_colorsField = value;
        }
    }
}
public class this_item_in_other_colorsProduct
{
    private string keyField;
    private string color_code_descriptionField;
    /// <remarks/>
    public string key
    {
        get
        {
            return this.keyField;
        }
        set
        {
            this.keyField = value;
        }
    }
    /// <remarks/>
    public string color_code_description
    {
        get
        {
            return this.color_code_descriptionField;
        }
        set
        {
            this.color_code_descriptionField = value;
        }
    }
}

and the calling code:
CompareLogic compareLogic = new CompareLogic();
//compareLogic.Config.ClassTypesToIgnore
//compareLogic.Config.ComparePrivateFields = true;
//compareLogic.Config.MaxStructDepth = 5;
//compareLogic.Config.ComparePrivateProperties = true;
compareLogic.Config.MaxDifferences = 10000;

var spec = new Dictionary<Type, IEnumerable<string>>();
compareLogic.Config.IgnoreCollectionOrder = true;
compareLogic.Config.IgnoreObjectTypes = true;
spec.Add(typeof(classification), new string[] { "key" });
spec.Add(typeof(this_item_in_other_colorsProduct), new string[] { "key" });
compareLogic.Config.CollectionMatchingSpec = spec;

//Create a couple objects to compare
product_data dataOld = new product_data();
product_specs[] specsOld = new[]
{
    new product_specs
    {
        classification =
            new classification()
            {
                key = "1",
                brand_code = "Bosch",
                this_item_in_other_colors =
                    new[]
                    {
                        new this_item_in_other_colorsProduct()
                        {
                            key = "10",
                            color_code_description = "White"
                        },
                        new this_item_in_other_colorsProduct()
                        {
                            key = "100",
                            color_code_description = "Black"
                        }
                    }
            },
    },
    new product_specs
    {
        classification =
            new classification()
            {
                key = "2",
                brand_code = "LG",
                this_item_in_other_colors =
                    new[]
                    {
                        new this_item_in_other_colorsProduct()
                        {
                            key = "20",
                            color_code_description = "White"
                        },
                        new this_item_in_other_colorsProduct()
                        {
                            key = "200",
                            color_code_description = "Black"
                        }
                    }
            },
    }
};
dataOld.product_specs = specsOld;
product_data dataNew = new product_data();
product_specs[] specsNew = new[]
{
    new product_specs
    {
        classification =
            new classification()
            {
                key = "1",
                brand_code = "BoschNew",
                this_item_in_other_colors =
                    new[]
                    {
                        new this_item_in_other_colorsProduct()
                        {
                            key = "10",
                            color_code_description = "White"
                        }
                    }
            },
    }
};
dataNew.product_specs = specsNew;

ComparisonResult result = compareLogic.Compare(dataNew, dataOld);
//These will be different, write out the differences
if (!result.AreEqual)
    Console.WriteLine(result.DifferencesString);

it should say that the "LG" product_spec is gone but instead it just says the count of product_data.product_specs is different... while the "this_item_in_other_colorsProduct" works correctly and says item key 100 ("black") is now null which is perfect!
your help/input would be GREATLY appreciated. Im on a bit of a time crunch and this is driving me crazy :(

I am unfortunately too busy to help right now.  I have a day job with Sogeti.  During the evenings and weekends I have my side business Kellerman Software.  Plus I also have three kids and am a Cub Scout Leader.
I would debug the source looking at where the collection matching spec is used.

Greg sorry for driving you crazy but i just opted with looping my specs and manually and "copying" the key value from classification to the parent spec :)

i didnt see your previous comment (didnt refresh browser i guess) .. i completely understand! sounds like a handful keep up the amazing work!!!


Suggestion: Pull CP names and spawn path names

Not sure if this is possible, but as someone who's trying to set up AI Hero Support without a working zero editor it would be a nice touch. Your scripts for MEU were very helpful for conquest but are missing CTF game modes. - Nate

Shouldn't be terribly difficult to build a simple parser that extracts the name from the Object line in WLD/LYR files.

Update: It works!


Add README

Really needs a readme that explains what the repo does so it is immediately clear for anyone checking this repo out.

Closed by ab6dfadb87d7d3134b8c6eaa05911489283f22d5


Show which projects use only packages from defaults

There has been a discussion around how to expose which projects work with only the defaults channel.
This work has two parts:

Going through the projects in this repo and removing the pyviz channel dependency to see whether they can build with just defaults (estimate 2 days).

Displaying that in the static version of the site.
a. I think the right way of doing that would be to implement a labelling system which would then show up on the gallery page or generate new gallery pages for each label. This would requite changes in nbsite and making nbsite aware of anaconda-project.yml in a way that it isn't yet. But it would also allow us to label projects with 'datashader' or 'geoviews' which serves our long-term goals (estimate 4 days).
b. Instead of implementing the label system, we could cheat and make a .rst with static links to the right gallery assets (estimate 1 day).

I vote for 1 at least.  Would it be hard to have a status page like http://status.pyviz.org that lists the channels required for each deployment?  Is that easier or harder than 2a?

Would it be hard to have a status page like http://status.pyviz.org that lists the channels required for each deployment?

I think that is about as hard as 2a without the extensibility.

Ok, then I vote for 2a, because the .rst one will be too hard for us to maintain.


the header to display name and score

Added a name and score input to display the player's name and their score.

As discussed in Discord, you would need to make some changes so that it includes the functionality of displaying the player's name and score.

As discussed in Discord, you would need to make some changes so that it includes the functionality of displaying the player's name and score.

It was mentioned in discord that Michael is working on the score functionality, so I will work on the name functionality (and leave out displaying the score) so it doesn't conflict with what Michael is doing.

The score doesn't need a form, we'll be calculating the score for them, it's not an input we take from the player. We only need an input to take their name, a space to display the name, and a space to display the score. You can write the javascript to display the name from the input on the header. Michael/Ashley are working on keeping track of the score and once that's done something can be added to their function to update the score in the dom.

I was thinking of using the read-only attribute for the score section after I know how the score is going to be implemented.  So even though it is a form/input field, users can type in there but then we can use it to display the score. But I like your suggestion too.


Any luck with filesystem paths?

You mentioned filesysystem path don't work. Wondering if you were able to figure out the issue.
Thanks for shareing!

Can you write an instalable demo for a list of m3u8 videos from a remote m3u playlist?


Refactor existing Metadata Schema & Field pagination tests to determine pagination dynamically

Fixes randomish errors that are occurring around the number of schema installed in our test database. This is affecting a number of PRs, including

https://github.com/DSpace/DSpace/pull/3170#issuecomment-811197822
https://github.com/DSpace/DSpace/pull/3200#issuecomment-811040486

To fix the test errors, I've refactored the problematic tests to now:

(First commit) Determine number of schema in DB prior to checking pagination returned from the REST endpoint.  Previously we were checking for a hardcoded number of schema.  However, as the number of schema is configurable (see registry.metadata.load configuration), hardcoding the number of schema is a flawed approach to this test.
(Second commit) Determine number of metadata fields in the same dynamic manner. Again, number of metadata fields can easily change alongside schema, so hardcoding this value is a flawed approach to this test.

Thanks @tdonohue to take action and fix the build. We can discuss that more in today mtg, this fix can stay as a temporary solution but it is better imho that test hardcode they assumption, if the number of schema change randomly this mean that some test fails to cleanup what they have done and this is the problem that we need to fix


Update x to v0.3.4

This commit updates x to v0.3.4, letting us take advantage of context propagation when creating events.

this has been updated to the latest version in another pr.


How can I profile a node.js application?

Expected Behavior
Click Analyze/Performance profiler, have an app profiled.
Actual Behavior
http://korak.info/tempo/vs2017-exception-profiler.png

NTVS Version:
Visual Studio Version:
Node.js Version:

Steps to Reproduce

Click Analyze/Performance profiler, have an app profiled.
Click start

There is no Profiler in NTVS for VS 2017. It has too many issues (it rarely works in VS 2015 either). So unfortunately you'll need to use something other than VS to profile your Node.js app.


Library from referenced *.robot resource is not imported

Hi,
I have a CommonPage.robot that is importing Selenium2Library:

Library    Selenium2Library

then I have LoginPage.robot that references CommonPage.robot:

Resource   CommonPage.robot

now, all selenium-related keywords in LoginPage are marked with error (keyword is not defined).
Is it expected behaviour ? It's kind of limiting me from using language benefits - like having all imports in a single file and not having to update lots of file on any change.
P.S.: if I import Selenium2Library in LoginPage itself - error highlighting from selenium-related keywords disappear.

Closing issue as it is working now. Was it temp glitch or IDEA restart helped - don't know. If re-produces will re-open with additional details. Sorry for inconvenience.


WIP: Add clientId rate limit type support

Fixes #145

Coverage decreased (-97.8%) to 0.0% when pulling 8cab7f2816346fd26dd3e4423ab68a81b6153cc4 on ghi-145 into bb038efd9cb326693fe151d3fa17d690ed29bfeb on master.

Hello @marcosbarbero
I'm interested by this PR, tell me if I can help in progress.
I have tested it after un rebase on master and it works fine.

Hi @EstebanDugueperoux2 the implementation is pretty simple and should work, I'm just struggling to create unit tests for it.
Maybe I'll just cover this feature with integration tests.

Too outdated, will be fixed on #347


Add agent and os in GhA report

[ ]highlight the error from os/agent
[ ]make a priority list of errors and highlight (change to yellow or red the label of module anytime I discover an error)
[ ]add filer for run number or search button

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


Question: is it possible to use different colors in a radar chart?

Hi everyone!
I am trying to create a radar chart, using Vega language, where each dot representing  category has a different color but the filling color to be a single color. At the moment, I am able to do one or the other (never both at the same time). Do you think this is possible? Bellow I show the two examples and the desired chart would be both overlapping. (Thank you so much in advance for any assistance you can provide!)

Here is part of the code that I'm trying to modify without success :
"data": [
{"name": "dataset"},
{
"name": "keys",
"source": "dataset",
"transform": [
{
"type": "aggregate",
"groupby": ["Risk_Area"]
}
]
}
],
"scales": [
{
"name": "angular",
"type": "point",
"range": {"signal": "[-PI, PI]"},
"padding": 0.7,
"domain": {
"data": "dataset",
"field": "Risk_Area"
}
},
{
"name": "radial",
"type": "linear",
"range": {
"signal": "[0, radius]"
},
"zero": true,
"nice": true,
"domain": {
"data": "dataset",
"field": "value"
},
"domainMin": 0
},
{
"name": "color",
"type": "ordinal",
"domain": {
"data": "dataset",
"field": "Risk_Area"
},
"range": {"scheme": "category20"}
}
],
"encode": {
"enter": {
"x": {"signal": "radius"},
"y": {"signal": "radius"}
}
},
"marks": [
{
"type": "group",
"name": "categories",
"zindex": 1,
"from": {
"facet": {
"data": "dataset",
"name": "facet",
"groupby": ["Risk_Area"]
}
},
"marks": [
{
"type": "line",
"name": "category-line",
"from": {"data": "facet"},
"encode": {
"enter": {
"interpolate": {
"value": "basis"
},
"x": {
"signal": "scale('radial', datum.value) * cos(scale('angular', datum.Risk_Area))"
},
"y": {
"signal": "scale('radial', datum.value) * sin(scale('angular', datum.Risk_Area))"
},
"stroke": {
"scale": "color",
"field": "Risk_Area"
},
"strokeWidth": {
"value": 10
},
"fill": {
"scale": "color",
"field": "Risk_Area"
},
"fillOpacity": {
"value": 0.1
}
}
}
},
Kind regards.

I think you need one mark for the line and another for the markers.
Using this radar chart example,
I added a new color scale for the markers and
duplicated the "category-line" part in "marks" to "marker".
There
"type" is changed from "line" to "symbol",
"scale" for "stroke" and "fill" is now the new color scale and "field" is the dimension ie "key"
Open the Chart in the Vega Editor

That was incredibly helpful!
Thank you very much, @reijar . I was totally lost and modifying the wrong part of the code.
Thanks.


[REVIEW] svelte-command-palette

Project link
https://github.com/rohitpotato/svelte-command-palette

looks great, some suggestions

I don't think it is a good idea to commit the .vscode folder
add code of conduct
add a license
use issue labels
use GitHub Actions (create release, build, tests...)


projector notebook added and projector code slightly modified to impr…

…ove speed
See notebook for theory.

Still to do - fix notebooks!


update confluent dependency version to 7.6.0

fixes #30610

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

There are test failures related to avro code generation dependency change:
java.lang.NoClassDefFoundError: Could not initialize class org.apache.beam.sdk.io.gcp.bigquery.AvroGenericRecordToStorageApiProtoTest
...

and
java.lang.AssertionError: null definition should throw an exception: unexpected exception type thrown; expected:<java.lang.NullPointerException> but was:<org.apache.avro.SchemaParseException>
	at org.junit.Assert.assertThrows(Assert.java:1020)
	at org.apache.beam.sdk.io.gcp.pubsub.PubsubClientTest.fromPubsubSchema(PubsubClientTest.java:206)
Caused by: org.apache.avro.SchemaParseException: Cannot parse <null> schema
	at org.apache.avro.Schema.parse(Schema.java:1692)

see https://github.com/apache/beam/runs/22672196056

Thanks for the contribution! It involves avro dependency and things get tricky. As avro dependency in Beam is known to be hard to change.
Is it possible to avoid avro dependency changes and still update confluent dependency?

Thanks for the contribution! It involves avro dependency and things get tricky. As avro dependency in Beam is known to be hard to change.
Is it possible to avoid avro dependency changes and still update confluent dependency?

Thanks for reviewing! I'll try fixing the problems that the tests discovered, if it gets too tricky or risky I imagine we might want to update the confluent version gradually, ie instead of going straight for the 7.6.0 maybe try first with something less radical like 6.x or even 5.4

also, it's good to run https://github.com/apache/beam/actions/workflows/beam_PostCommit_Java_Avro_Versions.yml in this PR. You can add an empty file named .github/trigger_files/beam_PostCommit_Java_Avro_Versions.json to trigger the test, see README here: https://github.com/apache/beam/tree/master/.github/workflows

Run Java_GCP_IO_Direct PreCommit

There is (only) one integration test failing, not too bad:
testBigQueryStorageReadProjectionPushdown (org.apache.beam.sdk.io.gcp.bigquery.BigQueryIOStorageReadIT) failed
java.lang.RuntimeException: org.apache.beam.sdk.util.UserCodeException: java.lang.IllegalArgumentException: Error converting field Field{name=string_field, description=, type=STRING, options={{}}}: Not a valid schema field: string_field
...
Caused by: org.apache.avro.AvroRuntimeException: Not a valid schema field: string_field
	at org.apache.avro.generic.GenericData$Record.get(GenericData.java:282)
	at org.apache.beam.sdk.io.gcp.bigquery.BigQueryUtils.lambda$toBeamRow$5(BigQueryUtils.java:500)

See https://github.com/apache/beam/runs/22988286765


⚠ Bofrost.de has degraded performance

In e582d0d, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1430 ms

Resolved: Bofrost.de performance has improved in 61873a2 after 6 minutes.


GPU integration with cuDF

Hello @twopirllc
I have been an ardent user of pandas-ta library for over 2 years, and i really appreciate your work and the work of all open source contributors to this project.
Recently I have been trying to write some computation code on GPU for ranking and sorting operation using cuda Dataframes.
https://github.com/rapidsai/cudf/
Seems like a lot of compute can be accelerated using GPU. However this cuDF NVIDIA library does not have all low level math functions implemented like in pandas; for example moving averages etc etc.
Nvidia has a gQuant plugin library with some cuda finance indicators that i was trying to use.
https://github.com/NVIDIA/fsi-samples/tree/e3a5e46a029789e340daa552ffe2adf55d60b547/gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/cuindicator
I tried to port pandas-ta to adapt to GPU using this but seem like I dont have enough skills to rewrite the library.
Is there any future plan to implement a GPU version of pandas-ta where applicable. I understand not all functions or mathematical operations can be accelerated.
Appreciate your comments.
-towshif

Hello @krazykoder,

I have been an ardent user of pandas-ta library for over 2 years, and i really appreciate your work and the work of all open source contributors to this project.

Great! Thanks!

I tried to port pandas-ta to adapt to GPU using this but seem like I dont have enough skills to rewrite the library.

Yes, it is harder than it appears. Especially with all the variations of an indicator depending on the platform or library they use. Users demand speed and consistency and that has and will be a frequent software management issue for a Technical Analysis Library; like I am experiencing now.

Is there any future plan to implement a GPU version of pandas-ta where applicable.

Not likely in the near future. 😞
As discussed with xmatthias from freqtrade in comments https://github.com/twopirllc/pandas-ta/issues/367#issuecomment-901361995, there could possibly be a host of issues and that can be rather difficult for a maintainer to resolve. However one can make an independent library that uses Pandas TA as a fallback as Matthias recommends. But in order for me to dedicate serious time to do start another independent TA library would require some financial support to warrant exceeding the free time I barely have already to build and maintain Pandas TA.
Apologies if this is not what you hoped to hear.
Kind Regards,
KJ

@rahimkhoja  did you see performance boost in general - I did some investigation on this back in 2022 after I posted my request ; my understanding was that GPU workload could make calculation faster overall for a huge >1M data series points; however  data copy overhead to GPU won't be worth for smaller datasets which is typically say 5000 to 10000 time series points; a CPU only C/C++ or rust implementations and having a port to python - this library would be worth trying is my guess.
But I did read some materials that if the data needs be groups, segmented or reorganized a GPU data frame would be lightning fast for realtime analysis use cases.


Upgrading digikam to 4.13.0 [GH: #15350].

As per #15350

Needs a shasum update.
audit for digikam: failed
 - download not possible: sha256 mismatch
Expected: d06c37484bf80b1fe8e55302951606588c9f731277f62931698d324f15ae40aa
Actual: badc0d7f4f3c7092f0722cfcd546cea277e11ac97f948e4e1a23e749f3c400a0
Error: audit failed

See also hash on http://download.kde.org/stable/digikam/digikam-4.13.0-Yosemite.pkg.mirrorlist
Please fix & squash your commits - if you need any help, let us know!

Sure, I realized after the test that I've taken wrong sha1, which was the redirect page it-self, after that it was downloading the file ages. Let me update it.

Seems to be fixed now in 97baffb842f43c0557754047eb4dac64dca6d94b


Is it possible to login with session token?

Scenario/Intent
I have a RESTful service that queries OneView resources via python-hpOneView and I want to provide session resources in this service using OneView credentials. The simple scenario is, considering each RESTful service corresponds to a single OneView appliance:

the service knows OneView ip address;
the user post to the service a username+password combination; it creates a hpOneView client instance and gives back the x-auth-token on the service header
the user access other services resources passing x-auth-token header which is used to build another hpOneView client instance and perform requests.

I know that python-hpOneView POSTs username+password to OneView's /rest/login-sessions when creating a new client instance and I think that a similar approach can be used with the session token and a PUT request to validate it.
Would you consider providing this additional authentication in a near version?

Looks the same as #273 .
Possibly doable, but it's important to mention that the maintainer's role for this SDK is currently being transitioned to another team by end of this month.
I'll try to get this into our list of priorities before the hand over.

Thank you, @fgbulsoni!
It is indeed the same as #273... sorry for opening a new issue!

Resolved by #335 .


Sitemap generation

When building my site I want to generate a sitemap so that search engines pick up on all my site pages
Acceptance

[ ] Sitemap is generated with all pages
[ ] Should not list "private" pages or similar

Tasks

[ ] Brainstorm an implementation

[ ] What is a sitemap
[ ] Look at how pliny does this - https://github.com/timlrx/pliny (note a bug https://github.com/timlrx/pliny/pull/83)
[ ] What nextjs libraries / approaches for this

Notes
Approach analysis:

nextjs docs has an implementation of adding a sitemap to pages pages/sitemap.xml.js which has a generate function. This uses getServerSideProps but I thiink this can test it out with getStaticProps too.

https://nextjs.org/learn/seo/crawling-and-indexing/xml-sitemaps

pliny's approach is running a post build script that generates a sitemap in /public similar to how we have for search.json

also uses a globby package
vercel has a repo with similar implementation - https://github.com/vercel/next.js/tree/canary/examples/with-sitemap

next-sitemap - https://github.com/iamvishnusankar/next-sitemap

config file in template - next-sitemap.config.js
add post build script in package.json - "postbuild": "next-sitemap"

@khalilcodes as we talked, please write an analysis as per the tasks above before implementing. Thanks!

@olayway added some approaches in description notes.

Thank you @khalilcodes, I'll take a look today!

@khalilcodes my 2c is i'd recommend following pliny i think (it sounds like it is based on nextjs example).


Upgrade the versions of the tools we use in the strongbox-web-integration tests

Task Description
We need to upgrade the versions of the tools that we use in the strongbox-web-integration-tests. This is the master task to cover this work.
Tasks
The following tasks will need to be carried out:

[x] Upgrade the version of Chocolatey in strongbox-web-integration-tests to the latest ( #1826 )
[x] Upgrade the version of Gradle in strongbox-web-integration-tests to the latest ( #1827 )
[x] Upgrade the version of NPM in strongbox-web-integration-tests to the latest ( #1828 )
[x] Upgrade the version of Nuget in strongbox-web-integration-tests to the latest ( #1829 )
[x] Upgrade the version of SBT in strongbox-web-integration-tests to the latest ( #1830 )

Useful Links

ci-build-images
strongbox-web-integration-tests

Help

Our chat
Points of contact:

@steve-todorov
@carlspring
@sbespalov

Thanks for all the help! :)


ERROR Except thrown while pushing user data

Hi Both ,
Have you ever encountered a similar issue ?
Sep 25 21:56:53 ERROR Except thrown while pushing user data:[Errno socket error] timed out
thanks !

No. I have never experienced such problem before and no similar issue has been opened. If the situation persists, please post your log with SS_VERBOSE set to True and LOG_LEVEL set to logging.DEBUG in the configuration file.
Btw, please delete any sensitive info before posting such as email addresses.

Hi Howard ,
about  the SS_LOG as below .
"config.py" [converted] 101L, 3417C written
killermaster@killermaster:~/ss-panel/shadowsocks-py-mu/shadowsocks$ python servers.py
Oct 08 19:59:43 INFO -----------------------------------------
Oct 08 19:59:43 INFO Multi-User Shadowsocks Server Starting...
Oct 08 19:59:43 INFO Current Server Version: 3.4.0
Oct 08 19:59:43 INFO Now using MultiUser API as the user interface
Oct 08 19:59:43 INFO Now starting manager thread...
Oct 08 19:59:48 INFO Now starting user pulling thread...
Oct 08 19:59:53 INFO Now starting user pushing thread...
Oct 08 19:59:53 INFO api upload: pushing transfer statistics
Traceback (most recent call last):
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 228, in thread_db
rows = DbTransfer.pull_db_all_user()
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 255, in pull_db_all_user
rows = DbTransfer.pull_api_user()
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 288, in pull_api_user
f = urllib.urlopen(url)
File "/usr/lib/python2.7/urllib.py", line 87, in urlopen
return opener.open(url)
File "/usr/lib/python2.7/urllib.py", line 213, in open
return getattr(self, name)(url)
File "/usr/lib/python2.7/urllib.py", line 350, in open_http
h.endheaders(data)
File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 897, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 859, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 836, in connect
self.timeout, self.source_address)
File "/usr/lib/python2.7/socket.py", line 575, in create_connection
raise err
IOError: [Errno socket error] timed out
Oct 08 20:00:18 ERROR Except thrown while pulling user data:[Errno socket error] timed out
Traceback (most recent call last):
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 243, in thread_push
DbTransfer.get_instance().push_db_all_user()
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 84, in push_db_all_user
users = DbTransfer.pull_api_user()
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 288, in pull_api_user
f = urllib.urlopen(url)
File "/usr/lib/python2.7/urllib.py", line 87, in urlopen
return opener.open(url)
File "/usr/lib/python2.7/urllib.py", line 213, in open
return getattr(self, name)(url)
File "/usr/lib/python2.7/urllib.py", line 350, in open_http
h.endheaders(data)
File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 897, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 859, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 836, in connect
self.timeout, self.source_address)
File "/usr/lib/python2.7/socket.py", line 575, in create_connection
raise err
IOError: [Errno socket error] timed out
Oct 08 20:00:23 ERROR Except thrown while pushing user data:[Errno socket error] timed out
^CTraceback (most recent call last):
File "servers.py", line 120, in
main()
File "servers.py", line 116, in main
time.sleep(100)
KeyboardInterrupt
killermaster@killermaster:~/ss-panel/shadowsocks-py-mu/shadowsocks$

Error 500 is HTTP Internal Server Error and timeout shows that your shadowsocks server has no way to fetch information from your panel because it takes too long to respond. Please check the configuration of your web server which is hosting your ss-panel or whatever you are using. This is not an issue caused by shadowsocks server. If necessary, please open an issue at the repository of the panel you are using.

as blow is SS DEBUG  log 👍
killermaster@killermaster:~/ss-panel/shadowsocks-py-mu/shadowsocks$ python servers.py
Oct 08 20:43:06 INFO -----------------------------------------
Oct 08 20:43:06 INFO Multi-User Shadowsocks Server Starting...
Oct 08 20:43:06 INFO Current Server Version: 3.4.0
Oct 08 20:43:06 INFO Now using MultiUser API as the user interface
Oct 08 20:43:06 INFO Now starting manager thread...
Oct 08 20:43:06 DEBUG using event model: epoll
Oct 08 20:43:11 INFO Now starting user pulling thread...
Traceback (most recent call last):
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 228, in thread_db
rows = DbTransfer.pull_db_all_user()
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 255, in pull_db_all_user
rows = DbTransfer.pull_api_user()
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 289, in pull_api_user
data = json.load(f)
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Oct 08 20:43:12 ERROR Except thrown while pulling user data:No JSON object could be decoded
Oct 08 20:43:16 INFO Now starting user pushing thread...
Oct 08 20:43:16 INFO api upload: pushing transfer statistics
Traceback (most recent call last):
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 243, in thread_push
DbTransfer.get_instance().push_db_all_user()
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 84, in push_db_all_user
users = DbTransfer.pull_api_user()
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 289, in pull_api_user
data = json.load(f)
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Oct 08 20:43:16 ERROR Except thrown while pushing user data:No JSON object could be decoded
Traceback (most recent call last):
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 228, in thread_db
rows = DbTransfer.pull_db_all_user()
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 255, in pull_db_all_user
rows = DbTransfer.pull_api_user()
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 289, in pull_api_user
data = json.load(f)
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Oct 08 20:43:42 ERROR Except thrown while pulling user data:No JSON object could be decoded
Traceback (most recent call last):
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 228, in thread_db
rows = DbTransfer.pull_db_all_user()
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 255, in pull_db_all_user
rows = DbTransfer.pull_api_user()
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 289, in pull_api_user
data = json.load(f)
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Oct 08 20:44:12 ERROR Except thrown while pulling user data:No JSON object could be decoded
Traceback (most recent call last):
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 228, in thread_db
rows = DbTransfer.pull_db_all_user()
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 255, in pull_db_all_user
rows = DbTransfer.pull_api_user()
File "/home/killermaster/ss-panel/shadowsocks-py-mu/shadowsocks/dbtransfer.py", line 289, in pull_api_user
data = json.load(f)
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Oct 08 20:44:42 ERROR Except thrown while pulling user data:No JSON object could be decoded
^CTraceback (most recent call last):
File "servers.py", line 120, in
main()
File "servers.py", line 116, in main
time.sleep(100)
KeyboardInterrupt
killermaster@killermaster:~/ss-panel/shadowsocks-py-mu/shadowsocks$

@ki1lermaster Same as above,   there are issues with the configuration of your web server, or you may have input a wrong API url in shadowsocks-py-mu's configuration file. Please contact maintainers of your web panel instead of maintainers of this project for help.

@fsgmhoward
okay ,I will try to double check the API value  , Can you make it clear that I need to check those places?

@fsgmhoward
as my checked ,From the beginning to the end, I only modified the API value of CONFIG. PY .
anyway ,i attached related files as below
####################################################
sudo vim /etc/nginx/sites-enabled/ss-panel
server {
listen 80;
server_name <IP_ADDRESS>;
root /home/alber/ss-panel/public/;
index index.php index.html index.htm;

location / {
    try_files $uri $uri/ /index.php$is_args$args;
}

####################################################################
killermaster@killermaster:~/ss-panel$ vim .env
/  ss-panel v3 配置
/
// !!! 修改此key为随机字符串确保网站安全 !!!
key = 'randomKey'
env = 'prod'  // 正式环境请保持env为prod确保安全
debug =  'false'  //  正式环境请确保为false
appName = 'ss-panel3'             //站点名称
baseUrl = 'http://<IP_ADDRESS>'            // 站点地址
timeZone = 'PRC'        // RPC 天朝时间  UTC 格林时间
pwdMethod = 'md5'       // 密码加密   可选 md5,sha256
salt = ''               // 密码加密用，从旧版升级请留空
theme    = 'default'   // 主题
session = 'file'
cache   = 'file'
tokenDriver = 'db'
// mu key 用于校验ss-go mu的请求
muKey = 'test'
// 邮件
mailDriver = 'mailgun'   // mailgun   #smtp不在支持,仅供测试
database 数据库配置
db_driver = 'mysql'
db_host = 'localhost'
db_port = '3306'
db_database = 'shadowsocks'
db_username = 'root'
db_password = 12345678'
db_charset = 'utf8'
db_collation = 'utf8_general_ci'
db_prefix = ''

killermaster@killermaster:~/ss-panel/shadowsocks-py-mu/shadowsocks$ vim config.py
Database Config
MYSQL_HOST = 'localhost'
MYSQL_PORT = 3306
MYSQL_USER = 'root'
MYSQL_PASS = '12345678'
MYSQL_DB = 'shadowsocks'
USUALLY this variable do not need to be changed
MYSQL_USER_TABLE = 'user'
This is also the timeout of connecting to the API
MYSQL_TIMEOUT = 30
Shadowsocks MultiUser API Settings
API_URL = 'http://<IP_ADDRESS>/mu'
API Key (you can find this in the .env file if you are using SS-Panel V3)
API_PASS = 'test'
NODE_ID = '1'


CommandLine Parser buggy

Channels can not provide extensions without modifications in libfreerdp core
Parser is not checking for duplicates
Option descriptions are out of date and would need some more detailed explanations

Lot of work has been done on the cmdline parser, shall we close the issue ?

yes, most of the stuff has been fixed (except that we still have a custom parser)


Remove-DbaAgentAlertCategory to support pipeline from Get-* function

Type of Change

[ ] Bug fix (non-breaking change, fixes # )
[x] New feature (non-breaking change, adds functionality, fixes # )
[ ] Breaking change (effects multiple commands or functionality, fixes # )
[x] Ran manual Pester test and has passed (.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[x] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
[ ] Unit test is included
[ ] Documentation
[ ] Build system

Purpose

To support pipeline from Get-* function
Approach

Commands to test

Get-DbaAgentAlertCategory -SqlInstance SRV1 | Out-GridView -Title 'Select SQL Agent alert category(-ies) to drop' -OutputMode Multiple | Remove-DbaAgentAlertCategory
Screenshots

Learning

One test fails because you need a help entry for InputObject.

ty!


vector collectionSize = {x,y,z}; Are more than two different combinations of the layers possible?

Hello!
Thank you for making this code, I've been using it to make some cool stuff. Is that metamask address 0xaE9d8FD177c22D88159F2773998dB07CAf40693d up to date? I would like to send you an NFT to say thank you. I have sent you a discord friend invite: JuiceGoose#3498.
I am a programming noob, I wanted to know if it is possible to make more than just 2 of the collectionsize layer combinations. For example vector collectionSize = {w,x,y,z}; to create 4 different combinations of the layers? This would be incredibly useful to have. Currently when I try I get a segfault.
Thank you for your help.

Yep that's is possible. It's strange u are getting a segmentation fault. Check the layerDir vector