Md-checkbox doesn't change when user has the shift key pressed on Firefox 55.0.3

Bug, feature request, or proposal:
Bug
What is the expected behavior?
When the user maintains the shift key pressed and he clicks on md-checkbox, the checkbox changes it's ng-model.
What is the current behavior?
The md-checkbox doesn't change it's ng-model if user has the shift key pressed.
What are the steps to reproduce?
You can check the issue on official website of angular material (https://material.angular.io/components/checkbox/examples)
If you press shift and try to change the checkbox (keep in mind you must be on firefox, on the other browsers it will works) it will not change.
What is the use-case or motivation for changing an existing behavior?
I want to implement multiple selection using shift key like in gmail.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 4.2.5, Material 2.0.0-beta.11, Windows 10, Typescript 2.2.2,
It works fine on all browsers except Firefox(I tried just on firefox 55.0.3
Is there anything else we should know?
For the moment I don't think so.

Duplicate of #6232


[openssl] Build error on Windows 11

Host Environment

OS: [win11 x64]
package: openssl[core]:x64-windows -> 3.0.2#2
vcpkg-tool version: 2022-03-30-692785ac944e81417840c6de244fb3e18a4b35eb
vcpkg-scripts version: 4415a0f31 2022-04-11 (24 hours ago)

To Reproduce
Steps to reproduce the behavior:
./vcpkg install python3 python3:x64-windows
Failure logs
Starting package 1/4: openssl:x64-windows
Building package openssl[core]:x64-windows...
-- Using cached openssl-3.0.2.tar.gz.
-- Cleaning sources at E:/GitHub/vcpkg/buildtrees/openssl/src/openssl-3-67d457a95e.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source E:/GitHub/vcpkg/downloads/openssl-3.0.2.tar.gz
-- Using source at E:/GitHub/vcpkg/buildtrees/openssl/src/openssl-3-67d457a95e.clean
-- Copying openssl release source files...
-- Copying openssl release source files... done
-- Configure x64-windows-rel
-- Configure x64-windows-rel done
-- Build x64-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:128 (message):
Command failed: E:/GitHub/vcpkg/downloads/tools/jom/jom-1.1.3/jom.exe -j 1 -f makefile install_sw install_ssldirs
Working Directory: E:/GitHub/vcpkg/buildtrees/openssl/x64-windows-rel
Error code: 2
See logs for more information:
E:\GitHub\vcpkg\buildtrees\openssl\build-x64-windows-rel-1-out.log
E:\GitHub\vcpkg\buildtrees\openssl\build-x64-windows-rel-1-err.log
Call Stack (most recent call first):
ports/openssl/windows/portfile.cmake:84 (vcpkg_execute_required_process)
ports/openssl/portfile.cmake:31 (include)
scripts/ports.cmake:145 (include)
Additional context
build-x64-windows-rel-1-err.log
build-x64-windows-rel-1-out.log

cl : Command line error D8050 : cannot execute 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64\c1.dll': failed to get command line into debug records

This seems to be a problem with your VS settings，could you please repair your VS and try again.

@Adela0814  thanks for your help,I tried it again as you said,but it still has this problem.

Can you try it with a new VS? sorry, I'm not sure which setting is wrong.

@Adela0814  I use another compute with new os, install vs2019 ,then try it again, it still has this problem.

Can you try it with a new VS? sorry, I'm not sure which setting is wrong.

I tried vs2022, but it still didn't work.

Did you use cmd instead of powershell? We prefer to use powershell since there are some operations which need to be executed.

Did you use cmd instead of powershell? We prefer to use powershell since there are some operations which need to be executed.

I tried it again with PowerShell with administrator privileges, and the error remained the same

Does vcpkg not support Windows 11?

Does vcpkg not support Windows 11?

Will try to reproduce this issue on Windows 11 later.

thanks. windows 11 home edition
---Original---
From: @.>
Date: Mon, Apr 18, 2022 21:57 PM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [microsoft/vcpkg] [openssl] Build error on Windows 11 (Issue#24109)
Does vcpkg not support Windows 11?
Will try to reproduce this issue on Windows 11 later.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

Guys, any progress? Has the problem been solved?

Sorry for late, I will try to reproduce this in the next week.

I can't reproduce this issue on Windows 11 locally.

We haven't been able to repro this; if more information comes up, or this issue appears again, please reopen.


ARROW-13480: [C++] Fix possible deadlock when dataset produces an error

@westonpace Feel free to add any C++ tests to this.

Thanks!  Will do.

Added a C++ change as a PR to your repo.

@westonpace Are you ok with the fix?


TypeError: View is not a constructor

Hi, I'm getting this error when I try to render an ejs page... I guess the error is on my side, so can you please help me debug?
error:
TypeError: View is not a constructor     at Function.render (/home/luca/Projects/stk/node_modules/express/lib/application.js:570:12)     at ServerResponse.render (/home/luca/Projects/stk/node_modules/express/lib/response.js:1008:7)     at app.get (/home/luca/Projects/stk/index.js:28:37)     at Layer.handle [as handle_request] (/home/luca/Projects/stk/node_modules/express/lib/router/layer.js:95:5)     at next (/home/luca/Projects/stk/node_modules/express/lib/router/route.js:137:13)     at Route.dispatch (/home/luca/Projects/stk/node_modules/express/lib/router/route.js:112:3)     at Layer.handle [as handle_request] (/home/luca/Projects/stk/node_modules/express/lib/router/layer.js:95:5)     at /home/luca/Projects/stk/node_modules/express/lib/router/index.js:281:22     at Function.process_params (/home/luca/Projects/stk/node_modules/express/lib/router/index.js:335:12)     at next (/home/luca/Projects/stk/node_modules/express/lib/router/index.js:275:10)
my code:
const express         = require("express"),
           ejs                 = require("ejs"),
           app                = express();

app.set('view engine', 'ejs');
app.get("/login", (req, res) => res.render("login.ejs"));

login.ejs is located in views folder of my project
Express version is: "4.16.3", ejs version is: "2.5.8"
Thanks in advance

did you try res.render("login") ?

Yes I did. I did also tried including the full path but still same error

It works for me only difference is i have explicitly given views path via app.set("views", "./views")

Unfortunately that doesn't work.
I got it working like this:
app.get("/login", (req, res) => ejs.renderFile("./views/login.ejs", null, null, (err, html) => {res.end(html)}));
but this is a ugly workaround... :(

ok I started a brand new project, added express and ejs dependencies and it works fine.
source:
const app = require("express")();

app.set("views", "./views");
app.set('view engine', 'ejs');
app.get("/", (req, res) => res.render("home"));

app.listen(8080, () => {});

So there should be something in my other project...
In non working project I've also tried removing package-lock.json and node_modules and re issuing npm install --save but it still doesn't work...

ok I've found out where the problem is...
In my app code I have app.settings = JSON.parse(fs.readFileSync('settings.json', 'utf8')); that probably conflicts with express, right?

@luca-viggiani Yeah that's right. Seems like express uses the settings variable for internal usages: https://github.com/expressjs/express/search?utf8=✓&q=app.settings&type=

Ok. So I would suggest protecting that property (e.g. configurable: false) so that if somebody like me tries to assign/override it gets an error, thus debugging his application is more straightforward.

The same issue can happen if you overwrite any property express needs. You should never set any property on the app object, instead use the methods and properties we provide in our API only. Blindly setting a property on an object you didn't create is at your own risk in javascript.


Add Unit/Functional tests

Even though it is a small application, I believe Adjure would benefit greatly from some form of unit/functional testing. Travis integration is also a good idea.
As to what to use to run said tests, phantomjs seems like a good idea.

Also as part of this it might be good to split out the js functionality into several different files.

Also, travis-ci integration might be a good idea?


Can't be installed on fresh systems, no pandas support

Pandas dropped support for Python2, so it's not possible to use this bot anymore on fresh systems.

Can you install Pandas version 0.23.4? it's the last version supporting python 2.7.
There was work to migrate the bot to Python 3 which wasn't finished as far as I know.

I just cloned the project on a new instance and it works fine. You can probably use pip to get the working pandas.
Where is the python3 migration repo?

@vansonlin there is a branch and a PR
https://github.com/BitBotFactory/MikaLendingBot/pull/539


Broken support for Conditions

Hi,
There are multiple issues revolving around conditions. I don't know whether you'll end up addressing them in the same code change or not so I'm reporting them in one go here:

cfn2py completely ignores conditions - the "Conditions" section of the source json as well as the "Condition" resources attributes are not set in the output .py file.
Once added conditions manually to the generated script, the "Conditions" section output the Condition in the wrong format, i.e.:

    "Conditions": {
        "EnableAutoScale": {
            "Condition": {
                "Fn::Equals": [
                    {
                        "Ref": "EnableAutoScaleFlag"
                    },
                    "true"
                ]
            }
        }
    }

instead of:
    "Conditions" : {
        "EnableAutoScale" : {
            "Fn::Equals" : [
                {
                    "Ref": "EnableAutoScaleFlag"
                },
                "true"
            ]
        },
    }

(i.e. only the "Condition.condition" field should be rendered instead of the entire object)
On the other hand, as far as I can tell, the "Condition" attribute is printed correctly (i.e. only the condition name) in the Resources once I added their definitions.
This is with version 1.0.0
Thanks.

RE: The first point, unfortunately the cfn2py script is a bit of a second class citizen, and doesn't get much love, mostly because it's kind of a nightmare to deal with.  It's basically always been a 'best effort' tool.  If you would like to submit pull requests though, we'd be happy to take them :)
I think the second point is a misunderstanding of what the Condition resource is used for.  You don't actually use the Condition resource in the Conditions section for the most part (this isn't always true, more on that below).  The reason is that Condition is an attribute of the Condition itself.  It's confusing to explain, and easier to see in action - which you can do here:
https://github.com/remind101/stacker/blob/master/stacker/blueprints/asg.py#L62
Let me know if that doesn't make any sense :)

BTW, this helps explain it a little bit more:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-conditions.html

Thanks for your response.
I tried to look into cfn2py to add condition support but didn't manage to get my head around how it works (yet, perhaps I'll get back to it)
I just noticed that my change breaks the test_ec2Conditions test, which has a validating format.
Still - the output without my change generates invalid format for conditions - what's the right fix?

There isn't a fix- basically you have a misunderstanding of when to use the Condition() helper function and when to use a Condition attribute.  If you look at the first link I shared, it shows when you would use the Condition helper function (see: https://github.com/remind101/stacker/blob/master/stacker/blueprints/asg.py#L76) and when not to (https://github.com/remind101/stacker/blob/master/stacker/blueprints/asg.py#L62).
Basically you only use the Condition() helper function when you are referring to another condition, otherwise you don't need it.  Note - when you are putting a condition attribute on a resource, you do not use the Condition() helper function: https://github.com/remind101/stacker/blob/master/stacker/blueprints/asg.py#L92
Does that all make sense?  I'm going to go ahead and close your pull request, since it would actually break the intended functionality.

Sorry, now I see your point. I was confused by the phrasing of your first response. I can now generate the right output by removing the "Condition" wrapper from all the Condition definitions.
Thanks.

NP :)  It's a hard thing to explain without just looking at the examples. To be honest it confused me when I first wrote that blueprint for stacker :) Glad it's working for you now!


Demote new block notification log to trace

Not the most important information and the logs are dominated by this on debug level on testnet.

bors r+


sameboy: 0.15.4 -> 0.15.5

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/LIJI32/SameBoy/releases.
meta.description for sameboy is: "Game Boy, Game Boy Color, and Super Game Boy emulator"
meta.homepage for sameboy is: "https://sameboy.github.io"
meta.changelog for sameboy is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.15.5 with grep in /nix/store/k7g4mf7mdq1qkdskr768pwllq2iswb00-sameboy-0.15.5
found 0.15.5 in filename of file in /nix/store/k7g4mf7mdq1qkdskr768pwllq2iswb00-sameboy-0.15.5

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
sameboy

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/k7g4mf7mdq1qkdskr768pwllq2iswb00-sameboy-0.15.5 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A sameboy https://github.com/r-ryantm/nixpkgs/archive/ca8f183dff92ee669c0bdb965dc6272c0520dd01.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/k7g4mf7mdq1qkdskr768pwllq2iswb00-sameboy-0.15.5
ls -la /nix/store/k7g4mf7mdq1qkdskr768pwllq2iswb00-sameboy-0.15.5/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

sameboy

Maintainer pings
cc @NieDzejkob for testing.

Result of nixpkgs-review pr 188893 run on x86_64-linux 1

1 package built:

sameboy


[FR] Download all works of an artist

Problem
spotdl [link to an artist’s page on Spotify]
IIRC, we used to have this feature in v2.

I will work on this

Thanks!


[Editor] Fix editor progress dialog auto closing on focus loss.

Fixes https://github.com/godotengine/godot/issues/72411

I wonder if we could make the progress dialog also embedded? There's a bunch of issues reported about it being needlessly floating, e.g. https://github.com/godotengine/godot/issues/72155

e.g. https://github.com/godotengine/godot/issues/72155

It might be fixed by this PR as well.


Feature request: Add -Tag to enable lambdas

Hi Victor,
sorry for bothering again :-)
I want / need to use lambdas which is supported by j2objc when specifying the -source option (-source 8 in this case).
Unfortunately it is not possible to specify the  option in pom.xml.
Would you be so kind to add this to the plugin? I think in pom.xml it should be possible to specify something like this:
<plugin>
 <groupId>com.smoope.utils</groupId>
 <artifactId>j2objc-maven-plugin</artifactId>
 <version>1.0.1-SNAPSHOT</version>
 <configuration>
   <j2objcPath>/usr/local/j2objc/j2objc</j2objcPath>
   <source>8</source>
   ...
 </configuration>
</plugin>

Thank you very much in advance!
Regards, Dirk

I relied on official docs, there was no such option there...
Please check 1.1.0-SNAPSHOT, I'll add all undocumented options there.

Thank you very much again. Works like a charm...


⚠ Bofrost.at has degraded performance

In 32c726e, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1895 ms

Resolved: Bofrost.at performance has improved in e900500 after 6 minutes.


[ENG-762] remove subjects from collections

Purpose
Remove subject/taxonomies from collections because it's just a "nice to have" and leaving it in require major refactoring for Registries subjects.
Summary of Changes
Changed

Models

collected-metadatum

removed subjects validation
removed subjects attribute
removed displaySubjects computed

Engines

collections

Components

collections-submission - removed subjects section
discover-page - removed subject/taxonomy search filter
collection-search-result - removed subjects display

Routes

discover - removed subject/taxonomy facet

Removed

Components

subject-picker

Engines

collections

Components

collection-subjects-list
discover-page/facets/taxonomy
discover-page/active-filters/taxonomy

Helpers

custom-taxonomy-filter

Side Effects
None expected.
Feature Flags
n/a
QA Notes
Subjects are now completely absent from Collections.
Ticket
https://openscience.atlassian.net/browse/ENG-762
Reviewer Checklist

[ ] meets requirements
[ ] easy to understand
[ ] DRY
[ ] testable and includes test(s)
[ ] changes described in CHANGELOG.md

Pull Request Test Coverage Report for Build 3207

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
29 unchanged lines in 6 files lost coverage.
Overall coverage increased (+0.08%) to 75.652%

Files with Coverage Reduction
New Missed Lines
%

lib/collections/addon/discover/controller.ts
1
85.71%

lib/collections/addon/components/collection-search-result/component.ts
1
83.02%

app/validators/array.ts
1
18.18%

app/transforms/object.ts
1
81.82%

lib/collections/addon/components/collections-submission/component.ts
3
69.72%

lib/collections/addon/components/discover-page/component.ts
22
70.79%

Totals

Change from base Build 3206:
0.08%

Covered Lines:
6777

Relevant Lines:
7877

💛  - Coveralls


[Table] Add rowspan and colspan examples

Closes #13281

I would use one table for row and colSpan since both show that props are spread to the native element. At least I didn't spot a fundamental difference between those two examples.

I agree, a single demo is enough. I think that we can demonstrate an invoice table.

Merci!


PerfHost service fix

Change SysWow64 to System32
PerfHost isn't available for arm64, but exist for arm32, so manual copy is need

fe6211cb41db39f9015af73661f9bbbdd69c705a fixed


Add Koyeb as a deployment option

Hi there,
I created a guide to add Koyeb as a deployment option in your setup guide. 😇

Thanks!


[FX-5536] Migrate FormControlLabel to TailwindCSS

FX-5536
How to test

Temploy
Visual tests have to be green

Screenshots

Before.
After.

Insert screenshots or screen recordings
Insert screenshots or screen recordings

Development checks

[x] Add changeset according to guidelines (if needed)
Read CONTRIBUTING.md and Component API principles
[x] Make sure that additions and changes on the design follow Toptal's BASE design, and it's been already discussed with designers at #-base-core
Annotate all props in component with documentation
Create examples for component
Ensure that deployed demo has expected results and good examples
Ensure the changed/created components have not caused accessibility issues. How to use accessibility plugin in storybook.
[x] Self reviewed
Covered with tests (visual tests included)

Breaking change

codemod is created and showcased in the changeset
test alpha package of Picasso in StaffPortal

All development checks should be done and set checked to pass the
GitHub Bot: TODOLess action

PR commands

List of available commands:

@toptal-bot run package:alpha-release - Release alpha version
@toptal-anvil ping reviewers - Ping FX team for review

PR Review Guidelines

When to approve? ✅
You are OK with merging this PR and

You have no extra requests.
You have optional requests.

Add nit: to your comment. (ex. nit: I'd rename this variable from makeCircle to getCircle)

When to request changes? ❌
You are not OK with merging this PR because

Something is broken after the changes.
Acceptance criteria is not reached.
Code is dirty.

When to comment (neither ✅ nor ❌)
You want your comments to be addressed before merging this PR in cases like:

There are leftovers like unnecessary logs, comments, etc.
You have an opinionated comment regarding the code that requires a discussion.
You have questions.

How to handle the comments?

An owner of a comment is the only one who can resolve it.
An owner of a comment must resolve it when it's addressed.
A PR owner must reply with ✅ when a comment is addressed.

@toptal-anvil ping reviewers

Code looks good, but not sure if this change in height in form field is connected to changes in pull request (maybe pull request needs to be updated to latest master)
https://github.com/user-attachments/assets/51dde257-f376-41b4-b675-5a8d67fa0db8

@sashuk seems to be fixed after rebasing to current master


Using Openresty instead of Nginx

This isn't a bug, I just wanted to document this here in case anyone else is curious about how to do this.
Basically, I needed to get Nginx with Lua running with this buildpack so I decided to use Openresty.
To build Openresty for Heroku:

Find out what the latest versions of PCRE and Openresty are - for this documentation, it's PCRE v8.39 and Openresty v<IP_ADDRESS>
Create a test Heroku machine - for this documentation, it's named openresty-test
heroku run bash -a openresty-test
mkdir vendor
cd vendor
curl -O -L http://downloads.sourceforge.net/sourceforge/pcre/pcre-8.39.tar.gz
curl -O -L http://openresty.org/download/ngx_openresty-<IP_ADDRESS>.tar.gz
tar xzf pcre-8.39.tar.gz
tar xzf ngx_openresty-<IP_ADDRESS>.tar.gz
cd openresty-<IP_ADDRESS>
PATH=$PATH:/sbin ./configure --prefix=/app/vendor/openresty-heroku-build --with-pcre=/app/vendor/pcre-8.39 --with-luajit --with-http_postgres_module --with-file-aio --with-ipv6 --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-mail --with-mail_ssl_module --with-pcre-jit --with-http_iconv_module -j2
make
make install
tar -czvf openresty-<IP_ADDRESS>-heroku-build.tar.gz openresty-heroku-build openresty-<IP_ADDRESS>
Commit openresty-<IP_ADDRESS>-heroku-build.tar.gz to your fork of the heroku-ember-cli-buildpack repo
Update bin/compile and bin/boot.sh in your fork of the heroku-ember-cli-buildpack repo to use the new openresty version

Changes to bin/boot.sh:

Need to add in an EXPORT for Lua: export LD_LIBRARY_PATH=$HOME/vendor/openresty-<IP_ADDRESS>/build/luajit-root/app/vendor/openresty-heroku-build/luajit/lib:$LD_LIBRARY_PATH
Change the path for execing nginx

Changes to bin/compile:

Extract the Openresty build from the repository instead of curling the Nginx build

You can see my end result in this commit: https://github.com/danconnell/heroku-buildpack-ember-cli/commit/3ba22439e09e0f7b347b6e52f83de3f2adaaee57
You can then use Lua commands in your nginx config like so:
location ~ [A-Z] {
  rewrite_by_lua 'return ngx.redirect(string.lower(ngx.var.uri), ngx.HTTP_MOVED_PERMANENTLY)';
}

Whoa, very cool. Thanks for sharing!


Mock-SAS is not starting due to jwt implemetation syntax error

Taking the latest branch from Ericsson 17-Nov-2017, this branch implemented the CPI signed data encoding/decoding.
For this it is also required to do "pip install jwt" to install the jwt python library - need to update the Mock-SAS tutorial for this.
After jwt installation the Mock-SAS still does not start with the following Syntax Error error:
c:\cbrsPython-master\cbrsPython\controllers>StartOfProject.py
Traceback (most recent call last):
File "C:\cbrsPython-master\cbrsPython\controllers\StartOfProject.py", line 7, in
from controllers.CLIHandler import CLIHandler
File "C:\cbrsPython-master\cbrsPython\controllers..\controllers\CLIHandler.py", line 11, in
from model.Engine import MyEngine
File "C:\cbrsPython-master\cbrsPython\controllers..\model\Engine.py", line 8, in
from model.CBRSRequestHandler import CBRSRequestHandler as cbrsObj
File "C:\cbrsPython-master\cbrsPython\controllers..\model\CBRSRequestHandler.py", line 16, in
import jwt
File "C:\Python27\lib\site-packages\jwt_init_.py", line 17, in
from .jwk import (
File "C:\Python27\lib\site-packages\jwt\jwk.py", line 60
def is_sign_key(self) -> bool:
^
SyntaxError: invalid syntax
c:\cbrsPython-master\cbrsPython\controllers>

As noted in the latest tutorial document on Kavi, please be sure that you install:
"pyjwt" and NOT "jwt" .  Unfortunately both packages are similar but not compatible.

you can use pip to uninstall jwt, then install pyjwt.

installing pyjwt solved the issue. Closing issue.


scrcpy closes itself. Sometimes.

scrcpy starts normally and I am able to use it but sometimes this happens and it closes
scrcpy-server.jar: 1 file pushed. 3.0 MB/s (18570 bytes in 0.006s)
INFO: Initial texture: 480x272
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
[h264 @<PHONE_NUMBER>6ecf80] Invalid level prefix
[h264 @<PHONE_NUMBER>6ecf80] error while decoding MB 15 8
[h264 @<PHONE_NUMBER>6ecf80] concealing 304 DC, 304 AC, 304 MV errors in P frame
WARN: Cannot terminate server

Interesting, it seems the server had a problem. Are there any relevant logs in the output of adb logcat when this happens?
On which device does this occur?

@Azuite Also see #283.

Initial setup:  Was using front PC USB 2.0
Error occurred:
scrcpy-server.jar: 1 file pushed. 0.6 MB/s (19342 bytes in 0.032s)
INFO: Initial texture: 720x1280
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
[h264 @<PHONE_NUMBER>61cd00] corrupted macroblock 5 31 (total_coeff=-1)
[h264 @<PHONE_NUMBER>61cd00] error while decoding MB 5 31
[h264 @<PHONE_NUMBER>61cd00] concealing 2249 DC, 2249 AC, 2249 MV errors in P frame
WARN: Cannot terminate server

Trying to get it working back had an error:
adb: error: failed to get feature set: device offline
ERROR: "adb push" returned with value 1

Fixed: Changed the USB port behind PC directly from the motherboard
High possibility there was not enough power on the front USB port.
Thanks @rom1v for Scrcpy! Much better than Visor!

I was using Oppo R9.
It seems my problem is the same as @kr898. I will try using the USB port from my computer and see what happens.
Unfortunately I don't have the log of when it happened. The problem didn't occur when I'm using it in Virtual Box and it was running throughout the whole night and only occurs when I use it on my com sometimes.

When devive is offline, that means you didnot disconnect adb, you need to disconnect after the session to avoid offline problems.

有趣的是，服务器似乎有问题。adb logcat发生这种情况时，输出中是否有相关日志？
这在哪台设备上发生？

Interesting, it seems the server had a problem. Are there any relevant logs in the output of adb logcat when this happens?
On which device does this occur?

@Azuite Also see #283.

Interesting, it seems the server had a problem. Are there any relevant logs in the output of adb logcat when this happens?
On which device does this occur?

Help, amd's cpu,scrcpy closes itself. Sometimes.

@rom1v I Try, but Still Crash; and i think it is this problem:


Error when using the @timestamp field on http_post2_payload body

hello, I'm having an error when I try to put the @timestamp field in the payload body, I think it must be because of the @ at the beginning of the word. How can I insert this field without giving an error?
for example, I tried this way
timestamp: {{@timestamp}}

ElastAlert is no longer maintained. Please use ElastAlert2


Unable to move cursor in ruby REPL pry or irb

Environment
Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Windows Terminal Version: 0.3.2171.0
Other Software
ruby 2.6.3p62 (2019-04-16 revision 67580) [x64-mingw32]
gems
pry (0.12.2)
irb (1.0.0)
both ruby REPLs
Steps to reproduce
In windows terminal start the ruby REPL pry or irb
type fooar then press the left arrow key to move the cursor back.

Expected behavior
You should be able to use the arrow keys to move around.

Actual behavior
The cursor is stuck at the end of the line.

I tested this behavior in other REPLs such as node, and python and this was not an issue. I then tested this behavior in other shells cmd and powershell (not in windows terminal) and this behavior was not reproducible.
Did some further testing and noticed this issue is a problem both in powershell and command when I start them in windows terminal, but it is not an issue when I run wsl in windows terminal.

I'm seeing the same thing. When I use classic cmd then irb works fine. But when I have a cmd tab in Windows Terminal then I'm able to use Backspace to erase characters in irb, unable to move the cursor and unable to use up/down arrow to navigate the irb history.

Just FYI - you can use GNU Readline shortcuts.
https://www.gnu.org/software/bash/manual/html_node/Readline-Interaction.html#Readline-Interaction

In mit-scheme REPL I have experienced the same (at least similar) issue, per the following screenshot where the following was typed: (cadr '1 '(2 3 4)) followed by left-arrow, right-arrow, up-arrow, down-arrow.

Unfortunately, the same issue occurs in the Ubuntu 18.04 LTS shell. So, not sure if this is a console issue or not.

This feels like it might be related to #2642

It looks like other REPLs are susceptible to this as well. I wonder what common library they're using!
When fixed, validate:

[ ] R
[ ] irb
[ ] pry


Remove db:seed and example_data:generate from review app start command

Context
The example_data:generate seems to be running for a bit too long:
Local results
$ time bundle exec rails example_data:generate
bundle exec rails example_data:generate  114.26s user 5.63s system 89% cpu 2:13.28 total

This causes the data to not be generated correctly in review apps. This can be reproduced by raising a PR, which will seem to be missing the personas with multi-user accounts, (compare with this PR's review app)
Changes proposed in this pull request

Move db:seed and example_data:generate over to the deploy pipeline, similar to the way we do when running data migrations.
Additionally, update some seeds to use upsert_all

Guidance to review
:eyes:
Important business

~Does this PR introduce any PII fields that need to be overwritten or deleted in db/scripts/sanitise.sql?~
~Does this PR change the database schema? If so, have you updated the config/analytics.yml file and considered whether you need to send 'import_entity' events?~

 Snags with seed data - drafts + trn start date


Not Possible to Assign Licenses to External Users in Admin Center Preview

It looks to me like it's no longer possible to assign licenses to external users in the new admin center Preview. The documentation will need to be updated accordingly when the new M365 admin center rolls out to GA.

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

ID: 6cadc974-5434-4647-6480-996c1e40a2f8
Version Independent ID: 7953c446-e5ac-6a46-4ab4-7acd4b75f3b0
Content: External sharing overview
Content Source: SharePoint/SharePointOnline/external-sharing-overview.md
Service: sharepoint-online
GitHub Login: @MikePlumleyMSFT
Microsoft Alias: mikeplum

@officedocsbot assign @scanum

@beckybertram Thank you for submitting feedback. We understand that this issue has been resolved.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.

@officedocsbot close


HOSTNAME.local: Name or service not known

Windows Version
Microsoft Windows [Version 10.0.22621.1555]
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
<IP_ADDRESS>
Distro Version
Debian Testing (bookworm), imported
Other Software
N/A
Repro Steps
Imported Debian Testing from Docker container rootfs.
/etc/wsl.conf:
[network]
generateHosts = true
generateResolvConf = true

/etc/resolv.conf:
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver <IP_ADDRESS>

/etc/hosts:
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateHosts = false
<IP_ADDRESS>       localhost
<IP_ADDRESS>       HOSTNAME.        HOSTNAME

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

/etc/nsswitch.conf:
passwd:         files systemd
group:          files systemd
shadow:         files systemd
gshadow:        files systemd

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

Finally, when trying to ping Windows side of host (ICMP traffic enabled) it does not work:
# ping HOSTNAME.local
ping: HOSTNAME.local: Name or service not known

but nslookup gives:
# nslookup HOSTNAME.local
Server:         <IP_ADDRESS>
Address:        <IP_ADDRESS>#53

Non-authoritative answer:
Name:   HOSTNAME
Address: <IP_ADDRESS>
Name:   HOSTNAME
Address: xxx.xxx.xxx.xxx
Name:   HOSTNAME
Address: fe80::6e5a:a5c4:3df:8cf4
Name:   HOSTNAME
Address: fe80::d955:3be3:873c:54f

I guess this is because mDNS query is forced (leaking) through to DNS server running for WSL adapter?
Also,
# ping HOSTNAME.mshome.net

works fine and resolves to correct IP (using that as workaround for now).
Without any further changes same command (ping HOSTNAME.local) works as desired on Ubuntu installed from MS Store:
(Ubuntu) # ping HOSTNAME.local
PING HOSTNAME (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from HOSTNAME.mshome.net (<IP_ADDRESS>): icmp_seq=1 ttl=128 time=0.368 ms

Is there any specific library/software that needs to be installed or configuration need to be changed in imported distribution to make this work? My workflow relies on being able to hit Windows host from WSL2 guest.
Expected Behavior
HOSTNAME.local resolves to Windows side of host.
Actual Behavior
HOSTNAME.local cannot be resolved.
Diagnostic Logs
No response

Not sure if this is solution but seems to be resolved by installing systemd-resolved, setting generateResolvConf = false (which is weird because on Ubuntu it works with true) and using systemd's stub with following /etc/systemd/resolvd.conf:
#DNS=
#FallbackDNS=
#Domains=
#DNSSEC=no
#DNSOverTLS=no
MulticastDNS=no
LLMNR=no
Cache=no-negative
#CacheFromLocalhost=no
#DNSStubListener=yes
#DNSStubListenerExtra=
#ReadEtcHosts=yes
#ResolveUnicastSingleLabel=no

wsl2, Ubuntu-22.04
ping "$(hostname).local"
ping: CZ.local: Name or service not known
:(

Anything new? This used to work but doesn't now (WSL 2.0.0/WSL 2.0.1).

I have installed libnss-mdns on Ubuntu 22.04 and ping "$(hostname).local"

sudo apt install avahi-daemon libnss-mdns
sudo systemctl enable --now avahi-daemon

and then make sure that libnss-mdns is enabled in /etc/nsswitch.conf file:
$ cat /etc/nsswitch.conf
# uninvolved config portion skipped here...
#
# now, make sure that `mdns4_minimal [NOTFOUND=return]` exists and goes after `files`
hosts:          files mdns4_minimal [NOTFOUND=return] dns

after that mdns support should be set up and ready. however, there's a catch: for some reason ping has some trouble resolving .local addresses. luckily for us, that's the only program i know of that has such problems, everything else should work just fine:
$ getent hosts ${hostname}.local
<IP_ADDRESS>      egor-bychin-pc.local


Warning 'Data and type mismatch found.' with 'date-time' format

I get a warning:  'Data and type mismatch found.' with this response description:
DiffCreatedEvent:
  description: 'diff index created
  type: object
  additionalProperties: false
  properties:
    updatedAt:        { $ref: '#/components/schemas/Timestamp' }
  example:
    {
      "updatedAt": '2020-06-30T06:43:51.391Z',
    }
Timestamp:      { type: string, format: date-time, description: 'timestamp', example: '2020-06-30T06:43:51.391Z' }

but no warning with this:
DiffCreatedEvent:
  description: 'diff index created
  type: object
  additionalProperties: false
  properties:
    updatedAt:        { type: string, format: date-time, description: 'timestamp', example: '2020-06-30T06:43:51.391Z' }
  example:
    {
      "updatedAt": '2020-06-30T06:43:51.391Z',
    }

Or we can simply transfer the issue @andrueastman ;)

Unfortunately we are very aware of this issue and are working hard to make the problem go away in v2.  There are a range of issues with the way this particular validation works today and we have never found a good way of fixing it that didn't involve just ripping all the datatype mismatch errors out.  The good news is that in V2 it will actually do proper, full JSON Schema validation of the examples.

@darrelmiller thank you !


Improve handling of received parameters in mod_manager.c

There are commands whose parameters may change settings of the proxy but their processing repeats code and checks only non-default options.  E.g.
if (strcasecmp(key, "Reversed") == 0) {
    if (strcasecmp(val, "yes") == 0) {
        nodeinfo->mess.reversed = 1;
    }
}

We should update this approach with some appropriate abstraction covering all options.

To be clear, for example requests with following options Reversed=yes&Reversed=no are not handled properly.


Mldb 1415 neighbors func

Adds nearest.neighbour function type
Removes /nearestNeighbour and /neighbour endpoints to embedding dataset

WARNING: There is currently a problem in the way we deal with column ordering of rows vs embeddings. I've created the issue MLDB-1486 to address this. There are a few places in the following commits where I've had to disable sorting of columns, which ave been marked with the above ticket number, to have things work. One test is marked as failing and should be fixed. We may of may not want to solve the underlying issue before merging this in.

It probably makes sense to merge this now, even though it could be better tested.  It will have a pretty major effect on performance, but guarantees the correct results in nearly all circumstances.  Things that are still not done:

normalize() function should fall back on more generic functionality not re-implement everything
specialization of the ExpressionValueInfo functions for when we have embeddings, etc as currently they will be very slow
more test cases in expression_value_test of different paths through the code
optimization of the binary operators between embeddings and scalars or embeddings to use the existing code
porting of the code in pro
{0: 1, 1: 2} + [1, 2] should work and return {0: 2, 1: 4} from duality of row/embedding representation
[1, 2] + { 0: 1, 1: 2} should work and return [ 2, 4] from duality of row/embedding representation
one nearest neighbours test case doesn't work
the embedding dataset should return indexes for its columns, since they are always in the same place
same for the tabular dataset, once it's merged
same for variable and wildcard lookups in datasets
tests of the info returned from getCompatibleDoubleEmbedding
test of vector_sum({0: 1, 1: 2}, [1, 2]) which should work as per above

Note that all of these issues existed previously.

What should I do with the laundry-list of "still not done" here...? Are these performance optimizations or breakages?

5 and 8 need to be addressed before merging
The work for MLDB-1486 should address 6, 7, 13
2, 4, 9, 10 and 11 are optimizations which should be handled in a follow-up once MLDB-1486 is done
3, 12 are testcases which are missing
1 is technical debt reduction.

We should also make the embedding code in analytics.cc fall back on standard functionality.

OK. Can we independently merge the branch from MLDB-1486 ? Is it far from being ready?

The tip of the MLDB-1486 branch is this one, which has all of the low-risk part and passes tests apart from the one indicated.  It's still a fair way from being ready.  I would de-risk by doing the release in two parts: this one first, and the deeper MLDB-1486 changes once they are ready.

@jeremybarnes I've tried to fix the failing test in MLDB-665_nearest_neighbours.py but it feels like there is still a problem. I've made a simpler failing one in the same file called "test_num_neighbours_parameter" that maybe would help

This branch is subsumed by the MLDB-1486 branch; I'm closing it.  The TODOs have been collected and added to JIRA.


Agent idle time not reset after shutdown

Note that I'm not sure if this is a plugin or TeamCity issue.
We were having weird issues with our agents where TeamCity would start/stop them randomly and way too often. After investigating teamcity-clouds.log we think the issue is that the idle time is not reset after shutting down an agent, causing a cycle of shutting the agent down immediately after starting it.
Here's the log for a single agent. I've marked the messages about idle time with **'s.
[2017-05-09 13:50:49,665]   INFO [onPool-worker-0] - ouds.azure.arm.AzureCloudImage - Creating new virtual machine contoso-build6

[2017-05-09 14:18:44,197]   INFO [17-05-09 14:04)] - uds.base.AbstractCloudInstance - Changing contoso-build6(fdaca8) status from Unknown to Running
[2017-05-09 14:18:45,202]   INFO [17-05-09 14:04)] - .server.impl.CloudEventsLogger - Cloud instance entered 'running' state, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, AzureCloudInstance{myName='contoso-build6'}
[2017-05-09 14:18:48,955]   INFO [jectId=_Root} 2] - louds.base.AbstractCloudClient - Cloud profile 'profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}' initialized
[2017-05-09 14:19:12,666]   INFO [p-nio-80-exec-6] - r.impl.DBCloudStateManagerImpl - Image: AzureCloudImage{myName='contoso-build'}, profile: profile 'Azure Resource Manager'{id=arm-1, projectId=_Root} was marked to CONTAIN agent
[2017-05-09 14:19:12,759]   INFO [p-nio-80-exec-6] - .server.impl.CloudEventsLogger - Detected cloud agent "contoso-build6" {id=3}, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, AzureCloudInstance{myName='contoso-build6'}

**[2017-05-09 15:07:46,898]   INFO [uled executor 3] - te.IdleTimeoutTerminateFactory - Will terminate instance AzureCloudInstance{myName='contoso-build6'}, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root} with idle time 30 minutes (idle time is 30 minutes)
[2017-05-09 15:07:46,898]   INFO [uled executor 3] - l.instances.StopInstanceAction - Terminating instance: AzureCloudInstance{myName='contoso-build6'}, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, reason: After 30 minutes idle
[2017-05-09 15:07:46,898]   INFO [uled executor 3] - r.impl.DBCloudStateManagerImpl - Image: AzureCloudImage{myName='contoso-build'}, profile: profile 'Azure Resource Manager'{id=arm-1, projectId=_Root} was marked to CONTAIN agent
[2017-05-09 15:07:46,929]   INFO [uled executor 3] - uds.base.AbstractCloudInstance - Changing contoso-build6(fdaca8) status from Running to Scheduled to stop
[2017-05-09 15:07:47,674]   INFO [onPool-worker-1] - ouds.azure.arm.AzureCloudImage - Stopping virtual machine contoso-build6
[2017-05-09 15:07:50,526]   INFO [uled executor 5] - .server.impl.CloudEventsLogger - Cloud instance entered 'scheduled to stop' state, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, AzureCloudInstance{myName='contoso-build6'}
[2017-05-09 15:08:00,236]   INFO [p-nio-80-exec-9] - ces.terminate.AgentRemoverImpl - Removing cloud agent "contoso-build6" {id=3} because: Instance has been terminated. AzureCloudInstance{myName='contoso-build6'}, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}
[2017-05-09 15:08:00,408]   INFO [p-nio-80-exec-9] - .server.impl.CloudEventsLogger - Cloud agent Unregistered agent "contoso-build6" {id=3} is no longer recognized as cloud agent because instance has gone: profileId=arm-1, imageId=contoso-build, instanceId=contoso-build6
[2017-05-09 15:08:00,408]   INFO [p-nio-80-exec-9] - ces.terminate.AgentRemoverImpl - Removing cloud agent Unregistered agent "contoso-build6" {id=3} because: Cloud instance (id=contoso-build6, imageId=contoso-build, profileId=arm-1) has gone (is not reported by cloud profile)
[2017-05-09 15:10:48,433]   INFO [onPool-worker-1] - uds.base.AbstractCloudInstance - Changing contoso-build6(fdaca8) status from Scheduled to stop to Stopped
[2017-05-09 15:10:48,433]   INFO [onPool-worker-1] - ouds.azure.arm.AzureCloudImage - Virtual machine contoso-build6 has been successfully terminated
[2017-05-09 15:10:50,809]   INFO [uled executor 5] - .server.impl.CloudEventsLogger - Cloud instance entered 'stopped' state, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, AzureCloudInstance{myName='contoso-build6'}

[2017-05-10 07:02:55,643]   INFO [17-05-10 06:56)] - uds.base.AbstractCloudInstance - Changing contoso-build6(18e2813) status from Unknown to Stopped
[2017-05-10 07:02:55,770]   INFO [17-05-10 06:56)] - .server.impl.CloudEventsLogger - Cloud instance entered 'stopped' state, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, AzureCloudInstance{myName='contoso-build6'}
[2017-05-10 07:02:57,136]   INFO [jectId=_Root} 2] - louds.base.AbstractCloudClient - Cloud profile 'profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}' initialized

[2017-05-10 08:03:30,619]   INFO [0 Flush Queue 1] - .instances.StartInstanceAction - Starting cloud instance: profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, AzureCloudImage{myName='contoso-build'}, hash=xxx, reason=Automatic start: Compatible with queued build Contoso :: Portal :: Build, Package & Push(promotionId=157)
[2017-05-10 08:03:31,344]   INFO [onPool-worker-1] - uds.base.AbstractCloudInstance - Changing contoso-build6(18e2813) status from Stopped to Scheduled to start
[2017-05-10 08:03:31,346]   INFO [onPool-worker-1] - ouds.azure.arm.AzureCloudImage - Starting stopped virtual machine contoso-build6
[2017-05-10 08:03:31,363]   INFO [0 Flush Queue 1] - .instances.StoppedInstanceTask - Instance has changed status from stopped to Scheduled to start: AzureCloudInstance{myName='contoso-build6'}, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}
[2017-05-10 08:03:31,364]   INFO [0 Flush Queue 1] - .server.impl.CloudEventsLogger - Cloud instance start succeeded: profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, AzureCloudInstance{myName='contoso-build6'}
[2017-05-10 08:03:32,497]   INFO [uled executor 2] - .server.impl.CloudEventsLogger - Cloud instance entered 'scheduled to start' state, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, AzureCloudInstance{myName='contoso-build6'}
**[2017-05-10 08:03:55,862]   INFO [uled executor 2] - te.IdleTimeoutTerminateFactory - Will terminate instance AzureCloudInstance{myName='contoso-build6'}, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root} with idle time 61 minutes (idle time is 30 minutes)
[2017-05-10 08:03:55,863]   INFO [uled executor 2] - l.instances.StopInstanceAction - Terminating instance: AzureCloudInstance{myName='contoso-build6'}, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, reason: After 30 minutes idle
[2017-05-10 08:03:55,863]   INFO [uled executor 2] - r.impl.DBCloudStateManagerImpl - Image: AzureCloudImage{myName='contoso-build'}, profile: profile 'Azure Resource Manager'{id=arm-1, projectId=_Root} was marked to CONTAIN agent
[2017-05-10 08:03:55,899]   INFO [uled executor 2] - uds.base.AbstractCloudInstance - Changing contoso-build6(18e2813) status from Scheduled to start to Scheduled to stop
[2017-05-10 08:03:56,002]   INFO [6 Flush Queue 1] - .instances.StartInstanceAction - Starting cloud instance: profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, AzureCloudImage{myName='contoso-build'}, hash=xxx, reason=Automatic start: Compatible with queued build Contoso :: Portal :: Build, Package & Push(promotionId=157)
[2017-05-10 08:03:57,504]   INFO [uled executor 3] - .server.impl.CloudEventsLogger - Cloud instance entered 'scheduled to stop' state, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, AzureCloudInstance{myName='contoso-build6'}
[2017-05-10 08:06:33,135]   INFO [onPool-worker-1] - ouds.azure.arm.AzureCloudImage - Stopping virtual machine contoso-build6
[2017-05-10 08:09:34,219]   INFO [onPool-worker-1] - uds.base.AbstractCloudInstance - Changing contoso-build6(18e2813) status from Scheduled to stop to Stopped
[2017-05-10 08:09:34,219]   INFO [onPool-worker-1] - ouds.azure.arm.AzureCloudImage - Virtual machine contoso-build6 has been successfully terminated
[2017-05-10 08:09:37,569]   INFO [uled executor 3] - .server.impl.CloudEventsLogger - Cloud instance entered 'stopped' state, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, AzureCloudInstance{myName='contoso-build6'}

[2017-05-10 12:13:26,146]   INFO [7 Flush Queue 1] - .instances.StoppedInstanceTask - Instance has changed status from stopped to Scheduled to start: AzureCloudInstance{myName='contoso-build6'}, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}
[2017-05-10 12:13:26,146]   INFO [7 Flush Queue 1] - .server.impl.CloudEventsLogger - Cloud instance start succeeded: profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, AzureCloudInstance{myName='contoso-build6'}
[2017-05-10 12:13:26,294]   INFO [onPool-worker-0] - ouds.azure.arm.AzureCloudImage - Starting stopped virtual machine contoso-build6
[2017-05-10 12:13:26,397]   INFO [uled executor 1] - .server.impl.CloudEventsLogger - Cloud instance entered 'scheduled to start' state, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, AzureCloudInstance{myName='contoso-build6'}
**[2017-05-10 12:13:57,269]   INFO [uled executor 3] - te.IdleTimeoutTerminateFactory - Will terminate instance AzureCloudInstance{myName='contoso-build6'}, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root} with idle time 244 minutes (idle time is 30 minutes)
[2017-05-10 12:13:57,269]   INFO [uled executor 3] - l.instances.StopInstanceAction - Terminating instance: AzureCloudInstance{myName='contoso-build6'}, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, reason: After 30 minutes idle
[2017-05-10 12:13:57,269]   INFO [uled executor 3] - r.impl.DBCloudStateManagerImpl - Image: AzureCloudImage{myName='contoso-build'}, profile: profile 'Azure Resource Manager'{id=arm-1, projectId=_Root} was marked to CONTAIN agent
[2017-05-10 12:13:57,300]   INFO [uled executor 3] - uds.base.AbstractCloudInstance - Changing contoso-build6(18e2813) status from Scheduled to start to Scheduled to stop
[2017-05-10 12:13:57,516]   INFO [7 Flush Queue 1] - .instances.StartInstanceAction - Starting cloud instance: profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, AzureCloudImage{myName='contoso-build'}, hash=xxx, reason=Automatic start: Compatible with queued build Contoso :: Portal :: Build, Package & Push(promotionId=159)
[2017-05-10 12:14:01,419]   INFO [uled executor 1] - .server.impl.CloudEventsLogger - Cloud instance entered 'scheduled to stop' state, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, AzureCloudInstance{myName='contoso-build6'}

@SaphuA, thanks for reporting. Could you please share TeamCity and Azure ARM plugin versions, idle timeout and terminate conditions in your cloud profile if they are available.

@dtretyakov Sure!
TeamCity version: TeamCity 2017.1.1 (build 46654)
ARM Plugin version: 0.5.2
Idle timeout: 30 minutes
Terminate conditions: none

Okay so because the issue above isn't workable at all we changed our idle time to empty and enabled the terminate condition after the first build.
We now have the exact same issue of an endless loop where TC starts a VM and immediatly shuts it down after booting. Except this time because the agent reports it has done a build.
[2017-05-11 07:49:42,692]   INFO [uled executor 5] - l.instances.StopInstanceAction - Terminating instance: AzureCloudInstance{myName='contoso-build2'}, profile 'Azure Resource Manager'{id=arm-1, projectId=_Root}, reason: After the first build

@dtretyakov Any updates? Should I contact TeamCity support instead? This is a major issue for us since we now have to manually start/stop VM's.

@SaphuA, sorry for delay, currently investigating it, will share result soon.

@SaphuA, it seems that I figured out what may happens.
Do you use VHD images with TeamCity Build Agent 10.0.x to start build agents? If so it may take a lot of time to upgrade build agent and plugins to TeamCity 2017.1.1 version. Then when agent after upgrade connects to the TeamCity server it shuts down due to idle timeout. When TeamCity detects outdated cloud build agent image it displays exclamation mark:

In this case we recommend to use source VHD image with pre-installed TeamCity 2017.1.1 build agent.
Also "Reuse allocated virtual machines" option in cloud profile settings can reduce cold start time.

@SaphuA, also I've added reset for start date for new instances, could you please try to use following plugin build to check if it solves the problem?

Hi @dtretyakov , we actually already had these issues before updating TeamCity and hoped updating might resolve them. So while it's true that the agent is running on an older version, I'm pretty sure it is not the cause for our issues.
Also the logs seem to indicate some kind of resetting issue and not a startup issue.
Updating the agent image is on our todo list anyway so I'll report back if it changes anything.

@SaphuA, you are right, later I realized that the agent upgrade is not the cause, it just delays first start.
Did you tried to use last plugin build to check whether it addresses this problem?

I just wanted to try your version of the plugin, but when I try to change settings for the cloud profile I get an alert box with the exception below.
Could this have to do with the updated azure java sdk?
Trace: java.lang.NoClassDefFoundError: jetbrains/buildServer/clouds/azure/arm/AzureCloudClientFactory$getPropertiesProcessor$1
	at jetbrains.buildServer.clouds.azure.arm.AzureCloudClientFactory.getPropertiesProcessor(AzureCloudClientFactory.kt:97)
	at jetbrains.buildServer.clouds.server.web.admin.CloudProfileFormAction.createPropertiesProcessor(CloudProfileFormAction.java:113)
	at jetbrains.buildServer.clouds.server.web.admin.CloudProfileFormAction.processProfileAction(CloudProfileFormAction.java:67)
	at jetbrains.buildServer.clouds.server.web.project.CloudEditProfileController.processAction(CloudEditProfileController.java:121)
	at jetbrains.buildServer.clouds.server.web.project.CloudEditProfileController.doPost(CloudEditProfileController.java:115)
	at jetbrains.buildServer.clouds.server.web.project.CloudEditProfileController.doPost(CloudEditProfileController.java:109)
	at jetbrains.buildServer.controllers.BaseFormXmlController$1.handleRequest(BaseFormXmlController.java:54)
	at jetbrains.buildServer.controllers.AjaxRequestProcessor.processRequest(AjaxRequestProcessor.java:45)
	at jetbrains.buildServer.controllers.BaseFormXmlController.doHandle(BaseFormXmlController.java:52)
	at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:75)
	at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:147)
	at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:961)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:895)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:869)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet.processedByMainServlet(TeamCityDispatcherServlet.java:50)
	at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:46)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at jetbrains.buildServer.web.jsp.JspPrecompilerFilter.doFilter(JspPrecompilerFilter.java:129)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at jetbrains.buildServer.web.DisableSessionIdFromUrlFilter.doFilter(DisableSessionIdFromUrlFilter.java:5)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:107)
	at jetbrains.buildServer.diagnostic.web.DiagnosticFilter.doFilter(DiagnosticFilter.java:84)
	at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:112)
	at jetbrains.buildServer.web.DependencyParametersCalculationContextFilter.doFilter(DependencyParametersCalculationContextFilter.java:2)
	at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:112)
	at jetbrains.buildServer.web.CSRFFilter.doFilter(CSRFFilter.java:100)
	at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:112)
	at org.springframework.web.filter.CompositeFilter.doFilter(CompositeFilter.java:73)
	at jetbrains.buildServer.web.DelegatingFilter.doFilter(DelegatingFilter.java:37)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:5)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1757)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1716)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

It seems to be working, but if you don't mind I'll leave the ticket open for another week just to be sure.
Thanks @dtretyakov

It seems to be resolved, thanks @dtretyakov


Upgrade Quarkus to 2.2.0.Final

I opened https://github.com/apache/camel-quarkus/issues/3037 for the gRPC failure but verified it works fine locally.


Multisig UI

https://github.com/cosmos/cosmos-multisig-ui
or maybe
https://github.com/vitwit/resolute/
or daodao

moved to EPIC: UI as its own standalone issue. May be covered by Cosmology's new UI thing here soon. Will see. I need to follow up with them.


List of IPs

Hello,
i'm trying to import a simple list of ips in .txt  format into cameradar and and then I get this (kali linux):
└─$ sudo docker run ullaakut/cameradar -t /home/ragman/cameradar/ips1.txt
Loading credentials...ok
Loading routes...ok
Scanning the network...ok

[Nmap Warning] Unable to split netmask from target expression: "/home/ragman/cameradar/ips1.txt"
[Nmap Warning] WARNING: No targets were specified, so 0 hosts scanned.

The IPs are arranged one below the other. What's the trick?

See https://docs.docker.com/storage/volumes/ for more info about how volumes work in Docker.


Doubles (using float.MaxValue give you different values) in .net and bridge.

Expected
1.70141173319264E+38

Actual
1.701411735e+38

Steps To Reproduce
public class App
{
    public static void Main()
    {
        double value = float.MaxValue;
        Console.WriteLine(value / 2);
    }
}

http://deck.net/1e65012f86170b974d3b3d5a74319c9f
https://dotnetfiddle.net/rGMdam

This is the same thing as #1225.
Both double and float have JavaScript number underlying type.
However, Bridge decimal has its own implementation and works as .Net decimal

There are other details about the problem stated in this comment of a related Issue.

Bridge is now matches the functionality of native .NET.


Reach top searches endpoint

Feature Request
Form
Put an [x] if you meet the condition, else leave [ ].

[x] I've searched the Issues
[x] I've read the basic concepts
[ ] I'm using the latest version

Description
Hello, since a few months now, instagram allow you to search through media directly, and surface top matches.
(see first screen below).

We currently can search through accounts and tags, but not media directly.
I'd like to be able to hit the "Top" endpoint and get best media matching my keywords.
⚠ I'm happy to contribute with a PR if someone has some quick docs on the endpoint to use.

It is already exists. check fbsearch.search_flat

You're right, sorry I mean the endpoint that lists media directly.
That one is listing only usernames and hashtags

.

I think that api endpoint is available from v240 or so.
with current library it won't work,(may be).
here is the url.
https://i.instagram.com/api/v1/fbsearch/top_serp/?search_surface=top_serp&timezone_offset=1800&count=30&query=space

check my fork. I have added.

oh that's great! testing right now

So I just tried it, it returns only users and tags unfortunately :(

Maybe version problem.

oh nevermind, it's working perfectly ❤

you should open a PR on this repo! 👏

yes please open PR, this is very useful

Hello! @kingbotss I tried fbsearch.topSearch(), but it returns only 6 items, is there a way I can do a sort of pagination? thanks!


System.ObjectDisposedException when posting stream content by HttpClient

System.ObjectDisposedException when posting stream content by HttpClient
Hello,
I have an API that receives stream content, and I wrote a piece of code to post stream to it:
var bytes = Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(content, GetDefaultFormatter().SerializerSettings));
using (var resourceStream = new MemoryStream(bytes))
{
    var streamContent = new StreamContent(resourceStream);
    // Exception throwed after code ran into this line for about 1 minute
    var resopnseContent = (await client.PostAsync(requestUri, streamContent).ConfigureAwait(false)).Content;
    return await resopnseContent.ReadAsAsync<TResponseType>(new List<MediaTypeFormatter> { GetDefaultFormatter() }).ConfigureAwait(false);
}

The exception is:

System.ObjectDisposedException: 'Cannot access a disposed object.
Object name: 'SslStream'.'

While, the code worked perfectly with .net framework.
As a try, I changed the code to:
using (var resourceStream = new MemoryStream())
{
    var bytes = Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(content, GetDefaultFormatter().SerializerSettings));
    resourceStream.Write(bytes, 0, bytes.Length);
    var streamContent = new StreamContent(resourceStream);
    var resopnseContent = (await client.PostAsync(requestUri, streamContent).ConfigureAwait(false)).Content;
    return await resopnseContent.ReadAsAsync<TResponseType>(new List<MediaTypeFormatter> { GetDefaultFormatter() }).ConfigureAwait(false);
}

Then it worked without any exception!
The difference I only know is the memory stream object changed to resizable from non-resizable. I don't know how did this lead to the exception. Is it a bug of .net core?
As a note, the byte array I use has about 21,000 bytes. I tested the code with smaller byte array (about 10 bytes), and the problem was gone. So I suspect the bug shows up only with large streams.
Since I've found a solution to solve my problem, I just report this as a potential bug. Please take a look if you have time.

Updates:
I found it's nothing to do with a non-resizable or resizable memory stream, size is the key.
I compressed the stream then everything goes fine.

@nashangg thank you for providing the details. Are you still encountering a problem so we can help you, or can we mark this issue as resolved?

@carlossanlop As I'm not facing new problems, I close this issue now.


installation fails undefined reference to BamTools functions

Hello,
I am trying to install whamg with
git clone --recursive  https://github.com/zeeev/wham.git; cd wham; make
I have seen a couple of other issues referring to similar problems but I couldn't fix it myself. Here is the part that raises the error:
g++ -fstack-protector-all -Wall -DVERSION=\"v1.7.0-311-g4e8c-dirty\" -std=c++0x -Wno-sign-compare -O3 -Isrc/lib -Isrc/bamtools/include -Isrc/bamtools/src -Isrc/ -Isrc/fastahack -Isrc/Complete-Striped-Smith-Waterman-Library/src/ src/bin/whamg.cpp src/bamtools/lib/libbamtools.a src/obj/entropy.o src/obj/read_pileup.o src/obj/split.o src/obj/readPileUp.o src/obj/flag.o src/fastahack/Fasta.o src/Complete-Striped-Smith-Waterman-Library/src/ssw_cpp.o src/Complete-Striped-Smith-Waterman-Library/src/ssw.o -o bin/whamg -fopenmp -lz -lm
src/bin/whamg.cpp: In function ‘void findPairs(std::vector<node*>&, breakpoint*, std::map<int, std::map<int, breakpoint*> >&)’:
src/bin/whamg.cpp:1706:9: warning: variable ‘lmax’ set but not used [-Wunused-but-set-variable]
     int lmax = 0;
         ^
src/bin/whamg.cpp:1707:9: warning: variable ‘rmax’ set but not used [-Wunused-but-set-variable]
     int rmax = 0;
         ^
src/bin/whamg.cpp:1709:9: warning: variable ‘edsn’ set but not used [-Wunused-but-set-variable]
     int edsn = 0;
         ^
/tmp/cc2QE5uH.o: In function `bool BamTools::BamAlignment::GetTag<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) const [clone .part.22]':
whamg.cpp:(.text+0x73): undefined reference to `BamTools::BamAlignment::FindTag(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char*&, unsigned int const&, unsigned int&) const'
/tmp/cc2QE5uH.o: In function `loadBam(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
whamg.cpp:(.text+0x5cf3): undefined reference to `BamTools::BamReader::Open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
whamg.cpp:(.text+0x6745): undefined reference to `BamTools::BamReader::OpenIndex(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/cc2QE5uH.o: In function `gatherBamStats(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
whamg.cpp:(.text+0x9b2b): undefined reference to `BamTools::BamReader::Open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
whamg.cpp:(.text+0x9c37): undefined reference to `BamTools::BamReader::OpenIndex(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/cc2QE5uH.o: In function `runRegion(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int, std::vector<BamTools::RefData, std::allocator<BamTools::RefData> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
whamg.cpp:(.text+0xd33e): undefined reference to `BamTools::BamReader::Open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
whamg.cpp:(.text+0xd438): undefined reference to `BamTools::BamReader::OpenIndex(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/cc2QE5uH.o: In function `main':
whamg.cpp:(.text.startup+0xf4): undefined reference to `BamTools::BamMultiReader::Open(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)'
src/obj/readPileUp.o: In function `readPileUp::processPileup(long*)':
readPileUp.cpp:(.text+0x28b4): undefined reference to `BamTools::BamAlignment::FindTag(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char*&, unsigned int const&, unsigned int&) const'
collect2: error: ld returned 1 exit status
make: *** [bin/whamg] Error 1

Would appreciate some help :)

Hi @mpauper,
What system are you using? Do you have a newer version of bamtools in your path?

Hi @zeeev ,
Thanks for the prompt reply!
I am on a CentOS 7.4 system.
I do not have any other bamtools in my path.
cmake version 3.12.1
gcc version 5.1.0

@zeeev I think this is related to the issue I opened.  Possibility related to the bamtools build in your makefile.

Hi Shawn,
Did you try updating the checkout of bamtools prior to the build, like I suggested? Did that solve the problem? If so, I will just update the bamtools checkout.
—Zev

On Aug 20, 2018, at 2:41 PM, Shawn Rynearson<EMAIL_ADDRESS>wrote:
@zeeev https://github.com/zeeev I think this is related to the issue https://github.com/zeeev/wham/issues/47 I opened. Possibility related to the bamtools build in your makefile.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/zeeev/wham/issues/49#issuecomment-414472854, or mute the thread https://github.com/notifications/unsubscribe-auth/AAnxIRSrZVlsIv5mrjSiWYi2-su4AR-5ks5uSy0jgaJpZM4V_upl.

Hello,
I am not sure that this is the correct way to do it but here is what I tried:
> cd src/bamtools/
> git pull
You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.
> git checkout master
Previous HEAD position was 2d7685d... Clarified documentation on BamReader::GetNextAlignmentCore
Switched to branch 'master'
> git pull
Already up-to-date.
> cd ../..
> make

I still have the same error, however.

Old thread, but I wanted to note that I had similar issues and was able to resolve them by using an older version of Cmake and gcc.  I switched from Cmake 3.16 and gcc 7.1 to Cmake 3.5.1 and gcc 4.8.5 and the compilation worked.

Hi Shawn, Did you try updating the checkout of bamtools prior to the build, like I suggested? Did that solve the problem? If so, I will just update the bamtools checkout. —Zev
…
On Aug 20, 2018, at 2:41 PM, Shawn Rynearson @.***> wrote: @zeeev https://github.com/zeeev I think this is related to the issue <#47> I opened. Possibility related to the bamtools build in your makefile. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#49 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAnxIRSrZVlsIv5mrjSiWYi2-su4AR-5ks5uSy0jgaJpZM4V_upl.

Hi, I have the same problem as #47 and I have read about the other problem #47, and the solution you proposed. But I'm not sure I understand what do you mean by "go into the bamtools submodule, in whamg, prior to building and then update the branch?" Could you give more detailed instructions about it and I will try it immediately.
Many thanks.
Quentin


Add doc maintainers

Type of change

Bug fix
New feature
Improvement (improvement to code, performance, etc)
Test update
Documentation update

Description

Additional details

Related issues

I don't know why ca-docbuild isn't reporting. it has passed.

I don't know why ca-docbuild isn't reporting. it has passed.

@ryjones GitHub has a service outage on their API and WebHooks today. 4th outage in the last 7 days :(

/azp run


Keras Document issue: sidebar dropdown shows nothing

There is an issue as title. There supposed to show sub items on the pages.

@I-Hong There are no subitems. all the material was documented in the page. I know there is a + sign to expand, but as of now there is no more additional pages within Convolutional Layers. Please let us know what you think. Thanks!

I am closing the issue as there is no issue here. Thanks!


Clarify logging in offer scheduler

Don't log all task IDs if there are more than 30, hard to even read the line
Also log the cpus already committed to an offer when considering it overloaded

🚢


Rewrite the getting started section.

What changed?

In this PR I rewrote the getting started section of the docs, and configured the corresponding index file.

Rationale

Going through the installation process seemed lengthy, mainly due to verbose instructions, which were sometimes repeated. So I tried to consolidate information and reduce the amount of reading a user would have to do in order to get started.
I created 1 getting started file from the "prerequisites" and "install and configure" files.
I also moved things around in the sections that spoke about making PRs, and placed the permissions section before the instructions for making PRs.
I also edited the index file accordingly.

How was it tested?
If it was manually verified, list the instructions for your reviewers to follow.

[ ] Unit Tests
[ ] Functional Tests
[ ] Manually Verified

These are suggestions, I have not tested how they would render on the website yet. I have to figure out how to run the rendering locally, or maybe there is a process in place.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Trend Hitch Time in graph over time.

This would be extremely useful to be able to trend the hitch time in a graph over time.

u can fork it and make the function yourself then open a pull request, or suggest it on discord tabarra might see it faster :p https://discord.gg/AR3CgB3

Hitch is not that good as a measurement.
Using the performance endpoint (http://localhost:30120/perf/) data would be way waaay better, but its complicated to do the bucketed histogram for it, so I don't know if I will ever do this.

Actually, I'm creating a new issue for this.
Thanks for the suggestion @awojnarek.


Mark tests with @pytest.mark.online that need access to the Internet

When turning off Internet access and running all tests a la #645 (comment) I get 106 failures.

Interesting, we run those test automatically in Debian already:
https://buildd.debian.org/status/fetch.php?pkg=vcr.py&arch=all&ver=4.2.1-1&stamp=1671217645&raw=0

With a rebased version of this pulll request on top and adding -m online to the pytest call, that list goes down to 6 failures.
Would you be up for marking these tests as online also so that we get down to 0 failures for current master?

Those tests are exactly what this patch marks as online already, you probably want -m "not online", can you give it a try?

Hi @jspricke,

When turning off Internet access and running all tests a la #645 (comment) I get 106 failures.

Interesting, we run those test automatically in Debian already: https://buildd.debian.org/status/fetch.php?pkg=vcr.py&arch=all&ver=4.2.1-1&stamp=1671217645&raw=0

I'm not sure what to look for on that page or what the message is. Are you saying that Debian should be running fewer tests than currently because more are using the Internet than assumed previously?
Btw vcrpy in Gentoo could also benefit from a the online flag to get rid of the exclusion file list at https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-python/vcrpy/vcrpy-4.3.1.ebuild#n44 .

With a rebased version of this pulll request on top and adding -m online to the pytest call, that list goes down to 6 failures.
Would you be up for marking these tests as online also so that we get down to 0 failures for current master?

Those tests are exactly what this patch marks as online already, you probably want -m "not online", can you give it a try?

Good point! When I flip things around to  -m "not online" I get 100 failed tests now which seems to make sense given that 100 + 6 = 106, the total number of tests failing without Internet Access on master. I think that means we would need to mark 100 tests more rather than 6 more?

I'm not sure what to look for on that page or what the message is. Are you saying that Debian should be running fewer tests than currently because more are using the Internet than assumed previously?

My point was that all those tests in the log work without internet (at least with Debian tooling).

Good point! When I flip things around to -m "not online" I get 100 failed tests now which seems to make sense given that 100 + 6 = 106, the total number of tests failing without Internet Access on master. I think that means we would need to mark 100 tests more rather than 6 more?

As shown in the Debian log, I only had to mark those 6 tests. Could you share your setup to find out why more tests are failing?

My point was that all those tests in the log work without internet (at least with Debian tooling).

@jspricke I see. How is Debian taking away Internet access technically? Are they starting a new Linux network namespace or is it using LD_PRELOAD or LD_AUDIT or …? Do you have links to how this technology works?

As shown in the Debian log, I only had to mark those 6 tests. Could you share your setup to find out why more tests are failing?

My setup was literally pulling the LAN cable and disconnecting Wifi, nothing more. I'd expect that test oracle to be quite accurate though.

@jspricke I see. How is Debian taking away Internet access technically? Are they starting a new Linux network namespace or is it using LD_PRELOAD or LD_AUDIT or …? Do you have links to how this technology works?

There is pbuilder that uses iptables and sbuild --chroot-mode=unshare that uses user namespaces.
Actually I did not see the other test failures cause some tests where ignored already:
https://sources.debian.org/src/vcr.py/4.2.1-1/debian/rules/#L5
Sorry for not noticing that earlier.
I've updated the PR, can you give it an other try? (I'm currently running into unrelated test failures with the latest master).

Codecov Report

Merging #674 (14dd74b) into master (e3aae34) will decrease coverage by 0.47%.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##           master     #674      +/-   ##
==========================================
- Coverage   90.30%   89.83%   -0.47%
==========================================
  Files          28       28
  Lines        1774     1771       -3
  Branches      313      245      -68
==========================================
- Hits         1602     1591      -11
- Misses        137      145       +8
  Partials       35       35

see 5 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

isort has two last tiny suggestions for adjustment at https://github.com/kevin1024/vcrpy/actions/runs/5299720625/jobs/9600399603#step:5:48 . Could you run isort . --overwrite-in-place locally and update the pull request according to make the CI happy?

Done.

Done.

@jspricke thanks, let's see how the CI likes it…

@jspricke PS: I made Gentoo use the new -m "not online" now. With too recent werkzeug in the environment these five tests will still fail, in case you run into that, too:
FAILED tests/integration/test_urllib2.py::test_random_body[http]
FAILED tests/integration/test_urllib2.py::test_random_body[https]
FAILED tests/integration/test_urllib2.py::test_multiple_requests[https]
FAILED tests/integration/test_urllib2.py::test_multiple_requests[http]
FAILED tests/integration/test_record_mode.py::test_new_episodes_record_mode_two_times


Not run job in Service

Hello. I try using JobSchedulers for my chat app (for async send message):
 val job = dispatcher.newJobBuilder()
                .setService(BackgroundJobService::class.java)
                .setTag(BackgroundJobService.TASKTAG_SEND_MESSAGE)
                .setReplaceCurrent(false)
                .setConstraints(Constraint.ON_ANY_NETWORK)
                .setExtras(bundle)
                .setTrigger(Trigger.executionWindow(0, 1))
                .build()
dispatcher.mustSchedule(job)

And add my service in manifest:
<service
            android:exported="false"
            android:name=".data.background.service.BackgroundJobService">
            <intent-filter>
                <action android:name="com.firebase.jobdispatcher.ACTION_EXECUTE"/>
            </intent-filter>
</service>

class BackgroundJobService : JobService() {
    companion object {
        val TASKTAG_SEND_MESSAGE = "send_message"
        val EXTRA_MESSAGE = "message"
    }

    @Inject
    lateinit var webSocket: IRxWebSocket
    var subscribe: Disposable? = null

    override fun onCreate() {
        super.onCreate()
        App.appComponent.inject(this)
        subscribe = webSocket.connect().subscribe({}, {})
    }

    override fun onStartJob(job: JobParameters?): Boolean {
        return true // Debug point here
    }

    override fun onStopJob(job: JobParameters?): Boolean {
        return true
    }

    override fun onDestroy() {
        super.onDestroy()
        subscribe?.dispose()
    }
}

But my onStartJob not calling! Where is my mistake?

Debug doesn't stop in service job. Job also didn't log anything by Log.d() or Log.e().
Put some notification or any other kind of checking that your program was there.
You return true in "onStartJob", but if you want to reschedule, you must return false. It must be answer the question  "Is there still work going on?"

Me too, and setTrigger never gets on time.

Debug is not available in service. Log.d also not working.
In your onStratJob you returning "true", but you should answer the question "Does it still work?", so you have to return false. Otherwise it wouldn't be run second time.
Also a had trouble with DI in service and got NPE after injecting service. I don't know what it was, but I desided to avoid DI and started to use "new" operator.

In April 2019 we announced that Firebase Job Dispatcher would be deprecated today, April 7th 2020.  For this reason we are going to close all open issues and archive the repository.  We will also stop supporting FJD for new app installations (such as those targeting sdk versions greater than Android Q).  Existing apps that rely on FJD should continue to function as usual.
While we will no longer work on FJD, we encourage you to migrate to Work Manager which is a superior tool and fully supported by the Android team.
Thank you for taking the time to try the library and provide this feedback.  We sincerely appreciate your effort and we apologize for not addressing it in time.


Retrieve email contact information

Value Statement:
As VANotify
I want to retrieve the email address from VA Profile
So that I can send an email notification
Acceptance Criteria

Prerequisite
GIVEN  the API has received a request to send an email notification

AND that request specifies a va_profile_id

GIVEN VANotify sends the unique identifier (VA Profile ID) to VA Profile
WHEN VA Profile responds with an email address
THEN the email address is stored as part of notification
AND the notification is delivered

GIVEN VANotify sends the unique identifier (VA Profile ID)
WHEN VA Profile responds without the email address
THEN the notification status is updated based on the failure reason

GIVEN the feature toggle for VA Profile has been deployed
WHEN the retrieval of email address or phone number is turned on
THEN VANotify makes a request to VA Profile and processes the response

GIVEN the feature toggle for VA Profile has been deployed
WHEN the retrieval of email address or phone number is turned off
THEN VANotify does not make a request to VA Profile
AND the appropriate status is stored (technical failure)

GIVEN VANotify sends the unique identifier (VA Profile ID)
WHEN VA Profile responds with multiple email addresses
THEN the email address with the last created date is stored for the notification

Need to use our cert for communication with VA Profile
GIVEN VANotify environment
WHEN VANotify makes a request to VA Profile
THEN it uses certificate for that environment to authenticate itself to VA Profile

GIVEN the feature toggle for VAProfile if Off

WHEN a request to send email is made to VANotify with VAProfileID

THEN the API responds with 501 NOT IMPLEMENTED http status

GIVEN the feature toggle for VAProfile if On
AND VANotify cannot retrieve phone contact information

WHEN a request to send SMS is made to VANotify with VAProfileID

THEN the API responds with 501 NOT IMPLEMENTED http status
Checklist:

[ ] Store credentials as secrets for VANotify dev, staging and prod
[ ] install certificate to access the VAProfile (https)
[ ] Update User Flows
[x] create mock VAProfile for local development
[ ] send the request to VAProfile
[ ] confirm during kick-off update migrations and models.py so a new status represents getting contact info.
[ ] in case of successfully getting email address notification status should be 'sending'
[ ] in case of failing to get email address change notification status to 'technical-failure'
[ ] define algorithm/logic in case multiple email addresses are sent back from vaprofile as only one email address should be selected
[ ] Update the notification in DB using the notification id
[ ] add to email queue so email is sent by existing celery worker
[ ] modify config.py so new queue is created
[ ] new celery worker is defined and functioning
[ ] enough logs are generated especially in case of VAProfile failure. this is especially important after going live so potential VAProfile issues can be directed at VAProfile asap
[ ]  statsd logs are generated so the datadog graphs can show success and potential failure rates

Assumptions:

the notification is on the queue
VA Profile id is available and in recipient identified table

Additional Info/Resources:

VAProfile DEV URL: https://int.vaprofile.va.gov/contact-information-hub/cuf/contact-information/v1/{{vet360Id}}/emails
Add feature toggle for VA Profile (deploy toggle, both for email and phone)
Update the status of the notification based on data not available from VA Profile
Persist VA identifiers in separate table - Completed as a part of #190
If multiple emails returned, select one to send to (Discuss logic - last created date (or updated date?)
Error handling when VA Profile not available or record missing
Basic validation for email address - not in scope for the story
Validate contact info type
API documentation: https://int.vaprofile.va.gov:7005/contact-information-hub/swagger-ui.html

Out of Scope:

Large volumes, batch
No phone numbers If it is an SMS notification don't make the request to VA Profile. This will be covered in card #194
Basic validation for email address from VA Profile

Open Questions:

~How many unique identifiers does VA Profile accept?~ per documentation provided by VA Profile only one
What are the status responses from VA Profile? (no email address is available, identifier not found) Need to get the final list in Dev Analysis. Confirm how the status for AC 2 will map to our statues in Dev Analysis
~AC 6 and AC 7 base validation for email decision needed in Dev Analysis~ Not in scope

The swagger UI and gherkin feature file are available from the link to the API.  They are not attached to this user story as they are currently available only from within the VA netwrok.
Here are the potential return codes from VAProfile based on the OpenAPI doc:
We should store or log txAuditId from responses as VAProfile would need it in case of any issues.

200 - indicates successful request.  If there are any messages, then they might contain warnings or further info.
400 - This request shouldn’t be retried until corrected.
403 - authorization error, do not try again
404 - NotFoundError, do not retry
429 - exhausted the approved request quota for this API.  Retry after 60 seconds (confirm this value)
500 - retry and if the issue persists, then keep the response, in log, as the VAProfile support would need a copy of the response

ids that can be used for testing until permanent ids are generated for VANotify team on various environments:

1: will return 200 but with message key _CUF_NOT_FOUND and COMPLETED_SUCCESS as status
203: will return 200 and one email address

Test plan for this story can be found here

Need to take a look at scheduled task replay_created_notifications that runs every 15 minutes and moves notifications with CREATED status to a delivery queue (SEND_SMS, SEND_EMAIL)

Deployed to dev and going to test it!

Got it. Thanks Phil for the heads up.
On Tue, Dec 1, 2020 at 10:26 AM Phil Herbert<EMAIL_ADDRESS>wrote:

cc @miabecker https://github.com/miabecker @jsmithVA
https://github.com/jsmithVA
Among the devs, we've decided to edit this story to remove references to a
new feature toggle. The entire "recipient identifiers / VA profile / MPI"
feature is already behind an existing toggle,
ACCEPT_RECIPIENT_IDENTIFIERS_ENABLED, created in #190
https://github.com/department-of-veterans-affairs/notification-api/issues/190.
Adding piecemeal feature toggles for each story feels like overkill, since
we don't have a usecase where we'd want some of the stories in production
and not others.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/department-of-veterans-affairs/notification-api/issues/192#issuecomment-736624635,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARTMDOYLIPNINBPM2HIJW7TSSUDK3ANCNFSM4R5JLYSQ
.

--
Maria Becker
Product Manager
Email<EMAIL_ADDRESS>Telephone<PHONE_NUMBER>
Pronouns they/them or she/her
[image: ThoughtWorks]
http://www.thoughtworks.com/?utm_campaign=maria-becker-signature&utm_medium=email&utm_source=thoughtworks-email-signature-generator


Adding a method to configure maximum allowed http headers size

I've stumbled upon an issue that I've had to deal with client that is using huge headers (more than 16k) and Jetty's defaults were not good enough. This PR provides a Spark.maxHeadersSize(size) method that sets max headers size for both requests and responses.

This should be taken care of by #813


pull request for e2e test at 12/01/2016 10:26:05

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


Chain Export

Summary of changes
Changes introduced in this pull request:
Reference issue to close (if applicable)

Closes #1505
Other information and links

@connormullett Could you update this PR with a status report? Are you blocked? What is missing?

Let's put this on the back burner for now and revisit after nv16.

The WASM bundles aren't included in the snapshots. I'm investigating why.

Fixed.

This is a minimal PR for chain exporting. Error messages and ergonomics can be improved in the future (issues have been created for this).