Warning: using default colour gamut for unknown light model "Paul Neuhaus"

Hi Erik,
i have the same issue described here #455 with the difference that the manufacturername and modelid the  of my light does not end with a space character.
Here the warning of the home bridge plugin:
Phoscon-GW: /lights/11: warning: using default colour gamut for unknown light model {"colorcapabilities":31,"ctmax":370,"ctmin":200,"etag":"4ffbb3c855f7275d73b88b601fc0ce60","hascolor":true,"lastannounced":"2020-12-09T15:44:33Z","lastseen":"2020-12-09T15:52Z","manufacturername":"Neuhaus Lighting Group","modelid":"NLG-RGBW light","name":"Küchenlampe","state":{"alert":"none","bri":149,"colormode":"hs","ct":250,"effect":"none","hue":6069,"on":true,"reachable":false,"sat":220,"xy":[0.4623,0.4149]},"swversion":"1001-0007","type":"Extended color light","uniqueid":"00:15:8d:00:02:a1:59:a9-02"}
The suggested command
ph probe -v /lights/11
gives me following output:
ph probe: /lights/11: cool ... done
ph probe: /lights/11: warm ... done
ph probe: /lights/11: red ............... timeout
ph probe: /lights/11: green ............... timeout
ph probe: /lights/11: blue ............... timeout
{
  "manufacturername": "Neuhaus Lighting Group",
  "modelid": "NLG-RGBW light",
  "type": "Extended color light",
  "bri": true,
  "ct": {
    "min": 200,
    "max": 370
  },
  "xy": {
    "r": [
      0.9961,
      0.0001
    ],
    "g": [
      0.0001,
      0.9961
    ],
    "b": [
      0.0001,
      0.0001
    ]
  }
}

Erik, can you update your file HueLight.js again to suppress the error message?
Kind regards
Hendrik

Is this a different light model or firmware, or is deCONZ now trimming the names?

My light model seems to have the same firmware version 1001-0007 as the model from issue #445. So it is possible, that deCONZ is trimming trailing spaces.

No more warning since v0.12.11
Great, Thank you
Hendrik

Please open a new issue, rather than hijacking one that's been closed for almost a year.


Microsoft.Terminal.Settings.ModelLib.vcxproj fails to build due to missing $quote; in

Windows Terminal version
No response
Windows build number
No response
Other Software
VisualStudio 2022.
Steps to reproduce
Microsoft.Terminal.Settings.ModelLib.vcxproj fails to build when the source directory path contains spaces (as in "P:\GitHub Projects...").
Microsoft.Terminal.Settings.ModelLib.vcxproj has three <Exec Command=pwsh.exe ...> nodes which do not have double-quotes (") around the file spec for the GenerateHeaderForJson.ps1 file.  Without the double-quotes the execution of pwsh.exe fails.
Expected Behavior
Modify the section of Microsoft.Terminal.Settings.ModelLib.vcxproj containing the Commands to be executed.  Following is the changed section:

Changes.txt
Actual Behavior
Without the additional "'s in the project file, the Microsoft.Terminal.Settings.ModelLib project fails to build.

Good catch! Someone should fix that. Feel free to open a PR if you'd like ☺


Last character is removed when clicking the original microflow button

We have the following setup:
ZipCode + housenumber. Housenumer is the widget, which executes a microflow with progress bar.
When pressing the ENTER key, everything works,
However, when we click the 'Search' button,(Which has the same microflow attached as the widget) instead of pressing enter, the last character is removed from the housenumer:
Example:
Zipcode 1234AB 22 ENTER --> returns 1234AB 22
Zipcode 1234AB 22 MF click --> returns 1234AB 2

Interesting. I've not witnessed this behavior myself yet.
Does it occur with a specific browser(version), or across all platforms?

Tested with Chrome and IE11.
Easily tested by placing a widget and a normal textbox with the same attribute directly below. I think the field is updated after each character. Since ENTER is a new action, it completes the field, however, clicking does not update the field.

Fixed! Thanks!


discord name tag settings in intellij

What's missing?
can i set the intellij name in the same location as the figure? using the {app_full_name} variable, etc.

You can create a new application with the desired name at the Discord Developer Portal, then copy the application id, enable "Custom application id" inside the plugin settings and paste the id into the field.
There's sadly no other way to do this because of Discord's limitations.


Merge with TBVaccine?

Hello, I'm the author of tbvaccine, which is very similar in functionality. I just discovered this library, and quite like how variables are presented (tbvaccine prints all the locals in the frame).
Would you consider merging the two, or implementing some features so tbvaccine is superseded? Mainly, the features are highlighting the parts of the traceback that are relevant to the user (see screenshots), making the filenames bold, etc.
Thanks!

I'd be interested in seeing what the exception looked like when the irrelevant bits are dimmed instead - however I'm not sure what TVVaccine does that's much different from this module :o
I can definitely make the filenames bold, however.

Just my 2 cents, I like TBVaccine's way of registering a global hook explicitly with add_hook (I understand that it is one extra line in the usage, but I still like the explicit and configurable way better)

The case against it @frol is that this kind of hack to help you debug shouldn't necessarily be application specific. It should be applicable to any python script that temporarily wants to show debug information for convoluted stack traces.
Encouraging users to include the hook in their scripts only encourages security and privacy vectors to be created. I'm actually glad @paradoxxxzero created his automatic hook module since I think it's a superior way to load this module and I've considered merging the two.
cc @Delgan

@Qix- We can also do import better_exceptions.auto for an automatic hook, and those who prefer to add it manually can do import better_exceptions; better_exceptions.add_hook().
With the commit I just merged, they could also do import better_exceptions_core; better_exceptions_core.add_hook().
Personally, I find the import better_exceptions.auto much more elegant, the problem is that it breaks the compatibility with the previous version if import better_exceptions no longer add an automatic hook.

So, I guess we can merge the @paradoxxxzero's automatic hook using the @anntzer solution: https://github.com/qix-/better-exceptions/issues/24#issuecomment-306714896
That way, better_exceptions can work without any import (which makes sense as one usually want enhanced exceptions everywhere).
Moreover, a better control can be achieved as requested by @frol by setting the BETTER_EXCEPTIONS environment variable to False and manually import better_exceptions; better_exceptions.hook(). This will allow implementing #40 without my better_exceptions_core workaround, as import better_exceptions will no longer automatically hook.
@Qix-  So, quick question: do you want pip install better_exceptions to automatically set the environment variable to True (I guess the setup.py can be modified to perform a post-install action)? Or should we let it unset and instead indicate in the README how to enable it?

Great questions.
To me, better_exceptions should never touch code. After writing it enough, I feel like it'll be misused or (worse) used in a library, making unexpected side effects for consumers of that library.
I've had a disclaimer in there before that it should only be used in debugging/local/dev/staging environments, as there is no way to filter out sensitive information from the traces and thus might expose sensitive information in logs if used incorrectly.
I think @paradoxxxzero was exactly right with his module.


form validation

After I started your example, Skills removed multiple choices, Submit removed disabled={!formik.dirty}, changed the validation rules skills: array().required('At least one skill is required'), and then click submit to submit the form, This form verification error is not displayed.

import React from 'react'
import { Formik, Form, Field } from 'formik'
import { object, string, array, date, mixed } from 'yup'
import {
Autocomplete,
Select,
TextField,
KeyboardDatePicker,
KeyboardTimePicker,
} from '../../src'
import countries from './data/countries.json'
import skills from './data/skills.json'
const validationSchema = object().shape({
username: string().required('Username is required'),
gender: string().required('Gender selection is required'),
country: string().nullable().required('Country is required'),
skills: object().nullable().required('At least one skill is required'),
birthdate: date().nullable().required('Birth date is required'),
interviewTime: mixed().required('Interview Time is required'),
})
const initialValues = {
username: '',
gender: 'Female',
country: null,
skills: [
{
label: 'ASP.NET',
value: 'ASP.NET',
},
],
birthdate: null,
interviewTime: null,
}
const SimpleFormExample = () => (

Simple Form Example
 {
        // eslint-disable-next-line no-alert
        window.alert(`
          Username: ${values.username}
          Gender: ${values.gender}
          Country: ${values.country.label}
          Skills: ${values.skills.map((v) => v.label).join(', ')}
          Birth date: ${values.birthdate}
          Interview Time: ${values.interviewTime}
        `)
      }}
    >
      {(formik) => (

Submit

      )}

)
export default SimpleFormExample

const validationSchema = object().shape({
username: string().required('Username is required'),
gender: string().required('Gender selection is required'),
country: string().nullable().required('Country is required'),
skills: object().nullable().required('At least one skill is required'),
birthdate: date().nullable().required('Birth date is required'),
interviewTime: mixed().required('Interview Time is required'),
})

const initialValues = {
username: '',
gender: 'Female',
country: null,
skills: null,
birthdate: null,
interviewTime: null,
}

@bihongbin3027 did you try an empty array on skills ?


[BUG] Underground matches skybox color

Describe the bug
The ground under certain stairs/ladders/trapdoors around Runescape have the skybox instead of black.

Confirmed Locations
Steps to reproduce the behavior:
East Ardougne basement stairs
GE Ladder to Keldagrim
Expected behavior
Black or some sort of dark color similar to vanilla

Environment (please complete the following information):

OS: [Ubuntu 22.04 x64]
RLHD version: [1.2.4-Dev]
Runelie version: [1.9.3]

Fixed by https://github.com/117HD/RLHD/commit/d340491a6cd4b59d29fe8fea874e02adc5a5ef9e.


Remove dbus and UPnP containers

Don't think we need to use dbus or UPnP containers with light gateway anymore

https://github.com/NebraLtd/light-hotspot-software/commit/225b52032e668cea76666b4a9bb313a6b968c731

I think session bus container can go away but we will still be using system bus. Anyway it is part of balena os.

@shawaj can you explain exactly why we no longer need session dbus? I understand why we don't need upnp.


Refactor WebSocket message logging from #81

adding the possibility to log WebSocket messages to verbose logs or separated log
picks up previous work from #81

Hey and thanks for the contribution.
Just to understand the requirement better: are the current debug logs on ocpp-j level not enough? Incoming/outgoing raw messages are already being logged there.


[Feature]: Codex version upgrade tests

Module Name
codex
/cc @grayzu
Description
In terms of feedback on codex:
https://github.com/Azure/terraform-azure-modules/blob/main/codex/test_code/version_upgrade_tests.md
This constraint prevents us introducing new best practice features using minor versions. Is this intended? With this, we are prevented from having the new best practice as the module
Example usage
No response
Other information
Please can we consider allowing changes in minor releases? As long as there is no breaking change requiring a code change in the module declaration (e.g. variable changing from list(object) to map(object))

Hi @matt-FFFFFF, apology for the late reply.

This constraint prevents us introducing new best practice features using minor versions. Is this intended?

Yes, it's intended. Such change like input variable's change would force our users to change their code, due to the definition in semver:

MINOR version when you add functionality in a backward compatible manner

The users should feel safe to upgrade minor version without reading readme, if they haven't changed their code then nothing would change. I understand that introducing the latest best practices into a module is very important, but there's a trade-off that need to be made here. Since a Terraform module is related to the production infrastructure resources along with data, the codex emphasizes the importance of a stable and foreseeable code behavior.

Hi @lonegunmanb
I agree with you definition of SEMVER.
However the I believe that the version upgrade check currently does not allow any changes in the plan when releasing a MINOR version. This prevents new non-breaking features being added.
See the text in the codex:
Then re-execute terraform init and terraform plan to see of there are changes. If the changes exist, that means the upgrade contains an "accident" breaking change.

This is incorrect as a MINOR change could introduce a new resource, therefore a change to the plan, in a non-breaking fashion.
Rather than simply looking for a change in the plan, we need to instead add logic to check for the following conditions:

make sure that existing resources are not getting re-created
Make sure that the variable schema has not changed the type of any existing vars


Added possibility to override level names

Override log level names when serializing to match naming of other frameworks.
E.g. to match Bunyon (https://github.com/trentm/node-bunyan) Information should be logged as info.
This PR makes it possible to specify a text value for each log level.

Thanks for the PR. It looks to me like a very specific use case. I see you make it all optional so it should not hurt, but the majority of the change is in the Json formatter. Would a custom formatter that you can insert not cover your scenario already?

Ohh! You are totally right, don't know why I didn't think about some like that.
It's a quite specific need and overriding the WriteLevel(LogEventLevel level, ref string delim, TextWriter output) method is much cleaner than injecting the Dictionary into the formatter.
Thank you for the response.

Cool, if that solves your need, then I rather do not add this specific case into the sink directly and I will close this PR. Thanks!


Error: image cannot be found/fetched from registry

Hello :-),
I use anchore engine for two days now and when i want to add an image on my machine (in local) i have this error : Error: image cannot be found/fetched from registry.
I  can add images that I have pulled from dockerhub, but It doesn't work from images that I have created / pulled from my private registry.
docker logs (anchore container)

[service:catalog] 2018-03-27 10:03:39+0000 [_GenericHTTPChannelProtocol,4,<IP_ADDRESS>] [PoolThread-twisted.internet.reactor-0] [anchore_engine.auth.skopeo_wrapper/get_image_manifest_skopeo()] [ERROR] command failed with exception - command failed: cmd=/bin/sh -c skopeo inspect --raw --tls-verify=false  docker://docker.io/library/planningdatabase:latest exitcode=1 stdout= stderr=time="2018-03-27T10:03:39Z" level=fatal msg="errors:
[service:catalog]       denied: requested access to the resource is denied
[service:catalog]       unauthorized: authentication required
[service:catalog]       "
[service:catalog] 2018-03-27 10:03:39+0000 [_GenericHTTPChannelProtocol,4,<IP_ADDRESS>] [PoolThread-twisted.internet.reactor-0] [anchore_engine.auth.skopeo_wrapper/get_image_manifest_skopeo()] [WARN] CMD failed - exception: command failed: cmd=/bin/sh -c skopeo inspect --raw --tls-verify=false  docker://docker.io/library/planningdatabase:latest exitcode=1 stdout= stderr=time="2018-03-27T10:03:39Z" level=fatal msg="errors:
[service:catalog]       denied: requested access to the resource is denied
[service:catalog]       unauthorized: authentication required
[service:catalog]       "
[service:catalog] 2018-03-27 10:03:39+0000 [_GenericHTTPChannelProtocol,4,<IP_ADDRESS>] [PoolThread-twisted.internet.reactor-0] [anchore_engine.auth.docker_registry/get_image_manifest()] [ERROR] could not fetch manifest/digest: no digest/manifest from skopeo
[service:catalog] 2018-03-27 10:03:39+0000 [_GenericHTTPChannelProtocol,4,<IP_ADDRESS>] [PoolThread-twisted.internet.reactor-0] [anchore_engine.auth.docker_registry/get_image_manifest()] [ERROR] could not get manifest/digest for image using any auth method: (latest):
[service:catalog] 2018-03-27 10:03:39+0000 [-] "<IP_ADDRESS>" - - [27/Mar/2018:10:03:39 +0000] "POST /v1/image?tag=planningdatabase:latest HTTP/1.1" 404 192 "-" "python-requests/2.17.3"

my docker compose:

version: '2'
services:
anchore-engine:
#image: "anchore-engine"
image: docker.io/anchore/anchore-engine:latest
privileged: true
environment:
- http_proxy=http://myproxy
- https_proxy=http://myproxy
- no_proxy=/var/run/docker.sock,,localhost,<IP_ADDRESS>
depends_on:
- anchore-db
ports:
- "8228:8228"
- "8338:8338"
volumes:
- /root/aevolume/config:/config/:Z
#- /var/run/docker.sock:/var/run/docker.sock
logging:
driver: "json-file"
options:
max-size: 100m
anchore-db:
image: "postgres:9"
environment:
- http_proxy=http://myproxy
- https_proxy=http://myproxy
- no_proxy=/var/run/docker.sock,,localhost,<IP_ADDRESS>
volumes:
- /root/aevolume/db/:/var/lib/postgresql/data/pgdata/:Z
environment:
- POSTGRES_PASSWORD=mysecretpassword
- PGDATA=/var/lib/postgresql/data/pgdata/
logging:
driver: "json-file"
options:
max-size: 100m
#uncomment to expose a port to allow direct/external access to the DB, for debugging
#ports:
# - "2345:5432"

if someone can help me ^^

Looking at the error message I see: "docker.io/library/planningdatabase:latest"
You didn't mention the command you ran, but I'd presume it was anchore-cli image add planningdatabase
If you don't specify a registry we'll presume docker.io/library so we try to pull docker.io/library/planningdatabase:latest and then get an not-authorized error from dockerhub.
The engine will try and pull the images from a registry it cannot pull from a docker daemon. It's something we have considered since there's an interesting use case there, but there will be some limitations of this feature if we add it.
In the mean time can you push the images to a local registry that we can pull from?
By the way we also have a slack channel where there are other community members who can help.
If you'd like an invitation you can email<EMAIL_ADDRESS>

This issue was resolved by creating a registry that the image could be pulled from.

here the docker-compose if someone want it:

version: '2'
services:
anchore-engine:
#image: "anchore-engine"
image: docker.io/anchore/anchore-engine:latest
privileged: true
depends_on:
- anchore-db
environment:
- http_proxy=myproxy
- https_proxy=myproxy
- no_proxy=localhost,
ports:
- "8228:8228"
- "8338:8338"
volumes:
- /root/aevolume/config:/config/:Z
#- /var/run/docker.sock:/var/run/docker.sock
logging:
driver: "json-file"
options:
max-size: 100m
networks:
- my_network
anchore-db:
image: "postgres:9"
volumes:
- /root/aevolume/db/:/var/lib/postgresql/data/pgdata/:Z
environment:
- POSTGRES_PASSWORD=mysecretpassword
- PGDATA=/var/lib/postgresql/data/pgdata/
logging:
driver: "json-file"
options:
max-size: 100m
#uncomment to expose a port to allow direct/external access to the DB, for debugging
#ports:
# - "2345:5432"
networks:
- my_network
registry.com:
privileged: true
image: "registry:2"
volumes:
- /opt/docker-registry/auth:/auth
- /opt/docker-registry/data:/var/lib/registry
- /opt/docker-registry/certs:/certs
ports:
- "5000:5000"
environment:
- REGISTRY_AUTH=htpasswd
- REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm
- REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd
- REGISTRY_HTTP_TLS_CERTIFICATE=/certs/registry_auth.crt
- REGISTRY_HTTP_TLS_KEY=/certs/registry_auth.key
networks:
- my_network
networks:
my_network:


Move subgraphs to the decentralized node

Subgraph
The host services will be closed on Q2 2024. We plan to move subgraphs to the decentralized node by the end of Q4 2022.
Source: https://thegraph.com/blog/sunsetting-hosted-service

I have created the account and deposited funds, but it hasn't supported the alt L1s.


highlight the text

Can you add a parameter to highlight the text string?
Thanks a lot

Can you add a parameter to highlight the text string?
Thanks a lot
You can provide custom text styles to both the plain text and the urls. What addition highlighting do you need exactly? It will be very helpful if you send some sort of example in my email.

solved in 0.0,6

thanks


HAC var-covariance

See: https://www.econstor.eu/bitstream/10419/171904/1/888253508.pdf

Start with Newey–West estimator

[X] Done with Newey–West estimator
More complicated estimators could be implemented at a later stage.


Compiling Simple Test Program

Hello!
I tried compiling the simple test program you include in your documentation
#include <iostream>
#include "xsimd/xsimd.hpp"

namespace xs = xsimd;

int main(int argc, char* argv[])
{
    xs::batch<double, 4> a(1.5, 2.5, 3.5, 4.5);
    xs::batch<double, 4> b(2.5, 3.5, 4.5, 5.5);
    auto mean = (a + b) / 2;
    std::cout << mean << std::endl;
    return 0;
}

I compile using
g++ -std=c++14 -o out -I xsimd/include/ main.cpp
where gcc is version 5.4.1 .
I get the following error
In file included from xsimd/types/xsimd_types_include.hpp:15:0,
                 from xsimd/types/xsimd_traits.hpp:12,
                 from xsimd/xsimd.hpp:14,
                 from main.cpp:2:
xsimd/types/xsimd_sse_int32.hpp: In function ‘xsimd::batch<int, 4ul> xsimd::select(const xsimd::batch_bool<int, 4ul>&, const xsimd::batch<int, 4ul>&, const xsimd::batch<int, 4ul>&)’:
xsimd/types/xsimd_sse_int32.hpp:441:70: error: ‘s’ was not declared in this scope
         return _mm_or_si128(_mm_and_si128(cond, a), _mm_andnot_si128(s, b));
                                                                      ^
In file included from xsimd/types/xsimd_types_include.hpp:16:0,
                 from xsimd/types/xsimd_traits.hpp:12,
                 from xsimd/xsimd.hpp:14,
                 from main.cpp:2:
xsimd/types/xsimd_sse_int64.hpp: In function ‘xsimd::batch<long int, 2ul> xsimd::select(const xsimd::batch_bool<long int, 2ul>&, const xsimd::batch<long int, 2ul>&, const xsimd::batch<long int, 2ul>&)’:
xsimd/types/xsimd_sse_int64.hpp:460:70: error: ‘s’ was not declared in this scope
         return _mm_or_si128(_mm_and_si128(cond, a), _mm_andnot_si128(s, b));
                                                                      ^

I'm sure it's something simple I'm missing.
Thanks!

You're not missing anything, it is a typo in xsimd. We did not detect it since it happens only when SSE4.1 is not available, which is not the case for the processors used for the CI.
Thanks for catching it! I make a fix asap.


Microservice skeleton including tests

Is it the one that prof said we should not merge? But it has been merged...


Dark mode support

Dark mode teaser:

I will try to use the existing palette as much as possible, but some of the darker colors will eventually need to be replaced. So the dark theme will probably get its own 16 colors.
Inspiration and alternatives:

vim-farout
yuejiu
colibri - it's very purple, but the contrast/lack of really bright colors is nicei
aerique - for emacs, maybe it has vim support?
... (there are many dark themes, I will need to hunt for the minimalist ones)

Experimental dark mode is live on the darkmode branch. For vim-plug, you will need to change the plugin line:
Plug 'adigitoleo/vim-mellow', {'branch': 'darkmode'}

Update: I now have a separate darkmode palette that I am happier with, and will be migrating to these colors for a revised dark mode. It is now somewhat different from the above screenshot...

Dark mode added in #2


Add support for GraphiQL

GraphiQL currently cannot be used because of the CRSF prevention mechanism.

Duplicate of #4


[IMPROVEMENT] Docker build of instance-manager should error out if the execution of SPDK pkgdep.sh fails

Is your improvement request related to a feature? Please describe (👍 if you like this request)

Docker build of instance-manager should error out if the execution of SPDK pkgdep.sh fails.
Related to https://github.com/longhorn/longhorn/issues/8059
Describe the solution you'd like

Describe alternatives you've considered

Additional context

Verified on master-head 20240619

longhorn-instance-manager master-head https://github.com/longhorn/longhorn-instance-manager/commit/23380ad90d25951c30739b2ebce822b41bda10dc

The test steps
https://github.com/longhorn/longhorn/issues/8063#issuecomment-2153801490
Result Passed


[TIR] Expose Vector-related API in Python

This PR exposes the following TIR operation in python:
vectorlow: tested here
vectorhigh: tested here
vectorcombine: add new unittest
Co-Authored-By: yongwww<EMAIL_ADDRESS>cc @Hzfengsy @junrushao @junrushao1994

minor note: seems co-author is not being catched by github, we need to put it in the end of the commit message


Help Wanted : The web driver is crashing on initialization

I have installed Appium, Xcode and Mac 2 driver. When I run the example test given with this repository, the line that creates the webdriver crashes the project.
drv = webdriver.Remote('http://<IP_ADDRESS>:4622', options=options)
I have run the Appium doctor and the only missing thing is carthage - which is not mentioned as a requirement for this driver, so I dont think that is needed, this is my first time with appium on Mac. Any help is appreciated, thanks

Which appium doctor did you use? Perhaps older doctor shows working with npm install @appium/doctor -g  command to use proper new one. Carthage is no longer used.
Can you share the full Appium server log?

Thank you so much. I will try that now


sound font problem？

Hi there, great work for aspiring saber builders. I have just started building my saber. I had worked with jakesoft's usaber before, now I am trying yours. I made the hw modifications and used a simple led on pin4. The problem is when i boot up i hear a click On the speaker and see the serial print as dfplayer connected, but no sound is played. I tried to set soundfontQuantity to 1 or 2 no luck. Reformat and drag and drop files no luck.  Upload the dfplayer basic test program all files are played, serial print indicate they are in the right order. soundfont.h file id numbers i have not changed and using the supplied sdcard files with no changes to names or order. What Could be the issue here? Also pressing the main button the led will lightup, so the rest of the code should be fine, just the sound.

I'm experiencing the same issue. I hear the "Diyino" boot sound and then everything is jumbled after that

For me also the same trouble

This is among those phenomena I never got around to find the root cause for, so I had to settle with workarounds. The things is, sometimes, and it does not happen often, if you change any part of the code, not in any how related to the DFPlayer, there is no compilation error or such, but sound simply cases to be played. Only workaround is to reshuffle the same code, or insert some dummy lines, then it starts working again. I guess this is a compiler issue and can happen any time the code is changed at any inconspicuous place. Anyway, as LSOS slowly gets obsolete, I would suggest you guys to move to FX-SaberOS. As to the problem mentioned by kirkyb, I think this might be different since at least the intro is played. In this case I would suggest to have a look at the serial monitor to see exactly where the code stucks.

I have given up with the nano and decided to purchase a Stadust V2 since the code will be optimised for this board and i will be supporting its development :-)

@Protonerd    Thanks, i moved to FX-SaberOS and it works perfect.

I have installed FX-SaberOS,but the problem remained((


[issue] Start9 Logo is barely visible Day/Light Mode + low quality image

I agree

No longer relevant


[WIP] Add support for Oauthbearer Listeners with minor support for RBAC

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # N/A
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

How Has This Been Tested?
Testing is currently on going
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] Any dependent changes have been merged and published in downstream modules

I checked code for adding oauthbearer listener, it looks good from configuration point of view. I did not see any configuration added for enabling RBAC?

This does not configure the authorizer and thus RBAC. Further the only production supported loginmodule for MDS is LDAP so you'll need those configs as well. If you want to add the oauthbearer sasl mechanism alone you will need to expose a means to configure insecure jwt token validation. Please review the kip for those details if you wish to procees with that approach.


Language detector throw when CountryHint is "en"

I am using Azure.AI.TextAnalytics v5.0.0
When I set CountryHint to be "en", I am getting the error below; if I change to other values like "es" or "fr", my code works fine. I guess it's probably because the default Country code is "en" and thus the code doesn't allow me to use "en" as CountryHint anymore. But it's very odd to see an exception. I don't think it's necessary to throw at all in such cases.
Unhandled Exception: Azure.RequestFailedException: Country hint is not valid. Please specify an ISO 3166-1 alpha-2 two letter country code.
Status: 200 (OK)
ErrorCode: InvalidCountryHint
Content:
Headers:
Transfer-Encoding: chunked
x-envoy-upstream-service-time: REDACTED
apim-request-id: REDACTED
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
x-content-type-options: REDACTED
Content-Type: application/json; charset=utf-8
Date: Tue, 15 Sep 2020 17:07:05 GMT
at Azure.AI.TextAnalytics.TextAnalyticsClient.DetectLanguage(String document, String countryHint, CancellationToken cancellationToken)

Thanks @dunalduck0 .
CountryHint is a 2-letter country/region code following ISO 3166-1 alpha-2. So en is not recognized as a country, and es stands for Spain and fr for France.
The default value for CountryHint is us.
Let me know if this helps!

Hi @dunalduck0 .
Curious if you get the information you needed or you still have more questions

Hi @dunalduck0 .
Curious if you get the information you needed or you still have more questions

Thank you Maririos for follow-up. Yes, your previous answer cleared my question. Sorry that I overlooked the difference between country code and language code.

No worries. Happy to help.

If anyone else bumps into this issue and thinks it should be reopened, you are likely on the wrong NuGet package as I was.
I encountered this on v4.0.0 of Microsoft.Azure.CognitiveServices.Language.TextAnalytics. I should have been using the latest Azure.AI.TextAnalytics package instead (note: the API does change somewhat).
However, using 4.0.0 you can work around the issue by setting countryHint: "US" or countryHint: null.


feat(#109): prepare fields in input.py, swap text_prediction for rf

closes #109

PR-Codex overview
This PR introduces new predictions output files and updates text prediction model results. It also includes changes in file feeds and input processing.
Detailed summary

Added predictions.csv and out.csv
Updated text prediction model results
Improved input processing
Enhanced file feeds and data handling

The following files were skipped due to too many changes: tests/test-feed.csv

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@rultor merge


Support für l2_population

This is the first pull request of a three branch series, in which we want to add dvr support.

Support for l2_population
Support for arp_responder
Support for dvr.

new pull request #219


[PDI-16258] Hidden folders show for business user "Suzy" from Spoon

only admins can see hidden files in pentaho repository in all spoon explorer

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -B -fn -f engine/pom.xml clean install && mvn -B -f engine/pom.xml site
mvn -B -fn -f ui/pom.xml clean install && mvn -B -f ui/pom.xml site
mvn -B -fn -f plugins/file-open-save/core/pom.xml clean install && mvn -B -f plugins/file-open-save/core/pom.xml site

Cleanup Commands
mvn -B -f engine/pom.xml build-helper:remove-project-artifact && mvn -B -f ui/pom.xml build-helper:remove-project-artifact && mvn -B -f plugins/file-open-save/core/pom.xml build-helper:remove-project-artifact

Changed files
  engine/src/main/java/org/pentaho/di/trans/steps/getrepositorynames/GetRepositoryNames.java
  engine/src/test/java/org/pentaho/di/trans/steps/getrepositorynames/GetRepositoryNamesTest.java
  plugins/file-open-save/core/src/main/java/org/pentaho/repo/controller/RepositoryBrowserController.java
  ui/src/main/java/org/pentaho/di/ui/repository/dialog/SelectDirectoryDialog.java
  ui/src/main/java/org/pentaho/di/ui/repository/dialog/SelectObjectDialog.java

Unit test coverage change
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.
org.pentaho.di.job.entries.evalfilesmetrics.JobEntryEvalFilesMetrics

Branch Change:  + .39%
Complexity Change:  + .51%
Instruction Change:  + .08%

org.pentaho.di.job.entries.getpop.MailConnectionMeta

Branch Change:  + 1.00%
Complexity Change:  + 1.41%
Instruction Change:  + .30%

org.pentaho.di.job.entries.sql.JobEntrySQL

Instruction Change:  + 3.28%
Line Change:  + 3.87%

org.pentaho.di.job.entries.waitforsql.JobEntryWaitForSQL

Branch Change:  + .66%
Complexity Change:  + .93%
Instruction Change:  + .13%

org.pentaho.di.trans.steps.checksum.CheckSumMeta

Instruction Change:  + .11%

org.pentaho.di.trans.steps.combinationlookup.CombinationLookupMeta

Instruction Change:  + .04%

org.pentaho.di.trans.steps.csvinput.CsvInputMeta

Instruction Change:  + .05%

org.pentaho.di.trans.steps.datagrid.DataGridMeta

Branch Change: -1.92%:small_red_triangle_down:
Complexity Change: -1.69%:small_red_triangle_down:
Instruction Change: -.17%:small_red_triangle_down:

org.pentaho.di.trans.steps.dimensionlookup.DimensionLookupMeta

Branch Change:  + .31%
Instruction Change:  + .06%
Line Change: -.23%:small_red_triangle_down:
Method Change: -1.02%:small_red_triangle_down:

org.pentaho.di.trans.steps.getrepositorynames.GetRepositoryNames

Instruction Change:  + .19%
Line Change:  + .29%

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change:  + 2.08%
Complexity Change:  + 2.11%
Instruction Change:  + .28%
Line Change:  + .74%

org.pentaho.di.trans.steps.insertupdate.InsertUpdateMeta

Instruction Change: -.05%:small_red_triangle_down:

org.pentaho.di.trans.steps.ldapoutput.LDAPOutputMeta

Instruction Change: -.06%:small_red_triangle_down:

org.pentaho.di.trans.steps.processfiles.ProcessFilesMeta

Branch Change: -3.57%:small_red_triangle_down:
Complexity Change: -2.13%:small_red_triangle_down:
Instruction Change: -.33%:small_red_triangle_down:

org.pentaho.di.trans.steps.replacestring.ReplaceStringMeta

Instruction Change: -.07%:small_red_triangle_down:

org.pentaho.di.trans.steps.singlethreader.SingleThreaderMeta

Instruction Change: -.10%:small_red_triangle_down:

org.pentaho.di.trans.steps.sort.SortRowsMeta

Instruction Change: -.08%:small_red_triangle_down:

org.pentaho.di.trans.steps.sortedmerge.SortedMergeMeta

Instruction Change:  + .18%

org.pentaho.di.trans.steps.textfileinput.TextFileInputMeta

Branch Change:  + .53%

org.pentaho.di.trans.steps.uniquerows.UniqueRowsMeta

Instruction Change: -.18%:small_red_triangle_down:


OpenAPI: Handle duplicate URLs for API Docs

As a side effect of #18573 , https://chat.zulip.org/api/get_messages now does the same thing as the existing https://chat.zulip.org/api/get-messages. We need to decide what we want to do here, since allowing _s instead of -s was a requested feature, but we might instead want a redirect to preserve the canonical URLs.

We should do a redirect. Having two slightly different URLs for the same thing is confusing, both for users and for search engines.
Chat thread: https://chat.zulip.org/#narrow/stream/19-documentation/topic/.2Fapi.2F.20URLs/near/1217955

Yeah, we seem to be uniformly using -s for the URLs. I'm not sure when that changed, but it was years ago and we can close this.


[help] Question about reproduction

Hi
I've been able to reproduce the results of LLaMA 3 successfully, but I'm noticing significant discrepancies with other models like Gemma 2 and LLaMA 2 (especially Gemma 2). Do you think this could be an issue with parameter settings, or might there be other factors at play?

We encountered similar problems during the iteration of the code. You can try to use MOE_PEFT_EVALUATE_MODE to solve this problem. In addition, due to the problems of Google's official code and Config, Gemma's support is not very stable. We have noticed this problem and are constantly trying to fix it.

In addition, our experiments are based on version 0.3.1 of https://github.com/mikecovlee/mLoRA. You can try to reproduce the scores in our paper using the original version.

Thank you for your response. I'm currently using version 0.3.1. The results for LLaMA 3 are quite close to the paper's findings, but I'm having some difficulty replicating the results for other models. Even Llama 2 is lower than expected. Could you advise on how to enable MOE_PEFT_EVALUATE_MODE? Thanks! This code is amazing, and I look forward to any future updates.

export MOE_PEFT_EVALUATE_MODE=1 before running MoE-PEFT. This function requires latest version of MoE-PEFT.

Hi, I recently discovered that I'm not using the recommended mlora 0.3.1 version. Instead, based on the MixLoRA project's suggestion, I'm using MoE-PEFT v1.0.1. I tried switching to 0.3.1, but ran into some issues, e.g., it lacks templates and can't execute launch.py to create a config file.

Hi, I recently discovered that I'm not using the recommended mlora 0.3.1 version. Instead, based on the MixLoRA project's suggestion, I'm using MoE-PEFT v1.0.1. I tried switching to 0.3.1, but ran into some issues, e.g., it lacks templates and can't execute launch.py to create a config file.

Yes, unfortunately we only support older LLaMA series models (LLaMA 1/2, Mistral) for m-LoRA 0.3.1 version.

Ok. Many thanks for your quick answering. :-)


ghc-8.6.5 fails to install on aarch64 (Ubuntu 18.04.2 LTS)

Describe the bug
attempt to install ghc (ghc-8.6.5) fails with:
rts/Libdw.c: error "Please implement set_initial_registers() for your arch"
To Reproduce

nix-env -i ghc-8.6.5
...
...

Expected behavior
Expected ghc-8.6.5 to be built and available
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Metadata
Please run nix run nixpkgs.nix-info -c nix-info -m and paste the result.
nix run nixpkgs.nix-info -c nix-info -m
error: attribute 'nixpkgs' in selection path 'nixpkgs.nix-info' not found
Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

To me it looks like GHC does not support aarch64 (in obvious way at least) => https://github.com/ghc/ghc/blob/b2d475362b0a3d4bc8411835494a6899a8b40f4c/rts/Libdw.c#L334

Maybe libdw can be disabled with USE_LIBDW, for example.

Why doesn’t ghc-8.6.5 install from the binary package? Folks are telling me this used to work on aarch64... there’s a thread on reddit which outlines this.

This is fixed in master


Group resource reporting deleted group still exists

Filing on behalf of a customer:
A colleague is seeing a problem using the group resource.
The Chef run is reporting that the group already exists and is up to date on the node, even though it has been deleted by using groupdel command and removing it from /etc/group.
Looking into the provider code - the Ruby call to Etc.getgrnam() does return the group, even though does not appear in /etc/group.  We have ran this explicitly on the server with the odd results.
Possibly a big variable: the server does have Centrify installed.
Have you seen anything like this before?  With or without Centrify?

What does your /etc/nsswitch.conf look like?

@btm we've got the nsswitch.conf file, but can't share all because of some sensitive data.
Is there specific settings you're interested in?
There is the following entry that is shareable:
group: centrifydc files

It's most likely related to centrify. Have you tried to replicate with centrifydc removed from the nsswitch.conf? Because it is first in the list, libc is going to give getpwent an answer from centrify first if it gives an answer.
You could getent to test outside of Chef what is being returned to chef, e.g. "getent group name"
http://man7.org/linux/man-pages/man1/getent.1.html
The other nsswitch.conf issue is that changes to nsswitch are not exposed to running processes. That is, chef-client has to exit after changing the nsswitch.conf.
https://tickets.opscode.com/browse/CHEF-3780

This is glibc caching.
There's no solution to this outside of running nscd which has the proper code to notice updates and invalidate the caches.
Someone could port the code from nscd into core ruby itself.  Otherwise, the chef-client cannot work around this issue.


Update .env.example

Description

Notion Test Page ID

@Kmfernan5 you should reset your redis credentials as these are now public.


global: support for LocalProxy objects

Adds LocalProxy adapter for SQLite and PostgreSQL.  (closes #33)

Signed-off-by: Jiri Kuncar<EMAIL_ADDRESS>

Coverage decreased (-3.9%) to 96.124% when pulling 62967cfc46b014ca580cb177aad10919f37161b2 on jirikuncar:33-localproxy into 9d93baa521e6c99b06eaf37ff353806f1c623a8d on inveniosoftware:master.

Coverage remained the same at 100.0% when pulling f831ad77cf4ad18d5080d49e6e63c23abe49d183 on jirikuncar:33-localproxy into 9d93baa521e6c99b06eaf37ff353806f1c623a8d on inveniosoftware:master.

Coverage remained the same at 100.0% when pulling f831ad77cf4ad18d5080d49e6e63c23abe49d183 on jirikuncar:33-localproxy into 9d93baa521e6c99b06eaf37ff353806f1c623a8d on inveniosoftware:master.

Coverage remained the same at 100.0% when pulling f831ad77cf4ad18d5080d49e6e63c23abe49d183 on jirikuncar:33-localproxy into 9d93baa521e6c99b06eaf37ff353806f1c623a8d on inveniosoftware:master.

Can you please look at some of the failed tests?  For example:
    def __getattr__(self, name):
        if name == '__members__':
            return dir(self._get_current_object())
>       return getattr(self._get_current_object(), name)
E       AttributeError: 'int' object has no attribute 'translate'


update e2e to use ocm repo

[x] I have taken backward compatibility into consideration.

/unhold

/lgtm


Feature Request: Add World Cup

With the World Cup API being live would it be possible to add connectivity to it?

I've just made a quick pull request that adds WC: https://github.com/architv/soccer-cli/pull/134
I've just tried soccer-cli now to get WC scores, so I don't know if something else should be done. But e.g. soccer --league WC --upcoming --time 10 seems to work just fine.


QueryContextAttributes shouldn't return an error when a user or a domain is empty.

When a user sends an empty username or domain QueryContextAttributes should return structure with empty strings instead of returning an error.

@freerdp-bot could you give a try and test this please ?


Deployment 2020-2.0 checklist

Previsit

[x] Make sure that the current latest environments are pushed to all the bl machines
[x] Skim the IPython startup files in profile_collection

Check if it's safe to start bsui remotely (does it touch any hardware?) - use git grep .put or git grep caput

[x] Check for outstanding PRs and issues on beamline repos
[x] Check if beamline specific packages pushed to the BL machines
[ ] (Optional) Enable CI

Housekeeping

[ ] Add BL staff to the BL GitHub organization as owners
[x] Work with BL staff to commit any un-committed changes to their profiles
[x] Tag the profile as-found as 2019C3.x
[x] Discuss with BL staff which conda envs they want to keep/delete and perform the cleanup
[x] Check/update the beamline's inventory with the BL staff (in https://github.com/NSLS-II/playbooks/blob/master/production)

Test deployment

[x] In ~/.bashrc add the following and remember to source ~/.bashrc afterward.export BLUESKY_LOG_FILE=/var/log/bluesky/bluesky.log
export BLUESKY_IPYTHON_LOG_FILE=/var/log/bluesky/bluesky_ipython.log
umask 0002

and (if needed) create those directories, making them world-read/write-able.chown xf21id1:xf21id1 /var/log/bluesky/
chmod g+rws /var/log/bluesky/

[x] removed proxies and path=/opt/conda... from ~/.bashrc, replaced with /etc/profile.d/conda.sh, /etc/profile.d/proxy.sh
[x] Append to 00-startup.py https://gist.github.com/jklynch/a4366b8900ec0c03883403455ae711b2
[x] Install suitcase=0.7.0 into the new env (needed for hdf5 exporting)

conda install suitcase=0.7.0 -c nsls-ii-2019C-c defaults-2019C3.0 --override-channels --no-channel-priority --no-deps

[ ] Run profile against new environment

BS_ENV=collection-2020-2.0rc7-1 bsui

[ ] Update the profile as needed to run:

[ ] Replace .value -> .get() if it's in a Device, or with yield from bps.read() if in a plan
[ ] history.sqlite issue - see https://blueskyproject.io/bluesky/metadata.html#persistence-between-sessions
[ ] potential issue with images in databroker V2

[ ] Run acceptance tests (if any) and run a representative set of scans for the beamline
[ ] Tag the updated profile as 2020C2.0
[ ] Update BSUI via ansible to use the new environment (http://nsls-ii.github.io/deployment/upgrading-beamlines.html#change-bsui-s-default-environment)

I see quite a few caput calls:
startup/40-ESM_plans_elio.py:    #caput XF:21IDC-BI{EM:7}EM180:Acquire 0
startup/40-ESM_plans_elio.py:    caput('XF:21IDC-BI{EM:7}EM180:CurrentOffset1', value)
startup/40-ESM_plans_elio.py:    caput('XF:21ID-PPS{Sh:FE}Cmd:Opn-Cmd', 1)
startup/40-ESM_plans_elio.py:    os.system('caput XF:21ID-PPS{Sh:FE}Cmd:Cls-Cmd 1')
startup/40-ESM_plans_elio.py:    os.system('caput XF:21ID-PPS{Sh:FE}Cmd:Opn-Cmd 1')
startup/40-ESM_plans_elio.py:#        os.system('caput XF:21IDB-OP{Mono:1-Ax:8_MP}Mtr.OFF '+ off_M2[GRT_name])    # set offset for M2
startup/40-ESM_plans_elio.py:#        os.system('caput XF:21IDB-OP{Mono:1-Ax:8_GP}Mtr.OFF '+ off_GRT[GRT_name])   # set offset for GRT
startup/40-ESM_plans_elio.py:#        os.system('caput XF:21IDB-OP{Mono:1}:LINES:SET ' + GRT_name)                # tells to the PGM software which grating
startup/esm.py:    caput('XF:21ID-PPS{Sh:FE}Cmd:Cls-Cmd', 1)
startup/esm.py:    #caput XF:21IDC-BI{EM:7}EM180:Acquire 0
startup/esm.py:    caput('XF:21IDC-BI{EM:7}EM180:CurrentOffset1', value)
startup/esm.py:    caput('XF:21ID-PPS{Sh:FE}Cmd:Opn-Cmd', 1)
startup/esm.py:    os.system('caput XF:21ID-PPS{Sh:FE}Cmd:Cls-Cmd 1')
startup/esm.py:    os.system('caput XF:21ID-PPS{Sh:FE}Cmd:Opn-Cmd 1')
startup/esm.py:        os.system('caput XF:21IDB-OP{Mono:1-Ax:8_MP}Mtr.OFF '+ off_M2[GRT_name])    # set offset for M2
startup/esm.py:        os.system('caput XF:21IDB-OP{Mono:1-Ax:8_GP}Mtr.OFF '+ off_GRT[GRT_name])   # set offset for GRT
startup/esm.py:        os.system('caput XF:21IDB-OP{Mono:1}:LINES:SET ' + GRT_name)                # tells to the PGM software which grating

There are 120 .put calls although some are likely duplicates in files that no longer load, cutting it to 88.

xref https://github.com/nsls-ii-forge/project-management/issues/19

2 more packages were missing, which are used in collection-2019-2.0-esm:

pyqtgraph (v0.11.0, but may need to downgrade to 0.10.0)
igor v0.3.0

Since the current_env_tag is 2019-2.0-esm, the corresponding env did not provide appdirs (2019-3.0-* envs do have it), we had to install it with pip install appdirs, along with a missing msgpack_numpy (installed with pip install msgpack_numpy).

The deployment is done.


Automation: Message malformed

Ciao!
Sorry to bother you again but apparently I'm unable to setup the example automation reported on your page. When I try to save it I get the following message:
Message malformed: extra keys not allowed @ data['automation']

Ciao!
Sorry to bother you again but apparently I'm unable to setup the example automation reported on your page. When I try to save it I get the following message:
Message malformed: extra keys not allowed @ data['automation']

I think you should read how to create automations in yaml mode or from editor, or split the configuration into packages.
The example you find in the readme is an automation inserted in a package. But you can, as mentioned above, create the manual automations or add an ID (to make it compatible with the UI editor) and insert it in the default automation.yaml file without the automation header (because it is already present in the configuration.yaml file with !includes)
- id: dpc
  alias: Protezione Civile Notifications
  mode: queued
  max_exceeded: silent
  initial_state: true
  trigger:
  ... ...

Ciao!
Sorry to bother you again but apparently I'm unable to setup the example automation reported on your page. When I try to save it I get the following message:
Message malformed: extra keys not allowed @ data['automation']

I think you should read how to create automations in yaml mode or from editor, or split the configuration into packages.
The example you find in the readme is an automation inserted in a package. But you can, as mentioned above, create the manual automations or add an ID (to make it compatible with the UI editor) and insert it in the default automation.yaml file without the automation header (because it is already present in the configuration.yaml file with !includes)
- id: dpc
  alias: Protezione Civile Notifications
  mode: queued
  max_exceeded: silent
  initial_state: true
  trigger:
  ... ...


initializeMiddleware catches all Exceptions

using swagger-tools v0.9.4,
// Initialize the Swagger middleware
swaggerTools.initializeMiddleware(swaggerDoc, function (middleware) {
  // gets caught silently
  throw "ABC"
});

found that the initializeMiddleware method catches all exceptions.
what if something goes wrong inside the swagger router controller?
      app.use(swaggerMiddleware.swaggerRouter(
        {
          controllers: 'app/controllers',
          useStubs: process.env.NODE_ENV === 'development' ? true : false // Conditionally turn on stubs (mock mode)
        }
      ));

Can you give me a reproduction?  We have unit tests that explicitly rely on initializeMiddleware throwing exceptions and they are passing.  The only thing initializeMiddleware should be doing, and this is tested, is when we validate your Swagger document we will process.exit if validation fails because there is no benefit to starting a server with invalid Swagger.  As for errors happening in the middleware, we also have tons of tests for this as well so I will need a reproduction scenario.

A little embarrassed - it was my problem. I wrapped the initializeMiddleware function inside json-refs "resolve" promise then block and did not use a catch so it got caught silently... A promise newbie problem.

No sweat.  :)


Correct text on female employees question

What is the context of this PR?
Changed misspellings in the schemas.
How to review
Ensure that the new spellings are correct.

 QPSES: Content issues


Improve UI testing with protractor.

Create an initial set of tests in protractor to begin automating the testing of our UI.

Successfully Login.
Login with a bad user/password

PR - https://github.com/apache/incubator-trafficcontrol/pull/1598

@trevorhays - PR has been merged. can you close this?


Edit for clarity

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[X] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Preview environment: https://ci.pr.harness.io/pr-479

Preview environment: https://ci.pr.harness.io/pr-479


Dashboard for pgmoneta metrics

design dashboard for current pgmoneta metrics

dashboard screenshots
overall

server

backup

wal

@linzs148 Could you get this sorted such we can merge this first part ?

I'm closing this one - improvements can be done in new issues


Fix resource validation

This PR fixes resource error validation
Note: this does not add strict schema validation, for instance fdsfasd: "foo". This fixes purely the normal type validation.
Fixes

resource validation

How to test it

See video

Screenshots
This video shows how the error shows after the refactor and when stashed (before) it did not show any error.
https://user-images.githubusercontent.com/7761005/161949440-557adcfb-5119-45f3-be9b-67fd76b3f12b.mov
Checklist

[ x] tested locally
[ ] added new dependencies
[ ] updated the docs
[ ] added a test

The code looks good to me so far, nice work!
Let's set the ajv validation to be strict so it shows errors on the properties that are added in the yaml but are not present in the schema. This will be useful for users when they change between k8s schemas to catch properties that are not needed.
Also, I noticed that the highlighting of errors in the Monaco editor do no show up:

Here the line with the replicas should have a red underline. After enabling strict mode, the line with the test property should be underlined as well.

@devcatalin strict schema checking is not trivial since AJV and Monaco work independently. Setting AJV on strict will give desync. The common denominator is the JSON schema. In Monokle 1.5.0 this worked because the json schema contained additionalProperties everywhere, while more recent JSON schemas have removed this.


General Question on Linting: Function signatures/usage

My apologies if this has already been asked and answered, but I couldn't find any material on this anywhere.
Was wondering if PSSA supports checking of functions signatures against the actual usage? I'm using the most up-to-date VSCode and PSSA, but I only get warnings for rules like UnusedVariable, and general typos.
Basic example of what I'm looking for in TypeScript:
function foo(a: number): number {
    return a + 1;
}

foo('1') --> Highlights Error

Or even user-defined function parameter hints, completion?
Perhaps I should check with the VSCode team on that, but any resources on this would be much appreciated.

Because PowerShell as a language is optionally typed and very dynamic, it is not possible to infer the type of the passed in argument generally, therefore whilst it would be nice, it is very hard. In the past I attempted to write a rule to warn on += for array type objects but identifying the object type correctly in the majority of cases was the main implementation blocker.

Thanks so much for the response—I understand.
I had a look at the rule set, and I think that most of the rules are not being implemented in my editor.
I do have the PowerShell Extension installed, which I understand includes PSSA.
Pretty much the only rule I can break is the UseDeclaredVarsMoreThanAssignments:

As you can imagine, none of my errors are being caught (it doesn't flag undeclared identifiers, like Correct).

The PowerShell extension does not run all rules by default for performance and false positive reasons. However, you can customise what rules to run by pointing it to your custom PSSA settings file.
Due to the dynamic nature of PowerShell, there is no way to know if Correct will be defined at runtime, it could be a function that gets imported at runtime with an import-module call for example

Thanks a lot—that helps my understanding.


Underlying connection closed

Category
Question
Question
I'm using SharePoint CSOM to perform operations like creating site, updating user roles etc from my web api. I'm seeing an error occurring often in my environment with the following stack trace  :
The underlying connection was closed: The connection was closed unexpectedly.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()
at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb)
at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
I have already checked for the TLS version/Throttling issues in SharePoint environment and found no problems there. Can you please help me explain the root cause for this.
Environment details (if applicable)

Your Developer Environment: Win server 2016
Target Environment: SharePoint Online
Framework: NET Framework v4.5
Browser(s):
Tooling: Visual Studio 2013
Additional details:

Thanks

Can you provide more context? What version of the CSOM are you using, share code where the issue is happening, etc?

Hi Andrew,
Apologies for the incomplete details.
I'm using 16.1 version of SharePoint.client.dll
The problematic code looks something like this (Apologies, I can't add the code in its entirety , Idea is to add new roles to users in a site.) :
var usersList = GetSiteUsers(spsiteurl) ; //Fetches all the users of the site
`var newroles = GetRoles(); //Get the new roles that need to be assigned to the user in the site
foreach(var user in usersList){
 SP.User checkuser = this.Web.EnsureUser(user.LoginName);
 SP.Principal p = (SP.Principal)checkuser;
//Break role inheritance
 this.Web.BreakRoleInheritance(true, false);
SP.RoleAssignment requiredassignment = this.Web.RoleAssignments.GetByPrincipal(p);

//Assign each role to the user
foreach (string role in newrole)
{
           SP.RoleDefinition roletypes = this.Web.RoleDefinitions.GetByType(GetRoleType(role)); //GetRoleType gives..
          ..corresponding SharePoint roles that needs to be added to the user
           requiredassignment .RoleDefinitionBindings.Add(roletypes);
 }
requiredassignment.Update();
this.ExecuteQuery(); //Update

}
`
After code executes the last line : ExecuteQuery, I get WebException : with the mentioned stack trace :
The underlying connection was closed: The connection was closed unexpectedly.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()
at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb)
at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
I understand there is a problem of code efficiency, however, I have seen it works fine for hundreds of users fine but fails sporadically for which I don't understand the root cause.
Please let me know if I can provide any more details.
Thank you!

So you're saying it sometimes fails? That sounds like either a networking issue or that whatever process contains this code is long running and the connection is timing out. Doesn't look like there's anything wrong with the code :-/


English contributor guidelines

We should write an English version of the contributor-fr

I would like to work on this one.


Support list responses

How to indicate and type hint this?
@validate_response(list[Model]) ??

You can have something like:
@dataclass
class Models:
    __root__: list[Model]

That way the schema is shown fine, but you'll need to change the way the reply is handled. (PydanticModel.asdict will be a dict including root, while PydanticModel.json produces a nicer the list result)


Added fallback mechanism to load timezones database from embedded res…

I have added iana database as embedded resource. Embedded file loader as a fallback mechanism when FTP site is down. I have also improved performance by not making multiple calls to load timezone database as iterator in lync statement was doing it.

Hi Chris,
I am right now using a custom build of this branch in my code and would appreciate if you can review and merge to mainline and get a build out in nuget so I can move back to your package?
Thanks,
Zeeshan


Refresh IAM credentials every half hour

@tlunter
Some Amazon client libraries (like the Kinesis client library) refresh
credentilas when they'll expire in the next 15 minutes. A refresh every
30 minutes should keep iam-docker as fresh as they need without
refreshing during a request.

👍


endpoint: moveNewFilesTo performance and error handling improvements

These commits make changes to the function moveNewFilesTo to reduce its complexity from O(n^2) to O(n), decrease its CPU and memory usage, and improve its error handling. The function moveNewFilesTo is a utility function that may be called in the endpoint regeneration hot path.
Details of the changes can be found in each commit.
Please ensure your pull request adheres to the following guidelines:

[X] All code is covered by unit and/or runtime tests where feasible.
[X] All commits contain a well written commit description including a title,
description and a Fixes: #XXX line if the commit addresses a particular
GitHub issue.
[X] All commits are signed off. See the section Developer’s Certificate of Origin
[X] Thanks for contributing!

I believe this needs the following labels:

release-note/misc
kind/enhancement

Also, I think this could be backported, but I haven't taken the time yet to dig into how feasible this would be.

/test

Looks like we hit two flakes in the last test:

K8sUpstreamNetConformance is full of putEndpointIdTooManyRequests, which is tracked in #24361. (Failed job: https://github.com/cilium/cilium/actions/runs/5284212566/jobs/9561415454?pr=26238)
ClusterMesh failed on a pod-to-world test that curls google, which is tracked in #25442. (Failed job: https://github.com/cilium/cilium/actions/runs/5284646478/jobs/9562294636#step:22:428)

The K8sUpstreamNetConformance test seems like an important one to pass for this PR, since this function hasn't been touched in ~five years, but the changes are fairly trivial. @christarazi how would you like to go from here?

@learnitall Have you checked the sysdumps / logs of Cilium to see if any of the errors come from the newly added error handling that this PR introduces? That is one easy way to check if this PR is relevant to the CI failures.

Also marking to wait for release due to feature freeze.

I haven't checked sysdumps/logs. Looks like the artifacts for them expired so I'll retrigger and take a look.

After re-running and looking through the sysdump and logs for the failing net conformance test (here: https://github.com/cilium/cilium/actions/runs/5338165106/jobs/9675167448?pr=26238), I can't find any reference to the errors that I added. There are five new errors, and any one of them can be found with:
grep -E 'failed to (open|list|move)( old| new)? endpoint'

/test

Hit a weird timeout with ginkgo tests: https://github.com/cilium/cilium/issues/27165

/test

/test

/test


FileNotFoundError for CataclysmQuery.yml

tnewsome@compy-linux:~/projects/cataclysm-test$ cat hello.py
#!/bin/env python3

from cataclysm import doom

print(doom.turn_upside_down("Hello, Australia!"))
tnewsome@compy-linux:~/projects/cataclysm-test$ python3 hello.py
Traceback (most recent call last):
  File "/home/tnewsome/projects/cataclysm-test/hello.py", line 5, in <module>
    print(doom.turn_upside_down("Hello, Australia!"))
  File "/home/tnewsome/.local/lib/python3.10/site-packages/cataclysm/doomed.py", line 66, in magic_method_creator
    code = self._conjure_code(calling_function_name, code_signature, formatted_info)
  File "/home/tnewsome/.local/lib/python3.10/site-packages/cataclysm/doomed.py", line 178, in _conjure_code
    fresh_code = self._generate_fresh_code(formatted_info)
  File "/home/tnewsome/.local/lib/python3.10/site-packages/cataclysm/doomed.py", line 147, in _generate_fresh_code
    ai_query = Petition.objects.get("CataclysmQuery")
  File "/home/tnewsome/.local/lib/python3.10/site-packages/datafiles/manager.py", line 78, in get
    instance.datafile.load(_first_load=True)
  File "/home/tnewsome/.local/lib/python3.10/site-packages/datafiles/mapper.py", line 184, in load
    data = formats.deserialize(self.path, self.path.suffix)
  File "/home/tnewsome/.local/lib/python3.10/site-packages/datafiles/formats.py", line 121, in deserialize
    with path.open("r") as file_object:
  File "/usr/lib/python3.10/pathlib.py", line 1119, in open
    return self._accessor.open(self, mode, buffering, encoding, errors,
FileNotFoundError: [Errno 2] No such file or directory: '/home/tnewsome/projects/cataclysm-test/datafiles/plunkylib/petition/CataclysmQuery.yml'
tnewsome@compy-linux:~/projects/cataclysm-test$

Creating the directories didn't help. Creating an empty file didn't help either. Then it complains about the .txt version. And then the same for prompts, etc. There must be something wrong with my setup. Surely those files would get auto-generated?

@rtwfroody Hiya-- did you run the cataclysm init from the CLI inside the /home/tnewsome/projects/cataclysm-test directory? You'll need to do that first to get it to copy the initial datafiles into place for the project to experiment with.
If init isn't working, you can also get those files from the default_files subdirectory from the git repo. Let me know if that doesn't sort things out for you!
In the end you want to see these subdirectories from the repo's default_files with their YAML underneath your project directory:
f"datafiles/plunkylib/petition/CataclysmQuery.yml",
f"datafiles/plunkylib/prompts/CataclysmPrompt.yml",
f"datafiles/plunkylib/params/CataclysmLLMParams.yml",
f"datafiles/plunkylib/params/CataclysmLLMParams_3-5.yml",
(along with a .env file with your OpenAI API key following the "env.template.cataclysm" template)

I could make it automatically set that stuff up if it's not found, but I'm a little nervous copying junk to the local subdirectory if the user didn't explicitly seek it. Hmmm...

I did not, because reading is hard. :roll_eyes:
Given the nature of this extension, copying stuff into the local directory (or better, the directory the script lives in) is probably OK. Note that it had created an empty logs directory even without running cataclysm init.
With the init it worked perfectly:
2023-03-31 14:54:20.130 | DEBUG    | cataclysm.doomed:_conjure_code:182 - Doomed code:
# Original calling signature: doom.turn_upside_down("Hello, Australia!")
## import string
##
## def turn_upside_down(input_str):
##     upside_down_mapping = {
##         'A': '∀', 'B': '𐐒', 'C': 'Ɔ', 'D': 'ᗡ', 'E': 'Ǝ', 'F': 'Ⅎ', 'G': '⅁', 'H': 'H', 'I': 'I', 'J': 'ſ', 'K': '⋊', 'L': '˥', 'M': 'W', 'N': 'N', 'O': 'O', 'P': 'Ԁ', 'Q': 'Ό', 'R': 'ᴚ', 'S': 'S', 'T': '⊥', 'U': '∩', 'V': 'Λ', 'W': 'M', 'X': 'X', 'Y': '⅄', 'Z': 'Z',
##         'a': 'ɐ', 'b': 'q', 'c': 'ɔ', 'd': 'p', 'e': 'ǝ', 'f': 'ɟ', 'g': 'ƃ', 'h': 'ɥ', 'i': 'ᴉ', 'j': 'ɾ', 'k': 'ʞ', 'l': 'l', 'm': 'ɯ', 'n': 'u', 'o': 'o', 'p': 'd', 'q': 'b', 'r': 'ɹ', 's': 's', 't': 'ʇ', 'u': 'n', 'v': 'ʌ', 'w': 'ʍ', 'x': 'x', 'y': 'ʎ', 'z': 'z',
##         '0': '0', '1': '⇂', '2': 'ᘔ', '3': 'Ɛ', '4': 'ᔭ', '5': 'ϛ', '6': '9', '7': 'ㄥ', '8': '8', '9': '6',
##         '.': '˙', ',': "'", '?': '¿', '!': '¡', '(': ')', ')': '(', '[': ']', ']': '[', '{': '}', '}': '{', '<': '>', '>': '<', '&': '⅋', '_': '‾', ';': '؛', ' ': ' '
##     }
##
##     output_str = ''.join(upside_down_mapping.get(char, char) for char in reversed(input_str))
##     return output_str
##
## _exec_return_values = turn_upside_down(args_in[0])
¡ɐᴉlɐɹʇsn∀ 'ollǝH

What a time to be alive...


Support subtitling / softsubbing

Note: WIP. Discussion is encouraged. This does not target our wiki deployment and will instead be its own project.
Goals
Support subtitle support in the wiki client.
Determine format standards for subtitle files.
Integration of subtitle files into existing site features like events, API, streaming, nova, submissions, etc.
User Stories
A user or guest shall be able to apply a subtitle track to the AnimeThemes player.
A user shall be able to create subtitle submissions.
A user shall be able to query the API for subtitle resources.
Moderators shall be able to manage Subtitle resources from Nova.
Functional Requirements
The Subtitle model shall have a belongs to many relationship with Entry.
Subtitle files shall be managed in a separate bucket.
Subtitle file names shall be consistent with Audio/Video file names.

I second this request, i can easily share the subs i've made using this lrc2srt script.
I've also used this bash script to convert the lyrics into romaji.
Actually i am still looking for a way to link these subs in playlists.
Unfortunately i've found this EXTVLCOPT m3u tag only works with the desktop version of VLC.

UPDATE: just found this project that provides exactly what requested here.


Manually created meshes are oriented wrong on pipelined-rendering

Bevy version
running on commit 9f47697e408c018ec27174308394c9376c57183d
Operating system & version
Arch Linux
What you did
Generate a Mesh with a single triangle, using render2 and pbr2.
A snippet can be seen here.
    vertices.push([0.0, 0.0, 0.0]);
    vertices.push([50.0, 0.0, 0.0]);
    vertices.push([0.0, 100.0, 0.0]);
    indices.push(0);
    indices.push(1);
    indices.push(2);

Using a camera with the following transform to look at it:
Transform::from_xyz(0.0, 30.0, 100.0).looking_at(Vec3::new(0.0, 0.0, 0.0), Vec3::Y),

What you expected to happen
I expected the triangle to be perpendicular to the X,Z plane and having a face towards +Z. Like so:

An minimal example of this can be found here: https://github.com/sweepline/bevy-mesh-bug/tree/working-main
What actually happened
The triangle is positioned flatly on the X,Z plane facing towards +Y. Like so:

An minimal example of this can be found here: https://github.com/sweepline/bevy-mesh-bug/tree/master

Just to add, it might be worth updating the documentation for Mesh to indicate which attributes need to be provided.
I just ran into this issue and spent a whole night wondering what was up when my math printed by debug was all correct.
It seems the minimum to be set is ATTRIBUTE_POSITION, ATTRIBUTE_NORMAL and ATTRIBUTE_UV_0 or else you encounter problems.
The docs on main only show setting ATTRIBUTE_POSITION in the example for creating a custom mesh.


Error on exit about pages still in use for Thread and WorkerThreadPool::Task

Godot version
4.1.rc (9a09ee5d0217c4d5e5668fccddfa477bf16af357)
System information
Mageia 9, Linux
Issue description
On some projects (exact characteristics TBD, my MRP uses a VideoStreamPlayer that autoplays a video with sound), the following errors are printed in the console when closing the project:
ERROR: Pages in use exist at exit in PagedAllocator: 6Thread
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)
ERROR: Pages in use exist at exit in PagedAllocator: N16WorkerThreadPool4TaskE
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)

It happens both when closing the window with the cross button, or Alt+F4. It doesn't happen all the times, and might be related to quitting very early on (i.e. start, then close shortly after the scene starts).
Steps to reproduce

Run MRP directly, quit shortly after the window initialized and the scene starts rendering / playing the video.
It may print the above errors in the terminal. If not, try again a few times.

Minimal reproduction project
VideoScene.zip
(MRP derived from https://github.com/godotengine/godot/issues/78788, but I've seen this in other scenes not using VideoStreamPlayer.)

CC @RandomShaper

Simpler MRP:
$ Godot_v4.1-rc2_linux.x86_64 --dump-extension-api --dump-gdextension-interface
Dumping Extension API
Dumping GDExtension interface header file
Godot Engine v4.1.rc2.official.46424488e - https://godotengine.org
Vulkan API 1.3.246 - Forward+ - Using Vulkan Device #1: AMD - AMD Radeon RX Vega M GL Graphics (RADV VEGAM)

ERROR: Pages in use exist at exit in PagedAllocator: 6Thread
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)
ERROR: Pages in use exist at exit in PagedAllocator: N16WorkerThreadPool4TaskE
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)

Like the OP, doesn't happen all the time, but run that command several times and it should happen ~50% of the time.

for me, this started to happen 100% of the time after adding the Dialogue Manager addon to the project:
ERROR: Condition "!EditorSettings::get_singleton() || !EditorSettings::get_singleton()->has_setting(p_setting)" is true. Returning: Variant()
   at: _EDITOR_GET (editor/editor_settings.cpp:1127)
ERROR: Pages in use exist at exit in PagedAllocator: 6Thread
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)
ERROR: Pages in use exist at exit in PagedAllocator: N16WorkerThreadPool4TaskE
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)

I'm on Windows 10, and I'm using 4.1 mono

Just installed godot 4 mono, and ... got the same thing as the original post, with a mostly blank project
im using a n4000 with UHD  600 laptop

Found something that could help,
using the following in my shortcut
--rendering-driver opengl3
seems to work and the error no longer shows up

Just upgraded my fork to the 4.2 branch, got two of these when closing the editor with my project:
ERROR: Pages in use exist at exit in PagedAllocator: class Thread
   at: PagedAllocator<class Thread,0>::~PagedAllocator (D:\PROJETS\INFO\GODOT\Engine\godot4_fork\core/templates/paged_allocator.h:170)
D:\PROJETS\INFO\GODOT\Engine\godot4_fork\core/templates/paged_allocator.h:170 - Pages in use exist at exit in PagedAllocator: class Thread
ERROR: Pages in use exist at exit in PagedAllocator: struct WorkerThreadPool::Task
   at: PagedAllocator<struct WorkerThreadPool::Task,0>::~PagedAllocator (D:\PROJETS\INFO\GODOT\Engine\godot4_fork\core/templates/paged_allocator.h:170)
D:\PROJETS\INFO\GODOT\Engine\godot4_fork\core/templates/paged_allocator.h:170 - Pages in use exist at exit in PagedAllocator: struct WorkerThreadPool::Task

Also happening here. I use the OpenGL (compat) backend usually, but I also converted to Forward+ and getting the same errors. I am also using DialogueManager, so I am wondering if that is the culprit.


Automated cherry pick of #12105

Cherry pick of #12105 on release-7.8.
/cc  @BenCookie95
NONE

Will try to auto merge this PR once all tests and checks are passing. This might take up to an hour.

Trying to auto merge this PR.

Pull Request successfully merged
SHA: d9e0cc0793161f816ffec953740e374269b8d66e


What happens if another type of OSError is raised when attempting to create a soft lock?

I ran into a strange bug when trying to lock a file on a network file-system mounted inside a container, where the lock file was created but for some reason it seems as though the file-handle wasn't properly returned. My process then got stuck waiting for the lock to be released (when it had in fact created the lock). Looking at the following code, it seems that if the OSError errno isn't EEXIST, ENOENT or EACCES, then it is assumed the file is locked
https://github.com/tox-dev/py-filelock/blob/4730a40b87cc4b094330b2af7723658428323d60/src/filelock/_soft.py#L23-L32
wouldn't it be more robust to do something like
 try:
     fd = os.open(self._lock_file, mode)
 except OSError as exception:
     if (exception.errno == EEXIST # expected if cannot lock
             or (if exception.errno == EACCES and sys.platform == "win32"):  # note windows does not allow you to make a folder r/o only files
         pass
     else:
         raise

Or do you actually want the code to keep attempting to try creating the lock on other OSErrors?

Related to #67
I agree I think it would be better to make sure unknown errors propagate, instead of causing an infinite loop.
I found another situation where this becomes a problem.
On Windows, if the name of the file given is invalid, such as forgetting to to double backspace on windows, the EINVAL message is not accounted for in the error handling.
import filelock

filename = "C:\path\to\lock\but\backslash\is\not\escaped"
with filelock.filelock(filename):
    pass # waits forever and never completes

If you had just tried to open the file, you would see the following message
filename = "C:\path\to\lock\but\backslash\is\not\escaped"
f = open(filename)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 22] Invalid argument: 'C:\\path\to\\lock\x08ut\x08ackslash\\is\not\\escaped'

PR welcome 😁


Merge in podnews spreadsheet

Some good stuff in the podnews airtable

[ ] Sanity check existing UAs in this repo
[ ] Add missing UAs
[ ] Add examples, notes, and url fields to the non-locked yml (and maybe a test that checks each regex against its notes?)

You're welcome to do this. I'd be happy to help here (though my knowledge of yml is very low).
I'd be keen to merge this work in some form.

Thanks @jamescridland.  Out of curiosity ... what format of this database would be most useful to you?  The main file will likely remain yaml, but happy to generate a CSV/HTML or something as an output.

Probably a CSV, which would allow use of that file in an Amazon Athena
query. I'm not sure how well it would cope with YML (but worthwhile me
looking first).
Anything that lowers barriers to entry would be great, though, so if
there's an auto-generated CSV and/or JSON, I would suspect everyone's happy.
On Wed, 1 May 2019, 01:55 cavis<EMAIL_ADDRESS>wrote:

Thanks @jamescridland https://github.com/jamescridland. Out of
curiosity ... what format of this database would be most useful to you? The
main file will likely remain yaml, but happy to generate a CSV/HTML or
something as an output.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/PRX/prx-podagent/issues/10#issuecomment-488009247,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABYUBPWJD4N6BUCQRM25YTPTBTYZANCNFSM4HJEIZSA
.


Shader noise issues with Forward+ renderer

Godot version
v4.2.beta.custom_build [4c96e9676]
System information
Godot v4.2.beta (4c96e9676) - Manjaro Linux #1 SMP PREEMPT Sat Sep 23 10:10:02 UTC 2023 - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 750 Ti (nvidia; 535.129.03) - AMD FX(tm)-8350 Eight-Core Processor (8 Threads)
Issue description
I was having strange issues with some shader code; I tracked it down to my noise function producing weird discontinuities when running on the Forward+ renderer. The noise function itself is well-known/well-tested code from the book of shaders
Switching to Compatibility rendering fixes the discontinuities. (Mobile rendering looks the same as Forward+)

shader_type canvas_item;

uniform float s1 = 10.0;

// random() + noise() from book of shaders:
// https://thebookofshaders.com/11/

float random (in vec2 st) {
	return fract(sin(dot(st.xy,vec2(12.9898,78.233))) * 43758.5453123);
}

// 2D Noise based on Morgan McGuire @morgan3d
// https://www.shadertoy.com/view/4dS3Wd
float noise (in vec2 st) {
	vec2 i = floor(st);
	vec2 f = fract(st);

	// Four corners in 2D of a tile
	float a = random(i);
	float b = random(i + vec2(1.0, 0.0));
	float c = random(i + vec2(0.0, 1.0));
	float d = random(i + vec2(1.0, 1.0));

	// Smooth Interpolation

	// Cubic Hermine Curve.  Same as SmoothStep()
	vec2 u = f*f*(3.0-2.0*f);
	// u = smoothstep(0.,1.,f);

	// Mix 4 coorners percentages
	return mix(a, b, u.x) +
		(c - a)* u.y * (1.0 - u.x) +
		(d - b) * u.x * u.y;
}

void fragment() {
	COLOR.rgb = vec3(noise(UV*s1));
}

The issue is also present in v4.1.2.stable.arch_linux on my machine
Steps to reproduce

Open the minimal repro project; notice the unexpected discontinuities in the noise texture (visible in the editor preview)
Switch the renderer to Compatilibility; the discontinuities are gone (as expected)

Minimal reproduction project
shader-noise-bug.zip

Thanks for the report! This issue seems to be a duplicate of https://github.com/godotengine/godot/issues/67150. This is an NVIDIA specific Vulkan issue, there are several workarounds mentioned in the linked thread that might help. Closing as duplicate.


Error in Packaging Desktop Files

After running pyinstaller, I got the desktop file.
When running the desktop file in ubuntu, I got the FileNotFoundError.

When running the desktop file in windows, I got the System.NullReferenceException.

How to solve the problems. Thanks.

For any dependencies that include json/javascript files such as trame-client, you will need to add a line like --collect-data trame-client to the pyinstaller command. That should fix the Linux issue. I'm not sure about the Windows issue.

@psavery Thanks. You are right.


apply() silently removes time zone information from DateTime values

Hi,
apply() silently removes time zone information from DateTime values. I think this bug is related to https://github.com/pydata/pandas/issues/10668, but it is apparently not the same.
Code Sample, a copy-pastable example if possible
import pandas as pd
date_range = pd.date_range('1/1/2011', periods=5, freq='H')
date_range = date_range.tz_localize('Europe/Budapest')
s = pd.Series(date_range, index=date_range)
s

2011-01-01 00:00:00+01:00   2011-01-01 00:00:00+01:00
2011-01-01 01:00:00+01:00   2011-01-01 01:00:00+01:00
2011-01-01 02:00:00+01:00   2011-01-01 02:00:00+01:00
2011-01-01 03:00:00+01:00   2011-01-01 03:00:00+01:00
2011-01-01 04:00:00+01:00   2011-01-01 04:00:00+01:00
Freq: H, dtype: datetime64[ns, Europe/Budapest]

Create a simple apply function which does nothing but returns each value. Notice that that values are converted to UTC by default and the timezone information is lost, and a timezone-naive value is returned instead.
def apply_function(dt):
    return dt
s.apply(apply_function)

2011-01-01 00:00:00+01:00   2010-12-31 23:00:00
2011-01-01 01:00:00+01:00   2011-01-01 00:00:00
2011-01-01 02:00:00+01:00   2011-01-01 01:00:00
2011-01-01 03:00:00+01:00   2011-01-01 02:00:00
2011-01-01 04:00:00+01:00   2011-01-01 03:00:00
Freq: H, dtype: datetime64[ns]

Expected Output
Apply is expected to return the original series, values unchanged, including the time zone information.
output of pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.4.final.0
python-bits: 64
OS: Linux
OS-release: 4.2.0-27-generic
machine: x86_64
processor:
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8

pandas: 0.17.1
nose: None
pip: 8.0.2
setuptools: 20.1.1
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
IPython: 4.1.1
sphinx: None
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
Jinja2: None

I believe this is the same as #11757 which I have neglected to finish.  It was turning out to be trickier than I had hoped.

I agree. @yosuah thanks for the report.


Driver should validate that transport can connect before successfully completing.

Several other drivers include
instance.transport.connection(@state).wait_until_ready

in their create method to validate that ktichen can, in fact, connect to those instances before returning successfully.  I've hit a few failed converges due to the script extension not completing properly (but not erroring) and have failed to connect as kitchen transitioned into the converge phase.

Hmm. Sounds like something we should be using,.. Saying that, if the script extension doesn't complete properly we want to fail as quickly as possible, so would adding a wait_until_ready add anything here?

I had a look at this for the latest build but decided to go with my own option to fail faster rather than make people wait.  If you strongly believe otherwise let's chat :)

Sorry I didn't get back to you sooner.  What the wait_until_ready does is validate that winrm (or whatever transport) can actually connect to the provisioned instance.  It doesn't add much overhead, but makes sure the move from create to converge will be able to proceed.  It's not a huge deal to me, but I'm not using it a lot at the moment (working on a different project currently).

I can tell ;-)
I'm making a bunch of changes in that area so will look at incorporating it into the next build :-)


Import Account/Region Error “S3 error: X-Amz-Algorithm only supports "AWS4-HMAC-SHA256" For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html”

Describe the bug
When i try and import an account or Region. I generate the template and click 'Deploy Template' but i get an error when trying to load the template in CloudFormation. It says S3 error: X-Amz-Algorithm only supports "AWS4-HMAC-SHA256" For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
To Reproduce
Steps to reproduce the behavior:

Go to Configuration -> Accounts & Regions
Click on Import
Add 12-digit account id to import
Select a Region from the dropdown
Click Import
Click Deploy Template
Click Next

Error S3 error: X-Amz-Algorithm only supports "AWS4-HMAC-SHA256" For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html appears in a red bar at the top of the page.
Expected behavior
I should be taken to the AWS CloudFormation console and be able to deploy the template
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

If you are seeing this issue, please ensure you have followed the Post Deployment configuration tasks section in the deployment guide here. Specifically the Enable public object access on the AWS Amplify storage bucket. This will allow AWS CloudFormation to access the import template from S3.

The post deployment task can be reduced by making the bucket available to the organization instead of making the templates public object.
Sample policy
 {   "Version": "2012-10-17",   "Statement": {     "Sid": "AllowPutObject",     "Effect": "Allow",     "Principal": "*",     "Action": "s3:GetObject",     "Resource": "arn:aws:s3:::my-bucket/*",     "Condition": {"StringEquals":       {"aws:PrincipalOrgID":["o-xxxxxxxxxxx"]}     }   } }

If you are seeing this issue, please ensure you have followed the Post Deployment configuration tasks section in the deployment guide here. Specifically, the Enable public object access on the AWS Amplify storage bucket. This will allow AWS CloudFormation to access the import template from S3.

The Post-deployment configuration tasks explains that "Block all public access" should not be enabled, but it doesn't says that the bucket needs to have public write permissions. In addition, I reviewed the amplifystorage where the template GUI is trying to save the template and it doesn't have any files on it.
When I click the "Import" button it appears to be a forbidden error

Primary: us-east-1;  Import worked for Oregon region with no issue.

If you are seeing this issue, please ensure you have followed the Post Deployment configuration tasks section in the deployment guide here. Specifically, the Enable public object access on the AWS Amplify storage bucket. This will allow AWS CloudFormation to access the import template from S3.

The Post-deployment configuration tasks explains that "Block all public access" should not be enabled, but it doesn't says that the bucket needs to have public write permissions. In addition, I reviewed the amplifystorage where the template GUI is trying to save the template and it doesn't have any files on it.
When I click the "Import" button it appears to be a forbidden error

The error you are seeing in the console is that Perspective is trying to upload an object (the cfn template) with ACL of 'public-read' to the amplifystorage bucket and it is being blocked by the bucket policy.  Configuring the amplifystorage bucket as outlined in the Enable public object access on the AWS Amplify storage bucket section of the post-deployment steps should fix this. Be aware you may have other account wide settings that block making public S3 Objects.
We are working on a method that will remove the need to make public S3 objects for CloudFormation to access, instead we will allow the cfn template to be downloaded and you will have to manually deploy using the CloudFormation console.

If you are seeing this issue, please ensure you have followed the Post Deployment configuration tasks section in the deployment guide here. Specifically, the Enable public object access on the AWS Amplify storage bucket. This will allow AWS CloudFormation to access the import template from S3.

The Post-deployment configuration tasks explains that "Block all public access" should not be enabled, but it doesn't says that the bucket needs to have public write permissions. In addition, I reviewed the amplifystorage where the template GUI is trying to save the template and it doesn't have any files on it.
When I click the "Import" button it appears to be a forbidden error

The error you are seeing in the console is that Perspective is trying to upload an object (the cfn template) with ACL of 'public-read' to the amplifystorage bucket and it is being blocked by the bucket policy. Configuring the amplifystorage bucket as outlined in the Enable public object access on the AWS Amplify storage bucket section of the post-deployment steps should fix this. Be aware you may have other account wide settings that block making public S3 Objects.
We are working on a method that will remove the need to make public S3 objects for CloudFormation to access, instead we will allow the cfn template to be downloaded and you will have to manually deploy using the CloudFormation console.

The Enable public object access on the AWS Amplify storage bucket section of the post-deployment steps is supposed to be optional. But looks like in this case it should not be optional or the documentation should be updated to clearly document what will break in the UI if you do not perform the optional step and instead provide guidance on how to work around it manually.

This is fixed in v1.0.1


updating per SPEC guide

SPEC guide for PTD recommends use of Telnet commands ("RL") to grab power, rather that using ptd.log.
I made changes that should make process indistinguishable from previous process (spl.tx will still be created in ranging and run_1 folders), only change is the origin of that data

recheck

recheck

apologies for the noise. mix of adding to wrong fork and formatting issues and some code pitfalls

Merged per our discussion in Power WG meeting  (Jan 31 2023)


Feat/add pinia store

Closes #45
Checklist:

[x] issue number linked above after pound (#)

replace "Closes " with "Contributes to" or other if this PR does not close the issue

[x] issue checkboxes are all addressed
[x] manually checked my feature / not applicable
[x] wrote tests / not applicable
[x] attached screenshots / not applicable

While doing some more testing I ran into a severe issue. When using the store in historie I get the following error:
Error while collecting story /sidebase/components/example/Status.story.vue:
TypeError [ERR_PACKAGE_IMPORT_NOT_DEFINED]: Package import specifier "#imports" is not defined in package<EMAIL_ADDRESS>imported from<EMAIL_ADDRESS>    at new NodeError (node:internal/errors:371:5)
    at throwImportNotDefined (node:internal/modules/esm/resolve:442:9)
    at packageImportsResolve (node:internal/modules/esm/resolve:819:3)
    at moduleResolve (node:internal/modules/esm/resolve:973:21)
    at defaultResolve (node:internal/modules/esm/resolve:1080:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:530:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:251:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:40)
    at link (node:internal/modules/esm/module_job:78:36)

Have you looked into how to correctly integrate pina into historie?

While doing some more testing I ran into a severe issue. When using the store in historie I get the following error:
Error while collecting story /sidebase/components/example/Status.story.vue:
TypeError [ERR_PACKAGE_IMPORT_NOT_DEFINED]: Package import specifier "#imports" is not defined in package<EMAIL_ADDRESS>imported from<EMAIL_ADDRESS>    at new NodeError (node:internal/errors:371:5)
    at throwImportNotDefined (node:internal/modules/esm/resolve:442:9)
    at packageImportsResolve (node:internal/modules/esm/resolve:819:3)
    at moduleResolve (node:internal/modules/esm/resolve:973:21)
    at defaultResolve (node:internal/modules/esm/resolve:1080:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:530:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:251:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:40)
    at link (node:internal/modules/esm/module_job:78:36)

Have you looked into how to correctly integrate pina into historie?

While doing some more testing I ran into a severe issue. When using the store in historie I get the following error:
Error while collecting story /sidebase/components/example/Status.story.vue:
TypeError [ERR_PACKAGE_IMPORT_NOT_DEFINED]: Package import specifier "#imports" is not defined in package<EMAIL_ADDRESS>imported from<EMAIL_ADDRESS>    at new NodeError (node:internal/errors:371:5)
    at throwImportNotDefined (node:internal/modules/esm/resolve:442:9)
    at packageImportsResolve (node:internal/modules/esm/resolve:819:3)
    at moduleResolve (node:internal/modules/esm/resolve:973:21)
    at defaultResolve (node:internal/modules/esm/resolve:1080:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:530:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:251:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:40)
    at link (node:internal/modules/esm/module_job:78:36)

Have you looked into how to correctly integrate pina into historie?

Did you import manualy the store ? I didn't use histoire before, but i think it's because of autoimport i've made. But you don't have to autoimport every store you can import it manualy

After some test i think the problem in with pinia in histoire. I didn't use histoire before sorry

No problem! I will do some research into it tomorrow and see if I can find any leads. Thank you for the amazing start ❤

While doing some more testing I ran into a severe issue. When using the store in historie I get the following error:
Error while collecting story /sidebase/components/example/Status.story.vue:
TypeError [ERR_PACKAGE_IMPORT_NOT_DEFINED]: Package import specifier "#imports" is not defined in package<EMAIL_ADDRESS>imported from<EMAIL_ADDRESS>    at new NodeError (node:internal/errors:371:5)
    at throwImportNotDefined (node:internal/modules/esm/resolve:442:9)
    at packageImportsResolve (node:internal/modules/esm/resolve:819:3)
    at moduleResolve (node:internal/modules/esm/resolve:973:21)
    at defaultResolve (node:internal/modules/esm/resolve:1080:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:530:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:251:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:40)
    at link (node:internal/modules/esm/module_job:78:36)

Have you looked into how to correctly integrate pina into historie?

Hi @MaloLebrin! 👋
Thank you so much for your pull request! It means a lot to us to see members of the community take an interest in the development of sidebase!
I am very happy with how you added pina to sidebase so most of my review points are very nit-picky, to add some more polish. Have a look through my suggestions and feel free to disagree with any points I have made! 😄
Aside from the points I made during the review, I believe we also need to add some points to our documentation before we merge this PR, however we can also take care of writing these (if you don't feel like working on it).
* [ ]  Update ReadMe to include `pina` in our list of included packages

* [ ]  Write a quick tutorial on how to use `pina` (maybe also with some more links to help developers if they run into any issues)

* [ ]  Update texts on `sidebase` website (this is for us 😆)

what text are you talking about in third task ?

what text are you talking about in third task ?

I am referring to the texts on sidebase.io/why, it was a reminder for myself to update the texts once we merged! 😄

I opened an issue to hopefully get more infos on how to best handle the integration:
https://github.com/histoire-dev/histoire/issues/303

Hello, I think the requested changes are made now, what do you think?

Hi @MaloLebrin,
I am currently still waiting on update from https://github.com/histoire-dev/histoire/issues/286 to our issue with historie. I will re-review once we get an answer!

Hi @MaloLebrin!
Sorry for the long delay in this PR. We are currently in the process of removing historie from sidebase, as it is still causing issues with the newer Nuxt versions and other packages such as Pinia (#75)!
I will close this PR for now. If you still want to add pinia you are welcome to do so after we merge #75. Otherwise I would also be willing to create a new PR and add it myself afterwards! Let me know which option you prefer!
Thank you for your PR and request!

I think we shloud rebase from new version after merge #75 and merge this PR ?

I think we shloud rebase from new version after merge #75 and merge this PR ?

Agreed! Ill reopen this once we did it! We are having some build issues with the newest Nuxt versions and are still trying to figure it out 😢


Arrow indicator for half gauge chart?

Instead of displaying the background color with opacity and the current value without opacity, I would like to display the whole gauge chart with gradient colors, and an arrow indicator of the current value. For example, if I have 0 to 10, and the current value is 7, I would like to indicate the value of 7 with an arrow indicator. Any advice on that?

There is no such feature yet. I'd be more than happy to merge a PR adding this feature, it seems like it would be useful for sure 👍