aws-amplify 0.3.0: "Uncaught ReferenceError: require is not defined" when packaged with webpack

Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Absolutely minimal app (only uses 'import Amplify') results in browser [MacOS Chrome v65] 'Uncaught ReferenceError: require is not defined' error when loading page
Chrome reports that the error is on the "require" line:
, function(e, t, n) {
    "use strict";
    (function(e) {
        t.a = function(e, t) {
            return e instanceof t
        }
    }
    ).call(this, require("./../../process/browser.js"))
}

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than AWS Amplify.
package.json:
{
  "name": "sampleProj",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "dependencies": {
    "aws-amplify": "^0.3.0",
    "webpack": "^4.6.0",
    "webpack-cli": "^2.0.14"
  },
  "devDependencies": {},
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "build": "webpack && cp -r ./dist/* ~/Sites/localhost/sampleProj/"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}

index.js:
import Amplify, { Analytics, Logger, Storage, Auth }  from 'aws-amplify';
import aws_exports from "./aws-exports";

index.html:
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>sampleProj</title>
	<script src="main.js"></script>
</head>
<body>
sampleProj
</body>
</html>

Steps
mkdir sampleProj && cd sampleProj
npm init -y
npm install webpack webpack-cli --save-dev
awsmobile init xxxxx
mkdir -p ~/Sites/localhost/sampleProj/
npm run build

What is the expected behavior?
Successful start-up of Amplify code
Which versions of Amplify, and which browser / OS are affected by this issue? Did this work in previous versions?
Occurs with version 0.3.0. Does not occcur with 0.2.11
Tested only with MacOS Chrome v65
You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG'; in your app.

Hey @TheVaporTrail what is your webpack config?

For sampleProj, I did not specify a webpack config; webpack is using its default config. I do have a webpack config for the new project that I created yesterday where I first encountered this problem; in that config I set module.exports.target = web and also tried module.exports.output.libraryTarget = umd
Please let me know if there is a particular webpack config you would like me to test.

I have the same problem.

I'm having the same issue, also wanted to upgrade from v0.2.15 to v0.3.3. Having the same error on v0.3.0

Just want to update that I've also bumped GraphQL from 0.13.1 to 0.13.2 but got the same error.

Just tried to upgrade from 0.2.15 to 0.3.0 (also tried 0.3.3) and everything breaks. The problem appears to be in the graphql module.

Just wanted to say I have the exact same problem with the GraphQL module, even if I do not include it in my project.

I am also getting the same error.

I am also getting the same error

I downgraded to 0.2.x for now and 0.2.x worked for me without this error.

Ran into this error as well, but I do want to use the simple graphql API bits.

Ok, I found something that helped. Graphql-js uses .mjs as file extension which caused issues with the webpack build. Adding
          test: /\.mjs$/,
          include: /node_modules/,
          type: "javascript/auto",
}```

to my webpack rules helped.

I can confirm that was @Stereobit wrote also fixed my issue. Thanks!

Closing this issue as there seems to be a valid fix. Please reopen this issue if the fix does not work or you have more questions.


Node debugger stalls when using util.inspect

Debugging a Node program that uses util.inspect hangs the underlying node process.
I stumbled across this while working on an app that depends on the Azure Storage SDK for Node (it uses util.inspect). I don't have a workaround for debugging right now, but the app works fine when running directly from the command line.
I've created a repro of the problem here:
https://gist.github.com/benquarmby/36f6c00947ad04509212
Steps:

Create a script that invokes util.inspect on an object
Place a breakpoint in the script after the call util.inspect
Start debugging
Observe that the breakpoint is not hit

Environment:

VSCode 0.10.6
Windows 10 x64
Node 5.5 x64

@benquarmby I could reproduce the same behaviour with node-inspector, so this is not a VS Code problem but a node problem, most likely a duplicate of https://github.com/nodejs/node/issues/4917.
It does not occur with node version < 4.2.6

Right you are. I notice Node JS Tools for Visual Studio repros this bug also. Definitely a node problem and not VS Code specific.


Update README

Background
For the purposes of facilitating cross-team collaboration, promoting internal re-use, and ensuring architectural clarity it is important that Narwhal code repositories meet the minimum standards in regard to included information.
Acceptance Criteria

Readme file exists at root of repository that meets Narwhal minimum standards

Reference

https://github.com/defenseunicorns/task-force-narwhal/blob/main/CONTRIBUTING.md#readme

Feel free to argue with ANY of the requirements in regard to the readme. I just ask that you update the contribution guide.

Completed?


Create an ABAP Core Data Services (CDS) View in SAP NetWeaver 7.5

Tutorial URL: https://developers.sap.com/tutorials/abap-dev-create-cds-view.html
Please specify the step you are referring to
I followed your steps and completed . when I used Query browser App this particular CDS view is not visible similar to other views which has annotation with @OData.publish: true . With binding , I think we are mimicking the same right?
Your answer this will be helpful.
thanks  in advance
Sree

Hi Sree,
Yes, service definition and service binding combined is the exact same thing: Create an OData service, specifying elements to be exposed (Definition) + protocol (eg OData v2) + use case (A2A API or UI).
The previous mechanism (annotation) created a large number of artifiacts under the hood, so we want to avoid that.
Best wishes,
Julie.

Thank you for your feedback. The issue seems to be resolved, so I am closing the issue.
If you still have questions, feel free to reopen the issue.


fix: Dapr should require app-port to be set if a pub/sub component is … loaded/used

Description
fix #2979
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #2979
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[x] Created/updated tests
[x] Unit tests passing
[x] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

It seems like this violates what both Ryan and Yaron were stating in the issue. We wanted to add additional logging not make the request fail. @yaron2, thoughts?

@halspang, pls. check https://github.com/dapr/dapr/pull/3243#discussion_r646430841


Switch tests to use TestNG instead of JUnit.  This closes #42

Thanks @johnament . I've added some fixes for the remaining assertions, but now we are good to go.

Ah shoot.  I had that commit locally, missed pushing it.  Thanks!


v0.18 doesn't play nice with react-native-cli?

I just tried to swap react v0.17 for v0.18-rc in my project, and after running
npm install https://github.com/facebook/react-native/archive/v0.18.0-rc.tar.gz
I'm getting the following when running react-native in the cli:
/Users/danny/src/Fitbird/node_modules/react-native/node_modules/babel-core/lib/transformation/file/options/option-manager.js:181
          throw new ReferenceError(messages.get("pluginUnknown", plugin, loc, i));
          ^

ReferenceError: Unknown plugin "syntax-async-functions" specified in "foreign" at 0
    at /Users/danny/src/Fitbird/node_modules/react-native/node_modules/babel-core/lib/transformation/file/options/option-manager.js:181:17
    at Array.map (native)
    at Function.normalisePlugins (/Users/danny/src/Fitbird/node_modules/react-native/node_modules/babel-core/lib/transformation/file/options/option-manager.js:163:20)
    at OptionManager.mergeOptions (/Users/danny/src/Fitbird/node_modules/react-native/node_modules/babel-core/lib/transformation/file/options/option-manager.js:259:36)
    at compile (/Users/danny/src/Fitbird/node_modules/react-native/node_modules/babel-register/lib/node.js:87:15)
    at loader (/Users/danny/src/Fitbird/node_modules/react-native/node_modules/babel-register/lib/node.js:128:14)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/danny/src/Fitbird/node_modules/react-native/node_modules/babel-register/lib/node.js:138:7)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)

The CLI should be fine... try completely deleting node_modules and $TMPDIR/react-*

Just did that, and still - nope, exact same error.
Here is my react-native-cli version:
dannys-imac:Fitbird danny$ react-native --version
react-native-cli: 0.1.8
react-native: 0.18.0-rc

Here is my verbose npm install log:
https://gist.github.com/israelidanny/9de53a11417c344f6640

react-native 0.18.0-rc is not yet published to npm. Please retry after it's published.

npm install https://github.com/facebook/react-native/archive/v0.18.0-rc.tar.gz

I just tried on my local machine and it's working fine. Have you tried uninstalling and reinstalling the react-native-cli paclkage?

Yes, positive - tried that too. Is there any logical debug process for this kind of error?

No idea :(
Also found #4055

I'm seeing this same issue when I try to use my source copy of react-native in my project.
In my project directory:

rm -rf node_modules/*
ln -s ../react-native ./react-native
npm i
cd node_modules/react-native && npm i

Then when I run 'react-native start' in my project dir I see the error in OP. I also tried 'react-native start --root node_modules/react-native' but see the same error.
I think the problem is that the --root param is being ignored, so react-native/node_modules isn't searched.
Not sure if there's a better/simpler way of using a source copy of react-native as a dependency (how is everyone else doing development of react-native and testing the result in a project?).

babel-core before version v6.2.0 uses process.cwd() to resolve plugins while compiling a file.
This error arises if we try to run the packager in our own react-native project directory (which doesn't have the necessary babel plugins installed).
Newer versions of babel-core fixed this problem. Specifically, this commit resolves plugins relative to the file being compiled:
https://github.com/babel/babel/commit/8fd543edae545d6e528e40668d5cade6e3c5fb49#diff-4ba351b92a42899cddf5f8518c289c1d
After upgrading react-native to use newer versions of babel-core, this problem goes away. In particular babel-core 6.4.5 works for me...

@facebook-github-bot answered


Close #135, .gitignore now ignores all .import files

See the replies on the issue, that's a no-no


PAPERBUILD flag uses partial URL of latest version, 404s

Command used:
sudo podman run -d -it -v /home/$3/data:/data:z -e TYPE=PAPER -e PAPERBUILD=$6 -e FORCE_REDOWNLOAD=true -e MAX_RAM=$4G -e UID=$USR_UID -e GID=$USR_GID -p $1:25565 -e EULA=true -e USE_AIKAR_FLAGS=true -e SERVER_NAME=$5 --name $2 -m=$4g --cpus=1 itzg/minecraft-server

Console output:
[init] Changing uid of minecraft to 1004
[init] Changing gid of minecraft to 1004
[init] Changing ownership of /autopause to 1004 ...
[init] Running as uid=1004 gid=1004 with /data as 'drwxrwxr-x    9 1004     1004          4096 Jun 23 19:59 /data'
[init] Resolved version given LATEST into 1.16
[init] Resolving type given PAPER
[init] Downloading Paper 1.16 (build 370) from https://papermc.io/api/v1/paper/1.16/370/download ...
curl: (22) The requested URL returned error: 40
[init] ERROR: failed to download from https://papermc.io/api/v1/paper/1.16/370/download (status=0)

Looks like it's trying to hit https://papermc.io/api/v1/paper/1.16 instead of the appropriate path for the older version https://papermc.io/api/v1/paper/1.15.2/370/download. This just broke a lot of my servers, is there a quick workaround?

Manually specifying -e VERSION=1.15.2 seems to resolve for now. Since there's another ticket going, I'll close this.


Mission request doesn't work after relogin on dev branch

Hi, first of all thanks thank you very much for such a good version of antistasi)
I guess i found bug in the dev branch.
I use dedicated server runned on the same machine as a client.
At first launch all works fine, but if i logout and login again  "Request mission" action on Petros is missing.
I tried "git reset" to this commit https://github.com/LordGolias/antistasi/commit/0f15bc7740185cbf27142695230e6ebc766505c5
And it helps, in this version all works fine.
Sorry for my bad english, not my native)

Hopefully fixed by 05b4c47d1e582236daab266d936cb6bdbf65f013


Allow target blank in links

Add the moment there is no way to make links open in a new tab. When the link is created, only the url is set. Would it be possible to add at least a prop to make all links open in new tab, or even better to add the possibility to let the user set this when creating a link.

see also docs https://github.com/globocom/megadraft/blob/master/docs/custom_entities.md

Hi @eskimoblood, If you have any further questions on this issue, please reopen it.


Incorrect Scale calculation

The baker in SpriteSettingsAuthoringModule.cs calculates the size of a sprite in a very different way than standard unity conventions dictate.  The rendered size of a sprite ends up introducing a novel unnecessary scale scalar and ignoring the conventional pixels per unit.  This also implicitly assumes that all sprites in a sheet are the same size.
An improved version:
SpriteSettingsAuthoringModule.cs:
        public void Bake<TAuthoring>(Baker<TAuthoring> baker, TAuthoring authoring, Sprite source, in float4 uvAtlas)
            where TAuthoring : Component
        {
            var authoringTransform = authoring.transform;
            var authoringScale = authoringTransform.lossyScale;

            baker.BakeSpriteRender
            (
                baker.GetEntity(TransformUsageFlags.Dynamic),
                authoring,
                uvAtlas,
                GetTilingAndOffsetByDrawMode(),
                Pivot,
                new float2(source.texture.width, source.texture.height) * uvAtlas.xy / source.pixelsPerUnit * new float2(authoringScale.x, authoringScale.y),
                flipX: Flip.x,
                flipY: Flip.y
            );
        }

Hello! Thank you for pointing this out. Would you like to make a pull request?


Trade list seems incorrect

This trade list seems incorrect, either the data-node do not return the data properly, either the pagination is not managed correctly, not sure it's a data-node or frontend issue just now, but clearly there was much more trade than display here even in the last minute:

Confirm that that data coming from data-node is correct or not and if not move to data-node repo

Triaged and no issue found - closing for now


Any advice for PyTorch AMP implementation?

Hi, your work is interesting, and I want to implement it using PyTorch, did you try to implement using PyTorch? and if yes, any advice?

Hi, thanks for your interests.
We do have plan to port this project to PyTorch, but it is of low priority, and we do welcome if you're interested in working on that. My personal plan for now is to focus on migrating the repository to the latest (and the final) version of Chainer/CuPy.
Chainer and PyTorch share a lot of things in common. So I would assume a re-implementation won't be significantly difficult.
Please check the README for more details on the ada_loss internals. And this tutorial covers comprehensively how to migrate from Chainer to PyTorch, which you might find useful.
Let me know if you have any other questions.
Best,
Ruizhe

@kumasento Thxs, I will read this tutorial.


Updated README.md

This PR closes #41

@bradtaniguchi Can you move the images in this PR to the other branch like before....

@bradtaniguchi Can you move the images in this PR to the other branch like before....

Yea I was going to do that before merging, leave the PR as-is and I'll finish it up, and move the image files over :)

Updated the PR, and added the files to the media branch. Should be good to go!


Chase freeman pix-art -'Re-pushed'

I don't think I pushed the correct branch last time!

👍  good work!


Cross-compiling: Version readout fixed

Small addition to cmake-changes2: When cross compiling MSVC is of course not set on windows. Also it just checks whether using the MS compiler - will also not be set for mingw. Thus checking for the host OS and determining on which system the command is actually run on seems the way to go.

:+1: looks good

👍
@AndreasSchoenle it looks good. I had only one question that I was curious about. After you answer that I'll go ahead and merge it.

Tested and needed for cmake-changes4 https://github.com/KjellKod/g3log/pull/190


Access point scan pattern is not robust

I was trying out exploit for one of my CB2S based Smart plugs as commented here.
During the process, the smart plug creates A-B172 access point.
However, the cloudcutter script detects another AP which is someone's WiFi SSID MOTO3C7A-5G.
MOTO3C7A-5G has pattern "A-" but it does not start with "A-".
cloudcutter most of the time detects MOTO3C7A-5G first before A-B172 and fails as shown below.
==> Toggle Tuya device's power off and on again 6 times, with ~1 sec pauses in between, to enable AP mode. Repeat if your device's SSID doesn't show up within ~30 seconds. For smart plugs long press the reset button on the device for about 5 seconds. See https://support.tuya.com/en/help/_detail/K9hut3w10nby8 for more information.
Scanning for "A-" "Geeni-" "GRID-" "iHome-" "LDV SMART+-" "Merkury-" "Nexxt Home-" "SL-CreeLighting-" "SL-FLSNT-" "SmartLife-" "TreatLife-SL-" SSID...
Scanning for "A-" "Geeni-" "GRID-" "iHome-" "LDV SMART+-" "Merkury-" "Nexxt Home-" "SL-CreeLighting-" "SL-FLSNT-" "SmartLife-" "TreatLife-SL-" SSID...
Found access point name: "MOTO3C7A-5G", trying to connect..
Error: Connection activation failed: (7) Secrets were required, but not provided.
Scanning for "A-" "Geeni-" "GRID-" "iHome-" "LDV SMART+-" "Merkury-" "Nexxt Home-" "SL-CreeLighting-" "SL-FLSNT-" "SmartLife-" "TreatLife-SL-" SSID...
Found access point name: "MOTO3C7A-5G", trying to connect..
Error: Connection activation failed: (7) Secrets were required, but not provided.
Scanning for "A-" "Geeni-" "GRID-" "iHome-" "LDV SMART+-" "Merkury-" "Nexxt Home-" "SL-CreeLighting-" "SL-FLSNT-" "SmartLife-" "TreatLife-SL-" SSID...
Found access point name: "MOTO3C7A-5G", trying to connect..
Error: Connection activation failed: (7) Secrets were required, but not provided.
Scanning for "A-" "Geeni-" "GRID-" "iHome-" "LDV SMART+-" "Merkury-" "Nexxt Home-" "SL-CreeLighting-" "SL-FLSNT-" "SmartLife-" "TreatLife-SL-" SSID...
Scanning for "A-" "Geeni-" "GRID-" "iHome-" "LDV SMART+-" "Merkury-" "Nexxt Home-" "SL-CreeLighting-" "SL-FLSNT-" "SmartLife-" "TreatLife-SL-" SSID...
Found access point name: "MOTO3C7A-5G", trying to connect..
Error: Connection activation failed: (7) Secrets were required, but not provided.
Scanning for "A-" "Geeni-" "GRID-" "iHome-" "LDV SMART+-" "Merkury-" "Nexxt Home-" "SL-CreeLighting-" "SL-FLSNT-" "SmartLife-" "TreatLife-SL-" SSID...
Found access point name: "MOTO3C7A-5G", trying to connect..
Error: Connection activation failed: (7) Secrets were required, but not provided.
Error, could not connect to SSID.
Failed to connect, please run this script again

I believe, the pattern matching can be made robust enough to avoid such issues.

Can you please try modifying common.sh line 3
from
COMBINED_AP_PREAMBLE=$(cat ap_preambles.txt | grep -v '#' | sort -u | awk '{print "-e \""$0"\"" }' | tr '\n' ' ')
to
COMBINED_AP_PREAMBLE=$(cat ap_preambles.txt | grep -v '#' | sort -u | awk '{print "-e \"^"$0"\"" }' | tr '\n' ' ')

Can you please try modifying common.sh line 3
from COMBINED_AP_PREAMBLE=$(cat ap_preambles.txt | grep -v '#' | sort -u | awk '{print "-e \""$0"\"" }' | tr '\n' ' ') to COMBINED_AP_PREAMBLE=$(cat ap_preambles.txt | grep -v '#' | sort -u | awk '{print "-e \"^"$0"\"" }' | tr '\n' ' ')

Thanks!
In addition to your change, I also have to remove fixed string matching option -F from line 45 to make it work.
AP_MATCHED_NAME=$(nmcli -t -f SSID dev wifi list --rescan yes | eval grep $COMBINED_AP_PREAMBLE | sort -u)


Add rpm based CRIO CI job

Depends on https://github.com/openshift/openshift-ansible/pull/7425

How urgent is this? If not p0 can we try to use the new format?

I'd want to have this job working by end of week.

EOW gives us ages. Let's sync tomorrow about how we might be able to implement this job without 2k LOC copies

Any update on this?  The current crio job is not correct and we can't test with it anymore.

Specifically openshift/openshift-ansible#7486 can't test crio because the system container in 3.9 is busted (until we rebase we can't use the new crio image).
Also, we need to be careful to make sure we have specific cri-o install branches - 1.9 and 1.10 must be used appropriately for each branch (and we can't switch to 1.10 until we get the rebase landed).

:+1: on getting this finished.
Is the system container defective or is it a matter of version matching for Openshift? If the system container is broken please make sure an issue is opened so folks can fix it.


Handle transition from old gogs users to itsyou.online users

[x] Check version compatibility
[x] Build the new version
[ ] Disable registration
[ ] List all users with email and match to iyo
[ ] Delete all unmatching users
[ ] Upgrade
[ ] Send email to unmatching users to create an iyo account and to let me know when this is done

Version available on https://hub.docker.com/r/gigforks/gogs/tags/


[9.x]  Added whenHasValue method to the request object

Sometimes we need to evaluate the value of a input and execute one thing or another, we can achieve this by using a simple if or with the whenHas method.
$request->whenHas('input', $closure)..

The thing with this is that even we know that the input is present, if we need to evaluate the value of the input we have to add an extra if inside the closure.
$request->whenHas('input', function($value) {
    if($value == 'Hello') {

    } else {

    }
})..

I think we be really cool if we can pass an extra param to evaluate the value of the input, think is cleaner this way.
The method take 2 closures one of the input has the value (if), and the other closure when this input doesn't match with the value we passed as parameter (else).
$request->whenHasValue('input', 'Hello', function($value) {
    // the input has the value of hello
}, function() {
    // the input does not have the value of hello
})..

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.


Proxy-Agent breaks requests it shouldn't

For some reason, the include of node-ssllabs breaks requests it's not involved with at all.
Seems it's adding a self signed certificate somewhere and using that?
The error is: (node:22827) UnhandledPromiseRejectionWarning: RequestError: self signed certificate
Here's a super simple example that reliably reproduces the error on my machine
npm i got node-ssllabs

const got = require('got');
const ssllabs = require('node-ssllabs');

(() => {
    got('https://www.example.com')
        .then((response) => {
            console.log(response);
        })
})();

I've verified this, and it's the include of Proxy-Agent here https://github.com/keithws/node-ssllabs/blob/master/lib/ssllabs.js#L18 that add's the behaviour.
If I comment that out, everything works as expected

Please report which version of node-ssllabs you are using. The latest version, 2.1.0, released about 7 months ago, stopped using a global proxy setting and instead uses per request setting.
Assuming you are using the latest, then it might be that the "proxy-agent" library needs to be updated. If you can, try updating proxy-agent to to the latest release and see if that fixes your issue.

I'm on node-ssllabs 2.1.0 and that's installing the latest on the 3.X branch of proxy-agent. Tried updating to 4.X and getting the same issue.
Breaks:
const got = require('got');
const ssllabs = require('node-ssllabs');

got('https://www.example.com')
    .then((response) => {
        console.log(response);
    });

Works:
const got = require('got');
const ProxyAgent = require('proxy-agent');

got('https://www.example.com')
    .then((response) => {
        console.log(response);
    });

I have a similar issue :  UnhandledPromiseRejectionWarning: RequestError: connect ECONNREFUSED <IP_ADDRESS>:443
Not the same error message, but the same root issue : node-ssllabs
package.json:
{
	"name": "test-ssllabs",
	"version": "1.0.0",
	"description": "",
	"main": "index.js",
	"scripts": {
		"start": "node index.js"
	},
	"dependencies": {
		"got": "^11.8.0",
		"node-ssllabs": "^2.1.0",
		"proxy-agent": "^4.0.0"
	}
}

ìndex.js`:
//   FAIL
const got = require('got');
const ssllabs = require('node-ssllabs');

got('https://www.example.com').then((response) => {
	console.log(response);
});

//   WORKS
const got = require('got');
const ProxyAgent = require('proxy-agent');

got('https://www.example.com').then((response) => {
	console.log(response);
});

I don't understand what is so different between code above and https://github.com/keithws/node-ssllabs/blob/master/lib/ssllabs.js#L18 🤔
Can't find the way to fixes this and submit a PR

Even more strange for me...
I try to reproduce the error, without success
Works:
index.js:
const got = require('got');
const ssllabs = require('./node-ssllabs');

got('https://www.example.com').then((response) => {
	console.log(response);
});

node-ssllabs.js:
module.exports = require('./lib/ssllabs');

lib/ssllabs.js: https://github.com/keithws/node-ssllabs/blob/master/lib/ssllabs.js
Failed:
index.js
const got = require('got');
const ssllabs = require('node-ssllabs');

got('https://www.example.com').then((response) => {
	console.log(response);
});

Maybe something strange with require(...) and dependencies injection ? 🤔

Thank you @loic-moriame for testing this as well. I want to fix this, but I have not had much time and the root cause of the issue is not clear. I appreciate all the help trying to find the root cause.


ae_loss question

I check your ae_loss function in kp_utils.py and I find that the 200th line you have dist = dist - 1 / (num + 1e-4).  This means you subtract 1/n from each distance? why? I think this term have no effect on calculating the gradients of loss.

That's correct. This term has no effect on calculating the gradients. I just added it to make sure the AE loss is the same as the equation in the paper.

Thanks for your reply! This paper means the paper that proposed the AE loss or the latest version of your CornerNet paper?  In the CornerNet paper that I have, push loss is defined as:

I can't find the 1/n.

I was referring to the CornerNet paper.
If we do not subtract 1/n in line 200th, the equation would become L_{push} + 1/(n-1) after the summation. It is because the diagonal elements of dist are 1s instead of 0s. We subtract dist by 1/n then the 1s in the diagonal would be cancelled out in the summation.

well, I get it. Thank you for your excellent work and detailed explanation!

@heilaw directly subtract seems  work on all element.
does it need using a diag matrix? like dist = dist - (1 / (num + 1e-4))* torch.eye(dist.shape[1])?


Design a StreamRange type

(This issue is just to track some thoughts and a vague need for some abstraction.)
For RPCs that one-way stream their responses, we need a C++ type to wrap that and provide an iterable range-like interface. An example RPC is BigQueryRead::ReadRows.
An incomplete C++-ish pseudocode version of the class that we want might look like the following
template <typename T>
class StreamRange {
 public:
  class iterator {
   public:
    using value_type = T;
    using reference = value_type&;
    using pointer = value_type*;
    // ...
    reference operator*();
    pointer operator->();
  };
  iterator begin() const;
  iterator end() const;
};

Example usage
struct Foo { int a; };
StreamRange<Foo> r = ...;
for (auto& foo : r) {
  std::cout << foo.a;
}

Requirements

The StreamRange<T> would need to wrap the grpc::ClientReader<T> interface (docs) so that it could keep calling grpc::ClientReader<T>::Read().
StreamRange<T> would need to handle resuming connections that failed partway through the stream.

would likely need to hold onto the original "request" object
would likely need to hold onto the Connection class
would need to track progress on the stream so it knows where to resume. For example, if streaming rows back from a service, it may need to track the number of rows its already received so that it could resume at the next row
it would likely need some extension mechanism so that we could customize how the "resume" logic works

If the class needs another template parameter to encapsulate the "Resumer" that may be fine... or maybe a lambda? Or ???
Prior art
There are some classes in our Spanner code that implement all of this logic, but it's currently not bundled in a reusable class. But here are some interesting places to seek inspiration.

https://github.com/googleapis/google-cloud-cpp/blob/master/google/cloud/spanner/internal/partial_result_set_reader.h
https://github.com/googleapis/google-cloud-cpp/blob/master/google/cloud/spanner/internal/partial_result_set_resume.h
https://github.com/googleapis/google-cloud-cpp/blob/master/google/cloud/internal/pagination_range.h
https://github.com/googleapis/google-cloud-cpp/blob/master/google/cloud/spanner/row.h#L244

Here's the related RowStream range class from Spanner.

I have a WIP sketch of what a StreamRange<T> might look like.
https://github.com/googleapis/google-cloud-cpp/compare/master...devjgm:stream-range

StreamRange<T> exists now, but we still need the resumer. Split that out into a separate issue: https://github.com/googleapis/google-cloud-cpp/issues/5727

StreamRange<T> exists now, but we still need the resumer. Split that out into a separate issue: https://github.com/googleapis/google-cloud-cpp/issues/5727


Numba 0.55.1 runtime error with numpy 1.21.6

Reporting a bug

[ x] I have tried using the latest released version of Numba (most recent is
visible in the change log (https://github.com/numba/numba/blob/main/CHANGE_LOG).
[x ] I have included a self contained code sample to reproduce the problem.
i.e. it's possible to run as 'python bug.py'.

When numba 0.55.1 is installed with numpy 1.21.6 we get an runtime error:
RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
Numba 0.55.0 with 1.21.6 does not have the runtime error.
Python 3.10.2
compiled against LLVM@11
Running in poetry shell on M1

Hi. Can you provide me some more details on your environment?
MacOS seems to come with Python 3.9.7. How did you install Python 3.10.2?
Are you using poetry shell to install Numba and NumPy? How was LLVM installed?

Python 3.10.2 is installed via brew
Poetry to install Numba and NumPy.
LLVM was installed also with brew.
LLVM_CONFIG=/opt/homebrew/opt/llvm@11/bin/llvm-config pip install llvmlite

Hmm, I'm not able to reproduce this bug. Here is my pyproject.toml:
[tool.poetry]
name = "bug7995"
version = "0.1.0"
description = ""
authors = ["Andre Masella<EMAIL_ADDRESS>
[tool.poetry.dependencies]
python = "3.10.2"
numpy="1.21.6"
numba="0.55.1"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

I didn't install llvmlite directly though. Did you do that inside the Poetry environment or outside?
I suspect there is a copy outside the Poetry environment that is conflicting. Try running python3 -m site inside the Poetry environment to see where it is looking.

Are you running on M1 arm64? llvmlite won't install via poetry/pip. Could you share your llvmlite install version? Thanks

Brew switched me onto a x86-64 Python for some reason. I forced it back to ARM64 and then had to compile llvmlite as you instructed, but I still do not receive any errors when using Numba.
Try running python3 -m site inside the Poetry environment to see where it is looking.
My environment looks like this:
sys.path = [
    '/Users/amasella/bug7995',
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>    '/Users/amasella/Library/Caches/pypoetry/virtualenvs/bug7995-IA9nZqke-py3.10/lib/python3.10/site-packages',
]
USER_BASE: '/Users/amasella/Library/Python/3.10' (exists)
USER_SITE: '/Users/amasella/Library/Python/3.10/lib/python/site-packages' (doesn't exist)
ENABLE_USER_SITE: False

Closing as the issue is now stale and no further information has been received. @Zaba107 If you are still experiencing an issue, please feel free to re-open this issue.


Improve client cache metrics description

What changes are proposed in this pull request?
Improve the name and description of the client cache related metrics
Why are the changes needed?
Does this PR introduce any user facing changes?
metrics name and description of client cache related metrics will be updated

Codecov Report

Merging #13653 (0b65f5e) into master (3d6a517) will decrease coverage by 12.64%.
The diff coverage is 66.66%.

@@              Coverage Diff              @@
##             master   #13653       +/-   ##
=============================================
- Coverage     43.57%   30.93%   -12.65%
+ Complexity     9020     5811     -3209
=============================================
  Files          1381     1381
  Lines         80155    80155
  Branches       9742     9742
=============================================
- Hits          34926    24794    -10132
- Misses        42301    53273    +10972
+ Partials       2928     2088      -840

Impacted Files
Coverage Δ

...main/java/alluxio/client/file/cache/PageStore.java
70.96% <0.00%> (ø)

...a/alluxio/client/file/cache/LocalCacheManager.java
88.46% <100.00%> (ø)

...ommon/src/main/java/alluxio/metrics/MetricKey.java
97.19% <100.00%> (-0.44%)
:arrow_down:

...mon/src/main/java/alluxio/shell/CommandReturn.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...mon/src/main/java/alluxio/util/ExceptionUtils.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...n/src/main/java/alluxio/wire/AlluxioProxyInfo.java
0.00% <0.00%> (-100.00%)
:arrow_down:

.../src/main/java/alluxio/wire/AlluxioMasterInfo.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...src/main/java/alluxio/job/meta/JobIdGenerator.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...n/src/main/java/alluxio/stress/BaseParameters.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...main/java/alluxio/underfs/options/ListOptions.java
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 399 more

Continue to review full report at Codecov.

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

alluxio-bot, merge this please


chore(pubspec) : Up flutter_lints to 3.0.1

New linting rules applied :
https://dart.dev/tools/linter-rules/use_super_parameters
https://dart.dev/tools/linter-rules/unnecessary_to_list_in_spreads

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

Comparison is base (16f2b75) 56.55% compared to head (ad6f39a) 56.57%.

Files
Patch %
Lines

lib/auth/providers/openid_provider.dart
0.00%
2 Missing :warning:

lib/amap/providers/scroll_controller_provider.dart
0.00%
1 Missing :warning:

lib/loan/providers/loaner_id_provider.dart
0.00%
1 Missing :warning:

lib/vote/providers/section_id_provider.dart
0.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #280      +/-   ##
==========================================
+ Coverage   56.55%   56.57%   +0.01%
==========================================
  Files         160      160
  Lines        3492     3491       -1
==========================================
  Hits         1975     1975
+ Misses       1517     1516       -1

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


What is the correct process for removing a service alerting?

I have a server that runs nginx service. I want to remove nginx from the server, but the kapacitor still alert. I tried to delete series from influxdb, but it didn't work. What is the correct process for removing a service alerting?

@ws816 Can you share your TICKscript?

I use template to define a task, the template as follow:
var measurement string
var where = lambda: TRUE

var data = stream
  | from()
    .measurement(measurement)
    .where(where)
    .groupBy('host')

var alert = data
  | deadman(0.0, 30s)
    .id('{{ .TaskName }}|{{ index .Tags "host" }}')

alert
  .log('/tmp/deadman.log')

The vars as follow:
{
  "measurement": {"type" : "string", "value" : "procstat" },
  "where": {"type": "lambda", "value": "\"process_name\" == 'nginx'"}
}

What is the correct process for removing a service alerting? remove series from influxdb?

@ws816 Currently the only way to do this is to disable/enable the task. This is because the deadman node doesn't forget any services. There is an open PR https://github.com/influxdata/kapacitor/pull/610 to fix this but it has some challenges and we are working on a fix.

@nathanielc Is there another way to monitor process without using deadman? I think the process monitoring is basic requirement.


Initial draft on PUBSUB API and tests

Issue #, if available:
https://github.com/aws/glide-for-redis/issues/218
Description of changes:
This is not compilable draft on PUBSUB APIs (which we already had couple of iteration on with the team) and proposed tests that formalize and validate the semantics of the functionality
The main focus should be put on calculate_expected_messages() method that calculates the expected messages propagation for a given configuration
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

we also need tests for resubscription after disconnects / partial disconnects / failover.

missing test: client using RESP2 receives informative error when trying to subscribe, no subscription is created, and connection remains valid.

@ikolomi is this PR still relevant?

#1643


Expand tile-join functionality

As talked about in #457, this pull request is to expand the capabilities of tile-join when filtering features in layers.
I want to get some eyes on the changes and get some feedback. There are still a few things I want to clean up and enhance, but I believe the basic functionality is essentially done.
To minimize the amount of work that had to be done, and to ensure that we handle mapbox style filters properly, I pulled in some more code from mapbox gl native from revision f2c9f2b.
Summary of changes:

tile-join will accept a -j parameter that is a path to a json file. The file's contents could look like:

{
  "layers": [
    {
      "id": "in",
      "filter": [
        "==",
        "scalerank",
        3
      ]
    }
  ]
}

we parse that file as part of start up for tile-join and construct a std::map b/w a layer name and a mbgl::style::Filter object.
whenever we encounter a layer that has a filter in our map, we use the associated mbgl::style::Filter object to determine which features should remain. I put this step as late in the process as I thought appropriate.

Let me know what you think.

Thanks for the contribution!
I am kind of overwhelmed by the amount of code that it adds to do the filtering though. I think it may be better to do the filtering within the facilities that Tippecanoe already uses instead of pulling in another JSON parser and so much code from Mapbox GL.
So I've tried another implementation of a slightly simplified version of your filter syntax in https://github.com/mapbox/tippecanoe/pull/462. It needs some more testing but seems to work. Do you think that version will do what you are looking for?

No problem!
I was overwhelmed, as well. My intent was to not rewrite any of the existing logic for parsing and evaluating filters, but it turned out to be a ton of code.
This seems fine though, and as long as the filter syntax is the same (which it seems to be), then this should work for what I need.
I'll take a closer look and try it out, too, if that would be helpful.

On Aug 28, 2017, at 4:52 PM, Eric Fischer<EMAIL_ADDRESS>wrote:
Thanks for the contribution!
I am kind of overwhelmed by the amount of code that it adds to do the filtering though. I think it may be better to do the filtering within the facilities that Tippecanoe already uses instead of pulling in another JSON parser and so much code from Mapbox GL.
So I've tried another implementation of a slightly simplified version of your filter syntax in #462. It needs some more testing but seems to work. Do you think that version will do what you are looking for?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Yes, please give it a try and let me know if you see any problems!

Hey @ericfischer,
I tested this out on a large dataset with a few filters and it seems to be working just fine.

Great! I am going to close this PR, then, and merge the other branch after adding a few more tests.


[$250]  iOS - Chat - The name stops being bold until a new message is read

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to App and login with any chat device A)
Disable your internet connection on the device A
On another device (can be any), send a message to the account logged in device A

Expected Result:
The name should be bold until the message is read
Actual Result:
The name stops being bold until a new message is read
Workaround:
Unknown
Platform:

Where is this issue occurring?

Web
iOS
Android
Desktop App
Mobile Web

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers): any
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/93399543/186512497-d410b236-e12f-4302-8be5-e84ac070ee59.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub

Setting as external!

https://www.upwork.com/jobs/~0140b90c6c44a36984

myself and @sketchydroide have made some changes to report page stuff recently and more changes are coming. Once they are all done if this is still happening we can accept proposals. But I'd recommend making this Internal until then as it's not clear if this is front end or backend issue.

Reported a similar/same issue this morn, dropped a comment in there and tagged you Marc and Andre (Thanks @rushatgabhane for linking back to this one)
https://expensify.slack.com/archives/C01GTK53T8Q/p1661808976682059?thread_ts=1661807702.326749&cid=C01GTK53T8Q

Changed to Internal for now as Marc suggested

Now that it is Internal, I've unassigned myself from the issue

I'm going to return this to the pool to give it more visibility because I'm going on vacation.

I won't look for another CME as this is internal for now.

Droppin' a HOLD on this til https://github.com/Expensify/Expensify/issues/227410 hits production. Assigned to myself to keep 👀 on

Issue not reproducible during KI retests. (First week)

@kbecciv @mvtglobally can you try to reproduce? I think this is fixed with https://github.com/Expensify/Expensify/issues/227410
If it's not reproducible, please close.

@mallenexpensify We will check and confirm in the morning

@mallenexpensify Issue is not repro
https://user-images.githubusercontent.com/43995119/190547408-d7121cc8-f9a7-4032-a03c-8d3767c3d7aa.mp4

Sweet, thanks @mvtglobally , closing


Updated Training Module Status

Commit e3cc906 is the important one. I updated the status for each training module as requested.
Commit bb5e56e was an attempt to remove (hide?) 45bca5e, which is the commit from the last PR, and sync my fork.
I will discuss with Dr. Carver on best practice in this case.

https://output.circle-artifacts.com/output/job/6d064abe-2fef-4b13-a399-76464da783f7/artifacts/0/intersect-training.github.io/curriculum/index.html

The changes look good to me.


C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts>handwrite C:\Users\admin\Desktop\paperscan.jpg C:\Users\admin\Desktop\
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts\handwrite.exe\__main__.py", line 7, in <module>
  File "C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\handwrite\cli.py", line 56, in main
    converters(
  File "C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\handwrite\cli.py", line 34, in converters
    run(sheet, output_directory, directory, config, metadata)
  File "C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\handwrite\cli.py", line 12, in run
    SHEETtoPNG().convert(sheet, characters_dir, config)
  File "C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\handwrite\sheettopng.py", line 44, in convert
    characters = self.detect_characters(
                 ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\handwrite\sheettopng.py", line 116, in detect_characters
    x, y, w, h = cv2.boundingRect(contours[i])
                                  ~~~~~~~~^^^
IndexError: list index out of range

C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts>

Followed instructions exactly
Two friends who are smarter than me in this field also don't know how to fix it

Not sure, this is at the same res as the original sample. The original scan was much higher res. Could it be the slight problem at the bottom? I'll get a better sample tomorrow

Got a better scan with no cut-off and no fixing needed. Still getting this
C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts>handwrite C:\Users\admin\Desktop\papiera.jpg C:\Users\admin\Desktop
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts\handwrite.exe\__main__.py", line 7, in <module>
  File "C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\handwrite\cli.py", line 56, in main
    converters(
  File "C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\handwrite\cli.py", line 34, in converters
    run(sheet, output_directory, directory, config, metadata)
  File "C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\handwrite\cli.py", line 14, in run
    SVGtoTTF().convert(characters_dir, output_directory, config, metadata)
  File "C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\handwrite\svgtottf.py", line 28, in convert
    subprocess.run(
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1776.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1776.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1776.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 1538, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified

C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts>

Hey, so the previous issue was because of the boxes only. This is one is because you don't have fontforge installed. Refer: https://www.builtree.org/handwrite/installation/

I have it!

Unless  I'm supposed to install it some other way. It just says install. It's on my D drive like anything else

fontforge cli should be accessible. I'vent worked on this project actively recently so I don't remember if there's anything special we need to do for that. (I think you just need to add the /bin to path)
https://fontforge.org/docs/techref/cliargs.html

Added Fontforge bin to path and it worked. Thanks for your willingness to answer and walk me through it


Improves display of unknown tasks

Rather than showing UNKNOWN as the family for an unknown task id in the
visualiser graph, we can usually successfully infer the family from the task id.
This is far preferable to just showing UNKNOWN, as it provides useful
information while looking at dependency graphs. Including the full task id in
the params dict allows for a little more information to be gleaned.
before:

after:

This seems not to be working for me in production now, looking into it...

not sure why we get unknown tasks in the first place. is it only during scheduling?

It's a pretty common pattern for me. I schedule job A, which depends on job B. Both jobs get scheduled and complete, but by cron job keeps scheduling A. After the initial worker dies, job B falls out of the scheduler. When we continue to schedule job A as DONE, we stop updating its dependencies so the scheduler remembers that it depends on the now unknown B.

Looks nice! But are we sure we want to start parsing Task Ids again? Didn't we introduce the new id scheme in a way so that nobody would ever be tempted to parse it? @erikbern @ulzha @stephenpascoe

I think parsing the task_family is pretty safe.  Since it's a Python identifier there are no parsing gotcha's and it's clearly the first part of the id.

i would rather fix the underlying issue that tasks disappear
but i have like no time so let's just merge this


Start the Spring Boot project

Start the Spring Boot project:

build automation tool: Gradle, Kotlin
coding language: Java/Kotlin?
Java version: 17
Spring Boot version: 3.1.2
project name: weeds-plantcare-service
group: dev.enginecode.weeds
artifact ID: weeds-pc-srvc

Changes/TBD:

Coding language to choose in the further step,
Spring Boot newer version chosen (3.1.3)
artifact ID - name chosen: plantcare-service:

"weeds" not repeated
more clear name

Sources:
Guide to naming conventions on groupId, artifactId, and version


possible to install the same plug in twice, which breaks gui

it's possible to re-install a plug in that you already have.   if you do so, it fails cause it already exists, but the tridion config has already been updated causing the cms to break.

Adding the following to try to catch all cases where installed symbols may be left behind:
1.) If folder with plugin name exists, consider already installed.
2.) If installing and config elements exist from the plugin, remove them then add all config from install.
3.) On install and IIS fails to recycle, don't consider it a failed install.


Specify the lines to insert using a string with EOL character to delimit the lines.

Description
Allows input lines to be specified as a string.  The original design required insert lines to be specified as an array of lines. Issue #140 made it pretty clear that using an array would be completely counter intuitive.
Issues Resolved
#140 use issues.
Contribution Check List

[ ] All tests pass.
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable

This change is

          1 Error

:no_entry_sign:
Please include a CHANGELOG entry.

  Generated by :no_entry_sign: Danger


json2typescript v.0.9.5 produces compile errors when "strict": true compiler option is used

When a consuming project uses the tsc compiler option "strict": true, one observes a number of compiler errors originating in json2typescript:

The current version runs well with strict mode, so I'm wondering whether this is due to your setup or due to the old commit. Do you have a minimal example to reproduce this?

As mentioned in #23 I think it is fixed with the current version (1.0.3). Please let me know if this is not the case.

@andreas-aeschlimann Same as #23. Has nothing to do with strict mode... TypeScript always produces good JS. This is a compiler issue.


nixos/nginx: use new variant of http2 option for angie package

Description of changes
Allow use new variant of http2 option for angie package.
Fix this warning:
nginx[287552]: angie: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/nginx.conf:26
nginx[287552]: angie: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/nginx.conf:27

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[x] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@ofborg build nixosTests.nginx-http3.nginxQuic nixosTests.nginx-http3.angieQuic


General questions

Hello friend, as I mentioned, I have several questions:

what is the file to compile and send? because when i run the main.py would that be the ramsonware run?

How can you increase the time or decrease the waiting time

files can be obfuscated

you cannot make a payment verification without entering the database and removing the key, if not everything is done automatically?

5.can you make a payload or is it the same main.py that can be compiled?
and thanks as I always say for this great project

Actually I was thinking to make the generator for this project which will
ask the database creds and then compile it to make a standalone exe
But then, i think that in that way this project can be misused by the
script kiddies so i haven't updated the project with the generator.
But you can compile the main.py, it will import all the stages
automatically
And if you have seen my other projects then the generator has a built in
obfuscator which obfuscate by adding useless comments in the code.
And also encrypts the code with base64 hash which is decrypted on runtime
And the projects dialog box is showed at the end when the files are
encrypted and the key is uploaded on the server
These are the processes which are taken by the main.py

Stage 1
Stage 2
Stage 3
After stage 1 (changes the wallpaper)
After stage 2  (popups the virus window)

So the delay time to show the virus window depends on how long it would
take to encrypt the file.
On Sun, 5 Apr, 2020, 4:12 AM Mrcosta20<EMAIL_ADDRESS>wrote:

Hello friend, as I mentioned, I have several questions:

what is the file to compile and send? because when i run the main.py
would that be the ramsonware run?
2.
How can you increase the time or decrease the waiting time
3.
files can be obfuscated
4.
you cannot make a payment verification without entering the database
and removing the key, if not everything is done automatically?
5.can you make a payload or is it the same main.py that can be compiled?
and thanks as I always say for this great project
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Technowlogy-Pushpender/nekros/issues/3, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ANORYIS652GSQM77ZFG6PELRK6ZUTANCNFSM4L7KXTJA
.

good night friend because I already tried to compile the main.py but when I compile it does nothing it does not work, of course I use a compiler from python to .exe but I would like what you say about making a generator but hey it's in you that you can update the project. I really plan to use it on my computer in case of an emergency if it were to get lost, I clarify change the ransom of that from btc to my email in case I lost my computer, contact me, the other projects you have as a very good keylogger With that if I did not have any problems, I installed it very well, I would also like you to update this project, of course, if you want.
I congratulate you for letting us know about the vulnerabilities in ransomware and for your knowledge of python.
I would like to learn one more day about python as well as you know it

good night friend, some help to compile the main and try pyinstaller but it does not compile even binary but an entire folder I do not know how to generate the MAIN.PY with everything compiled and does not depend on the files

Where can I add extension files thank you


Validate we are timezone aware

With the current epoch code, we must validate that both inputs (timetable.dat and request) are timezone aware, and they don't have an offset of two hours.

Adressed in branch tdata4


[mtl] don't panic on missing window

Fixes use of libportability.dylib with vulkaninfo.
PR checklist:

[ ] make succeeds (on *nix)
[ ] make reftests succeeds
[ ] tested examples with the following backends:
[ ] rustfmt run on changed code

This is trivial.
bors r+


How to setup many applications using many HTTPs endpoints for HttpSysCommunicationListener

Hi Team,
Can I please request documentation and a supporting sample of how to setup many applications using many HTTPs endpoints for HttpSysCommunicationListener (and i guess KestrelCommunicationListener) where the following scenarios are covered.

n apps using common certificate
n apps using n certificates

Included in this document I would like to detail the advised strategy to paramerterize endpoints for staging and production environments given they would use different certs in each environment, such that my CI/CD process and source branches play nicely.
I am currently using .bat files to manually configure urlacls etc and I am hoping you can tell me im doing it wrong here is the better way... looking forward to SF mesh so i dont care anymore but until then :)
Thanks for your time, keep up the good work team !!

@vturecek

http.sys supports SNI and looks like Kestrel does too as of asp.net core 2.1 https://github.com/aspnet/KestrelHttpServer/issues/2357. This is going to be the easiest path as you'll only need to include one certificate, which can be set up fairly easily in ApplicationManifest.xml: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-service-manifest-resources#example-specifying-an-https-endpoint-for-your-service
For Kestrel though you'll need to use unique ports for each application as it doesn't support sharing.

Trying to replace the .UseHttpSys with .UseWebListener neither seem to have the same SNI config available? the .ListenAnyIP() calls aren't there or I am missing Libraries?


[App Service] az webapp up: Fix  #18652: search for *.csproj in child directories

Description

Fixes https://github.com/Azure/azure-cli/issues/18652 by searching for the *.csproj file in the child directories of the current directory.
Testing Guide

azdev test --live test_webapp_up_nested_dotnet_project_e2e
History Notes

This checklist is used to make sure that common guidelines for a pull request are followed.

[X] The PR title and description has followed the guideline in Submitting Pull Requests.

[X] I adhere to the Command Guidelines.

[X] I adhere to the Error Handling Guidelines.

App Service


Right click - copy URL

This is a good way of compiling social links (LinkedIn to come?)
But there's one thing missing.
The function "Copy URL" does not work in YAML. It would be useful occasionally to be able to copy the social link

LinkedIn
You can add a new setting for LinkedIn by pressing the button at the bottom right of the plugin settings and then entering and saving the following

Key
Val

Name
LinkedIn

Color
#2767be

URL Template
https://www.linkedin.com/in/{{NAME}}/

Label Template
@{{NAME}}

"Copy URL"
I hadn't thought about the context menu, but you have a point. I'll implement it next time.
This post was translated from Japanese using DeepL

Brilliant!


Missing Dataclasses

It would be very nice to have some Dataclasses to improve consistency through the pipeline:

LambdaResponse
to deal with lambda invocation reponse straight-forward without calling ready() in body and having some convenience like success property and stuff like that.
StatusResponse
To handle hathor-core api calling, ensure contract and improve documentation

This comment I did in a PR may also be hepful: https://github.com/HathorNetwork/hathor-explorer-service/pull/3#discussion_r643330015


View campaign on web functionality

Campaigns may optionally include actions beyond standard Signup + Reportback that can currently only be completed on web (after intiial Signup).
If a Campaign contains a new property, something like view_on_web copy, and the user is viewing a campaign they have signed up for, display the copy (which would inform user why they should click through to view on web) as well as a clickable link to open the Campaign page in a web browser. The link provided will contain unique parameters to keep our authenticated user logged in when viewing the Campaign on web.
General approach per @mshmsh5000 in Slack today:

Mobile app asks for the magic URL from Northstar
Northstar passes this request to Phoenix
Phoenix generates the token(s) and returns them via Northstar
User clicks on link in mobile app
User is forwarded along a set of URLs that log in without having to enter credentials, and lands on campaign page

Refs https://github.com/DoSomething/phoenix/issues/6641

@aaronschachter with DoSomething/phoenix#6641 closed out are you still blocked on this?
@angaither @aaronschachter is there anything else that needs to to be done on this to allow the organ donation campaign to be on the mobile app?
We'll know more on Tuesday if the campaign is still on or not in its current iteration, but just wanted to make sure everything would be set to get it on the mobile app if we do stick with the Aug 1st launch date.

@mikefantini -- Commented in https://github.com/DoSomething/phoenix/issues/6641#issuecomment-231409791 -- not seeing signs of Magic link in prod currently.
App development is still blocked without having design for when we should display the magic link, and the relevant copy -- @lkpttn

@angaither @DFurnes Just double checking the backend work here. If a magic link copy property exists on a campaign with ID 123:

App needs to POST to the Northstar v1/auth/phoenix endpoint
Upon a response, app should render a button to open browser with the returned url property, appending destination=node/123 to the query string, e.g.

https://www.dosomething.org/user/magic/12345/1465404849/jPA1_ohenxutorZQ6b8OoAi4VsbJapRs-M2FJwJrhPY?destination=node/123

@aaronschachter Yep, that's the idea. It's ?redirect= for the query-string on the magic link though.

Hey @lkpttn wanted to check in on this one for Voter Registration campaign. It has a Sept 1st launch, but we're aiming to test before that date though. Wanted to make sure there's nothing you need from me on this.
Let me know!

@lkpttn This issue is blocked by design, and we'll need to know which campaign to test the magic_link_copy property in staging, thor, and production.
cc @NearChaos

From @lkpttn via Slack:

Oops, forgot this is blocked still because we need test campaigns for production. We can use any published campaign and set its magic_link_copy so we can test our iOS and Fabric builds.
cc @lkpttn @ngjo Can you please comment with the campaign(s) we can test on prod with?

I've added generic copy to Bumble Bands (id 2070) for easy testing (first campaign in Animals). We'll want to remove before we publish the new releases.


Query page's comment is not getting submitted

Its coming empty

Resolved and tested locally
Will upload in today's next build


Uppercases the S in TypeScript

Looking good folks.
This uppercases the S across the board (only if there was a capital "T") so it shouldn't break anything I think 👍

Thanks! @orta - do you mind doing a little bit more work here on that branch? We use "change files" to keep track of what sort of semver to bump to. Can you run "yarn change"? I know your change is only modifying example files, so you could just answer "None" for the change type... would be much appreciated (passes the build)

Sure, I think this should do it


execute janitor clean when a package is uninstalled

Description
With the purpose of destroy volumes, unreserve resources and clean ZK paths, this feature adds a new flag --force to the uninstall command. The logic is the same that the janitor script: https://docs.mesosphere.com/1.7/usage/managing-services/uninstall/#framework-cleaner

Can one of the admins verify this patch?

Would it make sense for this to be a separate cleanup command rather than a feature on the uninstall command? Then it can be performed following any previous uninstall.

Hey, thanks for the PR! This has been a pain point for a while.
I think it'd make more sense for the cleanup logic to instead be implemented as part of the per-service CLI modules, i.e. the code that's invoked when dcos cassandra ... or dcos kafka ... commands are run by the user.
The reason for doing it in the per-service CLI modules is because the main DC/OS CLI can't really assume where individual services have placed their data, ie the role/principal/zk node being deleted here. The assumptions in this PR around x-role/x-principal/dcos-service-x is specific to a handful of services. But those services all use the same common code in dcos-commons for handling these resources. So the cleanup operation could be put in dcos-commons' common CLI code.
The logic could go like this (using cassandra as an example, but this would apply to kafka/hdfs as well):

User calls dcos cassandra uninstall [service-name] (eg dcos cassandra uninstall my-cassandra)
Command invokes dcos package uninstall --app-id=<service-name> --app cassandra (--app ensures that the CLI module isn't uninstalled while it's still running)
Command invokes Janitor logic (this part is some work -- it'd involve porting the janitor script from Python to Go)
Assuming the above succeeds, command prints something like: Uninstall successful! Run "dcos package uninstall --cli cassandra" to remove this command

The per-service CLI modules use this code as a common library (this is where the main 'uninstall' operation could be implemented): https://github.com/mesosphere/dcos-commons/tree/master/cli
And then each CLI module using dcos-commons could be updated to support that common operation: https://github.com/mesosphere/dcos-cassandra-service/blob/master/cli/dcos-cassandra/main.go and https://github.com/mesosphere/dcos-kafka-service/blob/master/cli/dcos-kafka/main.go

Hi @nickbp !
First of all: thanks for your detailed feedback.
I would like to ask some things about your last comment:

If we move Janitor's logic to dcos-commons and the final uninstall command goes here, a framework that don't extends from dcos-commons will not execute this uninstall proccess, right?. Then it will not work in all cases.
Could it have sense to follow these steps?:

If the framework to uninstall has been implemented with dcos-commons, then the uninstall proccess is done following the way that you explained. (executing dcos uninstall  that finally runs dcos-commons uninstall with the janitor logic). This is the most clean case.
For other cases  we can use the --force flag that assumes that principal, role and zk path are the same that the name of the framework. (executing dcos uninstall  --force). If for example zk path and role have changed we can pass more parameters (such as dcos uninstall  --force --zk-path  --role ). In this case we change the zk path and the role but principal is the same that the framework name.

Let me know what to you think or if I am saying anything wrong or if I forgot something more.
Thanks in advance!

Hi @anistal,
Excuse the delay response. We are interested in a solution to uninstall that is available to both the CLI and the UI or any script that a DC/OS user may write to interact with the package manager (Cosmos) or service manager (Marathon). Currently DC/OS doesn't have a mechanism for doing this. For DC/OS Packages, we would like for the package maintainer to include a task that would get executed when the Marathon AppDefinition gets removed or deleted. To implement this would need support from Marathon and Jobs (metronome).
We have this feature in our roadmap and will be addressing it in up coming releases.
I am going to close this PR for now.


Make grid column count a variable

The grid, while it's column count, should be 12 by default, it's easy to make it support any number, we should enable that in-case someone say wants a 16 col grid.
I would add the variable definition for how many columns, within the theme-variables.css file.
The file to update is cs-grid.css (there's code generating the column css, we need to change it to use the variable.

resolved in #78 by Dana Holdt :)


Demo Link on http://jsondoc.org/ gives Javascript error dialog

Demo Link on http://jsondoc.org/ gives Javascript error dialog

It seems that OpenShift had some problems. I restarted the application and now it should work fine. Thank you.


AI: Trigger pre-prod sync after any changes to snapshot/timestamp

Description
This would avoid someone having to manually trigger this workflow, in case snapshot/timestamp was manually triggered
Version

This is already done; I just noticed:
https://github.com/sigstore/root-signing/blob/6f54c16f2cd0ea14e6a71a4dc2856f3f5b73dcf3/.github/workflows/sync.yml#L25
and confirmed it triggered here after a change to snapshot.yml
https://github.com/sigstore/root-signing/actions/runs/3176036178
@jku


Showing macOS Monterey instead of Ubuntu

Description
If you're suggesting a new feature then just a description will suffice.

[ ] Does this issue still occur in the master branch? (Required if issue)
No

Neofetch version
7.1.0/latest
Screenshot

Config file
config.conf.txt
Verbose log
https://hastebin.com/raw/afajugohap

Run neofetch -vv 2> neofetchlog
Upload the contents of neofetchlog to pastebin, gist or equivalent.

extremely hilarious tho lol

Output of this command?: lsb_release -sd

tf

how do i fix this?

No idea. This is an Ubuntu issue of some kind.
Closing.

kk
i'll see myself


First release

I'm thinking about releasing qinst on pypi, what do you think?
We will probably have to wait until #17 is merged, but then we may be ready

It would be great! Currently, we have developed 7 device interfaces:

RF switch Radiall R591722600
Attenuator Kratos 3494-64
Isolated voltage source Stanford Research Systems SIM928
Keithley Model 6514 System Electrometer
R&S®SMA100B RF and microwave signal generator
Handheld Microwave Analyzer FieldFox N9916A
Triton controller

Actually, #7 lacks the Keithley 2231A DC source, if we don't have any urgencies we could complete this last device. Or we can release this device later, as you prefer. But apart from that, I think we are ready!


Support Internal Package Archives

What would you like to be added?
In on-premise environments, Ubuntu packages can be fetched from internal archives instead of public Ubuntu archives. Robot or Environment images should search packages in internal repositories in this case. A configmap can be configured to be placed under /etc/apt directory. Then containers can mount the configmap to use internal repositories.
Why is this needed?
It's needed to integrate internal package repositories to images.

Can be enabled using additional configurations by mounting source files under /etc/apt, keys & certificates. Closed.