bug(cdk-virtual-scroll-viewport): Scrollbar scrolls down a distance

Reproduction
https://stackblitz.com/edit/angular-jwh2bj?file=src%2Fapp%2Fcdk-virtual-scroll-overview-example.html
Steps to reproduce:

Click Menu button.
Click Remove action.

Expected Behavior
The scrollbar is still keeping the current position.
Actual Behavior
It scrolls down some distances.
Environment

Angular: 9.0.0
CDK/Material: 9.0.0
Browser(s): Chrome 84.0.4147.89 64 bit
Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

When focus is restored the scroll position is correct, but the list becomes smaller once you remove the item from the list. It sounds like it's working as expected.

@crisbeto I updated my demo after adding one more action on DIV. If you click on Item #0, it will be removed and the scrollbar does not change its position.
Why does the scrollbar position change when remove the first item?
<cdk-virtual-scroll-viewport itemSize="50" class="example-viewport">
  <div *cdkVirtualFor="let item of items; let index = index" class="example-item">
    <div (click)="remove(index)">{{item}}</div>
     <button mat-button [matMenuTriggerFor]="menu">Menu</button>
      <mat-menu #menu="matMenu">
        <button mat-menu-item (click)="remove(index)">Remove</button>
      </mat-menu>
  </div>
</cdk-virtual-scroll-viewport>

@crisbeto I added 3 Remove actions.

Click on Item #{number}. OK
Click on Menu, click Remove with error. ERROR
Click on Menu, click Remove with delay. OK

Hmm I see what you mean, the timeout seems to cause it to preserve the scroll position. I'm not very familiar with the code, but my guess is that the virtual scroll has some logic to try and preserve the position if the list changes, but that might not fire at the right time if it happens too quickly.


Rename title

Currently, the extension panel displays the full name as "Source Control: Worktrees." Changing the contextualTitle to simply "Worktrees" might appear more visually appealing.
I raised this issue rather than creating a pull request to discuss it.

It's me VSCode issue, I have a copy of SCM with same icon

I'm certainly open to any wording/naming suggestions. I'd like to keep the extension named git worktree menu but I think I see what you're getting at. There are some wording inconsistencies.
For example when relocating the panel out of the source control tab we get this unpleasant title:

I think changing the panel's title to just "Worktrees" instead of "Worktree Manager" would be a good change.

Tried to reproduce my bug, and bug like on your screenshot.
Results:

bug like me reproduced, if some extension provides own copy of SCM view, like old GitLens versions (don't sure about actual versions)
You bug reproduced, when panel placed in non-SCM view, like Explorer

I'm played with it and if contextualTitle removed, extension have a name "Source control: Wrktree Manager", if it moved to Explorer, and just "Wrktree Manager" in SCM view and GitLens copy of SCM view. I think this correct

I researched information about the contextualTitle field - it's useful for parent views, such as when your view contains detachable subviews.


Mod selection stayed default

Sorry, couldn't find "%localappdata%/osu-skin-mixer/log.txt"
https://user-images.githubusercontent.com/57320622/141169947-0d6406ca-43b5-4350-9b66-f626d94e1139.mp4

Please redownload the latest release, looks like you were unlucky and downloaded it in the 30 minute window this bug existed for lol

oooooops turns out i never fixed the issue. its fixed now in 1.6.1, sorry about that, should really test more thoroughly


Update all plugin versions to latest for third-party smoke tests

Expected Behavior
All external plugins pass the smoke test (module smoke-test) with their latest version. Inform plugin authors about potential breakages.
Current Behavior
Smoke tests run with outdated plugin versions.
Context
Gradle 4.0 will introduce breaking changes. Make sure that plugins are still buildable with the latest code changes.

The CI job Linux - Java 1.8 - Smoke tests against 3rd party plugins runs the smoke tests.


Improve touchpad and mouse support for the Android editor

Fix issues with using a touchpad to click, drag, interact with the navigation controls, etc..
Fix issues with panning with 2+ fingers
Fix issues with using double-tap to magnify on the spatial editor

3.x version

Thanks!

Cherry-picked for 4.0.4 together with https://github.com/godotengine/godot/pull/78083.


RVM fails to install on SLES 12

The recipe installs libreadline5 for SuSE versions 11.0 or later; causes obsoleting of other packages.
[2016-02-19T02:30:50+00:00] ERROR: rvm_ruby[ruby-2.1.3] (rvm::user line 177) had an error: Mixlib::ShellOut::ShellCommandFailed: package[libreadline5] (/path/to/chef/cookbooks/rvm/providers/ruby.rb line 174) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '4'
---- Begin output of zypper --non-interactive --no-gpg-checks install --auto-agree-with-licenses libreadline5=5.2-147.17.30 ----
STDOUT: Loading repository data...
Reading installed packages...
Resolving package dependencies...
Problem: installed product:SLES-12-0.x86_64 obsoletes libreadline5 <= 5.2 provided by libreadline5-5.2-147.17.30.x86_64
 Solution 1: Following actions will be done:
  deinstallation of product:SLES-12-0.x86_64
  deinstallation of product:SLES-12-0.x86_64

I met the same issue on SLES 12.1

Closing due to inactivity.
If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help!
Thanks,
Sous-Chefs


LDpred score error

When the debug flag is used in scoring, LDpred.py --debug score, it causes the following error:
Iterating over BED file to calculate risk scores.
Traceback (most recent call last):
  File "./LDpred.py", line 291, in <module>
    main()
  File "./LDpred.py", line 284, in main
    validate.main(p_dict)
  File "/opt/ldpred-1.0.5/ldpred/validate.py", line 642, in main
    verbose=verbose, summary_dict=summary_dict)
  File "/opt/ldpred-1.0.5/ldpred/validate.py", line 400, in calc_risk_scores
    prs_dict = get_prs(bed_file, rs_id_map, phen_map, only_score=only_score, verbose=verbose)
  File "/opt/ldpred-1.0.5/ldpred/validate.py", line 127, in get_prs
    print('%0.2f%% of genotype file read' % (100.0 * (min(float(loci_i) / (num_loci-1.0)))))
TypeError: 'float' object is not iterable

I believe I fixed this now..


Fix #426

https://github.com/gotwarlost/istanbul/issues/426
Shout if you would prefer this PR to set assignNode to null, or to set assignNode at the top of the iteration rather than in the childElement conditional.
Also this piggypacks a bit on top of an existing test (with an array expression with empty positions). The addition checks for equality between a non-empty array element and a following empty array element. Let me know if there is another way you would like the test formatted.

+1 - LGTM

available in v0.3.19 - thanks for the fix!


Can't change display_errors.

Description:

I install laradock, and after start a workspace with nginx and mysql.
sudo service  apache2 stop && sudo docker-compose up -d nginx php-fpm mysql workspace
And all works fine, but i forgot to set display errors.
And in .env i saw, that my php version is 7.4.
I went to php7.4 and set display_errors to On.
After i stoped laradock.
sudo docker-compose down
And after rebuild php.
sudo docker-compose up -d --force-recreate --build php-fpm
But after restart laradock, in phpinfo(), display_errors is still Off.
https://i.imgur.com/niaOOl7.png
Thanks in advance.

watch in laravel.ini for display_errors and try to rebuild workspce container also


(PDB-3723) jsonb fact storage

Store factsets as jsonb blobs.

Test PASSed

will reopen off fork so CI doesn't do something weird


F401: False negative with multiple imports from same top-level package

def _import_modules():
    import foo.a
    import foo.b
    import bar

$ ruff check --isolated --select F401 --no-cache rufftest/ruff_sample.py
rufftest/ruff_sample.py:3:12: F401 [*] `foo.b` imported but unused
rufftest/ruff_sample.py:4:12: F401 [*] `bar` imported but unused
Found 2 errors.
[*] 2 fixable with the `--fix` option.

Tested with the latest master (0.1.5 + a few days worth of commits).
It looks like it only shows an unused import for the very last import from any given top-level package.
While I believe this will never result in a case where there is no warning at all in case of unused imports, it is annoying when combined with RUF100 because now it asks me to remove the noqa from lines that are in fact unused imports.

I looked into this a bit and it looks like this is happening because both get added using add_binding("foo"), so the second one shadows the first one. No idea how to fix it though...

There's a bit of history here:

https://github.com/astral-sh/ruff/issues/60
https://github.com/astral-sh/ruff/issues/7972
https://github.com/astral-sh/ruff/pull/5011

I'm going to close as a duplicate of https://github.com/astral-sh/ruff/issues/60 for now. Submodule imports are really, really confusing and I haven't seen a proposal yet that correctly handles all the cases.


Update sbt-wartremover, wartremover to 3.0.12

About this PR
📦 Updates

org.wartremover:sbt-wartremover
org.wartremover:wartremover

from 3.0.8 to 3.0.12
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.wartremover" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.wartremover" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Codecov Report

Merging #422 (b83db90) into master (806f830) will not change coverage.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##           master     #422   +/-   ##
=======================================
  Coverage   84.75%   84.75%
=======================================
  Files          35       35
  Lines         223      223
  Branches       17       17
=======================================
  Hits          189      189
  Misses         34       34

Flag
Coverage Δ

unittests
84.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Superseded by #423.


Can we run this on onprem agents

I am trying to set it up to run on my onprem agents but its ignoring my yaml pool info and using what is in the pipeline. i modified it to use my docker pool but i need to tell it to run on a specific agent as there are containers running on this machine so i am not sure if i am doing something wrong in the yaml.

this is what my yaml file looks like and everything bold i just renamed
pool:
Name: Docker
Demands:

Agent.Name -equals ServerName

container:
image: dockerdemo.azurecr.io/win19/npm:latest
endpoint: Azure East US Infrastructure
steps:

task: Npm@1
displayName: 'npm install'
inputs:
workingDir: '$(Build.SourcesDirectory)/Projects/ui'
verbose: false
customRegistry: useFeed
customFeed: 'custom feed guid'

@CGCampbell07  Thank you for the question.
It looks like you're working through an issue with your scenario or implementation, rather than an issue with the documentation.
Here are a couple of options where you might consider asking your question:

Azure DevOps on Stack Overflow
Azure DevOps Support Bot


Build document layers during document layout (Resolves #1022)

Build document layers during document layout (Resolves #1022)
This is a version of the primary PR, which targets stable for testing before merge.
Primary PR: https://github.com/superlistapp/super_editor/pull/1064

Closing this in favor of the final cherry pick PR: https://github.com/superlistapp/super_editor/pull/1070


ng serve: support for proxy urls

At development time our teem needs to proxy AJAX-requests with urls that match certain patterns/regexes to a different machine running the application backend.
Is this use-case already covered but not yet documented by ng serve?
If not I would like to propose this as a feature:

pass an array of strings/regexes to ng serve
if any of those strings/regexes match the url of the request then proxy the request to a configurable ip/port

If this however is not in the scope of ng serve, what benefits would our team lose if we were NOT using ng serve in the dev-workflow at all?

try  --proxy http://<IP_ADDRESS>:8080
this is from ember-cli and it worked in some previous version

We haven't done such functionality no. If you find it working within ember-cli options, please reply here for other people with the same issue.

Using  --proxy http://host:port/context works out-of-the-box with IE & Chrome.
To get it working in Firefox (38), I had to explicitly set the 'Accept' request header to '*/*'.
The call was forwarded, but as the returned response content-type was not in the default accept headers, the index.html was returned instead.
e.g.:
this.http
      .get('/some/api', { headers: new Headers({'Accept' : '*/*' }) })

You could ofcourse also set it to the explicit content type you would be expecting e.g. 'application/json'.
Also, you can set the DEBUG environment variable to * before calling ng serve to get server debugging info. This slows down the server a lot.
SET DEBUG=*
ng serve --proxy http://host:port/context

@fatsu @filipesilva Is it possible to save the proxy url somewhere in the angular-cli.json so it is always considered when I just do ng serve ?

@filipesilva @dmnk89 seems I did not read what you wrote about the ember-cli file. So I tried to put this in the ember-cli file:
{
   "output-path": "../TGB.Web/wwwroot", // for asp.net core backend
   "proxy": "http://localhost:33333"
}

That works fine!
Of courseits confusing at first time why use ember inside angular... but well it works!

@bastienJS  Angular CLI is based on Ember CLI.
But, how to configure multi proxies?
eg.
/api for http://api.example.com
/mgt/ for https://example2.com/management

@bastienJS I'm glad you found a way to persist it! It's counter-intuitive but at least it works for now.

In my case worked this way
Install ember using
npm install -g ember-cli
create file ember-cli-build.js in root folder with this content
/*jshint node:true*/
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
  var app = new EmberApp(defaults, {});
  return app.toTree();
};

Now you can use
ember generate server
ember generate http-mock
ember generate http-proxy

to generate server, mocks and proxys for angular project, and it works

I'd like to mention that with #1455, the native ember-cli support for proxies probably doesn't work anymore.

@filipesilva any idea/hack to get this working? I have full backend API available, I am developing an alternate client using ng2. So proxy option is very helpful to me for quick demo and testing.

@TheLarkInn is there any simple way to have this with the webpack dev server?

Webpack dev server configuration includes support for proxy.
https://webpack.github.io/docs/webpack-dev-server.html#proxy
We already have a dev server configuration object used here that we would need to simply tie the commandsOptions and apply to that config.
Proxy setup was a little out of my wheelhouse so we left it open for those interested to PR or tackle after we cut a release.
@mmrath hopefully this would give you a starting point if you wanted to submit a PR for.

@thelarkinn, @filipesilva thanks. I'll give it a go today.
I am thinking of adding an option --proxy-config with argument to file path relative to project. The file can contain all the options available to webpack dev server which will be passed as is by clicking. I think this will allow lot of flexibility for cases like multiple proxy, URL  rewrite etc. Do you think this is an acceptable approach?

It sounds awesome!! If we implement it is like to see tests to verify that proxies are working (however it's done). Go ahead and make a PR and we can discuss the implementation from there.

@mmrath while you are implementing proxy options if possible try to add support for using proxy behind a Corporate Firewall. See issue ember-cli/ember-cli#6032
This option does not work on ember-cli and I personally was not able to figure out , which options to use for node http-proxy module in the Proxy Middle. I hope webpack could support the same.

Someone tried solution I added above?
https://github.com/angular/angular-cli/issues/889#issuecomment-230797913

@iamandrewluca now that cli moved to webpack, I am in favor of an webpack-y solution.

@thelarkinn when you have a moment, could you review PR#1487?

Closed by https://github.com/angular/angular-cli/pull/1487

Big thanks to @mmrath for adding this functionality!

How does this work exactly? Is this documented anywhere?
I'm serving with ng serve --proxy proxy-config.json where proxy.config contains the following:
{    "proxy": "http://localhost:8080" }
My UI is served on localhost:4200 with angular CLI - but my backend API's are hosted on port localhost:8080.
Is my config correct, and do I need to send requests to my API at localhost:4200 or localhost:8080?  I am still facing CORS errors with this setup, so I can only assume I am doing something wrong.

@Matmo10 Please look at https://github.com/angular/angular-cli/pull/1896 for documentation

Awesome, got it working. Thanks for adding this!

This isn't working for me.
I have a login function that posts to api/auth/.
I have the lines
{
  "/api": {
    "target": "http://localhost:3000",
    "secure": false
  }
}

in a file proxy.conf.json.
I serve the my app using ng serve --proxy-config proxy.conf.json.
When I click my login button, it is still posting to http://localhost:4200/api/auth/.
What could I be doing wrong?

it is correct behavior.
Your code will call :4200 but http service should pass this call forward
to :3000

Have I misunderstood something then? I thought the http service would automatically post to http://<IP_ADDRESS>/api/auth/ now instead.

@michaeljpeake it will. The point of a reverse proxy like this is that the app makes all of its calls to its origin server. (In this case localhost:4200) Then the dev server itself makes the request to http://<IP_ADDRESS>/api/auth/ and forwards the response back. So if you look in your dev tools it will still say it is making the request to localhost:4200, because that is where your app is making the call to. I hope this explanation helps, it can be a tricky thing to explain.

okay, so that explains why the dev tools still say localhost:4200. however, the call is never making it to <IP_ADDRESS>. never mind. i think i will find another solution.

try this to get some additional log info:
{
  "/api": {
    "target": "http://<IP_ADDRESS>:8080",
    "secure": false,
    "logLevel": "debug"
  }
}

-> All calls to http://localhost:4200/api will (internally) be forwarded to http://localhost:8080/api.

I have spent a lot of time searching how to make work the proxy settings, finally this worked for me:
proxy.conf.json
{
  "/api/*": {
    "target": "http://test.dev",
    "changeOrigin": true,
    "secure": false,
    "logLevel": "debug"
  }
}

The important part is "changeOrigin": true. More info here:
https://github.com/webpack/webpack-dev-server/issues/458

Hooray!
"changeOrigin": true made everything work how I expected. This reading the link shared by @llstarscreamll suggests this is required when using nginx. Thanks!

I am running a hybrid app and am having problems with deep linking.
I started out with https://github.com/AngularClass/angular2-webpack-starter and was able to get things working using the bypass function for proxy configuration.
I am moving to Angular-cli and now it seems bypass is not a supported option.
Http://localhost:4200/myapp/mydashboard  is returning 404 but should return myapp/index.html

doesn't angular2-webpack-starter achieve this with the webpack-dev-server option historyApiFallback: true? I am having the same problem and would like ng serve to reroute to index on a 404 by default out of the box, as all SPAs will have this requirement.

None of the above solutions but this worked for me:
{
  "/api": {
    "target": "http://jsonplaceholder.typicode.com/",
    "changeOrigin": true,
    "secure": false,
    "pathRewrite": {
      "^/api": ""
    },
    "logLevel": "debug"
  }
}

For those looking, unable to get these proxy's to work, what did it for me was i forgot the http infront of localhost:8080
Hope this helps :)

The proxy works great, but is there a way to put proxy configuration into .angular-cli.json, so that it's automatically applied each time ng serve is invoked?
I tried adding
"serve": {
  "proxy": {
    "config": "./proxy.conf.json"
  }
}

section to .angular-cli.json by analogy to "test" section but it has no effect. I also tried searching for a reference page for available settings in .angular-cli.json but came back empty handed.
I also tried searching open issues but I wasn't able to find anything relevant. Should I file a feature request?

I am not aware of any other way than described above.
As a walkaround  we added in package.json
  "scripts": {
    "start": "ng serve --proxy-config proxy.conf.json"
   }

and start it with npm start

I encountered the similar issues as @michaeljpeake, the proxy config does not work in my case.
The backend is a nodejs application, served at port 3000. The frontend is NG 2 application generated by Angular CLI.
I added a proxy.conf.json in the root of frontend application.
{
  "/api/*": {
    "target": "http://localhost:3000",
    "changeOrigin": true,
    "secure": false,
    "logLevel": "debug"
  }
}

and changed the start command in package.json. I also tried the simplest config in the Wiki page(proxy to backend).
 "start": "ng serve --port 4300 --proxy-config proxy.conf.json",

When I run the application, I got error messages from cmd console.
[HPM] GET /api/upload/uploads-1490782788752.png -> http://localhost:3000
[HPM] Error occurred while trying to proxy request /api/upload/uploads-1490782788752.png from localhost:4300 to http://localhost:3000 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)

The image can be accessed via localhost:4300//api/upload/uploads-1490782788752.png, but it is existed at http://localhost:3000/api/upload/uploads-1490782788752.png
My local development environment:

Node

node -v
v7.7.4

npm

npm -v
4.1.2

NG 1.0.0

ng -v
    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/
@angular/cli: 1.0.0
node: 7.7.4
os: win32 x64
@angular/common: 2.4.10
@angular/compiler: 2.4.10
@angular/core: 2.4.10
@angular/forms: 2.4.10
@angular/http: 2.4.10
@angular/platform-browser: 2.4.10
@angular/platform-browser-dynamic: 2.4.10
@angular/router: 3.4.10
@angular/cli: 1.0.0
@angular/compiler-cli: 2.4.10

var api = proxyMiddleware('/api', {
target: 'https://applications.tst.ngi.com',
secure: false,
onProxyReq: function (proxyReq, req, res) {        //line: 05
//console.log("Setting custom proxy headers"); //line: 06
proxyReq.setHeader('X-USF-RESPONSE-URL', 'https://192.xxx.xxx.xxx/svc/auth/sagl');   //line: 07
proxyReq.setHeader('X-GUI-URL', 'https://192.xxx.xxx.xxx/');    //line: 08
}
});
the above code is in angular 1.x
i want to write same code in angular cli project. I am able to add proxy as below:
{
{
"/api": {
"target": "https://applications.tst.ngi.com",
"secure": false,
"logLevel": "debug"
}
}
Help me to add headers to proxy as above from line number 05 to 08

None of the above solutions but this worked for me:
{
  "/api/*": {
    "target": "http://<IP_ADDRESS>:2017/api",
    "secure": false,
    "logLevel": "debug",
    "changeOrigin": true,
    "pathRewrite": {
      "^/api": "http://<IP_ADDRESS>:2017/api"
    }
  }
}

But there is a problem with this solution, when the proxy address changes, I need to change two places.
Hope to have a better solution

I have solved my own problem
Now proxy.conf.json is:
{
  "/API": {
    "target": "http://<IP_ADDRESS>:2017",
    "secure": false,
    "logLevel": "debug",
    "changeOrigin": true
  }
}

http request is :
this.http.get('/API/subsystem')...........

Please excuse my ignorance, as I am fairly new to angular. Does the proxy.config.json work when building and deploying to iis?

It is just a development thing. No use for building or deployment
On Tue, 16 May 2017, 5:18 PM MrBananaGuard<EMAIL_ADDRESS>wrote:

Please excuse my ignorance, as I am fairly new to angular. Does the
proxy.config.json work when building and deploying to iis?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/angular/angular-cli/issues/889#issuecomment-301697069,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHEN4voIdPt6nTtVFDHxgtkadCGAYsoks5r6U3hgaJpZM4IkTU3
.

@mmrath Ok awesome, thanks.

I've noticed that sometimes even with this proxy server set correctly, I got some erros. What I've realized that the issue was on my request (usually with PUT and POST). I passed a bad request at some point, then I got a reverse
IP related to my NG localhost.
{
"/api/*": {
"target": "http://localhost:3000",
"changeOrigin": true,
"secure": false,
"logLevel": "debug"
}
}

Hy everybode, perhaps someone can help me, hope so.
I tried all the above issues but did not get a positive result.
My situation is as following:

have an web front angular2/4 running with ng server. everything went ok since a turned on authentication on the web api. could call the api hosted on an iis

the web.api is hosted on an iis as a virtual application under 'default web site'

after i turned on "windows authentication" on the web api i get the following errors on chrome console.

I tried all the issues about 'proxy-config' but nothing helped for me, perhaps I doing something wrong?
Front-End is running under localhost:4200 and the IIS-WebApi ist running under localhost/Anytime.WebServices/v1.2/controller/method on port 80
If i make a build with ng build --prod i do not get any errors.
So, hope someome can help me, thanks in advance.

@guehmann
For Ntlm /negotiate I use the following configuration, mind it for some typos as I wrote it on a phone. You need to add agentkeepalive package in package.json
@filipesilva just a suggestion, This configuration is pretty standard for webpack-dev-server and can be added to proxy docs for windows auth.
var agent = require('agentkeepalive');
var kAgent = new agent({
maxSockets: 100,
keepAlive: true,
maxFreeSockets: 10,
keepAliveMsecs: 1000,
timeout: 60000,
keepAliveTimeout: 30000 // free socket keepalive for 30 seconds
});
var onRes = function (proxyRes, req, res) {
var key = 'www-authenticate';
proxyRes.headers[key] = proxyRes.headers[key] && proxyRes.headers[key].split(',');
};
const CONFIG = [
{
context: [
"/api"
],
target: "http://<IP_ADDRESS>:80",
secure: false,
logLevel: 'debug',
auth: 'LOGIN:PASS', //no need to put actual
agent: kAgent,
onProxyRes: onRes,
changeOrigin: true
}
]
module.exports = CONFIG
Sent from my OnePlus ONEPLUS A3003 using FastHub

@ankeshdave
Hi, thank you for your response.
But i didn't get it to work. I put your code in a file name proxy.conf.js and substitute the following with my values:
"/api" -> "/v1.2" and
"http://<IP_ADDRESS>:80" -> "http://localhost:80/Anytime.WebServices"
my WebApi-method is reachable under  http://localhost/Anytime.WebServices/v1.2/base/department/many
then i run: ng serve --proxy-config proxy.conf.js
even i get:
10% building modules 2/2 modules 0 active[HPM] Proxy created: [ '/v1.2' ]  ->  http://localhost:80/Anytime.WebServices
[HPM] Subscribed to http-proxy events:  [ 'proxyRes', 'error', 'close' ]
the error is still the same, i changed localhost to the ip address and also the hostname, nothing happend. error is:
zone.js:2263 GET http://localhost/Anytime.WebServices/v1.2/base/department/many 401 (Unauthorized)
and
XMLHttpRequest cannot load http://localhost/Anytime.WebServices/v1.2/base/department/many. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access. The response had HTTP status code 401.
But CORS is fully enabled on any address, port and header on my WebApi.
On Postman-tool from Google my Api is working.
Perhaps you see my error.
Thanks in advance.
Regards Jens.

@guehmann there is something not configured with your CORS configuration you first need to get that working, I am also using CORS (tomcat as server) and windows authentication from LDAP, this configuration works, Also try putting
/Anytime.WebServices/v1.2

in place of
/1.2

@ankeshdave Thank for your reply. So I'll check what is wrong with my WebApi. I tried your issue with changing to /Anytime... but the result was the same.
I don't know, if i make a ng build and deploy it the the iis i do not get any errors with cors.
My WebApi is an asp.net core configured cors as follows.
// CORS kofigurieren
services.AddCors(options =>
options.AddPolicy("AllowAny", p => p.AllowAnyOrigin()
.AllowAnyMethod()
.AllowAnyHeader()
.WithExposedHeaders("Content-Disposition")  // refused to get unsafe header error message
.AllowCredentials()));
and then
// CORS anwenden...
app.UseCors("AllowAny");
I'll to to fix it an give response back.
Thank you very much.
Regards Jens.

@ankeshdave Hi, I solved it with turning on anonymous authentication on the iis application. Now i can run the same WebApi with 'serve' and 'build' without any errors. Not even i need the proxy option. Thanks.

suppose your proxy file is proxy.conf.json
{
"/api/*": {
"target": "http://localhost:3000",
"changeOrigin": true,
"secure": false,
"logLevel": "debug"
}
}
after you have to edit package.json file and add "start": "ng serve --proxy-config proxy.conf.json" in first braces where your project name, version available, so your new code looks like
{
"name": "neosuite-client",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve --proxy-config proxy.conf.json",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
}
main part start here, you have to start your application like npm start.
If your application is running then close it and restart.
and even you want to change the port then just add   "start": "ng --port 5000  serve --proxy-config proxy.conf.json"

@Dev-Pawar this only works for me if I use HashLocation strategy, does not work with PathLocation. Any ideas?

I think you have used ** RouterModule.forRoot(routes, {useHash: true}) ** , jusr try it by removing {useHash: true}, as by default angular support PathLocationStrategy. so you can use like
RouterModule.forRoot(routes)  try this. hope it will work.


Request - Possibility add custom fonts to EGP.ValidFonts

Hello, not sure if i'm writting it right section, and sorry for my english.
I'm one of developers of stargate carter addon pack and we have several stargate-related fonts (glyphs) what used in our wiremod e2 screens etc. By default wiremod egp allow only fonts what stored in EGP.ValidFonts variable inside wire\lua\entities\gmod_wire_egp\lib\egplib\materials.lua file. This makes impossible without manual editing of this file add custom fonts. Much of our users constantly report about "bug" that fonts not displayed and we always answer that they should edit this file manually, but not all actually can do this (if use workshop version for example).
So is this possible to add some feature so we can use it to add our fonts in EGP.ValidFonts variable in e2 library without edition file? This could help us very much. E2 advanced already have this feature using this code in library:
local RenderCom = EXPADV.GetComponent("render")
if RenderCom and RenderCom.ValidFonts then
....
table.Merge(RenderCom.ValidFonts,CapFonts)
Thank you for attention.

I believe you can just edit EGP.ValidFonts in a different file, similar to what you did with the code in your post there. As long as you add fonts in the same order on both the server and the client.
Speaking of stargate CAP, have you fixed this bug yet: https://facepunch.com/showthread.php?t=950900&p=25423015&viewfull=1#post25423015
It'll probably be a pain to fix because last time I checked, whoever made most of the weapons in CAP was stupid and copy pasted the very function I fixed in that post, so you'll have to make all weapons use the same function first.

Ow ok, probably i can try make some file in lua/entities/gmod_wire_egp/lib/egplib/ for add fonts to egp after materials file loaded (but will need copy-paste some code), thanks for idea, i'll try.
As for link and code what you give - i'll also check it later, but no, this wasn't fixed/changed.

what no, you don't need to modify egp, you can just modify the table EGP.ValidFonts from any file

Ok, didn't really checked that EGP is global variable not local like I thought for some reason...
I tried add to this table needed fonts (at both sides - client and server) in wire stargate library, it seems like fonts added to table (PrintTable confirms this at both sides), but EGP itself still don't apply those fonts and display default one. So something still wrong or missing. I also tried copy-paste EGP.ValidFonts_Lookup code from materials.lua but still not changes.

I think i god why it don't work. If compare validfonts at client and server, then it not match.
Server:
(table) 0x2e01dd48 {
(number) 1 => (string) 'WireGPU_ConsoleFont'
(number) 2 => (string) 'Coolvetica'
(number) 3 => (string) 'Arial'
(number) 4 => (string) 'Lucida Console'
(number) 5 => (string) 'Trebuchet'
(number) 6 => (string) 'Courier New'
(number) 7 => (string) 'Times New Roman'
(number) 8 => (string) 'ChatFont'
(number) 9 => (string) 'Marlett'
(number) 10 => (string) 'Roboto'
(number) 11 => (string) 'Stargate Address Glyphs SG1'
(number) 12 => (string) 'Stargate Address Glyphs Concept'
(number) 13 => (string) 'Stargate Address Glyphs U'
(number) 14 => (string) 'Stargate Address Glyphs Atl'
(number) 15 => (string) 'Anquietas'
(number) 16 => (string) 'Quiver'
}
Client:
(table) 0x3469eb68 {
(number) 1 => (string) 'WireGPU_ConsoleFont'
(number) 2 => (string) 'Coolvetica'
(number) 3 => (string) 'Arial'
(number) 4 => (string) 'Lucida Console'
(number) 5 => (string) 'Trebuchet'
(number) 6 => (string) 'Courier New'
(number) 7 => (string) 'Times New Roman'
(number) 8 => (string) 'ChatFont'
(number) 9 => (string) 'Marlett'
(number) 10 => (string) 'Roboto'
(number) 11 => (string) 'WireEGP_18_1'
(number) 12 => (string) 'WireEGP_18_2'
(number) 13 => (string) 'WireEGP_18_3'
(number) 14 => (string) 'WireEGP_18_4'
(number) 15 => (string) 'WireEGP_18_5'
(number) 16 => (string) 'WireEGP_18_6'
(number) 17 => (string) 'WireEGP_18_7'
(number) 18 => (string) 'WireEGP_18_8'
(number) 19 => (string) 'WireEGP_18_9'
(number) 20 => (string) 'WireEGP_18_10'
(number) 21 => (string) 'Stargate Address Glyphs SG1'
(number) 22 => (string) 'Stargate Address Glyphs Concept'
(number) 23 => (string) 'Stargate Address Glyphs U'
(number) 24 => (string) 'Stargate Address Glyphs Atl'
(number) 25 => (string) 'Anquietas'
(number) 26 => (string) 'Quiver'
}
So like you can see fontid isn't match real font... There need somehow to add fonts before materials.lua run its loop for adding fonts, but after it created EGP.ValidFonts with default fonts. So there is problem and i probably can't fix this.

Oh sorry for my stupidly, probably i found solution, just recreate whole table client-side with setting correct order. Going to try...

alternatively you can simply do this
table.insert( EGP.ValidFonts, 11, "Stargate Address Glyphs SG1" )
table.insert( EGP.ValidFonts, 12, "Stargate Address Glyphs Concept" )
table.insert( EGP.ValidFonts, 13, "Stargate Address Glyphs U" )
... and so on

to insert them at the correct place

Hmm, in this case probably better add it to start of table, because if you or someone in wiremod will add some new font (like was with "Roboto") so not break order because of this client-side. Thank you again anyway.


Add ability to manually edit darkness threshold setting

I was having issues setting the darkness threshold. Apparently I'm around very little ambient light, to the point where the highest value I see from the sensor is 29. Since the entire slider control allows a closed range from 0 to 2000, it was incredibly frustrating to set the value to 7.
I've added a workaround for this. Double-clicking (tapping) on the Darkness Threshold label will turn it into a TextField for easy editing. The change can be committed by simply pressing the return key. If the value is not valid, an alert will be displayed; if it is valid, it will be set and the TextField will turn back into a label.

Looks good. Thank you!

This has shipped in the 1.2 update.
It can be tricky to fetch updates manually because the app wasn't showing a main menu (this is fixed in 1.2). To force it to show up in the Dock and let you click "DarkModeBuddy > Check for Updates" in the main menu:
/Applications/DarkModeBuddy.app/Contents/MacOS/DarkModeBuddy -UseRegularActivationPolicy YES


Refactor form payloads

What this PR does / why we need it:
This PR contains breaking changes to the plugin API around form usage. Since these patterns are not yet widely used (or unusable in the case of knative), changes can still be merged into 0.16.2

Check boxes
Previously check boxes with multiple input choices would generate a payload with only the checkbox label and a bool if any of the input choices were selected. e.g.

component.NewFormFieldCheckBox("checkbox", "test", []component.InputChoice{
	{
		Label:   "a",
		Value:   "1",
		Checked: true,
	},
	{
		Label:   "b",
		Value:   "2",
		Checked: false,
	},
})

Results in the loss of input choice values:
{
   "type":"action.octant.dev/performAction",
   "payload":{
      "test":true,
      "action":"action.octant.dev/example
   }
}

This is now changed to return an array of checked values similar to the behavior of Select.

Remove formGroup
Components were previoues using websocket service and sending messages with payloads. This is now moved to action service to deduplicate action.octant.dev/performAction. formGroup is removed so that plugin authors don't have to parse request.Payload.Raw and use request.Payload.String directly. ref #1504

Marshal action to form
Forms added to modals will now be read by action handler in plugins.

Which issue(s) this PR fixes

Fixes #1508

Signed-off-by: GuessWhoSamFoo<EMAIL_ADDRESS>

@scothis do you have a moment to try this out?

@wwitzel3 seems to work https://github.com/vmware-tanzu/octant-plugin-for-knative/pull/75


Autowrap values

This allows for terser syntax, making curly bracket pairs optional in quite a few places.

Looks very nice, clearly an improvement over tables only👍

I'll look into your changes in a sec.

Apart from those minor issues everything looks great.

Cool, I'll address all of that asap, thanks for the review

@L3MON4D3  this looks like one of the TODOS I told you some weeks ago :tada:

@L3MON4D3 this looks like one of the TODOS I told you some weeks ago
But doing this will probably require some minor changes on the stylua config as I guess it does not matches our current configuration.

You refer to omitting ( )? Right, hadn't thought about that..

For removing unrequited parentheses no_call_parentheses = true  will do the trick.

Yeah, though Id prefer to keep parantheses generally, so parentheses in lua and the cooler, DSL-like syntax in docs.

Looks great, thank you!!


Won't render some websites properly

For example, try imaging angular.io or macrumors.com Angular is just blank. Macrumors is totally jacked up.

It's because PhantomJS doesn't support all ES2015 features. E.g. angular.io fails because of:

ReferenceError: Can't find variable: WeakMap → https://angular.io/main.409b511ce1a2f78ae368.bundle.js on line 1

Try listening for the warning event.


spectaQL directive breaks the GQL server when it's not defined

I'm trying to implement spectaQL for our orgs graphql server.  I'm having quite a bit of trouble with getting any approach to adding metadata in.  My preferred method would be to use the spectaQL directive as then I can add my documentation right in my schema, but the part I'm not understanding is that adding an undefined directive to your schema will break the server
/opt/myorg/node_modules/graphql/validation/validate.js:108
    throw new Error(errors.map(function (error) {
          ^
Error: Unknown directive "spectaql".

Unknown directive "spectaql".
    at assertValidSDL (/opt/myorg/node_modules/graphql/validation/validate.js:108:11)
    at Object.buildASTSchema (/opt/myorg/node_modules/graphql/utilities/buildASTSchema.js:71:34)
    at Object.buildSchemaFromTypeDefinitions (/opt/myorg/node_modules/apollo-server-express/node_modules/graphql-tools/src/generate/buildSchemaFromTypeDefinitions.ts:43:32)
    at Object.makeExecutableSchema (/opt/myorg/node_modules/apollo-server-express/node_modules/graphql-tools/src/makeExecutableSchema.ts:52:16)
    at ApolloServer.initSchema (/opt/myorg/node_modules/apollo-server-express/node_modules/apollo-server-core/src/ApolloServer.ts:493:27)
    at new ApolloServerBase (/opt/myorg/node_modules/apollo-server-express/node_modules/apollo-server-core/src/ApolloServer.ts:356:26)
    at new ApolloServer (/opt/myorg/node_modules/apollo-server-express/src/ApolloServer.ts:88:5)
    at Object.<anonymous> (/opt/myorg/app/src/index.ts:122:16)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Module.m._compile (/opt/myorg/node_modules/ts-node/src/index.ts:858:23)
[nodemon] app crashed - waiting for file changes before starting...

I've tried defining the directive in my schema as well:
    input SpectaQLOption {
        key: String!
        value: String!
    }
    directive @spectaql(options: [SpectaQLOption]) on FIELD_DEFINITION

and this also doesn't seem to get picked up when running spectaql.  This is how I'm using the directive
    """this is documented"""
    type MyType {
        myField: String! @spectaql(options: [{ key: "example", value: "it looks like this" }]. # this is not generating anything with spectaQL)
        "this is anotherfield, which is documented and picked up by spectaQL"
        anotherField: String!
    }

The spectaQL docs say that it's unnecessary to define the directive yourself, so I'm quite lost as to how that's possible.  As well as to why spectaQL isn't picking up on the directive once it's defined.

I've been poking around this project and it looks like it's almost intended to download your schema, then run spectaQL, where as the approach I want to go is use the url option for introspection and actually hit my gql server.  If that's the case, am I able to add metadata + examples in my outputted documentation?

Hi @jason-dahl I understand the use-case here and will have a look ASAP. I'm surprised to hear it's not having an effect when you define the directive yourself in your SDL, but I'll figure it out and get back to you.

Ah yes, upon re-reading your use-case, this is unfortunately not possible right now via the introspection query. The problem is that the introspection query does not (in the spec) expose what directives are applied to what things.
The best thing for you to do is to somehow get your SDL file (with the directives throughout) downloaded to SpectaQL for use. Sorry!

I'm running into a similar issue with a schema-first approach. My schema.graphql file contains several @spectaql directives, but when I try to use it to create a GQL api with Nest.js and Apollo, I get several Unknown directive "@spectaql". errors as the Nest.js application attempts to spin up.
When I use the spectaql package to generate my GQL documentation, I instruct it to pull from my local schema.graphql file, so unlike the original use case of this issue, I'm not hitting a server to retrieve my schema. What options do I have?

@newhouse the first suggestion worked, thank you 🙂 I like how it can be done programmatically for my SDL generation, and I may use that as my project progresses. thank you for the help.


does not support regex

ivy-prescient does not support regex as regular ivy does. for example when using counsel-describe-function I can enter window$ to find all candidates that end in window. However with ivy-prescient, it returns no candidates.

That sometimes annoys me as well, so I'd like to fix it. Do you have any ideas on the interface?
It is not trivial, because prescient.el supports initialism matching as well as literal matching. So any solution would have to take into account both.

I was thinking about this. How about if we introduce two modes: literal and regexp. Literal mode is the same as current functionality. In regexp mode, the query is split on spaces as it is now, but each part is interpreted directly as a regexp. Initialisms are not supported.
Then, we introduce a command to switch between the two modes locally, and bind it to a customizable sequence in Ivy's keymap. A user option for the default mode can be added.
Perhaps it is even worth considering having a mode for literal substring matching only (no initialisms). The mode system would also be a way to add fuzzy matching, if people like the idea of prescient.el but can't divorce themselves from fuzziness.

I think intialism matching is low priority for regex. If you the initial candidate set is not acceptable, that is when you would try to use the regex to filter.

So I think that's in agreement with my proposal, which would disable initialism matching for regexp mode. It might be nice to be able to do an initialism followed by a regexp, but—as you said, low priority. Also, I have no clue what the interface would look like to allow different subqueries to operate in different modes. "Worse is better."
I like this approach and will probably implement it at some point if nobody comes up with a better one.

Let me know what you think of this interface.


OrmCustomRepository does not exist anymore ?

Hi there,
I'm trying to use these method:
https://github.com/typeorm/typeorm-typedi-extensions?#ormcustomrepository
But OrmCustomRepository  does not exist :
import { OrmCustomRepository } from "typeorm-typedi-extensions";

It seems correct path is:
import {OrmCustomRepository} from "../node_modules/typeorm-typedi-extensions/decorators/OrmCustomRepository";

fixed in 0.0.10


Does not work on Nexus 7 (v5.0.2)

On Nexus 7 (v5.0.2) indicator always shows 100%.

With Xiaome MI2 (v4.1.1) everything works fine.

Hmm, I'll check that out this evening.  I've tested on a Nexus 7 before with no issues.  Thanks for the info.

I apologize for the delayed response, but I just checked in the fix for this bug.  The default value for android:useLevel under the tag incorrectly changed to false in Android L. The work around is to set the value in the shape drawable XML to true.


Support for upcoming Events API.

https://godoc.org/github.com/omise/omise-go/operations#ListEvents


Cannot show values from JSON List in Newline

Hi Nicolas,
Thank you for your efforts in making this awesome library..Really Appreciate!
[{"lineId":20180111129,"saPersonList":["Person1","Person2"],"saPercentage":["25%","75%"],"saAmount":["10,000","30,000"],"salesAmount":"40000","invoiceNumber":"TC1712022"}
I'm working on one scenario where i'm passing the JSON(mentioned above) to the pivot.
Currently Pivot is  displaying List in a JSON i.e saPersonList  like Person1, Person2, I want to show each value in list in a newline by escaping comma. I have tried appending "\n","\\n" but it didn't worked for me.
Can you please guide me how can i achieve this?
Thanks,
Vinay

Sorry I didn't get back to you on this, I was on vacation. There's no real support for structured values like arrays or objects unfortunately: attribute values are treated as scalars so you'll need to convert them to strings.

No Probs Nicolas.
I got that it only works with strings & solved the problem i was facing so closed the issue.
I'm trying to achieve one more thing but not getting success..Created new issue regarding the same https://github.com/nicolaskruchten/pivottable/issues/932
Can you please check?
Thanks Anyways :)


[Suggested feature] Create a CharNullField for allowing unique nullable CharFields

I'm looking to add a CharField to my models that is unique if it is set, but does not need to be set.
This answer on StackOverflow suggests converting the CharField blank value to null to achieve this, via a CharNullField.
I'd be happy to create a django-extension for this field if it's something the maintainers would find useful?
Thanks for any feedback/suggestions, and thanks for maintaining this great library!

Just to check, are we sure this cannot be achieved right now (out of the box) with the latest Django version ?
If not I'm happy to accept a PR for such a field. Please also include tests and documentation in the PR !

@trbs confirming this is possible using empty_value which automatically converts an empty string (or any empty input, [], {}, '', (), None to the empty_value set in the model. Docs: https://docs.djangoproject.com/en/dev/_modules/django/forms/fields/#CharField
Thanks!


validation messages, not showing up

set the field to required, ta highlighting the field in red, but the message does not appear.
img result:

form html:

code:
this.tabs = [
            {
                label: 'informaçoes basicas',
                fields: [
                    {
                        key: 'slug',
                        type: 'input',
                        templateOptions: {
                            label: 'slug',
                            translate: true,
                            required: true,
                            appearance: 'outline'
                        }
                    },
                    {
                        key: 'name',
                        type: 'input',
                        templateOptions: {
                            label: 'name',
                            translate: true,
                            required: true,
                            appearance: 'outline'
                        }
                    },
                    {
                        key: 'language',
                        type: 'input',
                        templateOptions: {
                            label: 'language',
                            translate: true,
                            required: true,
                            appearance: 'outline'
                        }
                    },
                    {
                        key: 'code',
                        type: 'input',
                        templateOptions: {
                            label: 'code',
                            translate: true,
                            required: true,
                            appearance: 'outline'
                        }
                    }
                ]
            }
        ];
        this.form = new FormArray(this.tabs.map(() => new FormGroup({})));
        this.options = this.tabs.map(() => ({}));

just ensure you've defined the validation messages first through the NgModule declaration,
check https://ngx-formly.github.io/ngx-formly/examples/validation/validation-message

@aitboudad
but the required one is not standard?
In your example, for the required you do not define the validation object

@NgModule({
  imports: [
    FormlyModule.forRoot({
      validationMessages: [
+        { name: 'required', message: 'This field is required' },
      ],
    }),
  ],
})
export class AppModule { }

@aitboudad perfect,
Another question, thinking about this scenario, is how can I pass additional fields to external functions, eg minlengthValidationMessage or get the name of the validation that is wrong.
why in a field you can have more than one validation rule, example in the image below, has required and pattern

if I call this way, it will already be executed, will it have a way to pass an additional field, without calling the function directly
validationMessages: [
        { name: 'required', message: 'This field is required' },
        { name: 'minlength', message: minlengthValidationMessage(err, field, 'minlength') }
]

the third parameter would be the additional field, in which I pass the name of the validation that showed error

I don't get it, the passed third argument refers to the used validation so, in my opinion, it's just a duplication:
minlengthValidationMessage == minlength

yes, but would use a function as generic name, example.
export function validationMessage(err, field, validatorName) {
  return `some text ${field.templateOptions[validatorName]} `;
}

As the function is generic, I can call both, but it would have to have the 3 field, for me to specify the name of the validation.
FormlyModule.forRoot({
      validationMessages: [
        { name: 'required', message: validationMessage(err, field, 'required') },
        { name: 'minlength', message: validationMessage(err, field, 'minlength') }
    })

see https://stackblitz.com/edit/angular-1wdnzr

thanks @aitboudad

I use validation, but the validation message doesn't shown up

there is an exception for minLength, maxLength validators, the key should be in lowercase: minlength, maxlength.

it worked for minLength and maxLength, but no message displayed for required
should I add a custom message for required, or just the default one will be displayed?
I'm curious why that exception for minLength and maxLength? also the docs should be updated to clearly indicate this information.

I'm curious why that exception for minLength and maxLength?

We use Angular validator maxLength which returns maxlength key when the field is invalid instead of maxLength, to make it consistent for us I'll try to wrap the returned object.

thank  you its working


Missing support for mermaid in markdown

Github add support for mermaid in markdown (Github blog post).
Drawing charts and diagrams in readme is powerfull feature. Please add support to https://deno.land/x too.

Blocked on https://github.com/mermaid-js/mermaid/issues/3650


Add filter flag to task list

Current dependencies on/for this PR:

main

PR #561   👈

This comment was auto-generated by Graphite.


Coverage Map - Vehicle Trail

Issue Type
[x] Question
[ ] Bug
[ ] Improvement
[ ] Build system related
[ ] Performance
[ ] Documentation
Description
Staff would like a help. Is it possible to use the OSMdroid API to generate polygons in real time? I am wanting to use this API to generate vehicle tracks in real time, for that I would have to use a polygon and increase its length according to the displacement and the width must represent the same as the vehicle, in addition my goal is to represent several vehicles on the same map.
What is the best way to use this API to generate polygons covered?
To facilitate the implementation, I was thinking of using JTS Topology Suite to assist in the generation of polygons, do you recommend?

What I want to do is something similar to this issue of Stack OverFlow

@Josue10599 I'm not sure I understood exactly what you need, but I guess a Polyline would do the trick:

it's a list of GeoPoints
it's displayed as a list of segments
potentially with a nice curve to join them (instead of having rectangles that don't follow each other 100% when the angle changes)
you can select the paint's width

Beyond that, you only need to collect and refresh your list of GeoPoints.
It doesn't fully match your needs, but I guess you can find inspiration in a demo like this: https://www.youtube.com/watch?v=nl3AB052_tE
My suggestion: download the osmdroid demo app, and find inspiration in numerous examples.

@monsieurtanuki thanks for answering, my goal would be to accomplish something equivalent to this image, it is basically the same function, I believe it helps to better understand the question

In the image above you are using Apple Maps, my wish is to do something similar using OSMdroid.

@Josue10599 Well if you need several rectangles with different colors, I guess you need a Polygon for each rectangle.

@Josue10599 Well if you need several rectangles with different colors, I guess you need a Polygon for each rectangle.

That's exactly where my question comes in, what is the best way to do this on Android while maintaining a good performance?
Is it better to store polygons in memory? Did you create a file and generate KML or GeoJSON and display it later? What would be the best practice for making a map this way? Consume through a server that sends GeoJSON to me via MQTT or by some other means like REST that I consult every 15 minutes?

@Josue10599 Your question goes beyond osmdroid.
I suggest you first run tests on osmdroid with the maximum expected visible rectangles/Polygons, all kept in memory, regardless of the refresh mode.
If you're able to keep the polygons simple, that's better: for a rectangle I guess 4 points would be enough, and you don't need KML or GeoJSON to populate a Polygon.
You shouldn't have problems with numerous polygons beyond the map - they shouldn't slow the display as we pre-check if the "expensive" actual display is relevant.
I hope this helps.

I will start the tests, for now I will close, but as soon as I get the results I put here the way I did to share with the community, thanks for the help @monsieurtanuki !

I performed the tests and managed to generate the polygons of the coverage map !!!
The logic used was very simple, in the case I used the GPS point I added an offset at half the distance on the left and the other on the left and populated a list of spatial points, this list follows an order from the first to the last where the new values must be added in the middle and the first and last values must remain the same, follow the code to facilitate understanding.
val _polygon = Polygon(mapView)
val _points = mutableList<GeoPoint>()
_points.add(
      _points.size / 2,
      GeoPoint(latitude, longitude).destinationPoint(length / 2, 90.0 + course)
)
_points.add(
      _points.size / 2,
      GeoPoint(latitude, longitude).destinationPoint(length / 2, -90.0 + course)
)
_polygon.points = _points
mapView.overlaysManager.add(_polygon)

For the generation of several polygons I use a polygon list.


install.py: [!] Failed to extract archive: Permission denied

OS Build: 14393.693
python: 3.4.5 cygwin
How can I allow it to write there?

when debugging with pdb:
> /cygdrive/c/Users/msamia/WSL-Distribution-Switcher/ntfsea.py(261)init()
-> ntfsea.lib = loader('ntfsea_%s.dll' % ('x64' if platform.architecture()[0] == '64bit' else 'x86'))
(Pdb)
OSError: Permission denied

Updating to Windows 10 Insider Preview 15031

Probably caused by cygwin http://stackoverflow.com/questions/3826484/using-python-ctypes-with-cygwin

The script was originally designed to work with the Windows distribution of Python. After the script was mostly finished, I added support for Cygwin, but it required a lot of hacks, since Cygwin ships the Linux version, so to speak, so a lot of Windows-specific functionalities are missing, lack of ctypes.WinDLL being one of them.
However, it is working on my Cygwin installation as the script is now, so it should work for you as well under normal circumstances.
I'll try recreating the issue so I can see what I can do about it, meanwhile, you can try the compiled version of the script: https://github.com/RoliSoft/WSL-Distribution-Switcher/releases
Currently, the compiled version is the latest version, and does not require separate Python runtime. Just run the exes from command prompt as you would run the scripts.

Upgraded to Updating to Windows 10 Insider Preview 15031. Specified explicit path to installed windows version of Python 3.6. Running from powershell.
PS C:\Users\msamia\WSL-Distribution-Switcher> C:\Users\msamia\AppData\Local\Programs\Python\Python36\python.exe .\install.py centos:7                                                                                [*] Probing the Linux subsystem...
[*] Default user is root at /root.
[*] Reading /etc/{passwd,shadow,group,gshadow} entries for root...
[*] Beginning extraction...
[!] Failed to extract archive: [WinError 5] Access is denied
PS C:\Users\msamia\WSL-Distribution-Switcher>

Minimum reproduction scenario on both versions 15031 and 14393.51 in powershell:
PS C:\Users\msamia\WSL-Distribution-Switcher> python -c 'from ntfsea import ntfsea; ntfsea.init()'
python : Traceback (most recent call last):
At line:1 char:1
+ python -c 'from ntfsea import ntfsea; ntfsea.init()' 2>&1|clip
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Traceback (most recent call last)::String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

  File "<string>", line 1, in <module>
  File "C:\Users\msamia\WSL-Distribution-Switcher\ntfsea.py", line 261, in init
    ntfsea.lib = loader('ntfsea_%s.dll' % ('x64' if platform.architecture()[0] == '64bit' else 'x86'))
  File "C:\Users\msamia\AppData\Local\Programs\Python\Python36\lib\ctypes\__init__.py", line 344, in __init__
    self._handle = _dlopen(self._name, mode)
PermissionError: [WinError 5] Access is denied

Could you please check if this issue resolves itself if you run the script as administrator?
You don't need admin for the scripts, but for debugging purposes, let's make sure whether this is a genuine permission issue, or something else disguised as "Access is denied".

Now I made it work. Even under normal user. The ntfs extended attribute dll wasn't allowed to be executed for any user.
How to fix it:

right-click on ntfsea_x64.dll (or x86 if you have 32 bit)
properties
tab Security
Advanced
remove all lines containing type Deny
OK
choose your user
tick read and execute
OK


I have to login 3 times every time

Everyone in my team have to login 3 times every time we use the software.
It says that our user needs to be verified. We do it 3 times and then we can login as usual. Frustrating!

Bumping this up as we have the same issue.
I'm either a member or guest of multiple tenants, and due to the admin rights I have, I'm required to use 2FA.
Every single account requires me to login 2-3 times...No joke, it takes me about 10-15 minutes to authenticate to all my tenants....simply to add or remove a subscription from my list, or because my token expires at some point.
And since we have Okta as our IdP, I have to 2FA twice per request: Okta, and MS authenticator.
Please fix this ASAP, this is unusable.

Same here, a simple private account, only one subscription with a storage account. I need to enter password and verification code 3 times to be able to use the storage explorer.
This is really annoying, are there any work arounds/settings i can change?

@s0ar @alexpilon666 @LeifAndreasOberg  I think what we're doing for #460 solves this issue. So I'm going to close this as duplicate. Please read through that thread, try the latest private build, and give us your feedback. If there are still problems related to auth/account mgmt, we can look into making new issues for those things. Thanks!


Comments

is it possible to disable comments on a page?
for axample on abaout page?
thnx
Wesley

comment = false

add this in your about/_index.md file

thnx!


_id returns as an ObjectId

Describe the bug
All _id's stored on database retuns an object instead of string.

To Reproduce
Steps to reproduce the behavior:

Expected behavior
Return _id as string instead of Object.
Additional context
Add any other context about the problem here.
Versions

Dependency
Version

node
14.16.1

typescript
4.0.5

mikro-orm
4.5.6

your-driver
mongo

You literally ask the orm to use objectid type. If you want strings, drop the type option from the decorator. But the dont expect autoincrement, as that works in mongo only with object id.

But if I don't use this way, find by id doesn't work

I don't have magical orb, so hard to say what you are doing without seeing some code. There are example apps, including one using mongo, so look at that I guess. You either need to have only object id, or both string and object id variants. But not mix those into same property, that won't work.
https://mikro-orm.io/docs/usage-with-mongo/#defining-entity
https://github.com/mikro-orm/express-ts-example-app

You don't need to be rude, i am just making some questions because i didn't found a solution looking into documentation. I am gonna try some workaround for this, anyway, thanks for your help.


Two wishes

Hi
Is it possible to get a Test connection button when defining email host data:

and the edit button also on the top:

Thanks and regards

@jgate good request. Will try to address in 0.0.3.Alpha2

Many thanks for this, it is working.


3D View (DOM to 3D) in DevTools doesn't work anymore :(

Error message:
"Some Microsoft DevTools components are missing. 3D View will be unavailable until they are installed. You must be connected to the internet..."
I'm connected to the net. Reinstal didn't help.

Thanks for reporting this, and sorry about the regression. We are working as quickly as we can to address this bug.
I'll close this particular issue because the bug is actually already tracked here: https://github.com/MicrosoftEdge/DevTools/issues/186
Feel free to follow that issue to stay updated with it.


Infrastructure for Open Science Hardware

Thanks for submitting your project to be featured in the Open Leadership Zone at MozFest 2017 :sparkles:
This is open to any project in Mozilla Open Leaders round 4 -- even if you're not coming to MozFest. This process ensures that you're following open practices and will help set you up for a sustained contributor community afterwards. If you have any questions, feel free to reach out to @acabunoc or ask questions in our chat room.
Open Project Checklist :clipboard:
Your project must complete the following to be a featured on Mozilla Pulse and the Open Leadership Zone at MozFest 2017. As you complete each exercise, check off the box and comment with a link to your completed resource. This template repository is here to help you if you get stuck!

[x] Complete Open Leadership 101
[x] Provide a GitHub repository for work and discussion on your project in a comment

new to GitHub?  Here's a step-by-step guide on using the #mozfest template

[x] Create file: README.md in your project repository. This file should help newcomers understand what your project is, why it's important, and kinds of help you're looking for.
[x] Create file: LICENSE to give your project an open license, allowing for sharing and remixing.
[x] Create file: CONTRIBUTING.md so others know how they can contribute. If you'd like, you can remix this template
[x] Create file: CODE_OF_CONDUCT.md. This can be the Mozilla Community Participation Guidelines or a code of conduct of your choice
[x] Turn on your Issue Tracker and create issues to describe each task that you need help with and how a contributor can get started on that task. If you're participating in Hacktoberfest, Create a label called hacktoberfest and apply it to your issues.

Ready to be featured :tada:

[x] Fill out this form to submit your project to Mozilla Pulse. Add the tag open leadership zone.
[ ] Leave a comment on this issue with the text This is ready for the Open Leadership Zone. @acabunoc will review this issue. If accepted, your project will be approved on Mozilla Pulse and featured in the Open Leadership Zone.

If you get stuck at any point, feel free to look at the project templates or reach out to your mentor or @acabunoc. We're here to help you through this process.

Hey @MakerTobey! Gentle reminder that there's only one week to MozFest :) I'd love to see you project featured in the Open Leadership Zone!

This is finally ready for the Open Leadership Zone
I know! Such a busy week. Better late than never.

This is ready for the Open Leadership Zone

This is great, thanks Tobey! Here's your pulse listing: https://www.mozillapulse.org/entry/517


Standby production environment won't deploy if environment limit is met

Describe the bug
Standby production environment won't deploy if environment limit is met
To Reproduce
Steps to reproduce the behavior:

Set environment limit to 1
Deploy production environment
Deploy standby production environment
Deploy 1 development environments
See limit is 1/1
Deploy standby production environment
See that no deployment is triggered

Expected behavior
Standby production environment should deploy as expected, since it is not classed as a development environment

Work around is to temporarily increase the environment limit by 1, or delete an unused development environment


DatePicker - manually editing date to an invalid date then back to valid date not working.

Steps to reproduce:
Scenario 1:
http://plnkr.co/edit/vDeypZk4Gq7odCTGRIMf?p=preview

Place cursor at end of input
Type the number 2
Expected/Actual: This is an invalid date, the "Value" underneath goes blank
Delete the number 2
Expected: This is now a valid date again, the "Value" underneath should be displayed
Actual: The value stays blank

Scenario 2:
http://plnkr.co/edit/vDeypZk4Gq7odCTGRIMf?p=preview

Place cursor before the first digit in the date
Press delete twice to delete the month
Expected/Actual: This is an invalid date, the "Value" underneath goes blank
Enter 03 to set the month again
Expected: This is now a valid date again, the "Value" underneath should be displayed
Actual: It stays blank

I see these results in both Chrome and Firefox latest.
In Chrome Only: In scenario 2 if you type 3 instead of 03, everything works as expected.

I believe this is also causing a more common type of error.  If you completely clear the date and then type 2014-05-05
it will not work correctly.  I'm assuming because 2014-05-0 is an invalid date, and then you type the last "5" and hit the bug.

At the moment Datepicker as quite a lot open issues. We're currently planning a large refactor on that particular module of UI Bootstrap but don't hold your breath.

I would suggest that the datepicker is marked deprecated in the documentation so people don't start using it in production environments.

It's not deprecated, it's just not actively developed at the moment.

Perhaps deprecated was the wrong word.  A notice exactly like your comment would probably help set the right expectations so people don't feel burnt.
At the moment Datepicker has quite a lot open issues.
We're currently planning a large refactor on that particular
module of UI Bootstrap but don't hold your breath.

Good one. I'll discuss it with the other maintainers right away.

Glad I found this thread, I've had tons of headaches getting the validation working properly.

I have a solution for this one. I had a format of yyyy/MM/dd. Doing any edit that made this momentarily invalid would create an invalid date object. The date picker would use this invalid date that it assigned to the model (variable named 'baseDate') as the starting point for creating a new date. Except many of the fields are NaN. By checking for this condition before using the date as a baseline, the problem is avoided. I just added a isNaN(baseDate) at the appropriate place. Here is the git diff.
diff --git a/ui-bootstrap-tpls-0.13.0.js b/ui-bootstrap-tpls-0.13.0.js
index 6119661..dac366f 100644
--- a/ui-bootstrap-tpls-0.13.0.js
+++ b/ui-bootstrap-tpls-0.13.0.js
@@ -781,7 +781,7 @@ angular.module('ui.bootstrap.dateparser', [])
 if ( results && results.length ) {
   var fields, dt;

 if (baseDate) {

 if (baseDate && !isNaN(baseDate) ) {
   fields = {
     year: baseDate.getFullYear(),
     month: baseDate.getMonth(),

+1

+1 Nice work @davidcox66, any chance of raising a pull request?
It would be great to get this into the next release.

:+1:


alsaLib: 1.1.6 -> 1.1.7

Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip" - way to many packages, would take me days doing it locally
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Fits CONTRIBUTING.md.

Success on x86_64-linux (full log)
Attempted: alsaLib
Partial log (click to expand)
shrinking /nix/store/ld7sg9d1iqkilslhglfdj80ni8p0hjn5-alsa-lib-1.1.7/bin/aserver
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ld7sg9d1iqkilslhglfdj80ni8p0hjn5-alsa-lib-1.1.7/lib  /nix/store/ld7sg9d1iqkilslhglfdj80ni8p0hjn5-alsa-lib-1.1.7/bin
patching script interpreter paths in /nix/store/ld7sg9d1iqkilslhglfdj80ni8p0hjn5-alsa-lib-1.1.7
checking for references to /build in /nix/store/ld7sg9d1iqkilslhglfdj80ni8p0hjn5-alsa-lib-1.1.7...
shrinking RPATHs of ELF executables and libraries in /nix/store/hbpk6dv2cxx9xh80x6cdv8f9hg8viwhh-alsa-lib-1.1.7-dev
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/hbpk6dv2cxx9xh80x6cdv8f9hg8viwhh-alsa-lib-1.1.7-dev/lib
patching script interpreter paths in /nix/store/hbpk6dv2cxx9xh80x6cdv8f9hg8viwhh-alsa-lib-1.1.7-dev
checking for references to /build in /nix/store/hbpk6dv2cxx9xh80x6cdv8f9hg8viwhh-alsa-lib-1.1.7-dev...

@GrahamcOfBorg build alsaLib

Success on x86_64-linux (full log)
Attempted: alsaLib
Partial log (click to expand)
/nix/store/ld7sg9d1iqkilslhglfdj80ni8p0hjn5-alsa-lib-1.1.7

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: alsaLib
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on aarch64-linux (full log)
Attempted: alsaLib
Partial log (click to expand)
/nix/store/vqdjw97iyj8xi7il667pj03cdwvj13ka-alsa-lib-1.1.7


Add Spigot version

this will work for both Spigot and PaperMC Servers (the 1.20.1 versions, at least)
Caveats:

You need to use Spigots "BuildTools" to generate a "Mojang Mappings" spigot build in your local maven cache. This is needed, because of some drama that ended in a DMCA takedown
In the gradle config you will find a "shadowJar" plugin (and task), which just makes sure :common is packed into the spigot jar file, so the final distributable is just a single jar
In the gradle config you will find a "remap" plugin (and task), which replaces the mojang class/method names by the obfuscated ones that the regular builds of spigot/paper actually use (as present in the server jar mojang distributes)
As a result of 3 and 4, the actually usable jar will be under "build/libs/ArmorPoser-spigot-1.20.1-2.2.1-remapped.jar"
I don't fully understand how one publishes a spigot plugin, seems to me like one adds a "Resource" in their forum... However, you could also publish it to Modrinth apparently, or https://hangar.papermc.io/ for paperMC specifically, so I am not sure which of these you would want and how to go about it.

If you are willing to take this in, I can try working out a version for all branches newer than multi/1.20 as well, but 1.20.1 is the one I needed for my own use, so that is where I started.

I already have a plugin for 1.21 over at https://dev.bukkit.org/projects/armor-poser 😅 Just haven't published the code to a public repo yet

welp... I still learned a lot doing that, and since I needed it for 1.20.1 it is not completely wasted effort, either 😅

So I guess we can close this, and you will bring back the buckit code into this (or a related) repo at some point?

I'll upload my paper code once I get access to my computer again and see if there's any obvious differences. As my code seemed to work for me but some people have problems with it

@Rialgar
Finally got around to it: https://github.com/Mrbysco/ArmorPoser-Plugin
If you see anything funky let me know. As I'm not well versed in plugin creation

I am not experienced, either. I literally learned it for this PR. I don't see anything wrong with it, but I find it curious that you copied over some code instead of re-using it inside this repo, I assume because the bukkit plugin would not work in the CI you have here?
Anyhow, I hope I will be able to test it myself in a local paper server soon to let you know if I spot anything there 🤞

I wrote my plugin for Paper in which you need to use paperweight to reference anything MC internal related

I know I am late, but I finally tested it and it runs perfectly fine for me. Thanks for investing the time to write it!


clear lazy map after resulting Tilt templates

clear lazy map after resolving Tilt templates
use raw ext to resolve Tilt template

Since this method resolves the Tilt template for each extension, there's no reason to keep entries in the lazy map. If entries are left in the lazy map, this can later lead to the extensions_for method returning duplicate entries.
I also simplified the call to resolve the template using mapping[ext] instead of ::Tilt[".#{ext}"] since these two calls do exactly the same thing.

Coverage increased (+0.002%) to 90.2% when pulling 789f739d6aed278d8ed0098e9c0b2cc86ccaca71 on mojavelinux:prune-tilt-templates-patch into ecb84cc6d2f05bd75a4125b7494a058ed702279e on middleman:master.

This may not be necessary if Tilt accepts the change upstream. See https://github.com/rtomayko/tilt/pull/324.
One way or another, we need agreement on this.

Coverage decreased (-0.2%) to 89.951% when pulling b1ed7fa0b99e77afc73dbfbb4b7326ac0acee7b4 on mojavelinux:prune-tilt-templates-patch into ecb84cc6d2f05bd75a4125b7494a058ed702279e on middleman:master.


fix(gui): add missing translations and correct some

Google Translate was used for both Spanish and Chinese.
Tests are included to ensure all files exactly have match prefixes of all lines.

@asashour I don't think Google Translate is a good source for translation. I think English is better than a bad translation. So I suggest you split this PR into fixes and new translations and for translations part, we will wait until someone with knowledge of these languages can review them.

BTW, there is no fallback to English, if the value is not defined. I guess this should be changed.

@asashour I checked and fallback is working. Looks like it doesn't work if you assign empty string instead translation, so it uses empty strings. You can fix it if you really want.
Also you can use java.util.Properties for parse files in tests and don't write a parser from scratch.

I see.
Now, all untranslated values are commented, so it is easier for the translator to see what is missing.
Regarding using java.util.Properties, it won't help much to ensure one-to-one line comparison, and also considering comments.


support Xcode 8 beta 6

Thank you for your code!!
But I don't wish to merge with master brunch.
I'll make "swift3" brunch.
Would you make PR there?


Update default tezos-k8s images to be GHCR one

Are we currently building and pushing to GHCR @nicolasochem ? I know we merged your PR, but I haven't thought about how this works enough. Don't we want people who use the helm chart for it to come from wherever we are pushing? I don't think snapshot engine container is in GHCR yet, but I may be wrong- I'm just thinking out loud.

Are we currently building and pushing to GHCR @nicolasochem ?

We sure are.

Don't we want people who use the helm chart for it to come from wherever we are pushing?

What do you mean?

I don't think snapshot engine container is in GHCR yet, but I may be wrong- I'm just thinking out loud.

Yes it is: https://github.com/oxheadalpha/tezos-k8s/pkgs/container/tezos-k8s-snapshotengine

Ah I see! Well then sounds good to me. Thanks for clarifying!

@puppetninja Could you update the description with a “what”, “why”, and “how” sort of explanation of what this does?

@nicolasochem CI was failing im not sure id that was a concern…

@nicolasochem CI was failing- I'm not sure if that was a concern…

It's because the PR was opened from a fork, so docker images won't build, but this PR is not touching the containers so it looked fine.

Shouldn't the tag be master and not latest? The current latest image in the registry is 6.11.1. The image could become out of date when master is updated but doesn't become latest tag. Like it is right now.


TextInput accepts formatted text on paste, shows formatting in the TextInput but gives plain text from callback

Description
TextInput accepting rich(formatted) text on paste. all colors, fontSize, spacings are maintained and showing up in TextInput but  onTextChange not giving any information about formatting, it just giving out plain texts.
React Native version:
Binaries:
Node: 14.15.4 - ~/node/bin/node
Yarn: 1.22.10 - ~/node/bin/yarn
npm: 7.9.0 - ~/node/bin/npm
Watchman: Not Found
SDKs:
Android SDK:
API Levels: 23, 27, 28, 29
Build Tools: 28.0.3, 29.0.1, 29.0.2
System Images: android-23 | Intel x86 Atom_64, android-27 | Intel x86 Atom_64, android-27 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom_64
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java: javac 9-internal - /usr/bin/javac
Python: 3.8.5 - /home/war/anaconda3/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.63.4 => 0.63.4
npmGlobalPackages:
react-native: Not Found
Steps To Reproduce

Use Android OS
Use TextInput in components
Copy rich(formatted) text from any webpage in you mobile browser
Paste that copied rich text in the TextInput
looks at the text you got from onTextChange
Don't do like copy rich text from browser on Desktop and paste that in emulator, it will not reproduce.
Copy from Mobile's bowser and paste in the same mobile's new react-native App's TextInput

Expected Results
TextInput should show the same plain text that we are getting from onChangeText, or onChangeText should give us information about formatting with Pasted text.
screenshot :

message contains the plain text I am getting from onChangeText

As a temporary solution for clean up formatting from pasted text, I use
<TextInput value={this.state.myText}
    onChangeText={(newText) => {
      if (Math.abs(this.state.myText.length - newText.length)<=1) { // type in
        this.setState({myText: newText});
      } else { // paste
        this.setState({myText: ' '+newText}, ()=>{
            this.setState({myText: newText});
        });
      }
    }}
/>

I'm also facing this issue; any progress on this?

This issue occurs due to some invisible characters like https://www.compart.com/en/unicode/U+FFFC also getting copied.
This code resolved the issue of copied images for me
<TextInput
....
onChangeText={(content) => {
let finalResult = content.replace(/￼/g, '')
this.setState({
descriptionValue: finalResult,
})
}}
/>


[FEATURE] add Github workflow to run against arm Ubuntu latest

Is your feature request related to a problem?
Currently it only runs against latest ubuntu which is x64. We want to have a flow for arm.
What solution would you like?
What alternatives have you considered?
Do you have any additional context?

do not add to pr check to avoid long waiting time

We either need to wait for Github to provide arm hosts or have our self hosted arm machines.


Edit Posts: Should generate existing post text in modal

Describe the bug
When using "Edit Post" to attempt to edit one of my Feed posts, I noticed it doesn't display the current version of the post text when the modal opens. To use the feature, a user would need to either copy the message, click the Edit button, then paste the old message and make changes, or would need to write an entirely new message.
To Reproduce
Steps to reproduce the behavior:

Go to 'Feed', select one of your posts
Click on 'Edit post'
See the empty modal

Expected behavior
Users expect this modal to contain the current version of their message and to simply make their edits and re-save the post to populate changes
Screenshots

Desktop (please complete the following information):

OS: iOS
Browser Chrome
Version no idea

Additional context
Keep being awesome! :-)

I believe it worked before, I once used it and the editor had my post, gotta check the commits.

hey @dawnkelly09 it seems to be working now, could you try it once when you have time and let me know if there is still some issue
https://github.com/NEARBuilders/gateway/assets/100185149/1a5fd91d-6d8c-453d-a61b-59d033197ce2

@Megha-Dev-19 confirming this does appear to be working correctly. I will close this issue.


Add persistent volume support

Credentials are also saved in a persistent volume (if any) which is probably not a really good practice. Might make sense to fix it in the upstream project, but for now we should support it.
Data to be stored:

user uploaded data
credentials
backups

Hi,
please note that credentials can be saved inside the data provider too, this is configurable, just set prefer_database_credentials to true.
Credentials are stored encrypted the configured kms provider

Thanks, I'll keep that in mind.

Hi, if this is worked on can you also add values for storage class?

hope to store the data of sftpgo in the storage volume by default.

this is really needed


Enable explicitApi() for library modules

@egorikftp we can try to play around  explicitApi() for lib modules (strikt mode)
Originally posted by @vkatz in https://github.com/ComposeGears/Tiamat/issues/51#issuecomment-2264866399

Done #68


If it possible to use teacher forcing to train the RNN decoder?

Hi Haijun, thanks for sharing your code, it is great implementation.
As I go through your code, I found you did not adopt teacher forcing to train the RNN decoder. I would like to know, if it is possible to do that? The major difficulty is in the testing. To do that, we need to get the rule masks on the fly, that is to say, every time we generate a production rule, we need to know the current rule mask given the current state of production rules prefix. In your code, you have the whole production rules, then you can get the rule masks for each production rule.
I would like to listen to your opinion before diving into the implementation. Thanks.

Hi,
Sorry for the late reply. I think the main reason here is to make a non-autoregressive decoder. If the decoder is too powerful, then it can simply cover the distribution without conditioning on the encoding -- this is just my hypothesis, and I think it might still work, as there have been many autoregressive + VAE works.

Thanks for your reply. I have tried and it works well.


Cannot get any output from authenticate.go

I'm trying to use pam_oidc for ssh but I'm getting no response after a call to discoverAuthenticate. I'm trying to troubleshoot it but I don't know Go all that well. How can I get println statements in the functions in authenticate.go so that I can find the problem?
Thanks,
Dennis

By the way I have placed println and fmt.println statements inside discoverAuthenticate but I'm not seeing any output in /var/log/auth.log.

Appolgoies for getting to this so much later, probably not all that helpful to you now. You might try calling https://github.com/salesforce/pam_oidc/blob/main/pam_oidc.go#L64.


Add new doc for non-nested virtualization deploy

Since the Framework is stable enough to be consumed on proper
hypervisor, let's explain how to consume it.
This patch also makes a tiny change to the make docs, ensuring we're
cleaning the _build directory in order to avoid any of the potential
"smart caching" embedded in sphinx.

/approve


Update Savegame load code to read StructureID

From #597
Savegame load code will need to be modified to expect an ID value instead of a string literal. This is dependent on #598.

Since saving an loading are tied together, maybe they should be handled as a single issue. Otherwise you get broken saved games if only one of them is addressed.

Internally, I think the game should prefer numeric IDs over string IDs. For saving/loading, I'd be fine with translating to/from string IDs. The string IDs would be somewhat nicer if manually editing a text file.

I'm kind of thinking the structure name could become the tag name:
<agridome propert1="value1" ... />

Not sure what the current format is though.

The structure strings have potential spaces in them. They're literally the decoration names. I know that it would be easier to read if manually editing a savegame but the intention isn't to make manual savegame editing easy, it's to make it so I don't have to do so much jumping through hoops in the code.
Additionally, I'd like to eventually replace the XML with an actual binary savegame. The choice for XML was just for the beginning of development so I could play with the internal values. Visual Studio's debugger has gotten a lot better (and I've gotten a lot better with it) so I think it's better to do it this way.
I could put these two tasks into a single PR, shouldn't be an issue, but I did want to break each task since saving/loading are very different operations when it comes to TinyXML. Loading code is far more verbose than saving. :/


Submit APIQ CMS (new name of KMS CMS)

[x] verified that the CMS I'm adding is still maintained.
[x] read CONTRIBUTING.md.
[x] did not generate README.md.

Merged in https://github.com/postlight/awesome-cms/commit/922d23cf55c25dadadf883052e33f28848fe252e. Thanks again, @GarPit!


Allow undock and drag the terminal/debug/output windows to a secondary monitor

With multiple monitors, and all other editors able to do this, it is a visible deficiency in VSCode.
There is a header bar in VSCode that separates the editor window(s) from the terminal/output/debug windows - and one can click on that header to drag the height of the t/o/d windows - but one cannot drag them off to a secondary monitor.
I see that previously there were two feature requests opened on this specific matter:

#22305 (Possibility to open terminal in separate window),
#27857 (Feature Request: Terminal panel open to new window)

and each was closed referencing the other #CircularFiringSquad. Was this feature request closed in error? Is it now off the radar?
Further searching shows these requests are likely related to issue #10121 (Allow for floating windows), although discussion on that issue has transmogrified into opening editor windows in separate windows.
VSCode team: please provide an update regarding this specific issue. Being able to write code on monitor A and view output on monitor B is a necessity -- I am sure you all do that yourselves on your rigs, right?
Also, please update the above 2 issues (22305, 27857) to reference Issue #10121 instead of each other.
I also note for future readers that user Deltatiger has observed (in #10121) that a new feature "Duplicate Workspace in New Window" is a possible workaround for this issue, since it "seems to share the context / workspace across windows and solves the basic multi-monitor issue." I haven't tried that yet, but even so it would not be an optimal solution as it is not immediately intuitive. If that is the final solution, then please consider intercepting the t/o/d header drag event and pop-up an informational message.

Not a duplicate of 43484 - please human-read message to confirm suspected duplicates and action requested updates. (I feel silly responding to the vscodebot's clearly irrelevant post and am loathe to add clutter, but am unsure if issue workflow could be halted without response)


allow display to sleep vs locking

I was trying the option "Allow the display to sleep" but it didn't really behave the way I thought it would.
The display did indeed went into sleep. But then after re-activation it asked for a password.
That's not what I would have expected from the wording.
I was thinking I would not have to login as it would just sleep/dim the screen.
So I assume it means the machine keeps running (not sleeping) with the screen dimmed - but it also gets locked?
I think it would be good to make this a bit clearer from the option text.
But thanks for the app - I use it all the time.

I was going to ask what is the intended behavior. I actually personally prefer if it lock the computer but doesn't "sleep".
I'm intending to use VS Code remote, and sometimes I'll need to run stuff on workstation and making sure session isn't lost (notebooks). Screen off and locking could allow going AFK.
I guess both options could exist ?

One way I've been able to circumvent this is by doing the following:

checking the Allow the display to sleep option under the advanced settings of the app.
under your mac's System Settings, set the option for Turn display off on power adapter when power inactive to never. (Mac OS Ventura)
That way, even when your screensaver becomes active and the screen gets locked, the display will never go off, and any underlying processes will keep running.
The downside to this, however, is that once you lock your screen manually, this doesn't take effect. Thus, you will have to uncheck the Allow the display to sleep option before locking your screen.