Default (non-gaming) profile

Hi guys,
Sorry for asking here, but I couldn't find anything useful in the wiki. Might be too tired, but as I couldn't sleep because of coughing (don't you love having a cold?) I needed something to do.
I would love to get some help setting up the following:

when not in a game I'd like my keyboard to have some dim lighting, but once I start typing I'd like the keys to light up some. I was thinking breathing or something (that's when I hit a key and it will fill to all sides and then dim back down, right?). When the screen saver's active I'd like my keyboard to go dark.
if possible, adjust the lighting by using some key sequence, like dim it if I game or work with the lights off

Is this possible? Could someone give me some pointers? Also, are there any current help documents out there?
Thanks!

For some reason it seems iCue has taken control of the lighting. Nothing I do in aurora makes any change to my keyboard and looking at lighting effects in iCue no longer says it's controlled by a third party app (like I think it usually says).  Is this a known problem with 0.6.3?

You can try checking aurora's device manager for the corsair integration. Also try restarting your system, that can help.
If it still doesnt help a log is helpful.

You can try checking aurora's device manager for the corsair integration. Also try restarting your system, that can help.
If it still doesnt help a log is helpful.

For now, a reinstall was what was needed to get it going again. Where do I get the logs, if this happens again? Seems like the program tries to start, but hangs. I can see the process in task manager, but no icon appears in the task tray.
Also, is it possible to get a quick intro to the different layer types?

I decided to try 0.6.2 because 0.6.3 had too many issues. Below is my latest debug log.
========================================
Operation System: Windows 10 Pro
System Architecture: 64 bit
Environment OS Version: Microsoft Windows NT 6.2.9200.0
System Directory: C:\WINDOWS\system32
Executing Directory: d:\Program Files\Aurora
Launch Directory: d:\Program Files\Aurora
Processor Count: 12
SystemPageSize: 4096
Environment Version: 4.0.30319.42000
Is Elevated: True
Aurora Assembly Version: <IP_ADDRESS>
Aurora File Version: 0.6.3
========================================

[ERROR] 05:01:47: An error occured while trying to load script d:\Program Files\Aurora\Scripts\Devices\example_py_script.py. Exception: System.Exception: Provided script, does not meet all the requirements
   at Aurora.Devices.ScriptedDevice.ScriptedDevice..ctor(Object script) in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\ScriptedDevice\ScriptedDevice.cs:line 40
   at CallSite.Target(Closure , CallSite , Type , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
   at Aurora.Devices.DeviceManager..ctor() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\DeviceManager.cs:line 129
[ERROR] 05:01:47: An error occured while trying to load script d:\Program Files\Aurora\Scripts\Devices\example_script.cs. Exception: System.Exception: Provided script, does not meet all the requirements
   at Aurora.Devices.ScriptedDevice.ScriptedDevice..ctor(Object script) in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\ScriptedDevice\ScriptedDevice.cs:line 40
   at CallSite.Target(Closure , CallSite , Type , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
   at Aurora.Devices.DeviceManager..ctor() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\DeviceManager.cs:line 143
[INFO] 05:01:47: Loading Configuration
[INFO] 05:01:48: Loading Plugins
[INFO] 05:01:48: Loading KB Layouts
[INFO] 05:01:48: Loading Input Hooking
[INFO] 05:01:48: Loading Applications
[INFO] 05:01:49: Loading Device Manager
[ERROR] 05:01:49: Logitech LED SDK could not be initialized. (LogiLedSetTargetDevice or LogiLedSaveCurrentLighting failed)
[INFO] 05:01:49: Device, Logitech, was not initialized
[INFO] 05:01:49: Corsair device, Initialized with x64-SDK
[INFO] 05:01:49: Device, Corsair, was initialized
[ERROR] 05:01:49: Razer device, Exception! Message:System.Exception: No Chroma SDK available
   at Aurora.Devices.Razer.RazerDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\Razer\RazerDevice.cs:line 64
[INFO] 05:01:49: Device, Razer, was not initialized
[ERROR] 05:01:49: Roccat device, Exception! Message:System.Exception: No devices connected
   at Aurora.Devices.Roccat.RoccatDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\Roccat\RoccatDevice.cs:line 213
[INFO] 05:01:49: Device, Roccat, was not initialized
[ERROR] 05:01:49: Clevo device, Exception! Message:System.Exception: Could not connect to Clevo WMI Interface
   at Aurora.Devices.Clevo.ClevoDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\Clevo\ClevoDevice.cs:line 71
[INFO] 05:01:49: Device, Clevo Keyboard, was not initialized
[INFO] 05:01:50: No Cooler Master devices successfully Initialized!
[INFO] 05:01:50: Device, Cooler Master, was not initialized
[ERROR] 05:01:50: SteelSeries GameSense SDK could not be initialized: System.IO.FileNotFoundException: Core Props file could not be found at "C:\ProgramData/SteelSeries/SteelSeries Engine 3/coreProps.json"
   at SteelSeries.GameSenseSDK.GameSenseSDK.init(String sseGameName, String sseGameDisplayname, Byte iconColorID) in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\SteelSeries\GameSenseSDK.cs:line 58
   at Aurora.Devices.SteelSeries.SteelSeriesDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\SteelSeries\SteelSeriesDevice.cs:line 55
[INFO] 05:01:50: Device, SteelSeries, was not initialized
[INFO] 05:01:50: No Wooting devices successfully Initialized!
[INFO] 05:01:50: Device, Wooting, was not initialized
[INFO] 05:01:50: Device, LightFX, was not initialized
[INFO] 05:01:50: Starting GameStateListener
[INFO] 05:01:50: Retrying Device Initialization
[ERROR] 05:01:50: Logitech LED SDK could not be initialized. (LogiLedSetTargetDevice or LogiLedSaveCurrentLighting failed)
[INFO] 05:01:50: Device, Logitech, was not initialized
[ERROR] 05:01:50: Razer device, Exception! Message:System.Exception: No Chroma SDK available
   at Aurora.Devices.Razer.RazerDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\Razer\RazerDevice.cs:line 64
[INFO] 05:01:50: Device, Razer, was not initialized
[ERROR] 05:01:50: Roccat device, Exception! Message:System.Exception: No devices connected
   at Aurora.Devices.Roccat.RoccatDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\Roccat\RoccatDevice.cs:line 213
[INFO] 05:01:50: Device, Roccat, was not initialized
[INFO] 05:01:50: Listening for game integration calls...
[INFO] 05:01:50: Loading ResourceDictionaries...
[ERROR] 05:01:50: Clevo device, Exception! Message:System.Exception: Could not connect to Clevo WMI Interface
   at Aurora.Devices.Clevo.ClevoDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\Clevo\ClevoDevice.cs:line 71
[INFO] 05:01:50: Device, Clevo Keyboard, was not initialized
[INFO] 05:01:50: No Cooler Master devices successfully Initialized!
[INFO] 05:01:50: Device, Cooler Master, was not initialized
[ERROR] 05:01:50: SteelSeries GameSense SDK could not be initialized: System.IO.FileNotFoundException: Core Props file could not be found at "C:\ProgramData/SteelSeries/SteelSeries Engine 3/coreProps.json"
   at SteelSeries.GameSenseSDK.GameSenseSDK.init(String sseGameName, String sseGameDisplayname, Byte iconColorID) in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\SteelSeries\GameSenseSDK.cs:line 58
   at Aurora.Devices.SteelSeries.SteelSeriesDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\SteelSeries\SteelSeriesDevice.cs:line 55
[INFO] 05:01:50: Device, SteelSeries, was not initialized
[INFO] 05:01:50: [IPCServer] Pipe created 6451435
[INFO] 05:01:50: [AuroraCommandsServerIPC] Pipe created 34717384
[INFO] 05:01:50: No Wooting devices successfully Initialized!
[INFO] 05:01:50: Device, Wooting, was not initialized
[INFO] 05:01:50: Device, LightFX, was not initialized
[INFO] 05:01:50: Loaded ResourceDictionaries
[INFO] 05:01:50: Loading ConfigUI...
[INFO] 05:01:55: Retrying Device Initialization
[ERROR] 05:01:55: Logitech LED SDK could not be initialized. (LogiLedSetTargetDevice or LogiLedSaveCurrentLighting failed)
[INFO] 05:01:55: Device, Logitech, was not initialized
[ERROR] 05:01:55: Razer device, Exception! Message:System.Exception: No Chroma SDK available
   at Aurora.Devices.Razer.RazerDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\Razer\RazerDevice.cs:line 64
[INFO] 05:01:55: Device, Razer, was not initialized
[ERROR] 05:01:55: Roccat device, Exception! Message:System.Exception: No devices connected
   at Aurora.Devices.Roccat.RoccatDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\Roccat\RoccatDevice.cs:line 213
[INFO] 05:01:55: Device, Roccat, was not initialized
[ERROR] 05:01:55: Clevo device, Exception! Message:System.Exception: Could not connect to Clevo WMI Interface
   at Aurora.Devices.Clevo.ClevoDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\Clevo\ClevoDevice.cs:line 71
[INFO] 05:01:55: Device, Clevo Keyboard, was not initialized
[INFO] 05:01:55: No Cooler Master devices successfully Initialized!
[INFO] 05:01:55: Device, Cooler Master, was not initialized
[ERROR] 05:01:55: SteelSeries GameSense SDK could not be initialized: System.IO.FileNotFoundException: Core Props file could not be found at "C:\ProgramData/SteelSeries/SteelSeries Engine 3/coreProps.json"
   at SteelSeries.GameSenseSDK.GameSenseSDK.init(String sseGameName, String sseGameDisplayname, Byte iconColorID) in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\SteelSeries\GameSenseSDK.cs:line 58
   at Aurora.Devices.SteelSeries.SteelSeriesDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\SteelSeries\SteelSeriesDevice.cs:line 55
[INFO] 05:01:55: Device, SteelSeries, was not initialized
[INFO] 05:01:55: No Wooting devices successfully Initialized!
[INFO] 05:01:55: Device, Wooting, was not initialized
[INFO] 05:01:55: Device, LightFX, was not initialized
[INFO] 05:02:00: Retrying Device Initialization
[ERROR] 05:02:00: Logitech LED SDK could not be initialized. (LogiLedSetTargetDevice or LogiLedSaveCurrentLighting failed)
[INFO] 05:02:00: Device, Logitech, was not initialized
[ERROR] 05:02:00: Razer device, Exception! Message:System.Exception: No Chroma SDK available
   at Aurora.Devices.Razer.RazerDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\Razer\RazerDevice.cs:line 64
[INFO] 05:02:00: Device, Razer, was not initialized
[ERROR] 05:02:00: Roccat device, Exception! Message:System.Exception: No devices connected
   at Aurora.Devices.Roccat.RoccatDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\Roccat\RoccatDevice.cs:line 213
[INFO] 05:02:00: Device, Roccat, was not initialized
[ERROR] 05:02:00: Clevo device, Exception! Message:System.Exception: Could not connect to Clevo WMI Interface
   at Aurora.Devices.Clevo.ClevoDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\Clevo\ClevoDevice.cs:line 71
[INFO] 05:02:00: Device, Clevo Keyboard, was not initialized
[INFO] 05:02:00: No Cooler Master devices successfully Initialized!
[INFO] 05:02:00: Device, Cooler Master, was not initialized
[ERROR] 05:02:00: SteelSeries GameSense SDK could not be initialized: System.IO.FileNotFoundException: Core Props file could not be found at "C:\ProgramData/SteelSeries/SteelSeries Engine 3/coreProps.json"
   at SteelSeries.GameSenseSDK.GameSenseSDK.init(String sseGameName, String sseGameDisplayname, Byte iconColorID) in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\SteelSeries\GameSenseSDK.cs:line 58
   at Aurora.Devices.SteelSeries.SteelSeriesDevice.Initialize() in C:\projects\aurora\Project-Aurora\Project-Aurora\Devices\SteelSeries\SteelSeriesDevice.cs:line 55
[INFO] 05:02:00: Device, SteelSeries, was not initialized
[INFO] 05:02:00: No Wooting devices successfully Initialized!
[INFO] 05:02:00: Device, Wooting, was not initialized
[INFO] 05:02:00: Device, LightFX, was not initialized
[INFO] 05:02:25: Show Window called
[ERROR] 18:44:46: Exception during Node parsing. Exception: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: T. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Aurora.Profiles.Node`1..ctor(String json_data) in C:\projects\aurora\Project-Aurora\Project-Aurora\Profiles\Node.cs:line 18
[ERROR] 18:51:55: Exception during Node parsing. Exception: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: T. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Aurora.Profiles.Node`1..ctor(String json_data) in C:\projects\aurora\Project-Aurora\Project-Aurora\Profiles\Node.cs:line 18
[INFO] 19:57:16: Show Window called
[INFO] 20:07:44: Device, Corsair, was shutdown

It sometimes hangs because it gets stuck when shutting down. If you close it manually in task manager it starts up again correctly,


Does dubbo-monitor consider data collection asynchronously?

alibaba/dubbo#1212, we should track this issue here.

apache/dubbo#1212  should be talking about the problem of collection. How should admin deal with it?

Sorry, because you didn't reply for a long time, we will close this PR first.
Please feel free to reopen it if you have any question.


feat: Add DynamoDB adapter support

We need to add support for a DynamoDB

no plans currently

@Bekacru I would be really interested in this, but I guess, it's going to be difficult to stuff a relational model into NoSQL DB?

I did try using a 'one table' pattern, but it is not easy. The problem is that all adapters are built in terms of 'SQL where clauses' and for DynamoDB, it is not simple to parse those clauses into a Command. Depending on what you are trying to retrieve and the information you have at the moment of retrieval, you must use a specific Command to get the best performance. Essentially, you need to consider all possible clauses to use the best Command for each case.
I compared the implementation of Next-Auth for DynamoDB, and it is less generic. There, you define the adapter in terms of each action you need to perform: 'createUser,' 'getUserByEmail,' 'getSessionAndUser,' etc. Because of that, there the implementation is a piece of cake, but not here.
One possible but not great approach is to use PartiQL, a way to use SQL with DynamoDB. However, the disadvantages are that you cannot use the 'one table' pattern, and depending on the where clause being used, PartiQL might not use the best Command. This is better explained here.
@Bekacru, any comments or suggestions?


HAWQ-1473 - document ranger plugin service high availability

hawq/ranger HA info, including:

adding subnav entry for HA
add option step to configure standby RPS
document new hawq_rps_check_local_interval guc
update cli and ambari "activating standby" procedures

@dyozie - thanks for the review.  i incorporated your edits.  used "Ranger Administration host", as the host was not capitalized in previous uses on the page.  i originally used "Ranger Admin" because that is how it was referred to in some hwx docs.
i moved the note to the prerequisite section.  it seemed out of place in the intro.


Will it work with neovim too?

I included Plug 'ctjhoa/spacevim' to my init.vim for neovim. It doesn't seem to affect. Is this expected?

Sorry, it's working with neovim now. There was something wrong with my configuration probably. Closing this issue.

Spacevim doesn't officialy support neovim as spacevim rely on many plugins and  I don't  use neovim but in theory it should work.


Fixed issue when converting wildcard type with super bound

Fixes very small bug on convertToUsage which caused super wildcard bounds to be created as extends (and added an accompanying test).
eg.
Class<? super Number> c;
Resolves to:
java.util.Class<? extends java.lang.Number>

Kudos for adding the tests! Thanks. It looks good


az acr build still fails on decoding UTF characters

Describe the bug
Command Name
az acr build
Errors:
ERROR: 'ascii' codec can't encode character '\u2714' in position 125: ordinal not in range(128)
Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 658, in execute
    raise ex
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 692, in _run_job
    result = cmd_copy(params)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acr/build.py", line 143, in acr_build
    return stream_logs(cmd, client, run_id, registry_name, resource_group_name, timeout, no_format, True)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acr/_stream_utils.py", line 67, in stream_logs
    raise_error_on_failure)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acr/_stream_utils.py", line 143, in _stream_logs
    print(flush.decode('utf-8', errors='ignore'))
UnicodeEncodeError: 'ascii' codec can't encode character '\u2714' in position 125: ordinal not in range(128)
To open an issue, please run: 'az feedback'

It fails on the line with the first checkbox:

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az acr build --registry {} --agent-pool {} --no-format -t {} -f {} {} --subscription {}

Expected Behavior
Environment Summary
Azure DevOps ACR build agents
Starting: Build docker container with ACR
==============================================================================
Task         : Azure CLI
Description  : Run Azure CLI commands against an Azure subscription in a PowerShell Core/Shell script when running on Linux agent or PowerShell/PowerShell Core/Batch script when running on Windows agent.
Version      : 2.1.2
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-cli
==============================================================================
/usr/bin/az --version

azure-cli                         2.31.0
Please let us know how we are doing: https://aka.ms/azureclihats
and let us know if you're interested in trying out our newest features: https://aka.ms/CLIUXstudy

core                              2.31.0
telemetry                          1.0.6

Python location '/opt/az/bin/python3'
Extensions directory '/root/.azure/cliextensions'

Python (Linux) 3.6.10 (default, Dec  3 2021, 05:08:37)
[GCC 7.5.0]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional Context

Before anyone suggests to disable UTF output in Angular CLI - it's not that simple and yes, we've tried :) Current workaround is to run build with --no-logs, but it's a very sub-optimal situation, we want to see build logs of course.

Ok, found a workaround that seems to fix it though.
- task: AzureCLI@2
      displayName: Build docker container with ACR
      inputs:
        azureSubscription: <sub>
        scriptType: bash
        scriptLocation: inlineScript
        inlineScript: >-
          apt-get update &&
          apt-get install locales &&
          locale-gen en_US.UTF-8 &&
          export LANG="en_US.UTF-8" &&
          export LANGUAGE="en_US:en" &&
          export LC_ALL="en_US.UTF-8" &&
          az acr build
          --registry {}
          --agent-pool {}
          -t {}
          -f {}
          {}

Routing to service team to help take a look. Please expect delay due to the holiday season.

@favoretti Python has a long-standing issue with POSIX locale. I think the workaround you mentioned did the trick
The following article suggests reconfigure the system locale.
https://chriswarrick.com/blog/2017/06/18/unix-locales-vs-unicode/
The following article suggests that Python 3.7 has done some improvement for POSIX locale.
https://vstinner.github.io/python37-new-utf8-mode.html

@favoretti Apologies for the late reply. I hope you had a chance to look at the above comment by @northtyphoon .
Please let us know if you need any further assistance on this issue. Awaiting your reply.

@favoretti I wanted to do quick follow-up to check if you had a chance to look at my above comment. This github issue is open for quite sometime. Please let us know if you need any further assistance on this. Awaiting your reply.

Oh, apologies, missed notifications on this one. Yeah, since i got a workaround, I guess this can be closed.

@favoretti I think the bug should be reopen, as the workaround is only applicable in a specific situation (Angular CLI), and we have encountered the same bug in several other situations, when running Python and R commands. Each situation needs a new workaround and we have to clutter our code with these workarounds.
For example:

pip needs to be used with --progress-bar off
We also had to change the method used to install pip, because the script provided for installation displayed progress bars we were unable to turn off
Piping stderr and stdout to iconv to transliterate non-ASCII characters
...
And we might encounter other situations where another workaround is needed as we keep developing our containers.

Thanks


Server unable to start after adding plugin when Strapi is setup with Typescript

How to reproduce

Create new Strapi project npx create-strapi-app@latest my-project
Chose custom setup
Chose Typescript
Install plugin npm install --save strapi-plugin-shopify
Run npm run develop

Error log
Starting the compilation for TypeScript files in /home/tommy/projects/name/shopify-headless/my-project
[2022-11-29 12:26:52.448] debug: ⛔ Server wasn't able to start properly.
[2022-11-29 12:26:52.449] error: Error regarding shopify config: 5 errors occurred
Error: Error regarding shopify config: 5 errors occurred
    at applyUserConfig (/home/tommy/projects/name/shopify-headless/my-project/node_modules/@strapi/strapi/lib/core/loaders/plugins/index.js:72:13)
    at async Object.loadPlugins (/home/tommy/projects/name/shopify-headless/my-project/node_modules/@strapi/strapi/lib/core/loaders/plugins/index.js:100:3)
    at async Strapi.loadPlugins (/home/tommy/projects/name/shopify-headless/my-project/node_modules/@strapi/strapi/lib/Strapi.js:333:5)
    at async Promise.all (index 2)
    at async Strapi.register (/home/tommy/projects/name/shopify-headless/my-project/node_modules/@strapi/strapi/lib/Strapi.js:369:5)
    at async Strapi.load (/home/tommy/projects/name/shopify-headless/my-project/node_modules/@strapi/strapi/lib/Strapi.js:474:5)
    at async Strapi.start (/home/tommy/projects/name/shopify-headless/my-project/node_modules/@strapi/strapi/lib/Strapi.js:212:9)

Versions

Version: 4.5.2 (node v16.17.1
Edition: Community

Actually, this happens when selecting the recommended setup as well. Thought I had installed the plugin when tested the default setup, but alas, I hadn't.

This error is because the plugin needs environment variables or a configuration in plugins.ts

Maybe the error should be more explicit

That was it yes, thanks and sorry for wasting your time one something like this. Just a little bit of brain fog on my part.


The feature dim mismatch?

https://github.com/IDEA-opensource/DAB-DETR/blob/309f6ad92af7a62d7732c1bdf1e0c7a69a7bdaef/models/DAB_DETR/transformer.py#L446
In this place, the last dim of tgt2 is 2*256, while the tgt's last dim is 256, so it will cause a mismatch error?

Actually, it won't. The last dim of tgt2 is 256 as well. we use the first 256 dimensions of positional encoded anchors for cross-attention modules.


 I installed like the Wiki suggests for Ubuntu users. I have the alias added in the bashrc.
I suspect the error lies within pip, since pip freeze gives me an error too:
lo@lo-laptop:~ 130
$ pip freeze
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/freeze.py", line 74, in run
    req = pip.FrozenRequirement.from_dist(dist, dependency_links, find_tags=find_tags)
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 299, in from_dist
    assert len(specs) == 1 and specs[0][0] == '=='
AssertionError

Storing debug log for failure in /tmp/tmpwJhsPG

Try this in the command line with sudo rights.
pip install -U setuptools
pip install -U pip

Thank you it worked after those two commands and reinstalling thefuck.
Any insight on why I needed to do that?

Well, basically your setuptools was probably outdated, so pip didn't work. But I don't know why setuptools would be outdated in 15.04.


feat: merge RCS and RNE for agents

merge RCS and RNE
migration certificates -> API
migration carte FNTP -> API

closes #1091

@johangirod I mistakenly also migrate FNTP

@johangirod I mistakenly also migrate FNTP

A little conflict will need to be sorted, but it'll be the occasion to double check the code ;)


add testcase for chinese unicode

I will use it in my website(Chinese), But not sure whether supports Chinese, so add testcases for it. nice work, all passed.
But I download the demo http://bevacqua.github.io/horsey/, add Chinese Options, it can not support. Maybe it is a bug of  the demo site.
See Below:
search one letter

search two letter

it show give the same option
the demo website make me confused, after the testcases, I believe it is the bug of demo website.

Thanks

That may be a different bug in horsey, unsure.

may be a different bug in horsey, I think so. ^_^~


[Feature Request] Offer security.txt and .well-known/security.txt

Tell us about your feature request
We should consider offering the automatic creation of /security.txt and /.well-known/security.txt
Disclaimer

[X] I agree

Can you provide me with more info?

This site looks like a good summery: https://securitytxt.org/
RFC: https://www.rfc-editor.org/rfc/rfc9116
It's basically to provide security researchers with contact details where they can submit their findings.


Update for Purescript 0.9.2

Hi, I tried to update the library to make it work with PS 0.9.2
There aren't a lot of changes, but I'm new to PureScript, so I might have made mistakes :)
Right now it depends on a custom version of purescript-uri, but there's a pull request already for that library too.

@dariooddenino thanks for this, I've not had time to do these updates and you doing so has been a great help!
👍


Add support of various graph output formats

Current supported format is JSON. Add following 2 formats to increase re-usability in various graph mining tools, and add support of some out-of-box visualization such as Gephi.

What 2 formats were you referring to?

Tab separated RDF file format
GEXF File format supported by Gephi Visualization.
https://gephi.org/gexf/format/


Add test case of mysql undo executors.

Ⅰ. Describe what this PR did

just some test case

Codecov Report

Merging #1059 into develop will increase coverage by 0.01%.
The diff coverage is 100%.

@@              Coverage Diff              @@
##             develop    #1059      +/-   ##
=============================================
+ Coverage      38.85%   38.87%   +0.01%
- Complexity      1111     1113       +2
=============================================
  Files            221      221
  Lines           8836     8837       +1
  Branches        1132     1132
=============================================
+ Hits            3433     3435       +2
+ Misses          4966     4963       -3
- Partials         437      439       +2

Impacted Files
Coverage Δ
Complexity Δ

.../java/io/seata/rm/datasource/sql/struct/Field.java
90.9% <ø> (ø)
9 <0> (ø)
:arrow_down:

...datasource/undo/mysql/MySQLUndoDeleteExecutor.java
87.5% <ø> (ø)
6 <0> (ø)
:arrow_down:

...datasource/undo/mysql/MySQLUndoInsertExecutor.java
90% <ø> (ø)
6 <0> (ø)
:arrow_down:

...seata/rm/datasource/undo/AbstractUndoExecutor.java
83.33% <100%> (+0.47%)
9 <1> (+1)
:arrow_up:

...n/java/io/seata/rm/datasource/undo/SQLUndoLog.java
77.77% <0%> (+5.55%)
10% <0%> (+1%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4fc5977...2fb8dfe. Read the comment docs.


[BUG] Microsoft.MachineLearningServices @ 2024-04-01 - applicationInsights on a Hub is returned as null when an associated Project is updated

API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/edc6e6a8b4de49a78397162e7eb55b9c696c2d71/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/workspaceRP.json#L1702-L1704
API Spec version
2024-01-01
Describe the bug
The API returns a null for the Application Insights ID on a Hub after a Project associated with the Hub has been updated
I've added the order of REST API calls done to reproduce the behaviour. The issue is highlighted in the last API call where we get the Hub after the associated Project was updated.

Creation PUT of the AI Hub
{
  "identity": {
    "type": "UserAssigned",
    "userAssignedIdentities": {
      "/subscriptions/000000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.ManagedIdentity/userAssignedIdentities/acctestuai-241128132257385881": {}
    }
  },
  "kind": "Hub",
  "location": "westeurope",
  "name": "acctestaihub-241128132257385881",
  "properties": {
    "applicationInsights": "/subscriptions/000000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.Insights/components/acctestai-241128132257385881",
    "containerRegistry": "/subscriptions/000000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.ContainerRegistry/registries/testacccr241128132257385881",
    "description": "AI Hub created by Terraform",
    "friendlyName": "AI Hub",
    "hbiWorkspace": true,
    "imageBuildCompute": "buildtest",
    "keyVault": "/subscriptions/000000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.KeyVault/vaults/acctestvault9tcd0",
    "managedNetwork": {
      "isolationMode": "AllowInternetOutbound"
    },
    "primaryUserAssignedIdentity": "/subscriptions/000000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.ManagedIdentity/userAssignedIdentities/acctestuai-241128132257385881",
    "publicNetworkAccess": "Disabled",
    "storageAccount": "/subscriptions/000000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.Storage/storageAccounts/acctestsa9tcd0"
  },
  "tags": {
    "env": "test"
  }
}

Creation PUT of the AI Project
{
  "identity": {
    "type": "SystemAssigned",
    "userAssignedIdentities": null
  },
  "kind": "Project",
  "location": "westeurope",
  "name": "acctestaip-241128132257385881",
  "properties": {
    "description": "AI Project created by Terraform",
    "friendlyName": "AI Project",
    "hubResourceId": "/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.MachineLearningServices/workspaces/acctestaihub-241128132257385881",
    "imageBuildCompute": "projectbuild"
  },
  "tags": {
    "model": "regression"
  }
}

GET on the parent AI Hub after Project was created
{
  "id": "/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.MachineLearningServices/workspaces/acctestaihub-241128132257385881",
  "name": "acctestaihub-241128132257385881",
  "type": "Microsoft.MachineLearningServices/workspaces",
  "location": "westeurope",
  "tags": {
    "env": "test"
  },
  "etag": null,
  "properties": {
    "friendlyName": "AI Hub",
    "description": "AI Hub created by Terraform",
    "storageAccount": "/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.Storage/storageAccounts/acctestsa9tcd0",
    "keyVault": "/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.KeyVault/vaults/acctestvault9tcd0",
    "applicationInsights": "/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.Insights/components/acctestai-241128132257385881",
    "hbiWorkspace": true,
    "tenantId": "00000",
    "imageBuildCompute": "buildtest",
    "provisioningState": "Succeeded",

...

    "associatedWorkspaces": [
      "/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.MachineLearningServices/workspaces/acctestaip-241128132257385881"
    ],
    "workspaceHubConfig": {
      "defaultWorkspaceResourceGroup": "/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881"
    },
    "enableDataIsolation": true
  },
  "identity": {
    "type": "UserAssigned",
    "principalId": null,
    "tenantId": "00000",
    "userAssignedIdentities": {
      "/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.ManagedIdentity/userAssignedIdentities/acctestuai-241128132257385881": {
        "principalId": "00000",
        "clientId": "00000"
      }
    }
  },
  "kind": "Hub",
  "sku": {
    "name": "Basic",
    "tier": "Basic"
  },

...

}

Update PUT on AI Project
{
  "id": "/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.MachineLearningServices/workspaces/acctestaip-241128132257385881",
  "identity": {
    "type": "SystemAssigned",
    "userAssignedIdentities": null
  },
  "kind": "Project",
  "location": "westeurope",
  "name": "acctestaip-241128132257385881",
  "properties": {
    "description": "AI Project updated by Terraform",
    "discoveryUrl": "https://westeurope.api.azureml.ms/discovery",
    "enableDataIsolation": true,
    "friendlyName": "AI Project for OS models",
    "hbiWorkspace": false,
    "hubResourceId": "/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.MachineLearningServices/workspaces/acctestaihub-241128132257385881",
    "imageBuildCompute": "projectbuildupdate",
    "mlFlowTrackingUri": "azureml://westeurope.api.azureml.ms/mlflow/v1.0/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.MachineLearningServices/workspaces/acctestaip-241128132257385881",

 ...

  },
  "sku": {
    "name": "Basic",
    "tier": "Basic"
  },
  "tags": {
    "env": "test",
    "model": "regression"
  },
  "type": "Microsoft.MachineLearningServices/workspaces"
}

GET on parent AI Hub after Project was updated
{
  "id": "/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.MachineLearningServices/workspaces/acctestaihub-241128132257385881",
  "name": "acctestaihub-241128132257385881",
  "type": "Microsoft.MachineLearningServices/workspaces",
  "location": "westeurope",
  "tags": {
    "env": "test"
  },
  "etag": null,
  "properties": {
    "friendlyName": "AI Hub",
    "description": "AI Hub created by Terraform",
    "storageAccount": "/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.Storage/storageAccounts/acctestsa9tcd0",
    "keyVault": "/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.KeyVault/vaults/acctestvault9tcd0",
    "applicationInsights": null, <----- *** This suddenly begins returning null ***
    "hbiWorkspace": true,
    "tenantId": "00000",
    "imageBuildCompute": "buildtest",
    "provisioningState": "Succeeded",

...

        "associatedWorkspaces": [
      "/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.MachineLearningServices/workspaces/acctestaip-241128132257385881"
    ],
    "workspaceHubConfig": {
      "defaultWorkspaceResourceGroup": "/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881"
    },
    "enableDataIsolation": true
  },
  "identity": {
    "type": "UserAssigned",
    "principalId": null,
    "tenantId": "00000",
    "userAssignedIdentities": {
      "/subscriptions/00000/resourceGroups/acctestRG-aiservices-241128132257385881/providers/Microsoft.ManagedIdentity/userAssignedIdentities/acctestuai-241128132257385881": {
        "principalId": "00000",
        "clientId": "00000"
      }
    }
  },
  "kind": "Hub",
  "sku": {
    "name": "Basic",
    "tier": "Basic"
  },

...

}

Expected behavior
Would expect the Application Insights ID of the Hub to be returned.
Actual behavior
The Application Insights ID is returned as null.
Reproduction Steps
The reproduction steps are described in the description above.
Environment
No response

@ZhidaLiu Please help take a look, thanks.


Worker dies because timeout is not respected

Expectation / Proposal
Original conversation
The worker dies because some tasks run longer than the timeout set up.
Traceback / Example
RuntimeError: Timed out after<PHONE_NUMBER>774384s while waiting for Cloud Run Job execution to complete. Your job may still be running on GCP.
An error occured while monitoring flow run 'cdbc0be6-c964-45b5-ba1c-fce2d4e36f17'. The flow run will not be marked as failed, but an issue may have occurred.

This is a separate issue, please open a question in the prefect-gcp repository if you want to discuss that further. It looks like your flow is running longer than the default timeout. See that piece of code.

[ ] I would like to help contribute a pull request to resolve this!

The work pool is just a Prefect agent

And this is my startup script used in  a compute engine VM
apt-get update -qy
apt-get install -y python3 python3-pip

curl -sSO https://dl.google.com/cloudagents/add-google-cloud-ops-agent-repo.sh
bash add-google-cloud-ops-agent-repo.sh --also-install

python3 -m pip install --upgrade pip wheel
pip install "prefect==2.10.*" "prefect-gcp"

prefect cloud login --key ${prefect_auth_key} --workspace mdelacourmedelysfr/medelys
PREFECT_API_ENABLE_HTTP2=false PREFECT_LOGGING_LEVEL=DEBUG prefect agent start --pool default-agent-pool --work-queue medelys-default

The worker does not seem to die in that traceback — it just logs the error. Can you include more logs indicating that the worker is dead?

The worker does not seem to die in that traceback — it just logs the error. Can you include more logs indicating that the worker is dead?

As I posted here https://github.com/PrefectHQ/prefect/issues/7442#issuecomment-1533578629, the worker is "waiting from Cloud" but Cloud says that the worker in unhealthy 🤷

Gotcha, looks like you're using an agent with a CloudRun infrastructure block. Could you share your CloudRun block configuration? Also, can your agent continue picking up flow runs after this error, or does it stop picking up flow runs?

Gotcha, looks like you're using an agent with a CloudRun infrastructure block. Could you share your CloudRun block configuration? Also, can your agent continue picking up flow runs after this error, or does it stop picking up flow runs?

Flows are getting pilled up and marked as "late"

Gotcha, looks like you're using an agent with a CloudRun infrastructure block. Could you share your CloudRun block configuration? Also, can your agent continue picking up flow runs after this error, or does it stop picking up flow runs?

Ok @desertaxle, the problem is not that the agent dies but here is the behavior I have

My work queue has a limit of 10 concurrent jobs
Jobs get started and some run longer than the timeout so they are never killed on the Cloud side. For some reason, they don't run anymore in Cloud Run either but they are kept "running" on Prefect cloud
Up to 10 jobs are always running artificially
Prefect Cloud marks my agent as unhealthy and stops processing jobs
When I manually kill the running jobs, 10 more from the "late ones" start

So yeah, the real fix here is to ensure that the timeout is respected and maybe to have Prefect Cloud checks if the jobs run once an hour, for example. It might help Prefect Cloud cleans up its internal state of the "running jobs"

Also Prefect Cloud cannot keep track properly of the jobs ...
This is really weird


Fix query string formatting

As explained here the correct format is now devdocs.io/#q=language search.
Thanks for creating this extension!

Thank you. It'd need more love but time is a precious resource these days. Hope I can find some free time to improve the extension.

@deibit How does pushing an update to vs code work, is it automatic?

It is pretty straightforward (btw, version 0.0.3 has been published). They have a tool called 'vsce' which manages the whole process. Just work with the extension code, and when you are ready to go: vsce publish minor.
If you are interested: https://code.visualstudio.com/docs/extensions/overview

Ace, thanks! Working well.


Speech recognition could not understand audio

Hi!  every time I say something speech recognition can't understand what I said. I even tried r.adjust_for_ambient_noise(source)
Here is the code I'm working with:
import speech_recognition as sr
from time import ctime
import time
import os
from gtts import gTTS

def recordAudio():
    # Record Audio
    r = sr.Recognizer()
# obtain audio from the microphone

    with sr.Microphone() as source:
        r.adjust_for_ambient_noise(source)
        print("Say something!")
        audio = r.listen(source)

    # Speech recognition using Google Speech Recognition
        data = ""
    try:
        # Uses the default API key
        # To use another API key: `r.recognize_google(audio, key="GOOGLE_SPEECH_RECOGNITION_API_KEY")`
        data = r.recognize_google(audio)
        print("You said: " + data)
    except sr.UnknownValueError:
        speak("Sorry sir, but, I could not understand what you said!")
    except sr.RequestError as e:
        print("Could not request results from Google Speech Recognition service; {0}".format(e))

    return data

Please help!

Same problem here, i speak in french, the text is in english and it's not even translation).

Hi, you should add language="fr-FR" attribute in recognize_google() function.

Hi, i'm using MS speech and it didn't work.
This is the code
BING_KEY = "MyKey" # Microsoft Bing Voice Recognition API keys 32-character lowercase hexadecimal strings
language="fr-FR"
try:
print("Microsoft Bing Voice Recognition thinks you said " + r.recognize_bing(audio, key=BING_KEY))
except sr.UnknownValueError:
print("Microsoft Bing Voice Recognition could not understand audio")
except sr.RequestError as e:
print("Could not request results from Microsoft Bing Voice Recognition service; {0}".format(e))

same error here. Can the host give some advice? thanks a lot!

I was facing the same error. I got it corrected to manually checking the threshold value, which I added += 280 .
there is a trade-off between the quality of your microphone and the threshold value, lower the microphone (higher the garbage value).
Try configuring the Threshold value as 👍
`    def speech_to_text(self):
r = sr.Recognizer()
with sr.Microphone() as source:
r.adjust_for_ambient_noise(source, duration=1)
print(r.energy_threshold)
print("Chucking rate: ", source.CHUNK)
print("format rate :", source.format)
print("Say something!...")
print(r.energy_threshold)
r.energy_threshold += 280
audio = r.listen(source)
        # Speech recognition using Google Speech Recognition
    try:
        print("Parsing ...")  # Debugging To
        # for testing purposes, we're just using the default API key
        text = r.recognize_google(audio, language='en-GB')
        print("You said: " + text)
    except sr.UnknownValueError:
        print("Google Speech Recognition could not understand audio")
    except sr.RequestError as e:
        print("Could not request results from Google Speech Recognition service; {0}".format(e))
    except sr.HTTPError as e:
        print("Couldn't connect to the websites perhaps , Hyper text transfer protocol error",e)

First If you are a Pakistani or Indian (change the recognition language to 'en-GB" Accent counts for correct parsing
r.recognize_google(audio, language='en-GB')`

For those who are having Language issues,
There is a language attribute with every recognition assets `as:```
`import speech_recognition as sr
obtain audio from the microphone
r = sr.Recognizer()
with sr.Microphone() as source:
print("Say something!")
audio = r.listen(source)
recognize speech using Sphinx
try:
print("Sphinx thinks you said " + r.recognize_sphinx(audio,language='en-GB'))
except sr.UnknownValueError:
print("Sphinx could not understand audio")
except sr.RequestError as e:
print("Sphinx error; {0}".format(e))
recognize speech using Google Speech Recognition
try:
# for testing purposes, we're just using the default API key
# to use another API key, use r.recognize_google(audio, key="GOOGLE_SPEECH_RECOGNITION_API_KEY")
# instead of r.recognize_google(audio)
print("Google Speech Recognition thinks you said " + r.recognize_google(audio,language='en-GB'))
except sr.UnknownValueError:
print("Google Speech Recognition could not understand audio")
except sr.RequestError as e:
print("Could not request results from Google Speech Recognition service; {0}".format(e))
recognize speech using Google Cloud Speech
GOOGLE_CLOUD_SPEECH_CREDENTIALS = r"""INSERT THE CONTENTS OF THE GOOGLE CLOUD SPEECH JSON CREDENTIALS FILE HERE"""
try:
print("Google Cloud Speech thinks you said " + r.recognize_google_cloud(audio, credentials_json=GOOGLE_CLOUD_SPEECH_CREDENTIALS, language='en-GB'))
except sr.UnknownValueError:
print("Google Cloud Speech could not understand audio")
except sr.RequestError as e:
print("Could not request results from Google Cloud Speech service; {0}".format(e))
recognize speech using Wit.ai
WIT_AI_KEY = "INSERT WIT.AI API KEY HERE" # Wit.ai keys are 32-character uppercase alphanumeric strings
try:
print("Wit.ai thinks you said " + r.recognize_wit(audio, key=WIT_AI_KEY))
except sr.UnknownValueError:
print("Wit.ai could not understand audio")
except sr.RequestError as e:
print("Could not request results from Wit.ai service; {0}".format(e))
recognize speech using Microsoft Bing Voice Recognition
BING_KEY = "INSERT BING API KEY HERE" # Microsoft Bing Voice Recognition API keys 32-character lowercase hexadecimal strings
try:
print("Microsoft Bing Voice Recognition thinks you said " + r.recognize_bing(audio, key=BING_KEY,language='en-GB'))
except sr.UnknownValueError:
print("Microsoft Bing Voice Recognition could not understand audio")
except sr.RequestError as e:
print("Could not request results from Microsoft Bing Voice Recognition service; {0}".format(e))
recognize speech using Houndify
HOUNDIFY_CLIENT_ID = "INSERT HOUNDIFY CLIENT ID HERE" # Houndify client IDs are Base64-encoded strings
HOUNDIFY_CLIENT_KEY = "INSERT HOUNDIFY CLIENT KEY HERE" # Houndify client keys are Base64-encoded strings
try:
print("Houndify thinks you said " + r.recognize_houndify(audio, client_id=HOUNDIFY_CLIENT_ID, client_key=HOUNDIFY_CLIENT_KEY,language='en-GB'))
except sr.UnknownValueError:
print("Houndify could not understand audio")
except sr.RequestError as e:
print("Could not request results from Houndify service; {0}".format(e))
recognize speech using IBM Speech to Text
IBM_USERNAME = "INSERT IBM SPEECH TO TEXT USERNAME HERE" # IBM Speech to Text usernames are strings of the form XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
IBM_PASSWORD = "INSERT IBM SPEECH TO TEXT PASSWORD HERE" # IBM Speech to Text passwords are mixed-case alphanumeric strings
try:
print("IBM Speech to Text thinks you said " + r.recognize_ibm(audio, username=IBM_USERNAME, password=IBM_PASSWORD, language='en-GB'))
except sr.UnknownValueError:
print("IBM Speech to Text could not understand audio")
except sr.RequestError as e:
print("Could not request results from IBM Speech to Text service; {0}".format(e))`

I am using pocketsphinx and it doesnt recognise the speech properly.Moreover i searched for 'en-GB' language model but i didnt got anything.

We don't bundle a UK English model with Pocketsphinx, unfortunately. Since @dshivani's original issue should be solved by either adding a language parameter, or upgrading to the latest version of all the libraries, I'll close this now. Please feel free to reopen if there are remaining issues!

I use raspberrypi and it returns this error almous instantly, even without sending audio to google.
I said audio, not data
I use much more simple code, which does the same
adding language='en_GB', key="GOOGLE_SPEECH_RECOGNITION_API_KEY" wasn't helpful
What's wrong?:
import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as source:
    print("Say something!")
    audio = r.listen(source)
try:
    print("Google Speech Recognition thinks you said " + r.recognize_google(audio))
except sr.UnknownValueError:
    print("Google Speech Recognition could not understand audio")
except sr.RequestError as e:
    print("Could not request results from Google Speech Recognition service; {0}".format(e))```

Oh, sorry. I found an answer. Just use this:
#!/usr/env/python3
import speech_recognition as sr

r = sr.Recognizer()
m = sr.Microphone()

try:
    print("A moment of silence, please...")
    with m as source: r.adjust_for_ambient_noise(source)
    print("Set minimum energy threshold to {}".format(r.energy_threshold))
    while True:
        print("Say something!")
        with m as source: audio = r.listen(source)
        print("Got it! Now to recognize it...")
        try:
            value = r.recognize_google(audio)

            if str is bytes:
                print(u"You said {}".format(value).encode("utf-8"))
            else:
                print("You said {}".format(value))
        except sr.UnknownValueError:
            print("Oops! Didn't catch that")
        except sr.RequestError as e:
            print("Uh oh! Couldn't request results from Google Speech Recognition service; {0}".format(e))
except KeyboardInterrupt:
    pass

It's actually main.py from speech_recognition module
For me, it worked really well

Oh, sorry. I found an answer. Just use this:
#!/usr/env/python3
import speech_recognition as sr

r = sr.Recognizer()
m = sr.Microphone()

try:
    print("A moment of silence, please...")
    with m as source: r.adjust_for_ambient_noise(source)
    print("Set minimum energy threshold to {}".format(r.energy_threshold))
    while True:
        print("Say something!")
        with m as source: audio = r.listen(source)
        print("Got it! Now to recognize it...")
        try:
            value = r.recognize_google(audio)

            if str is bytes:
                print(u"You said {}".format(value).encode("utf-8"))
            else:
                print("You said {}".format(value))
        except sr.UnknownValueError:
            print("Oops! Didn't catch that")
        except sr.RequestError as e:
            print("Uh oh! Couldn't request results from Google Speech Recognition service; {0}".format(e))
except KeyboardInterrupt:
    pass

It's actually main.py from speech_recognition module
For me, it worked really well

recognize_google() function didn't work on my PC. could you please help me?


Rename Chartist.plugins.tooltip => Chartist.plugins.tooltips

There appears to be an inconsistency in how this plugin is named / identified. In chartist-plugin-tooltip/tasks/umd.js we have objectToExport: 'Chartist.plugins.tooltips' but in src/chartist-plugin-tooltip.js we have Chartist.plugins.tooltip = ... Since package.json uses the plural form of the name I'm propsing changing tooltip to tooltips in src/chartist-plugin-tooltip.js.

Looks like you fixed this in https://github.com/tmmdata/chartist-plugin-tooltip/commit/c476a2dd255134241e4238f562ac3cb8b617bc79 -- thanks!


After upgrading to 3.16.2 or 3.16.3 , integration tests have stopped working for android and ios

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
Hi
After upgrading to 3.16.2 or 3.16.3 , integration tests have stopped working for android and ios.
Command I am using to run tests: flutter clean && flutter drive -t "test_driver/bdd.dart"
Observation:
app launches fine in both ios/android emulator, but then everything halts and just 1 line error message appears.
Unhandled exception:
TimeoutException after 0:03:00.000000: Timeout while waiting for observatory debugger uri

Flutter doctor output:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.3, on macOS 14.1.2 23B92 darwin-x64, locale en-IE)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] IntelliJ IDEA Community Edition (version 2022.2.2)
[✓] VS Code (version 1.84.2)
[✓] Connected device (3 available)
[✓] Network resources

I have used enableFlutterDriverExtension(); too
Nothing is working.
I'll really appreciate if someone could help me get over this issue,Please
Thanks
Expected results
Test execution should work fine like it was for older flutter versions
Actual results
App opens but test execution is failing due to error
Unhandled exception:
TimeoutException after 0:03:00.000000: Timeout while waiting for observatory debugger uri
no details in error logs makes it tricky to identify the problem area
Code sample
Code sample
import 'package:flutter_driver/driver_extension.dart';
import 'package:dummy/main_qa_auto.dart' as app;

void main() {
  // This line enables the extension.
  enableFlutterDriverExtension();
  app.main();
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
flutter: The Dart VM service is listening on http://<IP_ADDRESS>:54066/VgKBYgIAQmE=/
flutter: Is remote config verified [true]
Unhandled exception:
TimeoutException after 0:03:00.000000: Timeout while waiting for observatory debugger uri

Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.3, on macOS 14.1.2 23B92 darwin-x64, locale en-IE)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] IntelliJ IDEA Community Edition (version 2022.2.2)
[✓] VS Code (version 1.84.2)
[✓] Connected device (3 available)
[✓] Network resources

Hi @Rarsh1992, do you have flavors enabled in your app?
For iOS, can you check #129338 (comment) to see if it helps?
Hi @danagbemava-nc ,

I am not using flavours, and as far as I can see ios is building the app from correct spot ie. "lib/main_qa_auto.dart" in my case.
Thanks

@danagbemava-nc ,
I verified that on executing flutter drive -t "test_driver/bdd.dart" FLUTTER_TARGET refers to the correct file.
FLUTTER_TARGET=/Users/rash/Desktop/test_app/test_app/test_driver/bdd.dart
heres the content on bdd.dart
import 'package:flutter_driver/driver_extension.dart';
import 'package:test_app/main_qa_auto.dart' as app;

void main() {
  // This line enables the extension.
  enableFlutterDriverExtension();
  app.main();
}

@danagbemava-nc ,
I verified that on executing flutter drive -t "test_driver/bdd.dart" FLUTTER_TARGET refers to the correct file.
FLUTTER_TARGET=/Users/rash/Desktop/test_app/test_app/test_driver/bdd.dart
heres the content on bdd.dart
import 'package:flutter_driver/driver_extension.dart';
import 'package:test_app/main_qa_auto.dart' as app;

void main() {
  // This line enables the extension.
  enableFlutterDriverExtension();
  app.main();
}

Hi @Rarsh1992, thanks for the feedback. Can you please provide a complete minimal reproducible code sample so that we can investigate this? Please note that it would be better if this is not your app. Just the smallest amount of code required to reproduce the issue would be fine.
Thank you

@danagbemava-nc
heres the code.
Let me know if you need anything else:
code for counter app:
lib\main.dart
`
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
// This is the theme of your application.
//
// TRY THIS: Try running your application with "flutter run". You'll see
// the application has a purple toolbar. Then, without quitting the app,
// try changing the seedColor in the colorScheme below to Colors.green
// and then invoke "hot reload" (save your changes or press the "hot
// reload" button in a Flutter-supported IDE, or press "r" if you used
// the command line to start the app).
//
// Notice that the counter didn't reset back to zero; the application
// state is not lost during the reload. To reset the state, use hot
// restart instead.
//
// This works for code too, not just values: Most code changes can be
// tested with just a hot reload.
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
// This widget is the home page of your application. It is stateful, meaning
// that it has a State object (defined below) that contains fields that affect
// how it looks.
// This class is the configuration for the state. It holds the values (in this
// case the title) provided by the parent (in this case the App widget) and
// used by the build method of the State. Fields in a Widget subclass are
// always marked "final".
final String title;
@override
State createState() => _MyHomePageState();
}
class _MyHomePageState extends State {
int _counter = 0;
void _incrementCounter() {
setState(() {
// This call to setState tells the Flutter framework that something has
// changed in this State, which causes it to rerun the build method below
// so that the display can reflect the updated values. If we changed
// _counter without calling setState(), then the build method would not be
// called again, and so nothing would appear to happen.
_counter++;
});
}
@override
Widget build(BuildContext context) {
// This method is rerun every time setState is called, for instance as done
// by the _incrementCounter method above.
//
// The Flutter framework has been optimized to make rerunning build methods
// fast, so that you can just rebuild anything that needs updating rather
// than having to individually change instances of widgets.
return Scaffold(
appBar: AppBar(
// TRY THIS: Try changing the color here to a specific color (to
// Colors.amber, perhaps?) and trigger a hot reload to see the AppBar
// change color while the other colors stay the same.
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: Text(widget.title),
),
body: Center(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: Column(
// Column is also a layout widget. It takes a list of children and
// arranges them vertically. By default, it sizes itself to fit its
// children horizontally, and tries to be as tall as its parent.
//
// Column has various properties to control how it sizes itself and
// how it positions its children. Here we use mainAxisAlignment to
// center the children vertically; the main axis here is the vertical
// axis because Columns are vertical (the cross axis would be
// horizontal).
//
// TRY THIS: Invoke "debug painting" (choose the "Toggle Debug Paint"
// action in the IDE, or press "p" in the console), to see the
// wireframe for each widget.
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text(
'You have pushed the button this many times:',
),
Text(
'$_counter',
style: Theme.of(context).textTheme.headlineMedium,
),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: const Icon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}
}
`
inside directory test_driver
in file app.dart:
`
import 'package:test/main.dart' as appp;
import 'package:flutter/widgets.dart';
import 'package:flutter_driver/driver_extension.dart';
void main() {
// This line enables the extension
enableFlutterDriverExtension();
// Call the main() function of your app or call runApp with any widget you
// are interested in testing.
appp.main();
}
`
inside directory test_driver
in file app_test.dart:
`
import 'dart:async';
import 'package:flutter_gherkin/flutter_gherkin.dart';
import 'package:gherkin/gherkin.dart';
import 'package:glob/glob.dart';
import 'steps/step_definition.dart';
Future main() {
final config = FlutterTestConfiguration()
..build = true
..flutterBuildTimeout = const Duration(seconds: 180)
..features = [Glob(r"test_driver/features/**.feature")]
..reporters = [
ProgressReporter(),
TestRunSummaryReporter(),
JsonReporter(path: './report.json')
]
..stepDefinitions = [GivenCounterIsSetTo(), TapButtonNTimesStep()]
..restartAppBetweenScenarios = true
..targetAppPath = "test_driver/app.dart";
return GherkinRunner().execute(config);
}
`
inside directory test_driver
in directory features > in file test.features:
`
Feature: Counter Button
As a user
I want to tap the plus button
So that I can see the counter increment

Scenario: Counter increases when the button is pressed
    Given the counter is set to "0"
    When I tap the "Increment" button 10 times

`
inside directory test_driver
in directory steps > in file step_definition.dart:
`
import 'package:flutter_driver/flutter_driver.dart';
import 'package:flutter_gherkin/flutter_gherkin.dart';
import 'package:gherkin/gherkin.dart';
class GivenCounterIsSetTo extends Given1WithWorld<String, FlutterWorld> {
@override
RegExp get pattern => RegExp(r"the counter is set to {string}");
@override
Future executeStep(String expectedCounter) async {
final locator = find.text("counter");
expectMatch(0, 0);
}
}
class TapButtonNTimesStep extends When2WithWorld<String, int, FlutterWorld> {
@override
RegExp get pattern => RegExp(r"I tap the {string} button {int} times");
@override
Future executeStep(String buttonKey, int amount) async {
final locator = find.byTooltip(buttonKey);
for (var i = 0; i < amount; i += 1) {
await FlutterDriverUtils.tap(world.driver, locator, timeout: timeout);
}
}
}
`
spin up ios/andoid emulator
then run flutter clean && flutter drive -t "app.dart"

@Rarsh1992 Thanks for your update. I see you are using a 3rd package flutter_gherkin on the sample code that I'm not familiar with. When running the project, I only see the counter app. Which step should I do next? Please share steps by steps to reproduce the issue. Thanks!
Also, I found there was an issue on that package https://github.com/jonsamwell/flutter_gherkin/issues/35. Please check if you can find any information there to investigate this issue further.
Complete sample project: test.zip


[Clojure] Correct the versions in the README so they correspond to the latest maven.org release

Description
During the last big version update, the README for the Clojure package had the incorrect versions put in. They should refer to the latest version available out on Maven with is 1.3.1
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[X] Changes are complete (i.e. I finished coding on this PR)
[X] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

@lanking520 good point - I think it might be beneficial to change it to more general language so we don't need to update it every release

Also going to wait until https://github.com/apache/incubator-mxnet/pull/13478 is merged first

Thanks so much @kohr-h for your review and comments. Much appreciated 💯


Is dafny-vscode extension working for M1 Mac?

Is it possible to install dafny-vscode in M1 mac?
I installed .NET 6.0, and then the extension of dafny, but I received the following error in the output of the terminal.
Failed to load /Users/<User>/.vscode/extensions/dafny-lang.ide-vscode-2.3.0/out/resources/3.5.0/dafny/libhostpolicy.dylib, error: dlopen(/Users/<User>/.vscode/extensions/dafny-lang.ide-vscode-2.3.0/out/resources/3.5.0/dafny/libhostpolicy.dylib, 0x0001): tried: '/Users/<User>/.vscode/extensions/dafny-lang.ide-vscode-2.3.0/out/resources/3.5.0/dafny/libhostpolicy.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')) An error occurred while loading required library libhostpolicy.dylib from [/Users/<User>/.vscode/extensions/dafny-lang.ide-vscode-2.3.0/out/resources/3.5.0/dafny/] [Info  - 8:42:59 PM] Connection to server got closed. Server will restart.

Thanks for reporting this.  We are tracking the issue here.


Logins stopped working last night at some point - 2017-06-05

all login actions now generate output similar to following ( have replaced password and login )
Traceback (most recent call last):
File "./echobot.py", line 21, in
bot =<EMAIL_ADDRESS>"SamplePassword")
File "./echobot.py", line 8, in init
fbchat.Client.init(self,email, password, debug, user_agent)
File "/usr/local/lib/python2.7/dist-packages/fbchat/client.py", line 124, in init
self.login(email, password, max_retries)
File "/usr/local/lib/python2.7/dist-packages/fbchat/client.py", line 336, in login
if not self._login():
File "/usr/local/lib/python2.7/dist-packages/fbchat/client.py", line 243, in _login
self._post_login()
File "/usr/local/lib/python2.7/dist-packages/fbchat/client.py", line 200, in _post_login
self.payloadDefault['__rev'] = int(r.text.split('"revision":',1)[1].split(",",1)[0])
IndexError: list index out of range
Have tried multiple accounts, and saved sessions also generate the same issue.
Anyone else getting this?

I got the exact same error

This was fixed recently in v. 9.0.2, Facebook changed their code ;)


Would be nice having a complete dokerized env with vscode

For the purpose of both developing and testing would be nice having a predefined environment already available out of the box.
At the moment In order to develop and test one must set up its own environment on his machine, this involves installing go compiler, make, mysql, elastic and so on.
This is not always desiderable for the user; much better having the project to be fully enclosed on its own environment.
A nice thing vscode can do is that it can take care of all this simply instructing it to build and then connect to a docker container.
A developer could immediately start building and immediately test the project in a replicated and verified env.

Currently we only have a docker compose inside the docker folder to launch a postgres and an elastic locally, in order to run integration tests. But what you are proposing is a simpler approach and I like it.
If you would like to contribute, open a PR with a proposed solution (also a partial solution) and then we can chat about it.

Sure, please assign to me this issue.

closed with #49


Hide Modal on unmount

Please read and mark the following check list before creating a pull request:

[x] I read and followed the CONTRIBUTING.md guide.
[x] I read and followed the New Feature Checklist guide.

Short description of what this resolves:
This prevents the Modal from getting stuck open when unmounted in a visible state. Accords with Issue #718.

Thanks for opening PR.
Btw, did you able to test this? In my opinion, this can bring some inconsistency, for example, when visibility is handled by parent component, which means visible is passed to modal from the parent component state or maybe mobx / redux store

I did not run tests. I was tripped up in the PR submission process you guys outline and did not have the time to trouble-shoot. However, I did run the new code on my project, where it worked as expected.
I am not sure why the examples you share would have any effect on this. Visibilty is only handled by the visible prop sent from the parent component. And the added code is in the componentWillUnmount life cycle method and so is only called when the component has been removed from the return of the parent's render function. What would it matter how the parent component determines the visibility prop it will pass?


Hoe can I make Dynamic forms?

Hi @basketball-ico,
This is actually a good question because I've been thinking about having this as part of the package but haven't got around to doing it yet.
Just for clarification, by Dynamic forms, do you mean a way we can have dynamically added fields?
I could benefit from ideas and better yet, PRs ;-)

I am actually making a dynamic forms version from this version. It makes decisions about adding the forms and gets the properties from a Map.
I stopped right now as this was a barrier to getting the basic demo going.
Maybe we can work on it a bit.

Hello any update for this? as @jamiethain says we can create forms from json map.

I'm working on this in my app, the problem I'm facing is that once the dynamically is registered in the form, I can't find a way to unregister it even when I use _fbKey.currentState.unregisterFieldKey(attr) and there's no way for me to dispose the widget manually.

Are there still any critical issues?  I am building dynamic forms with this library and don't seem to have any issues.

I need this 😁
Following steps I am doing, which are not working:

Dynamically add fields with attribute: 'something_$index' <-- state is empty
_fbKey.currentState.save();  <-- state has map #1 of values

Now I am struggling to remove a dynamically added field:

_fbKey.currentState.unregisterFieldKey(attr) <-- does not work

Maybe because setState is not called?
updateFormAttributeValue works as expected.

ungregisterFieldKey would have to be updated or a second option would need to be added:
@danvick What's your take on this?
void unregisterFieldKey(String attribute) {
      _value.remove(attribute);
      _fieldKeys.remove(attribute);
  }

Maybe needs setState as well
void unregisterFieldKey(String attribute) {
      setState(() {
      _value.remove(attribute);
      _fieldKeys.remove(attribute);
    });
  }

Can be close this issue?

Due to lack of response and an old error, I will close this issue.
If the bug still exists, feel free to open a new issue
Maybe can create a document issue for this


[Bug]Query failed when fact table has no data in join case

Describe the bug
In the join case fact_table_a left join dim_table_b, when dim_table_b's size exceeds 2GB and the fact_table_a has no data,the query will failed and prints error stack as below:
Memory exceed limit. Hash join, while constructing the hash table. Backend: 123.456.789, fragment: 4fbdd81809244f3d-909e26102118fe92 Used:<PHONE_NUMBER>, Limit:<PHONE_NUMBER>. You can change the limit by session variable exec_mem_limit.

Why the bug happened

broadcast cost calculation error.
Current broadcast cost calculation logic is
broadcastCost = rhsDataSize * leftChildFragment.getNumNodes();
But when the leftChildFragment has no data which means 0 * rhsDataSize.
So broadcastCost is 0, then broadcast join happens.
when the right table(dim_table_b) has big size, the query must fail.
The correct result here should be broadcastCost = rhsDataSize *  1
choose host for exchange fragment has better implementation
In current implementation,exchange fragment will be assigned to the most left child's node and keeps the same parallelism.
But when the most left child has no data, there will be only one backend for it.
So send all right table's data to one exchange node to build hash table will cause memory exceeds when the right tables' size is big.

Solution

When the leftChildFragment 's has no data and returned num nodes 0, the returned num nodes should be changed to 1. Because for a scan node has no data,there will be as least a random selected node for it.
Find backends for exchange fragment  by cost instead of the left most child fragment
exchange fragment should be kept in the same node with child fragment which has more data to reduce data transfer across network or has more instance num to improve the parallelism.
In the current case, dim_table_b has more data and more instance num, so the exchange fragment should be kept in the same node with dim_table_b's fragment.

Temporary solution
Change SQL from fact_table_a left join dim_table_b to dim_table_b right join fact_table_a
I will commit a pr for this later

When the leftChildFragment 's has no data and returned num nodes 0, the returned num nodes should be changed to 1. Because for a scan node has no data,there will be as least a random selected node for it.

The broadcast cost calculation is right. You should fix the getNumInstances method in OlapScanNode. the getNumInstances result at least to 1.


Wrong Issuer in the Token Response causing Invalid JWT.

Please follow the issue template below. Failure to do so will result in a delay in answering your question.

Library

[X]<EMAIL_ADDRESS>
Framework
React 16.12.0
Description
Migrated from MSAL 1.x to MSAL 2.x.
Authenticating against API Mamangent in Azure failed with Invalid JWT token.
Token versions:
https://docs.microsoft.com/en-us/azure/active-directory/develop/access-tokens
v1 using https://sts.windows.net/
v2 using https://login.microsoftonline.com
Error Message
Invalid JWT Token.
Wrong Issuer:
Why I get from the token old issuer   https://sts.windows.net/ and not   https://login.microsoftonline.com/ which is used by MSAL?
MSAL Configuration
export const msalConfig = {
    auth: {
        clientId: "<id>",
        authority: "https://login.microsoftonline.com/<id>",
        redirectUri: 'http://localhost:3000/',
    },
    cache: {
        cacheLocation: "sessionStorage", // This configures where your cache will be stored
        storeAuthStateInCookie: false, // Set this to "true" if you are having issues on IE11 or Edge
    },
};

export const apiConfig = {
    // Enter the API scopes as declared in the app registration 'Expose an Api' blade in the form of 'api://{client_id}/.default'
    resourceScope: "api://<Application (client) ID>/<Scope name>",
}

Reproduction steps
I'm using standart code example from MSAL 2.x

export const msalApp = new PublicClientApplication(msalConfig);
let username = '';

....

export const signIn = async () => {
    return msalApp.loginRedirect(loginRequest);
}

.....

After handleRedirectPromise() the Token response is:
{
...
"iss": "https://sts.windows.net//",
"ver": "1.0"
....
}
Expected behavior
To get right Token and get valid JWT token.
Browsers/Environment

[X] Chrome

Is your app originally created in the legacy app registration? You may need to recreate your app in the new app registration or set your accessTokenAcceptedVersion to 2 in the legacy app reg. This can be seen here.

Sorry for the late response. Yes,  I've created a new App Registration, but after I have looked into manifest, I saw accessTokenAcceptedVersion was null, which by default goes to v.1 Tokens and not v.2 Tokens. After I've set it to 2 it worked. Thanks so much


This page mis-represents abilities & layouts of visual headers

This page states that visual headers by default are stationed in line with the title (if the visual has one). This is not accurate. No matter the alignment, size, or presence of a title, the visual header is always positioned above the visual (as is shown above when the visual does not have a title. This is incredibly frustrating because I need this capability but the product does not do what you say it does. Instead, I have to create a separate text ow as the title and try ot line it up with the visual header from the visual below.

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

ID: db547626-10e8-5ea4-e1c3-7da6c236ce9f
Version Independent ID: 4529c3a6-1f8f-2e8c-4eaf-9bde90c4df54
Content: Use visual elements to enhance Power BI reports - Power BI
Content Source: powerbi-docs/desktop-visual-elements-for-reports.md
Service: powerbi
Sub-service: powerbi-desktop
GitHub Login: @davidiseminger
Microsoft Alias: davidi

Thanks for your comment, @hsims19 . We’ll take a look at that and get back to you soon. Thanks!

Hi David,
I found the issue is my screen resolution. If I fit to page and have the left hand toolbar open, it squeezes the visual header to the top. If I put the report on my external monitor, it behaves as expected. However, given that I cannot anticipate how my users will be viewing this report, their screen size, etc, this still means I still consider this a bug that I have to design around with the text box title solution unless I can be guaranteed that on any desktop/laptop machine the visual header will always work as expected.
From: David Iseminger<EMAIL_ADDRESS>Sent: Monday, November 11, 2019 3:49 PM
To: MicrosoftDocs/powerbi-docs<EMAIL_ADDRESS>Cc: Hailey Sims<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/powerbi-docs] This page mis-represents abilities & layouts of visual headers (#1597)
Thanks for your comment, @hsims19https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_hsims19&d=DwMFaQ&c=76Q6Tcqc-t2x0ciWn7KFdCiqt6IQ7a_IF9uzNzd_2pA&r=ArUFKdLr2S7HlXRh7RwNc2JVFAdma4jHzltD6cBSoBI&m=N4obKtmN5Qbg22_7Ukry24MmXaFB1GSNO0o9jaE8wfE&s=n7lV0-jxC6Oe79kjS9qHyqts1rI2GC6ptmMdZL04R08&e= . We’ll take a look at that and get back to you soon. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_MicrosoftDocs_powerbi-2Ddocs_issues_1597-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DANXZT66773IBJ5D26D4L27LQTHVP5A5CNFSM4JL4DWO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDYRFIQ-23issuecomment-2D552669858&d=DwMFaQ&c=76Q6Tcqc-t2x0ciWn7KFdCiqt6IQ7a_IF9uzNzd_2pA&r=ArUFKdLr2S7HlXRh7RwNc2JVFAdma4jHzltD6cBSoBI&m=N4obKtmN5Qbg22_7Ukry24MmXaFB1GSNO0o9jaE8wfE&s=r048-g-Uh3BY3uQLcTIAcRPUQFj0pNk8-g3kYdtezjU&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ANXZT6Y6CXFW6YSTNH2ITQLQTHVP5ANCNFSM4JL4DWOQ&d=DwMFaQ&c=76Q6Tcqc-t2x0ciWn7KFdCiqt6IQ7a_IF9uzNzd_2pA&r=ArUFKdLr2S7HlXRh7RwNc2JVFAdma4jHzltD6cBSoBI&m=N4obKtmN5Qbg22_7Ukry24MmXaFB1GSNO0o9jaE8wfE&s=mfUccEoJM62KvzYb1wd5YsoTfmPTbFHR7e4S7qtJklY&e=.


Question/Error when use wasm-run with wasm generated from Go 1.11

Go 1.11 is released an provides native wasm support. So I tried the following:
Given the following Go program main.go
package main

func main() {

}

is compiled with Go 1.11 to wasm
GOARCH=wasm GOOS=js go build -o test.wasm main.go

and try to run it with wasm-run test.wasm
I get the following error:
wasm-run: could not read module: open go.wasm: no such file or directory

So my question is, where do I get the file go.wasm? Would this be something like the wasm_exec.js, which is provided with Go 1.11?

What happens if you rename test.wasm to go.wasm and run it with wasm-run go.wasm ?
In any case, the current implementation of the Go compiler produces wasm that expects to be run in a browser - I would expect some error unless you mock in the equivalent APIs as what the browser provides to webassembly code (in the form of function tables).

Anyone solve this?


fix: fix url rewriting in css variables

Summary
closes #4605

Test Plan
Added

Require Documentation?

[X] No
[ ] Yes, the corresponding rspack-website PR is __

!snapshot

!canary

!canary


UnpublishTrack should return an error on invalid SID

Hi there
The following code does not return an error
err := localParticipant.UnpublishTrack("some invalid id")

In my opinion this function call should result in an error, however currently err is nil.
It took me quite some time to figure out, that I'm using the wrong id when calling UnpublishTrack. Due to UnpublishTrack succeeding I looked everywhere else :wink:
I guess the following line should change:
https://github.com/livekit/server-sdk-go/blob/bae117cbb731602646a90b5db07df5f7b02a6976/localparticipant.go#L242
Thanks a lot for your time

that's a great suggestion! let me know you are up for opening a PR for it.

Thx.
Yes I'm up for a PR. I will propose a PR in the upcoming days.


Not using any context (as an option)

While testing, I ran into the situation that I had a context active that defined a creds file, so I gave a different server (web socket) and the test succeeded because of the "invisible" creds file. I did not realize that at first. Then I wondered how to get rid of "any" context and just get what is on the command line. Giving an empty context or creds file as parameter did not succeed. So, I created a "none" context from "no parameters" which kind of works but still sets the <IP_ADDRESS> server. It seems that rm ~/.config/nats/context.txt is the only way to get rid of a selected context and return to nats without any context selection. I think that nats-cli should have something like nats context none to make this a documented feature.

hmm, I thought I fixed the thing where you cant remove the selected context but maybe only when its the only remaining one.

It is not about deleting contexts (I have quite some context I do not want to lose).

Will think about it, maybe add a --no-context flag that just disable context loading entirely.

I just want to "reset" the context, and go to the state where you do not have any context selected to be sure that nothing is influencing my commands.
Having a --no-context would work too, but removing "any" context probably should still be an option?

So essentially you want to just unselect the context? or operated without a selected context which is what --no-context would do?

I was thinking about "unselecting" but just skipping it for a command seems to be also a useful variant. Especially in scripts because you make no change to the context of the user and need to restore it after the script is done.

Yeah, just being able to opt out of using the selected context - so using no context - seems like the least disruptive mode to me and a way to make scripts safe.  Though personally I use contexts in scripts but then I supply their full path and not a name or leaving it up to the selected one.

https://github.com/nats-io/natscli/pull/641


Document SBOM

Need to document SBOM at the Component level.

Hey @TracyRagan
I would like to take up this issue. Could you please provide more details about the scope of the issue?
Thank you!


Changes made to DeployDataCenter to support Baremetal Basic Zone Creation

Made changes to deployDataCenter.py to support zone creation with Baremetal as the Hyeprvisor
Added test file to BVT with basic vm deployment test
Added template entry in test_data.py file
Added sample configuration file BareMetal.cfg to create Basic Zone with Baremetal as the Hypervisor

I have also tested this and works fine. However, I don't have test results to post here.

@sanju1010 I had a look and didn't see you add your test to the travis yaml, is it included in the travis run? (if yes no need for any test report)

@DaanHoogland , this test requires hardware. So I can't add this as part of travis yaml.

@sanju1010 makes sense and then of course a test report and -description is needed.

I have not tested but did a code walk through. LGTM

@sanju1010 can you add a run output to the PR?

Sure Daan I will add .
On Dec 4, 2015 7:58 PM, "Daan Hoogland"<EMAIL_ADDRESS>wrote:

@sanju1010 https://github.com/sanju1010 can you add a run output to the
PR?
—
Reply to this email directly or view it on GitHub
https://github.com/apache/cloudstack/pull/809#issuecomment-161980229.

@sanju1010 please rebase against latest master and push -f, update on status of your PR
This is baremetal specific test, how do I test it; the resources/urls mentioned in your cfg are specific to some private network, in which case the PR test-data is unacceptable if no-one else can run your test

@harikrishna-patnala @sanju1010 closing this stale ticket, feel free to rebase and re-open


Chokidar does not handle kFSEventStreamEventFlagMustScanSubDirs properly, calls unlink callback

Describe the bug
If the system is flooded with too many fsevents (for example, you are watching a directory that undergoes a huge number of changes all at once, and the user code to process these events is slow), a buffer of events can fill up and trigger a kFSEventStreamEventFlagUserDropped event:

The kFSEventStreamEventFlagUserDropped or kFSEventStreamEventFlagKernelDropped flags may be set in addition to the kFSEventStreamEventFlagMustScanSubDirs flag to indicate that a problem occurred in buffering the events (the particular flag set indicates where the problem occurred) and that the client must do a full scan of any directories (and their subdirectories, recursively) being monitored by this stream. If you asked to monitor multiple paths with this stream then you will be notified about all of them. Your code need only check for the kFSEventStreamEventFlagMustScanSubDirs flag; these flags (if present) only provide information to help you diagnose the problem.

When this happens...
fsevents calls the watch callback on the root directory with flags=3 (kFSEventStreamEventFlagMustScanSubDirs & kFSEventStreamEventFlagUserDropped), and then calls the callback for every file and subdirectory.
When chokidar processes the event on the root directory, it calls fsevents.getInfo and compares the type to the previous type. If the new type does not match the old type, it calls the callback with the unlink event.
Chokidar code:
https://github.com/paulmillr/chokidar/blob/master/lib/fsevents-handler.js#L151
https://github.com/paulmillr/chokidar/blob/master/lib/fsevents-handler.js#L331-L335
The problem is that fsevents.getInfo().type will be undefined if the flags=3. (Relevant: https://github.com/fsevents/fsevents/issues/372) See the implementation here: https://github.com/fsevents/fsevents/blob/master/fsevents.js#L40-L54
Because "directory" !== undefined, chokidar incorrectly calls the unlink event on the root directory, and user applications cannot distinguish between a true unlink and the kFSEventStreamEventFlagMustScanSubDirs event.
Versions (please complete the following information):

Chokidar version: 3.5.2
Node version: 12.20.1
OS version: MacOS 12.1

To Reproduce:
Create a chokidar watch on a directory. The callback should do something expensive like busy-loop. Flood the directory with frequent updates to a large number of files.
Expected behavior
Chokidar sends a special event signaling that this behavior has happened, or at very least does not call unlink on the root directory.
Additional context
We are working on a large mono repo and watch the root directory to transpile our code. We have a separate tool that typechecks the entire repo and outputs .d.ts files to a .gitignored directory within the repo. When running these tools at the same time, typescript generates a large number of watches that are somewhat expensive to process (need to re-transpile the code) which repros this issue.
-Submitted by Airtable

@paulmillr the way we are handling this is to just drop events with flag kFSEventStreamEventFlagMustScanSubDirs. fsevents is calling the callback for all of the subdirs and files within the root directory after this, so that seems relatively safe. If that approach makes sense to you, I can send the patch we applied as a PR. I probably won't have time to figure out how to write a unit test for this, though.

Sure

I was debugging this for a while and got to the same conclusions.
In my case, I got this flags 3 when deleting a cache directory with lots of files and directories. I set this dir in the "ignore" options, but its rootDir was watched.
For some reason, this happens only when deleting the directory async (with fs.remove, not fs.removeSync) from node. Deleting from the cli doesn't trigger this flag.
It starts by firing a few flags=131584 (deleted directory) and then flags=3 with the root-dir.
As a result, as mentioned above, the root-dir got the "unlink" event by Chokidar, and then Chokidar fired unlink events for all its files and sub directories.
Mac OS 12.6
Node v18.16.1
@paulmillr , any chance to merge the PR above that fixes it? it'd be a great help!
Thanks.


Unexpected error: This comparison appears to be unintentional because the types '"yes"' and '"no"' have no overlap.(2367)

🔎 Search Terms
This comparison appears to be unintentional because the types '"yes"' and '"no"' have no overlap.(2367)
🕗 Version & Regression Information
This reproduces also in TS 5.6, 5.5.
⏯ Playground Link
https://www.typescriptlang.org/play/?#code/MYGwhgzhAEBiD29oG8BQ0MFMB2AXAlriJgLY64Bc0A5AJ6YTXQA+N28TAvDfY6gL6pUoSDABCYAE4ohGDAAdJ+AG5hcmaADNE0btkwB3OIgAUASllyA5plzRyhYmTzmZc99Em2ArpOzRcAAt8CAA6bXhQhyJScgBudDlBRIwAIylXNA85fE1oEyCQqLxHWLxdTm46BmozN2yPQrCI4oIY5zsq9moEho9c-KbW0o6Kro46rL6GlOnk6blgeGwIeGJQkHgrAuCw6KdyM16GwXdBZKWVu3TpPUNoCUlzBJvQm+fUIA
💻 Code
class Foo {
   entitlement: 'yes' | 'no' = 'yes'
}

class Bar {

    private foo = new Foo()

    get entitlement() {
        return this.foo.entitlement;
    }

    bar() {
        if (this.entitlement === 'yes') {
            this.foo.entitlement = 'no';
            if (this.entitlement === 'no') {
          //^^^^^^^This comparison appears to be unintentional because the types '"yes"' and '"no"' have no overlap.(2367)
            }

            console.log(this.entitlement);
        }
    }
}

const bar = new Bar();
bar.bar();

🙁 Actual behavior
The check in line 16 (if (this.entitlement === 'no') {) produces a compile error:
This comparison appears to be unintentional because the types '"yes"' and '"no"' have no overlap.(2367)

🙂 Expected behavior
The check in line 16 (if (this.entitlement === 'no') {) does not produce a compile error.
Additional information about the issue
No response

Duplicate of #9998.


making dbq return count

[ ] styleCheck passes
[ ] unit tests pass
[ ] integration tests pass
[ ] manual tests pass
[ ] API docs updated

This build looks good.


Some comments are not openable from @username/comments page

Yo

Do you happen to have link to posts that cause this problem? I can't find those.


ignored auth headers for login resource

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


The maximum number of task nodes that can be placed in a workflow definition

**For better global communication, Please describe it in English. If you feel the description in English is not clear, then you can append description in Chinese(just for Mandarin(CN)), thx! **
Describe the question
A clear and concise description of what the question is.
Create a process with a POST request. After 500 nodes, it will not be able to create a process.
Which version of DolphinScheduler:
-[1.1.0-preview]
1.3.4
Additional context
Add any other context about the problem here.
Requirement or improvement

Please describe about your requirements or improvement suggestions.

Is there any error message in API log？

columns connects 、jsonlocations
，i modify the metadata，it works


[4.2] SILGen: Pick UIApplicationMain by looking directly in the Clang module.

Explanation: The previous fix for rdar://problem/42352695 did not work when the UIKit overlay contained a UIApplicationMain overload that exactly matched the imported signature of UIApplicationMain from ObjC. This avoids the issue by looking for UIApplicationMain directly in the Clang module.
Scope: Makes compiler more resilient to SDK overlay changes
Issue: rdar://problem/42352695
Risk: Low, improves specificity of existing logic to find UIApplicationMain
Testing: Swift CI, compatibility suite

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@swift-ci Please test

@swift-ci Please nominate


Getting undefined when trying to access the fieldId of a column

Description
With the announcement of 1.5.0 it should be possible to retrieve the fieldId from a column. I was immediately trying it on my extension with the Superstore - Shipping dashboard. Unfortunately I couldn't see any changes in the response of the API. Still getting the same reponse without the fieldId.
Used:

Macbook Pro 15" Late 2015 - Big Sur 11.2.3
Chrome (latest) Version 91.0.4472.77 (Official Build) (x86_64)

Steps to reproduce

Updated the extension api to 1.5.0
Get the first worksheet tableau.extensions.dashboardContent.dashboard.worksheets[0]
Get the summaryData from it worksheet.getSummaryDataAsync()
I use this summaryData to get the columns summaryData.columns

None of them contained an fieldId, it looks like this:
{"_fieldName":"CNT(Orders)","_dataType":"float","_isReferenced":true,"_index":1}

Hello @LingVuDev
Thanks for trying it out so quickly. It appears that you are still using a previous version of the extension api. I would suggest dumping the Environment to the console, and then also the DataTable from getSummaryDataAsync.
Here is what I get when running against Tableau desktop. I put a breakpoint after getSummaryDataAsync, and then did the following in the console:

Oh yes, I did some investigation and you were totally right. Somehow, my script doesn't replace it. So my bad. But thanks for the fast response. Really apprechiate your support.


add german translation

I began a german translation. Might be a bit rough on the edges, so prepare for some more pull-requests :)

Awesome, thanks @Finkregh! I'll leave this open until you're happy it's all been covered, ok?

ok, i'll keep you informed ;)

Thanks! Looking forward to merging.

To be honest, it looks like you've covered everything?

you might want to merge as soon as the last commit has been munched by the bots :smile:

Awesome.