How to judge a component does not exist

template<class ComponentClass> inline static ComponentClass& get(Eid eid)
if the component is null, that return a static 'ComponentClass component'
but how to judge it exist?

Use the component's .empty() method to check.


[Minor] improvement(docs): Fix typos graviton and syntax problems in docs

What changes were proposed in this pull request?

Fix typo Graviton in index.md
Fix link mistakes in index.md and other sentence problems

Why are the changes needed?
To Improve the professionalism and rigor of documents
#1166
Does this PR introduce any user-facing change?
N/A.
How was this patch tested?
N/A.

@yuqi1129 can you please fix the comment addressed by @justinmclean

@yuqi1129 can you please fix the comment addressed by @justinmclean

I see.


Concessionary travel: Expiry date

Paragraph 9 says "To minimise user's effort, these expiry dates should not be less than 5 years from the time of issue."
In actual fact, the expiry date cannot be more than 5 years from the date of issue.
Paragraph 6 of The Concessionary Bus Travel (Permits)(England) Regulations 2008 states
(6) The period for which any permit is issued shall be not more than a period of five years beginning with the date on which that permit starts to have effect.

We should definitely mention this maximum expiry date, but I'd like to include a minimum to minimise user effort.
Can we do recommend a 3 year minimum perhaps?

Fixed in commit 7a280ba


Rail API requests

Pull requests closes this issue:
https://github.com/svasorcery/rzd-ru-api/pull/44
https://github.com/svasorcery/rzd-ru-api/pull/53
https://github.com/svasorcery/rzd-ru-api/pull/61


onSave config not working

Because erb-lint is slow it causes a delay when saving a file. So I want to disable running it on save, but setting "erb.erb-lint.onSave": false does not disable it. erb-lint still runs on save.

Hi @joelmoss, thanks for the report!
I think you may be talking about autocorrection on save here, right?
If that's the case, you should change the language specific config:
"[erb]": {
  "editor.defaultFormatter": "manuelpuyol.erb-linter",
  "editor.formatOnSave": false
}

Maybe the configuration names are a bit confusing... erb.erb-lint.onSave is supposed to control whether or not erblint should run in the background on save, which will add the warnings in the editor (non-blocking).
Autocorrection is controlled by editor.formatOnSave, which will delay saving until erblint runs and updates the file

ah right. thx


Implement Signature Help

Janet LSP should be able to respond to Signature Help Requests from LSP clients.
This would involve, at minimum:

Adding a :signatureHelpProvider key to the :capabilities map in src/main.janet
Adding a "textDocument/signatureHelp" case to handle-message in src/main.janet
Adding a on-signature-help top level function in src/main.janet
Implementing signature help logic (possibly in a new .janet file in the src directory)

MVP delivered with #14 .
Further improvements: identifying current parameter while typing.


pyfluent-ci-1 issue

The runner area of pyfluent-ci-1 is probably corrupted as it keeps failing with this error in every run. This issue is not seen in other runners. I've deleted _work and _diag folders within the ~/actions-runner folder, but that didn't help. I think as a next step we can completely remove the ~/actions-runner folder and do a fresh setup of the runner application - this will require org access.
@RobPasMue Can you please check this sometime if you have some idea about this? Currently, I've stopped the runner service, so that the runner is not used in github.

Let me check indeed whenever I have some time. Sorry for the inconveniences.

@RobPasMue No problem at all, thanks very much for looking into this

Issue was related to corrupted poetry cache. Closing issue.


Hover Effects on Social Media Icons

Hello!
I would like to start contributing to this website by adding  hover effects on the social media icons in the home page.
Could you assign this to me @akshitagupta15june?

i want to contribute in this issue please assign me


Console log doesn't have string support

Component
Forge
Have you ensured that all of these are up to date?

[X] Foundry
[X] Foundryup

What version of Foundry are you on?
forge 0.2.0 (dda0189 2022-04-30T00:15:17.990347+00:00)
What command(s) is the bug in?
console.log("insert me here: %s", "hi");
Operating System
macOS (amd)
Describe the bug
Output should be insert me here: hi but instead we get insert me here: %s, hi

Duplicate of #1429


Refreshing (F5) an album or photo from within the search results fails with 422

Detailed description of the problem
Since https://github.com/LycheeOrg/Lychee-front/pull/306 by @kamil4 Lychee properly supports the back button for albums and photos which are opened within the search results. This was made possible by "faking" the album ID as #search/<search term>. If one opens an album from within the search results, the whole URL becomes #search/<search term>/<actual album ID>. When one refreshes the page (e.g. press Strg+F5), one gets an 422 Unprocessable Entity error.
Steps to reproduce the issue

Open Lychee
Run a search which yields an album
Open that album from within the search results
Press Strg+F5

Background: The JS init function false tries to run the HTTP query api/getAlbum with the fake album ID #search/<search term> which is not a proper album ID and hence the backend returns a 422 response. Instead, the frontend should identify the URL as a search URL and re-run the search. Currently, the frontend is not well prepared if a user directly opens a search URL.
Output of the diagnostics (Settings => Diagnostics)
not relevant here
Browser and system
not relevant here

I can't reproduce this with albums, because for albums the URL I see is simply #<actual album ID> (as expected). Hitting a reload will result in the fake search parent ID being lost, but I don't think there's any way to fix that, since we don't embed the parent ID in the URL.
I can definitely reproduce this for photos though. I'll see what I can do about fixing that. In principle we do reload search results when coming back from an album, so there's code to do that in at least one place, but I guess not everywhere that it's needed...

Fixed.


Add publish subscribe sample

Purpose
Fixes #7

I think we will benefit from 1. One Consumer Per Thread mentioned in the https://kafka.apache.org/26/javadoc/index.html?org/apache/kafka/clients/consumer/KafkaConsumer.html

Updated.


Strobe/Flash OV2640

Hi everyone!
I would like to thank for work in launching the camera ESP32.
However, I have a question for everyone: is someone able to run the STROBE pin in OV2640 camera? I've found is that I can set COM22 but it doesn't help ...

Hi,
Has anyone been successful with flash light (STROBE) and OV2640 camera?
We can read camera registry with this function
ret = SCCB_Read(0x30, 0x2F);
or set access to camera
int ret = SCCB_Write(0x30, 0xFF, 0x01);
We can see that values in registry changes when there is no light, but camera does not turn on LED light, I mean there is no change on the PIN that should control STROBE.
Any hint would be appreciated.
Best,
Marek


Merge branch 'public' of MicrosoftDocs/windows-itpro-docs into patch-2

This is a default "best effort" attempt to update this branch to the same level as the current public branch of MicrosoftDocs/windows-itpro-docs as well as aiming to get rid of unwanted fragments of other changes in the same PR made from this branch.
Feel free to ignore this pull request if you are able to update the branch on your own, using local git / Github tools on your own computer.
Ref. MicrosoftDocs#4953

@LaurenMoynihan : Do you find it difficult to complete this merge? There is always  the option to scrap your current repository with all existing branches, PRs and stuff like that, then fork it again from MicrosoftDocs/windows-itpro-docs to start fresh. The choice is yours.


HTTPS setup broken?

Just tried deploying to staging, noticed that HTTPS setup doesn't work:
2024-01-05T16:38:30.239706Z  INFO atomic_server::appstate: Initializing AppState
2024-01-05T16:38:30.239903Z  INFO atomic_server::appstate: Opening database at "/root/.local/share/atomic-data/store"
2024-01-05T16:38:30.323941Z  INFO atomic_server::appstate: Setting default agent
2024-01-05T16:38:30.324933Z  INFO atomic_server::appstate: Default Agent is set: http://localhost:9883/agents//SAgBCbY1RSh4QJlQk9d8CHbypvL4J5xHmklgabxVIs=
2024-01-05T16:38:30.325236Z  INFO atomic_server::appstate: Starting search service
2024-01-05T16:38:30.329386Z  INFO atomic_server::appstate: Starting commit monitor
2024-01-05T16:38:30.329805Z  INFO atomic_server::https: Creating LetsEncrypt account with email<EMAIL_ADDRESS>2024-01-05T16:38:30.982786Z  INFO actix_server::builder: Starting 1 workers
2024-01-05T16:38:30.983209Z  INFO actix_server::server: Actix runtime found; starting in Actix runtime
2024-01-05T16:38:32.983419Z  INFO atomic_server::https: Testing availability of http://staging.atomicdata.dev/.well-known/acme-challenge/h9F69WGj67FfJYc16f39fKnF55j0WXvC8-TW0ncAtKQ
2024-01-05T16:38:32.986161Z  INFO atomic_server::https: Server for HTTP initialization running correctly
2024-01-05T16:38:33.592920Z  INFO atomic_server::https: order is not ready, waiting 500ms
2024-01-05T16:38:34.094915Z  INFO atomic_server::https: order is not ready, waiting 1s
2024-01-05T16:38:35.096500Z  INFO atomic_server::https: order is not ready, waiting 2s
2024-01-05T16:38:37.097279Z  INFO atomic_server::https: order is not ready, waiting 4s
2024-01-05T16:38:41.098415Z  INFO atomic_server::https: order is not ready, waiting 8s
2024-01-05T16:38:49.099691Z  INFO atomic_server::https: order is not ready, waiting 16s

Thoughts:

There's a message missing: Server temporarily running in HTTP mode. This is a warning called in the very start of cert_init_server.
The Server for HTTP initialization running correctly message means that the well known URL was working at some point
Perhaps the server stopped? Seems odd, it should log that.

The .well-known URL is not available.
But... I get this message: Server for HTTP initialization running correctly
And the acme challenge has a status of "valid" at some point:
https://acme-v02.api.letsencrypt.org/acme/chall-v3/302755283156/8VVuyg
So is the well known URL working or not?
related: https://github.com/instant-labs/instant-acme/issues/13

Various things were wrong with the example code. Works now!


[CDB-1392] Manage dashboard RBAC

Manage dashboard RBAC
For reviewers, a preview is available.
What Type of PR is This?

[ ] Issue
[x] Feature
[ ] Maintenance/Chore

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

Issue(s)

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

[x] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://658365d3e78d196952c17f86--harness-developer.netlify.app

@brian-f-harness the netlify link is broken/ not working for me? 😅

@Rohit-Kaliki The preview link in the conversation tab doesn't open for you?
https://658365d3e78d196952c17f86--harness-developer.netlify.app/docs/platform/role-based-access-control/manage-dashboards

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://658376e9caaaa77200ca900b--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://658386af4f6415829403181f--harness-developer.netlify.app


[FEATURE REQUEST] vitor - visudo/vidoas but for tor configuration files

when editing in the TUI

sudoedit is built in sudo or can be used with -e option.
doasedit:
#!/usr/bin/env sh

set -eu
error(){ printf "doasedit: %s${1}\n"; exit 1; }
original_file="${1}"
[ -z "${original_file}" ] && error "File argument missing"
[ ! -f "${original_file}" ] && touch "${original_file}"
{ [ -w "${original_file}" ] && [ "$(id -u)" -ne 0 ]; } && error "Editing files in a writeable directory is not permitted"
[ -L "${original_file}" ] && error "File is a symbolic link. Refusing to edit"
[ ! -r "${original_file}" ] && error "This user is unable to read the specified file"
[ ! -w "${original_file}" ] && error "This user is unable to write the specified file"

temp_file=$(mktemp -t doasedit.XXXXXXXX) || error "Could not create temporary file"
cp "${temp_file}" "${temp_file}".bak
trap 'rm -f ${temp_file}' EXIT

doas cp "${original_file}" "${temp_file}" || error "Unable to copy file %s${original_file}"

"${VISUAL:-"${EDITOR:-vi}"}" "${temp_file}" || ex "${temp_file}" || error "Could not use EDITOR, VISUAL, vi or ex editors"
if ! cmp -s "${original_file}" "${temp_file}"; then
  doas cp -f "${temp_file}" "${original_file}" || error "Could not copy temporary file to origin"
fi

mkstemp is not posix, but mkdtemp is
Read mkdtemp posix man

visudo and vidoas makes more sense now that the tor config is being verified than sudoedit and doasedit.

https://github.com/nyxnor/onionjuggler/issues/41

Because of this, I am going to create vitor, the visual edit for tor configuration files.
Gonna default to torrc, but can specify other torrc's in the case user has multiple configuration files included by for example `%include /etc/tor/torrc.d (but the cli won't manage multiple torrc's, only one.
see the portable vidoas, which is not POSIX (mktemp, install). I won't use it that way as I prefer to write my own scripts, but it is good to see the different implementations.
vitor is a common name, my only concern to naming a script with that, but as I didnt find it on the massive debian repo or browsing the net for virtor packages, then it is ok.

It if possible to verify tor configuration files with tor -f FILE --verify-config, this works for the torrc, but for other files such as the ones contained inside HiddenServiceDir/authorized_clients/*.auth or the ones on ClientOnionAuthDir/*.auth_private, it is possible to do a syntax check, but no tor builtin method.

tor manual

first commit of vitor cf93685d2c34d59a3a33433c8ac25244663f2893

the only case when sudo|doas is not required is if 2 criterias are met:

user is logged as root already
User option is present on the tor_conf

it is working on debian and openbsd, closing.


Fail parsing on empty $FINGERPRINTGUID and $VERSIONGUID

Hi there,
I am receiving a parsing error for the attached DXF file.
out1.zip
If I remove the lines 950-957 it successfully parses. The contents of those lines is as follows:
$FINGERPRINTGUID
  2

  9
$VERSIONGUID
  2

  9

I am wondering if it is possible to have a loading mechanism that is tolerant of these empty entries?

Looks like it is related to: https://github.com/IxMilia/Dxf/issues/83

Good call, and you're right, the fix was exactly the same as the C# version of this library.  I've pushed a commit that covers this case.


Mix by default

This may have too many performance implications, but while we're dreaming...
I use mix quite a bit to allow callers to decorate the final markup with maybe an additional class, or a stimulus data attribute. I wonder if we could use the heretofore unused positional argument(s) of the element methods to support mixing the attributes.
I find the code for using mix a bit ugly:
div(**mix({class: "default classes"}, customized_attributes))

If the performance was too big of a hit, I could also see just having a way to opt in to that behavior per element call still being cleaner looking.
Maybe something like
mixed.div(customized_attributes, class: "default classes")

This could be an opted-in via a configuration on the class.

I don’t think there’s enough motivation for this feature at this time. It could come up again like Kits did but for now I think it makes sense to close this issue.


Arch Compat Notice

Stopped working on raspi.
Need to use arm64v8/mongo for arm builds and make them specific to arm64/v8.


Contribution in hardware

Hi @strawberryhacker , I want to contribute in your open-source projects. I am a PCB designer. Please let me know how to contact you.
Thanks

Thank you for the interest, if you want, you can send a message to<EMAIL_ADDRESS>


"Alias" style typedefs are being omitted in bindgen for not having a definition, but then generating bad bindings

I'm wrapping cimgui.h and one thing it does is typedef common types for its wrapped library (imgui) so they work in the "API" layer it builds. So things like:
typedef FILE* ImFileHandle;
typedef struct StbTexteditRow StbTexteditRow;
struct ImBitVector;
struct ImRect;
struct ImDrawDataBuilder;
struct ImDrawListSharedData;
struct ImGuiColorMod;
struct ImGuiContext;
struct ImGuiContextHook;
struct ImGuiDataVarInfo;

I don't totally understand it, and I think it all works for ClangSharp, but an issue I'm having specifically with the ImFileHandle typedef is that ClangSharp is skipping the typedef and (trying) to use FILE* directly, so instead of getting a struct sig like this:
struct ImGuiContext
{
    ...
    ImFileHandle LogFile;
    ...
}

It's generating
struct ImGuiContext
{
    ...
    __sFILE* LogFile;
    ...
}

And then the __sFILE* symbol isn't actually defined anywhere, so it's erroring.
Would love to know if there is any way around this or if I'm missing something — thanks!

By default ClangSharp resolves down to the root type. This allows things like operators to work, avoids ABI issues, perf issues, etc.
There are command line switches such as --remap and --with-transparent-struct that allow users to override this and choose a better mapping for their own bindings where desirable.
It is expected that users override such typedefs where that is necessary, with ClangSharp handling only a few special cases like wchar_t, intptr_t, size_t, and other standard language defined typedefs itself.

This makes sense and I'll definitely try some of those flags, but also it seems like maybe there is a bug where if a typedef "hides" an underlying "normal" C++ type like FILE*, ClangSharp doesn't try to convert that underlying type to its blittable version but instead assumes that it is instead some other user-defined type. Also I'm not sure what the _S prefix is meant to mean in this case.
Basically I'd have assumed that if ClangSharp didn't like the typedef, it would still convert FILE* to IntPtr or some equivalent handle type.

ClangSharp only handles a subset of very well-defined and common types, not all C/C++ defined types.
There are many cases, like FILE, where the type is defined by the spec but not most other information. For example, FILE is only ever meant to be accessed as FILE* and the actual shape of the underlying structure is implementation defined.
I'm open to additional types being recognized implicitly, but they need to be well reasoned about and with well understood behavior when encountered. FILE* would have to map to void* by default, for example. While something like fpos_t can't default to anything because some platforms use int32_t, some int64_t, some even allow it to vary based on macros.
The default remappings are currently handled here: https://github.com/dotnet/ClangSharp/blob/03746e376f40a5180af84f4981fa5a3c8ac654e7/sources/ClangSharp.PInvokeGenerator/PInvokeGeneratorConfiguration.cs#L135-L138

Basically I'd have assumed that if ClangSharp didn't like the typedef, it would still convert FILE* to IntPtr or some equivalent handle type.

The ClangSharp P/Invoke Generator is intentionally "unopinionated". That is, it intentionally does not describe a correct default behavior except for where that is trivially provable as correct. This pots a bit more onus on the user to ensure the headers are parsed correctly, but ultimately reduces bugs.
IntPtr is also, notably, not a handle type. It is an integer type that is the same width as a pointer (Int16 is 16-bits, Int32 is 32-bits, Int64 is 64-bits, IntPtr is ptr-bits, etc). It has historically been used in many of the same places as opaque handles out of convenience, but that does not make it "correct" and in many cases void* is a more correct type, particularly when viewing it from the ABI level and ensuring values are passed around correctly.

All makes sense! I also had converted locally FILE* to void*, and can just add it to my own remappings for now. As you said I
I'm not sure it makes sense to move it to the bindings proper.


Double check all constants

We missed the camera angle and the pivot height, there may be more things we missed. We're also changing our drivetrain gear reduction tomorrow. Should also double check field constants like speaker height.


Errors while executing UNet-like onnx models

Bug Report for use of ONNX models with Windows-Machine-Learning Applications
(in particular an altered version of FNSCandyStyleTransfer sample)
Descriptions of current behavior can be seen below for each onnx model. In short, the purpose of my model is an image filter that gets distorted blurry images as input and should output them in "nice". 2 of 4 models aren't parsed/executed at all, 1 is executed but causes artifacts, 1 works (but doesn't fulfill the intended purpose).
I uploaded the onnx files, data and screenshots to my drive (https://drive.google.com/open?id=1nwFLhsK0YOg0xJ2olh6Y-c22Rbn66bxO)
System and Environment
errors can be reproduced with
WinMLRunner.exe (dowloaded on
Thursday, June 6, 2019, 6:05:59 PM)
ML Environment
python 				3.5
pytorch, onnx,... 	(see conda_env_packkages.txt)
Rendering Machine
Windows 10 Enterprise 1903 18362.145
VS 2017, SDK 10.0.18346.0
ONNX Models
(opset 9, might cause the trouble?)
Image filter models with an UNet-like architecture exported with pytorch (torch.onnx.export(), reloaded with onnx.load(), checked with onnx.checker.check_model(), see export.py)
All of them can be parsed by the Netron visualizer (https://lutzroeder.github.io/netron/)
My target device was the CPU not GPU
I prepared them to handle input according to the documentation (https://docs.microsoft.com/en-us/windows/ai/windows-ml/convert-model-winmltools)
UNet with Upsample/ Interpolate using scale_factors arg
(using https://pytorch.org/docs/stable/nn.html#upsample)
ONNX file: UNetScaleFactorsPytorchUpsample.onnx
Error Msg:
Loading model (path = .\G_model_120.onnx)...
Load Model: .\G_model_120.onnx [FAILED]
Type Error: Type 'tensor(int64)' of input parameter (63) of operator (Floor) in node () is invalid.
0000023468572A9C

UNet with Upsample/ Interpolate using fixed size
ONNX file: UNetScaleCustomUpsample.onnx
After I checked the model in the Netron visualizer and the pytorch code I wrote my own dimension scaling where I added a simple float cast / tried to hardcoded the number of spatial dimensions, just to be sure.. (see CustomUpsample.py)
But now I get
Loading model (path = .\polished.onnx)...
Load Model: .\polished.onnx [FAILED]
[ShapeInferenceError] Number of elements of input 'scales' must be same as rank of input 'X' and element type must be float.
000001CAD3A0810C

As the input dimension of my tensor and the scales factor array's length are both 4 and the types are both float I'm puzzled why this happens.
UNet with PixelShuffle
ONNX file: UNetPixelShuffle.onnx
Can be excuted, but causes weird artifacts (see PixelShuffle_Export239.PNG, expected outcome (executed in pytorch) see pixelshuffle_result.png)
UNet only with Strided Conv / ConvTransposed
ONNX file: UNetConvTrans.onnx
Works fine, but doesn't converge in the first place (see UNet_Export_finally.PNG). But it validates that my out- and input have the correct format and that it works in general.

hi @lorafib, the issues you are having are related to the converter process and the underlying engine, both of which live in the OnnxRuntime repo. If you are still seeing these problems, please open an issue in that repo. Thanks!


Update metallb link to their github page

The column defined in the parent template is called "GitHub" so update the link to their github page.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/cherry-pick release-0.11
/approve


Better CLI experience

[x] When starting CLI and no user is known, give an intro that says "Use signup to create a new user, or login to log in"
[x] Once confirmed, automatically create an app ID and link to a tutorial

Implemented in 86cb904c546979977d86a0f4475075bbb6cdbb5f


Wrong server name in curl request to NLB cluster

I have set up load balancing between few servers. They getting requests through external name (outersite.ru on screenshot). I'm using next swashbuckle settings:
GlobalConfiguration.Configuration
	.EnableSwagger(c =>
		{
			c.RootUrl(req => GetServerUrl());
			...
		})

private static string GetServerUrl()
{
	return HttpUtility.HtmlEncode(HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority));
}

For the first glance it's working fine. But, if i'm trying to send any request - swagger is using inner server name in curl (serv11.domen.net:443), which is wrong. If i'm trying to use swagger outside of the domain - all request do not reach their destination.

This is a dup of #352. You're RootUrl method is ultimately, via Request.Url, using the HOST header to determine your API host name. This won't work in a LB environment because it's value will be that of the inner host. Most LB's inject an additional header to indicate the original host name (e.g. "X-Forwarded-Host"). You'll need to identify which header has this data with your setup and update your GetServerUrl method.


remove dict comprehensions for Python 2.6

to get rid of the Travis failures on the other PRs

Great — thanks for getting the build fixed on this PR!
Once your code is merged I will want some time to play with the new API calls and give you feedback, which means that we want a long runway until the next release. So my plan is to document and get a new Skyfield out the door this weekend or early next week. That will then let us land this PR with plenty of time before the next release during which I can try out the new API and give you feedback — and so that you can get more experience with it as well and decide what you think the best method names are and so forth.


Sliding Transition between MainActivity and SettingsActivity

Use right to left slide animation to transition between MainActivity and SettingsActivity.

Interested in taking up this issue? Leave a comment expressing your interest.
Each issue expects a 24hr turnaround time by default. In case where a student doesn't come back with an update after 24 hours have elapsed, the issue is up for grabs by anyone.

I'd like to work on this issue.

🎉 🎊
Awesome! You may start working on this issue.


Rename and deploy to PyPI

After reorganizing the code in #1, it would be a good idea to deploy this code to PyPI to even further support reproducibility. However, there is already a package named tape, so it would be necessary to rename first...

We should be able to call the package tape-benchmark or protein-tape or something. Not sure if we should also rename the imports - it's certainly doable so it's a question of whether something like from tape import ... is better or from tape_benchmark import ... is better.

I don't think we need to rename the imports, for example UMAP doesn't. pip install umap-learn and import umap


Improve error message: "Compression is required"

Right now:
RuntimeError: Compression is required, but svgo or cwebp are not installed

it is unclear whether one of them or both are required.

I thought this was supposed to be dynamic, as in, we use them if available and not specifically disabled. Throwing an error indicates that we're making it a requirement, which I think is probably a bug.

Fixed in #1081.


Updating overview related to #1323

Coverage: 93.702%. Remained the same when pulling 9e54d9f9456850b9db9cbf98fbf445b50d773efa on reshma-g10-overview into 987c831f636f2dbb5290e996e765ed78b1dd4385 on main.


Any possibility to merge to Kodi v20 (Nexus)?

Version 19.4 works perfectly, but my cell phone uses 120hz and only the Nexus version has this function, and the Nexus version has the following error: "Internal server error"
2022-08-26 04:02:36.512 T:27322    INFO <general>: Loading skin file: DialogSelect.xml, load type: KEEP_IN_MEMORY
2022-08-26 04:02:37.679 T:27686 WARNING <general>: --- Playing "[COLOR springgreen][B]Nacional [/B][/COLOR]". plugin://plugin.video.elementum/play?uri=magnet:?xt=urn:btih:4e26bed5b6a21ba4b7c3d5c8c4f7d3596341e2da&dn=A%20Lei%202021%20WEB-DL%20720p%20NACIONAL&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce
2022-08-26 04:02:37.699 T:27686 WARNING <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2022-08-26 04:02:39.933 T:27322    INFO <general>: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
2022-08-26 04:02:48.246 T:27686   ERROR <general>: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host 'dl.opensubtitles.org'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
                                                     warnings.warn(

2022-08-26 04:02:54.287 T:27322   ERROR <general>: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.videos/?name=%5BCOLOR+springgreen%5D%5BB%5DNacional+%5B%2FB%5D%5B%2FCOLOR%5D&url=%3C%2Fstrong%3E%3C%2Fp%3E%3Cp+style%3D%22text-align%3A+center%3B%22%3E%3Cstrong%3EWEB-DL+720p+%28MK%29%3C%2Fstrong%3E+%7C+1.95+GB%3Cbr+%2F%3E%3Cstrong%3E%3Ca+href%3D%22magnet%3A%3Fxt%3Durn%3Abtih%3A4e26bed5b6a21ba4b7c3d5c8c4f7d3596341e2da]
2022-08-26 04:02:57.305 T:27322    INFO <general>: CWinSystemAndroid::DestroyWindow
2022-08-26 04:02:57.365 T:27284 WARNING <general>: CPeripheralBusAndroid: failed to update input device with ID 5 because it couldn't be found
2022-08-26 04:02:57.365 T:27284 WARNING <general>: CPeripheralBusAndroid: failed to update input device with ID 2 because it couldn't be found

Try the latest release. It seems to be working now.

Ok I'll test it, thanks for the contribution.


SDK didn't support create NodeJs Azure Function

I try to use below azure sdk to create NodeJs Azure Function which Azure client and VS code support but sdk didn't , could you please help check to add one ?
using Microsoft.Azure.Management.ResourceManager.Fluent
like : .WithNetFrameworkVersion(NetFrameworkVersion.V4_6) ?
wiki : https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.management.appservice.fluent.functionapp.definition.idefinition?view=azure-dotnet

@wild123 could you share more about what you are trying to achieve? Is this a documentation issue or something else?

Closing this out, as we don't have enough context to assist.   Please feel free to reopen if you believe that further discussion is needed.


JUnit Jupiter should include field's name if its type does not implement Startable

Relevant code piece:
https://github.com/testcontainers/testcontainers-java/blob/51333a64b596260845c230e15ef038a367833cd2/modules/junit-jupiter/src/main/java/org/testcontainers/junit/jupiter/TestcontainersExtension.java#L91-L104
/cc @wilkinsona

I didn't realise the link at the time, but I believe this is fixed in #1488 which is released in 1.11.3.


Ispn 6595

https://issues.jboss.org/browse/ISPN-6595

The PR looks awesome - +213 −1,331 - that's a huge achievement!

Fixing issues and pulling

Integrated. SHA1: 1121f62.
Thanks Martin!


Feat/use rocm rapids cmake

NOTE (Same as https://github.com/ROCm/hipBench/pull/2):
Some history modifications were required which automatically closed https://github.com/ROCm/hipBench/pull/2).
Some discussions remain on https://github.com/ROCm/hipBench/pull/2.

Changes:

Use github.com/ROCm/rapids-cmake. No credentials required anymore.
Fix install and build exports chosen for libhipcxx dependency.
Establish that all tests pass including the CMake build and install tests (given that CMAKE_PREFIX_PATH contains the ROCm CMake library path, typically /opt/rocm/lib/cmake).

@yiakwy-xpu-ml-framework-team Please let us know if this PR serves as a replacement for your PR.

LGTM thanks!

@domcharrier thank you for the efforts!


Add a memoized getComponent wrapper so that components do not get reloaded

React Boilerplate
Thank you for contributing! Please take a moment to review our contributing guidelines
to make the process easy and effective for everyone involved.
Please open an issue before embarking on any significant pull request, especially those that
add a new library or change existing tests, otherwise you risk spending a lot of time working
on something that might not end up being merged into the project.
Before opening a pull request, please ensure:

[x] You have followed our contributing guidelines
[x] double-check your branch is based on dev and targets dev
[x] Pull request has tests (we are going for 100% coverage!)
[x] Code is well-commented, linted and follows project conventions
[x] Documentation is updated (if necessary)
[x] Internal code generators and templates are updated (if necessary)
[x] Description explains the issue/use-case resolved and auto-closes related issues

Be kind to code reviewers, please try to keep pull requests as small and focused as possible :)
IMPORTANT: By submitting a patch, you agree to allow the project
owners to license your work under the terms of the MIT License.

As a side note to this PR, this resolves a lot of issues people might have with sagas being re-ran when navigating from dynamic route to dynamic route.

Coverage decreased (-0.006%) to 99.237% when pulling 893217a97ae3a8662ad3c322a45a27f7cbd95a72 on trevorharwell:feature/th/memoize-dynamic-route-components into ea1e1c451c12bd4b36057d884a1087d45a27310a on react-boilerplate:dev.

Not sure how to resolve the build failure.  It failed on node v5 in a file that I didn't change.

"As a side note to this PR, this resolves a lot of issues people might have with sagas being re-ran when navigating from dynamic route to dynamic route."
We were having this issue.  This pattern solved it for us/.  Thanks @trevorharwell

@trevorharwell Aint sure if this memoizing approach is the right way to do this. It might be worth doing in general, but not as the mentioned saga 'problem'.
There is a place for both saga scenarios - one which gets cancelled when you leave the route and one which will stay live forever for the application lifespan. Your solution kinda hides the symptom only and we probably should expose 2 different injectSagas APIs (for both use cases) and educate about them.
WDYT?

how can we fix this issue?

how can we fix this issue?

There has been a lot of discussion on this and several suggested solutions, but no consensus yet on the best way to go.
For starters, be sure that #1613 is not the problem.
Then check out #1554, #1545 and the issues it references for a thorough background on this issue.

this issue should be resolved by #1746 :) would love any feedback! thank you very much again for your contribution! please let me know if you have any questions


Methods are not new identifier locations

let x = {
  /**/
};

Type in a( and we'll auto-complete the property. That shouldn't happen.

addEventListener is a global, so it is possible that you wanted to write
let x = {
  addEventListener
}

It was added in #41539. I argued that you probably don’t ever want to do this with globals, but didn’t realize that ( was a commit character (IMO, way too many things are commit characters), so I left it up to dissenters, and none showed up:

I think it’s a bit odd for globals to show up, but I’m not sure it’s harmful, because

None of these show up if we have any actual property suggestions from a contextual type; these only appear when we previously would have shown no completions
Locals are sorted above globals

I think it should be easy to filter out symbols declared in other files.

@DanielRosenwasser I bring this up because I think your title for this issue is too strong of an assertion. That is a new identifier location, or else we have to revert #41539, which fixes an issue that you called a bug 😅. I can definitely get behind removing globals from the list here, but if you were in a file with a ton of locals, and had the intention to write a non-contextulaly-typed object literal with bespoke member names, you could hit the same frustration that typing ( gives you a bad completion.

There's 2 things:

Outside variables should (often?) be valid shorthand property completions.
Property completions should be considered potentially new identifier locations (e.g. see uses of isNewIdentifierLocation and isNewIdentifierDefinitionLocation from what I recall)

The latter should permit people to write out a new name without a commit character committing to an arbitrary global or local.

That "often" has more to do with a contextual type. If you have a contextual type, you just want to provide those completions.

It sounds like there's another bug here which is that isNewIdentifierDefinitionLocation is very poorly documented. 😅
The idea is that there's 3 states I have in mind

Always give completions.
Never give completions (isNewIdentifierLocation)
Give completions, but don't auto-complete on commit characters (isNewIdentifierDefinitionLocation() -> true)

And I'm saying we want the third one.

Got it, I thought you were talking about (2) but you were talking about (3).

If an object literal has a contextual type, are its members still new identifier definition locations? That function currently works off syntax alone.

Yeah that doesn't seem too bad I suppose.


Update dlp-sensitivity-label-as-condition.md

Fixed Typo from "One drive for business" to "OneDrive for Business"

@chrfox Please merge this PR. Thanks.

merged, thanks


fix(MD-4101): fixed background color for mini charts - Android

:tada: This PR is included in version 1.2.12 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


\xe9  appearing in result titles and/or creators

See this result: https://ccsearch.creativecommons.org/photos/d1fa32e1-be78-4f22-8775-6177c9420450
Creator is: Jos\xe9 Guadalupe Posada  which I suspect is likely supposed to be José,
Browser: Firefox 65.0.1

This bug is similar to https://github.com/creativecommons/cccatalog-frontend/issues/154 but that one was with CMA and this is The Met

This is an API issue. Moving to the API repo cc @aldenstpage.


Royal Guard AI seems buggy when he uses a shield

I use Dungeon Gear and Dungeon Mobs only.
The royal guard just puts up his shield when i go close to them and never charged a single attack.
I stood between royal guards for good 3 minutes without anyone even trying to attack me so they posses no threat at all.
Im not sure if this behavior is intended.

Intended currently, but planned to have a smarter attacking system while actively shielding

Fixed in dev, will be fixed in next release


Carla  0.91 how to move my viewpoint in the map along with my player vehicle??

Carla 0.91 has loads of useful features that can be used for research, thanks to the carla team.
But unlike in Carla 0.8x versions, my viewpoint in the map does not move with the player vehicle. We have to manually move it with arrow keys and mouse.

I want to be able to see the environment around my player vehicle and what it is doing. I understand that this is not the case in Carla 0.9x due to multi-client support and we would have to do this using something like pygame. But it would be nice if we could directly shift viewpoints over different player vehicles in Carla window as in 0.8x version.

It would  be helpful if I could get the sample pygame code for viewing the camera outputs as in your video of Carla 9.0

you easily can do that  by piloting the camera attached to the vehicle, after spawning the vehicle from python, in the unreal editor-->world outliner-->search for 'cam'-->you will see the a camera actor attached to the vehicle that you spawned-->rightclick on it and choose pilot.
I had a proplem that I had to eject the player for the pilot option to get activated
hope this helps

Thanks for the reply it helped to solve my problem.

Just use a little trick by placing a dummy actor in the scene:
camera_bp = world.get_blueprint_library().find('sensor.camera.rgb')
camera_transform = carla.Transform(carla.Location(x=10, z=10))
camera = world.spawn_actor(camera_bp, camera_transform, attach_to=vehicle)
spectator.set_transform(camera.get_transform())

That's a nice workaround :D but I would use instead a cheaper sensor, collision sensor for instance, cameras make your FPS drop significantly.

Just use a little trick by placing a dummy actor in the scene:
camera_bp = world.get_blueprint_library().find('sensor.camera.rgb')
camera_transform = carla.Transform(carla.Location(x=10, z=10))
camera = world.spawn_actor(camera_bp, camera_transform, attach_to=vehicle)
spectator.set_transform(camera.get_transform())

Just use a little trick by placing a dummy actor in the scene:
camera_bp = world.get_blueprint_library().find('sensor.camera.rgb')
camera_transform = carla.Transform(carla.Location(x=10, z=10))
camera = world.spawn_actor(camera_bp, camera_transform, attach_to=vehicle)
spectator.set_transform(camera.get_transform())

How can i chose to view this camera?

You don't. Your simulator window view will be updated.

u can write two scripts master.py and slave.py and synchronize between the two like in the attached scripts
attach_spectator_to_vehicle.zip
s

Just use a little trick by placing a dummy actor in the scene:
camera_bp = world.get_blueprint_library().find('sensor.camera.rgb') camera_transform = carla.Transform(carla.Location(x=10, z=10)) camera = world.spawn_actor(camera_bp, camera_transform, attach_to=vehicle) spectator.set_transform(camera.get_transform())

Does this work?When I use this method,the spectator still moves forward and backward as the car speeds up and down


Outdated git module

There's a .gitmodules file in the repo pointing to the path test/lib/phantom-jasmine, which doesn't exist.
It seems to be outdated, so maybe it could be removed.

This still needs a little work, as it seems that the change was not applied to v3.

There's an open PR to remove it from v3 right?

@VictorVelarde There's a open PR for it: https://github.com/CartoDB/carto.js/pull/2225

Yeah, I saw your PR @gonzaloriestra thx!


API reference shows twice in the result

Search for loadScript in the documentation, the API reference comes up twice.
Search results: loadScript | Babylon.js Documentation (babylonjs.com)

First one is: https://doc.babylonjs.com/typedoc/classes/babylon.tools
Second one is: https://doc.babylonjs.com/typedoc/classes/BABYLON.Tools

Search index cleared (problem resolved). Will close this issue when I implement a solution as part of the CI.


fix(applicant): add more logic to disable/enable save and close button

Description :sparkles:
Save and close button was disabled if any field on dataset employee or company was changed to an invalid value.
Logic is as follows:
Rather than trying to compare touched, a single field, against a errors data set:

flatten both nested object structures to single level objects where the key is of dot notation
use substring to match the touched and errored field key
... and use substring rather than equals to ignore any min, max, required, ... validation related additional data which the original errors object contains.

@EmiliaMakelaVincit  if you know TypeScript any better then feel free to format the function to a more prettier one. This is the best I can do 😓

API branch is deployed to platta: https://helsinkilisa-pr2918.api.dev.hel.ninja/healthz :rocket::rocket::rocket:

HANDLER branch is deployed to platta: https://helsinkilisa-ui-handler-pr2918.dev.hel.ninja :rocket::rocket::rocket:

APPLICANT branch is deployed to platta: https://helsinkilisa-ui-pr2918.dev.hel.ninja :rocket::rocket::rocket:

TestCafe result is success for https://helsinkilisa-ui-handler-pr2918.dev.hel.ninja :laughing::tada::tada::tada:

TestCafe result is success for https://helsinkilisa-ui-pr2918.dev.hel.ninja :laughing::tada::tada::tada:

HANDLER branch is deployed to platta: https://helsinkilisa-ui-handler-pr2918.dev.hel.ninja :rocket::rocket::rocket:

TestCafe result is success for https://helsinkilisa-ui-handler-pr2918.dev.hel.ninja :laughing::tada::tada::tada:


"update project from database" does not launch schema compare

Type: Bug
Have an SDK-style sql project open in the current folder and a SQL Server connected in OE.  When in the projects view, I can select "update project from database" and successfully open schema compare.  However when in OE, the database-level option does not open schema compare.
Errors from console:
console.ts:137 [Extension Host] rejected promise not handled within 1 second: TypeError: Cannot read properties of undefined (reading 'getProjectTargetVersion') (at console.  (/Applications/Azure Data Studio - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:196310))
Extension version: 1.19.0
Azure Data Studio version: azuredatastudio-insiders 1.45.0-insider (20f409adca5430a39c9ec57a09eb72cc27c7fc71, 2023-05-16T05:28:52.716Z)
OS version: Darwin arm64 22.5.0
Restricted Mode: No
Preview Features: Enabled
Modes:

System Info

Item
Value

CPUs
Apple M1 (8 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
4, 3, 3

Memory (System)
16.00GB (0.04GB free)

Process Argv

Screen Reader
no

VM
0%

@Benjin @SakshiS-harma can one of you please investigate if this is also happening in the RC build?

Let me take a look at it.


[Bug]: printf + AC6, missing symbols

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
When building a hello world project using AC6 + CMSIS-6.0.0 I get undefined references to internal funtions that (v)snprintf are calling. This is what seems to be missing from generated map file:
    0x0000757c   0x00000028   Code   RO         1691    i.__ARM_fpclassify  m_ws.l(fpclassify.o)
    0x000075a4   0x0000000e   Code   RO         1550    i._is_digit         c_wu.l(__printf_wp.o)

The project was generated from ARM's VSCode extensions, without much modifications:
# A solution is a collection of related projects that share same base configuration.
solution:
  created-for<EMAIL_ADDRESS>  cdefault:
  compiler: AC6

  # List the packs that define the device and/or board.
  packs:
    - pack<EMAIL_ADDRESS>    - pack<EMAIL_ADDRESS>
  # List different hardware targets that are used to deploy the solution.
  target-types:
    - type: LPC1768
      device: NXP::LPC1768

  # List of different build configurations.
  build-types:
    - type: Debug
      debug: on
      optimize: none

    - type: Release
      debug: off
      optimize: balanced

  # List related projects.
  projects:
    - project: hello/hello.cproject.yml

I don't really understand the problem, printf is supposed to be available from ARM's standardlib on which my only modification is to implement a fputc function (which I did).
Expected Behavior
No response
Steps To Reproduce
No response
Affected tools

[X] cbuild
[X] cbuild-gen
[X] cpackget
[X] csolution
[ ] packchk
[ ] svdconv

Affected operating systems

[X] Windows amd64
[ ] Windows arm64
[ ] Linux amd64
[ ] Linux arm64
[ ] MacOS amd64
[ ] MacOS arm64

Environment

Windows 11,
LPC1768
AC6
VSCode extensions

nvm, this has nothing to do with debug, but more about CMSIS-RTX5 initialization.


BZ:1277466 - No tasks shown in task list

There is a problem with the war generated from jenkins build and the dataset conditions with datasets and their json generated, that I can't reproduce in my local environment.
This code does the same that it did before but I want to check what is the behavior  in the next build with this code.

+1 to merge. Please review and merge asap. This PR is related to investigation about what's causing the critical tasklist bug (BZ 1277466 -not tasks shown in the task list).

I don't think we should push upstream just for investigation purposes. In this case, the new code is cleaner than the old one though (got rid of using exceptions as control flow).
6.3.x: b9ee18604c21730050ad4af3048b00cc996c0c2c
Thanks.


feat: improve Combobox

Yay 🎉 Thanks a lot!

This is really great. Are there plans for similar generics for the Select component?


Error when doing rendering

Hello, I encountered error when doing ns-render, any idea how to solve this?
RuntimeError: Error writing 'renders/render_output.mp4': Unrecognized option 'qp'.
Error splitting the argument list: Option not found

Fixed by updating ffmpeg


Reseting registry when testing

Hi! Thanks for a great gem!
I have a question regarding testing. Is it possible to somehow unregister objects from the registry? I have a problem with leaking test object added to the registry.
Before I had this code:
    require 'dry/container/stub'
    Fortnox::API::Registry.enable_stubs!
    Fortnox::API::Registry.stub(:test, Model::Test)

Now I get an error: cannot stub "test" - no such key in container. When I try adding the test object to the registry before stubbing, as you suggest in the documentation, the first test passes but the second fails with:
     Dry::Container::Error:
       There is already an item registered with the key "test"

Also, I found below code in your own test suite. Unfortunately, I cannot do the same in my test since my registry includes other objects that I do not want to throw away :)
        after do
          # HACK: Have to reset the configuration so that it doesn't
          # interfere with other specs
          klass.configure do |config|
            config.registry = Dry::Container::Registry.new
          end
        end

Use block with stub, rspec example:
around do |ex|
  Fortnox::API::Registry.stub(:test, Model::Test, &ex)
end

In future, use our forum and chat for asking questions (see CONTRIBUTING.md), this way you'd get the answer a lot faster.


Identify tweaks

Codecov Report

Merging #263 (b678485) into dev (79ef849) will increase coverage by 1.66%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##              dev     #263      +/-   ##
==========================================
+ Coverage   65.20%   66.86%   +1.66%
==========================================
  Files         119      119
  Lines       10419    10362      -57
==========================================
+ Hits         6794     6929     +135
+ Misses       3625     3433     -192

Impacted Files
Coverage Δ

assemblyline/common/identify.py
88.27% <ø> (+54.62%)
:arrow_up:

assemblyline/datastore/helper.py
31.26% <0.00%> (-1.13%)
:arrow_down:

assemblyline/filestore/transport/sftp.py
26.60% <0.00%> (-5.02%)
:arrow_down:

assemblyline/filestore/transport/ftp.py
18.47% <0.00%> (-3.96%)
:arrow_down:

assemblyline/datastore/__init__.py
62.60% <0.00%> (-1.47%)
:arrow_down:

assemblyline/odm/randomizer.py
94.73% <0.00%> (-1.32%)
:arrow_down:

assemblyline/datasource/common.py
70.37% <0.00%> (-1.06%)
:arrow_down:

assemblyline/filestore/transport/http.py
64.55% <0.00%> (-0.45%)
:arrow_down:

assemblyline/run/cli.py
59.94% <0.00%> (-0.30%)
:arrow_down:

... and 7 more

Continue to review full report at Codecov.

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


subs: Properly focus on Stream name box while creating a new stream.

components.toggle.lookup("stream-filter-toggle").goto("all-streams"); was responsible for changing the focus to the All streams tab in the Streams modal, so the initialize function was moved to run after the All Streams tab was focused :)
Fixes #7473.

Nice, merged, thanks @synicalsyntax!


feature: nvim-treesitter-context a good candidate for the default setup ?

I feel like most people would love nvim-treesitter-context, maybe it should be installed by default ? I find it very useful with relative line numbering because it allows you to jump to any of the parent scopes very easily.
Thanks for this great project by the way :+1:

This is just my personal opinion and experience from when I tried the plugin, but I believe that this should be left up to the user to decide and whoever likes it can add it to their spec. I didn't like it personally from the one time I tried it (granted I didn't spend much time on it and my personal bias might be a bit strong for my tastes). However, I might be inclined to try it again and maybe change my opinionin the future. But that is the reason I believe it should be left up to the user to decide.

Sure, it could be an opt-in extra. But it's still a very common plugin and providing a default for it makes sense in my opinion

Absolutely agree with this one. I installed it right way after migrating to lazyvim. We should bring in more goodies like this into lazyvim. Create a discussion around the same and let users vote for features. I feel less setup woves & feature parity with vscode (or even more features) can bring in lot of users to the dark side.


add new gradient to the library : Magic Wool by MdyTrl

Hi everybody 👋 !
I would like to add a new gradient to the library "Magic Wool" 🧶 , it was made for a personnal projet and I think it can inspire for other projects :)

Hi, I wanted to know if you've had a chance to have a look at my PR. I'm available to discuss changes if necessary. Thank you for your work on this project.


add fabric8-analytics-machine-generated-stacks in CICD pipeline

This issue tracks the whole information about what this project is going to be. https://github.com/openshiftio/openshift.io/issues/1005

Can we get some sort of a description to these PR's ?

@kbsingh KB, I have given a issue link which has the description about what it is.


[syn] Align synthesis on master with newest updates from bronze

This carries over some synthesis flow updates we introduces on Bronze for IPs like Flash.
Note that this does not synthesize cleanly yet, since the flash configuration on master does not correspond to the ASIC macro configuration, yet.

yeah no worries, i had a commit specifically for the flash_ctrl changes,
i'll port them over later.
On Wed, Aug 5, 2020 at 6:33 PM Michael Schaffner<EMAIL_ADDRESS>wrote:

@msfschaffner commented on this pull request.
In hw/ip/prim_generic/rtl/prim_generic_flash.sv
https://github.com/lowRISC/opentitan/pull/3069#discussion_r466093843:

@@ -28,7 +28,17 @@ module prim_generic_flash #(
input [DataWidth-1:0]              prog_data_i,
output logic                       ack_o,
output logic [DataWidth-1:0]       rd_data_o,

output logic                       init_busy_o

output logic                       init_busy_o,

right, forgot to do that since DC did not really care about these
unconnected ports...
I've amended this slightly and just added these ports to the flash phy,
without carrying over other changes to the flash controller in order to not
mess up the design (there are several other diffs between master and
bronze).
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/lowRISC/opentitan/pull/3069#discussion_r466093843,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH2RSQRTWMVVXCWSDRYQPTR7IB7VANCNFSM4PWATROA
.

i'm a bit confused, why is this breaking private CI? If the private CI is
not picking the foundry flash files, shouldnt it not matter where this path
even is?
Or does --cores-root fail when it can't find the path in question?
On Wed, Aug 5, 2020 at 8:03 PM Michael Schaffner<EMAIL_ADDRESS>wrote:

@msfschaffner commented on this pull request.
In hw/dv/data/fusesoc.hjson
https://github.com/lowRISC/opentitan/pull/3069#discussion_r466117496:

@@ -10,7 +10,8 @@
"--target=sim",
"--build-root={build_dir}",
"--setup {fusesoc_core}"]

fusesoc_cores_root_dirs: ["--cores-root {proj_root}"]

fusesoc_cores_root_dirs: ["--cores-root {proj_root}",

                       "--cores-root {TECH_LIB_PATH}/flash"]

@tjaychen https://github.com/tjaychen for visibility
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lowRISC/opentitan/pull/3069#discussion_r466117496,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH2RSR7FN52V2SQLNIRYA3R7IMPNANCNFSM4PWATROA
.

michael and i quickly chatted offline, and we're going to resolve this a
different way in the private repo.
stay tuned....
On Wed, Aug 5, 2020 at 8:09 PM Timothy Chen<EMAIL_ADDRESS>wrote:

i'm a bit confused, why is this breaking private CI? If the private CI is
not picking the foundry flash files, shouldnt it not matter where this path
even is?
Or does --cores-root fail when it can't find the path in question?
On Wed, Aug 5, 2020 at 8:03 PM Michael Schaffner<EMAIL_ADDRESS>wrote:

@msfschaffner commented on this pull request.
In hw/dv/data/fusesoc.hjson
https://github.com/lowRISC/opentitan/pull/3069#discussion_r466117496:

@@ -10,7 +10,8 @@
"--target=sim",
"--build-root={build_dir}",
"--setup {fusesoc_core}"]

fusesoc_cores_root_dirs: ["--cores-root {proj_root}"]

fusesoc_cores_root_dirs: ["--cores-root {proj_root}",

                       "--cores-root {TECH_LIB_PATH}/flash"]

@tjaychen https://github.com/tjaychen for visibility
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lowRISC/opentitan/pull/3069#discussion_r466117496,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH2RSR7FN52V2SQLNIRYA3R7IMPNANCNFSM4PWATROA
.

It is a bit of an entangled issue. You need the cores-root to be present if the foundry repo is present (such that all dependencies that are automatically discovered can be resolved). If the foundry repo is not present, there is no dependency issue, but the additional cores-root path might then not be defined in certain environments, basically breaking the flows at a different point (this is what happens in CI in this case).

Ok, I've moved the vendor soft-IP into the foundry repo, hence the additional cores-root is not needed anymore in the *_cfgs.hjson files.

Thanks for the reviews! Merging this in...


Add headers to fetch resources

Prefetching/fetching resources is done via fetch. Fetch by default won't send any cookies with it's requests.
I would like to be able to configure the headers for different reasons: authentication, split testing
What do you think @SheepFromHeaven @timomayer?

I agree we should leave the defaults as they are :)


Update turbo.json

adding setting so turbo uses the new user interface added in turbo 1.13.0
https://turbo.build/blog/turbo-1-13-0
decribed here
https://turbo.build/blog/turbo-2-0#new-terminal-ui

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thank you!


Highlight multiple values

Would it be possible to be able to highlight more than one value and have the delegate return an array of highlighted values?

I have done this for radar chart. Highlight all values for the same xIndex. you have do the customization yourself, as I don't think there is a plan to add this feature recently?

OK thanks, thought someone else might have already looked into it. Will take a look myself.


Debugger does not stop at breakpoint

I have a piece of  Fortran code and try to learn how to debug, however the debugger does not stop at the breakpoint but launches the program and runs to the end. Could any body please help me to figure out what's going wrong?

The code and breakpoint:

Debugger configuration:

Output in debug console:

Output in terminal:

Tools and extensions I am using:
gfortran -- (Debian 8.3.0-6) 8.3.0
vscode -- 1.54.2
Modern Fortran extension -- 2.2.2
C/C++ extension -- 1.2.2

Thanks!

You need to compile with debug symbols enabled, i.e. use the flag -g. That is a common reason why the debugger won't work.

@gnikit Many thanks! This little flag also solved another problem of mine. Thank you again and wish you good weekends!


make check fails with segfault

When running
    make check
I see
    ***** Running arena_test
    /bin/sh: line 1: 21470 Segmentation fault: 11  ./$t
in version 1.5.0 on Mac OS X 10.7.4.

In fact all tests fail with a segfault immediately.

I wont even see output from a simple printf statement from main() in
arena_test.cc.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 22 Sep 2012 at 3:46

This doesn't happen on the platforms I have available to test.  I presume this
is some kind of environment related problem that is being triggered on your
machine.  You will have to figure out the problem and let us know if there is
something that should be improved in the leveldb distribution.

Original comment by<EMAIL_ADDRESS>on 8 Oct 2012 at 9:12


Option

Hey guys,
Have you planned to implement the Option type/class ?

Hey @pawndev,
I have no plans in implementing an Option / Maybe type.
Can you provide more information / context, as well as some examples of how you see Option being used in this package?

Hey @supermacro
I had no plan initially, I was just looking at your existing implemented methods, and thinking about the ok and err methods in rust, that return an Option ( https://doc.rust-lang.org/std/result/enum.Result.html#method.ok https://doc.rust-lang.org/std/result/enum.Result.html#method.err )
It was just for my curiosity 😄

Ahh, I see what you mean. Although neverthrow draws significant inspiration from Rust's Result type, there are no plans to incorporate a method that returns an Option right now.
I will close this issue by the end of the week if you have no more comments / questions.

I have no more comments. Thanks for your reply, and thanks for neverthrow 🙂
Have a great day !

Hey @pawndev, out of curiosity myself, have you found a use for an Option type in typescript ?
I tried using a library that had one but found it to be too cumbersome. I rather use type Option<T> = T | undefined now.

Hey @paduc
Nop, didn't find some real use case for Option in typescript, I thinked about it because the Option type could have the same api as the Result type.
And, with an api like this, we could write with the same syntax, less error handling etc..
But I'm agree with you when you said found it to be too cumbersome 😄

@pawndev I have a bunch of methods that return Option types, like findUserById(id: string) => Option<User> and a helper might be useful to chain this type of methods in a Result chain.
I'm thinking of a helper that would handle the Nothing case of the Option as an Error.
const result: Result<User, UserNotFoundError> = Result.fromOption(findUserById(userId), () => new UserNotFoundError(userId);

@paduc That's a great use case in fact. Actually my methods  return directly a Result<User, UserNotFound>
But indeed, I have some other methods that return just a T or null ( my Nullable/Option type). And a fromOption could be worth.

@supermacro I have a couple ideas for helpers (for instance, to transform an array of Result into a Result, a bit like Promise.all). Do you think neverthrow could include such helpers or would they belong elsewhere ?

The idea of an Option is tempting to me, although I would define it in terms of two classes:
type Option<T> = Some<T> | None

where Some<T> and None are ES6 classes (same design pattern as with Result - my rationale being that you can then have useful methods such as:

Option<T>.unwrap() => T | null
Option<T>.map<U>((val: T) => U) => Option<U>
etc, etc

In terms of having utility methods such as converting a Result<T, E>[] into a  singleResult, I am not sure. The use case might be too narrow, and it's a few lines of code to implement on your own outside of neverthrow.

@supermacro are you still considering adding an Option to neverthrow?
Introducing Result has been a game changer for some of our teams in terms of enabling them to write JavaScript in a more pure, functional style without too much overhead. The only thing we are missing is an Option to so we can "never null" as well as "never throw" 😉 .
It looks like there might be a few libraries out there we could use, but I'd far prefer using one with a similar implementation and API to neverthrow.  If it is something you are still considering, I would be interested in contributing, too.

Hey @chestercharles,
Out of curiosity, do your teams take advantage of strictNullChecks compiler flag?
Some info:

https://www.tsmean.com/articles/learn-typescript/strict-null-checks-best-practice/
https://www.typescriptlang.org/tsconfig#strictNullChecks

With strict null checks, you can have union types that specify whether something is null:
type MaybeNumber = number | null

Not having strictNullChecks would defeat the purpose of an Option type anyways since anything can be null or undefined at that point!
What has your experience been with the above suggestion?
The only thing I see lacking from having unions like this is that you don't have the same level of expressivity compared to having a Option type that you can .map over and do things with in a chain.

Most of our projects use strict mode, and I've used union types in the way you talking about for things like this:
type User = { name: string};
const getUserById: (id: number) => User | null = /* ... */;
const user = getUserById(1);
if (user) {
  // do things
}

Having strict null checks and null-unioned types does help ensure the correctness of my program - the compiler forces me to check for the user before operating on it.
But what I really like about Option is that I can be more expressive (as you mentioned) and less imperative with control flow:
const maybeDoThings = pipe(getUserById, Option.fromNullable, Option.map(doThings))

Some libraries like fp-ts provide a fromPredicate method to do things like this:
type Order = { status: 'pending' | 'complete'}
const processOrder: (o: Order) => Order = /* ... */;
const isOrderPending: (o: Option) => boolean = /* ... */
const processPendingOrders = pipe(Option.fromPredicate(isOrderPending), Option.map(processOrder))

I suppose that Option is really just syntactic sugar for if(user) { /* do this */} but just like Result, I believe that thinking in terms of these abstractions helps a developer write a simpler program.

Hey @chestercharles sorry for the delayed response.
I've been putting some thought into this. But I'm still not sure that this is something that should necessarily be added to neverthrow.
My assumption is that there are plenty of options (haha) out there for you to chose from. For example fp-ts's implementation of Option.
Thus, your team could have a utility function intoOption like this:
export const intoOption = <T, E>(result: Result<T, E>): Option<T> =>
  result.match(
    (val) => Option.some(val),
    () => Option.none
  )

Note that the above is currently only implemented for Result but one could easily overload this to work for ResultAsync as well.

Using Options with neverthrow is, in my opinion, just a matter of using a pattern such as the above to use whichever Option implementation a user may want.
Now, if the problem is that current Option implementations aren't "good" for whatever reason. Then that's something I'm open to discussing - but realistically that would still live in its own repo / npm lib.


Microsoft.Azure.Cosmos.CosmosException

When I am trying to run a console and trying to create using,
Database database = await client.CreateDatabaseIfNotExistsAsync(databaseId);
in InitializeCosmosClientInstanceAsync, I am getting the below exception

ServiceUnavailable error occured: Response status code does not indicate success: 503 Substatus: 0 Reason: (The request failed because the client was unable to establish connections to 3 endpoints across 1 regions. Please check for client resource starvation issues and verify connectivity between client and server.

Are you using the local emulator or a real cosmos db account?
Did you verify the account name and password are correct?

I am using real cosmos db account.
Yes, I have azure portal account.

Did you verify that the Cosmos DB account name and key are correct when passing it into the CosmosClient?  The other possibility is a firewall is blocking the required ports.

Yes, I verify that the CosmosDB account name and key are correct.
the new cosmos db instance is being created below:

error output result:

"Response status code does not indicate success: 503 Substatus: 0 Reason: (The request failed because the client was unable to establish connections to 3 endpoints across 1 regions. Please check for client resource starvation issues and verify connectivity between client and server.ActivityId: eac02104-2513-4f88-b5cd-64cae83e87e5, {"responseStatisticsList":[{"RequestResponseTime":"2019-10-31T17:28:33.5877968Z","StoreResult":{"LSN":-1,"QuorumAckedLSN":-1,"GlobalCommittedLSN":-1,"NumberOfReadRegions":-1,"ItemLSN":-1,"UsingLocalLSN":false,"RequestCharge":0.0,"CurrentReplicaSetSize":-1,"CurrentWriteQuorum":-1,"IsValid":false,"IsGoneException":true,"IsNotFoundException":false,"IsInvalidPartitionException":false,"StorePhysicalAddress":"rntbd://cdb-ms-prod-brazilsouth1-fd3.documents.azure.com:11002/apps/0418e967-b1b2-444d-a6e7-4223c524208e/services/1398baeb-2ca2-42b6-847f-e4ea04f5ec3f/partitions/57448983-4eec-4dc6-9d4e-75fff932854a/replicas/132169546034711664s/","IsClientCpuOverloaded":false},"RequestResourceType":0,"RequestOperationType":2},{"RequestResponseTime":"2019-10-31T17:28:33.5884183Z","StoreResult":{"LSN":-1,"QuorumAckedLSN":-1,"GlobalCommittedLSN":-1,"NumberOfReadRegions":-1,"ItemLSN":-1,"UsingLocalLSN":false,"RequestCharge":0.0,"CurrentReplicaSetSize":-1,"CurrentWriteQuorum":-1,"IsValid":false,"IsGoneException":true,"IsNotFoundException":false,"IsInvalidPartitionException":false,"StorePhysicalAddress":"rntbd://cdb-ms-prod-brazilsouth1-fd3.documents.azure.com:11006/apps/0418e967-b1b2-444d-a6e7-4223c524208e/services/1398baeb-2ca2-42b6-847f-e4ea04f5ec3f/partitions/57448983-4eec-4dc6-9d4e-75fff932854a/replicas/132169833988797452s/","IsClientCpuOverloaded":false},"RequestResourceType":0,"RequestOperationType":2},{"RequestResponseTime":"2019-10-31T17:28:39.5281249Z","StoreResult":{"LSN":-1,"QuorumAckedLSN":-1,"GlobalCommittedLSN":-1,"NumberOfReadRegions":-1,"ItemLSN":-1,"UsingLocalLSN":false,"RequestCharge":0.0,"CurrentReplicaSetSize":-1,"CurrentWriteQuorum":-1,"IsValid":false,"IsGoneException":true,"IsNotFoundException":false,"IsInvalidPartitionException":false,"StorePhysicalAddress":"rntbd://cdb-ms-prod-brazilsouth1-fd3.documents.azure.com:11309/apps/0418e967-b1b2-444d-a6e7-4223c524208e/services/1398baeb-2ca2-42b6-847f-e4ea04f5ec3f/partitions/57448983-4eec-4dc6-9d4e-75fff932854a/replicas/132169952292095127s/","IsClientCpuOverloaded":false},"RequestResourceType":0,"RequestOperationType":2},{"RequestResponseTime":"2019-10-31T17:28:45.5754875Z","StoreResult":{"LSN":-1,"QuorumAckedLSN":-1,"GlobalCommittedLSN":-1,"NumberOfReadRegions":-1,"ItemLSN":-1,"UsingLocalLSN":false,"RequestCharge":0.0,"CurrentReplicaSetSize":-1,"CurrentWriteQuorum":-1,"IsValid":false,"IsGoneException":true,"IsNotFoundException":false,"IsInvalidPartitionException":false,"StorePhysicalAddress":"rntbd://cdb-ms-prod-brazilsouth1-fd3.documents.azure.com:11006/apps/0418e967-b1b2-444d-a6e7-4223c524208e/services/1398baeb-2ca2-42b6-847f-e4ea04f5ec3f/partitions/57448983-4eec-4dc6-9d4e-75fff932854a/replicas/132169833988797452s/","IsClientCpuOverloaded":false},"RequestResourceType":0,"RequestOperationType":2},{"RequestResponseTime":"2019-10-31T17:28:45.5756445Z","StoreResult":{"LSN":-1,"QuorumAckedLSN":-1,"GlobalCommittedLSN":-1,"NumberOfReadRegions":-1,"ItemLSN":-1,"UsingLocalLSN":false,"RequestCharge":0.0,"CurrentReplicaSetSize":-1,"CurrentWriteQuorum":-1,"IsValid":false,"IsGoneException":true,"IsNotFoundException":false,"IsInvalidPartitionException":false,"StorePhysicalAddress":"rntbd://cdb-ms-prod-brazilsouth1-fd3.documents.azure.com:11309/apps/0418e967-b1b2-444d-a6e7-4223c524208e/services/1398baeb-2ca2-42b6-847f-e4ea04f5ec3f/partitions/57448983-4eec-4dc6-9d4e-75fff932854a/replicas/132169952292095127s/","IsClientCpuOverloaded":false},"RequestResourceType":0,"RequestOperationType":2},{"RequestResponseTime":"2019-10-31T17:28:51.5623584Z","StoreResult":{"LSN":-1,"QuorumAckedLSN":-1,"GlobalCommittedLSN":-1,"NumberOfReadRegions":-1,"ItemLSN":-1,"UsingLocalLSN":false,"RequestCharge":0.0,"CurrentReplicaSetSize":-1,"CurrentWriteQuorum":-1,"IsValid":false,"IsGoneException":true,"IsNotFoundException":false,"IsInvalidPartitionException":false,"StorePhysicalAddress":"rntbd://cdb-ms-prod-brazilsouth1-fd3.documents.azure.com:11002/apps/0418e967-b1b2-444d-a6e7-4223c524208e/services/1398baeb-2ca2-42b6-847f-e4ea04f5ec3f/partitions/57448983-4eec-4dc6-9d4e-75fff932854a/replicas/132169546034711664s/","IsClientCpuOverloaded":false},"RequestResourceType":0,"RequestOperationType":2},{"RequestResponseTime":"2019-10-31T17:28:57.5379847Z","StoreResult":{"LSN":-1,"QuorumAckedLSN":-1,"GlobalCommittedLSN":-1,"NumberOfReadRegions":-1,"ItemLSN":-1,"UsingLocalLSN":true,"RequestCharge":0.0,"CurrentReplicaSetSize":-1,"CurrentWriteQuorum":-1,"IsValid":false,"IsGoneException":true,"IsNotFoundException":false,"IsInvalidPartitionException":false,"StorePhysicalAddress":"rntbd://cdb-ms-prod-brazilsouth1-fd3.documents.azure.com:11304/apps/0418e967-b1b2-444d-a6e7-4223c524208e/services/1398baeb-2ca2-42b6-847f-e4ea04f5ec3f/partitions/57448983-4eec-4dc6-9d4e-75fff932854a/replicas/132145401301671179p/","IsClientCpuOverloaded":false},"RequestResourceType":0,"RequestOperationType":2},{"RequestResponseTime":"2019-10-31T17:28:57.6443114Z","StoreResult":{"LSN":-1,"QuorumAckedLSN":-1,"GlobalCommittedLSN":-1,"NumberOfReadRegions":-1,"ItemLSN":-1,"UsingLocalLSN":true,"RequestCharge":0.0,"CurrentReplicaSetSize":-1,"CurrentWriteQuorum":-1,"IsValid":false,"IsGoneException":true,"IsNotFoundException":false,"IsInvalidPartitionException":false,"StorePhysicalAddress":"rntbd://cdb-ms-prod-brazilsouth1-fd3.documents.azure.com:11304/apps/0418e967-b1b2-444d-a6e7-4223c524208e/services/1398baeb-2ca2-42b6-847f-e4ea04f5ec3f/partitions/57448983-4eec-4dc6-9d4e-75fff932854a/replicas/132145401301671179p/","IsClientCpuOverloaded":false},"RequestResourceType":0,"RequestOperationType":2},{"RequestResponseTime":"2019-10-31T17:29:03.5702927Z","StoreResult":{"LSN":-1,"QuorumAckedLSN":-1,"GlobalCommittedLSN":-1,"NumberOfReadRegions":-1,"ItemLSN":-1,"UsingLocalLSN":false,"RequestCharge":0.0,"CurrentReplicaSetSize":-1,"CurrentWriteQuorum":-1,"IsValid":false,"IsGoneException":true,"IsNotFoundException":false,"IsInvalidPartitionException":false,"StorePhysicalAddress":"rntbd://cdb-ms-prod-brazilsouth1-fd3.documents.azure.com:11006/apps/0418e967-b1b2-444d-a6e7-4223c524208e/services/1398baeb-2ca2-42b6-847f-e4ea04f5ec3f/partitions/57448983-4eec-4dc6-9d4e-75fff932854a/replicas/132169833988797452s/","IsClientCpuOverloaded":false},"RequestResourceType":0,"RequestOperationType":2},{"RequestResponseTime":"2019-10-31T17:29:03.5704459Z","StoreResult":{"LSN":-1,"QuorumAckedLSN":-1,"GlobalCommittedLSN":-1,"NumberOfReadRegions":-1,"ItemLSN":-1,"UsingLocalLSN":false,"RequestCharge":0.0,"CurrentReplicaSetSize":-1,"CurrentWriteQuorum":-1,"IsValid":false,"IsGoneException":true,"IsNotFoundException":false,"IsInvalidPartitionException":false,"StorePhysicalAddress":"rntbd://cdb-ms-prod-brazilsouth1-fd3.documents.azure.com:11309/apps/0418e967-b1b2-444d-a6e7-4223c524208e/services/1398baeb-2ca2-42b6-847f-e4ea04f5ec3f/partitions/57448983-4eec-4dc6-9d4e-75fff932854a/replicas/132169952292095127s/","IsClientCpuOverloaded":false},"RequestResourceType":0,"RequestOperationType":2}],"supplementalResponseStatisticsList":[],"addressResolutionStatistics":{"dd47ab63-cc5f-41b8-b950-e692bfa8bc03":{"StartTime":"2019-10-31T17:28:27.6957657Z","EndTime":"2019-10-31T17:28:27.8457547Z","TargetEndpoint":"https://glosignh001.documents.azure.com//addresses/?$resolveFor=dbs&$filter=protocol eq rntbd"},"2184672e-20db-432c-98a6-cc1fd578b225":{"StartTime":"2019-10-31T17:28:39.5378222Z","EndTime":"2019-10-31T17:28:39.6526205Z","TargetEndpoint":"https://glosignh001.documents.azure.com//addresses/?$resolveFor=dbs&$filter=protocol eq rntbd"},"4d75f534-1acd-469a-9657-12bf8b056108":{"StartTime":"2019-10-31T17:28:57.5435073Z","EndTime":"2019-10-31T17:28:57.6353352Z","TargetEndpoint":"https://glosignh001.documents.azure.com//addresses/?$resolveFor=dbs&$filter=protocol eq rntbd"},"dfce87a6-0aa1-4c93-8d28-9e0c14116596":{"StartTime":"2019-10-31T17:28:57.6698287Z","EndTime":"2019-10-31T17:28:57.7675621Z","TargetEndpoint":"https://glosignh001.documents.azure.com//addresses/?$resolveFor=dbs&$filter=protocol eq rntbd"}},"ContactedReplicas":[],"FailedReplicas":["rntbd://cdb-ms-prod-brazilsouth1-fd3.documents.azure.com:11002/apps/0418e967-b1b2-444d-a6e7-4223c524208e/services/1398baeb-2ca2-42b6-847f-e4ea04f5ec3f/partitions/57448983-4eec-4dc6-9d4e-75fff932854a/replicas/132169546034711664s/","rntbd://cdb-ms-prod-brazilsouth1-fd3.documents.azure.com:11006/apps/0418e967-b1b2-444d-a6e7-4223c524208e/services/1398baeb-2ca2-42b6-847f-e4ea04f5ec3f/partitions/57448983-4eec-4dc6-9d4e-75fff932854a/replicas/132169833988797452s/","rntbd://cdb-ms-prod-brazilsouth1-fd3.documents.azure.com:11309/apps/0418e967-b1b2-444d-a6e7-4223c524208e/services/1398baeb-2ca2-42b6-847f-e4ea04f5ec3f/partitions/57448983-4eec-4dc6-9d4e-75fff932854a/replicas/132169952292095127s/"],"RegionsContacted":["https://glosignh001.documents.azure.com:443/\"],\"RequestLatency\":\"00:00:36.0425465\",\"IsCpuOverloaded\":false}, Windows/10.0.18362 cosmos-netstandard-sdk/3.3.0)."

I am seeing firewall on my azure portal that allows access from all networks

Can you try using Gateway mode in the CosmosClientOptions?

@j82w you are right because that is gateway mode but I tested two different ways:

.Net Core with console app are OK, when CosmosDB read the item with id and partitionKey successfully.
.Net Core with web api are NOT OK, can't postman access the endpoint? I got the error message (Object reference not set to an instance of an object) when CosmosDB tries to read the item using ReadItemAsync with id and partitionKey. See the print below.

@j82w Sorry, that mistake was bullshit for lack of my attention.. The problem. was already solved.
Thank you very much!


puppet newbie -- testing and not seeing config changes

I'm finally getting communications happening and able to invoke a manifest specifying elasticsearch install. However my config param aren't showing up in the default .yml. What am I missing? -- I'm testing on centos 7 vms, running PE 3.7.
My custom manifest:
node 'xxxx' {

	group { 'esadmin':
		ensure => 'present'
	}

	user { 'esadmin':
		ensure => 'present',
		groups => 'esadmin'
	}

	class {'elasticsearch':
		java_install => true,
		manage_repo => true,
		repo_version => '1.4',
		datadir => '/var/data/elasticsearch',
		elasticsearch_user => 'esadmin',
		elasticsearch_group => 'esadmin',
		config => {
			'node.name' => $::fqdn,
			'cluster' => {
				'name' =>	'esearch',
				'routing.allocation.awareness.attributes' => 'rack'
			},
			'index' => {
				'number_of_replicas' => '1',
				'number_of_shards' => '4'
			},
			'network' => {
				'host' => $::ipaddress
			}
		}

	}

}

Hi,
You will need to define an instance as specified in https://github.com/elasticsearch/puppet-elasticsearch#instances
Hope it helps.

Thanks.. ok got that in place, and accepted by agent. Now I'm confused on how to access the "instance" via url. I have the default service off, I found the extra instance service on my centos vm,  and I'm re-specifying http.port as 9200 under my config => for instance.

Hi,
You should be able to access it via the same IP and port as you would do with the default instance.

electrical -- I get nothing.. If I switch back to using default elasticsearch service it works but obviously doesn't have my puppet-specified config.
[root@pnode-test elasticsearch]# tree /etc/elasticsearch
/etc/elasticsearch
├── elasticsearch.yml
├── logging.yml
├── pnode-test
│   ├── elasticsearch.yml --- this one has my config for instance
│   └── logging.yml
└── templates_import

[root@pnode-test elasticsearch]# chkconfig --list

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

      If you want to list systemd services use 'systemctl list-unit-files'.
      To see services enabled on particular target use
      'systemctl list-dependencies [target]'.

elasticsearch-pnode-test	0:off	1:off	2:on	3:on	4:on	5:on	6:off
iprdump        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
iprinit        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
iprupdate      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off

my updated manifest from puppetmaster:
cat testesinstall.pp
node 'pnode-test.evestment.local' {

	group { 'esadmin':
		ensure => 'present'
	}

	user { 'esadmin':
		ensure => 'present',
		groups => 'esadmin'
	}

	file { '/var/data' :
		ensure => 'directory',
		owner => 'root',
		group => 'wheel',
		mode => 766
	}

	file { '/var/data/elasticsearch' :
		ensure => 'directory',
		owner => 'esadmin',
		group => 'esadmin',
		mode => 766
	}

	class {'elasticsearch':
		java_install => true,
		manage_repo => true,
		repo_version => '1.4',
		datadir => '/var/data/elasticsearch',
		elasticsearch_user => 'esadmin',
		elasticsearch_group => 'esadmin'
	}

	elasticsearch::instance { 'pnode-test' :
		config => {
			'discovery.zen.minimum_master_nodes' => '1',
			'discovery.zen.ping.timeout' => '30s',
			'discovery.zen.ping.multicast.enabled' => 'false',
			'discovery.zen.ping.unicast.hosts' => '["xxxxx"]',
			'http.port' => '9200',
                        'cluster' => {
                                'name' =>	'prod_esearch',
                                'routing.allocation.awareness.attributes' => 'rack'
                        },
                        'index' => {
                                'number_of_replicas' => '1',
                                'number_of_shards' => '5'
                        },
                        'network' => {
                                'host' => $::ipaddress
                        },
			'node' => {
				'name' => 'pnode-test',
				'master' => 'true'
			},
			'gateway' => {
				'type' => 'local',
				'recover_after_nodes' => '2',
				'recover_after_time' => '5m',
				'expected_nodes' => '1'
			}
		}

	}

	elasticsearch::plugin{'mobz/elasticsearch-head':
                        module_dir => 'head',
                        instances => ['pnode-test'],
        }

	elasticsearch::plugin{'elasticsearch/elasticsearch-analysis-kuromoji/2.4.1':
                        module_dir => 'analysis-kuromoji',
                        instances => ['pnode-test'],
        }

	elasticsearch::plugin{'elasticsearch/marvel/latest':
                        module_dir => 'marvel',
                        instances => ['pnode-test'],
        }

}

strange it didn't add the service to the list. i assumed it would..
did you see any errors with the puppet runs?
Must admit i haven't done any testing yet on Centos7.

hmm..the instance isn't logging anything new in /var/log/elasticsearch.log (only default instance is) -- do I also need that specified in config?

Logging should be added as well and automatically ( default its the cluster name )

weird.. I only have defaults:
[root@pnode-test elasticsearch]# pwd
/var/log/elasticsearch
[root@pnode-test elasticsearch]# ls -al
total 176
drwxr-xr-x.  2 elasticsearch elasticsearch   4096 Jan  6 09:17 .
drwxr-xr-x. 21 root          root            4096 Jan  5 15:21 ..
-rw-r--r--.  1 elasticsearch elasticsearch      0 Jan  5 16:16 elasticsearch_index_indexing_slowlog.log
-rw-r--r--.  1 elasticsearch elasticsearch      0 Jan  5 16:16 elasticsearch_index_search_slowlog.log
-rw-r--r--.  1 elasticsearch elasticsearch   5164 Jan  6 09:58 elasticsearch.log
-rw-r--r--.  1 elasticsearch elasticsearch 160967 Jan  5 16:19 elasticsearch.log.2015-01-05

so in a nutshell the module can't affect default instance config? only new instance?

That's correct.
The default instance that comes with the package is not used at all.
With the next release i will be removing the files so people don't get confused :-)

k. Is there anything else I'm missing in my ### MANAGED BY PUPPET ###
.yml above?

file looks good. don't see anything wrong with it by the looks of it.
It could be that by default we use the sysv style init script and not systemd one.

despite that, centos7 still shows it under old chkconfig --list and I was thinking would be compatible.. I've also tried re-specifying path.logs in instance config, no luck yet :( so close!

ahh found issue in messages and not sure why yet..
an  6 12:38:40 pnode-test elasticsearch-pnode-test: Starting elasticsearch-pnode-test: [  OK  ]
Jan  6 12:38:40 pnode-test systemd: Started LSB: This service manages the elasticsearch daemon.
Jan  6 12:38:40 pnode-test elasticsearch-pnode-test: {1.4.2}: pid Failed ...
Jan  6 12:38:40 pnode-test elasticsearch-pnode-test: - FileNotFoundException[/var/run/elasticsearch/elasticsearch-pnode-test.pid (Permission denied)]
Jan  6 12:38:40 pnode-test elasticsearch-pnode-test: java.io.FileNotFoundException: /var/run/elasticsearch/elasticsearch-pnode-test.pid (Permission denied)
Jan  6 12:38:40 pnode-test elasticsearch-pnode-test: at java.io.FileOutputStream.open(Native Method)
Jan  6 12:38:40 pnode-test elasticsearch-pnode-test: at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
Jan  6 12:38:40 pnode-test elasticsearch-pnode-test: at java.io.FileOutputStream.<init>(FileOutputStream.java:171)
Jan  6 12:38:40 pnode-test elasticsearch-pnode-test: at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:156)
Jan  6 12:38:40 pnode-test elasticsearch-pnode-test: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)

Ah, that is my fault. With the current version i don't chown every directory related to ES yet. will be fixed in next release.

making progress, I fixed by getting rid of my
elasticsearch_user => 'esadmin',
elasticsearch_group => 'esadmin'

declaration.. so it uses default elasticsearch user for now.. this caused a chown on everything
I can now call up new instance head plugin -- but it's blank I don't have any nodes showing.. hmm. cluster health: not connected.

houston we have liftoff on centos 7 ;)  -- two other config issues.. I had pulled gateway settings (expected nodes up, etc) from our existing production config and got rid of that. Also I still have a custom data path set and permissioned for that other user I had made 'esadmin' -- woohoo.. we have a working head plugin ;)

Great to hear! i'll get the rights issue fixed as soon as possible. i hope to do a new release this month ( allot of changes and some bug fixes )

Hi,
I've just merged a fix into the master branch which should solve the rights issues.
Cheers.

Fantastic, thx electrical!


Fix inline latex in hfdocs

Fixes #1976
+ remove some trailing whitespaces from autoformatting

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


refactor: avoid unneeded variadic arguments in preprocessing

Current dependencies on/for this PR:

main

PR #770   👈

PR #769

PR #766

This stack of pull requests is managed by Graphite.