Rancher 1.6: Best Practice when the IP Address/Network Environment changes often?

Rancher versions:
rancher/server: 1.6.17
rancher/agent: 1.2.10
Infrastructure Stack versions:
healthcheck: rancher/healthcheck:v0.3.6
ipsec: rancher/net:holder
network-services: rancher/network-manager:v0.7.20
scheduler: rancher/scheduler:v0.8.3
Docker version: (docker version,docker info preferred)
docker-ce=18.03.0~ce-0~ubuntu
Operating system and kernel: (cat /etc/os-release, uname -r preferred)
Ubuntu 16.04.5 LTS (Xenial Xerus)
Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
Bare-metal
Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB)
single node rancher-server/rancher-agent on same machine
Environment Template: (Cattle/Kubernetes/Swarm/Mesos)
cattle
Steps to Reproduce:

install rancher-server and agent like single Node guide
starts some stacks to see if working
change ip of machine
change host registration url in webui of rancher
change registration url in agent: sudo docker run       --rm     --privileged     -v /var/run/docker.sock:/var/run/docker.sock     -v /var/lib/rancher:/var/lib/rancher     rancher/agent:v1.2.10 http://NEW_IP:8080/

Results:
All stacks repeatedly restart and the ui shows: Timeout getting IP address after some minutes and then restarts them again

It doesn't automatically re-create needed services as of today, see https://github.com/rancher/rancher/issues/9307.
Workaround steps are described here: https://gist.github.com/superseb/f44d51cc42c7e5a0049d393d6d2563e7
Using a DNS name and LB is still recommended.
Let me know if you run into issues.

cant use a DNS Name as it will be a dedicated server moving between companies physicly, where the DNS record might not beeing able to be set(big less dynamic companies dns entries are very strict and often need weeks for changes)
also the systems are airgapped so no internet access etc maybe 1-3 pcs got access to that server
how would i go about setting up a loadbalancer on that single node machine so that it and rancher server & agent survives  ip changes, any infos?

It's the same problem with the LB on the same node, as the DNS to the LB will also be incorrect when the IP changes. This is in general an unsupported scenario, if you can explain a bit more what you are trying to accomplish, we can give better advice. Rancher is not a tool that needs to be moved around company locations, it's setup using DNS/LB once and then hosts get registered to it and containers can be orchestrated.
The scenario you are pointing out is applicable to any application you want to make available, where the IP is changing and there is no DNS that can be configured.

@superseb
Scenario is:
Airgapped Rancher 1.6 with changing IPAddresses(cause its moved between IT infrastructure physicly, like for dev purposes its inside companies network, and while meetings/exhibitions cause its in a isolated network for showing purposes etc)
We preconfigure those Rancher Servers "here", send them to Research Partners were they have to be integrated into their IT Infrastructure, but they cant have the same IP Address as they had it "here", as wew cant guarantee that the research partners have exactly this IP Address reserved for those Servers,
so we have to have/find a way to change IP Addresses in Rancher so that Rancher comes up with the new IP after System Reboots,
as the Servers arent always in a company network were u allowed to set DNS Records for those Servers
DNS wont work :/ also the DNS name would then be to be changeable as there might be multiple of those in the same network


setLanguage for all schema

Is it possible to use setLanguage directly on SimpleSchema and not only on schema instance ?

Currently not possible. You can push all schemas into an array as you create them and loop through that when you need to setLanguage. There will eventually be a better way of doing this.


ArangoDB 3.5 release date?

On the roadmap it said July 2019. What is the new ETA?

We are currently testing the–hopefully–last Release Candidate. So shortly :-)

We are currently testing the–hopefully–last Release Candidate. So shortly :-)

Don't forget to test on the memory leaking issues.

Will this release be notarized for macOS gatekeeper?

Hi,
all the .dmg's that we offer for download are signed with your apple developer certificate - and we will continue to do it that way.
Are you actually experiencing issues by that?

https://developer.apple.com/documentation/security/notarizing_your_app_before_distribution
"Beginning in macOS 10.15, notarization is required by default for all software."
Testing on macOS 10.15 beta it says that (both 3.5RC and 3.4.x) are not notarized (and blocks install for files signed later than a certain date).

this is going to be problematic for the V8 JIT

I see that the 3.5.0 version is in github release, but I compiled and installed, it still says "This is a maintainer version intended for debugging. DO NOT USE IN PRODUCTION!"
Is it the official release of 3.5.0?

you need to check out the matching tag.
The official release date will be anounced via the official channels, i.e. twitter.com/ArangoDB by then the binaries will be available etc.

Hi @joowani
We would like to inform you that today we have officially released ArangoDB Version 3.5.0 - you can download it from here: https://www.arangodb.com/download/
Find all details about the release on the blog: https://www.arangodb.com/2019/08/multi-model-database-arangodb-3-5-released-distributed-joins-streaming-transactions-extended-graphdb-search-capabilities/
Best,
Omar Ayoubi

I see that the 3.5.0 version is in github release, but I compiled and installed, it still says "This is a maintainer version intended for debugging. DO NOT USE IN PRODUCTION!"

Make sure to compile it with release settings, i.e. not a debug build, no maitainer mode enabled etc.
https://github.com/arangodb/arangodb/blob/devel/README_maintainers.md#building


Internal Error Code: -32603 Request textDocument/documentSymbol failed

Describe the bug
When I do a cut and paste in a HLASM-Source, this error is shown.
Steps to reproduce
Steps to reproduce the behavior:

Double Click on a word
CTRL-C cut it
Double Click another word
CTRL-V paste

Expected behavior
No error
Lines from the Error screen
[Error - 10:11:46] Request textDocument/documentSymbol failed.
Message: Internal error.
Code: -32603
java.util.concurrent.CompletionException: java.util.ConcurrentModificationException
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:649)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:483)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
Caused by: java.util.ConcurrentModificationException
at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1597)
at java.base/java.util.HashMap$ValueIterator.next(HashMap.java:1625)
at com.ibm.wazi.lsp.hlasm.core.parser.AST.getSymbolInformation(AST.java:112)
at com.ibm.wazi.lsp.hlasm.core.handlers.DocumentSymbolHandler.getSymbols(DocumentSymbolHandler.java:33)
at com.ibm.wazi.lsp.hlasm.core.HLASMLanguageServer.lambda$4(HLASMLanguageServer.java:217)
at com.ibm.wazi.lsp.hlasm.core.HLASMLanguageServer$$Lambda$124/0x00000000148e1140.apply(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
... 6 more
Environment (please complete the following information):
Version: 1.79.2 (user setup)
Commit: 695af097c7bd098fbf017ce3ac85e09bbc5dda06
Datum: 2023-06-14T08:57:04.379Z
Electron: 22.5.7
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: <IP_ADDRESS>-electron.0
Betriebssystem: Windows_NT x64 10.0.22621
Additional context
You can ignore this error by closing the error window, but it rises again and again.

Hi @SG-A47,
This project doesn't provide HLASM language support. What extension are you using?

IBM Z Open Editor v3.3.1
The error raises when I do some coding in an Assembler program, but the message seems to come from VSCode. There is no indication in the message that it comes from the language server.

Hi @SG-A47,
The error you posted looks from the language server. Please report to the repository of the extension, in your case https://github.com/IBM/zopeneditor-about
If you have general issues of VS Code, please report to VS Code repo, https://github.com/microsoft/vscode
This project is only for SAS extension. Thanks.


Turn on --bg option by default in deploy_test_gcp.sh

Change summary:

Turn on --bg option by default in deploy_test_gcp.sh
Add --fg option instead

Let me merge this PR now. Feel free to add any further comments.


Feature request: single task datasets

Hi there! I think it would be really nice if there was a script and dataset for a selection of individual tasks in CALVIN, so that one could test their method on just a single task. I've started working on this already, does it sound like a useful feature?

If this does sound useful, could I get some advice on what the cleanest/simplest way to implement this in the existing framework is? My current code is a bit hacky...

I'm talking about training on a single task.

Here you have an example of using task indicators to learn single task rl policies https://github.com/mees/calvin#reinforcement-learning-with-calvin

Sorry, let be more clear. I specifically mean offline imitation learning through the usage of a subset of the provided dataset filtered on a single task. In essence, breaking up the existing datasets (such as Task D->D) into each individual task that it consists of.

You could try to proceed as follows:

Use the automatic_lang_annotator to find the episodes that consist of an individual task. You can eps=1 to change the ratio of annotated episodes to 100%. You would have to change these lines in the lang_ann.yaml hydra config to two new files in this folder which only contain that task that you are interested in.
This creates a file auto_lang_ann.npy in the lang folder that you specfied in the config. However, since you are not interested in language for a single task, you can create a new ep_start_end_ids.npy which you can use to train on a single task:

auto_lang_ann = np.load("auto_lang_ann.npy", allow_pickle=True).item()
ep_start_end_ids = auto_lang_ann["info"]["indx"]

Replace the original ep_start_end_ids in the training and validation folder with the new ep_start_end_ids that only contain those of a single task
Run a training with vision only by setting datamodule/datasets=vision_only

I haven't tried this approach, so there could be additional steps to make it work :smile:

@ezhang7423 did you get further with what you wanted to do?

Hi Luka! Thank you so much for your detailed approach. I was able to get further, and will hopefully be able to submit a pull request soon.


API for tree

I'm using thunderdome to store UI Node s. Nodes can have children, so API like indextree would be nice; it would be like NodeIndex trait. If it's a common pattern, any chance thunderdome would get it?
Thank you.

Probably NodeIndex trait needs Index to be Index<T>

It turned out it doesn't make sense:

My tree operations assumed no cyclic nodes in Arena and it used some unsafe code.
Safe traverseion would be sick.


Possible to use offline

The app remains usable even when no network is present.
Slack and FB Messenger are good examples of
Currently, we are halfway there.
We need to cache messages, subscriptions, and users from the last run, for this feature to work.

recognize 'Airplane mode', which is different than 'No Network'
if the app is offline, do not try to get more messages
cache images and other resources?
search should be performed client-side

Closing as complete.


Make ryu an optional dependency

You should be able to import "ryu", instead of pulling it in automatically just by using STD. Basically, this issue is about a better way to manage standard library imports

Some progress made here, but f32_to_string requires malloc, so we can't put it in the ryu module directly, so it has to stay a direct dependency of the WASI std... Hm

need something like
when(defined(__ryu)) {
proc f32_to_string {
}
}
?


[bug] should not require main.js on standalone remote mode

Describe the bug
Hi, I'm trying to leverage test-runner to do some e2e screenshot generation on aws lambda.
As far as I know, main.js configurations aren't or shouldn't be required for remote standalone testing that was implemented at #31
In fact, I could run my test just fine with random main.js like:
// copied straight from the document
const config = {
  // Required
  // Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite)
  framework: '@storybook/your-framework',
  stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
  // Optional
  addons: ['@storybook/addon-essentials'],
  docs: {
    autodocs: 'tag',
  },
  staticDirs: ['../public'],
};
export default config;

This is the stderr if no main.js is provided:
[test-storybook] Detected a remote Storybook URL, running in index json mode. To disable this, run the command again with --no-index-json

[test-storybook] Could not load main.js in .storybook. Is the ".storybook" config directory correct? You can change it by using --config-dir <path-to-dir>

To Reproduce
Steps to reproduce the behavior:

Run npx test-storybook --url $STORYBOOK_URL --no-cache on any non-storybook environment

Expected behavior
it should run just fine without .storybook/main.js
Additional context
https://github.com/storybookjs/test-runner/issues/23

Hey @zb-sj well said, that makes total sense and is a bug. I'm fixing it! Thanks for reporting!


Deleting a secret that is referenced by some revision results in a long running update operation timing out

Please provide us with the following information:

This issue is a: (mark with an x)

[X] bug report -> please search issues before submitting
[X] documentation issue or request
[ ] regression (a behavior that used to work and stopped in a new release)

Issue description
Attempt to delete a secret that is referenced by some revision results in a long running update operation to time out.
Steps to reproduce

Create an app with a secret and a template that uses an environment variable referencing the secret. Make sure to use activeRevisionsMode: multiple
Update the app to remove the secret from the secrets collection and remove the environment variable from the template

Expected behavior The Update API call for step #2 should fail with an error explaining that the secret cannot be removed from the secrets collection because there are revisions that reference it.
Actual behavior The LRO times out after 10 minutes with the error details: "Operation expired"
Additional context
This was originally reported in this issue: https://github.com/Azure/azure-rest-api-specs/issues/19285

@ruslany @ahmelsayed , is this still an active issue?

This has been fixed and fix has been deployed.
Now when attempting to delete a secret that is referenced by an active revision the API call with fail with http 400 error and error description similar to this "Container App 'appname' has an active revision referencing a secret you are trying to delete. Please add secrets: 'secretname' or deactivate the revisions: 'revisionname' referencing this secret."
Also when attempting to activate an inactive revision that references a non-existent secret the API call will fail with http 400 error and error description: "Revision 'revision name' you are trying to activate has secrets with references that do not exist. Please add secret for: 'secretname'."

@oshimish could you send your sub and appname to<EMAIL_ADDRESS>so we can investigate further? Thank you!

@oshimish Sorry for the delay in reply. I have received your email with additional info, thank you for sending it to us. The logs you provided us and this error you are receiving "Error: cannot remove secrets from Container Apps at this time due to a limitation in the Container Apps Service. Please see https://github.com/microsoft/azure-container-apps/issues/395 for more details" is from a check in the terraform code and not the Azure Container Apps team so I cannot provide any additional help on this matter.
You will have to open the issue with terraform directly, I apologize.

any further updates on this?  cant rebuild my container apps using terraform without this being addressed.  making it not practical atm imo...


TypeScript: Enable noImplicitAny #264 - nodejs-logging

https://github.com/search?p=2&q=org%3Agoogleapis+label%3A"help+wanted"+is%3Aissue+is%3Aopen&type=Issues
https://github.com/googleapis/nodejs-logging/issues/264

[ ] Tests and linter pass
[ ] Code coverage does not decrease (if any source code was changed)
[ ] Appropriate docs were updated (if necessary)

Overall looks Ok to me.
One point is, at multiple places we have ignored no-any rule using "// tslint:disable-next-line no-any"
Please do check if we should remove that.


Create an Omise charge

1. Objective
Create an Omise charge by using the Omise card token that submitted from the client side.
Related information:
Related issue: -
Related ticket: -
Required pull request: #13
2. Description of change

Add a helper class and a function, OmisePluginHelperCharge.amount() to format the charge amount for the Thai Baht currency.
Complete the checkout form function to submit the Omise card token from client side to server side.
Implement a class to process charge at server side.
Add a dummy page for display the checkout result.

3. Quality assurance
Environments:

Platform: PrestaShop <IP_ADDRESS>
Omise plugin: Omise-PrestaShop <IP_ADDRESS>
PHP: 5.6.28
Mozilla Firefox: 50.1.0

Details:

Make sure that the Omise-PrestaShop has been installed and enabled.
At the front-end, add a product to cart.
Proceed to checkout.
At the step, 05. Payment, fill the valid card information and click button, Submit Payment. The system will process the payment and display the result page.

The screenshot below shows the result page display the successful payment.

The screenshot below shows charge detail at Omise dashboard. This charge was created from the above checkout.

4. Impact of the change
-
5. Priority of change
Normal
6. Additional notes
For the next steps of charge process, such as record the order information to PrestaShop or display the proper result page, it will be developed for next pull request.

@nimid fyi, rebased #13 feature/bundle-omise-php => #14 feature/create-charge

fyi, rebase with develop

FYI: Im gonna close this PR since this one already merged to #19 and we're going to review this changes in that PR.
Thanks for the changes 👍


+[-𝗟𝗜𝗩𝗘-𝐒𝐭𝐫𝐞𝐚𝐦𝐬-]— Abu Dhabi Grand Prix 2024 LiVe 𝐒𝐭𝐫𝐞𝐚𝐦𝐬 FrEe BrOaDcAsT oN TV Guide & 𝐒𝐭𝐫𝐞𝐚𝐦𝐢𝐧𝐠

Formula 1 concludes its 2024 World Championship season with the Abu Dhabi Grand Prix this Sunday at the Yas Marina Circuit.
👉👉⏩🎥🅻🅸🆅🅴🔴▶ CLICK HERE TO WATCH LIVE ONLINE
.
👉👉⏩🎥🆆🅰🆃🅲🅷🔴▶ CLICK HERE TO LIVE STREAM
Red Bull's Max Verstappen has already secured the World Championship after finishing 5th at the Las Vegas Grand Prix in November. This is his fourth championship in a row.
All eyes will now be on who takes away the Constructors' Championship. McLaren head into this race leading the standings with 640 points, but Ferrari are right under their tail with 619 points.
WATCH:F1 Abu Dhabi Grand Prix LIVE in US on Fubo
The 2024 Abu Dhabi Grand Prix race is finally here and for all your time, TV and streaming details, look no further than The Sporting News for a full guide.
F1 Abu Dhabi Grand Prix free live streams
There is no free live stream available for the F1 Abu Dhabi Grand Prix. However, streaming options are available on Fubo and ESPN+.
How to watch F1 Abu Dhabi Grand Prix: TV channel, live stream
The Abu Dhabi Grand Prix is the 21st race of the 2024 Formula 1 season and takes place at the Yas Marina Circuit, Abu Dhabi, United Arab Emirates.
Here's how to watch the 2024 Abu Dhabi Grand Prix across North America:
Region	TV channel	Streaming
USA	ESPN	ESPN+, Fubo, Hulu, Sling TV, YouTube TV, F1 TV
Canada	TSN (English), RDS / Noovo (French)
TSN Direct
USA: ESPN is showing the race live on TV and while there are several live streaming options, ESPN+ and Fubo are your best bets.
For a limited time, you can get your first month of Fubo for as low as $49.99, a $30 savings. Stream ESPN, ABC, CBS, Fox, NBC and 200+ top channels of live TV and sports without cable. (Participating plans only. Taxes and fees may apply.)
For a limited time get 12 months of ESPN+ for the price of 9 with the purchase of an annual plan. Stream your favorite teams live and enjoy more sports anywhere with an ESPN+ subscription.
Canada: Canadian F1 fans can watch English-speaking coverage of the race on TSN or stream via TSN Direct, while French speakers can also follow the action on RDS or Noovo.
STREAM:F1 races LIVE on ESPN+
What time is F1 Abu Dhabi Grand Prix race today?
Today's Abu Dhabi Grand Prix begins at 5:00 p.m. local time from the Yas Marina Circuit in Abu Dhabi, United Arab Emirates – and here's how that start time translates across US:
Date	Start time

Eastern Time	Sunday, December 8	8:00 a.m.
Central Time	Sunday, December 8	7:00 a.m.
Mountain Time	Sunday, December 8	6:00 a.m
Pacific Time	Sunday, December 8	5:00 a.m

SS
### ✅🟢 LIVE STREAM PLAY NOW
✅🟢 HERE PLAY NOW ONLINE
.
.
.
.
.
.
.
.
.
.
..
### ✅🟢 LIVE STREAM PLAY NOW
✅🟢 HERE PLAY NOW ONLINE
.
.
.
.
.
.


Adding Kitematic link to Mac OS X install instructions in docs

Signed-off-by: Jeffrey Morgan<EMAIL_ADDRESS>

LGTM

LGTM

ping @jamtur01 @fredlf @SvenDowideit @spf13

This feels a little too "marketing-ish" for tech docs. I think we should tone it down and stick to the facts. For example,
How do you want to work with Docker?
You can set up Docker using the command line with Boot2Docker and the guide below. Alternatively, you may want to try Kitematic, an application that lets you set up Docker and run containers using a graphical user interface (GUI).
I also don't know why we've starting using HTML anchor tags for links instead of Markdown. Is there a benefit I don't know about?

This "marketing" technique was used successfully at Atlassian. It is something Justen and I used at Bitbucket. Normally it wouldn't be done in the centra body but we are somewhat limited by the layout of the current docs.
The benefit of an HTML anchor tag in this case is that it forces the link to open in a new window.  This allows the reader to "see" a new page without losing their place in the current document.

I'm not suggesting we remove this entirely, I'm suggesting we change it's tone and wording to be more aligned with the rest of the docs and with appropriate tone and content for technical documentation.
What really needs to happen is we revise the OSX docs to account for Kitematic at the outset. I will add that to the backlog.
I understand what the HTML tag does and what a target attribute is. I think that
(a) opening new windows is as annoying to users as it is convenient. The back button works just as well.
(b) Adding HTML sort of defeats the purpose of using markdown, now contributors need to know both "languages".
(c) I'm concerned that mixing markup will have unintended consequences down the road if we migrate to different tool sets.

@fredlf
(a) There's definitely a right place for opening in new windows. I'm sorry you find them annoying. I feel strongly that when you are following a tutorial that links should be in a new window so that the users don't lose their place in the tutorial.
in response to (b) Html is valid markdown. It's the prescribed way to do things that require more than the simple set that markdown requires.
(c) It shouldn't. HTML is valid markdown. Any tool that understands markdown also should understand HTML

I should explain that both Justen and Kitematic team came to talk to me about doing this.  I purposely asked them to make the tone a Marketing tone.  It is to distinguish this content from the rest of the content which is instruction.  I've done this before in Atlassian documentation --- the only difference being I had more latitude in layout.
So, I understand your concerns, Fred, I had them when I first started doing marketing in docs.  I didn't see any difference in page usage because of it.  My plan was to drop it in for Kitematic and watch the analytics.  The up side is Kitematic gets the leverage the traffic on that page and hopefully we could help Docker as a whole.

(a) Okay. If we are going to have marketing copy in tech docs (which it appears we will no matter what), then I would ask that we set it apart not just by tone but also graphically (in a text box, by color/style/type, whatever). For me, putting myself in the user's shoes, an open source user in particular, it's an issue of trust. It's like asking my doctor his opinion on a mole and having him respond with a pitch for skin cream he sells on the side. (Sorry, just got back from doctor and couldn't avoid the metaphor.) Will I go back to that doctor? Probably, changing is a hassle. Will I trust her less? No doubt.
(b) The issue I have with new windows is not that I find them annoying. Many usability and design folk advise against it. Here is just one, I'm sure you can find more: http://www.coolfields.co.uk/2012/12/why-none-of-the-external-links-on-this-website-open-in-a-new-window/. I agree there may be applications, like pure tutorials, where a new window is desirable. I'm not sure this is one. It's a decision fork: method a or method b. That's why I think the best approach is to (slightly) re-write the page so that it makes clear at the outset that there are two methods for using Docker on OSX, then the user can choose the approach that works for them and follow that fork.
(c) Yes, I agree, most tools know markdown and HTML. The issue would arise from trying to do something like programmatically find all links, changing a heading level, or anything else that we are now marking up in two (or more) different ways. Plus there is the issue of ease for contributors, which I think would be a concern for you guys.
Those are my thoughts. Do what you will with them. I'm not going to hold up this PR if other maintainers LGTM.

Updated the copy to @fredlf 's suggestion. Thanks Fred!

LGTM, natch. Thank you Jeff.


Added extflag module

This PR adds in the extflag module which provides the PathOrContent flag with environment variable substitution.

Can you run go mod tidy (see lint)?

Sure! I did run it before raising PR but I think I set wrong go version(1.16).


BUG: JSDoc generates invalid menu

If you open https://www.apify.com/docs/sdk/apify-runtime-js/latest#utils-puppeteer, you will see the menu on the left only shows "puppeteer", but it should show "utils.puppeteer".

Closing as we moved the docs to docusaurus


Stac process

Added information about development and release process, should close #67

Looks fine, but I think there should be a short not in the Release Process that the version numbers need to be updated in several places (at least the top-level README, but potentially also in the API spec docs, examples etc.).

Ah, good point. Will add that.


Fix for Long Startup Time

Checklist

[x] I have followed the Contributor Guidelines.
[x] I have added the relevant documentation.
[x] My branch is up-to-date with the Upstream master branch.

Changes proposed in this pull request
Fix Issue #163
Your development environment

OS: Kali Linux
OS Version: 2.0
Python Version: 2.7.3

any thoughts? @pradeepjairamani @shaddygarg

I think it is a good idea to do this!!

That is a good idea..

so @pradeepjairamani please work on this one.

I tried doing the timeout thing using request but It didn't worked. Let me see if I can find anything else

do you mean this?! working fine for me!
In [25]: def a(timeout):
    ...:     try:
    ...:         requests.get("http://api.z3r0d4y.com:810/", timeout=timeout)
    ...:     except:
    ...:         pass
    ...:

In [26]: %time a(None)
Wall time: 42.2 s

In [27]: %time a(1)
Wall time: 2 s

In [28]: %time a(3)
Wall time: 6 s

anyway after setting the timeout, if you implement the database thing it would be not a problem, 42sec in 24 hours will not count as anything :D!
Regards.


Random walk over perf action space (only three actions).

The random walk example has been adapted to use the HPCToolkit compilation session with perf observation space. At this moment, the session supports only three actions in the action space. Logging is suppressed, and some prints are removed.
Running 100 steps on dijkstra benchmark over perf observation spaces takes about 15s. Running the same number of steps for exploring IrInstructionCount space takes about 0.2s. I guess this is what we have expected.

This looks good, merging now.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_27eaa61f-a35d-46e2-a129-831f5c28763e/pull/1 is merged into live branch.
Auto archive content to https://github.com/VSC-Service-Account/docs-archive-test-target_27eaa61f-a35d-46e2-a129-831f5c28763e.git

Docs Build status updates of commit b7bc9cf:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-ServiceAccountCannotAccessRepository] Your repository https://github.com/VSC-Service-Account/docs-archive-test-source has enabled Docs Build service account. It seems that at least one of the accounts, e2ebd3, does not have Read permission to the repo. Please ask your repo admin to grant correct permission to service accounts (refer to this document: https://review.docs.microsoft.com/en-us/engineering/projects/ops/engdocs/how-to-grant-service-account-permission-in-your-repository?branch=master#ops-e2e-ppe) and then retry the build. Don't know who to contact? Refer https://repos.opensource.microsoft.com/VSC-Service-Account/repos/docs-archive-test-source/permissions/ to get admin list of the repo if the repo is in one of the organizations Microsoft owns.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Operation not permitted pwm

I'm using custom arducopter build which is not sending any pwm signals after pin 7. I connected servo to pin 9.
On first run (arducopter service running already) everything works well, second time I run it. Says operation not permitted.
Here is the code I use for testing:
import sys
import time

import navio2.pwm
import navio2.util

PWM_OUTPUT = 8
SERVO_MIN = 1.250 #ms
SERVO_MAX = 1.750 #ms

with navio2.pwm.PWM(PWM_OUTPUT) as pwm:
    pwm.set_period(50)
    pwm.enable()

    start=time.time()
    while (True):
        now=time.time()
        t=now-start
        if t >= 3:
            break
        pwm.set_duty_cycle(SERVO_MAX)
    start=time.time()
    while (True):
        now=time.time()
        t=now-start
        if t >= 3:
            break
        pwm.set_duty_cycle(SERVO_MIN)
    pwm.disable()

When I run second time here what error I get:
PermissionError: [Errno 1] Operation not permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "Servo.py", line 13, in <module>
    with navio2.pwm.PWM(PWM_OUTPUT) as pwm:
  File "/home/atahabaki/Navio2/Python/navio2/pwm.py", line 15, in __enter__
    self.initialize()
  File "/home/atahabaki/Navio2/Python/navio2/pwm.py", line 34, in initialize
    pwm_export.write(str(self.channel))
PermissionError: [Errno 1] Operation not permitted

The issue is runs first time perfectly. Second time I run, throws that exception above.
Is there any group for pwm i/o system? Why it is giving me an error? arducopter is not using the pin I connected servo to...
I didn't understand why this is happening...
Any help will be appreciated.
Thanks!..

The error occurs here
https://github.com/emlid/Navio2/blob/0eb90b7d0ace9b88f886f3482c4f275b0a34efe8/Python/navio/pwm.py#L34
Try debugging the cause to why you arent permitted to append to path.

Reviving this thread :
I solved it by waiting between the calls of the functions.

I modified pwm.py like that, and it seems to work for now. I added time.sleep(1) in initialize and deinitialize between the opening and the closing of the file, and added "file".close() every time a file was open (not sure it's requiered every time).
One should avoid calling (de)initialize a lot, because it is REALY slow (waiting less than a second, like 0.5s, does not always work for me). Closing the file seems to be enough for all the other functions.
import os.path
import time

class PWM():
    SYSFS_PWM_PATH_BASE = "/sys/class/pwm/pwmchip0/"
    SYSFS_PWM_EXPORT_PATH = "/sys/class/pwm/pwmchip0/export"
    SYSFS_PWM_UNEXPORT_PATH = "/sys/class/pwm/pwmchip0/unexport"

    def __init__(self, channel):
        self.channel = channel
        self.channel_path = self.SYSFS_PWM_PATH_BASE + "pwm{}/".format(self.channel)
        self.is_initialized = False
        self.is_enabled = False

    def __enter__(self):
        print('enter')
        self.initialize()
        return self

    def __exit__(self, *args):
        self.deinitialize()

    def deinitialize(self):
        if self.is_enabled:
            self.set_period(1)
            self.disable()
        with open(self.SYSFS_PWM_UNEXPORT_PATH, "a") as pwm_unexport:
            pwm_unexport.write(str(self.channel))
            time.sleep(1)
            pwm_unexport.close()

    def initialize(self):
        if not os.path.exists(self.SYSFS_PWM_PATH_BASE):
            raise OSError("rcio_pwm module wasn't loaded")

        if not os.path.exists(self.channel_path):
            with open(self.SYSFS_PWM_EXPORT_PATH, "a") as pwm_export:
                pwm_export.write(str(self.channel))
                time.sleep(1)
                pwm_export.close()

        self.is_initialized = True

    def enable(self):
        with open(self.channel_path + "enable", "w") as pwm_enable:
            pwm_enable.write("1")
            self.is_enabled = True
            pwm_enable.close()

    def disable(self):
        with open(self.channel_path + "enable", "w") as pwm_enable:
            pwm_enable.write("0")
            self.is_enabled = False
            pwm_enable.close()

    def set_period(self, freq):
        if not self.is_initialized:
            raise RuntimeError("PWM not initialized. Call initialize first")

        period_ns = int(1e9/freq)
        with open(self.channel_path + "period",  "w") as pwm_period:
            pwm_period.write(str(period_ns))
            pwm_period.close()

    def set_duty_cycle(self, period):
        if not self.is_initialized:
            raise RuntimeError("PWM not initialized. Call initialize first")

        period_ns = int(period*1e6)
        with open(self.channel_path + "duty_cycle", "w") as pwm_duty:
            pwm_duty.write(str(period_ns))
            pwm_duty.close()

Hi!
@atahabaki , do I get it right the issue is solved?

I don't know if the issue is solved or not, I'm not using emlid toys anymore...

Okay then. As I can see @hubble14567 and @drobban end up with a working code here. Closing this one.
Thanks!


Method 'removeGettingStartedContent' not found [404]

After starting uncommenting and running example-forum I followed the instructions to delete dummy data and got this error in the console:
Error invoking Method 'removeGettingStartedContent':
Method 'removeGettingStartedContent' not found [404]

for me it works.
first start your app with
npm start
then run in a new terminal tab the command
meteor shell
and now execute the command:
Vulcan.removeGettingStartedContent()
This removes the posts and comments for me.
The dummy users are still there.


Added Simplified Chinese Localization

adamantium and vibranium follows the zh_cn translation in Adabranium mod.

This is awesome huge thanks ill get a release out asap


'Avoid multiple asserts' is not good advice (and should be rewritten as Avoid multiple acts)

I am aware that this advice is repeated all over the internet but it is still not a good advice. 😄
The 'Bad' example is indeed bad but it is not because of the multiple asserts but because of the multiple acts
[Fact]
public void Add_EdgeCases_ThrowsArgumentExceptions()
{
Assert.Throws(() => stringCalculator.Add(null)); // <-- Act 1 in bold
Assert.Throws(() => stringCalculator.Add("a")); // < -- Act 2 in bold
}
Parameterized tests are mentioned as a solution, but parameters are typically only applied in the act of test. This can also be seen in the 'Good' example on the page. The 'input' parameter is only used in the act line.
The page mentions that with multiple asserts it does not 'give you the entire picture as to why your tests are failing', but the opposite is true. With multiple asserts you can test exactly what is wrong with your response. A first asserts can check for null, a second one can assert the item count, a third assert can check the content of the expected items. Such a failing test can tell you exactly what is wrong. The fact that the last assert is never called is not a problem at all, it would not make sense.
The general argument of the section is valuable and would still hold if it was rewritten as 'Avoid multiple acts'.

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

ID: 51947dc8-9ae8-21fa-13db-a7ffb3f9bc0e
Version Independent ID: be661bf5-6f6e-cd18-344b-253edf5751ae
Content: Best practices for writing unit tests - .NET
Content Source: docs/core/testing/unit-testing-best-practices.md
Product: dotnet-fundamentals
GitHub Login: @jpreese
Microsoft Alias: wiwagn

Hi 👋 @pauldendulk
Thank you so much for posting this issue. We really appreciate it. If you're willing and able to propose changes to this content, I'd be happy to review. Just reference this issue in the PR, thank you.


README: State that the Analyzer is a SCA tool

Signed-off-by: Sebastian Schuberth<EMAIL_ADDRESS>

This change is

To name the "Software Composition Analysis" buzzword 😉


Fix remove function for ControllableQueue

There is a bug in ControllableQueue.remove where it is trying to remove the item from priority queue which holds a list of wrappers. This change fixed it by comparing the value of the wrapper to the item instead.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4040/
Test PASSed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4053/
Test FAILed.

Jenkins, test this please.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4057/
Test PASSed.

alluxio-bot, merge this please


issue while getting information of transport request

I have this configuration in settings:
{
"workbench.startupEditor": "newUntitledFile",
"explorer.confirmDragAndDrop": false,
"javascript.updateImportsOnFileMove.enabled": "always",
"explorer.confirmDelete": false,
"abapfs.remote": {
    "NPL": {
        "url": "xxxxxx",
        "username": "xxxxxx",
        "password": "xxxxxx",
        "client": "200",
        "language": "ES",
        "allowSelfSigned": true
    }
}

}
But I'm getting this error while trying to obtain my list of transport request:
"Transport configuration not found"

I noticed this a few days ago. Will work after you accessed the transport view from Eclipse at least once.
Will fix this as soon as I have time


feat(rpc): default binding to localhost vs <IP_ADDRESS> open to world

fixes #2824 which requests we bind to localhost by default (previously was world accessible)

sets defaults to bind to localhost properly (previously flags SAID the defaults were localhost but were actually <IP_ADDRESS>)
removes an unused DefaultConfig defined in api/gateway/package
moves defaults (bind address and port) to vars so we can use them to set in flag usage messages so they don't drift out of sync with reality
adds tests for the defaults
adds test cases for flag definitions
adds test cases for flag parsing

Other
skips suggestion of binding vhosts, we don't do any kind of middleware checking in rpc (i believe in geth this would be a way to bind to <IP_ADDRESS> then limit to allowed remote IPs making requests). I'd suggest this is a more advanced configuration use case and belongs outside of the node itself to be managed by the infra operator where it'd be handled by a ingress gateway or routing rule to the machine/instance/orchestrator where the node software is running

Codecov Report
Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (b7b6350) 50.88% compared to head (6481f61) 50.42%.
Report is 1 commits behind head on main.

Files
Patch %
Lines

das/daser.go
63.63%
3 Missing and 1 partial :warning:

das/options.go
0.00%
4 Missing :warning:

nodebuilder/das/constructors.go
0.00%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2955      +/-   ##
==========================================
- Coverage   50.88%   50.42%   -0.47%
==========================================
  Files         168      176       +8
  Lines       11021    11209     +188
==========================================
+ Hits         5608     5652      +44
- Misses       4915     5050     +135
- Partials      498      507       +9

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

I think this was actually a breaking change. If you run node in docker, you now need to add --xxx.addr flags if you want to reach out to the node from container published ports


Add Conformance of 'DateInterval' to protocol 'Decodable'

Add Conformance of 'DateInterval' to protocol 'Decodable'  to match Darwin.

Can you add tests?
Good catch — I need to figure out a good way to API diff to finish catching these cases.

Actually. I would like to write those tests, I think (I want to extend fixtures to add Codable support).

@swift-ci please test Linux

Hmm, in the Swift overlay, the Codable conformance is synthesized. Why does this diverge from that?


Formatting of log on Windows

The log looks fine on Linux. However, on Windows it's formatted weirdly.

Looks like it could be an issue with how the default logging provider formats colored messages (since I'm just using ANSI color codes which may not be 100% platform independent yet). You can remove the color formatting though by manually configuring the logging provider your application uses, instead of letting it decide automatically: https://andrewlalis.github.io/slf4d/guide/configuring.html
Basically, add this to the start of your main function:
import slf4d;
import slf4d.default_provider;
auto provider = new shared DefaultProvider(false, Levels.TRACE);
configureLoggingProvider(provider);

Thank you. This partially solved it.

Looks like this is an issue with Phobos' padLeft and padRight functions. I'll investigate further tomorrow.

In the meantime, instead of SLF4D's default provider, I can also recommend slf4d-dlog, which forwards log messages to Tristan Kildare's DLog logger. I'll need to spin up a windows instance this evening to actually be able to test this behavior.

okay, I am not able to reproduce the issue on my windows installation. I'll make some changes to my SLF4D library to disable colored output by default to hopefully improve compatibility. If you still do encounter the error, please open an issue in the SLF4D repository with more details about your OS/terminal/etc.

Ok, I'll check on the weekend.


Chef 12.5+ Template resource subscription actions broken for wrapped/layered cookbooks

Description
Starting in Chef 12.5, Subscription actions based on template changes in a layered/wrapped cookbook are not executing.
Chef Version
12.11.18
Platform Version
CentOS 6
Replication Case
In my organization we use a custom tomcat cookbook to build out tomcat instances.  There are many proprietary customizations that get applied to these instances, so a generic wrapper was created and custom attributes are applied at that layer so that many different subsystems can utilize it.
I have created 3 stripped down cookbooks with only the relevant code included to reproduce this issue.  In order to skip the installation of tomcat and to simplify the example, these cookbooks will be restarting the cron daemon instead of tomcat and using a placeholder file called server.xml which we will use to trigger the restart action.
I only noticed this issue recently when our newer amazon ami's started including the latest chef client by default.  Prior to that we were only using chef 12.4.0.
The cookbooks are:
base_test - Provider Cookbook that simulates a tomcat installation and associated configuration
base_wrapper -  Cookbook that depends on base_test and applies additional customizations.  For this test, it merely just wraps the install to simulate the issue being reported.
test_recipe_cookbook2 - Application cookbook that installs a tomcat configuration into /data/servers/testy_tomcat_1.  This depends/includes base_wrapper, which in turn depends/includes base_test.
The issue is that prior to Chef 12.5, when a change occurred to a file, in this case server.xml, a subscription to that resource would result in an restart to the tomcat if that resource changed.  After 12.5, that action no longer takes place.
####To reproduce:

install Chef-client 12.4.3
clone the above 3 cookbooks into your cookbook repo on a CentOS 6 host
run chef-client -z -o test_recipe_cookbook2.
run step 3 again to verify idempotency (0 resources updated)
echo "extra text" >> /data/servers/testy_tomcat_1/conf/server.xml
run chef-client -z -o test_recipe_cookbook2.
Notice that the crond service will be restarted after the template for server.xml is updated.
Install Chef-client 12.11.18 or any version 12.5 or newer and rerun steps 3-6.
After upgrading, you will notice that the template for server.xml is updated, but the restart action no longer takes place.

Client Output
####Chef 12.4.3 (restart happens)
[root@crouton-vaa01 chef-repo]# chef-client -z -o test_recipe_cookbook2
[2016-06-10T13:56:23-04:00] WARN: No config file found or specified on command line, using command line options.
Starting Chef Client, version 12.4.3
[2016-06-10T13:56:24-04:00] WARN: Run List override has been provided.
[2016-06-10T13:56:24-04:00] WARN: Original Run List: []
[2016-06-10T13:56:24-04:00] WARN: Overridden Run List: [recipe[test_recipe_cookbook2]]
resolving cookbooks for run list: ["test_recipe_cookbook2"]
Synchronizing Cookbooks:

base_wrapper
test_recipe_cookbook2
base_test
Compiling Cookbooks...
Converging 2 resources
Recipe: base_wrapper::default

base_test_instance[testy_tomcat_1] action create

directory[/data/servers] action create (up to date)
directory[/data/servers/testy_tomcat_1] action create (up to date)
directory[/data/servers/testy_tomcat_1/lib] action create (up to date)
directory[/data/servers/testy_tomcat_1/logs] action create (up to date)
directory[/data/servers/testy_tomcat_1/temp] action create (up to date)
directory[/data/servers/testy_tomcat_1/webapps] action create (up to date)
directory[/data/servers/testy_tomcat_1/work] action create (up to date)
directory[/data/servers/testy_tomcat_1/etc] action create (up to date)
directory[/data/servers/testy_tomcat_1/conf] action create (up to date)
directory[/data/servers/testy_tomcat_1/properties] action create (up to date)
template[/data/servers/testy_tomcat_1/conf/server.xml] action create

update content in file /data/servers/testy_tomcat_1/conf/server.xml from bf872c to 8d5d54
--- /data/servers/testy_tomcat_1/conf/server.xml	2016-06-10 13:55:52.332584752 -0400
+++ /tmp/chef-rendered-template20160610-2650-1ib7k9m	2016-06-10 13:56:24.294352947 -0400
@@ -1,3 +1,2 @@
-fjkadslfjasl;Placeholder text
-extra text
+Placeholder text

service[crond] action enable (up to date)
service[crond] action restart

restart service service[crond]

service[crond] action enable (up to date)
[2016-06-10T13:56:24-04:00] WARN: Skipping final node save because override_runlist was given

Running handlers:
Running handlers complete
Chef Client finished, 3/15 resources updated in 0.889854752 seconds
####Chef 12.11.18 (restart does not happen)
[root@crouton-vaa01 chef-repo]# chef-client -z -o test_recipe_cookbook2
[2016-06-10T13:54:38-04:00] WARN: No config file found or specified on command line, using command line options.
Starting Chef Client, version 12.11.18
[2016-06-10T13:54:40-04:00] WARN: Run List override has been provided.
[2016-06-10T13:54:40-04:00] WARN: Original Run List: []
[2016-06-10T13:54:40-04:00] WARN: Overridden Run List: [recipe[test_recipe_cookbook2]]
resolving cookbooks for run list: ["test_recipe_cookbook2"]
Synchronizing Cookbooks:

base_wrapper (0.1.0)
test_recipe_cookbook2 (0.1.1)
base_test (0.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 2 resources
Recipe: base_wrapper::default

base_test_instance[testy_tomcat_1] action create

directory[/data/servers] action create (up to date)
directory[/data/servers/testy_tomcat_1] action create (up to date)
directory[/data/servers/testy_tomcat_1/lib] action create (up to date)
directory[/data/servers/testy_tomcat_1/logs] action create (up to date)
directory[/data/servers/testy_tomcat_1/temp] action create (up to date)
directory[/data/servers/testy_tomcat_1/webapps] action create (up to date)
directory[/data/servers/testy_tomcat_1/work] action create (up to date)
directory[/data/servers/testy_tomcat_1/etc] action create (up to date)
directory[/data/servers/testy_tomcat_1/conf] action create (up to date)
directory[/data/servers/testy_tomcat_1/properties] action create (up to date)
template[/data/servers/testy_tomcat_1/conf/server.xml] action create

update content in file /data/servers/testy_tomcat_1/conf/server.xml from 12c607 to 8d5d54
--- /data/servers/testy_tomcat_1/conf/server.xml	2016-06-10 13:54:32.004167192 -0400
+++ /data/servers/testy_tomcat_1/conf/.chef-server.xml20160610-2285-1if2xle	2016-06-10 13:54:40.249107433 -0400
@@ -1,2 +1,2 @@
-fjkaslfdjal;Placeholder text
+Placeholder text

service[crond] action enable (up to date)

service[crond] action enable (up to date)
[2016-06-10T13:54:40-04:00] WARN: Skipping final node save because override_runlist was given

Running handlers:
Running handlers complete
Chef Client finished, 2/14 resources updated in 01 seconds

Could you maybe create a slightly more minmal repro case? Or otherwise explain more concisely what you are trying to do? This is still a ton of both code and output to look at with little indication of what your goal is.

I thought this code was pretty minimal and stripped down.  You should see what I started with :).
The gist is this  with 12.4 and below, restarts were triggered.  With 12.5 and above, restarts are no longer triggered. I have removed the debug from above and removed mention of one cookbook.

I think you are describing that resources inside a provider's action method are no longer visible to subscriptions from an enclosing run context. Meaning if you have:
class MyResource < Chef::Resource
  action :run do
    template '/foo'
  end
end

my_resource 'foo'
other_resource 'bar' do
  subscribes :whatever, 'template[/foo]'
end

it no longer triggers the notification. Is that a reasonable summary?

If so, that's expected and correct :) You should alter the notification to be from my_resource[foo]. We now enforced the encapsulation a lot more strongly when working with custom resources. The stuff inside them are like private methods/variables, you can't touch them from the outside.

No, you would subscribe to base_test_instance[whatever]. You can no longer look inside the internals of another resource, which should never have worked but we've gotten progressively better at implementing this.

So, in this case the fix was
subscribes :restart, "base_test_instance[#{instanceName}]"

The resource is dynamic.
Thanks for the guidance.


Error trying to apply GCP Provider

I am following along in the book End-to-End-Automation with Kubernetes Crossplane and I am hitting an error when trying to apply the GCP Provider.  I am running Kind v0.14 version 1.21.1 on MacOS. The specific error " resource mapping not found for name: "provider-gcp" namespace: "cross-plane" from "gcp-provider.yaml": no matches for kind "Provider" in version"pkg.crossplane.io/v1 ensure CRDs are installed first"
Is there something that needs to be installed first I have the kubectl extension installed already for crossplane and any help would be greatly appreciated.

The error indicates that the crossplane is not running successfully in your cluster.
Can you share the output of --- kubectl get all -n crossplane-system
Most probably the issue happened because you try to apply the Provider before Crossplane components become alive. You have to wait till the Crossplane components are up and running.

I fixed it all good thanks.
On Thu, Oct 6, 2022, 1:19 PM Arun Ramakani @.***> wrote:

The error indicates that the crossplane is not running successfully in
your cluster.
Can you share the output of --- kubectl get all -n crossplane-system
Most probably the issue happened because you try to apply the Provider
before Crossplane components become alive. You have to wait till the
Crossplane components are up and running.
—
Reply to this email directly, view it on GitHub
https://github.com/PacktPublishing/End-to-End-Automation-with-Kubernetes-and-Crossplane/issues/1#issuecomment-1270433121,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEJKELUMKLNGVP6DYN7XELLWB4CYHANCNFSM6AAAAAAQSHXIME
.
You are receiving this because you authored the thread.Message ID:
<PacktPublishing/End-to-End-Automation-with-Kubernetes-and-Crossplane/issues/1/1270433121
@github.com>


Access data v2

Status
Ready
Related Content Pull Request
Related PR: https://github.com/demisto/content/pull/20823
Description
Docker image demisto/accessdata:<IP_ADDRESS>812 needs to rebuild as dependent module is changed(cached as part of docker image)
The image was originally added in https://github.com/demisto/dockerfiles/pull/8326/files.
Since then, changes were made in branch AccessDataV2. We need to incorporate these changes into a latter tag of the demisto/accessdata.

@sriram7797 - Please make changes in a new branch, modify the branch git URL:
...
RUN pip install git+https://github.com/AccessDataOps/FTK-API-SDK.git@NEW_BRANCH

And then create a new PR.


Extend JSON methods with format

add new method:

parseObject(String text, Type type, String format, JSONReader.Feature... features)
parseObject(byte[] bytes, Type type, String format, JSONReader.Feature... features)
parseObject(InputStream input, Type type, String format, JSONReader.Feature... features)
toJSONString(Object object, String format, Filter[] filters, JSONWriter.Feature... features)
toJSONBytes(Object object, String format, Filter[] filters, JSONWriter.Feature... features)
writeTo(OutputStream out, Object object, String format, Filter[] filters, JSONWriter.Feature... features)

Codecov Report

Merging #133 (6465c35) into main (44aab81) will decrease coverage by 1.11%.
The diff coverage is 60.29%.

@@             Coverage Diff              @@
##               main     #133      +/-   ##
============================================
- Coverage     65.66%   64.54%   -1.12%
+ Complexity     8520     8399     -121
============================================
  Files           421      421
  Lines         46916    46842      -74
  Branches       9558     9537      -21
============================================
- Hits          30809    30236     -573
- Misses        12436    12954     +518
+ Partials       3671     3652      -19

Impacted Files
Coverage Δ

core/src/main/java/com/alibaba/fastjson2/JSON.java
71.15% <60.29%> (-2.18%)
:arrow_down:

...n/java/com/alibaba/fastjson2/util/UnsafeUtils.java
30.18% <0.00%> (-49.06%)
:arrow_down:

...main/java/com/alibaba/fastjson2/util/JDKUtils.java
40.25% <0.00%> (-30.07%)
:arrow_down:

...va/com/alibaba/fastjson2/reader/ValueConsumer.java
16.66% <0.00%> (-16.67%)
:arrow_down:

...in/java/com/alibaba/fastjson2/JSONReaderASCII.java
66.74% <0.00%> (-14.76%)
:arrow_down:

...in/java/com/alibaba/fastjson2/JSONWriterUTF16.java
66.78% <0.00%> (-10.61%)
:arrow_down:

...java/com/alibaba/fastjson2/JSONWriterUTF8JDK9.java
73.41% <0.00%> (-8.87%)
:arrow_down:

...in/java/com/alibaba/fastjson2/JSONWriterJSONB.java
52.04% <0.00%> (-6.05%)
:arrow_down:

.../main/java/com/alibaba/fastjson2/util/IOUtils.java
54.39% <0.00%> (-5.07%)
:arrow_down:

...baba/fastjson2/reader/FieldReaderObjectMethod.java
74.41% <0.00%> (-4.66%)
:arrow_down:

... and 43 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 44aab81...6465c35. Read the comment docs.


[SPARK-48683][SQL] Fix schema evolution with df.mergeInto losing when clauses

What changes were proposed in this pull request?
This PR fixes an issue in the DataFrame.mergeInto API where defined when clauses are lost after calling the withSchemaEvoltuion() method.
The issue is caused by not copying over existing clauses to the new writer.
Why are the changes needed?
It fixes a bug.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
New test.
Was this patch authored or co-authored using generative AI tooling?
No.

Merged to master.


Files

I think having a File protocol is essential. For example it'd allow a dev to take a File from GridFS (MongoDB) and directly output it in the browser like you would with a profile picture.
The reason for a protocol is that a file struct would copy huge amount of data all the time. And a class would be referencing a file even though you want to copy it for editing. So this way we'll have both options without having two types of files.
Alternatively we could have a file struct and create a container around that... so let's discuss!

What are the informations you need from the file? I don't think a File should have data property. I think the best abstraction for files would be something like a stream, where you can read and write binary data to. In most scenarios a stream itself would be enough.

The problem would then be the metadata associated with the File. Also, I really don't think we should import Foundation.

S4 needs to remain Foundation free.

What about this:
protocol File: Stream {
    var path: String { get }
}

we could even add initializers


[FEATURE] SSH tunnel support

Most databases I want to connect to are only reachable with an SSH tunnel through a bastion server. Some database clients (DBeaver, DataGrip, pgcli off the top of my head) support setting up tunnels in their config and it'd be nice if dblab did as well.

+1 to this. I make use of SequelAce usually but I'd love to have DBLab as an alternative for when I'm in a terminal scenario and don't have a GUI. I was just reviewing all the docs to see if this was supported and can't find any mention of "proxy" "tunnel" or "ssh".

@mhammerly Thanks for bringing this to my attention. Can't promise to work on this right away, because I have other issues with higher priority, but I've been doing my best to address users' requests lately.

whenever you get around to it (if you can at all), thanks! just made an issue to give myself and others a place to subscribe
dblab looks cool, may write a little wrapper script so i can try it out in the meantime!

Really looking forward to have SSH tunneling built in 👍
I am not a golang developer, but I could have a look into this. Would only need to know if there is a good package for it 😉

DBLAB looks really cool. I am really looking forward to have this built in as well 👍🏽

This library should make it easy to add SSH tunneling to DB connections:

https://github.com/jfcote87/sshdb


docker-mkvtoolnix OMV in Raspberry Pi

Good afternoon everyone,
I have a raspberry pi with omv and docker, I'm trying to install this image but I can't, could you help me with the steps?
Greetings

Hi, this container image doesn't support (yet) arm platforms.

Thank you for answering jlesage, are you planning a date or are you working on it? thanks for your work, greetings

No date, but yes I'm working on it :)

Ok, thank you very much, I'll be attentive

Also trying to run it on the new raspberry pi 4 :) looking forward to it

Also looking for raspberry pi 4 support :)

Not trying to derail anything here, but you all might not be aware that I've been providing native packages for Raspberry Pi OS since June 2020 myself.

Not trying to derail anything here, but you all might not be aware that I've been providing native packages for Raspberry Pi OS since June 2020 myself.

However, the arm64 platform cannot run. Not only raspberry pie OS is arm.
I tried to run your project on the synology ds120j device. But the prompt is not compatible with arm64 platform. I have also tried to compile your code with docker buildx, which is compatible with arm64, but it always prompts errors.

hi! also looking for an arm release. I have tried to run it in my OpenWRT device which is armv7 and also on the Raspberry Pi 4 which is running Bullseye so it's not letting me install it either


Integrate Playwright tests with Treehouse project

Tests are in a decent state structurally and are ready to be integrated into the Treehouse project.

I was planning to port it to using Deno since I'm trying to avoid having Node.js involved in the codebase. However there was a bug preventing this. It looks like it's nearly resolved, but I haven't tried it:
https://github.com/denoland/deno/issues/16899#issuecomment-1651698290

@progrium when should we check back? i'd like to have a version history soon-ish if i'm going to keep adding tests

FYI it seems like that bug is fixed for Deno.


New features: Cropping around ROI & Multi-channel input

First of all, warm thanks to @perone et al. for developing medicaltorch. Really really useful tools.
Based on your implementation, we would like to implement 2 new features in our project, described hereafter. Just wondering if you would be interested in us contributing / integrating these features into your repo via PR...etc. or if you think these features are a bit too specific to our project, and you would like to keep the code generic on that aspect.
Crop around a ROI:
We are currently using your cropping tool which crops around the center of the image with a given crop size. We would like to crop around a ROI instead (to deal with issues of class imbalance, objects to detect located close to the edge of the image...etc.).
To do so, we would have to refactor the loader so that we could input: input image, target mask (ie gt) and a ROI mask.
Not sure yet what is the best way to do this: eg add roi in the dictionary along side with input and gt, or add a channel to the gt, or...
Multi-channel input:
We would like to send a multi-contrast input to our network (ie slice of T1w, slice of T2w, both being previously co-registered).
Again, not sure yet of what is the best way to go: input a list of filenames for the input instead of a single filename? or load each contrast independently, and further concat the contrasts to create the multi-channel input?
Cheers!

Hey @charleygros !! I'm on holiday now so I won't be able to look into it before December, but these are important features that I might help later, the issue for me now is only the timing =(

No worries @perone :-)
We will keep you updated when you will be back, enjoy :+1:

Follow-up: We fork medicaltorch (here) and implemented the changes described above (but some limitations / other ideas in mind). We would be happy to discuss them with you when time suits you, in order to be possibly merged into the official repo'.


Fix Python 3.10 ssl Deprecation Warning

Squash this DeprecationWarning:
Python 3.10.10 (main, Feb 16 2023, 02:55:02) [Clang 14.0.0 (clang-14<IP_ADDRESS>)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.7.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import ssl

In [2]: ctx = ssl.create_default_context(ssl.Purpose.SERVER_AUTH)

In [3]: ctx.options |= ssl.OP_NO_SSLv3

In [4]: ctx.options |= ssl.OP_NO_SSLv2

In [5]: ctx.options |= ssl.OP_NO_TLSv1
<ipython-input-8-791bbefea16b>:1: DeprecationWarning: ssl.OP_NO_SSL*/ssl.OP_NO_TLS* options are deprecated
  ctx.options |= ssl.OP_NO_TLSv1

In [6]: ctx.options |= ssl.OP_NO_TLSv1_1
<ipython-input-9-55e0d93abf34>:1: DeprecationWarning: ssl.OP_NO_SSL*/ssl.OP_NO_TLS* options are deprecated
  ctx.options |= ssl.OP_NO_TLSv1_1

Thanks for the submission @bsandrow , tho if we going to change this , couple of things i would personally change..

dont include the ssl_context options as a global static
as per the https://docs.python.org/3/whatsnew/3.10.html it states

[OP_NO_SSLv2](https://docs.python.org/3/library/ssl.html#ssl.OP_NO_SSLv2), [OP_NO_SSLv3](https://docs.python.org/3/library/ssl.html#ssl.OP_NO_SSLv3), [OP_NO_TLSv1](https://docs.python.org/3/library/ssl.html#ssl.OP_NO_TLSv1), [OP_NO_TLSv1_1](https://docs.python.org/3/library/ssl.html#ssl.OP_NO_TLSv1_1), [OP_NO_TLSv1_2](https://docs.python.org/3/library/ssl.html#ssl.OP_NO_TLSv1_2), and [OP_NO_TLSv1_3](https://docs.python.org/3/library/ssl.html#ssl.OP_NO_TLSv1_3) are replaced by sslSSLContext.minimum_version and sslSSLContext.maximum_version.

Thanks for raising the issue though, I will do a change today that aligns with pythons deprecation method and future proofing into 3.11

looking at both the documentation and and testing real world code...
            self.ssl_context.options |= (ssl.OP_NO_SSLv2 | ssl.OP_NO_SSLv3 | ssl.OP_NO_TLSv1_1)
            if sys.version_info[:2] <= [3, 10]:
                self.ssl_context.options |= ssl.OP_NO_TLSv1

Is a better approach as sslSSLContext.minimum_version and sslSSLContext.maximum_version do not play any factor that i see into the ctx options


Updating documenation for testing Ranger policies

@anusricorp : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@anusricorp : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@anusricorp Thanks for the contribution. Looks good.
#sign-off

#sign-off

@hrasheed-msft - Hi, I made some edits to the updates for grammar and Microsoft style. Could you check to see that I didn't change the meaning? Thanks.

Looks good; merging.


IDE Subscriptions

Related to #6, implement subscriptions to certain events. If the user opens some menu, then switch to a context-dependent grammar. This should make recognition more accurate.

SDK Docs are not much help here. Need to intercept menu opening actions to swap an appropriate grammar #6.


Should rename to NMRData2D and also add NMRData1D

https://github.com/cheminfo/cheminfo-types/blob/main/src/spectra/Data2D.ts#L11C1-L23

@lpatiny your link is 404


Update KriKri with generator

Please wait to merge.  We should pin this to a specific version of krikri before bringing it into develop.

This has been :squash:ed and force pushed.  I believe it is ready to go.


CloudWatch Logs Addon with Fluent Bit

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Almost there, please see my comments.

@shapirov103 All issues fixed. Please review and run e2e.

/do-e2e-tests

@shapirov103 I see the stack completed and deleted fine but we still dont see a comment on the PR.


Can ObjectMapper work in iOS 7.0

Deployment target is 8.0 in Podspec, how can I use it in 7.0 directly?
Thanks

Hey there, please take a look at #40


Create BREP shapes from mesh?

From @greyltc
As others have said, you might use a 3d scanner to get a mesh from a real object. I've had decent success going from mesh -> solid model using FreeCAD. Import the mesh, choose the part toolbox and go "Create Shape from mesh..." --> "Convert to solid" --> "Create a copy" --> "Refine shape." You might get something from that workflow that's surprisingly good!

I was curious about this in the context of OCCT, and this discussion from around 6 years ago seems to indicate it was not possible with OCCT. https://dev.opencascade.org/content/convert-triangular-mesh-brep

That's a tough problem that has already been an issue for topological optimization. Current implementation requires the user to rework upstream it's design given the result of the optimization. Probably an area where some kind of IA could do something to improve.
Now I don't think it's worth loosing time on this problem. I think there is more solvable issues that should have the priority

Rabbit.stl.zip
RabbitSolid.step.zip
I've attached a rabbit-mesh (.stl) that I turned into a rabbit-solid (.step) with the workflow above.

I think a little more could be done than what is done here (there is an stl import here: https://github.com/JustinSDK/cqMore).

This method (https://build123d.readthedocs.io/en/latest/direct_api_reference.html#direct_api.Face.sew_faces) allow faces to be "sewed" together or unified.  If one was to go through each of the faces in the rabbit and find the faces with normals "almost" in the same direction - they could be rebuilt as non-planar by reusing the three edges and a calculated central vertex, then sewn together. If that doesn't take forever it might be interesting.

It sure seems interesting, it will obviously take a while and the result will be more or less usable depending on how smart is the Algo to merge faces, the real problem honestly is that stl is the standard for 3D printing but it's such a lossy format. Especially when most of these files are made in software using BREP that's a shame  that these files are not shared as STEP, it would solve a lot of issues !

Currently the Mesher class (see https://build123d.readthedocs.io/en/latest/import_export.html#d-mesh-import) allow both STL and 3MF (mesh) files to be imported as build123d Solid objects. However, no further processing as described above is done to attempt to recover the "true" BREP shape which therefore results in a faceted object.

Some interesting papers using ML to reconstruct brep from stl or point cloud data
https://arxiv.org/abs/2105.09492
https://arxiv.org/abs/2401.15563


Add event types for Cognito PreAuthentication Lambda trigger

Adds the following Cognito event types:

events.CognitoEventUserPoolsPreAuthentication
events.CognitoEventUserPoolsPreAuthenticationRequest
events.CognitoEventUserPoolsPreAuthenticationResponse

Added tests are based on existing Cognito tests sourced from this repository (specifically: TestCognitoEventUserPoolsPreSignupMarshaling and TestCognitoUserPoolsPreSignupMarshalingMalformedJson).
Parameters conform to AWS documentation for Cognito PreAuthentication: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-authentication.html
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Codecov Report

Merging #214 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #214   +/-   ##
=======================================
  Coverage   75.88%   75.88%
=======================================
  Files          18       18
  Lines         647      647
=======================================
  Hits          491      491
  Misses        115      115
  Partials       41       41

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 578ce6d...8b8292b. Read the comment docs.

Thanks!


2fa.confirm middleware do not attach to POST login route.

Checklist

[X] I have checked my stack trace and logs.
[X] I can reproduce this in isolation.
[ ] I can suggest a workaround or PR.

Dependencies

PHP: 8.1.3 Linux
Laravel: 9.1.0

Description
This is NOT a bug report at the moment.
I just upgraded the project I'm working on to L9. As such I had to move from darkghosthunter/laraguard to laragear/two-factor. This change required a lot of code change and now I'm not so sure if I took the best path.
My app has no frontend. It's just a backend where all the action happens. All users must be logged in, but not everyone may have 2FA enabled. The 2fa_code is asked on a dedicated form just after the login one IF the user has 2FA enabled.
So I thought to do this in routes/web.php:
Route::post('/', 'Auth\LoginController@login')
    ->name('login.submit')
    ->middleware('2fa.confirm');

But nope... it won't work that way. At least it didn't here. Users with 2FA enabled are just logged in as soon as they submit their login credentials. No 2FA form page presented as it used to be in  darkghosthunter/laraguard wonderful magic listeners.
After thoroughly reading this package README and many attempts later, the only way I found to accomplish the old behavior was to override L9's Auth\LoginController@login. I'm not so confident if I got right and what kind of security holes I may have opened. Here's how it looks now:
<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Auth;
use DB;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Laragear\TwoFactor\TwoFactor;
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;

class LoginController extends Controller
{
    /**
     * Where to redirect users after login.
     *
     * @var string
     */
    protected $redirectTo = RouteServiceProvider::HOME;

    /**
     * Override AuthenticatesUsers::login() to implement 2FA.
     *
     * @see AuthenticatesUsers::login() To the original login implementation.
     * @see https://github.com/Laragear/TwoFactor#logging-in To the Laragear\TwoFactor login implementation.
     *
     * @param Request $request
     *
     * @return JsonResponse|RedirectResponse|Response|SymfonyResponse
     */
    public function login(Request $request) {
        $credentials = $request->validate([
            $this->username() => 'required|string',
            'password' => 'required|string',
        ]);

        if (method_exists($this, 'hasTooManyLoginAttempts') &&
            $this->hasTooManyLoginAttempts($request)) {
            $this->fireLockoutEvent($request);

            return $this->sendLockoutResponse($request);
        }

        $twoFactor = DB::table('two_factor_authentications')->where('label', $credentials['email'])->count();
        if ($twoFactor && ! $request->filled(config('app.2fa_field'))) {
            return response()->view(
                'two-factor::confirm',
                [
                    'credentials' => $credentials,
                    'remember' => $request->filled('remember'),
                ]
            );
        } else {
            if (Auth::attemptWhen($credentials, TwoFactor::hasCodeOrFails(), $request->filled('remember'))) {
                if ($request->hasSession()) {
                    $request->session()->put('auth.password_confirmed_at', time());
                }

                return $this->sendLoginResponse($request);
            }
        }

        $this->incrementLoginAttempts($request);

        return $this->sendFailedLoginResponse($request);
    }
}

It worked as expected, except that if users type a wrong 2FA code shw will be redirected back to login page (user/password). I can live with that, as it won't make explicit to an attacker if the wrong piece of data was the email, password or the TOTP code.
But at the end, is that right? Can it be improved somehow? Did I broke my auth toy?
PS: The documentation is far from clear when someone needs a custom login method like the case above (TOTP code in it's own form). But as I'm not sure if this is a bug with the middleware not attaching to POST login method, I will leave this as is for now.
Reproduction
Not available yet.
Expected behavior
It would be really nice if Route::post()->middleware('2fa.confirm') just worked as expected (i.e. force a user with 2FA enabled to enter TOTP code on it's own form page, leave users with 2FA disabled alone and just log them in). This would also leave such a critical method as Auth\LoginController@login alone.
Stack Trace
The issue generates no stack trace.

I just deleted 15 paragraphs to just say this:
Yes, a bug.
You see, the middleware works over TOTP, which itself works over an authenticated user. If there is no authentication, it should fail, even if the guest user will never be able to confirm, but that's the principle.
Fix incoming? Yes. When? The café opens tomorrow so I can sap wifi.

LOL! Been there, done that.
I thought I was crazy because your documentation is very clear on middleware('2fa.confirm') usage, including some examples with POST routes that should have worked just like I supposed they would. When it didn't and I was forced to override Auth\LoginController@login, then I feel something might be wrong.
No worries about when, Italo! My dirty fix works for now, so I have plenty of time to wait for your magic. If I only had a little bit more time on hands, I could even provide a PR for you... unfortunately this is not the case atm.
Thanks a lot for the quick response! Have a nice week and drink a good coffee while enjoying free wifi.

Seen the test, the test suite won't break, which means... I have to add a new test.

Now I remember it's the same functionality than the prior version. Which version where you on?
Also, it won't fix your login. If the middleware requires the user to be authenticated, you will get the message "two-factor required" forever because the credentials won't reach the login at all.
An alternative would be two to make catch the InvalidCodeException and return a response indicating the TOTP failed. I could make another Exception for when the TOTP is required but empty.

Since I can't fix this, let me recommend you to this awesome LoginRequest courtesy of Laravel Breeze (is what I use for).
Add the secret sauce as attemptWhen():
$attempt = Auth::attemptWhen(
    $this->only('email', 'password'),
    TwoFactor::hasCodeRoFails(),
    $this->boolean('remember')
);

if (! $attempt) {
    // ...
}

Then authenticate once it hits the controller.
public function login(LoginRequest $request)
{
    try {
        $request->authenticate();
    } catch (EmptyCodeException $e) {
        return 'Two Factor code is required to proceed';
    }
}

My versions from composer:
{
    "php": "^8.1",
    "laragear/two-factor": "^1.0",
    "laravel/framework": "^9.1"
}

Yeah, I was thinking about it and you're right. No cookies for me. If I understood it right, there's no way to implement the same behavior as the old (EnforceTwoFactorAuth)[https://github.com/DarkGhostHunter/Laraguard/blob/v3.0.0/src/Listeners/EnforceTwoFactorAuth.php], unless I implement it myself, right? The requirement here is to have a way to check if an about to be logged in user (we know user email) has 2FA enabled so the TOTP entry form could be displayed.

PS: I was about to send the text above and your suggestion popped in. I will try it... Thanks again, @DarkGhostHunter!

Out of curiosity, why you removed that feature? Maybe the listener was too aggressive, but the feature it provides is pretty handy.

Because was a security risk.
Credentials (password) are not to be saved somewhere. When you input your password, it saved it permanently in the view, meaning, anything could read the view and get your password. At that time, it was the only way to make the login hassle-free.

Sure. It is a security risk indeed.
But using encrypted connections mitigates that risk as the plain-text counterparts of users credentials will be available only to the UA and nowhere else in the loop. Of course there are MITM attacks that might obtain that data, but so is spoofing, phishing or even social engineering attacks capable to do so even if credentials are not presented to 2FA view. In the end it's all about compromises.
Maybe that functionality can return only if a secure protocol is in place, what's pretty usual these days.
Anyway, thanks for the reply and the suggestion of Breeze's LoginRequest. I'm working on it right now and looks promising.
Have a great week!

Sure. It is a security risk indeed.
But using encrypted connections mitigates that risk as the plain-text counterparts of users credentials will be available only to the UA and nowhere else in the loop. Of course there are MITM attacks that might obtain that data, but so is spoofing, phishing or even social engineering attacks capable to do so even if credentials are not presented to 2FA view. In the end it's all about compromises.
Maybe that functionality can return only if a secure protocol is in place, what's pretty usual these days.
Anyway, thanks for the reply and the suggestion of Breeze's LoginRequest. I'm working on it right now and looks promising.
Have a great week!

I honestly don't think it's gonna come back as it was. I also tried flashing the credentials into the session, but that way there you can't add them to the incoming request... except using the middleware and flashing the session credentials into the request you have to capture after their are valid... 😴


tour: [REPLACE WITH SHORT DESCRIPTION]

Context: https://tour.golang.org/basics/6
We've got
	a, b := swap("hello", "world")
	fmt.Println(a, b)

In main, however it doesn't print anything

I was not able to reproduce the bug
It prints out world hello for me. Could you provide more context

There were some server-side issue 2 weeks ago that could cause no output, but they should be fixed now. Closing here.


Plotting methods

It would be nice to have plotting methods that allow for easily comparing variables in different parts of a tree.
One simple way would be to have a dt.plot(variable, **kwargs) method which uses a legend to distinguish between variables, i.e.
def plot(self, variable, **kwargs):
    fig, ax = plt.subplots()

    for node in self.subtree:
        da = node[variable]
        da.plot(ax=ax, label=node.name, **kwargs)

    ax.legend()
    ax.set_title(variable)
    plt.show()

The use cases for this would be multi-resolution datasets, or multi-model ensembles, where the user wants to see how a single variable varies across different datasets.
Care would have to be taken to ensure that incompatible dimensions or coordinates were handled smoothly.

Closed for #9348


[CP-ZOOKEEPER] - Add labels in charts

What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
How was this patch tested?
(Please explain how this patch was tested. E.g. helm upgrade on minikube, helm install on gke)

@confluentinc It looks like @cesarokuti just signed our Contributor License Agreement. :+1:
Always at your service,
clabot

Hi @gAmUssA can anything be done to merge this?

Hi @gAmUssA can anything be done to merge this?


Reformat the solution code for breadth-first-search.english.md

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

LGTM  and congratulations on your first PR 😄🎉
Thanks for contributing!


Add multiple receivers

To be able to send emails to all the team (using the --remark official flag in the client), it is expected to add the team's aliases to the metadata file.

@troydai PTAL :D

I will merge when CI passes.


Add default Azure tags to config spec to fix sync loop

Issue: https://github.com/rancher/rancher/issues/37608

Problem

When a private AKS cluster is provisioned, aks-operator tries to eternally remove auto-generated tags from the upstream spec which prevents the cluster from becoming active.
Solution

The solution here is to add the default Azure tags to the config.Spec on the first sync that aks-operator does for a newly provisioned cluster. So if the config's generation = 1 then we add upstream tags to the config spec. Otherwise, we do a normal tag sync. Once the cluster becomes active, aks-operator syncs the tags with the private cluster correctly so there's no need to change any further logic.
Testing

Provision an AKS private cluster using the Rancher UI
Provision a bastion VM in Azure
Login in to the bastion VM and run the import command to deploy the cluster agent, etc.
Verify that the default Azure tags were synced to the Rancher config object by checking that the private cluster is active and the tags appear in the cluster yaml (may take 1-2 mins).

@thedadams There's no release/v2.6 branch in the aks-operator repo. What do you mean?

My apologies. I didn't realize this was an aks-operator and not a rancher/rancher change. Please forgive my sloppiness.


Fix a few mem leaks in ipc-server

First one is a simple missing close() before a return in ipc_handle_connection().
The second one is a bit more complicated:
A couple break were not going all the way out of the switch, so I replaced all these implicit goto (ie. break) with explicit ones to always exit the switch. A break was also missing, resulting in a false-positive error msg in IPC_GET_BAR_CONFIG.
This also fixes the buf mem leak, which wasn't freed when hitting the default branch.
I also added a return when buf fails to malloc, to avoid a null-dereference in recv().
I also made ipc_send_reply() consistent by never closing the connection, and having the caller explicitly do it when appropriate. I wasn't sure if ipc_send_event() should always close it, so I kept the old behaviour of only closing on error.
Note that it's late (2am) and I'm quite tired, so you might want to review this carefully :wink:
It builds, but I haven't tested it. (sway doesn't run on my computer. Half the reason I'm doing this code-diving and bug-fixing is selfishly to get it working on my computer. I haven't done any specific debugging yet, I might raise an issue when I do if can't figure out the fix)

I would appreciate if many of these "disconnecting cause error" things also logged about why they're disconnecting the clients.

I'll fix that tonight :+1:

Bump

Yeah, sorry :/
Time and all that. I'll try and do it this week.

Up

Hi, sorry for the crazy long wait. I promise I won't make any more promises I can't keep 👍
This should address the concerns you raised.
Anything else? I should have a calmer week, so while I'm not promising anything, you probably won't have to wait as long for the next adjustments :)

Thanks!


Home page editor page

This is a dupe of https://github.com/CS3219-AY2425S1/cs3219-ay2425s1-project-g14/pull/36 so it can be merged into whatever branch we're using now...

In https://github.com/CS3219-AY2425S1/cs3219-ay2425s1-project-g14/tree/post-ms6


Wrong source maps in vite plugin for entry chunk

Environment

Operating System: Darwin
Node Version:     v20.18.1
Nuxt Version:     3.14.1592
CLI Version:      3.16.0
Nitro Version:    2.10.4
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      default
Runtime Modules:  -
Build Modules:    -

Reproduction

Open Stackblitz
Run npm run build
Run node compare-maps.js

As you can see for the entry chunk the source maps are different
❯ node compare-maps.js
.output/public/_nuxt/entry.CvR515M8.js.custom.json false
.output/public/_nuxt/error-404.CYfDN9Q0.js.custom.json true
.output/public/_nuxt/error-500.Di0z9JmS.js.custom.json true

Describe the bug
In the vite plugin I added the output of the first 50 characters from the file.
In the entry file you can see license for the @vue/shared library.
_nuxt/entry.CvR515M8.js /**
* @vue/shared v3.5.13
* (c) 2018-present Yuxi
_nuxt/error-404.CYfDN9Q0.js import{u as S,d as E,r as R,a as P,o as B,b as I,c
_nuxt/error-500.Di0z9JmS.js import{_ as s,t as a,v as i,x as u,y as e,z as o}f

At the same time, if we open the generated entry file, we will see the following lines.
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./error-404.CYfDN9Q0.js","./error-404.CoZKRZXM.css","./error-500.Di0z9JmS.js","./error-500.D6506J9O.css"])))=>i.map(i=>d[i]);
/**
* @vue/shared v3.5.13

As I understand it, nuxt adds additional lines to the entry file after the generateBundle stage in vite/rollup and because of this, the source data is modified and incorrect source maps are obtained.
Additional context
As I think the problem is in nuxt, because I tried to add vite plugin to an empty vue project and everything works correctly there. Stackblitz
Logs

Vite adds those additional lines, not Nuxt.

https://github.com/vitejs/vite/issues/18986


Enhance the top services section

Currently the top services section is not look good and clearly.
I would like to enhance the visibility of that section by making them in the card form. So that it is clearly visible to user.

I want to solve this issue.

@Harshdev098 Kindly assign me the issue under the label of gssoc-ext, hacktoberfest'24, hacktoberfest-accepted, level-2.

Before:

I would like to change them like:-
https://github.com/user-attachments/assets/51cf0fa7-ef8c-4b43-8c4b-da61a9b12fc6

@Harshdev098 Kindly assign me the issue under the label of gssoc-ext, hacktoberfest'24, hacktoberfest-accepted, level-2.