Adding intiatives and assets that doesn't show (CMS not working so we need to do it manually in the database)

We need to put some initiatives and some assets (logos, descriptions etc.) on Setel.in through manually putting it in the database (yes, I know, retarded but the CMS we built is not working properly)
@elhabib will put all stuff that needs to be done here

Healthcare category and Media and Telecommunication show nothing. They should show some.
Logos for several initiatives do not show. May be need to be added manually somewhere (i have not read any code, or so what you use to develop)

Healthcare must show clinicfinder and vårdguiden.
Media and communication has to show at least migtalks, the local voices, i am not a refugee.

Logos are missing for, welcome talents, lingio x2, invitationdepartment, spårkraft, integrationsakedemin.

welcome talents: http://www.freeiconspng.com/uploads/linkedin-logo-3.png
lingio x2: https://drive.google.com/file/d/0B3LVOhWM53KdTjdzd1IwXzItY3M/view
invitationdepartment: https://www.flickr.com/photos/unitedinvitations/20899884938/
spårkraft: https://pbs.twimg.com/profile_images/704320425598312448/qqaO0y1W.jpg
integrationsakedemin: https://media.licdn.com/media/AAEAAQAAAAAAAAhZAAAAJGJmZTI2NWYzLTlkNTgtNDk1YS1hZWM4LTQ1NzMyNzgwMTA2Mg.png

@superyass could you fix the logos? I will send you the descriptions of "clinic finder", "vårdguiden", "MigTalks", "The local voices" and "I am not refugee later" tonight

Ok, got it.

Initiative name:
ClinicFinder
Category:
Healthcare
Webpage link:
_http://www.clinicfinder.org/_
Logo link:
_https://www.dropbox.com/s/1zkam41vuu1t0g1/Doctors of the world logo transparent .tif?dl=0_
Short description:
ClinicFinder helps refugees find the nearest health clinic
Detailed description:
The ClinicFinder is a mobile web-app, provided by Doctors of the World UK, designed to provide simple and clear information about free primary healthcare and medical services for refugees and migrants across Europe. It uses your phone’s GPS location to show on a map the nearest free health clinics and what services can be accessed. It also allows you search by location (e.g. Berlin, Athens) and by specific service required (e.g. Children, Survivor of Violence), while language options currently include English, Arabic, Farsi and French. ClinicFinder also allows anyone to add the locations of other eligible clinics (verified by Doctors of the World UK) and we encourage users, health professionals and other organisations to show their friends, patients and spread the word!

Initiative name:
MIG Talks
Category:
Communication and Media
Webpage link:
_http://www.migtalks.se/_
Logo link:
_https://scontent-arn2-1.xx.fbcdn.net/v/t1.0-9/10570291_846698012124467_1960427551368881929_n.jpg?oh=1346d3e2bfcdd6a7be6f18cd08ac4104&oe=588359C0_
Short description:
MIG Talks raises the voices of the humans behind the migrations statistics.
Detailed description:
MIG Talks is a Communication Initiative that aims to spread knowledge about migration to Sweden. It provides a platform for the exchange of information, experiences and perspectives between newcomers and societal actors in Sweden. The goal is to contribute to a nuanced and inclusive public conversation..

Initiative name:
The Local Voices
Category:
Communication and Media
Webpage link:
_http://www.thelocal.se/voices/_
Logo link:
_http://www.thelocal.se/assets/voices/image/the-local-voices-logo.png_
Short description:
The Local Voices lets newcomers tell their stories and share their views.
Detailed description:
The Local Voices gives a voice to newcomers in Sweden by publishing news and stories in English for and about newly-arrived refugees and asylum seekers in Sweden. The site serves as an online platform for members of this community to learn about Sweden and share their stories with other newcomers, Swedes, and the wider world.

@elhabib please do the same with "Vårdguiden" (doesn't exist in the typeform) and "I'm not a refugee" (has too much text in short description and is according to the one who applied under 'employment' rather than 'media and communication' as you mention)

@elhabib please also give us a better description for "integrationsakademin" they didn't provide us info in the right format, should we have them in it?

the description
"Through our sessions and courses, we help people understand the changing modern Swedish society. We motivate, enhances self-esteems, treating fears and reinforce social skills for individuals. We help our future innovators, leaders, engineers, developers, sellers, builders, teachers, etc. to realise their goals and dreams in their society. We encourage volunteers to help and coach our participants.  We also help companies and businesses to take advantage of the diversity and become more open to welcome new cultures, perspectives and ways of thinking.  We cooperate with other organisations, initiatives and intuitions. We believe that an organisation can grow even more and become stronger if they collaborate with each other and find players that complement themselves."

@miladf @superyass  vårguiden is in the project hub, it should be taken from there. But this whole thing is wrong. We can not do this manually all the time. There is a bug somewhere (maybe with the CMS) that makes it that "healthcare" and "Media and Communication" initiaves do not appear in setelin. That is what needs fixing. Not adding this manually all the time. So please fix that bug. My guess would be that someone mistyped an Id while coding. so I d check that first!

@elhabib we have already noticed that media & communication is written "media_and_communication", "media_communication" and "media_and_comunication"...........................

excatly what i thought. The same with healthcare, then, @superyass  check if it works localy when you change that. I can only see the commited version on my side.

the problem is there is no 'delete' functionality...so we have to add it in the backend

you can add new ones, and hide those we do not want by unchecking the box 'has this initivative filled the requirement to be in setelin
'

i fixed media_and_communication ...i'll fix healthcare then i'll push...

you can add new ones, and hide those we do not want by unchecking the box 'has this initivative filled the requirement to be in setelin.

these image links are not working :
400contacts: https://pbs.twimg.com/profile_images/658954410320613376/lfmxz3ck_400x400.png
Vårdguiden : http://www.1177.se/style/636003023283217187/img/base/1177-sociallogo-100x100.png

Vårdguiden: http://www.1177.se/style/636081493720272265/img/base/1177-sociallogo-100x100.png
400contacts: http://a2.mzstatic.com/us/r30/Purple60/v4/59/5d/07/595d07f7-cdfc-1bf4-0ad0-b41db1136137/icon175x175.jpeg

@superyass
Website for Welcomeapp missing: http://welcomeapp.se/
Website for Integrationsakademin missing: http://integrationsakademin.se/
iOS link Sellay missing: https://itunes.apple.com/tr/app/sellay-english-speaking-easy/id1095067669?mt=8
Android link Sellay missing: https://play.google.com/store/apps/details?id=se.ademes.sellay225583&hl=sv
Website for Welcome Talent missing: http://www.welcometalent.se/
Website for Novare Potential missing: http://www.novarepotential.com/
Comment out Competency for now.
Website for Incluso missing: http://www.incluso.se/en/
Logo for Lingio Language Learning missing: https://drive.google.com/file/d/0B3LVOhWM53Kddmt3d0NRY2l1anM/view
Logo for Lingio Translate missing: https://drive.google.com/file/d/0B3LVOhWM53KdTjdzd1IwXzItY3M/view
Website for The Local Voices missing: http://www.thelocal.se/voices
Website for refugees-welcome.se missing: http://refugees-welcome.se/?lang=en
Logo for Clinic Finder missing: https://www.dropbox.com/s/1zkam41vuu1t0g1/Doctors of the world logo transparent .tif?dl=0 (if that doesn't work use this:
 )
Website for Vårdguiden missing: http://www.1177.se/Other-languages/Engelska/

bro can u add these now? @superyass

Ok.

for the Lingio logos, we need them to be hosted somewhere...not on the cloud drives

Clinic finder: https://doctorsoftheworld.org/wp-content/themes/bota/assets/images/logo-small.png

Vårdguiden: http://www.1177.se/style/636081493720272265/img/base/1177-sociallogo-100x100.png

Lingio Language Learning: https://dev.setel.in/img/apps/Lingio-Language-Learning-logo.png
Lingio Translate Logo: https://dev.setel.in/img/apps/Lingio-Translate-logo.png

(but use the route and not the whole URL, that is get rid of dev.stel.in/ and only use "/img...."

Please update the info in this intiative (it already exist but doesn't have description etc.)
Initiative name:
Just Arrived
Category:
Employment
Webpage link:
_http://justarrived.se/_
Short description:
We give new arrivals a chance to enter the Swedish labor market.
Detailed description:
Just Arrived is a digital service that matches newly arrived to simple jobs with the purpose to help them build their resumé and credentials in Sweden. A company posts a job, selects a candidate, rates the candidate's work once completed and automatically gets an invoice. The candidate creates a profile, gets offers, completes the job, rates the company and gets salary paid to an account of his/her choice. We take care of all the administration and insurances for both sides. The app is in 8 languages and for messaging, Google Translate translates automatically.

Hahah the longest comment ever, I guess github wasn't built working this way but who cares when time is limited.... Very good job man @superyass

thanks bro


Drop unique constraint on index

Your Question
I have the following model:
type Test struct {
    ID int64 `gorm:"primaryKey"`
    Name string `gorm:"uniqueIndex"`
}

Now, if I want to make Name not unique anymore, the AutoMigrate  func does not automatically remove the constraint. This is documented and fine.
My question is, how would I manually drop the unique constraint on the column, but keep the index?
The document you expected this should be explained
https://gorm.io/docs/migration.html
Expected answer
Code that drops the unique constraint

Currently only supports using DropIndex first and then CreateIndex.
DB.Migrator().DropIndex(&Test{},"idx_name")
DB.Migrator().CreateIndex(&Test{},"idx_name")


Suggested fix for errors in mongoid.yml mention Rails

Resolution talks about Rails, not everybody uses Rails.
Double check your mongoid.yml to make sure that you have a top-level clients key with at least 1 default client configuration for it. You can regenerate a new mongoid.yml for assistance via rails g mongoid:config.
/Users/dblock/.rvm/gems/ruby-2.1.2/gems/mongoid-5.0.0.beta/lib/mongoid/config.rb:252:in `clients=':  (Mongoid::Errors::NoClientsConfig)
Problem:
  No clients configuration provided.
Summary:
  Mongoid's configuration requires that you provide details about each client that can be connected to, and requires in the clients config at least 1 default client to exist.
Resolution:
  Double check your mongoid.yml to make sure that you have a top-level clients key with at least 1 default client configuration for it. You can regenerate a new mongoid.yml for assistance via `rails g mongoid:config`.

 Example:
   development:
     clients:
       default:
         database: mongoid_dev
         hosts:
           - localhost:27017

	from /Users/dblock/.rvm/gems/ruby-2.1.2/gems/mongoid-5.0.0.beta/lib/mongoid/config.rb:131:in `load_configuration'
	from /Users/dblock/.rvm/gems/ruby-2.1.2/gems/mongoid-5.0.0.beta/lib/mongoid/config.rb:88:in `load!'
	from /Users/dblock/.rvm/gems/ruby-2.1.2/gems/mongoid-5.0.0.beta/lib/mongoid.rb:106:in `load!'

Hey guys,
Any news on this subject? My application was functioning normally under development; I run it today and appeared the same message described above.
I use mongodb 2.6
My configuration:
development:
  # Configure available database sessions. (required)
  sessions:
    # Defines the default session. (required)
    default:
      # Defines the name of the default database that Mongoid can connect to.
      # (required).
      database: name_database
      username: "username"
      password: "password"
      # Provides the hosts the default session can connect to. Must be an array
      # of host:port pairs. (required)
      hosts:
        - <IP_ADDRESS>:27017

In my gemfile was setted:
gem 'mongoid', git: 'git://github.com/mongoid/mongoid.git'

So I change it for and works fine now:
gem 'mongoid', '~> 4.0.2'

@danilovaz You're exception is because you didn't change your configuration - sessions became clients. This issue is to change the actual error message. See here for what the new mongoid.yml looks like:
https://github.com/mongoid/mongoid/blob/master/lib/rails/generators/mongoid/config/templates/mongoid.yml

Also see the new documentation for upgrades:
http://docs.mongodb.org/ecosystem/tutorial/ruby-mongoid-tutorial/#ruby-mongoid-tutorial

Ah, that explains just right.
Thanks man :)


[RESOLVED] High ICMP ping response time

Problem started at 17:13:32 on 2023.08.14
Problem name: High ICMP ping response time
Host: S100-Santiago
Severity: Warning
Operational data: Value: 926ms
Original problem ID: 36159
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23518&eventid=36159

Problem has been resolved in 5m 1s at 17:18:33 on 2023.08.14
Problem name: High ICMP ping response time
Host: S100-Santiago
Severity: Warning
Original problem ID: 36159


Update GraphQL Schema to support FE graphql design view

Description:
Currently we are in the process of creating a GraphQL design view for the Ballerina VScode plugin. The model which is required for the FE rendering will be based on graphql schema object.

The schema currently doesn't contain the location details of the types. But for the diagram editing purposes, we need to add the location details for the schema. (Eg: we should be able to identify the location of a record to support editing).

Right now the Class and the Record constructs are represented by the OBJECT typeKind. But we need to differentiate these two types for FE design view. this detail also should be added to the schema object

We should be able to support generating the Schema even with compilation errors as with the design view we let the user to edit if there are errors. The current path of generating the schema through the compilation (AnalysisTask) doesn't suit the FE requirement. Therefore a new endpoint should be added to support schema generation without compilation

changes required from the graphql-module to generate the graphql model have been merged.


Add support for conditionals in Single, Maybe and Completable

Adds support for the ifThen and switch conditional statements for Single, Maybe, and Completable types.
This work is based mostly on the ObservableStatement, ObservableIfThen, and ObservableSwitch classes and the tests were derived from ObservableStatementTest
The doWhile and whileDo functionality in the Observable operations were not moved across as they make sense only in the context of multiple value emissions and the operations added have at most 1 value emission.
The Maybe operations continue the pattern of using an empty value as default return value in the switch method and as the default else condition in the ifThen method.
The Single operation force a mandatory default value as there is no empty equivalent for Single. An alternative could be to return a Single.error(new RuntimeException("no default value provided") but I feel that this is not obvious behaviour and could therefore confuse clients consuming the method.
The CompletableStatementTest test cases have had to rely considerable more on Completable.error(new RuntimeException("Forced Failure")) to ensure that the correct subscriptions are made since there are no values on which to compare.

An alternative could be to return a Single.error(new RuntimeException("no default value provided")

We typically signal NoSuchElementException in these cases.

The doWhile and whileDo functionality in the Observable operations were not moved across as they make sense only in the context of multiple value emissions and the operations added have at most 1 value emission.

We have the standard Single.repeat() which returns a Flowable so doWhile is possible.


Laravel 10 Mid-Shift

This pull request includes recent changes to Laravel skeleton files. Although some of these changes may be considered optional, they may be required to use recent additions - such as the hashed attribute cast and log processors. This also includes new configuration options and skeleton slimming.
Since Laravel has moved to an annual release cycle, changes since the initial release may reach a critical mass. When they do, you will receive this automated pull request as part of your Shifty Plan.
Before merging, you need to:

Checkout the shift-mid-laravel-10 branch
Review all pull request comments for additional changes
Run composer update (if the scripts fail, add --no-scripts)
Clear any config, route, or view cache
Thoroughly test your application (no tests?, no CI?)

If you would like more detail you may view the full changes. You may also stay informed of weekly Laravel release highlights through the Shifty Bits Newsletter.

:warning: Shift was not able to automate the updates to some of the core Laravel files. You should compare the following files against their latest Laravel 10 versions and merge any changes:

[ ] app/Models/User.php
[ ] app/Providers/AuthServiceProvider.php
[ ] lang/en/validation.php

:warning: Shift was not able to automate the updates to some of the configuration files. You should compare the following files against their latest Laravel 10 version and merge any changes:

[ ] config/logging.php


Prettify library for gif filtering

Related #401
I just drop my thoughts and ideas so I wouldn't forget it
Recently we started to use https://github.com/nsfw-filter/gif-frames for gif filtering because of speed and fps flexibility. It's pretty fast, but not for NSFW-Filter :smile:
So, I suggest:

Unite 3 libs:

https://github.com/nsfw-filter/gif-frames (3 y.o lib \ MIT License \ ~100 lines of code)
https://github.com/nsfw-filter/get-pixels (7 y.o lib \  MIT License \ ~100 lines of code)
https://github.com/nsfw-filter/save-pixels (8 y.o lib \  MIT License \ ~100 lines of code)

into one library specific for our case. Not sure about Licenses, but we use it as open source, I hope we are fine :D

Remove redundant code of new library (jpg, png stuff)
Re-write in JS ES6+(remove var and etc)
Add unit-tests and benchmarks
Check for performance, event loop blocking and memory leaks

Estimates: ~21-34 hrs (fibonacci)
Probably I'll take it in the next couple months

One of the things worth noting, if you're decoding pixels/encoding pixels for node, I've been using the provided Node API - https://js.tensorflow.org/api_node/2.6.0/ which is built in.


recipe_ecs_scatter frequency error when CMOR checking TRMM-L3

Hi All,
I am running the ecs_scatter recipe and the preprocessor fails for the cmip6_itczidx diagnostics.
For some reason it expects the TRMM data frequency to be daily while this is obviously monthly data.
2023-07-13 23:32:54,420 UTC [3654798] DEBUG   Running preprocessor step fix_metadata
2023-07-13 23:32:54,424 UTC [3654798] DEBUG   Running preprocessor function 'fix_metadata' on the data
[<iris 'Cube' of precipitation_flux / (kg m-2 s-1) (time: 192; latitude: 400; longitude: 1440)>]
loaded from original input file(s)
[LocalFile('/g/data/kj13/datasets/esmvaltool/obsdata-v2/Tier1/TRMM-L3/pr_TRMM-L3_v7_7A_199801-201312.nc')]
with function argument(s)
check_level = <CheckLevels.DEFAULT: 3>,
session = Session({'auxiliary_data_dir': PosixPath('/g/data/kj13/datasets/auxiliary_data'),
         'check_level': <CheckLevels.DEFAULT: 3>,
         'compress_netcdf': False,
         'config_developer_file': PosixPath('/g/data/kj13/admin/ESMValTool/.esmvaltool/config-developer.yml'),
         'config_file': PosixPath('/g/data/kj13/admin/ESMValTool/.esmvaltool/config-user.yml'),
         'diagnostics': None,
         'download_dir': PosixPath('/g/data/kj13/datasets/esmvaltool/esmvaltool_climate_data'),
         'drs': {'CMIP3': 'BADC',
                 'CMIP5': 'BADC',
                 'CMIP6': 'BADC',
                 'CORDEX': 'ESGF',
                 'ana4mips': 'default',
                 'obs4MIPs': 'default'},
         'exit_on_warning': False,
         'extra_facets_dir': (),
         'log_level': 'debug',
         'max_datasets': None,
         'max_parallel_tasks': None,
         'max_years': None,
         'output_dir': PosixPath('/g/data/kj13/NRI/esmvaltool_output'),
         'output_file_type': 'png',
         'profile_diagnostic': False,
         'remove_preproc_dir': True,
         'resume_from': [],
         'rootpath': {'CMIP3': [PosixPath('/g/data/cb20/replicas/cmip3')],
                      'CMIP5': [PosixPath('/g/data/r87/DRSv3/CMIP5'),
                                PosixPath('/g/data/al33/replicas/CMIP5/combined'),
                                PosixPath('/g/data/rr3/publications/CMIP5/output1')],
                      'CMIP6': [PosixPath('/g/data/oi10/replicas/CMIP6'),
                                PosixPath('/g/data/fs38/publications/CMIP6')],
                      'OBS': [PosixPath('/g/data/kj13/datasets/esmvaltool/obsdata-v2')],
                      'OBS6': [PosixPath('/g/data/kj13/datasets/esmvaltool/obsdata-v2')],
                      'RAWOBS': [PosixPath('/g/data/kj13/datasets/esmvaltool/raw-data')],
                      'native6': [PosixPath('/g/data/kj13/datasets/esmvaltool/raw-data')],
                      'obs4MIPs': [PosixPath('/g/data/kj13/datasets/esmvaltool/obsdata-v2')]},
         'run_diagnostic': True,
         'save_intermediary_cubes': False,
         'search_esgf': 'when_missing',
         'skip_nonexistent': False,
         'write_ncl_interface': True}),
reference_dataset = 'TRMM-L3',
exp = 'historical',
mip = 'Amon',
project = 'obs4MIPs',
dataset = 'TRMM-L3',
level = 'v7',
version = '7A',
tier = 1,
short_name = 'pr',
timerange = '1998/2013',
variable_group = 'pr',
diagnostic = 'cmip6_itczidx',
recipe_dataset_index = 0,
alias = 'obs4MIPs_historical',
original_short_name = 'pr',
standard_name = 'precipitation_flux',
long_name = 'Precipitation',
units = 'kg m-2 s-1',
modeling_realm = [],
frequency = 'day'
2023-07-13 23:32:54,511 UTC [3654798] ERROR   Failed to run preprocessor function 'fix_metadata' on the data
[<iris 'Cube' of precipitation_flux / (kg m-2 s-1) (time: 192; latitude: 400; longitude: 1440)>]
loaded from original input file(s)
[LocalFile('/g/data/kj13/datasets/esmvaltool/obsdata-v2/Tier1/TRMM-L3/pr_TRMM-L3_v7_7A_199801-201312.nc')]
with function argument(s)
check_level = <CheckLevels.DEFAULT: 3>,
session = Session({'auxiliary_data_dir': PosixPath('/g/data/kj13/datasets/auxiliary_data'),
         'check_level': <CheckLevels.DEFAULT: 3>,
         'compress_netcdf': False,
         'config_developer_file': PosixPath('/g/data/kj13/admin/ESMValTool/.esmvaltool/config-developer.yml'),
         'config_file': PosixPath('/g/data/kj13/admin/ESMValTool/.esmvaltool/config-user.yml'),
         'diagnostics': None,
         'download_dir': PosixPath('/g/data/kj13/datasets/esmvaltool/esmvaltool_climate_data'),
         'drs': {'CMIP3': 'BADC',
                 'CMIP5': 'BADC',
                 'CMIP6': 'BADC',
                 'CORDEX': 'ESGF',
                 'ana4mips': 'default',
                 'obs4MIPs': 'default'},
         'exit_on_warning': False,
         'extra_facets_dir': (),
         'log_level': 'debug',
         'max_datasets': None,
         'max_parallel_tasks': None,
         'max_years': None,
         'output_dir': PosixPath('/g/data/kj13/NRI/esmvaltool_output'),
         'output_file_type': 'png',
         'profile_diagnostic': False,
         'remove_preproc_dir': True,
         'resume_from': [],
         'rootpath': {'CMIP3': [PosixPath('/g/data/cb20/replicas/cmip3')],
                      'CMIP5': [PosixPath('/g/data/r87/DRSv3/CMIP5'),
                                PosixPath('/g/data/al33/replicas/CMIP5/combined'),
                                PosixPath('/g/data/rr3/publications/CMIP5/output1')],
                      'CMIP6': [PosixPath('/g/data/oi10/replicas/CMIP6'),
                                PosixPath('/g/data/fs38/publications/CMIP6')],
                      'OBS': [PosixPath('/g/data/kj13/datasets/esmvaltool/obsdata-v2')],
                      'OBS6': [PosixPath('/g/data/kj13/datasets/esmvaltool/obsdata-v2')],
                      'RAWOBS': [PosixPath('/g/data/kj13/datasets/esmvaltool/raw-data')],
                      'native6': [PosixPath('/g/data/kj13/datasets/esmvaltool/raw-data')],
                      'obs4MIPs': [PosixPath('/g/data/kj13/datasets/esmvaltool/obsdata-v2')]},
         'run_diagnostic': True,
         'save_intermediary_cubes': False,
         'search_esgf': 'when_missing',
         'skip_nonexistent': False,
         'write_ncl_interface': True}),
reference_dataset = 'TRMM-L3',
exp = 'historical',
mip = 'Amon',
project = 'obs4MIPs',
dataset = 'TRMM-L3',
level = 'v7',
version = '7A',
tier = 1,
short_name = 'pr',
timerange = '1998/2013',
variable_group = 'pr',
diagnostic = 'cmip6_itczidx',
recipe_dataset_index = 0,
alias = 'obs4MIPs_historical',
original_short_name = 'pr',
standard_name = 'precipitation_flux',
long_name = 'Precipitation',
units = 'kg m-2 s-1',
modeling_realm = [],
frequency = 'day'
2023-07-13 23:32:55,109 UTC [3654476] INFO    Maximum memory used (estimate): 16.0 GB
2023-07-13 23:32:55,110 UTC [3654476] INFO    Sampled every second. It may be inaccurate if short but high spikes in memory consumption occur.
2023-07-13 23:32:55,112 UTC [3654476] ERROR   Program terminated abnormally, see stack trace below for more information:
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/_task.py", line 816, in _run_task
    output_files = task.run()
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/_task.py", line 264, in run
    self.output_files = self._run(input_files)
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/preprocessor/__init__.py", line 678, in _run
    product.cubes  # pylint: disable=pointless-statement
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/preprocessor/__init__.py", line 481, in cubes
    self._cubes = [
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/preprocessor/__init__.py", line 482, in <listcomp>
    ds._load_with_callback(callback) for ds in self.datasets
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/dataset.py", line 689, in _load_with_callback
    cube = self._load(callback)
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/dataset.py", line 774, in _load
    result = preprocess(
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/preprocessor/__init__.py", line 375, in preprocess
    result.append(_run_preproc_function(function, items, settings,
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/preprocessor/__init__.py", line 328, in _run_preproc_function
    return function(items, **kwargs)
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/cmor/fix.py", line 173, in fix_metadata
    cube = checker(cube).check_metadata()
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/cmor/check.py", line 195, in check_metadata
    self.report_errors()
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/cmor/check.py", line 251, in report_errors
    raise CMORCheckError(msg)
esmvalcore.cmor.check.CMORCheckError: There were errors in variable pr:
 time: Frequency day does not match input data
in cube:
precipitation_flux / (kg m-2 s-1)   (time: 192; latitude: 400; longitude: 1440)
    Dimension coordinates:
        time                             x              -               -
        latitude                         -              x               -
        longitude                        -              -               x
    Cell methods:
        0                           time: mean
    Attributes:
        Conventions                 'CF-1.4'
        associated_files            'baseURL: http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation gridspecFile: gridspec_atmos_fx_Obs-TRMM_obs_r0i0p0.nc ...'
        cmor_version                '2.8.3'
        contact                     'George Huffman<EMAIL_ADDRESS>        data_structure              'grid'
        experiment_id               'obs'
        frequency                   'mon'
        global                      'observations'
        institute_id                'NASA-GSFC'
        institution                 'NASA Goddard Space Flight Center, Greenbelt MD, USA'
        mip_specs                   'CMIP5'
        model_id                    'Obs-TRMM'
        modeling_realm              'atmos'
        original_name               'pcp'
        processing_version          '7-7A'
        product                     'observations'
        project_id                  'obs4MIPs'
        realm                       'atmos'
        references                  'http://science.nasa.gov/missions/trmm/'
        source                      'TRMM Tropical Rainfall Measuring Mission 3B43 Monthly 0.25x0.25 degree ...'
        source_file                 '/g/data/kj13/datasets/esmvaltool/obsdata-v2/Tier1/TRMM-L3/pr_TRMM-L3_v ...'
        source_id                   'TRMM'
        source_type                 'satellite_retrieval_and_gauge_analysis'
        table_id                    'Table Amon_obs (10 March 2011) 7253c5e3196cdcbc1a6edad833a047f3'
        title                       'obs-TRMM output prepared for obs4MIPs NASA-GSFC observations'
loaded from file /g/data/kj13/datasets/esmvaltool/obsdata-v2/Tier1/TRMM-L3/pr_TRMM-L3_v7_7A_199801-201312.nc
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/_main.py", line 524, in run
    fire.Fire(ESMValTool())
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/fire/core.py", line 475, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/_main.py", line 411, in run
    self._run(recipe, session)
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/_main.py", line 453, in _run
    process_recipe(recipe_file=recipe, session=session)
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/_main.py", line 125, in process_recipe
    recipe.run()
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/_recipe/recipe.py", line 1294, in run
    self.tasks.run(max_parallel_tasks=self.session['max_parallel_tasks'])
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/_task.py", line 738, in run
    self._run_parallel(address, max_parallel_tasks)
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/_task.py", line 782, in _run_parallel
    _copy_results(task, running[task])
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/site-packages/esmvalcore/_task.py", line 805, in _copy_results
    task.output_files, task.products = future.get()
  File "/g/data/xp65/public/apps/med_conda/envs/access-med-0.1/lib/python3.10/multiprocessing/pool.py", line 774, in get
    raise self._value
esmvalcore.cmor.check.CMORCheckError: There were errors in variable pr:
 time: Frequency day does not match input data
in cube:
precipitation_flux / (kg m-2 s-1)   (time: 192; latitude: 400; longitude: 1440)
    Dimension coordinates:
        time                             x              -               -
        latitude                         -              x               -
        longitude                        -              -               x
    Cell methods:
        0                           time: mean
    Attributes:
        Conventions                 'CF-1.4'
        associated_files            'baseURL: http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation gridspecFile: gridspec_atmos_fx_Obs-TRMM_obs_r0i0p0.nc ...'
        cmor_version                '2.8.3'
        contact                     'George Huffman<EMAIL_ADDRESS>        data_structure              'grid'
        experiment_id               'obs'
        frequency                   'mon'
        global                      'observations'
        institute_id                'NASA-GSFC'
        institution                 'NASA Goddard Space Flight Center, Greenbelt MD, USA'
        mip_specs                   'CMIP5'
        model_id                    'Obs-TRMM'
        modeling_realm              'atmos'
        original_name               'pcp'
        processing_version          '7-7A'
        product                     'observations'
        project_id                  'obs4MIPs'
        realm                       'atmos'
        references                  'http://science.nasa.gov/missions/trmm/'
        source                      'TRMM Tropical Rainfall Measuring Mission 3B43 Monthly 0.25x0.25 degree ...'
        source_file                 '/g/data/kj13/datasets/esmvaltool/obsdata-v2/Tier1/TRMM-L3/pr_TRMM-L3_v ...'
        source_id                   'TRMM'
        source_type                 'satellite_retrieval_and_gauge_analysis'
        table_id                    'Table Amon_obs (10 March 2011) 7253c5e3196cdcbc1a6edad833a047f3'
        title                       'obs-TRMM output prepared for obs4MIPs NASA-GSFC observations'
loaded from file /g/data/kj13/datasets/esmvaltool/obsdata-v2/Tier1/TRMM-L3/pr_TRMM-L3_v7_7A_199801-201312.nc

main_log_debug.txt
Any idea what is going on?
Thanks!

This is with ESMValTool / Core v2.9

Not sure this is caused by #2974. I do have the data on the machine. The file is loaded but there is a mismatch in the frequency...

@rbeucher my apologies - I should have been a bit more verbose about it - it could be that, since the data version is ye olde (I see Table Amon_obs (10 March 2011) in the metadata, it looks to me like a fairly old dataset) and CMOR evolved (currently at version 3.7, whereas data was built with version 2.8.3) stuff might not be really CMOR-compliant in the data anymore - @remi-kazeroni what do you think? :beer:

Thanks @valeriupredoi. So my question is how @remi-kazeroni managed to run the recipe? I checked the files and the ones I have are identical to the ones available on ESGF

I have the same error when running the recipe_validation.yml.
I changed the CERES-EBAF version facet to Ed2-8, which I have available on our system. I get errors regarding the "day" frequency not matching the data frequency.

OK that suggests a fundamental issue in the code - these are all mon variables and the data is mon too as it says in the metadata frequency    'mon' - are you changing the recipe in any way? Could you pls post the recipe_validation you are running with here so I can try reproduce the issue? That's a fairly small one that doesn't need much mem and many hours of running :+1:

@rbeucher - I think there may be an issue with the drs used for your obs4MIPs. Could you please let us know which drs you are using? It it default, ESGF or a custom one? If one of the first to ones, does your directory tree for obs4MIPs data adhere with the config-developer.yml file here? That is:
obs4MIPs:
  cmor_strict: false
  input_dir:
    default: 'Tier{tier}/{dataset}'
    ESGF: '{project}/{dataset}/{version}'

If you use your own drs, what is the directory tree used for your obs4MIPs data?
I suspect there is a mismatch somewhere or a mix of drs (not supported at the moment) and the frequency of the data is misread.
If the ESGF drs is used, I would recommend trying the fix proposed by @bouweandela in this https://github.com/ESMValGroup/ESMValTool/issues/2974#issuecomment-1372136192. You could try to rename the obs4MIPs datasets with their ESGF names and remove the version information completely.
@valeriupredoi - recipe_validation is a peculiar example. It is one of the very few recipes that use the ESGF version facet (e.g. version: v20160610) instead of an outdated version (e.g version: v2.3) that works with the default drs still in use at DKRZ. The recipe_validation is compatible with both drs.

that is a very good point @remi-kazeroni :medal_military:

Hi @remi-kazeroni
Thanks for your reply.
For Obs4MIP, I am using the default drs. My folder structure follows the structure described in the config-developer file.
The frequency is not in the drs. How does ESMValTool assumes it to be "daily". Is there a default value somewhere?
I tried to rename files but it does not work.
I think the finder do find the file but somehow the frequency facet is mispopulated.

And my config_developer default drs for obs4mip is identical to the one you showed above

Thanks @remi-kazeroni . After solving the issue with the DRS, the recipe runs if I remove the version facet.
Thanks for your suggestions!


WebView examples using React and/or Vue

I would like to contribute 1 or 2 examples on the topic of WebViews.
I have not yet found any examples here of how a WebView can work with JSX and Babel.
We are currently working on an internal extension and are using React + Babel as CDN versions for the sake of simplicity, which makes coding much more pleasant.
We had also managed to use Vue for a VSCode WebView in the past: https://github.com/egomobile/vscode-powertools/wiki/Vue %2F Vuetify
I don't know if the example notebook-renderer-react-sample by @mjbvz already goes in this direction.
So I wanted to ask if there is interest in me making a pull request with 2 examples.

Examples of using specific frameworks like react is a better maintained by the community. These samples focus on use of the VS Code apis


TabsProps.onChange TypeScript type is unsatisfiable/incorrect

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
The typescript type for TabsProps<{}>.onChange is as follows:
((event: ChangeEvent<{}>, value: any) => void) & ((event: FormEvent<HTMLButtonElement>) => void)
This seems incorrect, since it is an intersection type of two function types with different signatures.
I believe this was introduced in this commit:
https://github.com/mui-org/material-ui/commit/225badba70d8288213a0f733cce91801958b4e95#diff-c95eab2a6e6470acd8e136b01b514471R42
Expected Behavior 🤔
I think that the left type in the intersection (((event: ChangeEvent<{}>, value: any) => void)) is correct.
Steps to Reproduce 🕹

Upgrade a TypeScript app that uses Tabs with an onChange handler to @material-ui/types 4.1.1

Your Environment 🌎
@material-ui/types: 4.1.1

Could you include code that passes typescript but should be rejected? Or is there code that is rejected that should pass in your opinion?

This worked with previous versions:
const MyTabs: React.FC<TabsProps> = props => <Tabs {...props} />
const ShouldWork = () => <MyTabs onChange={(e: unknown, value: any) => {}} />

Same problem here since 4.4.1 and newer. ((event: ChangeEvent<{}>, value: any) => void) & ((event: FormEvent<HTMLButtonElement>) isn't the correct type for this. Should be just (event: ChangeEvent<{}>, value: any) => void

I found that I'm only getting this error when using TabProps while wrapping the Tabs component.

I believe it's a duplicate of #17454.


Support x64 emulator (Tizen 8.0)

A 64-bit emulator was added in Tizen 8.0.
https://www.tizen.org/blogs/sungjinlee/2023/announcing-tizen-studio-5.5-release
Therefore, common profile + x86_64 arch builds should be supported.
flutter-tizen build tpk --debug --target-arch x86_64 -p common
To support this environment, the x86_64 artifact must be supported in both the engine and embedder.

We can simply use the term "x64" (instead of x86_64) for consistency with the current codebase and flutter_tools.


Set EastAsianWidth to fix broken layout

Box layout in the top of screen is broken when using CJK locales.
The following is a screenshot, using MacOS 12.4, iTerm2 3.4.16, and LANG=ja_JP.UTF-8

The first letter of titles aren't displayed, and box layout is broken.
The reason is that those box-drawing characters are ambiguous width ones, which will be displayed with a narrow width with non-CJK locales, but with wide width with CJK, which would break layout.
One way to fix it is to override DefaultCondition.EastAsianWidth variable in go-runewidth with false, so that any ambiguous width charactes would always be displayed with narrow width.

Sorry for late.
I'll check soon.


Please add a working example with boost test

Somehow I am not able to get boost test working with cpm.cmake. I have used the snippet for boost libraries, used cache but neither the include nor libraries are found.

Following is something that is currently working for me (taken from this another issue)
set(Boost_USE_STATIC_LIBS ON)
  set(Boost_USE_MULTITHREADED ON)
  set(Boost_USE_STATIC_RUNTIME OFF)
  CPMAddPackage(
    NAME Boost
    VERSION 1.79.0
    GITHUB_REPOSITORY "boostorg/boost"
    GIT_TAG "boost-1.79.0"
  )
  if(Boost_ADDED)
      message("boost asio downloaded at " ${Boost_SOURCE_DIR}/libs/asio/include)

      file(GLOB files "${Boost_SOURCE_DIR}/libs/*/include")
      foreach(filename ${files})
          include_directories(${filename})
      endforeach()

      file(GLOB files "${Boost_SOURCE_DIR}/libs/*/*/include")
      foreach(filename ${files})
          include_directories(${filename})
      endforeach()
  endif()

Is this the correct way? Can this be properly documented in examples?

You shouldn't use include_directories in modern cmake but rather create a target and use target_include_directories
Did you took a look at boost-cmake ?

@OlivierLDff ,
I am not using include_directories in my actual targets, but what target should I specify for things that are added by CPMAddPackage?
I want to use CPMAddPackage for all external dependencies and don't want to bother separate solutions like boost-make.

Seems that boost still has poor CMake support. See #359 for our rollback to boost-cmake.

If you only need asio,  you may try this:
https://github.com/chriskohlhoff/asio/pull/1105
It is much faster to fetch and is an interface library.

done, see https://github.com/cpm-cmake/CPM.cmake/pull/359/commits/7db2d511ae4c4228a0620ce58872990c460386c3

done, see 7db2d51

Thanks @ClausKlein , where is the part to download boost? I am not able to see top level CMakeLists.txt where this code might be.

https://github.com/cpm-cmake/CPM.cmake/blob/7db2d511ae4c4228a0620ce58872990c460386c3/examples/boost/CMakeLists.txt


Factory Tech CT documentation

@dalapo Is this PR still a thing?
If so please change your PR to match the requested changes

Closing because of no response from up for over 6 months...

Closing this due to inactivity


Update Kafka Experiment to support version 3.x and newer

What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
In conjuction with https://github.com/litmuschaos/test-tools/pull/210
Checklist:

[ ] Fixes #
[ ] PR messages has document related information
[ ] Labelled this PR & related issue with breaking-changes tag
[ ] PR messages has breaking changes related information
[ ] Labelled this PR & related issue with requires-upgrade tag
[ ] PR messages has upgrade related information
[ ] Commit has unit tests
[ ] Commit has integration tests
[ ] E2E run Required for the changes

Thanks, @tommynguyen-vungle for the PR, can you also attach the logs with Kafka 3.X version.


add force registration option

In some cases, like CI pipelines where machine names or VMs are reused the subscription state may not be relevant. Adding the force options helps reduce errors like:
Consumer profile "57c1a128-7463-40e1-b70d-08f826a2eab8" has been deleted from the server. You can use command clean or unregister to remove local profile

Looks good. thanks for this. I'll release a new version today.


Add support for cpu/mem requests/limits, node selectors

email<EMAIL_ADDRESS>

Feel free to add yourself here if you'd like

Refers to: helm-chart/azp-agent/Chart.yaml:7 in c2f8718. [](commit_id = c2f8718878bf341abfe8ae07ed0bb46008f07d39, deletion_comment = False)


Brush Mask for semantic segmentation Export to COCO

Hello. I have a problem with exporting the mask to coco.  I got the json file from labelstudio that had the rle format. I tried decoding it with all the open source codes and nothing works.
After decoding and exporting it, the coco viewer result is not correct.
What is the correct way of changing the RLE to mask?
Thanks in advance
@hlomzik

thx. this code worked for me.

Once you get the polygons, how exactly do you convert that into a COCO json file? I was able to get the rest of the code working but couldn't figure that part out

As I mentioned in my post, you will need to implement further logic to output COCO-style annotations. The labelstudio converter codebase is a good thing to check out if you need help.


IOGT 33:  Remove section and subsection heading

@peterp please review
Before Update:

Updated:

👍 , once CI is fixed.


Welding bones to attachments

This issue just covers a feature implementation for the feature request from InquisitorSource5

A few use cases for this feature would be:

Capes with bones attached to the shoulders
Grabbing bones

An implementation of such a feature would be as follows:
Object value under bone called "SmartWeld" this would point to an attachment that the bone should attach to
Create a new constraint which just forces the bones position to be at a specified location
At the start of each frame check for a SmartWeld object and check if the attachments position has changed, If so update our internal bone data to reflect that
Pass that data to the weld constraint which would then force the bones location
If you have any other ideas on such an implementation feel free to share.

Final implementation was decided as, SmartWeld obejct which can reference an attachment, bone or basepart. It can have an attribute called "Rigid" which controls wether it should use a spring or just set the bones position, commit soon.


experienced failure when building using tag release 0.3.0

I experienced failure when building using release tag 0.3.0 I use rust-1.74.0
https://github.com/RustPython/RustPython/tree/0.3.0
error[E0277]: the trait bound `&malachite_nz::integer::Integer: From<&BigInt>` is not satisfied
 --> common/src/int.rs:8:58
  |
8 | ...:from_integers_ref(numerator.into(), denominator.into())
  |                                 ^^^^ the trait `From<&BigInt>` is not implemented for `&malachite_nz::integer::Integer`
  |
  = help: the following other types implement trait `From<T>`:
            <malachite_nz::integer::Integer as From<bool>>
            <malachite_nz::integer::Integer as From<isize>>
            <malachite_nz::integer::Integer as From<i8>>
            <malachite_nz::integer::Integer as From<i16>>
            <malachite_nz::integer::Integer as From<i32>>
            <malachite_nz::integer::Integer as From<i64>>
            <malachite_nz::integer::Integer as From<i128>>
            <malachite_nz::integer::Integer as From<usize>>
          and 7 others
  = note: required for `&BigInt` to implement `Into<&malachite_nz::integer::Integer>`
error[E0277]: the trait bound `&malachite_nz::integer::Integer: From<&BigInt>` is not satisfied
 --> common/src/int.rs:8:78
  |
8 | ...umerator.into(), denominator.into())
  |                                 ^^^^ the trait `From<&BigInt>` is not implemented for `&malachite_nz::integer::Integer`
  |
  = help: the following other types implement trait `From<T>`:
            <malachite_nz::integer::Integer as From<bool>>
            <malachite_nz::integer::Integer as From<isize>>
            <malachite_nz::integer::Integer as From<i8>>
            <malachite_nz::integer::Integer as From<i16>>
            <malachite_nz::integer::Integer as From<i32>>
            <malachite_nz::integer::Integer as From<i64>>
            <malachite_nz::integer::Integer as From<i128>>
            <malachite_nz::integer::Integer as From<usize>>
          and 7 others
  = note: required for `&BigInt` to implement `Into<&malachite_nz::integer::Integer>`
error[E0277]: the trait bound `BigUint: From<malachite_nz::natural::Natural>` is not satisfied
  --> common/src/int.rs:27:46
   |
27 |             BigInt::from_biguint(sign, numer.into()),
   |                                              ^^^^ the trait `From<malachite_nz::natural::Natural>` is not implemented for `BigUint`
   |
   = help: the following other types implement trait `From<T>`:
             <BigUint as From<usize>>
             <BigUint as From<u8>>
             <BigUint as From<u16>>
             <BigUint as From<u32>>
             <BigUint as From<u64>>
             <BigUint as From<u128>>
             <BigUint as From<malachite_nz::natural::Natural>>
   = note: required for `malachite_nz::natural::Natural` to implement `Into<BigUint>`
error[E0277]: the trait bound `BigUint: From<malachite_nz::natural::Natural>` is not satisfied
  --> common/src/int.rs:28:27
   |
28 |             BigUint::from(denom).into(),
   |             ------------- ^^^^^ the trait `From<malachite_nz::natural::Natural>` is not implemented for `BigUint`
   |             |
   |             required by a bound introduced by this call
   |
   = help: the following other types implement trait `From<T>`:
             <BigUint as From<usize>>
             <BigUint as From<u8>>
             <BigUint as From<u16>>
             <BigUint as From<u32>>
             <BigUint as From<u64>>
             <BigUint as From<u128>>
             <BigUint as From<malachite_nz::natural::Natural>>
For more information about this error, try `rustc --explain E0277`.
error: could not compile `rustpython-common` (lib) due to 4 previous errors
Caused by:

I am sorry for late response. This is duplicate of #5120


Feature: Determining file types by headers in addition to extensions

What feature or improvement do you think would benefit Files?
I am not sure if this feature has already been proposed in other parts of the Internet, but I think this feature would be really good to be implemented natively in Files alone on the bare Windows OS. In this world, there can be file types with repeated extensions. One is .ts, either a MPEG transport stream file or a TypeScript scriping file. If the file type can be determined truly, the productivity and user experience can be strengthened if one has to handle file types with the same extension. A file type can usually be determined by file headers[^1], like how Linux does[^2]. It can also benefit even for files without extensions, like README and LICENSE files, although by just the filenames, and still not something can be handled by Registry now[^3].
Windows only handles to determine file types by Registry and for further procedures like thumbnails (e.g. image previews), but the content is mostly not taken into consideration in the process. If it is something can be done with a filesystem explorer, it can be done more easily without having to think when Windows handles this thing, though I do not know whether they would, as I am not a Microsoft employee.
A database or a built-in handle can be implemented on Files originally. Perhaps can as well be done similarly of how file does.[^4] The first filter could just be also using extensions to filter out files that are not a part of the standard for a particular file type, like OGG would be usually suffixed by .ogg, .flac by standard but not .docx or something, which would be generally not expected to be treated the same. For the magic number test, both an online global database and offline local private database/customization can be done. Then, developers can submit the scripts or logics to the database as public file type (wording from the Windows documentation), but can also register only on local user computer as private file type. Notably that, it is not quite like the IANA MIME type database, which just states the documentations and standards. The app could sync the database entries from the online global database in addition to also handle private file types locally, and users can remove the local entry if it has already been implemented in the global database. Even though the file type detection can be more distinguishable, there can still be conflicting types in with smaller chances than just by extensions, but it could be another issue to be discussed with. However, it would take time and effort to build up a mature database, with aids of developers and engineering over the world and the digital world.
Other than the part of feature just determining the file type, more actions can be done like what is done by the Registry one. This includes file type description and file icons/thumbnails/previews, even actions. Obviously, these are useful only on the basis of file types, but not bare just file names or extension names. Thus, it would be further allowed to supply these customizations like they do with Registry after file type determination (though better, there can be conflicts as only one instance for some features could be activated or enabled at a time, like icons).
[^1]: StackOverflow: "Is there a way to find file type?" answered by SilverWarior
[^2]: Stack Exchange Ask Ubuntu: "Do file extensions have any purpose in Linux?" answered by Byte Commander
[^3]: Stack Exchange Superuser: "How to set the default program for opening files without an extension in Windows?" answered by hasen
[^4]: Stack Exchange UNIX & LINUX: "How are file types known if not from file suffix?" answered by chaos
Requirements

File type determining feature in the app
Online file type database
Offline file type database

Files Version
<IP_ADDRESS>
Windows Version
10.0.26100.2033
Comments
Actually it somehow seems like to be a kind of big project instead of being a part of the Files software project. Of course it would be better if it is supported by the OS natively, but it is really different from how the feature worked by the Registry currently, thus unlikely to be handled by them.
Furthermore, now Windows does not support changing "default" behavior for file association by Registry[^5], as on Windows 10/11 users cannot manage file association settings through such settings[^6], but instead seemingly just via Settings (user) and the mentioned interface[^5] (app).
[^5]: StackOverflow: "Editing the Windows registry doesn't impact the default "open" action when double-clicking files"
[^6]: Windows OS Hub: "Changing Default File Associations in Windows 10 and 11"; related Question thread on Microsoft Learn: "Registry Location For File Extension Associations"

This is an interesting proposal! I'm curious if there's already a library available for this. My initial concern is that unless the information is available natively from Windows, performance can be a problem.


Training CNV networks

Hi,
I have tried to train the cifar10 netowork without any modification to the .py file.
I have followed the instructions to install the prerequisites, however opun ececution I have the following error.
sayf@sayf-MS-7B61:~/BNN-PYNQ/bnn/src/training$ python cifar10.py -wb 1 -ab 1
WARNING (theano.sandbox.cuda): The cuda backend is deprecated and will be removed in the next release.  Please switch to the gpuarray backend. You can get more information about how to switch at this URL:
https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end(gpuarray)
Using gpu device 0: GeForce GTX 1080 Ti (CNMeM is disabled, cuDNN 5110)
activation_bits = 1
weight_bits = 1
batch_size = 50
alpha = 0.1
epsilon = 0.0001
W_LR_scale = Glorot
num_epochs = 500
LR_start = 0.001
LR_fin = 3e-07
LR_decay = 0.983907435305
save_path = cifar10-1w-1a.npz
train_set_size = 45000
shuffle_parts = 1
Loading CIFAR-10 dataset...
Traceback (most recent call last):
File "cifar10.py", line 119, in
train_set = CIFAR10(which_set="train",start=0,stop = train_set_size)
File "/home/sayf/pylearn2/pylearn2/datasets/cifar10.py", line 71, in init
string_utils.preprocess('${PYLEARN2_DATA_PATH}'),
File "/home/sayf/pylearn2/pylearn2/utils/string_utils.py", line 56, in preprocess
reraise_as(NoDataPathError())
File "/home/sayf/pylearn2/pylearn2/utils/exc.py", line 90, in reraise_as
six.reraise(type(new_exc), new_exc, orig_exc_traceback)
File "/home/sayf/pylearn2/pylearn2/utils/string_utils.py", line 53, in preprocess
else os.environ[varname])
File "/usr/lib/python2.7/UserDict.py", line 40, in getitem
raise KeyError(key)
pylearn2.utils.exc.NoDataPathError: You need to define your PYLEARN2_DATA_PATH environment variable. If you are
using a computer at LISA, this should be set to /data/lisa/data.
Platform-specific instructions for setting environment variables:
Linux
On most linux setups, you can define your environment variable by adding this
line to your ~/.bashrc file:
export PYLEARN2_VIEWER_COMMAND="eog --new-instance"
*** YOU MUST INCLUDE THE WORD "export". DO NOT JUST ASSIGN TO THE ENVIRONMENT VARIABLE ***
If you do not include the word "export", the environment variable will be set
in your bash shell, but will not be visible to processes that you launch from
it, like the python interpreter.
Don't forget that changes from your .bashrc file won't apply until you run
source ~/.bashrc
or open a new terminal window. If you're seeing this from an ipython notebook
you'll need to restart the ipython notebook, or maybe modify os.environ from
an ipython cell.
Mac OS X
Environment variables on Mac OS X work the same as in Linux, except you should
modify and run the "source" command on ~/.profile rather than ~/.bashrc.
Original exception:
KeyError: PYLEARN2_DATA_PATH
I have modified the bashrc and have sourced it yet it causes the same problem.
Any help will be much appreciated.
Kind regards,
Sayf Khan

As the error suggests, you have not set the PYLEARN2_DATA_PATH variable as specified here. If you would like this environment variable to persist, please add the line export PYLEARN2_DATA_PATH=~/.pylearn2 to your .bashrc file or similar.


[Q] How are logs captured by WandB?

Lately I've been using an unofficial WandB Julia wrapper which works great, except it doesn't capture log messages.  I've spent some time looking through the WandB Python package and cannot see where it captures log messages, how are log messages captured?
This issue at Wandb.jl: https://github.com/avik-pal/Wandb.jl/issues/11

Hey @JoshKImperial unfortunately it's rather none-trivial.  The majority of the logic is here.  To support progress bars and various ascii control characters we had to implement a terminal emulator.  The actual stdout and stderr redirecting happens after wandb.init is called in this function.  Additional complexities include special logic for Windows and multiple modes of wrapping the stdout and stderr depending on various environments like jupyter etc.
In the end after all the emulation and de-duping the data is periodically streamed to a wandb server from the FileStream thread which streams the data under the "output.log" key using the CRDedupeFilePolicy.

@vanpelt Is it possible to disable any wandb log capture / meelding with sys.stdout/stderr completely?

@vadimkantorov yep, with the WANDB_CONSOLE=off env variable.


Pin Poetry dev dependencies

Codecov Report

Merging #3 (d3dfcd5) into main (f2bf4c7) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main        #3   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         2
  Lines           25        25
  Branches         6         6
=========================================
  Hits            25        25

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Deferring build in Parameterized classes?

Hello,
I was wondering if there is a way to turn off automatic building in Parameterized objects. As far as I understand, whenever a Parameterized object is construct a 'build' method is called that builds that object into a Tensorflow graph? I would like to defer that process such that I am able to add attributes to the Parameterized object via methods that I define and then build it into the graph at a later stage. Is this possible?
Example:
class OutputLayer(Layer):
    def initialize_forward(self, X, Z, mean_function):
        """
        Initialize Layer and Propagate values of inputs and inducing inputs
        forward
        """

        self.Z = Parameter(Z)
        self.mean_function = mean_function

This is an example of a Deep Gaussian Process output layer. I'd like to call the initialize_forward method after the object was constructed to set the values of the inducing inputs and the mean function.
Thanks!

Hello @aboustati,
Yes, you can defer build.

Decorator

@gpflow.defer_build()
def method_with_gpflow_objects():
    pass

Context Manager

with gpflow.defer_build():
    p = gpflow.Param(..)
    m = gpflow.models.SVGP(...)

Autobuild option

p = gpflow.Param(.., autobuild=False)

@aboustati I'm closing this issue. Feel free to re-open it, if you have more questions.

@awav thanks for your reply and sorry getting back to you this late (holiday period!).
I managed to use the defer_build decorator to change values of attributes that are already set. However, I am still struggling with setting new attributes. More specifically, I get the error "Cannot be added to assembled node.", when I call the initialize_forward method in the example above. The error occurs when I try to set the value of the attribute Z in the line:
self.Z = Parameter(Z)

Is this due to the build process still or is it a different issue specific to the  Parameterized class?
Thanks!

@awav I realised that I am unable to re-open this issue myself as it has been closed by a repo collaborator. Is it possible to re-open it from your end?
Thanks!


Split-Brain detection

Hi,
Does this plugin detect when partitioning (split-brain) is happening and can we alert off that?
Thanks,
-Eric

https://rpm.newrelic.com/accounts/2244068/plugins/23012


Support configuring envoyproxy infra attributes in the Helm chart

Description:

Describe the desired behavior, what scenario it enables and how it
would be used.

In vendor, it has some scenarios for configuring envoyproxies attributes. It would be nice to configure all the envoyproxy knobs in the helm chart.
[optional Relevant Links:]

Any extra documentation required to understand the issue.

+1 to this, a envoyProxy / envoyProxyTemplate field could be added to https://github.com/envoyproxy/gateway/blob/71c0b5408f7f80ef8b9d1e0bcf511891839edecd/api/v1alpha1/envoygateway_types.go#L154
This now introduces 3 levels of EnvoyProxy configuration (EnvoyGateway, EnvoyProxy attached to GatewayClass, EnvoyProxy attached to Gateway)
The current merge Strategy is Replace and most specific one wins, so if the admin set the image value at top level it will be overridden if any other value is set in the lower level EnvoyProxy (all fields are replaced today)
There is the Merge Strategy option  tracked with https://github.com/envoyproxy/gateway/issues/1934


[Feature Request] Adding SPL

Would it be possible to add the Scottish Premier league ?
i'd be more then happy to commit the teams, squads etc. if need be.
regards

go for it


GoogleWebAuthorizationBroker and FileDataStore on NetStandard

Fixes #897

Integration tests pass on:

Window desktop
Windows core
MacOS core

I haven't tested on Linux Core yet, but will before merging.

Would this also fix #941 ?

@sguergachi This partially fixes #941, in that there is now a FileDataStore available for netstandard and therefore UWP. However, if we decide to support UWP I would expect we'll provide an IDataStore implementation using Windows.Storage, which is more suitable for a UWP application.


moved fonts from font to fonts (defacto standard) ...

then your toolchain did a bunch of stuff idk what happened in bin/materialize.css.. didn't touch anything else

Fixed in a1ca0a997efb692a27fcfa85a7cc5277b24c0e57


Better error messages for erroneous imports

This change improves the error messages shown when a user tries to import a non-existant export from another module. This also includes edit-distance hinting when it seems like the referenced name in a named-import is "close" to one of the remote module's named exports.
The fuzzy-match hinting will also try to help guide the user for the (not-completely-rare) cases where one accidentally attempts to use import foo from "bar"; to import a named export from another module and becomes confused by the error message (not realizing that the correct syntax for this is import {foo} from "bar";).

This is great! The error messages are miles better and the spellcheck suggestion is nifty!


Create Governance Info card

After discussion, governance parameters should be fetched from RPC server instead of from bdjuno via graphql-server. Will revert the PR merge later (tracked in #185). The API is re implemented in this PR.
Changes

implement govParams API
create gov info panel
add gov info panel to create proposal page and overview page

Screens

refs oursky/likedao#167, oursky/likedao#168

@hochiw updated

@hochiw updated 🙇


Proposal-Cleanup

Hi,
I noticed some  tag showing after merging and i also mistakenly pushed a duplicate of a table, during conflict resolution.
Thanks

LGTM. Please note that the payload json for this proposal will not result in the intended execution outcome.
The JSON executes the approval method on the stableToken contract with the governance contract as the holder and the DAO address as the spender. The governance contract has no cUSD stored in it at present. You can view the token balances here
The governance proposal should use either specify GoldToken or StableTokenEUR as these are the only two tokens that have sufficient balance to meet the proposal specifications.

Hi @0xzoz  thank you for this feedback, i have updated the payload json from StableToken to GoldToken in my next pr. LMK what you think.
cheers.


Feature request: Delete pre 1.11 (Cluster)PolicyReports when upgrading to 1.11

Pre 1.11, (Cluster)PolicyReports where created as follows:

1 ClusterPolicyReport named polr-clusterwide
1 PolicyReport per namespace, named polr-ns-<namespace name>.

From 1.11 onwards, (Cluster)PolicyReports are created as follows:

Per each resource, create a (Cluster)PolicyReport with metadata.name that equals the resource uid.

The audit-scanner in 1.11 doesn't deal with the old policy reports format, leaving them hanging behind.
Still, downstream consumers such as Rancher Kubewarden UI and Policy Reporter UI would read both the old format and the new, potentially showing old report results that are bound to be outdated.
Acceptance criteria

[ ] Add a Helm pre-install update hook that runs the kubewarden/kubectl image and deletes the old reports created by kubewarden.
[ ] The job should not delete all kubewarden reports (pre and post 1.11); as this means that an upgrade cleans the reports, which is too invasive.

I have the Helm template, and I'm iterating with the kubectl delete command. Note that the kubewarden/kubectl image has as entrypoint kubectl and doesn't start a shell.
The following command deletes all reports owned by Kubewarden, pre and post 1.11. I this too invasive since this will happen in all helm upgrade:
kubectl delete clusterpolicyreport,policyreport \
  -l app.kubernetes.io/managed-by=kubewarden

The following command tries to delete those reports that match the pre 1.11 metadata.name schema, but this is not possible, as neither field selectors nor set-based selectors allow for wildcards or prefixes:
kubectl delete clusterpolicyreport,policyreport \
  -l app.kubernetes.io/managed-by=kubewarden \
  --field-selector metadata.name==polr-clusterwide \ # correct
  --field-selector metadata.name==polr-ns-<ns name> # not doable

Hence, I would like to add a new label to 1.11 reports that would allow to target the pre 1.11 reports:
metadata:
  labels:
    app.kubernetes.io/managed-by: kubewarden
    kubewarden.io/policyreport-version: v2

I think this is a good idea. In that way the delete could use the selector kubewarden.io/policyreport-version not in "v2", or something like that

the selector should be matching for the label to not be present, or we may delete v3 policyreports in the future.


config.sh fails with message: Deployment type has not been determined

Agent Version and Platform
Version of your agent? 2.195.0
OS of the machine running the agent? Linux x64
Azure DevOps Type and Version
on-prem Microsoft Visual Studio Team Foundation Server
Version 15.112.26307.0
(Is this at all supported?)
What's not working?
config.sh fails with message: Deployment type has not been determined
We have successfully been running an older version 2.155.0 of the agent on the same machine since 2019.
I now want to install the latest version, but I do not seem to be able to register a new agent. Is my TFS server too old?
Agent and Worker's Diagnostic Logs
Agent_20211112-164604-utc.log

Hi @stas2, starting with release 2.194.0, a hash validation of the pipeline agent package during self-updating was implemented. The agent needs to know the server deployment type for this. Besides that, it is used by ConfigurationManager here and here. You can avoid this error by using the pipeline agent version 2.193.1. Most likely, the reason why you have got this issue is that the deployment type determination has not yet been implemented for your server version.

@stas2 since TFS version 15 is still supported, we are going to fix this issue for ConfigurationManager by throwing warnings instead of errors. You will be able to set the environment variable DISABLE_HASH_VALIDATION=true to avoid this error during the self-update process.

Related Pull Request

@DenisRumyantsev Thank's for fixing this issue!
It's unfortunate however that version 2.195.0 suffers from this problem as that version also adds support for VS2022.
Can you give an estimate on when your PR will probably be merged and published?
Is there any way for me to avoid or 'sabotage' the call to SelfUpdate(), e.g. by blocking internet access?
I tried the following, but to no avail:
setx DISABLE_HASH_VALIDATION true /M
setx agent.disableupdate true /M
set DISABLE_HASH_VALIDATION=true
set agent.disableupdate=true

@DenisRumyantsev Thank you for quick reply and prompt action. I tried version 2.193.1 and it worked with TFS 15. Meanwhile we have migrated to Azure DevOps 2020 1.1, so the latest version works great.

Hi @FrankHeimes, currently, the PR is under code review and testing. We plan to merge this PR and release a new version of the agent in the near time.
Setting the DISABLE_HASH_VALIDATION environment variable to true should prevent only the hash validation during the self-update process, but not the self-update process itself.

Related changes have been merged. I will update this ticket once they will be rolled out to all Azure DevOps users.

The 2.196.* pipeline agent release is delayed. Waiting when it will be rolled out to resolve this issue.

Hi @stas2, the agent v2.196.2 was released. Could you please check that the issue is resolved now?

Thank you for the update. Unfortunately I cannot check the issue any more since we have updated infrastructure to newer version.


[Suggestion]: Code Notes

Hello! Want to preface this 'issue' by sincerely thanking the owners of this repo & those that were responsible in creating the codegen model for taking the time to publish about your process, open source the model & create accompanying repos + publishing the models on HuggingFace. Your contributions to the community are invaluable.
I wanted to inquire about potentially adding code notes to some (or all) of the .py files included in this repo. While I know this is a big ask, I was curious about whether this might be a good place to put your fine tuned codegen_6b_mono model to work since it was trained on a large corpus of Python code, specifically. While program synthesis via NLP is a remarkable breakthrough, I also believe increasing the literacy of code for general observers is equally important.
Given all you guys have done in creating the relevant models, fine tuning & benchmarking them, documenting the process, publishing your findings & results as well as publishing the relevant code publicly, it would be borderline rapacious to demand the deployed code be annotated. Thus, I'm wondering if this could be considered an additional "real-world" use case for the fine tuned model you all created.
Please let me know what you guys think. I believe such a task is in line with this project's core ethos, which seems to be lowering the barriers to entry for programming or development, whether that be through an expedited workflow for experienced programmers or providing a 'bridge' for those that have a strong semantic understanding of programming / programming task, but lack the technical knowledge to iterate the necessary code from scratch. In specific, the latter scenario represents a democratization of involvement in the coding and programming process.
In that same vein, I believe potentially leveraging this model to append / annotate published code will promote a more comprehensive understanding among all those that interact with it - which can ultimately lead to reduced mistakes, errors, and misconfigurations all while also saving developer's time in answering questions or clarifying certain misunderstandings that may otherwise be made clear through this effort.

Hey @Librechain Its kind of what chatGPT is able to do , its really a good suggestion of having some briefing of the code . If this can be achieved then its great.

Great idea, despite all the effort done by the team, it's still hard to get to fine-tune one of their models, mostly because the code is not annotated, and README instructions are cryptic


buffers over files | nPrint optimization

This branch features an implementation of the nPrint -> features pipeline wherein nPrint results need not be stored to disk and reread from disk, and instead these results are passed to labeling/aggregation as a stream of in-memory buffers.

streams nPrint results to subsequent pipeline step(s) as in-memory buffers
user is relieved of having to store nPrint result files on disk (even temporarily). Should they want these results saved (for debugging purposes) they may opt in to this.
Labeling step adds support for stream of file-like objects of nPrint results
Pipeline records timing information of its invocation in results
Step- and lower-level timing information is also added to the pipeline results
--concurrency checks that value is 1 or greater
utilities added (for use by Net step)

See: #39

@JordanHolland: Let's keep playing with this; but, like I said, for me, this performs no differently than before. That said, it does relieve us of storing nPrints on disk (needlessly). (And, regardless, there're clearly further improvements to make beyond just using in-memory buffers.)

Here are my most recent timings (in minutes – with rounding errors :shrug:).
Branch
CLI time: 29
pipeline time: 29
(note: here the stream time is relevant, but also it overlaps with aggregation.)
nprint time (to return): 0
nprint time (to stream): 8
label/aggregation: 22
pre-learn: 22
learn: 7
Main
CLI time: 28
pipeline time: 28
nprint time (to return): 2.3
nprint time (to stream): n/a
label/aggregation: 19
pre-learn: 21-22 (rounding)
learn: 7

FYI: I tweaked it some more to more closely match your original test setup (used ProcessPool to manage subprocess calls). No different really.
pipline time: 27.4 m
nprint time: n/a
nprint stream: 6.5m (see below)
label/aggreation: 20.7m
pre-learn: 21m
learn: 6.6m

OK I did it one (last) time to even more closely mimic your use of multiprocessing and buffers, (by collecting a list of buffer results and handing it over to labeling in full).
It's no different.
Again, happy to explore this deeper; but, I can't help wondering if in-memory buffers (StringIO) were really what sped things up for you.
Regardless, they're useful to us, (as is multiprocessing, etc.). And we'll add further improvements. But it's good to be sure what's what.
If what I'm seeing is the case, then perhaps we'll want to merge what we have in this branch, (once it's totally ready). It gets nPrint artifacts off the disk, and lays a basis for further improvements.

pipeline with list of nprint process pool results
pipeline time: 28.6m
nprint: 2.3
label/agg: 19
pre-learn: 21
learn: 7

Yeah, i'm seeing about the same.
8 threads:
-- main branch --

-- new branch --

64 threads
-- main branch --
-- new branch --
(incoming, but i expect nothing different besides faster nPrint / AutoML)


onnx problem

how to convert to onnx, I meet the problem,
assert target.dim() == 4 and target_weight.dim() == 3
AttributeError: 'NoneType' object has no attribute 'dim'
code:
model = build_posenet(cfg.model)
load_checkpoint(model, args.checkpoint, map_location='cpu')
model = model.eval()
x = torch.randn((1,3,384,288))
target = torch.randn((1,4,384,288))
target_weight = torch.randn((1,4,1))
output_path = "onnx/lite_HRNet_960_1280.onnx"
torch.onnx.export(model,               # model being run
                x,                         # model input (or a tuple for multiple inputs)
                output_path,   # where to save the model (can be a file or file-like object)
                export_params=True,        # store the trained parameter weights inside the model file
                opset_version=11,          # the ONNX version to export the model to
                do_constant_folding=True,  # whether to execute constant folding for optimization
                input_names = ['inputx'],   # the model's input names
                output_names = ['outputy'], # the model's output names
                verbose=True,
                )

the error can refer:
https://github.com/HRNet/Lite-HRNet/issues/23
@ycszen

another problem: RuntimeError: Only tuples, lists and Variables supported as JIT inputs/outputs. Dictionaries and strings are also accepted but their usage is not recommended. But got unsupported type float

Hi,
Have you solved this problem?

Hi, i faced this same problem.

same issue here, any thoughts?

I have a repo that implement another way of Lite Hrnet (not dependent on mmpose apis) and i can convert model to onnx format. See my repo: https://github.com/viet-hoang-99/Lite_HRnet_vh


Upgrade Base Image for PDS Solutions to Ubuntu 22.04

Ubuntu 22.04 is scheduled for release on the 21st of April 2020: https://cloudcone.com/docs/article/ubuntu-22-04-release-schedule-and-features/.
Once, Ubuntu 22.04 is released, all PDS solution images using Ubuntu should be upgraded and tested.

Ubuntu 22.04 is generally available: https://ubuntu.com/blog/ubuntu-22-04-lts-released.

There is a separate issue for ScanCode #1261

Pushed changes accidentally directly to develop branch.


CI: Fix CI Tests

1. What does this change do, exactly?
This change fixes the CI tests
2. Please link to the relevant issues.
n/a
3. Which documentation changes (if any) need to be made because of this PR?
n/a
4. Checklist

[ ] I have written tests and verified that they fail without my change
[X] I have squashed any insignificant commits
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[X] I am willing to help maintain this change if there are issues with it later

What was wrong with them? i.e. what does this do?

What was wrong with them? i.e. what does this do?

gometalinter --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --tests --vendor ./...
WARNING: exec: "govet": executable file not found in $PATH

Reference: https://github.com/alecthomas/gometalinter/pull/375 & https://travis-ci.org/mholt/caddy/jobs/290014984

Ahhh, gotcha. Thank you!


Add attach dock server for attaching and detaching operation

What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
Release note:

Coverage decreased (-1.08%) to 54.957% when pulling 18e7045089067dde56c2404ec78be1fa3c206bd4 on leonwanghui:attach-dock into 678e3334fc055b3fb80ca78642afcc18843289cc on opensds:development.

I will merge this patch for now, but I will update it if there are some bugs.


Pathfinder

Nice, looks like a major collision rewrite using the Pathfinder class, a bunch of new utility classes including a timer, and some cleanup.


Cleanup deprecation warnings

Proposed changes:

cleanup some old deprecation warnings
new API to raise a deprecation warning, that requires a warn_until_version argument.
(Original Slack thread)

Status (please check what you already did):

[ ] added some tests for the functionality
[ ] updated the documentation
[x] updated the changelog (please check changelog for instructions)
[x] reformat files using black (please check Readme for instructions)

@tmbo @erohmensing this is a second pass to remove deprecation warnings and introduce a new API to raise deprecation warnings. WDYT?

@degiz I've implemented the changes we just talked about: keep nlu.yml the same as it doesn't need validation to go through; custom validation of "custom" and "text" keys inside of a response. Ready for review 🚀

@degiz last thing: test_nlg_fails_on_empty_response() is failing because of the changes I made in RasaYAMLReader. Should I remove the test? Why did we write it in the first place?

@m-vdb I've just noticed that responses are parsed as a part of NLU, it used to be a domain!
@tmbo since you've implemented the recent changes to response selector, we now have Domain::collect_templates() and RasaYAMLReader both operating on responses YAML key, was it done intentionally? Could it have be just one of the files?

yes and no - it could have been a single file, but previously we required users to move the responses into their own file which made it easier to implement this in the same way.
conceptually it should be possible to combine utter templates and response selector responses, we just need to make sure they end up in the right place

@degiz from the commit on this file it looks like it was intended. The commit also introduced the changes to schemas/nlu.yml.
It looks to me that I should re-revert my changes:

create rasa/utils/schemas.yml file
define a partial schema for the responses key there
reference this partial schema in both domain.yml and nlu.yml

Do you agree?

@m-vdb I'm sorry things are so complicated 😄
Anyway, this "split responses" topic is definitely not part of this commit, so yes, please proceed with you original change.

no problemo - good learning opportunity for me! Will push my changes


Styles: Align text input styles with figma

Align the implementation of the text input with figma (https://www.figma.com/file/xZ0IW0MJO0vnFicmrHiKaY/Components?node-id=7830%3A34310&t=cV2KtiERUC03yvvs-4).
This is a breaking change.

[ ] Show placeholder on floating label inputs (wait till label is floated, then remove color transparency and on blur, hide the placeholder fast before the label is animated)
[ ] Reduce number of size variants to two (72px and 48px)
[ ] Rename the component to Text Input
[ ] Update storybook and demo app

@gfellerph it looks like an old issue which is covered by: https://github.com/swisspost/design-system/issues/1835 and https://github.com/swisspost/design-system/issues/2225

Closing as duplicate of #1835, #2225 and #2527


implementing listing education user

This PR implements listing of an education user
https://owncloud.dev/libre-graph-api/#/educationUser/ListEducationUsers
https://owncloud.dev/libre-graph-api/#/educationUser/GetEducationUser

PhanDeprecatedImplicitNullableParam Implicit nullable parameters
Those were fixed in #248
Please rebase and get CI green again.


RFC: The future, a design system framework

History & Present
Aesthetic was built around the time that CSS-in-JS solutions were rising in popularity. It was
designed to bridge the gap between current CSS-in-JS libraries and React components, and was not
meant to be yet another CSS-in-JS library. As such, Aesthetic offers the adapter pattern where
CSS-in-JS libraries are plug-and-play, while not handling the CSS itself.
Besides the above mentioned, Aesthetic aimed to solve the following problems that plagued libraries
and applications.

CSS-in-JS libraries require different syntax for defining styles. This could be problematic when
switching libraries (for performance or other reasons), as the syntax differs, and would require
a potential massive migration (and ejection if a failure). To mitigate this, Aesthetic implements
a "unified syntax", where the same syntax works
for all adapters.
The other issue that a unified syntax solves is third-party library adoption. If library A styles
their components with Aphrodite, and library B styles theirs with Fela, then we have 2 differing
and conflicting libraries. This would increase bundle size, reduce interoperability, and more. If
both A and B libraries were instead written in Aesthetic, then the underlying adapter (Aphrodite
or Fela) can be swapped out without breaking compatibility or increasing bundle sizes.

Outstanding issues
For the most part, Aesthetic works and serves its purpose pretty well. However, it's not perfect,
and could use a rewrite to solve the following issues.
Themes are too dynamic
There is no set structure for theme objects, and as such, they cannot be typed safely, nor can they
be trusted when interoping with third-party libraries. For example:
// Registered in an application
aesthetic.registerTheme('app-light', {
  colors: {
    white: '#fff',
  },
  unit: 8,
});

// Registered in a library
aesthetic.registerTheme('3rd-party-dark', {
  color: {
    black: ['#000'],
  },
  spacing: 4,
});

In the above example, an application and a third-party library may register a theme, completely
independent of each other, with differing structures (unit vs spacing, etc). When used in
parallel, components will break when themes change, as the following styles would only work under
one theme, not both.
useStyles(theme => ({
  padding: theme.unit * 2,
}));

This actually breaks interoperability and the 2nd adoption problem above. This was a massive
oversight on my end when designing the theme layer.
Global styles are complicated to manage
Global styles are primarily applied to html, body, and a, for global inheritance of colors,
spacing, and font sizing. This works flawlessly until one of the following occurs:

Rendering parallel themes using the React ThemeProvider component. When this happens, the global
styles in the next theme to compile will overwrite the previous theme. I'm not sure there's a way
to solve this correctly.
Dynamically change themes for the entire page, usually through a toggle switch or dropdown. When
this happens, we can easily purge/delete all existing styles in the document. However, in
practice, this is only true if the CSS-in-JS adapter that is currently configured supports it,
which most do not (will require upstream patches).

Component styles are hard to customize
Take the following style sheet for a Button, where it has a primary background with a 1px border
(dark blue), and a base text color (white). Seems straight forward right?
useStyles(({ color }) => ({
  button: {
    border: `1px solid ${color.primary[4]}`,
    backgroundColor: color.primary[3],
    color: color.base,
  },
}));

Not really. It's actually very restrictive, isolating, and hard to customize. The above works well
for the theme it was initially designed for, in this instance, a "light" theme. But what happens
when we change it to a dark theme?

First, the indices are reversed, so 0 is darkest and 10 is lightest. Depending on the
component, this will look great, or it will look terrible, and there's no way to change it based
on theme, since the CSS/syntax is hard-coded in the component.
The base color may change from white to black in the dark theme, so now we run into
accessibility concerns. Is black text viable on a colored button? Usually not. This is similar to
the issue previously mentioned, where we can't change the color property on a theme-by-theme
basis.
What if the dark theme wants 2px borders? Or no borders? Or rounded corners? Again, we have no
way of handling that.
So on and so forth.

Future
I would love to resolve all the issues mentioned previously, most of which are easily solved with a
type-safe and structure-safe theme layer. However, while brainstorming the possibilities, I thought
to myself, "Why not take a step back and expand the scope of the project?". What does this mean
exactly? Well, in the current state of the web development world, companies are pushing hard and
forward with design systems, such as: Airbnb Lunar/DLS, Google Material, GitHub Primer, SalesForce
Lightning, Mozilla Photon, Shopify Polaris, IBM Carbon, so on and so forth.
Every company is building their design system from scratch, with different technologies, duplicated
across many platforms. What if there was a technological solution to this problem? This is where
Aesthetic comes in. What if Aesthetic was re-purposed to be a "design system framework", where a
design system's fundamentals are configured (fonts, spacing, borders, shadows, breakpoints,
interactions, etc), are compiled to multiple target platforms or technologies (CSS, Sass, Less,
JS/TS, iOS, Android, React Native, etc), and is ultimately robust and easy enough to be used by any
company.
How it works
I've been researching existing design systems for commonalities
(Google doc),
as a means to build a foundation for this framework. After a bit of research, and minor technical
prototyping, I believe the initial step forward would be to use YAML for configuring a design
system, while adhering to the following fundamentals.

Modular scale will be used for all
scaling based algorithms. Can be configured per setting, with name or integer based values.
Colors may be unique per design system (and maybe theme too), but is inaccessible to consumers.
Consumers will need to use palettes, which are pre-defined colors + states for common UI elements.
Multiple design systems can be used in parallel (e.g., version 2019 vs version 2020). This is
possible since the "theme template" for the consumer will be identical regardless of design system
and theme parameters.

An example of that YAML file is as follows, with descriptive comments.
# Whether the design system focuses on mobile or desktop first.
# This settings will control various features, like breakpoints.
# Accepts "mobile-first" or "desktop-first".
strategy: mobile-first

# List of 3-5 breakpoints for responsive and adaptive support. If not provided,
# will default to the following 5 values.
breakpoints:
  - 0
  - 600
  - 960
  - 1280
  - 1920

# Spacing related settings.
spacing:
  # The algorithm used for spacing and page density calculations. Accepts the following:
  #   vertical-rhythm - Calculates font size + line height for spacing.
  #   unit - Uses an explicit pixel unit value for spacing.
  type: vertical-rhythm

  # Explicit spacing unit (in pixels).
  unit: 8

# Text and font related settings.
typography:
  # Font family for the entire system. If not provided, defaults to the OS font.
  fontFamily: 'Roboto'

  # Root font size (in pixels).
  fontSize: 16

  # Factor to increase (mobile-first) or decrease (desktop-first) root font size each breakpoint.
  fontScale: 1.1

  # Factor to increase font size for each text heading.
  headingScale: 1.25

  # Root line height.
  lineHeight: 1.5

# Border related settings.
border:
  # Rounded corner radius (in pixels).
  radius: 3

  # Factor to increase radius each size.
  radiusScale: 1

  # Width of the border.
  width: 1

  # Factor to increase width each size.
  widthScale: 1

# Shadow and depth related settings.
shadow:
  # Depth Y offset (in pixels).
  depth: 2

  # Factor to increase depth each size.
  depthScale: 1

  # Blur radius (in pixels).
  blur: 2

  # Factor to increase blur each size.
  blurScale: 1.25

  # Spread radius (in pixels).
  spread: 0

  # Factor to increase spread each size.
  spreadScale: 0

# List of all color names that each theme must implement.
colors:
  - red
  - blue
  - green
  - ...

# Mapping of themes and their colors.
themes:
  # A light theme with a custom name.
  foo:
    # Base color scheme for this theme. Accepts "light" or "dark".
    # Used in `prefers-color-scheme` browser detection.
    scheme: light

    # Mapping of all colors in the theme, with a range of 10 hexcodes per color,
    # with 400 being the base default color, and the bounds going from light to dark,
    # or dark to light if scheme is "dark".
    colors:
      red:
        00: '#FE8484' # Lightest
        10: '#FE8484'
        20: '#FE8484'
        30: '#FE8484'
        40: '#FE8484' # Base
        50: '#FE8484'
        60: '#FE8484'
        70: '#FE8484'
        80: '#FE8484'
        90: '#FE8484' # Darkest

    # Mapping of pre-defined palettes (UI states) to colors and their shades (from above).
    # Consumers will reference these values, instead of colors directly.
    palettes:
      # Priority (properties in order of specificity)
      # TODO - THESE ONLY APPLY TO BACKGROUNDS... WHAT ABOUT FOREGROUND/TEXT?
      primary:
        base: purple.40
        focused: purple.50
        selected: purple.50
        hovered: purple.60
        disabled: gray.40
        failed: red.40
      secondary: # ...
      tertiary: # ...
      neutral: # ...
      # States
      muted: # ...
      danger: # ...
      warning: # ...
      success: # ...
      info: # ...
      # Layout
      text: # ...
      box: # ...
      boxBorder: # ...
      input: # ...
      inputBorder: # ...
      shadow: '#000'

  # A dark theme with a custom name.
  bar:
    scheme: dark
    colors:
      red:
        00: '#FE8484' # Darkest
        10: '#FE8484'
        20: '#FE8484'
        30: '#FE8484'
        40: '#FE8484' # Base
        50: '#FE8484'
        60: '#FE8484'
        70: '#FE8484'
        80: '#FE8484'
        90: '#FE8484' # Lightest

Furthermore, the design system will embrace the following:

ems and rems for all font sizing.
Accessible colors and font sizes (AAA, AA Large, etc).
Responsive and adaptive aware by default.
prefers-color-scheme for automatic theme selection.

References

modular-scale
type-scale

Moving to wiki: https://github.com/milesj/aesthetic/wiki/The-future,-a-design-system-framework


Font rendering in setting while searching looks ugly on Linux (KDE - Fedora)

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.74.3
OS Version: KDE Plasma: 5.26.5, Fedora: 37, X11

Steps to Reproduce:

Open settings tab
Search for some param.

Duplicate of https://github.com/microsoft/vscode/issues/170699, but also, does this issue occur when running code with --disable-gpu?


(General) First Column won't export

Hi,
I'm using your add on to export a Google Sheet in XML format.  I've selected the "Include First Column" option, yet when I open the XML in Microsoft Excel, the first column never appears.
Please help!

Unfortunately I cannot share an example of my data because of the type of data it is...however, I can tell you that the first column is a "Days to Close" column which contains a formula that simply calculates the number of business days between an open & resolved date in two other columns.
At first I thought it was because the first column contained a formula, but other columns in my data-set has formulas and come out just fine.
My export settings are as follows:
XML Format - Current Sheet Only
Replace Existing File & Ignore Prefix (NOEX_) checked
Include first column in export checked
Nothing changed under Advanced Options
When I open the XML file, I see the first column of data.  But when I open the XML in Excel 2016, the first column never appears.

Here's the first 3 columns in Excel.  The Dates don't populate either.

Interesting. Then the actual XML file contains the exported data, but Excel just doesn't show it?
The dates not appearing could be related to how Sheets stores number values for dates, which is a known issue. Are those the only columns with missing row values?

Appears to be that way.  And yes, the dates missing and the first column are the only two things.  Excel shows everything else just fine.

Just to check, the exported XML should look something like this:
<6 DTC="6" FY_Quarter="Q3" Date_Resolved= ... />
Is that the case?

Hmmm...actually...it doesn't start that way.  Here, let me remove sensitive info so I don't get in trouble and give you a sample worksheet and XML.  Hang on

Sample Data - Formulas Removed.xlsx
I downloaded the Google Sheet into Excel.  That's the Sample Data.  All I did was copy/paste values so the formulas wouldn't mess up.
The Export attachment was ran with the settings described above.

The XML didn't attach.

I get the following data when I export your example with your specified parameters. Everything seems to be exporting as I would expect.
Sample.Data.-.Formulas.Removed.xlsx - QA Worksheet (Template).txt
Was the XML you posted above exported using ESD? The XML version declaration shouldn't exist unless you had enabled that option.