What to put in /etc/hosts

Hi
I'm trying to setup this image so i can go to "test.dev" in my browser, but i'm not sure what to put in my /etc/hosts file. Right now i'm using my docker ip and that's not working "No data received".
This is the config in docker-compose.yml:
nginx:
  image: jwilder/nginx-proxy
  dns:
    - <IP_ADDRESS>
    - <IP_ADDRESS>
  environment:
    VIRTUAL_HOST: "test.dev"
  links:
    - php
  expose:
    - "80"
  volumes:
    - /var/run/docker.sock:/tmp/docker.sock:ro
  volumes_from:
    - application

It should be your docker host ip.

I've tried that:
➜  Proteinbuddet git:(master) ✗ docker-machine ip prl-dev
<IP_ADDRESS>

And added <IP_ADDRESS> test.dev to hosts file.

nginx:
  image: jwilder/nginx-proxy
  links:
    - php
  ports:
    - "11005:80"
  volumes_from:
    - application
  environment:
    VIRTUAL_HOST: "test.dev"
  volumes:
    - /var/run/docker.sock:/tmp/docker.sock:ro

and the nginx config created looks like this:
root@5f7c7e3c8585:/etc/nginx/conf.d# cat default.conf
# If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the
# scheme used to connect to this server
map $http_x_forwarded_proto $proxy_x_forwarded_proto {
  default $http_x_forwarded_proto;
  ''      $scheme;
}
# If we receive Upgrade, set Connection to "upgrade"; otherwise, delete any
# Connection header that may have been passed to this server
map $http_upgrade $proxy_connection {
  default upgrade;
  '' close;
}
gzip_types text/plain text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
log_format vhost '$host $remote_addr - $remote_user [$time_local] '
                 '"$request" $status $body_bytes_sent '
                 '"$http_referer" "$http_user_agent"';
access_log off;
# HTTP 1.1 support
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $proxy_connection;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
server {
	server_name _; # This is just an invalid value which will never trigger on a real hostname.
	listen 80;
	access_log /var/log/nginx/access.log vhost;
	return 503;
}
upstream test.dev {
			# proteinbuddet_nginx_1
			server <IP_ADDRESS>:80;
}
server {
	server_name test.dev;
	listen 80 ;
	access_log /var/log/nginx/access.log vhost;
	location / {
		proxy_pass http://test.dev;
	}
}

Do i need to do anything to get this to play along with my php container?

Your nginx-proxy container is bound to port 11005 on your host address. Try http://test.dev:11005 or bind it to port 80.

@Danielss89 VIRTUAL_HOST should be on your php container


Pipe additional data

@deepsweet wonder what's your opinion on letting the user pass some extra input to the plugins?
Currently we're limited to files as input, but I have a case where i would like to measure some file sizes as first step and pass those sizes to another plugin further in the sequence. The sequence looks something like this [measureFileSizesBeforeBuild, cleanDist, copyAssets, build, printFileSizesAfterBuild], where printFileSizesAfterBuild needs sizes from measureFileSizesBeforeBuild to output difference. I thought it would be easiest to just return additional prop resolve({ files, sizes }) and pass that trough the chain.
To make it work i guess a tiny change would be required in https://github.com/deepsweet/start/blob/d8a323ac62e551d738b837be59e8ab0d94f95440/packages/plugin/src/index.ts#L29
{ reporter, files, ...additionalProps } and then spreading additionalProps in payload to pluginFn()

Sounds like a good idea, I'm going to work on PR so we can try it out first.
Guessing how sequence might look:
export default (...plugins: StartPlugin[]) =>
  plugin('sequence', (props) =>
    plugins.reduce(
      async (prev, next) => {
        const nextRunner = await next
        const prevResult = await prev

        return nextRunner({
          ...props,
          ...prevResult,
        })
      },
      Promise.resolve(props)
    )
  )

You can track its progress in #38 – I really enjoyed the idea, it makes a lot of sense now.

@deepsweet looking great, i think it will make start runner more powerful. The same concept is implemented in Cerebral's actions (https://cerebraljs.com/docs/api/index.html#action-props) where action's output extends the payload for later actions in the sequence.

Going to publish as soon as it's possible  :) Thanks again for the idea. Could you try it from master?

📦<EMAIL_ADDRESS>Also every single plugin got updated.

@deepsweet thanks, great job with that - just how i imagined it! I've upgraded to 0.2.0 and love the flexibility it offers 👍


Efficient classification

Beep Boop

I LOVE the progress on this PR so far. It has removed a lot of overheads and bottlenecks and is pretty much done, only thing left is inline bubble. If you are dealing with thousands of error messages and experience a lag, just goto settings view and disable the line tab of linter. It will become blazing fast.

Alright so tooltips are in. Time to kill some known bugs

[ ] Messages are not refresh when pane is switched

Gonna add specs for new behaviors/methods in a separate PR.


⚠ Bofrost.lu has degraded performance

In 761c6cd, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1794 ms

Resolved: Bofrost.lu performance has improved in bc1fd5c after 48 minutes.


Running Chaffeur With Stacked Content and uSync

I've run into an issue with Chaffeur where we're running a deliverable that runs uSync content, but we've discovered that if you have a content change that includes a page with Stacked Content, it doesn't seem to work. The content doesn't get imported at all.
Will update issue with more details as we investigate, but running latest Umbraco/uSync/Chaffeur.

Does it work it you're using uSync content without Chauffeur?
I'd guess there isn't a git repo somewhere that I can see the problem in action is there?

It does. If you sync manually with uSync, it works as expected, and the content with stacked content gets created. It's only if you run the chaffeur deliverable that it falls over.
It's only a test repo, so I'll see if I can get you access :)

Interesting.
If you could get me access to the repo that'd help a lot, it's a difficult one to look into without seeing it in action.

@Attackmonkey are you able to get me a repo with this problem so I can try and look at where it might be falling over? Otherwise I'll close this for now.


Wrong shortcut on macOS for temporaily disabling encryption

Modloader
Fabric
Minecraft Version
1.19.3
Modloader Version
Fabric: 0.14.13, API: 0.73.2+1.19.3
No Chat Reports Version
1.19.3-v2.0.0
Modpack Info
No response
The latest.log File
No response
Bug Description
The encryption hover dialog tells the user to hold Ctrl (control) to temporarily disable encryption.
However, only Cmd (command) can temporarily disable encryption.
Steps to Reproduce
No response
Other Information

Here to add that since the default Copy/Paste shortcuts for Mac are Command-C and Command-V, respectively, this bug interferes with players' ability to interact with chat normally.

Here to add that since the default Copy/Paste shortcuts for Mac are Command-C and Command-V, respectively, this bug interferes with players' ability to interact with chat normally.

In that case I suggest to fix the issue by actually enforcing Ctrl use for this on Macs, keeping the tooltip unchanged as well. Should be an easy if-check.

Here to add that since the default Copy/Paste shortcuts for Mac are Command-C and Command-V, respectively, this bug interferes with players' ability to interact with chat normally.

I don't see how it interferes more than, say, on Windows. It only matters whether they key is held down at the moment the message is sent, copying or pasting something before that moment doesn't affect anything.


https://cvat.org/ down?

Was it taken down on purpose as I can't connect to it anymore.
Will it be back?

@JFMeyer2k , It should be online in the nearest future. But you can try this one: https://app.cvat.ai/. It is supported by CVAT core team.

Hi @JFMeyer2k, cvat.org was on maintenance. Should be work fine by now.

@JFMeyer2k , https://cvat-ai.github.io/cvat/docs/faq/#how-to-migrate-data-from-cvatorg-to-cvatai

@JFMeyer2k , I will close the issue as outdated. CVAT.org is running in read only mode. You can port your tasks on CVAT.ai. Please use the instruction: https://cvat-ai.github.io/cvat/docs/faq/#how-to-migrate-data-from-cvatorg-to-cvatai


For the Git repositories, number of contributors per Git

I would like to see an histogram of number of contributors per Git repository (kind of getting to know how many people worked on it). Should be possible to automatize this.

Also detect people contributing to several projects. Make a nice statistics page about it.

Related to #151


Fix SMARTS.del() throwing at program exit

See CHANGELOG.
Fixes #1189

I have made the requirement to call destroy() explicit.


Reduce allocations caused by logging.

What does the pull request do?

Back with more memory pressure fixes.
What is the current behavior?

Logging functions allocate temporary arrays, box values and generally do busywork even with logging disabled.

What is the updated/expected behavior with this PR?

Significant decrease in amount of object[] and boxed value types being allocated.
How was the solution implemented (if it's not obvious)?

implement 4 new logging functions that take from 0 to 3 arguments using generics. To avoid extra work I only implemented base Log function so you have to pass verbosity (maybe we need some T4 template for that or something, but I really didn't want to write this by hand). Only 3 arguments since Serilog does not support more anyway and you end up with params.
allow for checking if log level is enabled at all to avoid doing avoidable work (like measuring layout time for no reason).

After suggestion from @kekekeks I also added two new conditional logging functions:

TryGetLogger that returns nullable parametrized logger
TryGetLogger that returns boolean and has output logger parameter.

Both can be used when actual logging is expensive (multiple parameters, something has to be calculated) as we don't want to bog down the performance due to the logging.
Checklist

[ ] Added unit tests (if possible)?
[ ] Added XML documentation to any related classes?
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/Avaloniaui.net with user documentation

Part of https://github.com/AvaloniaUI/Avalonia/issues/2919

@kekekeks Removed direct logging access and all convenience functions.
I also changed name from Logger.TryGetLogger to Logger.TryGet as I think it is obvious that we are getting a logger.
Removed params from the main API, if somebody wants to log params variant they can use public ILogSink that is still exposed from the Logger class.
To keep basic compatibility I extended ParametrizedLogger  to take up to 6 generic arguments, everything past 3rd one goes to ILogSink params API. But thanks to conditional logging if people have no logger enabled it won't allocate anything.


upgrade to dom4j 1.6.1-hudson-4

to prevent classloader conflicts
JENKINS-15344
JENKINS-13709
JENKINS-7666
JENKINS-17488

Picks up https://github.com/jenkinsci/dom4j/pull/4 IIUC.


Narrowing the timeframe

I'm not sure if this helps, but (possibly in response to Collection Process, Question 3) it looks like the project began in 2021:

Drs. Loken and Matfess were awarded their APSA "Small Grant" in 2021 (source, pg. 3)
The domain for their website (waarproject.com) was registered on November 4, 2021 (source)
The fellowship Dr. Matfess received from the United States Institute of Peace’s Peace Scholar Fellowship Program was for the 2020–2021 cycle (source, see "Funding").

updated, thank you!!


Should we use a singleton pattern for clients derived from ServiceClient?

I just posted this question on stack overflow for posterity, but I think the dev team here are the only people who would know enough about the inner workings to answer.
http://stackoverflow.com/questions/43484494/should-we-use-singletons-for-clients-derived-from-microsoft-rest-serviceclient-i

The runtime was recently updated to allow construction usign an HttpClient instance, so it is no longer necessary to do this to conserve resources.

@markcowl It's great that users can now pass the client into the constructors.  However, please confirm that one still needs to engineer a solution for creating and passing a single HttpClient instance around to all the different places in their application in which they might instantiate azure rest clients.


WIP: Initial support for P4estMesh

@efaulhaber I think you need to replace @timeit_debug with @timed to fix the non-Windows errors.

Yes, I already did this while working on the BCs.

We should be ready to merge this once

conflicts are resolved
a test of different polynomial degrees (solver/mesh) is added
tests pass

All tests have passed, but coverage is still not optimal. Do you see an easy way to increase test coverage by looking at the "New missed lines in diff" at https://coveralls.io/builds/40470257? Maybe by removing something that is not necessary or by slightly modifying an existing test? OTOH, the difference (-0.03%) is not so big as to require fundamental changes with a big effort, but it would be good to check for some low-hanging fruits.

Most of these are the "passive solver" stuff in amr.jl. That is used by the Euler gravity stuff, right? Should I add a test there that uses P4estMesh, or should I just remove the passive solver stuff?
The line
@inline nboundaries(container::UnstructuredQuadSortedBoundaryTypes) = sum(length, container.boundary_indices)

is now unused. Do you want me to remove this line in a new PR? I used to test if the numbers of boundaries in the types container matches the number of boundaries of the boundary container, but this is not correct. Adding two boundaries on the left and removing two on the right would still require the container to be reinitialized.

Most of these are the "passive solver" stuff in amr.jl. That is used by the Euler gravity stuff, right? Should I add a test there that uses P4estMesh, or should I just remove the passive solver stuff?

Have you tested whether it works? If not, I'd rather not have it in there but maybe an error message somewhere in the beginning saying that this has not been implemented or tested yet.
There's also a bunch of untested lines here and it seems like there is no test for the "structured" P4est ctor for non-periodic cells (see here). The former seems like it can be just removed, while for the latter I think it would be good to have it tested in case someone would like to use it - it seems like a reasonable use case.

Oops, I missed that. I'll add a test for a non-periodic structured mesh.

Alright, Euler gravity works with P4estMesh and produces only slightly different L2 errors and even slightly smaller Linf errors.
The first uncovered lines that you linked are the 3D version of evaluate_index_surface, which will be used when I implement 3D.


Fake domain detect approach

I noticed your approach to detect fake domain name is to find if the domain starts with xn-, which means all IDNA encoded domain will be alerted.

http://中国政府网.政务/
I wonder, if possible, should it detect fake domain names by finding some specified letter in IDNA encoded string?
Thanks.

I don't see the problem with the current approach, can you be more specific, thank you.

It basically treats IDNs as second class citizens. There are huge amount of false positives -- image how annoying it would be if you got a warning on every page of a local news website. I think we should either only indicate IDNs with a harmless icon (pageAction would be good), or find a more accurate approach.


Update import for generate_astrometric_catalog

This notebook would not work with most recent (past 3 years) versions of the drizzlepac due to incorrect import of fix-hap-astrometry from alignimages instead of align.

Thanks!


Bug:

Describe the bug
After last update my L530 lost the ability to chage color
To Reproduce
The temperature still woks fine but the color selection failswit error: Failed to call service light/turn_on.'result'
Expected behavior
To work asin the previous version :)

This integration does not expose light entity. This integration only has camera and binary sensor entities.


allow to configure delay in helm charts

On slower machines (eg development one node ones), delay of 3 seconds is not enough, causing Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress because it's retried too early.
this allows to override CHARTS_DELAY in ansible vars, with default being the original 3 seconds.

Thank you @ghormoon
I would appreciate if you could set CHARTS_DELAY to the global.yaml, so it will be more visible.


Updated sealed secret app to new style

Description

Updated the code in sealed_secret_app.go

Motivation and Context

[x] I have raised an issue to propose this change (required)
#256
#220

How Has This Been Tested?

Install sealed secret into cluster arakade install sealed-secrets
Install client-side tool into /usr/local/bin/

GOOS=$(go env GOOS)
GOARCH=$(go env GOARCH)
wget https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.12.4/kubeseal-$GOOS-$GOARCH
sudo install -m 755 kubeseal-$GOOS-$GOARCH /usr/local/bin/kubeseal

Create a sealed secret file

kubectl create secret generic secret-name --dry-run --from-literal=foo=bar -o [json|yaml] | \
 kubeseal \
 --controller-name=sealed-secrets \
 --controller-namespace=default \
 --format [json|yaml] > mysealedsecret.[json|yaml]

Apply the sealed secret

kubectl create -f mysealedsecret.[json|yaml]

Decrypt secret

kubectl get secret secret-name -o [json|yaml]

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I've read the CONTRIBUTION guide
[x] I have signed-off my commits with git commit -s
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

[ ] I have tested this on arm, or have added code to prevent deployment

Sorry this will require a rebase due to #258 being merged.
@Waterdrips what does @nitishkumar71 need to do to rebase this?

yep, delete the section at the top with kubeconfig and change it to
kubeConfigPath, _ := command.Flags().GetString("kubeconfig")

Then call options.WithKubeconfigPath(kubeConfigPath) into the installer options section.
This will fix the issue with not using a supplied kubeconfig flag

yep, delete the section at the top with kubeconfig and change it to
kubeConfigPath, _ := command.Flags().GetString("kubeconfig")

Then call options.WithKubeconfigPath(kubeConfigPath) into the installer options section.
This will fix the issue with not using a supplied kubeconfig flag

@Waterdrips I have made the changes. please review the changes.

@Waterdrips ready for another review.

FYI https://twitter.com/HelmPack/status/1322224008822202368?s=20
I've also checked the Bitnami Charts repo (nothing there yet) and asked on their #sealed-secrets channel on K8s Slack.

I found out here -> https://github.com/bitnami-labs/sealed-secrets/issues/389
Thanks @mkmik

I found out here -> bitnami-labs/sealed-secrets#389
Thanks @mkmik

@alexellis Thanks for pointing it out. I think, we should wait for the new chart repo of sealed secrets. What do you suggest?

No, just go ahead. We already have this pointing at the stable repo.

In retrospect and due to #274 I think we do need to switch over to the new helm repo, but it should be a one line change if you can work on that today @nitishkumar71 ?
My understanding is that the charts have now moved to https://charts.helm.sh/stable as read-only.


Reveal syntax error in parsing .mention-bot file by leaving a comment

Refs #188

@vjeux Ok, please check if it looks better :)

Yay, perfect thanks :)
I'll push it to the live instance this evening


Refactor cast wallet vanity to compute via GPU

Component
Cast
Describe the feature you would like
Profanity is now unsafe and archived; a maintained vanity address generator that uses GPU would be useful. Thank you!
Additional context
No response

would also be cool to be able to grind salts for vanity create2 contract addresses a la https://github.com/0age/create2crunch

Would note here that we can't lock into GPU only since some people use Cast on servers w/o GPUs

yeah this would need to be an entirely separate thing.
definitely out of scope for cast itself, also as we've seen with profanity, there can be additional issues when it comes to randomness so I wouldn't feel confident shipping something like this without proper security assessments.

Update, Profanity was forked by 1inch and is now maintained as Profanity2: https://github.com/1inch/profanity2
Marking this an not planned as GPU functionality is not planned


Launch rust-analyzer and other rust tool invocations via rustup

This is a first pass at resolving #3154.
Some notes:

There were some comments within #3154 suggesting fixup within the rust binary, but I instead mimicked the approach taken by the rls-vscode extension, which is to have the vscode extension launch the binary within the correct environment. (Indeed, much of the config.ts/package.json changes are shamelessly copied from rls-vscode, which shares the same licensing)
While the disableRustup configuration option was copied over, the default configuration is such that the extension now attempts to launch everything via rustup where it did not before.

Hm, but why invoking via rustup explicitely is any better than just invoking cargo, which might be a rustup shim?

I'm calling rustup rather then invoking cargo because I only have the path to rustup from the configuration.
Only the rustup path is available because to resolve #3154 it seemed simpler to copy rls-vscode's approach and ask if rustup shouldn't be used, for the path to rustup and optionally a toolchain, rather than asking for paths to rustc, cargo, rustfmt, etc.
Repushing the branch to resolve conflicts

Hm, I am still not convinced that we need this. Ther's a standard cross-tooling way to specify the required version of things:

use rust-toolchain file, run rustc, rely on rustup to call the correct rustc.
use RUST / CARGO environment variables to set paths to tools explicitely.

I don't think it'll be a net postive if we add yet another way, specific to rust-analyzer.

Is it intended to solve #3154 for instances where the vscode environment does not or can not have rust? If so, then neither of the ways you mention will work, the first because there is no rustc in the PATH, the second because there are no RUST/CARGO env vars.
If that's not intended, #4329 already fixes this, and presumably #3154 (and this PR) can be closed out.

I don't think it'll be a net postive if we add yet another way, specific to rust-analyzer.

I'm mimicking rls-vscode's configuration, it's not specific to rust-analyzer, though it may be specific to rls-vscode as far as I know.

Hm, yeah, I think for practical purposes I think we are all set here. However, I think we can still improve support for corner cases, albeit in a different way. I've written about this here:
https://github.com/rust-analyzer/rust-analyzer/issues/3154


templ integration example

https://github.com/a-h/templ/issues/740#issuecomment-2127664137

this will more likely be covered off using an example nd not for part of the main package

#

Done

4a37f93


Update m02-03-hol.md

Removed unused variable
Category

[X] Content fix
[ ] New article

Related issues

fixes -
partially -
mentioned in -

What's in this Pull Request?
Clean up of the example code. Removing unnecessary variables makes the code better to reason about.

Thanks for this, and the other related PRs (#9448 #9449 #94450 #9452), however as I explained in my comment https://github.com/SharePoint/sp-dev-docs/issues/9453#issuecomment-1883718409, this content is about to get removed as it's being moved to official Microsoft Learning modules.
Thus, I'm going to close this as we're not going to update this content here.
REF: see the pending PR #9451 ... it's waiting for MSDOCS to refresh the Microsoft Learning Live site... the two new modules have already been merged & approved... it's just waiting on the gears to finish turning


Chrisda to Master

Docs Build status updates of commit 22a8595:
:clock10: Full build: the average full build time is 13 min(s) 3 sec(s), this is based on the last 1000 build(s) for this repository.

Docs Build status updates of commit 22a8595:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/advanced-threat-protection/Set-PhishFilterPolicy.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/mail-flow/Get-MessageTrace.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 0670946:
:clock10: Full build: the average full build time is 13 min(s) 4 sec(s), this is based on the last 1000 build(s) for this repository.

Docs Build status updates of commit 0670946:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/advanced-threat-protection/Set-PhishFilterPolicy.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/mail-flow/Get-MessageTrace.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


update dataset

Proposed changes
Include fc annual summary in datasets nb.
Checklist (replace [ ] with [x] to check off)

[X] Remove any unused Python packages from Load packages
[X] Remove any unused/empty code cells
[X] Remove any guidance cells (e.g. General advice)
[X] Ensure that all code cells follow the PEP8 standard for code. The jupyterlab_code_formatter tool can be used to format code cells to a consistent style: select each code cell, then click Edit and then one of the Apply X Formatter options (YAPF or Black are recommended)
[X] Include relevant tags in the first notebook cell and re-use tags if possible
[X] Ensure appropriate colour schemes  have been used to maximise accessibility for vision impairment. Test your images or learn more with Coblis or TPGI
[X] Clear all outputs, run notebook from start to finish, and save the notebook in the state where all cells have been sequentially evaluated

Looks good @mickwelli. I like the plotting of the distribution. Can you please reorder the cells such that all the things related to fc_ls (loading, masking, plotting) come first, and then the annual summary is introduced and plotted?
Couple of little issues to address:

typo: three instead of tree
Is it possible to pass a list of values to xr.quantile?
make the vertical lines a different colour to highlight them better

Thanks @cbur24, committed edits


Support for ag-grid bundle usage

This for issue #15

why does this change make a difference?
either version should work?

This change allow to reference ag-grid as bundle as it is not asking for ag-grid/main explicity in module definition. This change should be compatable for pepole want to use ag-grid as non bundle via adding appropertie entry in system.js

the ag-grid-ng2 project is not available as a bundle. are you saying you want to use ag-grid.js (the bundled ag-grid) with this project?

Exactly. We want to use ag-grid as bundle

there is no bundle for ag-grid-ng2, only for ag-grid
you can understand why here:
https://www.ag-grid.com/understanding-packaging-for-javascript-typescript-commonjs-and-everything-else/

I am not asking for bundle for ag-grid-ng2. I want to use ag-grid as a bundle when using ag-grid-ng2 as non bundle.  This usecase is not working at the moment with systemJS configuration for ng2 rc3 based project

yes i understand you don't want ag-grid-ng2 as a bundle. but my question is, why are yous mixing bundled and non-bundled, if using non-bundled ag-grid-ng2 (and i presume angular), then why are you using bundled ag-grid? my expectation is you use non-bundled everything.

ps - my hesitation is that this change, although it might fix your scenario, might break for someone else, who uses bower for example

I am using bundled angular2 and would like to use bundled ag-grid to reduce 75 request to 1. ag-grid-ng2 is not bundled and have just 1/2 request so I am ok for that.
I see this will work folks using npm.  Not sure how does bower break.
What are my options here ...move dependencies of ag-grid-ng2 to point to my forked version ?

yes you can do that . . . . . or just copy the ag-grid-ng2 code into your project.
do you actually have it working against your forked version? i'd be surprised if you did - the ag-grid-ng2 project uses the standard ng2, my understanding is you can't mix the annotation based approach with the plan javascritp approach.

the ag-grid-ng2 code is very small

Yup. I am able to use angular umd with my forked version after rc2 release.

With AOT etc the standard for ng2, we wont be pursuing this side of this. Closing at the fork seems to be do the trick for your usecase.


A way to make OmniStream Highly Available? Multi nodes

So everything is running great on one machine. I have been wondering if there is a way to scale this and distribute the load and make applications highly available? Like running just plex on one node and all the other services on another. All services able to fail over to other nodes but when all up and running it spreads services across nodes and updates the cloudflare dns IPs for those services depending on which node they are running on. (nodes are in separate datacenters). I've seen kubernetes works like this but I am just starting to learn about kubernetes so wouldn't know how to tie it in to make something like this work.

Sorry for the lengthy response that's about to follow!
Good day, @wickedshrapnel and thank you for your comments.  I have "distributed" my OmniStream amongst two servers on two different continents.  To be clear, though, "distributed" is not the same as "highly available."  What I mean is that I could do my downloading from server A and my viewing (streaming) from server B.  This is simply handled by doing the OmniStream installation on two servers and selecting different components for each one (though there is some overlap, like Traefik, OmniMount, NetData, etc.).
Obviously, there's nothing highly available about this configuration though it does mean that downloads are handled by a server that has the right bandwidth, storage, etc. while streaming is handled by server with a good proximity to where I'm likely to be streaming.
For a truly highly available system, there's a lot to consider and one of those considerations is that the containers themselves support some kind of clustering or failover properties.  True that Docker itself can add some of that, but stay with me here 😄 .
In an early attempt at this, I had the "/configs" subdirectory on my cloud mount (Google, though the actual host isn't that relevant).  This meant that, in theory, should server A fail, server B should be able to come up and essentially take over, though this wouldn't be instantaneous.  The problem here is that apps like Plex have literally hundreds of thousands of files in the configs.  True that they're mostly small files but that just makes things worse since you really only get the bandwidth speed you expect when you're transferring large files.  Even though my /configs/plex directory is 20G in size, more than a day went by with only a subset of them being synced up to Google.
So, you may be saying "ok, that's the initial sync with a full library but once that's finished, keeping it in sync shouldn't be nearly as bad, right?"  Well, unfortunately, Plex likes (or liked; not sure it still does this) to "touch" just about every single file when you start it up.  So, small changes to attributes like the date/time of access were simply pounding the heck out of Google because OmniStream constantly had to re-upload what it thought were changes.
In fact, that whole issue also seemed to destroy some of the alternate ideas, such as server B replicating the configs from server A (with rclone, rsync, etc.).  Sure, it's possible to tweak some of the settings, especially in rsync, to ignore some attributes when determining what has changed, but now we're entering a dangerous area where B doesn't really equal A and will that have some future consequence we weren't expecting?
Lastly, there's the database issue.  Plex and its friends write to a database which is essentially an open file for the life of the container.  There's a high likelihood that what is written up to the cloud (or directly to the other server) isn't a database in a consistent/healthy state as the app (Plex, etc.) was writing to it while it was being copied.  Sure, you might have all the files copied when A fails but if B can't start up or has to use a backup database file from a previous day/week, then this doesn't really qualify as a successful failover.
Instead, for OmniStream, we beefed up the backup and restore process.  Both @TechPerplexed and I have successfully erased our servers and started from scratch and had a usable system within an hour.  This, too, doesn't seem "highly available" (and let's face it, it doesn't pass the spouse/significant-other/roommate -friendly test) but it does err on the side of caution, especially with the differential backups.
One working alternative:  this isn't a "highly available" solution but does solve a lot of the problem.  If you install OmniStream like I described on two servers, make sure you name anything that exists on both differently on each server.  For example, Traefik1 and Traefik2, Plex1 and Plex2, etc. (this is done through the menus or with the omni edit command).  You would have two Plexs setup and viewers could watch from either one.  A tool like "watchstate" keeps the viewing and playback status in sync between the two servers.  Server A fails and you're kicked off Plex on your Apple TV, Fire Stick, etc. and you just switch to the other Plex server on B.  You may have some fast forwarding to do, but movie night isn't ruined.
The downside here is that any new videos now have to be scanned by both Plex servers and at least one of them isn't doing this locally which means it is hitting the cloud APIs (in my case, Google) while it scans new videos for metadata, chapter markers, creating thumbnails, and so on.  Normally, this will be just fine if you aren't the type that adds every single movie/show to your collection.  But, if you add the entire 4K James Bond Collection in a day, you may find yourself hitting API or upload bans after passing a certain quota (if your download quota is 1 TB, for example, each server hitting over 500 GB during scanning within 24 hours may cause you to cross that threshold).
In the perfect world, Plex/Emby/Jellyfin would itself support multiple servers with the same name and a database sync.  Thus, any changes to one could easily be replicated to the other and at least one of them wouldn't need to "scan" until it became the "master."

I appreciate the in-depth response. I understand the complexities now. I'm going to let the highly available idea go. I attempted running on two different servers already and ran into issues with having the components the same name. I didn't even think about renaming them all, I thought that might mess up the existing server somehow like it would change the name in the config on the rclone drive and the other one would try to use that config as its own. Thanks for that tip. That should get me where I need to be. Excellent job on the scripts and all the config that makes OmniStream what it is. It really made setting everything up so easy and is so well incorporated together, like having all the logs in one place. Keep up the good work. I look forward to updates to this project and any others you are working on. 👍🏻


Add Support for Posix API's

Posix API's of shared memory (shm_open(), shm_unlink()) are not yet supported in this project. I think it is useful add the support. Are there any plans for it?

Nope. The purpose of this library was to speed up X server rendering, which
it does.
On Oct 25, 2016 3:50 AM, "Sandeep Kumar"<EMAIL_ADDRESS>wrote:

Posix API's of shared memory (shm_open(), shm_unlink()) are not yet
supported in this project. I think it is useful add the support. Are there
any plans for it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pelya/android-shmem/issues/4, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJewBpqWx2q_CnP36Oa-Voirod_7RBaks5q3VJpgaJpZM4KfceP
.

Ok. Thank you.
Since, we cannot specify the name in shmget(), the shmid received from shmget() should be passed amongs the processes. May I ask how are you actually passing shmid between the processes?

It uses libancillary, which uses Unix domain socket, special sendmsg()
call, and some dark magic, to pass a file descriptor between differerent
processes.
http://www.normalesup.org/~george/comp/libancillary/
On Nov 16, 2016 1:04 AM, "Sandeep Kumar"<EMAIL_ADDRESS>wrote:

Ok. Thank you.
Since, we cannot specify the name in shmget(), the shmid received from
shmget() should be passed amongs the processes. May I ask how are you
actually passing shmid between the processes?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/pelya/android-shmem/issues/4#issuecomment-260798941,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJewAOhdZT_CwonrWTKAHBFegQTUZd3ks5q-jp8gaJpZM4KfceP
.

Thank you. Sorry I think i did not explain my question correctly.
Consider the below scenario
Process 1 :
myshmid = shmget(...)
shmat(myshmid, ...)
Process 2
shmat(myshmid, ...)
In the above code myshmid in process1 and process 2 should be same. Therefore  "myshmid" generated by process 1 should be informed to process2 for calling shmat(). My question was how did you transfer this shmid among the processes in your application that is using libandroid-shmem library? In my case I am using tmp files in /storage.

You communicate this ID between processes using any method. Temp files work
okay for this, X server transfers that ID to clients using TCP socket.
On Wed, Nov 16, 2016 at 3:15 AM, Sandeep Kumar<EMAIL_ADDRESS>wrote:

Thank you. Sorry I think i did not explain my question correctly.
Consider the below scenario
Process 1 :
myshmid = shmget(...)
shmat(myshmid, ...)
Process 2
shmat(myshmid, ...)
In the above code myshmid in process1 and process 2 should be same.
Therefore "myshmid" generated by process 1 should be informed to process2
for calling shmat(). My question was how did you transfer this shmid among
the processes in your application that is using libandroid-shmem library?
In my case I am using tmp files in /storage.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/pelya/android-shmem/issues/4#issuecomment-260823595,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJewGmQ_L-2whvRctWFUQ70_RKzdHdHks5q-lkigaJpZM4KfceP
.

Ok. Thank you. It is working very well for me.
But In th elogs it says the socket file is created in /dev/shm/ for example "shmat: addr /dev/shm/00000912"
But there is no such file present.. Although it is working well, this particular question is unclear for me.

It creates a named Unix socket, there is no file. You can see it with
netstat.
On Nov 16, 2016 11:58 PM, "Sandeep Kumar"<EMAIL_ADDRESS>wrote:

Ok. Thank you. It is working very well for me.
But In th elogs it says the socket file is created in /dev/shm/ for
example "shmat: addr /dev/shm/00000912"
But there is no such file present.. Although it is working well, this
particular question is unclear for me.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/pelya/android-shmem/issues/4#issuecomment-261085585,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJewM_rNE_AUoXnS3fhkTSsSG0n0N3cks5q-3yKgaJpZM4KfceP
.

Thanks you for clarification.


Incorrect date shown for an email

Describe the bug
Unfortunately I’m pretty sure this bug is not easily reproducible, I’m still reporting it in case someone has an idea of what is happening.
I have a phone which had the July 24th version of the app installed (from the Google Play store), which I hadn’t synced for a couple of days. I switched it on, opened K9-Mail and, after a sync, at the top of my message list, there were 3 messages that I had received a couple of days ago, that were shown as if they had just been received at that time I opened the app. These messages were sent at the same time by the same sender a couple of days ago, so there is maybe something in their structure that is causing that.

Screenshot showing one of the message as seen in K9-Mail with the wrong date
headers of that same email as exported by K9-Mail itself, with the correct date

I have confirmed in a different email client that the messages are still stored on the IMAP account with their correct date.
I updated the app to the July 27th version and the problem stayed the same (these 3 messages still displayed with the wrong date).
I then took another device with an instance of K9-Mail that was not yet updated to the new UI. I updated it (so directly to the July 27th version 5.802, and it did not displayed this issue (but it had already loaded these messages before the update, as opposed to the other device).
Let me know if I can provide more debugging informations.
To Reproduce

Open the app (but see above for much more details)

Expected behavior
Messages are sorted by date (sent date, received date, server date, I don’t know, but some kind of date).
Screenshots
Some messages are displayed as if they had been just received while they are a couple of days old (both the sort order and the displayed date for these messages is wrong).
Environment (please complete the following information):

K-9 Mail version: 5.802, but maybe caused by the previous version
Android version: 11
Device: Google Pixel 3
Account type: IMAP

Additional context
Add any other context about the problem here.
Logs
I can’t trigger the error so I’m not sure that logs are useful, but let me know if you still want me to generate them.

Based on the header information you provided, the message appears to be lacking the (user-visible) origination date - "Date:" - field, which is a standards requirement. Because of the way the user-visible fields - Date:/Subject:/To:/From: - are transmitted MTA-to-MTA you will find them clumped together in a header display like the one you provided. When the "Date:" field is missing all bets are off in terms of what date is used.
So, yes there is a bug ... your correspondent's messages are not standards compliant.

Duplicate of #1356
Not exactly the same. But close enough so we don't need two separate issues.


Azure OpenAI Integration is not working anymore

The last working version I think was around v0.0.6. v0.1.0 is not working anymore with the following effects:
Expected Behavior
When using the --azure parameter, the Azure OpenAI endpoint should be used. (X.openai.azure.com)
Current Behavior
Instead of the Azure OpenAI endpoint, the usual OpenAI endpoint is being used. (api.openai.com)
Failure Information
gpt-engineer --azure https://X.openai.azure.com -v ./projects/example/ gpt-4-32k
DEBUG:openai:message='Request to OpenAI API' method=get path=https://api.openai.com/v1/models/gpt-4-32k
DEBUG:openai:api_version=None data=None message='Post details'
DEBUG:urllib3.util.retry:Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.openai.com:443
DEBUG:urllib3.connectionpool:https://api.openai.com:443 "GET /v1/models/gpt-4-32k HTTP/1.1" 401 262
DEBUG:openai:message='OpenAI API response' path=https://api.openai.com/v1/models/gpt-4-32k processing_ms=3 request_id=XX response_code=401
INFO:openai:error_code=invalid_api_key error_message='Incorrect API key provided: XX. You can find your API key at https://platform.openai.com/account/api-keys.' error_param=None error_type=invalid_request_error message='OpenAI API error received' stream_error=False

Steps to Reproduce

Use the command as seen above with the --azure parameter.
Use verbose output to verify that it's not going to the AzOAI Endpoint, but to the default OAI endpoint.

Issue is fixed when changing the following code
https://github.com/AntonOsika/gpt-engineer/blob/1408652958b7a77b49990dc02df3450656c680d7/gpt_engineer/core/ai.py#L105
into this:
self.model_name = (
    model_name
    if azure_endpoint
    else self._check_model_access_and_fallback(model_name)
)

If you make a PR of this, I will merge it.

Prompting @niklasfink to submit a PR. We're keen for contributors!

@niklasfink I guess this is still an open thing? I don't have access to an azure instance so I cannot really test this. Would be really cool if you could make  working PR.

Sorry, I don’t have the capacity at the moment to test and create a proper PR. I’ll try to do so in January.

Sorry, I don’t have the capacity at the moment to test and create a proper PR. I’ll try to do so in January.

Fair, in case no one else does it before that, a PR in January is most welcome

This issues was already fixed in 46643f62f45948478795599b476b0781f3d35ebf and since v0.2.5 the Azure OpenAI integration is working as expected.
That commit removed the _check_model_access_and_fallback method altogether. Here's the relevant diff:

The following is tested to work:
gpt-engineer --azure https://YOUR_DEPLOYED_ENDPOINT_ID.openai.azure.com -v ./projects/example/ gpt-4-32k
DEBUG:gpt_engineer.core.ai:Using model gpt-4-32k
DEBUG:gpt_engineer.core.ai:Creating a new chat completion: [SystemMessage(content='...'), HumanMessage(content='...')]
DEBUG:openai:message='Request to OpenAI API' method=post path=https://YOUR_DEPLOYED_ENDPOINT_ID.openai.azure.com/openai/deployments/gpt-4-32k/chat/completions?api-version=YYYY-MM-DD
DEBUG:openai:api_version=YYYY-MM-DD

@niklasfink : Please use/test-with v0.2.5 (or later versions).
@ATheorell : The bug label can be removed. The issue can be closed (after feedback from @niklasfink ).

@praveen-palanisamy thank you for the convincing and well established feedback! Closing!


Added sheyna.html to project

Kam this amazing!

Sheyna this is amazing, however, I cannot use this.


Fixed copyright notice in README.md

The year listed in the copyright was out of date (copyright notices must reflect the current year). This commit updates the listed year to 2014.

Thanks for this @khempenius - we missed this and now it is 2015! I'll update all the READMEs accordingly.


Myrtille Performance Issues

I installed Myrtille on an AWS EC2 instance and have been getting low latency (~30ms), but slow response times and poor mouse tracking on remote program sessions running Inkscape. My internet is ~50MB/s, I'm using the default Myrtille settings, and my server is running 4 CPU, 16GB RAM, and a 2GB GPU. Was wondering if there are any known performance issues with AWS? Thanks!
And side note, changing the image type to WEBP makes the programs run much slower, where I thought it would be faster than JPEG or AUTO. Any reason for this?

Eventsource + Vivaldi runs just as slow as Websocket. Hardware acceleration is enabled by default.
My version of config.js looks a bit different from yours. I installed Myrtille using the download installer on cedrozor.github.io/myrtille. Could these be different versions?
I've also noticed that connecting to a single program through my website will start up several versions of that program. This slows down the server and, consequently, Myrtille (this does not happen when connecting directly through a link, so it's not what's slowing down Vivaldi). I'm opening a separate issue for this.

My version of config.js looks a bit different from yours. I installed Myrtille using the download installer on cedrozor.github.io/myrtille. Could these be different versions?

Yes, the current master version is not released (in test), but you can change websocketCount in the latest release

If you still want to use websockets (default), you could limit their number to 2:
 var websocketCount = 2;

Changing the webSocketCount seemed to help, thanks!


Add LineLayer, TextLayer & BitmapLayer demo examples to the gallery

For #2968

Add LineLayer, TextLayer & BitmapLayer demos to the gallery.
Use the props of the latest version of deckgl for the layers.

TextLayer

LineLayer

BitmapLayer

Coverage remained the same at 62.456% when pulling 68c3a7e39893544daa2f0aaf1b6195183f056864 on kaushikb11:layers-examples into<PHONE_NUMBER>2aab152a3e6796b4b510278ce76690 on uber:master.

Could you break down this PR? per example per PR?


Create Feature Card 12 blue

One need to make this component using HTML and Tailwind CSS. I would suggest to use Tailwind Playgrounds to make things faster and quicker.
Here is a reference to the component.

Follow Feature Cards Design system &  figma design and to make the button use Button Design System
After building the component please raise a PR with a screenshot of the component and add the component in Feature Cards/src/feature-card-12-blue.html.
If you need to use any icon please use it from Hero Icons
Good luck.

I would like to work on this.


Fix rp

Addendum to #15
Tested using release-please CLI with --trace enabled.

Side issue: custom classifier jar regex causes issues trying to use x-release-please-version in Procfile (filename is truncated):
===================================================================
--- app/java/Procfile
+++ app/java/Procfile
@@ -1,2 +1,2 @@
-web: java -jar target/cloud-client-api-0.1.0.jar  // x-release-please-version
-process: java -jar target/cloud-client-api-0.1.0-processingjob.jar // x-release-please-version
+web: java -jar target/cloud-client-api-0.3.0.jar  // x-release-please-version
+process: java -jar target/cloud-client-api-0.3.0 // x-release-please-version

Removing release-please logic from Java file for now.


Scoped event handlers

Description
This addresses event handling in portals and scopes event handlers to the sub-tree controlled by each respective AppHandle, instead of installing them globally on document.body. Events also bubble through portals, i.e. up the virtual dom instead of the physical one. The benefit here is that events in iframes and other out-of-document content that don't natively capture/bubble there can be caught and handled.
Closes #2154
Closes #1564
Closes #2175
I think this is technically a breaking change, though I can't think of a reasonable (ab)use of the old, global, event handling style right now.
Still need to write test cases reproducing some issue of events in portals and checking they don't get handled twice, etc.
Need to maybe add a few test cases here and there. We'll see what comes up.
Checklist

[x] I have run cargo make pr-flow
[x] I have reviewed my own code
[x] I have added tests (add more?)
[x] Add documentation about bubbling behaviour

@WorldSEnder can you please resolve the merge conflicts? I'll review it after once this is merge-able.

[x]  Add documentation about bubbling behaviour

Does this also fix https://github.com/yewstack/yew/issues/2175?

@hamza1311 done, and yes I've added documentation addressing this


Multiple copies of binary data during Result -> Row conversion

Please look at:
https://github.com/hortonworks-spark/shc/blob/master/src/main/scala/org/apache/spark/sql/execution/datasources/hbase/HBaseTableScan.scala#L115
and
https://github.com/hortonworks-spark/shc/blob/master/src/main/scala/org/apache/spark/sql/execution/datasources/hbase/Utils.scala#L58
CellUtil.clone will already create a copy of the data. Another copy is being made within Utils.scala. Generally, binary data (blobs) can be fairly large, so copying may be an expensive operation.

Hi, @nickdevp I can not open the above links. Is there anything I need to pay attention to? Thanks.

Updated the links
The files are this repository:
HBaseTableScan.scala (line 115) and Utils.scala (line 58)

Thanks @nickdevp for this. It has been resolved, so close it.

Hi, @nickdevp Could you close this issue? Thanks.


Use register_block_type_from_metadata function

Feature Description
The register_block_type_from_metadata function will be added in WordPress 5.5.  The web stories plugin should use the register_block_type_from_metadata function and register on attributes in block.json.
Alternatives Considered

Additional Context

Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria

Implementation Brief

Related: #3330.

recommendation from @spacedmonkey was to wait until 5.5 is released. pretty low priority. after discussion, moving to the icebox. cc @o-fernandez

We could revisit this once https://github.com/google/web-stories-wp/issues/7598 is complete.


Improve block db interface

Description

Close #181
Checklist

[ ] Targeted PR against correct branch.
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Wrote unit tests.
[ ] Re-reviewed Files changed in the Github PR explorer.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@f2e3734). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #182   +/-   ##
=========================================
  Coverage          ?   63.73%
=========================================
  Files             ?       35
  Lines             ?     1445
  Branches          ?        0
=========================================
  Hits              ?      921
  Misses            ?      492
  Partials          ?       32

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 f2e3734...9ed701e. Read the comment docs.


use the output vertices to define the results in measurement

For bqp all vertices are measured, but only a subset of vertices are required for the algorithm output.
Add this into the results.

In
    # Generate client meta graph
    client_meta_graph = generate_property_graph!(
        Client(),
        round_type,
        client_resource,
        state_type)

create a function that incorporates this into the graph
    output_inds = client_resource.graph.output.indices
    set_prop!(client_meta_graph,:output_inds,output_inds)

This is dones.


Reproducing Object Detection results

Hi,
In your repo you provide a docker image for reproducing the object detection results with your modified version of OpenPCDet, and mention the KITTI launch command calling the config file "tarl_pretrained.yaml".
However I can't file this config file for kitti in the code, what I can find though are "tarl.yaml", "segcontrast.yaml" and "segcontrast_pretrained.yaml", and they differ by their batch size (2 for the two firsts, 8 for the last).
I assume the batch size should be of 8, but cannot be absolutely certain considering the absence of the mentioned config file.
Could you kindly confirm which batch size you used to produce Table 6 in your paper?
Best,

Hi, indeed the correct config file is not in the docker image, thanks for letting me know. The correct batch size for the object detection experiment was 4.

Hi again, sorry for the delay but I just added the missing config files in the docker image so you should be able to train with the exact same parameters. :)


Update alert-policies.md

Updating subscriptions for 3 of the override alerts.

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks


typo in title "More inforamtion"

Typo in title:
https://docs.microsoft.com/en-us/windows-server/troubleshoot/understanding-the-lack-of-distributed-file-locking-in-dfsr#more-inforamtion

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

ID: c321e85a-93bd-31d4-97ea-21596f73da6b
Version Independent ID: 75009676-6682-6746-2da2-eb97455e0b3b
Content: Understanding (the Lack of) Distributed File Locking in DFSR
Content Source: WindowsServerDocs/troubleshoot/understanding-the-lack-of-distributed-file-locking-in-dfsr.md
Product: windows-server
Technology: troubleshoot
GitHub Login: @Deland-Han
Microsoft Alias: delhan

Thanks again for contacting Microsoft. We've submitted a documentation change based on your suggestion. This issue has been resolved and we are closing the issue. #please-close #assign:xelu86


feat: Add autocomplete_function as an argument to SlashOption

Summary
Allows creating an autocomplete slash command argument using the SlashOption constructor instead of the on_autocomplete decorator.
Thanks @MebinAbraham for coming up with the idea on Discord.
Changes

Added autocomplete_function as an argument to SlashOption
An exception will be raised if you try setting the autocomplete callback using the on_autocomplete decorator for an argument that already has an autocomplete callback.

Testing
Example usage:
async def favorite_cat(interaction: Interaction, cat: str):
    if not cat:
        # send the full autocomplete list
        await interaction.response.send_autocomplete(list_of_cat_breeds)
        return
    # send a list of nearest matches from the list of cat breeds
    get_near_cat = [
        breed for breed in list_of_cat_breeds if breed.lower().startswith(cat.lower())
    ]
    await interaction.response.send_autocomplete(get_near_cat)

@bot.slash_command(guild_ids=[TESTING_GUILD_ID])
async def your_favorite_cat(
    interaction: Interaction,
    cat: str = SlashOption(
        name="cat",
        description="Choose the best cat from this autocompleted list!",
        autocomplete_function=favorite_cat,
    ),
):
    # sends the autocompleted result
    await interaction.response.send_message(f"Your favorite cat is {cat}!")

Sample code showing both ways:
https://paste.nextcord.dev/?id=1647907172215290
Checklist

[x] If code changes were made then they have been tested.

[x] I have updated the documentation to reflect the changes.

[ ] This PR fixes an issue.
[x] This PR adds something new (e.g. new method or parameters).
[ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
[ ] This PR is not a code change (e.g. documentation, README, ...)

i also tested


release: v1.0.0a7

Signed-off-by: Harris Tzovanakis<EMAIL_ADDRESS>

@lnielsen I don't see any commit for beta release checklist, hence alpha


Draft: fix: updating docs with examples and fixing typos

Hello @LMaxence, I created the PR that closes #33 according to @MatthewScholefield suggestions :)

Thanks !
Indeed the documentation about shared hooks has been written with the original issue from Matthew in mind, and thus it was too specific to explain how this feature works.
I'm merging it :)


Add CAVLC B-Frame decoder support without build errors.

This is basically a copy of #PR 3058

close this for clearer commit requirement.


Basic test case: srpm_build_deps in config

/packit-stg build

/packit-stg build

/packit-stg build

/packit build

/packit-stg build

/packit-stg build

/packit stg-build

/packit-stg build


from pytorch-pretrained-bert to pytorch-transformers，some problem

TypeError: forward() got an unexpected keyword argument 'output_all_encoded_layers'

now you should use:
model = BertModel.from_pretrained('bert-base-cased', output_hidden_states=True)
outputs = model(input_ids)
all_hidden_states = outputs[-1]

Note that the first element in all_hidden_states (all_hidden_states[0]) is the output of the embedding layers (hence the fact that there is num_layers + 1 elements in all_hidden_states).


GDCG-298 GDCG-299 adding styles.css styles file update to fix image scaling

Fixes the image scaling issue that we saw on the home and science pages.

Wait until GDCG-366 is sorted out before merging, shouldn't affect any of the main files though.


vscode.env.openExternal not available

VSCode Version:1.31.0
OS Version: Windows 10 1809

Steps to Reproduce:

Create an Extension
vscode.env.openExternal(SomeUri);

Property 'openExternal' does not exist on type 'typeof env'.
Same with vscode.env.open(SomeUri);

Property 'open' does not exist on type 'typeof env'.

Does this issue occur when all extensions are disabled?: Yes/No
YES
If I choose to "DEBUG ANYWAY" the functionality does work as expected, the concern is the error messaging

Make sure you ran npm install and have this in the extension:
"engines": {
	"vscode": "^1.31.0"
}

thanks so much - changing from 1.30.0 to 1.31.0 in package.json and then npm install fixed it!  First extension published!


typo: s/fields than add/fields then add/

Typo: than instead of then.
Line 74 shows up as changed for me but I don't see how it has.

Thank you!


Unable to create docker host

Hello *,
i am currently unable to deploy new docker hosts.
Any hints?
I am using the latest version of the driver.
root@debian:~/work/bin# docker-machine create --driver profitbricks  --profitbricks-image Debian-7-server-2016-09-01 --profitbricks-location us/las test-machine42
Running pre-create checks...
Creating machine...
Error creating machine: Error in driver during machine creation: An error occurred while reserving an ipblock: %!s(int=422)

Is it possible that you have exceeded your IP block quota?

Hi Jasmin, yes, you are right. So if i increase the limit, i get an IP.
When i tried last time the driver, no crips were used. Please make sure
to put this in the documentation as it is generating costs for the customer.
You may close this ticket.
Best,
Ando
Am 07.09.2016 um 10:52 schrieb Jasmin Gacic:

Is it possible that you have exceeded your IP block quota?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/profitbricks/docker-machine-driver-profitbricks/issues/19#issuecomment-245217270,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARtw5CHsNETfBZ877HLhFZl2Mh0PYeSYks5qnntWgaJpZM4J2oGS.

--
Mit besten Grüßen,
Kind Regards,
Andreas Frömmel
Technical Sales Consultant
ProfitBricks GmbH  The IaaS-Company.
ProfitBricks GmbH
Greifswalder Str. 207
D - 10405 Berlin
Tel: +49 30 577 008 441
Fax: +49 30 577 008 450
Email<EMAIL_ADDRESS>URL: http://www.profitbricks.de
Sitz der Gesellschaft: Berlin.
Registergericht: Amtsgericht Charlottenburg, HRB 125506 B.
Geschäftsführer: Andreas Gauger, Achim Weiss.
Please consider the environment before printing this email.


Elastic client  issue

Issue
The rs query requests are working alternatively i.e. elastic client  and in turn rs is able to return data for only alternate queries. Was it not working for a specific request or for all requests which involved elastic client. @swaminathanvasanth ?
Find the error Logs (important  ones, attached detailed log  elastic-client-exception.txt)
    time=2022-02-15T08:54:08+0000 level="INFO" loggerName=iudx.resource.server.database.archives.
QueryDecoder message="Info: Temporal Search block" source=rs sourceUrl=https://rs.iudx.org.in exception=""
    time=2022-02-15T08:54:08+0000 level="ERROR" loggerName=io.vertx.core.impl.ContextImpl message="Unhandled exception" source=rs sourceUrl=https://rs.iudx.org.in exception=" java.lang.StringIndexOutOfBoundsException: begin -1, end 0, length 55|	at java.lang.String.checkBoundsBeginEnd(Unknown Source) ~[?:?]|	at java.lang.String.substring(Unknown Source) ~[?:?]|	at iudx.resource.server.database.archives.ElasticClient$2.onFailure(ElasticClient.java:161) ~[fatjar.jar:?]|	at org.elasticsearch.client.RestClient.performRequestAsync(RestClient.java:317) ~[fatjar.jar:?]|	at iudx.resource.server.database.archives.ElasticClient.countAsync(ElasticClient.java:124) ~[fatjar.jar:?]|	at iudx.resource.server.database.archives.DatabaseServiceImpl.searchQuery(DatabaseServiceImpl.java:124) ~[fatjar.jar:?]|	at iudx.resource.server.database.archives.DatabaseServiceVertxProxyHandler.handle(DatabaseServiceVertxProxyHandler.java:124) ~[fatjar.jar:?]|	at iudx.resource.server.database.archives.DatabaseServiceVertxProxyHandler.handle(DatabaseServiceVertxProxyHandler.java:52) ~[fatjar.jar:?]|	at io.vertx.core.impl.EventLoopContext.emit(EventLoopContext.java:52) ~[fatjar.jar:?]|	at io.vertx.core.impl.DuplicatedContext.emit(DuplicatedContext.java:194) ~[fatjar.jar:?]|	at io.vertx.core.eventbus.impl.MessageConsumerImpl.dispatch(MessageConsumerImpl.java:177) ~[fatjar.jar:?]|	at io.vertx.core.eventbus.impl.HandlerRegistration$InboundDeliveryContext.next(HandlerRegistration.java:163) ~[fatjar.jar:?]|	at io.vertx.core.eventbus.impl.HandlerRegistration$InboundDeliveryContext.dispatch(HandlerRegistration.java:128) ~[fatjar.jar:?]|	at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:107) ~[fatjar.jar:?]|	at io.vertx.core.eventbus.impl.HandlerRegistration.dispatch(HandlerRegistration.java:104) ~[fatjar.jar:?]|	at io.vertx.core.eventbus.impl.MessageConsumerImpl.deliver(MessageConsumerImpl.java:183) ~[fatjar.jar:?]|	at io.vertx.core.eventbus.impl.MessageConsumerImpl.doReceive(MessageConsumerImpl.java:168) ~[fatjar.jar:?]|	at io.vertx.core.eventbus.impl.HandlerRegistration.lambda$receive$0(HandlerRegistration.java:54) ~[fatjar.jar:?]|	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) ~[fatjar.jar:?]|	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) ~[fatjar.jar:?]|	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) ~[fatjar.jar:?]|	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[fatjar.jar:?]|	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[fatjar.jar:?]|	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[fatjar.jar:?]|	at java.lang.Thread.run(Unknown Source) [?:?]|"
    time=2022-02-15T08:54:08+0000 level="ERROR" loggerName=iudx.resource.server.database.archives.ElasticClient message="Request cannot be executed; I/O reactor status: STOPPED" source=rs sourceUrl=https://rs.iudx.org.in exception=""

Troubleshooting

Restarting the pod made it work. That is alternate search query did not fail and there was no exception.

Possible Issue/Solution

The application code corresponding to this error is happening in ElasticClient.java file during  performRequestAsync  on Failure method . There is an unhandled exception happening during some string related operation. This is probably in turn  causing a known elastic client issue - Request cannot be executed; I/O reactor status stopped . This elastic client issue causes the connection to be closed and subsequent requests will fail with the error reported as in the second log and there by the request will fail and no data is returned.
In current-deployment branch, at the code
https://github.com/datakaveri/iudx-resource-server/blob/03915b13a5b71a27183d5d3280a45c65690462b0/src/main/java/iudx/resource/server/database/archives/ElasticClient.java#L161

and at current master branch at https://github.com/datakaveri/iudx-resource-server/blob/b239da21384373215a56fd0d29487105491dccc1/src/main/java/iudx/resource/server/database/archives/elastic/ElasticClient.java#L172
3.The workaround suggested is to ensure that no exceptions are thrown out of your onFailure methods.
4. What caused the the request to go to  performRequestAsync  on Failure method ? Most probably, some connection issue with elasticsearch  initially that caused  failure which in turn  likely triggered known elastic issue through string exception in onFailure method and  then causing cyclical problem.
PS: The logs are obtained from loki through grafana, there might some reordering (as many have same timestamp).

It was for all the requests made to the Elastic client @abhi4578

I can trace back the origins of failure of requests from 08 Feb . Initially it was a connection timeout issue - , that would have triggered. Attached detailed log of origins elastic-execptions-origins.txt.
time=2022-02-08T09:55:41+0000 level="ERROR" loggerName=iudx.resource.server.database.archives.ElasticClient message="Timeout connecting to [elasticsearch-mcd-headless.elastic.svc.cluster.local/<IP_ADDRESS>:9200]" source=rs sourceUrl=https://rs.iudx.org.in exception=""
022-02-08 15:25:41
ERROR [InternalHttpAsyncClient:66] 2022-02-08 09:55:41,032 - I/O reactor terminated abnormally

2022-02-08 15:25:41
java.lang.StringIndexOutOfBoundsException: begin -1, end 0, length 26

2022-02-08 15:25:41
	at java.base/java.lang.String.checkBoundsBeginEnd(Unknown Source)

2022-02-08 15:25:41
	at java.base/java.lang.String.substring(Unknown Source)

2022-02-08 15:25:41
	at iudx.resource.server.database.archives.ElasticClient$2.onFailure(ElasticClient.java:161)

2022-02-08 15:25:41
	at org.elasticsearch.client.RestClient$FailureTrackingResponseListener.onDefinitiveFailure(RestClient.java:598)

2022-02-08 15:25:41
	at org.elasticsearch.client.RestClient$1.failed(RestClient.java:359)

2022-02-08 15:25:41
	at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:137)

2022-02-08 15:25:41
	at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.executionFailed(DefaultClientExchangeHandlerImpl.java:101)

2022-02-08 15:25:41
	at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.failed(AbstractClientExchangeHandler.java:426)

2022-02-08 15:25:41
	at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.connectionRequestFailed(AbstractClientExchangeHandler.java:348)

2022-02-08 15:25:41
	at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.access$100(AbstractClientExchangeHandler.java:62)

2022-02-08 15:25:41
	at org.apache.http.impl.nio.client.AbstractClientExchangeHandler$1.failed(AbstractClientExchangeHandler.java:392)

2022-02-08 15:25:41
	at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:137)

2022-02-08 15:25:41
	at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager$1.failed(PoolingNHttpClientConnectionManager.java:316)

2022-02-08 15:25:41
	at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:137)

2022-02-08 15:25:41
	at org.apache.http.nio.pool.RouteSpecificPool.timeout(RouteSpecificPool.java:169)

2022-02-08 15:25:41
	at org.apache.http.nio.pool.AbstractNIOConnPool.requestTimeout(AbstractNIOConnPool.java:628)

2022-02-08 15:25:41
	at org.apache.http.nio.pool.AbstractNIOConnPool$InternalSessionRequestCallback.timeout(AbstractNIOConnPool.java:894)

2022-02-08 15:25:41
	at org.apache.http.impl.nio.reactor.SessionRequestImpl.timeout(SessionRequestImpl.java:184)

2022-02-08 15:25:41
	at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processTimeouts(DefaultConnectingIOReactor.java:214)

2022-02-08 15:25:41
	at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:158)

2022-02-08 15:25:41
	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:351)

2022-02-08 15:25:41
	at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221)

2022-02-08 15:25:41
	at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64)

2022-02-08 15:25:41
	at java.base/java.lang.Thread.run(Unknown Source)

2022-02-08 15:25:41
time=2022-02-08T09:55:41+0000 level="ERROR" loggerName=iudx.resource.server.database.archives.ElasticClient message="Timeout connecting to [elasticsearch-mcd-headless.elastic.svc.cluster.local/<IP_ADDRESS>:9200]" source=rs sourceUrl=https://rs.iudx.org.in exception=""

The above timeout issue  -> made the request fail and goto OnFailure method   -> which in turn triggered string exception -> which triggered reactor stop --> resulting in failure in subsequent requests --> OnFailure method --> ...

The reason like for alternate query suceeding is, in a pod two verticles are deployed. So this issue triigger would have happened in one of verticle but not the other.

Handling the string out of bounds exception should solve the problem.  at  In current-deployment branch, at the code
https://github.com/datakaveri/iudx-resource-server/blob/03915b13a5b71a27183d5d3280a45c65690462b0/src/main/java/iudx/resource/server/database/archives/ElasticClient.java#L161
and at current master branch at https://github.com/datakaveri/iudx-resource-server/blob/b239da21384373215a56fd0d29487105491dccc1/src/main/java/iudx/resource/server/database/archives/elastic/ElasticClient.java#L172

but can any other exceptions happen in that method? if so can have a generalized exception catacher inside failure method, so that no exception leave onFailure method .

This also should be fixed in other parts of elastic client.
https://github.com/datakaveri/iudx-resource-server/blob/03915b13a5b71a27183d5d3280a45c65690462b0/src/main/java/iudx/resource/server/database/archives/ElasticClient.java#L92
https://github.com/datakaveri/iudx-resource-server/blob/b239da21384373215a56fd0d29487105491dccc1/src/main/java/iudx/resource/server/database/archives/elastic/ElasticClient.java#L103
This issue might happen in other IUDX servers which uses elastic client - file-server, catalogue. It needs to be checked the against (the possible methods)[https://discuss.elastic.co/t/request-cannot-be-executed-i-o-reactor-status-stopped/195438/6] and fixed appropriately.

fixed and resolved


Made the dashboard adjust its width to accommodate the side panel bei…

Summary
To accommodate the right side panel being open when on the Dashboard route, I added some CSS classes to some elements to essentially force the layout into touch mode.
This was a little tricky and took a little bit of tinkering, since this page uses CSS classes defined in node_modules/bulma to determine which content is displayed. Desktop content is conditionally displayed with 'is-hidden-touch', and stacked mobile content is displayed with 'is-hidden-desktop'. This happens at 1087px screen width. In this PR, if the sidebar is open, the desktop content is given the class 'is-hidden' instead of the condition 'is-hidden-touch'. The 'touch' content is then displayed by not giving it the 'is-hidden-desktop'. When the sidebar is closed, these classes are removed, and the charts adjust.
Explicitly setting the container of the pie chart to full width on tablet (even without sidebar open) seemed to make sense as well, since it looked a little broken locally for meetings that didn't have any stats.
I also added an entry to constants which defines the screen breakpoints. I was going to use it, but I ended up taking a different path. It may be useful in the future, but I can remove it if you don't agree.
Ticket Link
https://trello.com/c/P23zhrQe/258-reformat-metrics-in-dashboard-to-adjust-to-screen-real-estate
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] Ran make check-style to check for style errors (required for all pull requests)
[x] Has UI changes

 Reformat metrics in dashboard to adjust to screen real estate

I don't overall think adding the constants is inappropriate even if you aren't using them right now.
However, looking at them, since they aren't being used, it should be super obvious what the are and when you might use them. I'm not sure that's true.
What is a screen breakpoint? Seems somewhat related to giving a name to different horizontal? pixel? resolutions, but then some of what's there overlaps. In addition, the responsive design stuff is mostly being done with css, and I don't think these values necessarily match up, which just makes things more confusing.
Given the questions I have seeing it (and therefore what I think someone else seeing it might have), and because it isn't used so there's not even code to demonstrate the intended use, I think we'd be better off w/o it there, unless you want to try adding a comment describing what it's for and it's relationship to similar, but different values in the css.

Yes, there is some overlap. Technically 'touch' will overlap with 'tablet'.
If you look at node_modules/bulma/css/bulma.css,
I copied the horizontal breakpoints from this page...which at the very least, determines the breakpoints for the Dashboard.
It seemed very clunky to determine what is displayed by hiding things with CSS, and didn't lend itself well to flexibility, or technical pivots. Also lots of duplicate code existed. For now though, until a complete overhaul is prescribed, I decided to stick with what is being used.
I can remove the function if you prefer, however, since it is not being used...and may not ever be.

Yes, there is some overlap. Technically 'touch' will overlap with 'tablet'.

Yeah that really doesn't make a lot of sense to me (as a name) since there are lots of desktop screens that are touch sensitive. (That isn't a comment directed at you since I believe you got those names (and values) from bulma, just a comment in general, that conflating functionality names like that always strikes me as problematic)

If you look at node_modules/bulma/css/bulma.css,
I copied the horizontal breakpoints from this page...which at the very least, determines the breakpoints for the Dashboard.
It seemed very clunky to determine what is displayed by hiding things with CSS, and didn't lend itself well to flexibility, or technical pivots. Also lots of duplicate code existed. For now though, until a complete overhaul is prescribed, I decided to stick with what is being used.

That's what I wanted to know, where the values came from, are they related to other values used for similar things, where are those other values, and why do they need to be duplicated.
I agree with your points about hiding things w/ CSS. I'm not so sure about flexibility. I know a large number of people use CSS  for responsive design, but I haven't done it myself and I haven't researched it so I don't know the various pros/cons, other than that it is commonly done.
I approve of sticking w/ what is currently being used if you don't have to jump through hoops to do it because consistency in the codebase will reduce bugs and make future changes easier.

I can remove the function if you prefer, however, since it is not being used...and may not ever be.

I think removing the constants may be best as they aren't being used and they could cause confusion instead of being helpful to someone else making future changes. They're related to the values in the bulma css used by the Riff components in MM, and I think those values are different (yech!) from the values used by the CSS used by the rest of MM.

Yes, I think those CSS definitions create some confusion.
CSS for responsiveness is fine...but the scenio was:
`

    CODE BLOCK A
    CODE BLOCK B

    CODE BLOCK A
    CODE BLOCK B

`
So besides the fact that code blocks A and B are duplicated in two places (hard to maintain)...'is-hidden-touch' is defined in a node_modules CSS file with 'display:none!important'...so, if for instance, I want to show the content inside 'is-hidden-touch' in some other scenarios perhaps..it is difficult.
Alright I will remove the constants, should I go ahead and rebase as well?

Yep, what you're saying makes total sense, and if this needed a bigger refactor, or when we get to doing a bigger refactor as part of cleaning things up, those objections to this design seem compelling to me and something different (whether it be in the js or in css) should probably be implemented.
Go ahead and remove the constants. You can rebase now also, because I think this is the next PR I intend to merge (make sure to fetch first, so you get the latest develop).

Okay, I have completed this.


Make sure we layout editors in sideBySideEditor after they are created

Fixes #125202
This make sure we always invoke layout when a new editor is created in a split view. Due to the caching added in 0449a18b7bb1d8b3cf7138df63e03126ba47c21d, the WebviewEditor created by the split view never had layout called on it
Not sure if this is best fix for this issue. If not, I suggest we revert 0449a18b7bb1d8b3cf7138df63e03126ba47c21d and then revisit it next iteration

Yeah, exactly right! 👏

@mjbvz @joaomoreno I find it a bit weird to call layout only after setInput returns because that can be long running. Wouldn't it make more sense to call layout right here:
https://github.com/microsoft/vscode/blob/8163cfd8c54073c9587003ab56503f8dcc47e536/src/vs/workbench/browser/parts/editor/sideBySideEditor.ts#L189-L189
Before setting the input? That would also match what editorControl does.

@bpasero Simply moving it there won't work because of the this.secondaryEditorPane weirdness. So I took a step further and refactored this by inlining the onEditorsCreated private method which was only called from one location. Please review: https://github.com/microsoft/vscode/commit/5efc2e7abcd47dd5aeaf26b21d6feed94096aa6b

Yeah LGTM 👍


Adding changes for external soft delete

Adding new api version 2024-07-01-preview for external soft delete

Handled comments from previous reviewer

It looks the SDK check only runs on latest stable API version, which has no change. The SDK check actually not run on the new added preview API version.
@ArthurMa1978 Any idea how to make SDK validation on run on the new added preview API version in this PR?

The default tag is not updated.
After update the default tag, the PR check should validate on the new API version.

API change check
APIView has identified API level changes in this PR and created following API reviews.
Microsoft.ElasticSan


Bug: sort-object-types - don't fail when multiple interfaces have the same value

Describe the bug
This is a wild one.
Easier to show with a screenshot:

Code example
Code is from the answer on https://stackoverflow.com/questions/52760509/typescript-returntype-of-overloaded-function (I'm thanking my past-self for remembering to include the link to where I got this code!)
type OverloadedReturnType<T> = T extends {
    (...args: any[]): infer R;
    (...args: any[]): infer R;
    (...args: any[]): infer R;
    (...args: any[]): infer R;
}
    ? R
    : T extends { (...args: any[]): infer R; (...args: any[]): infer R; (...args: any[]): infer R }
    ? R
    : T extends { (...args: any[]): infer R; (...args: any[]): infer R }
    ? R
    : T extends (...args: any[]) => infer R
    ? R
    : any;

ESLint version
v8.41.0
ESLint Plugin Perfectionist version
v1.1.0
Additional comments
Hopefully rare, I was able to just use eslint-disable to avoid the issue.
Validations

[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

Fixed in 623ac67bd0a1bf54aa24cf0ac6eff971653104e9
Released in v1.1.1


Benchmark with the vanilla mtbseq tool to document run-time

Interesting results:

WIth individual modules
https://tower.nf/orgs/BioSharp_OU/workspaces/Davi_Internship/watch/UcTCFg3oMU4su

With batch analysis
https://tower.nf/orgs/BioSharp_OU/workspaces/Davi_Internship/watch/1YojrmcA1GTqBV

We need to benchmark the tool for judging how similar are the results for capturing the effects of

Rerunning the analysis on the same platforms (conda / docker (via k8s)) with same cpu/memory settings.

conda (2cpu/8gb) - two times (conda vs conda)
k8s/docker (2cpu/8gb) - two times (k8s/docker vs k8s/docker)

Rerunning the analysis on different executor with same cpu/memory settings

conda vs k8s/docker

Rerunning the analysis on different executor, with scaling of cpu/memory settings

conda (2cpu/8gb) vs conda (8cpu/20gb)
k8s/docker (2cpu/8gb) vs k8s/docker (8cpu/20gb)
Publish on bioarxiv!

We can also publish about this pipeline as Application Notes.

This benchmarking is done now.


No examples work

$instagram = \InstagramScraper\Instagram::withCredentials('username', 'password');
result: withCredentials must have 3 parameters
$instagram = new \InstagramScraper\Instagram();
result: Instagram function does not exist

I have the first problem too.
What is the cache interface?

composer require phpfastcache/phpfastcache will fix "result: withCredentials must have 3 parameters" issue you have

I don't have access to composer
On Sun, Sep 13, 2020, 4:32 PM nidaniel<EMAIL_ADDRESS>wrote:

composer require phpfastcache/phpfastcache will fix "result:
withCredentials must have 3 parameters" issue you have
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/postaddictme/instagram-php-scraper/issues/760#issuecomment-691721548,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AF26DTF2ALK52WAJUUFI5ELSFUT7HANCNFSM4QMET4GA
.


Scoped Functions

Adding Scoped Functions

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 1

See the complete overview on Codacy


Consider moving downloads into ${RUNNER_TOOL_CACHE}/dart/

From the review of https://github.com/dart-lang/setup-dart/pull/1 by @athomas:

Perhaps we should download this into ${RUNNER_TOOL_CACHE}/dart//

That would enable checking if the version is in the cache later. It would mean we'd have to resolve latest to a specific version though.

We could cache the etag, too – then use a HEAD request to compare?
Starting to get a bit complex for a bash script, though...

Ooo! See https://stackoverflow.com/a/12475760/39827
curl --dump-header header_dump www.google.no

 curl -I -v --header 'If-None-Match: "1d30-4c993ec28581d"' http://httpd.apache.org
```

This could mitigate some of the flakiness we are seeing downloading the SDK.

Someone wants to take a stab at that in a PR? Then we can commit that, and try out the action pinned to that commit in some repo and see if that helps with flakiness?

This has already been done

From some investigation, I don't believe this action is using caching. We are writing the downloaded and uncompressed sdk into $RUNNER_TOOL_CACHE, but I don't believe that directory implies any automatic caching. I believe it's just the path to a directory with many pre-installed sdks for various languages (pre-installed for the specific image).


Exception with Application named "wm.qx.mutablelist"

Hi John,
i try to compile an application named "wm.qx.mutablelist" which is a contrib and a demo at once,
it fails to compile that because the result of https://github.com/johnspackman/qxcompiler/blob/master/lib/qxcompiler/targets/Target.js#L228 is "wm" and not "wm.qx.mutablelist".
Do you have an idea how we could solve that?

I think we'd have to search for the namespace, eg look for a library with "wm" namespace, then "wm.qx", then "wm.qx.mutablelist".

Can't we do something like analyzer.findLibraryFor('wm.qx.mutablelist') and then see where the Namespace of the library is exact wm.qx.mutablelist?

@pcdummy @johnspackman Is this issue still relevant?

i'm pretty sure that this was fixed a long time ago, closing


Updated PT-BR translations

Hello,
I noticed there were a few protips in the main file that still wasn't translated to portuguese, so I took the time to do it (:
I included 3 protips in the pt-br README.md file.
Let me know if there is more to adjust!

@NandaMonroe thanks for doing that.


wallet_switchChain

Is it possible to switch current wallet chain as in the image (example for MetaMask)? I need to connect to the Shasta testnet always, and if chosen network is not Shasta - suggest to user to switch current chain to the Shasta.
I've tried to find requests RPC-methods, but everything is without purpose...

The TIP3326 is in discuss now,  TronLink will support it once issued. Now you could listen TronLink event.
window.addEventListener('message', res => {
      if (res.data.message && res.data.message.action == 'setNode') {
         console.log('setNode')
          // do sth
         window.location.reload();
        return;
      }
    });


Reusing Existing Code Bases

ETA is fairly a new language and as of now still is not different from Haskell syntax thought it might diverse in the future. So in moving into ETA there should be a migration path for the existing code. This can be Java Source Code or Bytecode. In the current path it has a great story for Haskell and Java.
What I propose is initially you have a Java to ETA transpiler (perhaps through couple of layers if ETA IRs/ILs) which can work on Java source code and also reverse engineer Java Bytecode into ETA. For any external observer the effect of running the original code and ETA should be the same through the order strictness and other aspects may differ.
This can be further leveraged to transpile other code into ETA and also convert other IR/IL/ByteCode/Machine Code back to ETA. The resulting code base can be used to target particular backend. The implication of this is through ETA your might be able to mix and match code written in say Java, C#, F#, OCaml, ML, etc. without FFI overheads and global optimisation across language boundaries. As ETA will support .net in the future any other approach will not support cross translation of Java ByteCode and .net IL which will not give a synergistic effect in supporting .net as only ETA and perhaps Haskell code might be cross targeted without ability to reused ecross ecosystem. I feel it is doable if this is through through upfront.
This infrastructure can be used to support many multiple version of Haskell and also incorporate changes quickly either in Haskell or any other supported language or binary format.
Also being able to work with either source code or binary formats will invalidate the need of FFI.
Also the front end infrastructure supporting transpiling can be used even define DSLs as in itself is a metaprogramming system.

These are some pretty cool ideas. Check out GraalVM/Truffle upcoming in JDK 9 that allow the sort of global optimisation across languages that you're talking about. They used it with JRuby/C allowing for huge boosts in speed.
Being able to interoperate between .NET and Java is pretty cool but it's a lot more difficult than it sounds. The main problem is the lack of congruence in commonly used standard APIs and key distinctions in VM semantics/implementations. It's not a problem I want to spent time on right now, and probably something I'll have more time for later on once I have access to more resources (time especially). I am also quite inexperienced with the .NET ecosystem, which is the primary reason for differing this.
I like idea of a Java to Eta transpiler, it would illustrate to new Java developers how to translate side-effecting Java code into monadic code via the Java monad. But that mapping is a bit tricky due to laziness as you said, but overall it can be done. Not sure if it's worth pursuing immediately but I can see that being worked on 3-4 months down the line. Kotlin actually does this via its plugin on IntelliJ and it has a certain "wow" factor being able to right click on a Java file and automatically have it convert to Kotlin style.
Thanks for the input!

Make the JVM backend so the incremental effort to move something like .net, LLVM or directly to native trivial when it is in pace, i.e., translate into an abstract IL/IR before spitting out exact bytecode. You might be wondering Haskell already has this but if you can do this in a mixed language project where some code is in JVM languages, sone in .net, some in LLVM IR and some native without FFI overhead and optimisation across language boundaries.
Scala/Dotty is standedising the AST: https://docs.google.com/document/d/1h3KUMxsSSjyze05VecJGQ5H2yh7fNADtIf3chD3_wr0/edit, https://docs.google.com/document/d/1Wp86JKpRxyWTqUU39H40ZdXOlacTNs20aTj7anZLQDw/edit, also the Graal/Truffle framework.
One thing is you can use a documented AST format. Also at a lower level you can perhaps have a IR/IL like Web Assembly which used a binary format similar to lisp.
Also in Graal/Truffle Sulong is usde to optimise across language boundries.

Translating into an abstract IR is something I have planned for a while and I'll work on things like that once this becomes stable and I want to start optimising.
Thanks for the references to the Dotty AST, it's very interesting.

Also Swift and Rust uses IR layer before LLVM.

Doesn't GHC already have a few different intermediate representations already?

I feel ETA should perhaps be different perhaps borrowing from other formats. This should be such that ETA can evolve separately and also support Haskell (different versions), Java and other code formats.

@puffnfresh Yeah it has three: Core, STG, and Cmm. Of those Core and STG are mature and well-designed. Cmm is designed to be a portable untyped assembly language which works for compiling to native, but a lot of the IR makes no sense in the context of compiling to the JVM. Hence the need for a good intermediate language that's suitable for optimising typed bytecodes.
In formulating a good IR between STG and the bytecode, it's probably better taking inspiration from Soot which is a JVM bytecode analysis framework that does some really cool optimisations. If used properly, we can just add that on as an optimisation pass and focus efforts on making the runtime better and maybe making new Core2Core or Stg2Stg transformations that are suitable for the mapping we have laid out now.
@sirinath Sounds like a good idea.

Since ETA might evolve independently or Haskell keep the IR independent or any back end format. Also look at Web Assembly not to directly use it but might give inspiration for design. With regard to IR keep it typed, effectfull and proof carrying so not that you will use all this at the start but you can use it when the need arises without revising this too often. Also optimisation and transformations targeted at each stage can evolve separately.

Also be inspired by Soot and even LLVM and WebKit B3 but don't depent on Soot since this is JVM specific and Licensing.
Some projects will not be able to use ETA if you have a *GPL dependency.

So the choice of IR at the end of the day depends on the need and the resources at hand. If I end up deferring the design of the IR for many months, I'll be able to come up with an IR that addresses all the issues mentioned which I hope to be the case.
Thanks for the advice, links, and references. Lots to explore and think about. Good point about licensing, I need to be more wary about that.
You mentioned "typed, effectual, and proof-carrying" - do you happen to have any IR examples that meet this criteria?

Typed IR:

WebAssembly
http://www.cs.cornell.edu/talc/
https://github.com/sweirich/tal

Also see: Rust MIR and Swift IR.
Layered / intermediate languages:

System Red: http://static.red-lang.org/red-system-specs-light.html (intermidiate language for red)
http://groupoid.space/exe.htm
https://github.com/FStarLang/kremlin

Proof Carrying Code:

http://groupoid.space/om.htm
see research by George C. Necula and Peter Lee

Effectful Layered Language:

https://github.com/FStarLang/kremlin

Other than for Kremlin which is slightly restricted language traspiles to C I am not sure whether effectful languages use IR which retains this information but this is worth exploring as this information can be retained by type tagging or type annotations at the IR level. Languages like Nim directly translates to C++. Dotty's TASTY may get this once Dotty supports effects but this is just speculation. See https://www.fstar-lang.org/, http://www.eff-lang.org/, Dotty, http://nim-lang.org/, http://rise4fun.com/Dafny, http://www.cs.utexas.edu/users/moore/acl2/, http://www.ats-lang.org/, good starting point.

Great stuff. I'll put all this into one place somewhere so it doesn't get lost and close the issue once it's been transferred.

OK. Some of the references are a bit loose there still no IR which deals with all aspects, at least to extend I have in mind.

Closing as this is a large infrastructure change, this should follow the Eta Proposal Process:
https://github.com/typelead/eta-proposals