CertBot  No such file or directory

Problem to generate cert on localhost
docker-compose up certbot
Starting laradock_certbot_1 ... done
Attaching to laradock_certbot_1
certbot_1              | Saving debug log to /var/log/letsencrypt/letsencrypt.log
certbot_1              | Plugins selected: Authenticator webroot, Installer None
certbot_1              | Unable to register an account with ACME server
certbot_1              | cp: cannot stat '/etc/letsencrypt/archive/app.test/cert1.pem': No such file or directory
certbot_1              | cp: cannot stat '/etc/letsencrypt/archive/app.test/privkey1.pem': No such file or directory
laradock_certbot_1 exited with code 1
Certbot
certbot:
build:
context: ./certbot
volumes:
- ./data/certbot/certs/:/var/certs
- ./certbot/letsencrypt/:/var/www/letsencrypt
environment:
- CN=app.test
-<EMAIL_ADDRESS>networks:
- frontend

check debug log /var/log/letsencrypt/letsencrypt.log

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/certbot/main.py", line 520, in _determine_account
config, account_storage, tos_cb=_tos_cb)
File "/usr/lib/python3/dist-packages/certbot/client.py", line 182, in register
regr = perform_registration(acme, config, tos_cb)
File "/usr/lib/python3/dist-packages/certbot/client.py", line 214, in perform_registration
raise errors.Error(msg)
certbot.errors.Error: The ACME server believes<EMAIL_ADDRESS>is an invalid email address. Please ensure it is a valid email and attempt registration again.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/letsencrypt", line 11, in
load_entry_point('certbot==0.27.0', 'console_scripts', 'certbot')()
File "/usr/lib/python3/dist-packages/certbot/main.py", line 1364, in main
return config.func(config, plugins)
File "/usr/lib/python3/dist-packages/certbot/main.py", line 1238, in certonly
le_client = _init_le_client(config, auth, installer)
File "/usr/lib/python3/dist-packages/certbot/main.py", line 641, in _init_le_client
acc, acme = _determine_account(config)
File "/usr/lib/python3/dist-packages/certbot/main.py", line 526, in _determine_account
"Unable to register an account with ACME server")
certbot.errors.Error: Unable to register an account with ACME server

It's on localhost

Hi. Not working yet.

I had the same problem, Have you solved it ？

Hi. Not working yet.

I had the same problem, Have you solved it ？

Hi. Not working yet.

I had the same problem, Have you solved it ？

Not yet.. a have the same error

Not yet.. a have the same error

This error message

certbot.errors.Error: The ACME server believes<EMAIL_ADDRESS>is an invalid email address. Please ensure it is a valid email and attempt registration again.

u need use real email address.

Certbot can't create folder archive
certbot_1              | drwx------ 3 root root 4096 Apr 27 14:43 accounts
certbot_1              | -rw-r--r-- 1 root root  121 Feb 11  2019 cli.ini
certbot_1              | drwxr-xr-x 5 root root 4096 Apr 27 14:43 renewal-hooks


fix: use name from commandSpec

Use name from command decorator so that it doesn't make a difference if a user calls the command with different capitalization

Task linked: CU-2y9q2mb Analytics, ensure all strings are lower cased


RelPermalink is broken in 0.16

As per the documentation, the url for a post is driven by the filename, if url or slug is missing. However that does not seem to be the case and instead the url is being constructed out of the title in the front matter.
For example:
If I have post named: content/post/2016-05-31-building-courses-for-tuts.md, which has the following front matter:
---
date: "2016-05-31T08:53:06-04:00"
title: "Building Courses for Tuts+"
---

the resulting RelPermalink is generated as http://localhost:1313/2016/05/building-courses-for-tuts+
As you can see, It is not respecting the filename. The correct url should be http://localhost:1313/2016/05/building-courses-for-tuts/

I can't reproduce the bug. I wonder if you use the permalinks option in your config file.
https://gohugo.io/extras/permalinks/

You are right. I do have a permalink set there. That resolves it, thanks!


[Screen Reader - Utility - PowerToys Run] Mention context menu items

Summary of the Pull Request
Mention how many menu items the element has, so users know about them and may investigate them when needed.

PR Checklist

[x] Closes: #20270
[ ] Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
[ ] Tests: Added/updated and all pass
[ ] Localization: All end user facing strings can be localized
[ ] Dev docs: Added/updated
[ ] New binaries: Added on the required places

[ ] JSON for signing for new binaries
[ ] WXS for installer for new binaries and localization folder
[ ] YML for CI pipeline for new test projects
[ ] YML for signed pipeline

[ ] Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

Check with something with context menu items, e.g. Word - Narrator says "Word, application, 4 context menu items available"
Check something without context menu items (hibernate), no context menu items mentioned

These are not context menu items, I'd say. What about "X Appended controls available to the right?"

Agree, but maybe without "to the right"? If they'd be moved let's say to the bottom in the future, it's easy to forget that this text needs to be changed along with the UI.


Fix for browserify

Shouldn't browserify use browser field of package.json?
@DylanPiercey Hey, you're browserify guy, can you take a look?
Thank you.

@jwulf, what exactly does this fix? Firstly file extensions AFAIK are optional in package.json and second browserify will use the browser field?

The extensions are optional, and it operates fine in a node.js environment without it. Using node.js 4.0 and browserify to pack up winston, however, fails when the extension is not present (it will insert the entire path into the bundle, rather the actual code that it references), or when a relative path is specified.

@jwulf Correct me if I'm wrong. If browser field is present in package..json it will be used instead of main field, right?
And do you mind to elaborate on "insert the entire path into the bundle, rather the actual code", thank you.
PS. AFAIK resolution of the module path done using node's built-in mechanism (same as require function) and hasn't changed with node 4.0. So if you see different behavior maybe it's a bug inbrowserify and/or node itself?

Seems like no longer the issue. Closing. Please feel free to continue discussion.


Configure Azure Pipelines

This pipeline configuration builds the application and produces a build for the Release configuration.

 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.:x: dzhou71 sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


upgrade; mongoskin to 1.4.13

Hi Guillermo,
mongoskin 1.4.11 is bugging out because of the release of mongodb driver 2.0. I bumped mongoskin to 1.4.13 to make sure it uses mongodb ~1.4.

Thanks!


Broken links

http://gluon.mxnet.io/
"More detailed instructions are available here"
--> http://gluon.mxnet.io/docs/C01-install.rst doesn't exist
http://gluon.mxnet.io/P02-C01-linear-regression-scratch.html
"First, we’ll import the same dependencies as in the autograd tutorial"
--> http://gluon.mxnet.io/2-autograd.ipynb doesn't exist

Thanks, I'll fix these.

Fixed.


I am stuck here unable to select next project

[13:58:49 INF] Initializing upgrade step Select project to upgrade
Upgrade Steps
Entrypoint: D:\Projects\Neural-Network\NeuralNetwork\NeuralNetwork\NeuralNetwork.csproj

[Next step] Select project to upgrade
Finalize Solution

Choose a command:

Apply next step (Select project to upgrade)
Skip next step (Select project to upgrade)
See more step details
Configure logging
Exit

1
[13:59:06 INF] Applying upgrade step Select project to upgrade
Here is the recommended order to upgrade. Select enter to follow this list, or input the project you want to start with.
[Completed] NeuralNetwork

[13:59:35 ERR] Unknown selection: ''

4
[13:59:48 ERR] Unknown selection: '4'

[14:00:08 ERR] Unknown selection: ''

1
[14:00:13 ERR] Unknown selection: '1'
quit
[14:00:21 ERR] Unknown selection: 'quit'
2
[14:00:31 ERR] Unknown selection: '2'

[14:00:37 ERR] Unknown selection: ''

NeuralNetwork
[14:00:58 ERR] Unknown selection: 'NeuralNetwork'

[14:01:05 ERR] Unknown selection: ''

[14:01:21 ERR] Unknown selection: ''

2
[14:01:59 ERR] Unknown selection: '2'
1
[14:02:01 ERR] Unknown selection: '1'
2
[14:02:03 ERR] Unknown selection: '2'
3
[14:02:04 ERR] Unknown selection: '3'
4
[14:02:05 ERR] Unknown selection: '4'
5
[14:02:07 ERR] Unknown selection: '5'

Thanks for the report, @woaksie. Are you able to share the solution so that I can try to reproduce the issue?
Alternatively, if you run the tool with "-v" that will produce much more verbose output and if you share that output, it may give some hints as to what's going on here.

There are 3 projects in the solution and I had just done the first one. I was expecting to see the other 2 projects when I selected the option "1 Apply next step (Select project to upgrade)" but it only showed me the completed project. and I could not enter any option that would get past this. I actually don't care about the other two projects at this point and would just like to "Finalize Solution".  What would happen if I terminate the upgrade and start it again? I am happy to share the solution although it is a bit of an experimental mess [don't judge me ;-)].

I'm having the same issue with a solution that contains 9 projects. Started the assistant with the solution and it asked to select an entry point (one of the projects) and I was able to upgrade that project. After that, the assistant only shows the project I upgraded and none of the others. I can specify the individual .xxproj files, but I was hoping it would show the order and guide me thru. I cannot upload the project, but here is the cleansed .sln structure:
Microsoft Visual Studio Solution File, Format Version 12.00
Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Main.UI", "Main.UI\Main.UI.csproj", "{67D5E049-38D6-45C1-AD30-7A58D1F12BC2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Main.API", "Main.API\Main.API.csproj", "{4E2B834B-21B5-4ED6-B387-090AF9DF152A}"
EndProject
Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "Main.Database", "Main.Database\Main.Database.sqlproj", "{FAECC36D-EA68-4023-A221-31DED5A5CE7F}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SubApp", "SubApp", "{4EA62A0D-C2AD-4F54-8AAA-30D46AED866D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SubApp.Api", "SubApp\SubApp.Api\SubApp.Api.csproj", "{4E8E187D-447A-49CD-BF85-F5E0D9B2C03C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SubApp.BusinessLogic", "SubApp\SubApp.BusinessLogic\SubApp.BusinessLogic.csproj", "{6E108F29-13D4-452F-BF4E-B1297E4E2863}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SubApp.DataAccess", "SubApp\SubApp.DataAccess\SubApp.DataAccess.csproj", "{0E9CC38E-BAE3-4396-8BB8-7B7180421A8B}"
EndProject
Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "SubApp.Database", "SubApp\SubApp.Database\SubApp.Database.sqlproj", "{48938BE2-77AE-4E3D-9D22-1190943176D6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SubApp.Tests", "SubApp\SubApp.Tests\SubApp.Tests.csproj", "{BB8F0767-6E1D-4992-8F3E-AC4EAE7873F0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Main.Scheduler", "Main.Scheduler\Main.Scheduler.csproj", "{70A17922-D031-43BA-BE4C-79A099D70A93}"
EndProject

@woaksie, I took a look at the project you uploaded, but it seems to only be one project (which the tool runs fine on). Are you able to share the solution with multiple projects so that I can try to reproduce the issue of the tool failing after completing the first upgrade? Even having just the csproj files without source might be good enough to reproduce the issue.
Also, @woaksie  and @mwilsonray, if you can run the tool with the -v parameter and share the output that may give some clues.

Company.CommonUI is an internal NuGet pkg that is source code only (cs, js, css, etc.) and none of the csproj files have Code Analylzer references. Unfortunately, I cannot send the csproj or sln files.
upgrade-assistant-01.log

Thanks, @mwilsonray. I'll take a look.

Sorry about that, that was the backup the tool made. I thought it did the whole solution but it just did the project. I have deleted the solution and recreated it from Git. These are the 3 project files
NeuralNet.zip

I have the same problem after successfully upgrading 4/11 projects (the other 7 were compliant already). All were marked green "completed". It seems the tool does not detect that all projects have been completed but suggests "move to next project" anyways. Then there is nothing to select and it runs into the described deadlock situation. Unfortunately, I can't share the solution.
I could imagine that the tool gets confused because my directory contains even more, unrelated projects (plugins that would be built independently). Those are neither linked in the sln nor referenced by the 11 csproj files the tool should look at. The command line "user" interface correctly identified the dependency structure and showed only relevant projects.

Thanks for sharing the repro, @woaksie. I think I see the issue and am working on a fix now.


Updated metadata to new article author

This is based on the info provided by jaimeo from PR #353

@jaimeo - Can you please assist to check, approve and merge the content of this PR?
Thank you.


Update to nesclock to improve memory usage

Put bitmaps into object set based on clock settings instead of all bitmaps into variables all the time. Also tried doing what was mentioned here:
https://forum.espruino.com/conversations/383678/#comment16863053
to see if it will fix issue with time disappearing on occasion.

Thanks!


show probabilities as 1.00

Display probability 1 as 1.00 so it looks like a probability and not a count.

Tested and verified.


Upgrade Packages

Stencil to 4 (Angular?)
https://stenciljs.com/docs/introduction/upgrading-to-stencil-four
Storybook to 8
Nx to 18
Others?

Had to pin Stencil version due to error
Chromatic seems to be failing? Maybe it can't cope with Storybook 8 yet?


Error loading pretrained model

Hello I have problem while loading the pretrained model. It give this error.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 918: ordinal not in range(128)
I am using pytorch 0.3.1.post2

This is the reason of python's version, please check https://github.com/twtygqyy/pytorch-vdsr/issues/21

i have met the same problem, did you solve it? Thank you!


Unable to sync ethereum mainnet

Following docs at
My config as recommended is: https://firehose.streamingfast.io/firehose-setup/ethereum/installation-1
start:
  args:
  # Define Firehose components that will be used for this setup
  - merger
  - firehose
  - reader-node
  - relayer
  - combined-index-builder
  flags:
    # Prevent creation of file for logging (logs from previous sessions are not visible with this setting)
    log-to-file: true

    # Ethereum is the default chain, its id is 1. Update these flags for different chains such as Binance
    common-chain-id: "1"
    common-network-id: "1"
    # Update the reader-node-path to reference the geth binary for the chain and OS being targeted
    reader-node-path: ../geth/eth_geth
    # Update the reader-code-arguments for the chain being targeted
    # Find specific values in the Firehose Ethereum Setup Documentation
    reader-node-arguments: "+--cache 8192 --maxpeers 100 --metrics --metrics.port 6061 --port=30303 --http.port=8545 --snapshot=true --txlookuplimit=1000"
    reader-node-log-to-zap: false

    firehose-grpc-listen-addr: ":9000"
    substreams-enabled: true
    #substreams-sub-request-parallel-jobs: 10
    #substreams-partial-mode-enabled: true
    substreams-rpc-endpoints: "$BSC_SUBSTREAMS_RPC_ENDPOINT"
    #substreams-sub-request-block-range-size: 100
    #substreams-stores-save-interval: 100

geth:
./eth_geth version
INFO [01-24|09:51:57.922] Initializing firehose
INFO [01-24|09:51:57.926] Firehose initialized                     enabled=false sync_instrumentation_enabled=true mining_enabled=false block_progress_enabled=false compaction_disabled=false archive_blocks_to_keep=0 genesis_provenance="Geth Default" firehose_version=2.1 geth_version=1.10.26-fh2 chain_variant=geth
Geth
Version: 1.10.26-fh2
Git Commit: b47e39e956b6646f215f11b9a8a70ad03f733ab6
Architecture: amd64
Go Version: go1.17.13
Operating System: linux
GOPATH=
GOROOT=go

lots of such messages in logs:
WARN [01-24|09:47:44.328] Snapshot extension registration failed   peer=aab3bbde err="peer connected on snap without compatible eth support"
INFO [01-24|09:48:04.915] Looking for peers                        peercount=2 tried=37 static=0
WARN [01-24|09:50:01.325] Snapshot extension registration failed   peer=c5fb898d err="peer connected on snap without compatible eth support"

There's definitely something fishy is going on with node startup, I had the same intermittent issue with BSC mainnet
Any help welcomed

If I remove snapshot=true from reader-node-arguments I see
Post-merge network, but no beacon client seen. Please launch one to follow the chain! in logs...

https://geth.ethereum.org/docs/getting-started/consensus-clients


Exception on VS Startup:  AWSNavigatorToolControl' does not have a resource identified by the URI '/AWSToolkitPackage.v17;component/toolwindow/awsnavigatortoolcontrol.xaml'.

Describe the bug
When I open the AWS Explorer panel, there is the follow exception message:
An exception was encountered while constructing the content of this frame.

Exception details:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: The component 'Amazon.AWSToolkit.VisualStudio.ToolWindow.AWSNavigatorToolControl' does not have a resource identified by the URI '/AWSToolkitPackage.v17;component/toolwindow/awsnavigatortoolcontrol.xaml'.
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at Amazon.AWSToolkit.VisualStudio.ToolWindow.AWSNavigatorToolControl..ctor()
   at Amazon.AWSToolkit.VisualStudio.ToolWindow.AWSNavigatorToolWindow..ctor()
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Microsoft.VisualStudio.Shell.Package.InstantiateToolWindow(Type toolWindowType, Object context)
   at Microsoft.VisualStudio.Shell.Package.<>c__DisplayClass87_0.<CreateToolWindow>g__CreateToolWindowWorker|1()
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, UInt32 flags, Object context, Guid persistenceGuid)
   at Microsoft.VisualStudio.Shell.Package.<>c__DisplayClass97_1.<<FindToolWindow>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Shell.Package.<>c__DisplayClass97_0.<<FindToolWindow>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Shell.ToolWindowCollection.ToolWindowListener.<>c__DisplayClass1_0.<<-ctor>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter`1.GetResult()
   at Microsoft.VisualStudio.Threading.AsyncLazy`1.<>c__DisplayClass16_0.<<GetValueAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
   at Microsoft.VisualStudio.Threading.JoinableTask`1.CompleteOnCurrentThread()
   at Microsoft.VisualStudio.Threading.AsyncLazy`1.GetValue(CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Shell.Package.FindToolWindow(Type toolWindowType, Int32 id, Boolean create, ProvideToolWindowAttribute tool)
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Guid& toolWindowType, Int32 id)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.<ConstructContent>g__ConstructContentFromPackage|225_1(WindowFrame frame)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()

To Reproduce

Open Visual Studio
Open AWS Explorer panel

Expected behavior

The AWS Explorer panel is populated with my AWS resources
Screenshots

Toolkit Logs

If applicable, attach toolkit logs by navigating to Extensions / AWS Toolkit / View Toolkit Logs.

I don't see a View Toolkit Logs menu option.

Development System (please complete the following information):

Windows Version:  Win 10 21H2 build 19044
Visual Studio Version: VS 2022 64bit 17.8.3
AWS Toolkit for Visual Studio Version:  <IP_ADDRESS>

Additional context

Might be a Visual Studio bug?
I disabled the AWS Toolkit plugin and restarted Visual Studio ... and now it loads fine ¯_(ツ)_/¯

Please look for an appropriate log file in the %localappdata%\AWSToolkit\logs folder.
Can you check your list of installed extensions again. Do you also happen to have one called "AWSToolkitDev" installed?

Can you check your list of installed extensions again. Do you also happen to have one called "AWSToolkitDev" installed?

No Dev plugin:

Please look for an appropriate log file
Not sure what exactly I'm looking for, but there's a few exceptions in here:

2023-12-11 20:02:38,496 [57] ERROR Amazon.AWSToolkit.VisualStudio.ToolkitThemeProvider - System.Windows.Markup.XamlParseException: Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception. ---> System.Xaml.XamlObjectWriterException: Provide value on 'MS.Internal.Markup.StaticExtension' threw an exception. ---> System.ArgumentException: 'Amazon.AWSToolkit.Themes.ToolkitThemeResourceKeys.ListBoxStyle' StaticExtension value cannot be resolved to an enumeration, static field, or static property.
   at System.Windows.Markup.StaticExtension.ProvideValue(IServiceProvider serviceProvider)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
   --- End of inner exception stack trace ---
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
   at System.Xaml.XamlObjectWriter.Logic_ProvideValue(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.WriteEndObject()
   at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
   at System.Windows.ResourceDictionary.EvaluateMarkupExtensionNodeList(XamlReader reader, IServiceProvider serviceProvider)
   at System.Windows.ResourceDictionary.GetKeyValue(KeyRecord key, IServiceProvider serviceProvider)
   at System.Windows.ResourceDictionary.SetKeys(IList`1 keyCollection, IServiceProvider serviceProvider)
   at System.Windows.Baml2006.WpfSharedBamlSchemaContext.<>c.<Create_BamlProperty_ResourceDictionary_DeferrableContent>b__299_0(Object target, Object value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
   at MS.Internal.AppModel.AppModelKnownContentFactory.BamlConverterCore(Stream stream, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter, Boolean isUnsafe)
   at MS.Internal.AppModel.MimeObjectFactory.GetObjectAndCloseStreamCore(Stream s, ContentType contentType, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter, Boolean isUnsafe)
   at System.Windows.ResourceDictionary.set_Source(Uri value)
   at Amazon.AWSToolkit.VisualStudio.ToolkitThemeProvider.LoadResourceDictionary(String uriString)
2023-12-11 20:02:38,528 [57] ERROR Amazon.AWSToolkit.VisualStudio.ToolkitThemeProvider - System.Windows.Markup.XamlParseException: Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception. ---> System.Xaml.XamlObjectWriterException: Provide value on 'MS.Internal.Markup.StaticExtension' threw an exception. ---> System.ArgumentException: 'Amazon.AWSToolkit.Themes.ToolkitThemeResourceKeys.ListBoxStyle' StaticExtension value cannot be resolved to an enumeration, static field, or static property.
   at System.Windows.Markup.StaticExtension.ProvideValue(IServiceProvider serviceProvider)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
   --- End of inner exception stack trace ---
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
   at System.Xaml.XamlObjectWriter.Logic_ProvideValue(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.WriteEndObject()
   at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
   at System.Windows.ResourceDictionary.EvaluateMarkupExtensionNodeList(XamlReader reader, IServiceProvider serviceProvider)
   at System.Windows.ResourceDictionary.GetKeyValue(KeyRecord key, IServiceProvider serviceProvider)
   at System.Windows.ResourceDictionary.SetKeys(IList`1 keyCollection, IServiceProvider serviceProvider)
   at System.Windows.Baml2006.WpfSharedBamlSchemaContext.<>c.<Create_BamlProperty_ResourceDictionary_DeferrableContent>b__299_0(Object target, Object value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
   at MS.Internal.AppModel.AppModelKnownContentFactory.BamlConverterCore(Stream stream, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter, Boolean isUnsafe)
   at MS.Internal.AppModel.MimeObjectFactory.GetObjectAndCloseStreamCore(Stream s, ContentType contentType, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter, Boolean isUnsafe)
   at System.Windows.ResourceDictionary.set_Source(Uri value)
   at Amazon.AWSToolkit.VisualStudio.ToolkitThemeProvider.LoadResourceDictionary(String uriString)
2023-12-11 20:02:38,628 [59] DEBUG Amazon.AWSToolkit.Telemetry.TelemetryService - Telemetry service disabled
2023-12-11 20:02:38,637 [59] INFO  Amazon.AWSToolkit.ResourceFetchers.FileResourceFetcher - Loading resource: C:\Users\pittle\AppData\Local/AWSToolkit\downloadedfiles\endpoints.json
2023-12-11 20:02:38,692 [15] DEBUG Amazon.AWSToolkit.VisualStudio.Telemetry.TelemetryManager - Initializing Telemetry Service
2023-12-11 20:02:38,750 [59] DEBUG Amazon.AWSToolkit.Regions.RegionProvider - Updating AWS SDK with endpoints data...
2023-12-11 20:02:38,843 [59] DEBUG Amazon.AWSToolkit.Regions.RegionProvider - Finished updating AWS SDK with endpoints data

2024-01-23 20:30:51,282 [1] INFO  Amazon.AWSToolkit.VisualStudio.Lambda.LambdaTesterEventListener - Error handling Debug Context Change
System.NullReferenceException: Object reference not set to an instance of an object.
   at Amazon.AWSToolkit.VisualStudio.Lambda.LambdaTesterEventListener.OnDebuggerContextChanged(Process newProcess, Program newProgram, Thread newThread, StackFrame newStackFrame)
2024-01-23 20:30:51,330 [1] INFO  Amazon.AWSToolkit.VisualStudio.Lambda.LambdaTesterEventListener - Error handling Debug Context Change
System.NullReferenceException: Object reference not set to an instance of an object.
   at Amazon.AWSToolkit.VisualStudio.Lambda.LambdaTesterEventListener.OnDebuggerContextChanged(Process newProcess, Program newProgram, Thread newThread, StackFrame newStackFrame)
2024-01-23 20:54:36,237 [1] INFO  Amazon.AWSToolkit.VisualStudio.Lambda.LambdaTesterEventListener - Error handling Debug Context Change
System.NullReferenceException: Object reference not set to an instance of an object.
   at Amazon.AWSToolkit.VisualStudio.Lambda.LambdaTesterEventListener.OnDebuggerContextChanged(Process newProcess, Program newProgram, Thread newThread, StackFrame newStackFrame)
2024-01-23 20:54:36,255 [1] INFO  Amazon.AWSToolkit.VisualStudio.Lambda.LambdaTesterEventListener - Error handling Debug Context Change
System.NullReferenceException: Object reference not set to an instance of an object.

It sounds like you can no longer repro the issue after disabling then re-enabling the toolkit extension or are you able to repro it now?
Did you notice the issue across multiple Visual Studio sessions or did it only occur during a single session?
Did the issue occur immediately upon installation of that version of the toolkit or did it run as expected prior to the issue occurring?
The first log you posted seems to indicate an issue with XAML processing similar to the stack trace from the original post, but it's not clear if it is related.  The latter log doesn't appear to be related, not directly at least.
The odd thing is the missing URI is in the main assembly and the extension wouldn't start without that assembly, so it doesn't appear to be a missing assembly issue.  I wouldn't think VS would attempt to reinstall assemblies when enabling an extension either.

It sounds like you can no longer repro

That is correct.
After several reboots, VS still shows AWS Toolkit as [Disabled] but the AWS Explorer window loads just fine.  Seems my Visual Studio is in a funky state?
I doubt it will make sense to explore further - I have no idea how I got Visual Studio to behave this way, so little chance of reproducing the issue.  Thanks for checking though!


Clicking on comment replies redirects to the main site instead of showing replies.

Describe the bug
When clicking on the replies of a comment, the user is redirected to the main site instead of expanding the replies or navigating to the specific comment thread.
To Reproduce
Steps to reproduce the behavior:
1)Navigate to a post with comments on the 100xdevs CMS.
2)Click on the "Replies" link or button for any comment.
3)Observe that instead of expanding the replies or navigating to the comment thread, you are redirected to the main site.
Expected behavior
Clicking on the "Replies" link or button for a comment should either expand the replies below the comment or navigate to the specific comment thread without redirecting to the main site.
Screenshots or GIFs

Info (please complete the following information):

Browser [e.g. chrome, safari,brave]
Version [e.g. 22]

Additional context
This issue occurs consistently regardless of the post or comment being interacted with.

Fixed in PR #602

okay


Fix raster buffer indexing

[x] I agree to follow the project's code of conduct.
[ ] I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

Changed to the correct indexing when converting from a row-major 2D array to vector index.
Previous test only really tested if std::ops::Index works, and not indexing the buffer; in the example the index of b[(3,5)] = 3 * 5 + 5 would be the same as b[(4,0)] = 4 * 5 + 0 . New test ensures all buffer indices covered.

I think Buffer is supposed to be row-major, so the computation is correct. How did you come across this?

That's because band sizes are (width, height), but that doesn't mean the data is structured the same way. Compare to GDAL's RasterIO:

The buffer into which the data should be read, or from which it should be written. This buffer must contain at least nBufXSize * nBufYSize words of type eBufType. It is organized in left to right, top to bottom pixel order. Spacing is controlled by the nPixelSpace, and nLineSpace parameters.

I don't understand why coord.0 * self.shape.0 + coord.1 is used as it is not the formula for dealing with row-major (or column-major) index representation, and the test ,index, would fail if some of the numbers were changed.

Because coord is (y, x) and shape is (width, height), as documented on fn shape().

Currently it returns data at (y, x), but has bounds for (x, y),

Oh, I didn't spot the bounds check. Yeah, I think the formula is correct, but the bounds check is wrong.

CC @metasim my intention was to index by (row, col), but I don't remember if that matches ndarray or other libraries.

I think ndarray  can use both (https://docs.rs/ndarray/latest/ndarray/enum.Order.html) and there are good arguments for both options.  I prefer [y,x] which is what numpy (python) use. And if i remember correct this is also the default in ndarray.

@CyclotomicDev can you update this PR to switch around the bounds check?

I've dropped the dependency version change and added a warning to the docs:

r? @jdroenner

CC @metasim my intention was to index by (row, col), but I don't remember if that matches ndarray or other libraries.

There's a lot of historical legacy here, but my memory is fuzzy on why it is the way it is.  Every time I would iterate over cells, I'd double check the docs, for both correctness and cache coherence (an iterator can take care of that part).
In my own personal libraries I never return tuples, but structs with labeled fields because it's too easy for me to mess up. But gdal doesn't do that (e.g. window coordinates to read), so I don't think there's any way around having to manually check the docs.
As you note, ndarray supports either (as does numpy) due to Fortran vs C traditions, so that part of the API could abstract this out.

I was asking more about what buf[(y, x)] should do, but good point, I've added a pair of getters to make things easier for the users.

To have been thinking about the Buffer. To be honest i think we should deprecate all methods with tuple params as well as the shape method. We should simply add new methods with row and column as parameters. Who ever needs ndarray style access can transform the Buffer into an Ndarray...

@jdroenner we should probably discuss the deprecation of Index separately, but maybe let's publish a patch version now, to unblock the other PRs.

good idea. some lint broke the CI. I guess we should fix that first.

I have an open PR for that.

merged! thx!

Gentle nudge about publishing a patch, @jdroenner.

i will do it later today or tomorrow


Bluetooth: host: ensure ownership of conn on TX path

This is a bug-fix:
When upper layers want to send something, they add a conn object to a list. They do so by adding a node on struct conn rather than the object itself.
We forgot to increase the reference count of the connection object when doing so. This means that there can be a scenario where the conn object is destroyed and re-used while still being on the TX list/queue.
This is bad for obvious reasons.
This patch fixes that by:

increasing the refcount when putting on the TX list
decreasing the refcount only when popping off the TX list
passing a new reference from get_conn_ready into bt_conn_tx_processor

Fixes #75152

The issue being fixed refer to a test case that shows this issue. Wouldn't it make sense to also push the test here to verify?

Just saw that you just pushed the test here: https://github.com/zephyrproject-rtos/zephyr/pull/75154

Wouldn't it make sense to also push the test here to verify

The test depends on a race condition. The version that triggers the assert is very in-development version and not pretty.
The cleaned-up version in the other PR doesn't trigger the assert, as it has a different scheduling pattern.
We have merged bugfixes in the past referencing a failing bsim test that was not merged (or in development).

@jori-nordic Please note that priority labels are not used for PRs
https://docs.zephyrproject.org/latest/project/dev_env_and_tools.html#labels-applicable-to-issues-only

Good to know, thanks!

@jori-nordic Please note that priority labels are not used for PRs https://docs.zephyrproject.org/latest/project/dev_env_and_tools.html#labels-applicable-to-issues-only

@aescolar that might need an update: The Zephyr bot automatically adds the Release Notes label to PRs :P

@aescolar that might need an update: The Zephyr bot automatically adds the Release Notes label to PRs :P

Yep, the release notes one is not correct in that list :)
The comment on the priority label is still relevant though. A PR is note merged faster or slower just because it has a priority label.

Yeah my intuition was that it had to match the issue prio, that's why I added it.


Unhandled python exception in read callback: XMLSyntaxError

I get the following Error when my FritzBox is reset by Unitimedia:
Unhandled python exception in read callback: XMLSyntaxError: Opening and ending tag mismatch: HR line 1 and BODY, line 1, column 180 (line 1)

On a Fritzbox 6490 Cable with FW 6.52. Seems to only be fixable by restarting collectd. Any ideas what might cause this and how to fix it?

I can catch that exception, but according to collectd's documentation it should recover from this situation by skipping that plugin "for an increasing amount of time". Is this really not the case for you? Do you have to restart your Fritzbox as well so that it starts sending proper responses again?

collectd does exactly what you described but it doesn't seem to restart the plugin without restarting collectd entirely:
Mar 23 04:31:15 fileserver collectd[24201]: Unhandled python exception in read callback: XMLSyntaxError: Opening and ending tag mismatch: HR line 1 and BODY, line 1, column 180 (line 1)
Mar 23 04:31:15 fileserver collectd[24201]: read-function of plugin `python.fritzcollectd' failed. Will suspend it for 20.000 seconds.
Mar 23 04:31:15 fileserver collectd[24201]: plugin_read_thread: read-function of the `python.fritzcollectd' plugin took 33.514 seconds, which is above its read interval (20.000 seconds). You might want to adjust the `Interval' or `ReadThreads' settings.
Mar 23 04:31:49 fileserver collectd[24201]: Unhandled python exception in read callback: XMLSyntaxError: Opening and ending tag mismatch: HR line 1 and BODY, line 1, column 180 (line 1)
Mar 23 04:31:49 fileserver collectd[24201]: read-function of plugin `python.fritzcollectd' failed. Will suspend it for 40.000 seconds.
Mar 23 04:32:29 fileserver collectd[24201]: Unhandled python exception in read callback: XMLSyntaxError: Opening and ending tag mismatch: HR line 1 and BODY, line 1, column 180 (line 1)
Mar 23 04:32:29 fileserver collectd[24201]: read-function of plugin `python.fritzcollectd' failed. Will suspend it for 80.000 seconds.

Only after restarting collectd does the Grafana Dashboard work again. It might be an issue with influxd / Grafana though?

Ok that means collectd is indeed calling read again, but the connection seems to be non functional.
Can you try the following change please: https://github.com/fetzerch/fritzcollectd/commit/f81a489640ad356d83ff377ddd4fcb45754b748b, that reconnects if such an error occurs. I'm not sure if the box answers fast enough after a reset, but let's try:
sudo pip install --upgrade https://github.com/fetzerch/fritzcollectd/archive/xmlsyntaxerror.zip

I've released the fix (https://github.com/fetzerch/fritzcollectd/commit/a4379c5f085dfb8ded4b2dde8ee971845cc1cd38) now as part of fritzcollectd-0.6.0.


is there way I can run it synchronously?

a bit hard to think about when I run this inside a forEach loop for the file...

Yes, follow the example below:
((async () => {
    const image2base64 = require('image-to-base64');
    const paths = ["path/img1.jpg", "path/img2.jpg", "path/img3.jpg"];

    try{
        for (let i=0; i<paths.length; i++) {
            await image2base64(paths[i])
        }
    } catch(error) {
        console.log("Some error ==> ", error)
    }

})();

Do you understand @adamchenwei ?

@renanbastos93 the problem I was trying to solve is I am saving these generated base64 string into another collection of data, so I want to do something ONLY after all the base64 conversion are ended. This likely won't help with it, as it still did not really give a clear indicator of "end" of loop... or maybe I am missing something, maybe specific line here indicate that?
For now though, I am using the good old length count to determine that...

@adamchenwei
Okay, you can to use Promise.all, because of this code return ever a promise.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all
const image2base64 = require('image-to-base64');
const paths = ["path/img1.jpg", "path/img2.jpg", "path/img3.jpg"];
const waitResolve = [];
for (let i=0; i<paths.length; i++) {
    waitResolve.push(image2base64(paths[i]));
}
Promise.all(waitResolve).then(console.log).catch(console.log);

@adamchenwei Did you resolved your problem?

@renanbastos93 thanks for the suggestion! it's really clever! Would use this to optimize the logic I currently have. Thank you so much!


Bug: Crashing

Please make sure your bug isn't already listed on HASS.Agent's issue tracker:
https://lab02research.youtrack.cloud/
There's a list of open bugs & features on the right. On the left you can see what's being worked on, what's planned and what's ready for the next release.
If you're not sure, don't worry, just go ahead and we'll discuss :)

Describe the bug
HASS.Agent installed fine. It connected to the HASS and was able to set up sensors but since doing so, the app crashes after about 10 seconds of opening it.
To Reproduce
Steps to reproduce the behavior:

Open app
Wait upto 15 seconds
App closes

Misc info (please complete the following information):

Windows build (ideally screenshot/info of winver.exe output):

Windows' UI language:
HASS.Agent version: 2022.14.0

Please check what's applicable (multiple answers possible):

[x] Installed via installer
[ ] Installed manually
[x] Problem occurs in HASS.Agent
[ ] Problem occurs in Satellite Service

Additional context
Logs
If possible, please provide the logs of HASS.Agent and - if applicable - the Satellite Service. You can find HASS.Agent's logs by going to the main window, then Configuration -> Logging -> open logs folder. The Satellite Service's logs are in the same window, but the Satellite Service tab -> open service logs folder. If you want, you can mail them to<EMAIL_ADDRESS>Unable to retrieve HASS.Agent logs
2022-12-14_HASS.Agent.Satellite.Service_20221214.log

Same to me after trying to add locale sensor CPUtemperature

After editing ../HASS.Agent/config/sensors.json - just deleted the latest added sensor (CPU-Temperature) - HASS.agent seems to work again. I hope this helps.


Cache then network support

It would be good to add support for the cache then network approach. At the moment this is completely unsupported. The repository uses the offline-plugin for webpack. In an ideal world we would carry on using this as it is built for this specific problem.
The approach is open for discussion.

@jasan-s I chose offline-plugin as it worked well with webpack out of the box, the main aim of this app was to provide a quick and simple way to create a PWA with React. However, if we feel that sw-precache is a better option moving forward, I am more than happy to consider it. Let me know what your thoughts are.

I personally have not used this offline-plugin, thus i was curious.  But it does seem like its quite easy to setup. I use sw-precache-webpack-plugin. Does the plugin provide runtime caching of url patterns fetched over network? or just the external local files not available during build.

Since I have vendor common chunk(react, react dom), I use MD5 hash to limit SW Update to just the app chunks.

Does the plugin provide runtime caching of url patterns fetched over network?

I am not sure sure to be honest, something we need to look into, feels like something it would support though.


Read contents of DynamoDB table

Is your feature request related to a problem? Please describe.
I would like to load the contents of a DynamoDB table into a data frame.
Describe the solution you'd like
df = wr.dynamo.read_partiql_query("SELECT * FROM my_dynamo_table")

Thanks for the suggestion @brianfoody. I agree that it would be a good addition. However it's not an immediate item on our roadmap. We would be happy to collaborate on a PR if you are interested to contribute.

Hello @jaidisido , I would be interested working on that.

Hi @snikolakis, please do, PRs and contributions are always welcome!

Is any one working on this? If not, let me know if I can submit a pull request for this change.
Also, just wondering what the expectation is around the below:

Ability to return all rows.items from dynamodb table v/s having the ability to filter based on partition key. The difference is between using scan v/s query. I think the former should meet this requirement.
setting datatypes for the dataframe columns; Given that dynamodb datatypes are set at item level, determining column level datatypes doesn't make sense. All columns of the dataframe will be object type.

thoughts?

Hello @allandsouza , I am currently working on this, but haven't created a PR yet.
My take on this (but haven't discussed with moderators of the community) is:

My guess is that there will be mostly queries like select * from dynamo_table and thus a scan may be more appropriate for the task, although query in generally is more cost-effective, we will still need to scan the whole table.
Maybe, the aws-data-wrangler should be able to try to infer the data types based on values of the DataFrame. I'm currently thinking trying to set the column value in the type of the first value met in order to be easier for the developer using the tool to do so without necessary setting the data types beforehand.

Addressed by PR #1390 many thanks @snikolakis

DISCLAIMER: I'm re-opening this issue to avoid duplicates as suggested by the contributing guidelines, but no problem if you want me to open a brand new one.
I recently found myself putting some effort in trying to handle reading items from a DynamoDB table and returning a Pandas Dataframe. Basically, I wanted to abstract some complexity away from available Boto3 read actions, and handle once for all the headache of thinking about keys, query, scan, etc.: since I'm pretty happy with the results, I decided to share it here to let you evaluate if the proposed solution can be a good candidate for wr.dynamodb.read_items.
I am aware of the recent addition of wr.dynamodb.read_partiql_query in aws/aws-sdk-pandas#1390, as well as its currently issue as reported in aws/aws-sdk-pandas#1571, but the below proposed solution does not involve PartiQL: my goal was to avoid as much as possible the risks that come with its usage towards a DynamoDB table, regarding possible translation of a given query to a full scan op (see for example the disclaimer in the docs).
Features
I tested all the below-checked features with relatively simple dummy tables, so it probably requires more focused test sessions before possible addition in awswrangler stable codebase.

[x] automatically switch between available DynamoDB read actions, choosing the optimal one as defined in this hierarchy get_item > batch_get_item > query > scan (inspiration from here and here)
[x] handle response pagination
[x] handle possible UnprocessedKeys in batch_get_item response
[x] support condition expressions both as string and Key/Attr from boto3.dynamodb.conditions
[x] automatically handles botocore client error involving DynamoDB reserved keywords via ExpressionAttributeNames substitutions
[x] prevent unwanted full table scan thanks to the allow_full_scan kwarg which defaults to False
[x] allow attributes selection via columns kwarg, which corresponds to Boto3 ProjectionExpression
[x] support both strongly and eventually consistent reads with the consistent kwarg, which defaults to False
[x] support limiting the number of returning items with the max_items_evaluated kwarg (a kind of an head() method for the table!)
[ ] returning consumed read capacity units
[ ] anything related to local or global secondary table index

The last two features are unchecked because I considered them out of scope, at least for the moment.
Examples
Reading 5 random items from a table
import awswrangler as wr
df = wr.dynamodb.read_items(table_name='my-table', max_items_evaluated=5)

Strongly-consistent reading of a given partition value from a table
import awswrangler as wr
df = wr.dynamodb.read_items(table_name='my-table', partition_values=['my-value'], consistent=True)

Reading items pairwise-identified by partition and sort values, from a table with a composite primary key
import awswrangler as wr
df = wr.dynamodb.read_items(
    table_name='my-table',
    partition_values=['pv_1', 'pv_2'],
    sort_values=['sv_1', 'sv_2']
)

Reading items while retaining only specified attributes
import awswrangler as wr
df = wr.dynamodb.read_items(table_name='my-table', partition_values=['my-value'], columns=['col_1', 'col_2'])

Reading all items from a table explicitly allowing full scan
import awswrangler as wr
df = wr.dynamodb.read_items(table_name='my-table', allow_full_scan=True)

Reading items matching a KeyConditionExpression expressed with boto3.dynamodb.conditions.Key
import awswrangler as wr
from boto3.dynamodb.conditions import Key
df = wr.dynamodb.read_items(
    table_name='my-table',
    key_condition_expression=Key('key_1').eq('val_1') and Key('key_2').eq('val_2')
)

Same as above, but with KeyConditionExpression as string
import awswrangler as wr
df = wr.dynamodb.read_items(
    table_name='my-table',
    key_condition_expression='key_1 = :v1 and key_2 = :v2',
    expression_attribute_values={':v1': 'val_1', ':v2': 'val_2'},
)

Reading items matching a FilterExpression expressed with boto3.dynamodb.conditions.Attr
import awswrangler as wr
from boto3.dynamodb.conditions import Attr
df = wr.dynamodb.read_items(
    table_name='my-table',
    filter_expression=Attr('my_attr').eq('this-value')
)

Same as above, but with FilterExpression as string
import awswrangler as wr
df = wr.dynamodb.read_items(
    table_name='my-table',
    filter_expression='my_attr = :v',
    expression_attribute_values={':v': 'this-value'}
)

Reading items involving an attribute which collides with DynamoDB reserved keywords
import awswrangler as wr
df = wr.dynamodb.read_items(
    table_name='my-table',
    filter_expression='#operator = :v',
    expression_attribute_names={'#operator': 'operator'},
    expression_attribute_values={':v': 'this-value'}
)

Source code

Show me the code
from functools import wraps
from typing import Any, Callable, Mapping, Optional, Sequence, Union

import awswrangler as wr
import boto3
import pandas as pd
from awswrangler import _utils, exceptions
from boto3.dynamodb.conditions import ConditionBase
from botocore.exceptions import ClientError

HANDLED_KWARGS = ("ProjectionExpression", "KeyConditionExpression", "FilterExpression")

def get_invalid_kwarg(msg: str) -> Optional[str]:
    """Detect which kwarg contains reserved keywords based on given error message.

    Parameters
    ----------
    msg : str
        Botocore client error message.

    Returns
    -------
    str, optional
        Detected invalid kwarg if any, None otherwise.
    """
    for kwarg in HANDLED_KWARGS:
        if msg.startswith(
            f"Invalid {kwarg}: Attribute name is a reserved keyword; reserved keyword: "
        ):
            return kwarg

def handle_boto3_client_error(func: Callable) -> Any:
    """Handle automatic replacement of DynamoDB reserved keywords.

    For reserved keywords reference: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html.
    """

    @wraps(func)
    def wrapper(*args, **kwargs):
        try:
            return func(*args, **kwargs)
        except ClientError as e:
            error_code, error_message = (
                e.response["Error"]["Code"],
                e.response["Error"]["Message"],
            )
            # Check catched error to verify its message
            if (error_code == "ValidationException") and (
                kwarg := get_invalid_kwarg(error_message)
            ):
                reserved_keyword = error_message.split("keyword: ")[-1]
                sanitized_keyword = f"#{reserved_keyword}"
                kwargs[kwarg] = kwargs[kwarg].replace(
                    reserved_keyword, sanitized_keyword
                )
                kwargs["ExpressionAttributeNames"] = {
                    **kwargs.get("ExpressionAttributeNames", {}),
                    sanitized_keyword: reserved_keyword,
                }
                # SEE: recursive approach guarantees that each reserved keyword will be properly replaced,
                # even if it will require as many calls as the reserved keywords involved (not so efficient...)
                return wrapper(*args, **kwargs)
            # Otherwise raise it
            else:
                raise e

    return wrapper

@handle_boto3_client_error
def _read_items(
    table_name: str, boto3_session: Optional[boto3.Session] = None, **kwargs
) -> Sequence:
    """Read items from given DynamoDB table.

    This function set the optimal reading strategy based on the received kwargs.

    Parameters
    ----------
    table_name : str
        DynamoDB table name.
    boto3_session : boto3.Session, optional
        Boto3 Session. Defaults to None (the default boto3 Session will be used).

    Returns
    -------
    Sequence
        Retrieved items.
    """
    # Get DynamoDB resource and Table instance
    resource = _utils.resource(service_name="dynamodb", session=boto3_session)
    table = wr.dynamodb.get_table(table_name=table_name, boto3_session=boto3_session)

    # Extract 'Keys' from provided kwargs: if needed, will be reinserted later on
    keys = kwargs.pop("Keys", None)

    # Conditionally define optimal reading strategy
    use_get_item = (keys is not None) and (len(keys) == 1)
    use_batch_get_item = (keys is not None) and (len(keys) > 1)
    use_query = (keys is None) and ("KeyConditionExpression" in kwargs)
    use_scan = (keys is None) and ("KeyConditionExpression" not in kwargs)

    # Read items
    if use_get_item:
        kwargs["Key"] = keys[0]
        items = [table.get_item(**kwargs).get("Item", {})]
    elif use_batch_get_item:
        kwargs["Keys"] = keys
        response = resource.batch_get_item(RequestItems={table_name: kwargs})
        items = response.get("Responses", {table_name: []}).get(table_name, [])
        # SEE: handle possible unprocessed keys. As suggested in Boto3 docs,
        # this approach should involve exponential backoff, but as stated
        # [here](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff)
        # this should be already managed by AWS SDK itself
        while response["UnprocessedKeys"]:
            kwargs["Keys"] = response["UnprocessedKeys"][table_name]["Keys"]
            response = resource.batch_get_item(RequestItems={table_name: kwargs})
            items.extend(
                response.get("Responses", {table_name: []}).get(table_name, [])
            )
    elif use_query or use_scan:
        _read_method = table.query if use_query else table.scan
        response = _read_method(**kwargs)
        items = response.get("Items", [])

        # Handle pagination
        while "LastEvaluatedKey" in response:
            kwargs["ExclusiveStartKey"] = response["LastEvaluatedKey"]
            response = _read_method(**kwargs)
            items.extend(response.get("Items", []))

    return items

def read_items(
    *,
    table_name: str,
    partition_values: Optional[Sequence[Any]] = None,
    sort_values: Optional[Sequence[Any]] = None,
    filter_expression: Optional[Union[ConditionBase, str]] = None,
    key_condition_expression: Optional[Union[ConditionBase, str]] = None,
    expression_attribute_names: Optional[Mapping] = None,
    expression_attribute_values: Optional[Mapping] = None,
    consistent: bool = False,
    columns: Optional[Sequence] = None,
    allow_full_scan: bool = False,
    max_items_evaluated: Optional[int] = None,
    boto3_session: Optional[boto3.Session] = None,
) -> pd.DataFrame:
    """Read items from given DynamoDB table.

    This function aims to gracefully handle (some of) the complexity of read actions
    available in Boto3 towards a DynamoDB table, abstracting it away while providing
    a single, unified entrypoint.

    Under the hood, it wraps all the four available read actions: get_item, batch_get_item,
    query and scan.

    Parameters
    ----------
    table_name : str
        DynamoDB table name.
    partition_values : Sequence[Any], optional
        Partition key values to retrieve. Defaults to None.
    sort_values : Sequence[Any], optional
        Sort key values to retrieve. Defaults to None.
    filter_expression : Union[ConditionBase, str], optional
        Filter expression as string or combinations of boto3.dynamodb.conditions.Attr conditions. Defaults to None.
    key_condition_expression : Union[ConditionBase, str], optional
        Key condition expression as string or combinations of boto3.dynamodb.conditions.Key conditions. Defaults to None.
    expression_attribute_names : Mapping, optional
        Mapping of placeholder and target attributes. Defaults to None.
    expression_attribute_values : Mapping, optional
        Mapping of placeholder and target values. Defaults to None.
    consistent : bool
        If True, ensure that the performed read operation is strongly consistent, otherwise eventually consistent. Defaults to False.
    columns : Sequence, optional
        Attributes to retain in the returned items. Defaults to None (all attributes).
    allow_full_scan : bool
        If True, allow full table scan without any filtering. Defaults to False.
    max_items_evaluated : int, optional
        Limit the number of items evaluated in case of query or scan operations. Defaults to None (all matching items).
    boto3_session : boto3.Session, optional
        Boto3 Session. Defaults to None (the default boto3 Session will be used).

    Raises
    ------
    exceptions.InvalidArgumentType
        When the specified table has also a sort key but only the partition values are specified.
    exceptions.InvalidArgumentCombination
        When both partition and sort values sequences are specified but they have different lengths, or when provided parameters are not enough informative to proceed with a read operation.

    Returns
    -------
    pd.DataFrame
        A Dataframe containing the retrieved items.

    Examples
    --------
    Reading 5 random items from a table

    >>> import awswrangler as wr
    >>> df = wr.dynamodb.read_items(table_name='my-table', max_items_evaluated=5)

    Strongly-consistent reading of a given partition value from a table

    >>> import awswrangler as wr
    >>> df = wr.dynamodb.read_items(table_name='my-table', partition_values=['my-value'], consistent=True)

    Reading items pairwise-identified by partition and sort values, from a table with a composite primary key

    >>> import awswrangler as wr
    >>> df = wr.dynamodb.read_items(
    ...     table_name='my-table',
    ...     partition_values=['pv_1', 'pv_2'],
    ...     sort_values=['sv_1', 'sv_2']
    ... )

    Reading items while retaining only specified attributes

    >>> import awswrangler as wr
    >>> df = wr.dynamodb.read_items(table_name='my-table', partition_values=['my-value'], columns=['col_1', 'col_2'])

    Reading all items from a table explicitly allowing full scan

    >>> import awswrangler as wr
    >>> df = wr.dynamodb.read_items(table_name='my-table', allow_full_scan=True)

    Reading items matching a KeyConditionExpression expressed with boto3.dynamodb.conditions.Key

    >>> import awswrangler as wr
    >>> from boto3.dynamodb.conditions import Key
    >>> df = wr.dynamodb.read_items(
    ...     table_name='my-table',
    ...     key_condition_expression=Key('key_1').eq('val_1') and Key('key_2').eq('val_2')
    ... )

    Same as above, but with KeyConditionExpression as string

    >>> import awswrangler as wr
    >>> df = wr.dynamodb.read_items(
    ...     table_name='my-table',
    ...     key_condition_expression='key_1 = :v1 and key_2 = :v2',
    ...     expression_attribute_values={':v1': 'val_1', ':v2': 'val_2'},
    ... )

    Reading items matching a FilterExpression expressed with boto3.dynamodb.conditions.Attr

    >>> import awswrangler as wr
    >>> from boto3.dynamodb.conditions import Attr
    >>> df = wr.dynamodb.read_items(
    ...     table_name='my-table',
    ...     filter_expression=Attr('my_attr').eq('this-value')
    ... )

    Same as above, but with FilterExpression as string

    >>> import awswrangler as wr
    >>> df = wr.dynamodb.read_items(
    ...     table_name='my-table',
    ...     filter_expression='my_attr = :v',
    ...     expression_attribute_values={':v': 'this-value'}
    ... )

    Reading items involving an attribute which collides with DynamoDB reserved keywords

    >>> import awswrangler as wr
    >>> df = wr.dynamodb.read_items(
    ...     table_name='my-table',
    ...     filter_expression='#operator = :v',
    ...     expression_attribute_names={'#operator': 'operator'},
    ...     expression_attribute_values={':v': 'this-value'}
    ... )

    """
    # Extract key schema
    table_key_schema = wr.dynamodb.get_table(
        table_name=table_name, boto3_session=boto3_session
    ).key_schema

    # Detect sort key, if any
    if len(table_key_schema) == 1:
        partition_key, sort_key = table_key_schema[0]["AttributeName"], None
    else:
        partition_key, sort_key = (
            next(filter(lambda x: x["KeyType"] == "HASH", table_key_schema))[
                "AttributeName"
            ],
            next(filter(lambda x: x["KeyType"] == "RANGE", table_key_schema))[
                "AttributeName"
            ],
        )

    # Handy checker
    def ensure_coherency():
        if sort_values is None:
            raise exceptions.InvalidArgumentType(
                f"Argument sort_values cannot be None: table {table_name} has {sort_key} as sort key."
            )
        elif len(sort_values) != len(partition_values):
            raise exceptions.InvalidArgumentCombination(
                "Partition and sort values must have the same length."
            )

    # Build kwargs shared by read methods
    kwargs = {"ConsistentRead": consistent}
    if partition_values is not None:
        if sort_key is None:
            keys = [{partition_key: pv} for pv in partition_values]
        else:
            ensure_coherency()
            keys = [
                {partition_key: pv, sort_key: sv}
                for pv, sv in zip(partition_values, sort_values)
            ]
        kwargs["Keys"] = keys
    if key_condition_expression is not None:
        kwargs["KeyConditionExpression"] = key_condition_expression
    if filter_expression is not None:
        kwargs["FilterExpression"] = filter_expression
    if columns is not None:
        kwargs["ProjectionExpression"] = ", ".join(columns)
    if expression_attribute_names is not None:
        kwargs["ExpressionAttributeNames"] = expression_attribute_names
    if expression_attribute_values is not None:
        kwargs["ExpressionAttributeValues"] = expression_attribute_values
    if max_items_evaluated is not None:
        kwargs["Limit"] = max_items_evaluated

    # If kwargs are sufficiently informative, proceed with actual read op
    if (
        ("Keys" in kwargs)
        or ("KeyConditionExpression" in kwargs)
        or ("FilterExpression" in kwargs)
        or allow_full_scan
        or max_items_evaluated
    ):
        items = _read_items(table_name, boto3_session, **kwargs)
    # Raise otherwise
    else:
        raise exceptions.InvalidArgumentCombination(
            f"Please provide at least one between partition_values, sort_values, filter_expression, allow_full_scan or max_items_evaluated."
        )

    # Enforce DataFrame type
    return pd.DataFrame(items)

The above snippet should be auto-consistent, but if its testing become uncomfortable I should be able to temporarly packaging it and publish to pip (I tried to stick to awswrangler best practices as much as I can).
Package versions
pandas==1.5.2
botocore==1.29.16
boto3==1.26.16
awswrangler==2.17.0

and Python 3.10.8.


AttributeRoute internal class is not accessible in asp.net core 3.0

I need to use the AttributeRoute class in some asp.net core 3.0 unit tests, but it is not possible because the latest version of nuget package microsoft.aspnetcore.mvc.core is less than 3.0. I tried to use 3.0.0-preview4-19123-01 from here, but it didn't work either. Is there any other way ?

Thanks for contacting us, @ileve.
We've changed a lot of pub-ternal types to internal per https://github.com/aspnet/Announcements/issues/326.
//cc @rynowak

@ileve, constructing the attribute route in a unit test sounds like testing the behavior of the framework. For scenarios like this, you would be much more successful authoring integration tests - https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-3.0


this._nativeModule.addListener is not a function (iOS, RN v0.27.2)

I'm encountering this issue when upgrading to v0.27.2 (iOS)
I think I have the same issue as this: https://github.com/fbsamples/f8app/issues/62

This is due to KeyboardObserver native module
rnpm link fixes the problem

this unforunately didn't fix this error for me after upgrading from v0.24.0 to v0.29.0 (iOS). I also tried removing node_module and re-running npm install to no avail :(
Anyone found a solution that works for v0.29.0?

Same on 0.29. Any updates here?

+1 for RN 0.29

I was able to resolve this by restarting the app in XCode.

+1 for RN 0.30 anybody know why this is happening

Also having this problem with RN 0.30.0-rc.0.

I have been having this problem as well.  here is what I have done to try and fix.  Please let me know if this helps you in any way.
1.) follow the steps above with rm -rf node_modules && npm install and then rnpm link
2.) make sure to follow the upgrade instructions on the 0.27 release notes post -> https://github.com/facebook/react-native/releases/tag/v0.27.0
a.) specifically replace any references to DeviceEventEmitter with Keyboard
3.) run from Xcode not command line.  This worked for me as a way to get the project up and running.  The project would run fine from Xcode but fail when run with react-native run-ios
4.) if project runs from xcode but will not run from command line you most likely have a cached version of the build that needs to be killed.
a.) Navigate to your project in finder and locate the iOS/build folder and open it
b.) Destroy the contents of this folder (you can probably get by just deleting the "Intermediates"        folders, but make sure to check inside nested folders to find all instances of "Intermediates".  This is why I just kill the whole thing
c.) run sudo react-native run-ios to rebuild the project and run it
d.) if you get a message saying "no devices booted" then run react-native run-ios after running previous command
If this didn't work for you then try running react-native upgrade before step walking through step 4.  Be careful with the upgrade command if you have any custom logic outside of RN in you xcode project as this command will reset the project to default settings.  You can evaluate each question with hitting d to see what changes are trying to be made.
Hopefully this helps someone

unfortunately,  this doesn't work for my case... rn 0.31 trying to set up PushNotifications and each time see this red screen 'this._nativeModule.addListener is not a function'
Any thoughts what can cause it?

@zo-chu : did you find any solutions, same issue here
If found, please post the solution, Thanks

I have found that
if in nativeModule do not sendEventWithName：eventA
but in ReactNative  nativeEventEmitter.addListener： eventA。
could occur that error
I think it may help who have this issue


ModuleNotFoundError when calling influxdb in ipython

Hello,
I am trying to use influxdb in ipython but when I call it, an error message says that the module is not found. Instead, if I try to call it in python, within the same environment, it works perfectly.

I have installed influxdb-python using conda-forge. If I try to install influxdb using pip install influxdb I get:

WARNING: No metadata found in c:\programdata\anaconda3\envs\avint\lib\site-packages
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'c:\programdata\anaconda3\envs\avint\lib\site-packages\pytz-2020.1.dist-info\METADATA'

some extra data:

Operating system: Windows10
I can install other packages using pip

The python versions shown in the picture seem to be different, the ipython shell shows the python version to be 3.7.6 where as your regular python environment shows it to be 3.7.7. May be they're on different environments altogether.

Yes, I don't know why within the same environment, python and ipython have different python versions. But they are working in the same environment.
I think the problem is related with ipython, but I was hoping that someone found similar problems.

The python versions shown in the picture seem to be different, the ipython shell shows the python version to be 3.7.6 where as your regular python environment shows it to be 3.7.7. May be they're on different environments altogether.

Thanks

The python versions shown in the picture seem to be different, the ipython shell shows the python version to be 3.7.6 where as your regular python environment shows it to be 3.7.7. May be they're on different environments altogether.

Thanks @sakethramanujam , after checking it more it results you are right. Altough I was activating the environment the ipython and jupyter were from the base envirnment. For this reason it was not working.
I found some related questions in the ipython repository and this was the solution in case someone finds the same problem:
https://github.com/ipython/ipython/issues/10986#issuecomment-418439436

Oh okay! good to know!
Also, thanks for sharing the solution here.


End date of Samfundet closed period should be inclusive

Investigate whether or not this is still an issue.

@hegeaal This wasn't an issue, right?

No, it appeared to work fine :-)

okt. 2019 kl. 23:34 skrev Eirik Vale Aase <notifications<EMAIL_ADDRESS>
@hegeaalhttps://github.com/hegeaal This wasn't an issue, right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/Samfundet/Samfundet/issues/460?email_source=notifications&email_token=ALQGB23U4FXHEIEIF4CSI23QNT4FNA5CNFSM4IXEA4WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAVWC5A#issuecomment-539713908, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALQGB25C4W6JKUK3EIRRHS3QNT4FNANCNFSM4IXEA4WA.

No, it appeared to work fine :-)

Great, closing!


feat: implement pull request mergeability check

feature has been added to the codebase that enables the API to check the mergeability of pull requests. ensures that a pull request is mergeable and prevent potential merge conflicts

ready to merge


Update yakyak to 1.4.1

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Hi there, not sure this worked. I see another checksum for 1.4.1. yakyak/yakyak#550


API: remove .str/.cat/.dt tab-completion from types that don't support

xref #9617
btw, if someone wants to do a followup at some point to remove the .str/.cat/.dt from the dir on types they don't apply would be gr8. (not that hard, but requires a bit of changing), prob have to make _local_dir a bit more flexible (to add and delete)

closed by #9910


Unable to turn on debug mode in webpack-dev-server

I need to see how webpack-dev-server proxy is trying to redirect calls to API. At the moment when running yarn dev after displaying Listening at http://localhost:8000 console is silent.
I'm changing in build/dev-server.js:
const devMiddleware = require('webpack-dev-middleware')(compiler, {
  publicPath: webpackConfig.output.publicPath,
  quiet: true
})

to:
const devMiddleware = require('webpack-dev-middleware')(compiler, {
    publicPath: webpackConfig.output.publicPath,
    // quiet: true,
    logLevel: 'debug',
});

that's an option I found in webpack-dev-middleware README. But webpack-dev-server seems to ignore it.

Well, the proxying isn't done by that middleware anyway:
https://github.com/vuejs-templates/pwa/blob/development/template/build/dev-server.js#L51-L57

The line you've linked refers to proxyTable - I'm not using that (I left it empty: https://github.com/vuejs-templates/pwa/blob/development/template/config/index.js#L32).
I'm using proxy option in devServer section of webpack config, which I appended here: https://github.com/vuejs-templates/pwa/blob/development/template/build/webpack.dev.conf.js#L18
So is there no native way to debug dev server? It cannot be that complicated :(

I'm using proxy option in devServer section of webpack config, which I appended here:

So you try to do use this option of webpack-dev-server ?
https://webpack.js.org/configuration/dev-server/#devserver-proxy
Well, you will ahve a hard time with that, because the (seemingly old) template version of ýour project doesn't use webpack-dev-server.
I can tell because you have a file called /build/dev-server.js , which for a long time was our custom implementation of a development server.
We only switched to webpack-dev-server a few months ago, and since then, the file /build/dev-server.js doesn't exist anymore.
In short: You try to debug webpack-dev-server but your project doesn't even use it, and setting proxy options for webpack-dev-server won't do anything as well.
Additionally, my initial answer applies: Proxying is not done by the webpack-dev-middlware (I linked you to the place where proxying takes place in my first reply). So adding a debug flag to it will not let you inspect proxy traffic.
Solution:

use the /config/index.js proxyTable option, which we provided for you for exactly this.
Set the loglevel in the proxy middleware instead of the dev-middelware (https://github.com/chimurai/http-proxy-middleware#http-proxy-middleware-options)

Alternatively, upgrade to a new version of the template, which uses webpack-dev-server (this has to be done manually by copying over your source files - vue-cli 3 will change this for the better).

Thanks for an insightful answer! I had a feeling that this file is not used.
I've moved the proxy rule from devServer to proxyTable as instructed here: https://vuejs-templates.github.io/webpack/proxy.html and now I get the logs as expected:

[HPM] Rewriting path from "/api/admin/v1/users" to "/admin/v1/users"

The proxy itself doesn't work yet, but with these logs it will be easier to figure out why.

Great! Could you then please close the issue?


Add autoFocus to BottomSheet component config

Bug, feature request, or proposal:
Feature request
What is the expected behavior?
Set autoFocus config property on the bottom sheet component (just like dialog) to configure if the first item in the bottom sheet should be focused (highlighted)
What is the current behavior?
No autoFocus on BottomSheet config
What are the steps to reproduce?

Create a bottom sheet component
Open bottom sheet with config (no property for setting if it should be auto focused)

What is the use-case or motivation for changing an existing behavior?

Keep it consistent with the dialog config as they are very similar
Prevent highlighting (focus) on list items or buttons when opening the bottom sheet

Which versions of Angular, Material, OS, TypeScript, browsers are affected?
v6.2.1
Is there anything else we should know?
If this is added potentially add it to the global config token as well

Thanks man. This was done so quickly! Your awesome.

autoFocus still not work
https://stackblitz.com/edit/angular-spp34u-tn8mmx


GUI Rendering Issue

Describe the bug
When opening the GUI/Settings GUI weird dark blueish lined slowly move over the screen vertically.
To Reproduce
Steps to reproduce the behavior:
X. Open the GUI
Expected behavior
Render the screen without moving vertical blueish lines.
Screenshots/Video

Version Info (please complete the following information):

OS: [e.g. Windows, MacOS, Linux] Windows
Mod Version: [e.g. 1.1.0] 1.4.8

Additional context
X

It seems that something related to one of the Vanilla Tweaks Resource pack options actually causes this as my friend point out while I was creating the report.

Hey, thanks for filling out this report!
I'm still curious what could be causing this problem, as this may indicate that there is something wrong with my GUI library. If you could, would you try turning off the "background" option? It's under "Misc Settings" (press the "O" key by default to open the setings GUI)

I'll by testing this with my current development branch of the mod to see if anything changes.

Hey, thanks for filling out this report! I'm still curious what could be causing this problem, as this may indicate that there is something wrong with my GUI library. If you could, would you try turning off the "background" option? It's under "Misc Settings" (press the "O" key by default to open the setings GUI)
I'll by testing this with my current development branch of the mod to see if anything changes.

I just turned it off nothing really changes. I'm currently looking what option of the vanillatweaks resourcepack affects this.

VanillaTweaks - Shadering.zip
So I found the root cause. The issue is actually generated by one of these shaders that I found in the VanillaTweaks pack I combined.


Prerendering page failing seemingly randomly

I have been randomly getting odd errors when running npm run build that cause the build to fail but also don't force it to stop building. I can run the command again, and the build will complete successfully. It is always when pulling from Agility content servers, but the exact error message can differ. Here are some of the different error logs I've seen:
https://pastebin.com/pK8Ekzpb (linked because it's large)
Again, running the build command again sometimes fixes these issues. I already modified next.config.js to have staticPageGenerationTimeout set to 600. Do I need to increase this even more? Not sure what else I can do.
e: I set the timeout to 2147483 and still encounter the odd errors

Hi John - is this issue resolved now?

I think the underlying problem still exists but I was able to workaround it by preventing dynamic content from being statically pre-compiled.


feat(cluster-agent): adding cluster-agent with node-agent registration

changes:

Added initial code for cluster-agent to support registration of node-agent.
Updated deployer tool to run cluster-agent
Added bdd for cluster-agent

Signed-off-by: Mayank<EMAIL_ADDRESS>

bors try

bors delegate
bors try

bors delegate

bors d+

bors merge


Buggy connection to Firebase server.

Hi,
I am struggling with a very weird bug:
On both iOS and Android devices, the connection to the Firebase fails. I am getting no error message, and is seems kind of random.
One way I managed to reproduce the issue: Exactly after a successful transfer, I disable and re-enable the WIFI connection. When I try the same call again, everything seams dead for 2-3 minutes. After that the data is retrieved.
I had similar issues in the editor, and they got fixed after resetting the Router.
My guess is that the issue is a Socket issue or something similar. Firebase gets stuck in an invalid connection to the server.
My questions are:

Is there a fix for this?
Is there a way to get a better debug log on a device so I can figure out what is going on?

Thanks,

@criistii is this a duplicate of #106 ?  We don't have a workaround yet, though we should have a replacement for the mobile implementation of the RT DB very soon that uses native (i.e system rather than .NET) networking, we're debugging the last few issues.

Yes, it seems to be the same issue. The lack of connectivity is pretty random. It both worked and failed on WIFI and 4G.

Ok I'll close this as a duplicate of #106 .  We don't have any solutions at the moment.


[package:csslib] var_test is looking for VM specific stack traces

The test csslib/test/var_test is looking for VM-specific stack trackes. this should probably use the stack trace package

This issue has been moved to dart-lang/csslib#3.


Fix script to pull proper EXO module

Fix script to use proper EXO module for Unified Group commandlets.  Also modify properties returned from members to be more readable.

No activity on PR so closing.


Drain logic from entrypoint into Go code

This is prep for adding multiple entrypoints; right now the Go code has a build verb that is always injected by this wrapper.
Move the default values into the Go code.
A future change will likely make things so that users are required to pass build (or perhaps build-disk) and this shell script goes away entirely.

Man, the testing farm tests are broken again...I don't understand the error.

Man, the testing farm tests are broken again...I don't understand the error.

Oh no! Let me have a look


lab: 0.15.3 -> 0.16.0

Motivation for this change
https://github.com/zaquestion/lab/releases/tag/v0.16.0
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

@GrahamcOfBorg build lab

:) https://github.com/NixOS/nixpkgs/pull/62301

closing in favor of existing #62301.

On Fri, 31 May 2019 10:45:08 -0700, Wael Nasreddine<EMAIL_ADDRESS>wrote:

Closed #62309.

Thank you, my apologies for the dup.

--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/NixOS/nixpkgs/pull/62309#event-2381695382Non-text part: text/html


Cosmetic request: colors change of icons

Hi All,
I don't know if this is correct. I think the lowest price will be in green, the highest price in red.
Here its the other way around:

Or does this mean. Red to see the alert or what ever: He this one is the cheapest !!! haha

It's based on distance, green is the  closest,red is the furthest

It's based on distance, green is the closest,red is the furthest

Make sense :)

Hey,
Based on my postalcode. This is not correct. The red one is closer then the green one...

distance is based on distance to the provided postalcode/city, so this might not always be to a specific coordinate.
The sensor has attributes indicating the distance

I used postalcode/city: 1183 ZZ , Amstelveen
the postalcode is from a gas station itself haha, to check if I got the gas station in the list...


Fixes for amp-sidebar #140:

Hidden when experiment is not enable.
Close button div was too big causing it to close anywhere.

@sebastianbenz PTAL

small nit - otherwise LGTM


Small german e2s additions + adding missing element for oopsy

Small german additions for e2s + adding missing triggers element for innocence-ex.js (to avoid error)

Thanks for double checking that it's not needed.  I was pretty sure, but the verification is appreciated.


Disaggregate B'ham by age

The number of those serviced and not serviced at every age bracket needs to be calculated.

This is done with #76 https://github.com/ONSdigital/SDG_11.2.1/commit/9bb3fb3e2244abccd417e7b06586e7a4900142bb


Opening new sandbox of the same site does not forget previous data

When I open a website like twitter.com and save it as a webapp, the app won't create a separate sandbox if i try to make another webapp with a different name.

It will, if you open twitter as a new site and tick "open in a new sandbox", then save it.

Apologies for the misinformation. I was trying it on mail.tutanota.com and assumed it was the case for other sites as well.


Enhancement/gold mine algorithm

PR Details
-What issue does this close
Doesn't close a issue but is a solution to the Riipen coding gold mine challenge
-What kind of change does this PR introduce?(Bug, fix, feature, doc updates, ...)

implements a algorithm to calculate the best path for gold collection
algorithm is a dynamic programming approach
see src README for more info but idea is from the back of the array and collect the max to make each next position not just its maximum but the best maximums of those behind it. Essentially retracing steps. Path created is then used for scoring

-What is current behavior?
-placeholder move in place for challenge template
-What is the new behavior?
-scoring is now improved
-test coverage exists for algorithm
-Other information:

TO TEST: npm run test
Scores
Mine 'jupiter' score: 6960
Mine 'luna' score: 71
Mine 'mars' score: 707
Final score: 7738

Finished my work week, was a bit busy I had to update our COIVD protocols last minute and finally had a chance to tackle this challenge today. Was a lot of fun! Spent around 4 hours developing, implementing testing, and thinking about the problem. Please let me know if you have any other questions about my implementaion.

Thanks @KeiferE ! Our HR team will be in touch.

Thanks @KeiferE ! Our HR team will be in touch.


remove cuda directory

moved to dedicated repo

Where did them go?

@glyh it is now on https://github.com/HigherOrderCO/hvm-gpu

@glyh Taelin just posted this on twitter, answering your question: https://twitter.com/VictorTaelin/status/1772387868188590266


New theme. TNG with a few CSS additions

lcars.zip
Centralised Header text
Reduced radial curve of header
Added TNG theme
Added a few classes:
middle2, middle3 and middle2-right and middle3-right for more colour variation

lcars.zip

I can't open this file. Can you try attaching it unzipped?

lcars.zip

I can't open this file. Can you try attaching it unzipped?

It is a rar file, rename and extract with rar.

does this have impact ? can we merge it ?


Moto.dynamodb2 doesn't fail when using reserved keywords in ConditionExpression

How to reproduce the issue?
Call .update_item method with a reserved keyword in a condition expression
resource.update_item(
    Key={ "identity": id },
    UpdateExpression="set #state = :state",
    ExpressionAttributeNames={ "#state": "state" },
    ExpressionAttributeValues={ ":state": "VERIFIED" },
    ConditionExpression="attribute_exists(identity)",
)

In this case I'm using identity, which is a reserved word in dynamo, directly in the expression.
This issue is happening consistently
Expected
update_item() raises AttributeIsReservedKeyword since identity is used directly in the ConditionExpression, forcing me to use it as an attribute name like
resource.update_item(
    Key={ "identity": id },
    UpdateExpression="set #state = :state",
    ExpressionAttributeNames={ "#state": "state", "#identity": "identity" },
    ExpressionAttributeValues={ ":state": "VERIFIED" },
    ConditionExpression="attribute_exists(#identity)",
)

Actual
The item is updated correctly and it doesn't raise the exception
Version used
Moto 1.3.16

Thanks for raising this @jpverdejo-FF - will mark it as an enhancement

Thanks for raising this @jpverdejo-FF - will mark it as an enhancement

Thanks @bblommers and @Guriido!


support thin icons in the upcoming font awesome 6 release

Fixes error as described in issue https://github.com/GTANAdam/vue-fontawesome-autogen/issues/3

Thank you for your contribution!


ConcurrentModificationException

Hi! I've seen some crash reports in Crashlytics of
Caused by java.util.ConcurrentModificationException
       at java.util.ArrayList$Itr.next + 860(ArrayList.java:860)
       at jonathanfinerty.once.PersistedMap.listToString + 105(PersistedMap.java:105)
       at jonathanfinerty.once.PersistedMap.put + 79(PersistedMap.java:79)
       at jonathanfinerty.once.Once.markDone + 268(Once.java:268)
...

and
Caused by java.util.ConcurrentModificationException
       at java.util.ArrayList$ArrayListIterator.next + 573(ArrayList.java:573)
       at jonathanfinerty.once.PersistedMap.listToString + 105(PersistedMap.java:105)
       at jonathanfinerty.once.PersistedMap.put + 79(PersistedMap.java:79)
       at jonathanfinerty.once.Once.markDone + 268(Once.java:268)
...

Not sure if there is any limitation regarding thread safety of Once that I'm not aware.
Thank you for the help!

Hmm, looks like there is. I haven't looked at the library for a little while, but will have a go at reproducing when I get some time. That being said if you manage to reproduce the issue in a unit test, I'd welcome PRs/suggestions on fixes.

Hi.
Have you had the chance to go over this issue?
We have the same issue. Same stack trace as presented above.
Any insight on what is happening would be great, as we are experiencing a lot of crashes.
Thanks!

Hi JVilelaSmith, I'm sorry but I haven't looked at this yet. The exception is right at face value, some of the operations are performed on non-threadsafe data structures - so there is some concurrent use of the Once and it's causing an issue.
I'm currently on holiday so it will be a week before I can look into it myself.

Still got a ConcurrentModificationException in beenDone with version 1.3.0
Caused by java.util.ConcurrentModificationException
java.util.ArrayList$Itr.next (ArrayList.java:860)
jonathanfinerty.once.Once.beenDone (Once.java:254)
jonathanfinerty.once.Once.beenDone (Once.java:219)
jonathanfinerty.once.Once.beenDone (Once.java:204)
...


App Throws Error On Fedora 31 x64

🤷🏽♂ Current Behaviour
Application fails to run on Fedora 31 x64
(desktop-dimmer:2206266): Pango-ERROR **: 03:17:55.384: Harfbuzz version too old (1.2.7)
Trace/breakpoint trap (core dumped)
🎯 Expected Behaviour
Application should run
👟 Steps to Reproduce (S2R)

At command prompt, enter desktop-dimmer

🏡 Environmental Context
4.0.4
Installation Type
RPM
Operating System
Fedora 31 x64
Pango 1.44.7-1
Harfbuzz 2.6.1-2

I have also tried build from source and get the following error:
root@lnx1 desktop-dimmer-4.0.4]# npm run build

<EMAIL_ADDRESS>build /usr/local/src/desktop-dimmer-4.0.4
node<EMAIL_ADDRESS>
internal/modules/cjs/loader.js:775
throw err;
^
Error: Cannot find module<EMAIL_ADDRESS>at Function.Module._resolveFilename (internal/modules/cjs/loader.js:772:15)
at Function.Module._load (internal/modules/cjs/loader.js:677:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:999:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>build: node<EMAIL_ADDRESS>npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR!  I upgraded all my packages to make sure everything was up-to-date, but no luck. The error still didn't go away.
@sidneys Any ideas on how to fix this?

It appears that this issue has to do with needing to build against a newer version of libpango. Here are some links discussing this issue that I found:

https://askubuntu.com/questions/1259443/pango-error-harfbuzz-version-too-old-1-4-2
https://github.com/electron/electron/issues/20348
https://unix.stackexchange.com/questions/589993/pango-error-harfbuzz-version-too-old

Unfortunately, I see no way to fix the problem without submitting a PR. So, I found a workaround via the xrandr command. You can use this to set the brightness down and a achieve a similar effect to desktop-dimmer. Here is an article which explains how to do this: https://www.how2shout.com/how-to/how-to-change-screen-brightness-in-ubuntu-using-command-terminal.html
You can also use set xrandr's arguments so that it retains Night Light-like colors, while also dimming the screen: https://askubuntu.com/questions/1003101/how-to-use-xrandr-gamma-for-gnome-night-light-like-usage
Until desktop-dimmer is fixed, I'll probably just stick to this workaround. But since it's been out of development for 3 years, I'm not sure if/when it'll be updated... oh well 🤷♂

This is why people prefer macs over ubuntu. Typical UNIX-way solution: here are a copule of utterly useless commands which could wipe your computer, we aren't going to change anything. Honestly, installing a new bit of software on ubuntu is such a pain that it might be used as intellectual torture. I know it's not your fault, but all I'm saying, is that before we overcome this idiocy, linux will remain a buggy resort for people who can't afford macs.