Client error: GET https://graph.microsoft.com/v1.0/me resulted in a 401 Unauthorized response - InvalidAuthenticationToken - Access token validation failure

Hi all,
Since few days I try to use the token received with Oauth2-Client with MSGraph but till now I always get the same issue. 401 unauthorized.
I'm able to get the token and query azure AD to get user details.
but when I give the token to MSGraph I always get 401 Unauthorized :-/
Any idea ?
// Set up a new Oauth2 client that will be talking to Azure
$provider = new TheNetworg\OAuth2\Client\Provider\Azure([
'clientId'                => CLIENT_ID,
'clientSecret'            => CLIENT_SECRET,
'redirectUri'             => REDIRECT_URI,
]);
if (!isset($_GET['code'])) {
// If we don't have an authorization code then get one
$authUrl = $provider->getAuthorizationUrl();
$_SESSION['oauth2state'] = $provider->getState();
header('Location: '.$authUrl);
exit;

// Check given state against previously stored one to mitigate CSRF attack
} elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) {
unset($_SESSION['oauth2state']);
exit('Invalid state');

} else {
// Try to get an access token (using the authorization code grant)
$token = $provider->getAccessToken('authorization_code', [
    'code' => $_GET['code'],
    'resource' => 'https://graph.microsoft.com',
    'urlAPI' => 'https://graph.microsoft.com/v1.0/',
]);
echo '
Token: '.$token.'!
';
// Use this to interact with an API on the users behalf
//echo $token->getToken();

// Optional: Now you have a token you can look up a users profile data
try {

    // We got an access token, let's now get the user's details
    $me = $provider->get("me", $token);

    // Use these details to create a new profile
    printf('
Hello %s!', $me['displayName']);

    $resourceOwner = $provider->getResourceOwner($token);
    echo '
Tenant: '.$resourceOwner->getTenantId().'!
';

    $graph = new Graph();
    $graph
  ->setBaseUrl("https://graph.microsoft.com/")
  ->setApiVersion("v1.0")
  ->setAccessToken($token);

    $user = $graph->createRequest("get", "/me")
		    ->addHeaders(array("Content-Type" => "application/json"))
		    ->setReturnType(Model\User::class)
		    ->setTimeout("1000")
		    ->execute();

} catch (Exception $e) {

    //Failed to get user details
    echo 'Caught exception: ',  $e->getMessage(), "\n";
    exit('
Oh dear...');
}

}

Hey, what is the message that is accompanying the 401? Can you maybe dump the error message and post it here.

From: Sam-digitalife<EMAIL_ADDRESS>Sent: Friday, June 28, 2019 3:50:30 PM
To: TheNetworg/oauth2-azure
Cc: Subscribed
Subject: [TheNetworg/oauth2-azure] Client error: GET https://graph.microsoft.com/v1.0/me resulted in a 401 Unauthorized response - InvalidAuthenticationToken - Access token validation failure (#87)
Hi all,
Since few days I try to use the token received with Oauth2-Client with MSGraph but till now I always get the same issue. 401 unauthorized.
I'm able to get the token and query azure AD to get user details.
but when I give the token to MSGraph I always get 401 Unauthorized :-/
Any idea ?
// Set up a new Oauth2 client that will be talking to Azure
$provider = new TheNetworg\OAuth2\Client\Provider\Azure([
'clientId' => CLIENT_ID,
'clientSecret' => CLIENT_SECRET,
'redirectUri' => REDIRECT_URI,
]);
if (!isset($_GET['code'])) {
// If we don't have an authorization code then get one
$authUrl = $provider->getAuthorizationUrl();
$_SESSION['oauth2state'] = $provider->getState();
header('Location: '.$authUrl);
exit;
// Check given state against previously stored one to mitigate CSRF attack
} elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) {
unset($_SESSION['oauth2state']);
exit('Invalid state');
} else {
// Try to get an access token (using the authorization code grant)
$token = $provider->getAccessToken('authorization_code', [
'code' => $_GET['code'],
'resource' => 'https://graph.microsoft.com',
'urlAPI' => 'https://graph.microsoft.com/v1.0/',
]);
echo 'Token: '.$token.'!';
// Use this to interact with an API on the users behalf
//echo $token->getToken();
// Optional: Now you have a token you can look up a users profile data
try {
// We got an access token, let's now get the user's details
$me = $provider->get("me", $token);

// Use these details to create a new profile
printf('
Hello %s!', $me['displayName']);

$resourceOwner = $provider->getResourceOwner($token);
echo '
Tenant: '.$resourceOwner->getTenantId().'!
';

$graph = new Graph();
$graph

->setBaseUrl("https://graph.microsoft.com/")
->setApiVersion("v1.0")
->setAccessToken($token);
$user = $graph->createRequest("get", "/me")
                ->addHeaders(array("Content-Type" => "application/json"))
                ->setReturnType(Model\User::class)
                ->setTimeout("1000")
                ->execute();

} catch (Exception $e) {
//Failed to get user details
echo 'Caught exception: ',  $e->getMessage(), "\n";
exit('
Oh dear...');

}
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FTheNetworg%2Foauth2-azure%2Fissues%2F87%3Femail_source%3Dnotifications%26email_token%3DAB7TT6OIT4V7HD2E56BRJSLP4YJKNA5CNFSM4H4FRPO2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G4KH36Q&data=02|01|jan.hajek%40thenetw.org|100642b5679d4201eae408d6fbcf9633|67266d438de7494d9ed83d1bd3b3a764|1|0|636973266342806302&sdata=Bf2Z4s0yvMKDYyuoZ8BCziLSN72VSEkXuo3fVRMAybU%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAB7TT6M23FVFYPNQW2PNKZDP4YJKNANCNFSM4H4FRPOQ&data=02|01|jan.hajek%40thenetw.org|100642b5679d4201eae408d6fbcf9633|67266d438de7494d9ed83d1bd3b3a764|1|0|636973266342816311&sdata=59YiN13fZiI3a%2F49qtMEc3ykD100N2ro0dMbgs56LFw%3D&reserved=0.

Hi, Thx for your follow-up. This is the message I got:
Client error: GET https://graph.microsoft.com/v1.0/me resulted in a 401 Unauthorized response: { "error": { "code": "InvalidAuthenticationToken", "message": "Access token validation failure. Invalid aud (truncated...)
The error only appears when I try to use the Graph object. Before I get well the token, the user name & the tenant id

Could you please take the token and post the claims here (only the claims, not the token). You can use https://jwt.io to parse the token into JSON claims. Since it says Invalid aud I would suspect there is something wrong with the token.

I just copied the token on jwt.io, which part do you want exactly ? I have 3 parts (header, payload & signature) ?
at the bottom it said "invalid signature".
But which is strange, I got the token, I can get the user and the tenant. But as soon as I use the token with a graph object then...

Just the payload. Feel free to remove the username from there and any PII data. The invalid signature there is okay, because you didn't specify the certificate to check the signature against.

Actually, I just noticed what is wrong:
You are obtaining a token for default Azure AD Graph (https://graph.windows.net), but you need to specify that you want to use Microsoft Graph as per https://github.com/TheNetworg/oauth2-azure#microsoft-graph:
$provider = new TheNetworg\OAuth2\Client\Provider\Azure([
'clientId' => CLIENT_ID,
'clientSecret' => CLIENT_SECRET,
'redirectUri' => REDIRECT_URI,
]);
$provider->resource = "https://graph.microsoft.com/";
$provider->urlAPI = "https://graph.microsoft.com/v1.0/";

Indeed it's graph.windows.net, but I don't know where I have to adapt it
Payload:
"aud": "https://graph.windows.net/",
"iss": "https://sts.windows.net/56f59d70-9c12-4cb5-bdba-995548fc796e/",
"iat":<PHONE_NUMBER>,
"nbf":<PHONE_NUMBER>,
"exp":<PHONE_NUMBER>,
"acr": "1",
"aio": "42ZgYGC7N9nS01zf7b172qvr3Wrex/13q84PyvH+Oen71lUSZ7MB",
"amr": [
"pwd"
],
"appid": "7533d0bc-3abd-466c-9b5f-d094ee79aa4e",
"appidacr": "1",
"family_name": "xxx",
"given_name": "xxx",
"ipaddr": "xxx",
"name": "xxx",
"oid": "c0c3a957-22dc-4ec5-bf2b-bad2392bbbf9",
"puid": "100320003F6F712C",
"scp": "Bookings.Manage.All Bookings.Read.All Bookings.ReadWrite.All BookingsAppointment.ReadWrite.All Calendars.Read Calendars.Read.Shared Calendars.ReadWrite Calendars.ReadWrite.Shared email offline_access openid profile User.Read",
"sub": "EZaiO_-xh4bgpMBUp8APHywOfnAPm359OLXOtJA4zVk",
"tenant_region_scope": "EU",
"tid": "56f59d70-9c12-4cb5-bdba-995548fc796e",
"unique_name": "xxx",
"upn": "xxx",
"uti": "mHA2ewlfPE-4XOUklp6LAA",
"ver": "1.0"
}

Sounds ok now. I don't get issue anymore. Now I have to start using Graph object.
Thanks a lot for your help.
I close the ticket


Not possible to disable spam of logging

URL for relevant page?
What products and version are you using?
InfluxDB starting, version 1.2.0, branch master, commit b7bb7e8359642b6e071735b50ae41f5eb343fd42
Where did you look before opening the issue?
Influx documentation and Github
My /var/log/syslog gets spammed with http POST messages.  I have disabled all possible logging settings in /etc/influxdb/influxdb.conf  but they just keep on coming.
E.g.:
Feb  9 21:51:07 Condor1 influxd[19042]: [httpd] ::1 - root [09/Feb/2017:21:51:06 +0100] "POST /write?db=home_assistant HTTP/1.1" 204 0 "-" "python-requests/2.13.0" 7a5d9ccd-ef09-11e6-801e-000000000000 495326
Feb  9 21:51:07 Condor1 influxd[19042]: [httpd] ::1 - root [09/Feb/2017:21:51:07 +0100] "POST /write?db=home_assistant HTTP/1.1" 204 0 "-" "python-requests/2.13.0" 7a7efc82-ef09-11e6-801f-000000000000 298648
Feb  9 21:51:30 Condor1 influxd[19042]: [httpd] ::1 - root [09/Feb/2017:21:51:30 +0100] "POST /write?db=home_assistant HTTP/1.1" 204 0 "-" "python-requests/2.13.0" 88949151-ef09-11e6-8020-000000000000 38735
Feb  9 21:52:01 Condor1 influxd[19042]: [httpd] ::1 - root [09/Feb/2017:21:52:01 +0100] "POST /write?db=home_assistant HTTP/1.1" 204 0 "-" "python-requests/2.13.0" 9b06de9f-ef09-11e6-8021-000000000000 26066
Feb  9 21:52:01 Condor1 influxd[19042]: [httpd] ::1 - root [09/Feb/2017:21:52:01 +0100] "POST /write?db=home_assistant HTTP/1.1" 204 0 "-" "python-requests/2.13.0" 9b0aedda-ef09-11e6-8022-000000000000 81165
Feb  9 21:52:02 Condor1 influxd[19042]: [httpd] ::1 - root [09/Feb/2017:21:52:01 +0100] "POST /write?db=home_assistant HTTP/1.1" 204 0 "-" "python-requests/2.13.0" 9b0e7f91-ef09-11e6-8023-000000000000 394851
Feb  9 21:52:02 Condor1 influxd[19042]: [httpd] ::1 - root [09/Feb/2017:21:52:01 +0100] "POST /write?db=home_assistant HTTP/1.1" 204 0 "-" "python-requests/2.13.0" 9b102f93-ef09-11e6-8024-000000000000 461983
Feb  9 21:52:30 Condor1 influxd[19042]: [httpd] ::1 - root [09/Feb/2017:21:52:30 +0100] "POST /write?db=home_assistant HTTP/1.1" 204 0 "-" "python-requests/2.13.0" ac5111f4-ef09-11e6-8025-000000000000 25680

How can I disable this logging?
Thanks in advance

Stupid error.  I forgot to remove the # before the [http] header.
Closed.

Hi @ArnoutVerbeken, apologies for not getting back to you about that. Glad you were able to fix your issue. In version 1.2.0 we've removed the # from the section headers in the configuration file so hopefully something like that won't happen again.


20241210 dependency update

@JackKelly-Bellroy This one doesn't have a dev shell for darwin, so I can't run the npm update

nix shell nixpkgs#nodejs should give you an npm to do the update with.


Misc. fixes

While testing my SLF4J Helper plugin for NetBeans IDE, I found some fixes and minor improvements that can be made.

I see that these are minor changes, but at this volume it still takes a bit to review.

Hello Hadrian,
I understand completely. If I can help in any way, let me know.
Daniel

There's a lot of conflicts. I will recreate a PR to clean this up.

Superseded by #466


$where operator

Is there a way to use mongo $where operator?

Wheres
$users = User::where('votes', '>', 100)->take(10)->get();

Examples
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. Since this is not a bug, it should be closed.

In the following link you will find a section talking about mongo specific operators
mongo specific operators
in which you will find that there is an operator called where
Example in mongo:
db.users.find({"$where":"/3/.test(this.age)"});
this would get all users with a digit 3 in their age(int)

The where operator is used by default when doing ->where


Internal Error: memory.lua:253: Attempt to setStringLength beyond maxLen

Description
I was pleasantly surprised to see that Pebbles now runs, only to discover it errors on second opening when (I assume) attempting to read in its ini file. i suspect this might be another example of a out of bounds but the app was getting away with.
Details
memory.lua:253: Attempt to setStringLength beyond maxLen
PEBBLES\CFREAD:000011F3: 57 [CallFunction] 0x0F (IoRead)
PEBBLES\INITCONFIG%:000004CE: 53 [RunProcedure] 0x0012 (name="CFREAD" nargs=0)
PEBBLES\INITIALISE%:00000283: 53 [RunProcedure] 0x0012 (name="INITCONFIG%" nargs=0)
PEBBLES\PEBBLES:00000209: 53 [RunProcedure] 0x0192 (name="INITIALISE%" nargs=0)
stack traceback:
	[C]: in function 'assert'
	memory.lua:253: in method 'setStringLength'
	memory.lua:431: in upvalue 'applyDataToSimpleVar'
	memory.lua:463: in method 'write'
	fns.lua:364: in function 'fns.IoRead'
	ops.lua:1006: in function 'ops.CallFunction'
	runtime.lua:816: in function <runtime.lua:801>
	[C]: in function 'xpcall'
	runtime.lua:933: in method 'pcallProc'
	runtime.lua:1288: in function 'runtime.runOpo'

This is a(nother) interesting one. Short answer is, it's a bug in the program, or at least a misuse of variables, but one that the new memory model can tolerate. The long answer is, the program is doing something like this:
LOCAL tempString$(16)
...
IOREAD(handle%, ADDR(tempString$), 16)

with the intention to read 16 bytes of data from the preferences file into tempString$. However, that's not quite what that code does - ADDR() on a string returns the address of the string's length byte, not that of the first data byte.
So the code is overwriting the length byte of the temporary with the first byte of the result data. Normally this would cause some sort of issue when tempString$ was subsequently used - in this program however it never is used (because the first 16 bytes of the preferences file seems to be UIDs that aren't checked).
The correct thing do to would be something like:
IOREAD(handle%, ADDR(tempString$) + 1, 16)
POKEB ADDR(tempString$), 16 :REM this sets the string length to 16

The current (old) memory model expects that any write to the length byte of a string should be setting a valid length, and in this case 0x50 is not (its max length is only 16 bytes). The new Chunk-based memory model doesn't care and lets you do what you like to the underlying storage, just as EPOC itself did, with the same caveat that it may cause unexpected behaviour down the line.

This is fixed on main now the new mem model has merged, Pebbles works fine for me.

For me too!


Hide system collections in databases

System collections doc: https://docs.mongodb.com/manual/reference/system-collections/
Getting mongo error when trying to delete those systems collections.

These changes will be delivered as part of #50.


[CP Staging] Fix crash after log out

cc @mountiny
Details

Install the new react-native-onyx version that includes a fix for multiSet, which fixes a crash that happens after log out on native apps.
Fixed Issues

$ https://github.com/Expensify/App/issues/14437
Tests

Login with any account
Go to Settings
Sign out and verify the app is not crashing

Additional tests for a closed account (tested here)

Login with a gmail account
Navigate to Settings > Security
Enter the email in the input and tap on "close account" button

[x] Verify that no errors appear in the JS console

Offline tests

Login with any account
Go to Settings
Turn off the internet connection
Sign out
Turn on the internet connection
Verify the app is not crashing

QA Steps

Same as test steps.

[ ] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is correct English and approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)

[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Web

https://user-images.githubusercontent.com/6829422/213824617-f471f5d6-497f-4e77-9925-9ec2110db7f9.mov

Mobile Web - Chrome

https://user-images.githubusercontent.com/6829422/213825030-738c4984-8a62-4e65-a926-22831355895d.mov

Mobile Web - Safari

https://user-images.githubusercontent.com/6829422/213824851-684bd90e-8928-4576-8c2d-32b18c802e18.mov

Desktop

https://user-images.githubusercontent.com/6829422/213825178-cffccbf9-63f4-4e9f-951e-bb388901df02.mov

iOS

https://user-images.githubusercontent.com/6829422/213824796-a200a97b-f60f-4241-8304-382ea11a2c17.mov

Android

https://user-images.githubusercontent.com/6829422/213824949-dc26ef8c-ab0b-4ab1-9b8e-182b8c8be555.mov

🚀 Cherry-picked to staging by https://github.com/mountiny in version: 1.2.57-3 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

Payment is due for C+ review. https://github.com/Expensify/App/issues/14437 is locked.
cc: @mountiny @marcochavezf

Can you comment on it please? @sobitneupane

🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


shep remove command

I've used shep generate endpoint /hello/{id} to create a new function. I now want to remove it, but this would required editing a few different files. It would be useful if there was a shep remove endpoint /hello/{id} command that removed the code and cleaned up api gateway and lambda on the next deploy.

@warrickhill thanks for the suggestion! We'll add it to our list, but you are also welcome to make a PR yourself. Happy to help review or talk through code.

Hi @southpolesteve as a start can you point me to the bits of code that might need changing and which files are modified by generate endpoint. I think this would be really useful and could try to make  a PR

I think generate endpoint calls generate function under the hood. So you would probably need to "undo" what is happening in these two files:
https://github.com/bustle/shep/blob/master/src/generate-function/index.js
https://github.com/bustle/shep/blob/master/src/generate-endpoint/index.js
To add a command, you should make a folder for it at src/{$command} (this is where the logic lives) and also add it to src/commands (this is where the CLI options live and what documentation is generated from)


[WIP] demonstrate using NVTXW to export internal CUPTI events to nsys-rep

This branch adds support for exporting internally collected CUPTI events using NVTXW. NVTXW is an API that allows applications to record their own profiling events and then insert them into an Nsight Systems report (nsys-rep file) in a post-processing step.
The README-nvtxw.txt file outlines the steps to use this feature. The "libNvtxwBackend.so" library mentioned in the readme is included in the Nsight Systems release. The latest release is available here: https://developer.nvidia.com/nsight-systems/get-started. Nsight Systems 2024.6.1 should be posted in the next few days, which is the version I used for testing. In the mean time, 2024.5.1 may also work, or I can provide a link to an internal build server with pre-release build of 2024.6.1, if that would be useful.
Marking this feature as WIP and draft. It works as is but is intended to be a demonstration of how to use NVTXW. Feel free to refine, refactor and improve this code as appropriate.

CI signoff check is failing because at least one commit must have a signoff.  See https://github.com/NVIDIA/spark-rapids-jni/blob/branch-24.10/CONTRIBUTING.md#sign-your-work for details.


Error when creating boosters

After ASF was updated, I get an error when trying to create boosters, I also updated BoosterManager, I have to use old versions of ASF and BoosterManager

This is usually a temporary Steam issue.  The plugin will retry every minute until it succeeds.  This is only an issue if the error persists for a long period of time.

There was no problem today


Object Detection

Hello, handong。
I learned a lot from the work related to object detection that you have organized before. Thank you very much.
your object detection link: https://handong1587.github.io/deep_learning/2015/10/09/object-detection.html
I created a github library a few days ago named awesome-object-detection. I use, delete and modify a lot of your content on github。I will always update the work related to object detection.
I want to know whether this infringes your copyright. If there is infringement, I will delete this repository.
link：awesome-object-detection
thanks.

I will follow your work about object detection.
thanks.


Cleanup of Vec, CavaPrelude, and BitVectorOps

One last Lib cleanup #639
Some potentially controversial changes here. Let me know your thoughts!

Remove BitVectorOps (previously contained only bit-vector xor) and put those operations in their own section of Vec.v. My reasoning here is that, while bit vectors are sort of different from general vectors, bit vectors still conceptually fit in the vector part of the library, and I think it's clearer to write Vec.xor instead of xorV.
Add optional notations for the bit vector operations and, or, and xor. Previously, we had xorV, which was uncurried (takes a tuple), and xorv, which was curried (takes two separate arguments). It's not ideal to have two versions, and we've generally standardized on having uncurried definitions. However, the uncurried version is awkward to chain, which is probably why we had the curried version. This line of four xors, for instance, would need to become four lines:
https://github.com/project-oak/silveroak/blob/b4be19338faf54e4689c15a3e7bfac5960def10d/silveroak-opentitan/aes/Impl/MixColumnsCircuit.v#L100 This PR defines a notation that changes it to data_o0 <- (data_i_1 ^ x_mul2_3 ^ x_1 ^ z_muxed_1) ;;. I was a bit conflicted about whether or not to create it, because too many notations can make code inscrutable, but &, |, and ^ are fairly standard notations for these operations ~(unfortunately we can't use ^ because it conflicts with the power notation)~ [edit: found a fix, using ^ now] and I think this is an overall win for readability in the case where several are chained together. The bit vector notations are not imported by default, and are currently only used in MixColumnsCircuit.

Other changes in this PR:

Uncurry eqb, Vec.fold_left2, and Vec.map2
Add some more definitions/proofs to fill gaps in our API

any as a natural counterpart to all
all boolean operations from Cava (e.g. and, nor) as bit-vector operations
Vec.map_literal to create a Vec from a map over a Vector.t that isn't necessarily a SignalType
versions of packV and unpackV that unpack multiple layers of vectors, up to four dimensions
Versions of flatten, reshape, and resize_default that work on Vec
Proofs stating zero = false and one = true in the identity-monad world so that simpl_ident does these conversions automatically

LGTM


GDScript editor parse error with hex literals containing "b"

Godot version:
3.2 BETA 1
Issue description:
An "parse error" is raised in the GDScript editor when entering a hex literal containing a lower case "b" character.
Steps to reproduce:

Open a GDScript editor
Enter the code var x = 0xb
Observe the "Parse error: Invalid numeric constant at 'b'" message
Alter the code to var x = 0xB
Observe the parse error is cleared

Duplicate of #33710.


Add telecom exchange preset

Fixes issue #6780

There are a lot of strange tags being included in this request..
Did you copy these from the OSM wiki or something?

Yes, I added all the tags specified in the linked GitHub issue as well as those listed on the OSM wiki page for telecom=exchange. I put mandatory and recommended tags in the fields list and optional tags in the moreFields list.

Yes, I added all the tags specified in the linked GitHub issue as well as those listed on the OSM wiki page for telecom=exchange. I put mandatory and recommended tags in the fields list and optional tags in the moreFields list.

Ok, I think I'm going to drop building:prefabricated, and owner.
I also don't see what man_made and street_cabinet are doing there.
Actually there are some other things about it, like we can't just name it "Exchange".
Thinking about it more, It's easier for me to just close and redo it.  Thanks though!

Ok, I think I'm going to drop building:prefabricated, and owner.

No problem, these are really optional tags

I also don't see what man_made and street_cabinet are doing there.

telecom=exchange is a functional role of a given site hosting telecom=service_devices.
It can physically consists in building but a simpler street cabinet also (at least in Europe).
If wiki isn't clear enough I can improve it.

Actually there are some other things about it, like we can't just name it "Exchange".

Although this is reviewed tagging it's always open for suggestions.
This has been discussed for months, not sure a better wording will be found.


Use Postman Echo instead of HTTPBin for Tests.

HTTPBin has been slowing down and causes test failures in the CI. Migrate to Postman Echo.

Done.


Payroll Management Project

Describe the project you want to add with tech stack
Payroll Management Project using File Handling concept in C++.
Expected behavior
We will be using File handling concept in it. It will have the option to -
1.Insert New Record
2.Edit a Record
3.Delete a Record
4.Search a Record
5.List The Employee Table
6.Print Employee PaySlip
7.Quit Program

@pranjay-poddar @MohitGupta121 Please assign it to me.


ADD: features: Eco-Friendly Tips

Hello there ! @GarimaSingh0109 ,
As an environmentalist research-writer and GSSOC contributor, I would like to add few "Eco-friendly Tips" as part of managing waste sustainably in the features section of your website.

Also, integrating a logo that goes with the integrity of your web app.

Could you please assign this issue to me under GSSOC'24 extd?
Looking forward to your response.

@Nkovaturient you can start working on in make a seperate blog page or something kind of thing and follow the color pallet

Hey @Nkovaturient, I want to work on this issue, Can I start this work?

@Nkovaturient you can start working on in make a seperate blog page or something kind of thing and follow the color pallet

Sure, thank you!

Hello @GarimaSingh0109,
I would like to clarify if I can add a separate ecostyles.css and ecoscript.js for the ecotips.html blog page--so that the code structure is comprehensive and modular?! 😀

Hey @Nkovaturient, I want to work on this issue, Can I start this work?

Hello @rishiakkala ,
Thank you for showing your interest. Since I will be working on this issue--you can try working for the "Real-time monitoring" feature or "community-engagement feature" 😇

I like to add Features to the page . Assign me i like to work on it


reflect modyfied all strings (I can not modified single instance by reflect)

What version of Go are you using (go version)?
current play.golang version

What operating system and processor architecture are you using (go env)?
current play.golang version

What did you do?
I create script like that https://play.golang.org/p/u_tH8tTgs4
package main

import (
	"fmt"
	"reflect"
)

type T struct {
	p interface{}
}

func main() {
	str := "str"
	tree := T{
		p: interface{}(&str),
	}
	v := reflect.ValueOf(tree.p).Elem()
	if !v.CanSet() {
		panic("the value can not be set")
	}
	v.SetString("new str")

	fmt.Println("Hello, ", *(tree.p.(*string)), " ", str)
}

Output:

Hello,  new str   new str

It mean str variable is changed. I am not sure it is correct action.  CanSet return false for *string always. When I use reflect I modified  both value.

What did you expect to see?

Hello,  new str  str

What did you see instead?

Hello,  new str   new str

In effect, you did p := &str and then you did *p = "new str".  This is working as expected.


Provide support for Azure App Configuration

It would be nice if we could get support for azure app configuration so that in program we can retrieve connection strings and whatever else.
See the previous issue for more details on error that occurs when attempting to use Azure App Configuration package with the worker. https://github.com/Azure/azure-functions-dotnet-worker-preview/issues/27

This is indeed a nice thing to support out of the box and we're working with that team to add that support to Functions in general, but it won't be a  goal for GA. We'll keep this open until we can move it to the appropriate repo.

This is indeed a nice thing to support out of the box and we're working with that team to add that support to Functions in general, but it won't be a  goal for GA. We'll keep this open until we can move it to the appropriate repo.

Actually moving to the host as it applies to more than the worker.


refactor: Restructure linters

This is our first major refactoring. Several concepts didn't play out
the way we initially thought, and that's ok.
Highlights are:

Reporters shall no longer produce actual "reports" but rather
create "LintMessages" and "CoverageInfo"
Linters become more independent but share a common signature
("LinterParameters")
Linters access and share resources via a @ui5/fs
"workspace" instance. Resource paths reflect UI5 runtime paths
Linters are generally async and executed concurrently
(eventually in workers if we can proof performance improvements)
A LinterContext instance is proveded to all linters.

Linters provide it with their produced  "LintMessages" and
"CoverageInfo" from which the final "LintResult" is generated.

The "ui5Types"-Linter is special and executed after all other linters
have finished (to take any transpiled resources into account)

Architecture Overview

Performance
I compared the current main (70b719a) branch with commit 881cdb2 of this branch for linting sap.m for OpenUI5 tag 1.120.10

Command
Mean [s]
Min [s]
Max [s]
Branch

ui5lint
32.031 ± 0.798
31.508
34.205
main

ui5lint
32.845 ± 0.770
31.694
34.289
This PR

ui5lint --file-paths src/sap/m/Table.js
14.675 ± 0.316
14.109
15.190
main

ui5lint --file-paths src/sap/m/Table.js
2.267 ± 0.024
2.236
2.308
This PR

I'll look into the test failures on Windows later today


FetchOnlineDataExample raises a JsonParseException

Hello, I have cloned the repo and attempted to run the FetchOnlineDataExample example. Didn't modify a thing.
Running the sample gives me the following error message:
Exception in thread "main" 2017-12-14 17:29:09 ERROR - Could not retrive data: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
 at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@7920ba90; line: 1, column: 2]
java.lang.NullPointerException
	at examples.FetchOnlineDataExample.main(FetchOnlineDataExample.java:45)

Basically the call
EntityDocument q42 = wbdf.getEntityDocument("Q42");

returns null and the successive
System.out.println("The current revision of the data for entity Q42 is "
						+ q42.getRevisionId());

throws a NullPointerException closing the program.
I'm not sure what the issue could be here since I didn't do much aside from cloning and running the software itself. Any ideas?

The message resolved itself within the next day, I am assuming it was some kind of trouble with the server.


.find(undefined) returns the first record

find(undefined) should throw an error, but it return a the first record. Even worse, find(undefined).update(dto) now updates all records without any query filter.

find(undefined) is a TypeScript error, isn't it?
If TS doesn't catch it in your case, then it's a bug and I'll fix it, but let me know the context.
And if you suppress and trick the TS, it will lead to errors in various places, not only find, but any function in principle would work incorrectly if you bypass the TS check and pass a wrong value.

Well, I thought it was a small bug, but I didn't expect it to be an interesting and in-depth topic. I am very interested in discussing it.
First of all, is my use case, I get the id from user request pseudocode const id = request('id'), this is any type, so I assert it to string like this const id = request('id') as string, as you can guess, this can be undefined sometimes.
This was definitely my mistake, as I should validate user input with something like zod, but I forgot it.
So,  let's further discuss if we should move the validation part to the library.
Basically I think it's a design trade-off and there is no right answer, and I totally agree with you not to add all checks across the whole codebase, but I'm wondering if we could add some checks for critical parts, such as the find(undefined).update(dto) case is too dangerous that may alter all records.

Such as the find(undefined).update(dto) case is too dangerous that may alter all records.

I agree, the find should have a check for null/undefined inside.

Published, now the find will throw if you pass a null or undefined.


New version: CrystalDewWorld.CrystalDiskInfo.AoiEdition version 9.4.4

Created by 🥟 Dumplings in workflow run #7860.

Log
Updated: 9.4.3 → 9.4.4
No ReleaseNotes (en-US) for version 9.4.4
Submitting WinGet manifests
Creating manifests
Uploading manifests and making commits
Creating a pull request

Microsoft Reviewers: Open in CodeFlow

@wingetbot run


Cancel and OK buttons should have a hover action

Current behavior
The Cancel and OK buttons on the Visibility pane do not have a hover action to indicate to the user that those buttons will do something when clicked. They do have tooltips that appear.
Expected behavior
Requesting that they also have a hover action that occurs to help the user understand that the button does something when clicked. These buttons should behave the way the Add Favorite button behaves on the Military Symbol Editor pane.

Screenshot is of Dark theme, but the same example/expected behavior should apply to Light theme

Looks good

@lfunkhouser  I think we should not list this as a new feature. Do you want it listed as an issue addressed? I lean towards not listing for issues addressed.


Version 17.0.1 is not published on npm

Do you want to request a feature or report a bug?
Reporting an issue related to the release 17.0.1 which was released but not published on npm.
What is the current behavior?
If you do npm install<EMAIL_ADDRESS>it will fail:

Also, looking at the npm package's page, you can see it wasn't published:

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal repository on GitHub that we can npm install and npm test.
Just do: npm install<EMAIL_ADDRESS>What is the expected behavior?
It is expected the install is successful.
Run Jest again with --debug and provide the full configuration it prints. Please mention your node and npm version and operating system.
Not applicable.

I'm pretty sure it was published properly. Is it possible whatever mirror you are using is behind? Can you try with Yarn?

@cpojer have you checked: https://www.npmjs.com/package/jest ?
I am assuming it's using a 'generic' mirror?

Well, I just did npm view jest and I did got it:
'17.0.1': '2016-11-14T06:07:26.865Z'

Strange :/

npm sometimes needs some time to catch up.

@cpojer yup, you were right. Was a mirror out of sync.
Thanks for the heads up :+1:


refactoring: utility to extract samples from zip files is needed

I found this pattern at 3 places. These should be a single function.
https://github.com/kmyk/online-judge-tools/blob/50930880a11d0d0e725b6f6962043178f28bd16a/onlinejudge/service/yukicoder.py#L280-L297
https://github.com/kmyk/online-judge-tools/blob/50930880a11d0d0e725b6f6962043178f28bd16a/onlinejudge/service/hackerrank.py#L100-L120
https://github.com/kmyk/online-judge-tools/blob/5f5b31722d5aa6a3b7b0ed5c253a5eb87ba17c4f/onlinejudge/service/kattis.py#L51-L61

this will be done when https://github.com/kmyk/online-judge-tools/pull/319/commits/3de8ca25e49cc714924fd3987dcb849dc7e310ee is merged

閉じ忘れ


Fish completions

I'd love completions for the fish shell—how simple would they be to add, considering we have bash/zsh already?

I have no idea how fish shell completions work. But I guess it shouldn't be that hard. Want to give it a try?

It's a bit trickier because it's not sh compliant, but I can take a look.

#100 introduced base support, but I didn't add fzf support because I'm not personally using it. (I find fish has enough fuzziness for my use cases)


Added Documentation how to convert the Phoniebox in Read-Only Mode

Hi @MiczFlor,
finally this is a pull request to my recently closed issue #37.
I had delivered both builds of my Phoniebox and just got my hands on one for an update, so I could update my documentation the the current system and test it on a real system before submitting it.

Hi @ralle12345
thanks for the contribution. i will merge the md to the code base and later move it to the wiki. Quite a few people kept asking for this solution!


[WIP] generic cloudaux watcher subclass

New watchers for technologies in cloudaux will be much simpler.
Need to build out a few more technologies before merging.
TODO:

[x] - Need to handle region specific technologies better (elb, elbv2)
[x] - Need to make a batched_watcher subclass for others to inherit.
[x] - Watchers probably need a method to identify what regions they can exist in.
[x] - Watchers need a method to identify how to extract the name from the datastructure.
(Could help simplify the ignore_list logic as well as ensuring name= is passed to @record_exception decorated get_method invocations)

Coverage increased (+0.7%) to 61.573% when pulling 9818895c38c0c1b9b4cc83c78c41769a62c018aa on cloudaux_watcher into 5cd728c3b0e9f392fb1762e4360c4c542699b64b on develop.

Coverage increased (+0.9%) to 61.739% when pulling 051eac164fdc52e7b468675d478369b546228c23 on cloudaux_watcher into 5cd728c3b0e9f392fb1762e4360c4c542699b64b on develop.

Coverage increased (+0.9%) to 61.736% when pulling 051eac164fdc52e7b468675d478369b546228c23 on cloudaux_watcher into 5cd728c3b0e9f392fb1762e4360c4c542699b64b on develop.

Coverage increased (+0.9%) to 61.736% when pulling 74d751414952089ee64fcc75b564eabba4058810 on cloudaux_watcher into 5cd728c3b0e9f392fb1762e4360c4c542699b64b on develop.

Coverage increased (+0.9%) to 61.736% when pulling b9fd6f4051d8a4c1633e4aeb6553ddeb64052829 on cloudaux_watcher into 5cd728c3b0e9f392fb1762e4360c4c542699b64b on develop.

Coverage increased (+2.2%) to 63.041% when pulling 67ee41bfaca891b4f0ee8fd26efbff7e5d6e579c on cloudaux_watcher into 4eb4fc952c697a1b90acd1b11d385d551f4476d4 on develop.


daemonset: fix logic error in pid_ready and pid_health

There is an issue in pid_ready() and pid_health() where in the PID from
the respective daemon's pidfile is not compared for the exact match in
the ps output.
This results in pid_health() abnormally terminating a daemon and
causing a container restart or pid_read() will never see the daemon to
be up and waits till it timesout and restarts the process
Signed-off-by: Girish Moodalbail<EMAIL_ADDRESS>

@shettyg can you PTAL? This was causing some terrible failures where-in the PODs would just restart.


[zh] update control-plane-flags.md to fix bind-address on scheduler

en PR https://github.com/kubernetes/website/pull/26500

/assign @tengqm

Page in sync. Change is good.
/lgtm
/approve


Remove arrow modifier requirement in applyStyle modifier

In the applyStyle modifier, there is an explicit dependency on the arrow modifier
This prevents users from creating their own modifier that work on the arrow attributes
Can this dependency be removed? The only validation needed is that the arrow attributes exists in the received data.

Good point, going to fix it and release a patch version ASAP.

Waiting for the build to pass and I'll release the v0.6.3 with the fix

released  v0.6.3 on npm and Bower.

merged into v1-dev

Wow you are fast! Thanks! 👍

Eheh.
If/when you build something awesome with Popper please post it here or send me an email 🙃


[BUG] Databricks install failure if the egg file already exists

Description
Databricks installation fails when the egg file already exists in the cluster.
Here is the error:

Traceback (most recent call last):
File "/data/anaconda/envs/reco_pyspark/lib/python3.6/site-packages/databricks_cli/sdk/api_client.py", line 121, in perform_query
resp.raise_for_status()
File "/data/anaconda/envs/reco_pyspark/lib/python3.6/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://eastus.azuredatabricks.net/api/2.0/dbfs/create

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "scripts/databricks_install.py", line 275, in
recursive=False, src=myegg, dst=upload_path, overwrite=args.overwrite
File "/data/anaconda/envs/reco_pyspark/lib/python3.6/site-packages/databricks_cli/dbfs/api.py", line 203, in cp
self._copy_to_dbfs_non_recursive(src, DbfsPath(dst), overwrite, headers=headers)
File "/data/anaconda/envs/reco_pyspark/lib/python3.6/site-packages/databricks_cli/dbfs/api.py", line 142, in _copy_to_dbfs_non_recursive
self.put_file(src, dbfs_path_dst, overwrite, headers=headers)
File "/data/anaconda/envs/reco_pyspark/lib/python3.6/site-packages/databricks_cli/dbfs/api.py", line 96, in put_file
handle = self.client.create(dbfs_path.absolute_path, overwrite, headers=headers)['handle']
File "/data/anaconda/envs/reco_pyspark/lib/python3.6/site-packages/databricks_cli/sdk/service.py", line 496, in create
return self.client.perform_query('POST', '/dbfs/create', data=_data, headers=headers)
File "/data/anaconda/envs/reco_pyspark/lib/python3.6/site-packages/databricks_cli/sdk/api_client.py", line 129, in perform_query
raise requests.exceptions.HTTPError(message, response=e.response)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://eastus.azuredatabricks.net/api/2.0/dbfs/create
Response from server:
{ 'error_code': 'RESOURCE_ALREADY_EXISTS',
'message': 'A file or directory already exists at the input path '
'dbfs:/FileStore/jars/Recommenders.egg.'}

It looks like there is another error shown in the top of the message, but tested and confirmed it goes through without any errors if remove the existing egg file from dbfs.
In which platform does it happen?

Azure Databricks

How do we replicate the issue?
Install egg twice.
Expected behavior (i.e. solution)
Overwrite the existing library file
Other Comments

You can use --overwrite when calling the python script. Perhaps the error should be caught by the script and appropriate options provided?

that would be helpful, because the first part of the error is not very readable.

I need to update the databricks cli for accommodating the new version of MMLspark, therefore I will take a look into this

Just fixed #702 - will fix this in a little bit as well.


Multiple accounts

We want the ability to connect multiple mnemonics.
Roughly, here's what I'm thinking:

[ ] Change pub wallet: Wallet to pub wallets: Vec<Wallet>
[ ] the Wallet settings page becomes similar to the Network, in that we can create multiple objects and configure each one individually
[ ] add a wallet.count field to indicate how many addresses we want to derive from it
[ ] add a wallet.alias to allows us to give a friendlier name to each of them

no encryption will be handled here, but my future plan for that would be:

change Vec<Wallet> to Vec<Box>` so that many types of Wallets can be implemented
create a KeystoreWallet that reads from a json keystore file (probably the most trivial encrypted wallet we can start with)

What do you think about integrating a higher-level abstraction? I was thinking of something like a profile that you have in chrome, for instance?

I think something like that makes sense, but would definitely come later
I'd rather build these things bottom-up, because if we try to do right now a high-level abstraction, it's more likely it'll be the wrong one, or be implemented in a way that hurts us later

Ok, in this case I was thinking something like Profile has Wallet. You had multiple profiles, and the profile only had the property alias for now. But let's go 👍


Unit-tests are failing in develop and master branches.

When trying to run tests in the develop and master branches of the projects they fail while testing get_categories method.
Here is a traceback:
self = <pistonapi.steemnoderpc.SteemNodeRPC object at 0x7f5e72548a58>, payload = {'id': 27, 'jsonrpc': '2.0', 'method': 'call', 'params': [0, 'get_trending_categories', [None, 10]]}

    def rpcexec(self, payload):
        """ Execute a call by sending the payload

                :param json payload: Payload data
                :raises ValueError: if the server does not respond in proper JSON format
                :raises RPCError: if the server returns an error
            """
        log.debug(json.dumps(payload))
        cnt = 0
        while True:
            cnt += 1

            try:
                self.ws.send(json.dumps(payload, ensure_ascii=False).encode('utf8'))
                reply = self.ws.recv()
                break
            except KeyboardInterrupt:
                raise
            except:
                if (self.num_retries > -1 and
                        cnt > self.num_retries):
                    raise NumRetriesReached()
                sleeptime = (cnt - 1) * 2 if cnt < 10 else 10
                if sleeptime:
                    log.warning(
                        "Lost connection to node during rpcexec(): %s (%d/%d) "
                        % (self.url, cnt, self.num_retries) +
                        "Retrying in %d seconds" % sleeptime
                    )
                    time.sleep(sleeptime)

                # retry
                try:
                    self.ws.close()
                    time.sleep(sleeptime)
                    self.wsconnect()
                    self.register_apis()
                except:
                    pass

        ret = {}
        try:
            ret = json.loads(reply, strict=False)
        except ValueError:
            raise ValueError("Client returned invalid format.
                It makes use of the GrapheneRPC library.
                In here, we mostly deal with Steem specific error handling

                :param json payload: Payload data
                :raises ValueError: if the server does not respond in proper JSON format
                :raises RPCError: if the server returns an error
            """
        try:
            # Forward call to GrapheneWebsocketRPC and catch+evaluate errors
            return super(SteemNodeRPC, self).rpcexec(payload)
        except RPCError as e:
            msg = exceptions.decodeRPCErrorMsg(e).strip()
            if msg == "Account already transacted this block.":
                raise exceptions.AlreadyTransactedThisBlock(msg)
            elif msg == "missing required posting authority":
                raise exceptions.MissingRequiredPostingAuthority
            elif msg == "Voting weight is too small, please accumulate more voting power or steem power.":
                raise exceptions.VoteWeightTooSmall(msg)
            elif msg == "Can only vote once every 3 seconds.":
                raise exceptions.OnlyVoteOnceEvery3Seconds(msg)
            elif msg == "You have already voted in a similar way.":
                raise exceptions.AlreadyVotedSimilarily(msg)
            elif msg == "You may only post once every 5 minutes.":
                raise exceptions.PostOnlyEvery5Min(msg)
            elif msg == "Duplicate transaction check failed":
                raise exceptions.DuplicateTransaction(msg)
            elif msg == "Account exceeded maximum allowed bandwidth per vesting share.":
                raise exceptions.ExceededAllowedBandwidth(msg)
            elif re.match("^no method with name.*", msg):
>               raise exceptions.NoMethodWithName(msg)
E               pistonapi.exceptions.NoMethodWithName: no method with name 'get_trending_categories'

This is due to the removal of the Category functionality out of the steem:
https://github.com/steemit/steem/issues/1032
As far as I can see get_trending_categories is now solely replaced by get_trending_tags method and rest of get_*_categories methods are now removed.


Update links to point at current landing page

The 'helping you become a teacher' one was renamed to 'three things to help you get into teaching'.

Superseded and improved on by #798

Superseded and improved on by #798


[TypeSpec] Upgrade to 0.53.0

Includes openapi updates as reactions to:

Azure/typespec-azure#152
Azure/typespec-azure#176

Swagger BreakingChange

RemovedDefinition (17)

Caused by Azure/typespec-azure#152 combined by with omit-unreachable-types: true
Technically, this does seem to be a true breaking change in the openapi, though maybe not a problem if nobody external was relying on the removed enum types?
@timotheeguerin, @markcowl: What do you think?

ReferenceRedirection (38), DefaultValueChanged (38)

Intentional changes caused by Azure/typespec-azure#152

ReadonlyPropertyChanged (3)

Appears to be false positive, properties are read only before and after

Swagger ModelValidation

All failures in cognitiveservices/data-plane/AzureOpenAI/inference, appear unrelated to changes in this PR (pre-existing failures triggered by any change to the openapi files)

@mikeharder I removed DoNotMerge and ShiftLeftViolation labels because they are false positives. If they come back again, remove them again. If they still somehow manage to come back and block this PR, let me know.

@mikeharder this PR has ARMReview ARMChangesRequested. This means it will remain blocked until we remove the latter labels (see step 2 in https://aka.ms/azsdk/pr-diagram). Then ARM on-call engineer will look at this PR. Do we want to discuss this with ARM folks, or should we override the labels and skip ARM review altogether? If you want an override, then we can add ARMSignedOff label, remove ARMChangesRequested, and we should be good.

@mikeharder I looked at the SDK azure-sdk-for-go failure and the first occurrence of error in log says:
06:26:32.742 cmderr 	[generator automation-v2] Fetching all release tags from GitHub for RP: 'mobilepacketcore' Package: 'armmobilepacketcore' ...
06:26:34.079 cmderr 	[generator automation-v2] panic: runtime error: index out of range [0] with length 0

I believe this error originates from this source.
I didn't investigate further. This code is owned by our partners in Shanghai, see this Teams post. But note the holiday notice.
@raych1 FYI.

@konrad-jamrozik Signed off for ARM, since I am an ARM api reviewer, which should fix the issue.


use .sqlite extension in SQLiteDatabaseManager

Description
Sqlite databases could use sqlite extension.
Why this should be added
Sqlite databases could use sqlite extension for better file identification and better integration with default gitignore files in laravel:
database/.gitignore
*.sqlite
*.sqlite-journal

Example code to show what I trying:
<?php

declare(strict_types=1);

namespace Stancl\Tenancy\TenantDatabaseManagers;

use Stancl\Tenancy\Contracts\TenantDatabaseManager;
use Stancl\Tenancy\Contracts\TenantWithDatabase;

class SQLiteDatabaseManager implements TenantDatabaseManager
{
    public function createDatabase(TenantWithDatabase $tenant): bool
    {
        try {
            return file_put_contents(database_path($tenant->database()->getName() . '.sqlite'), '');
        } catch (\Throwable $th) {
            return false;
        }
    }

    public function deleteDatabase(TenantWithDatabase $tenant): bool
    {
        try {
            return unlink(database_path($tenant->database()->getName(). '.sqlite'));
        } catch (\Throwable $th) {
            return false;
        }
    }

    public function databaseExists(string $name): bool
    {
        return file_exists(database_path($name. '.sqlite'));
    }

    public function makeConnectionConfig(array $baseConfig, string $databaseName): array
    {
        $baseConfig['database'] = database_path($databaseName . '.sqlite') ;

        return $baseConfig;
    }

    public function setConnection(string $connection): void
    {
        //
    }
}

I could make a PR if you want.

You can configure the suffix to be .sqlite in config/tenancy.php

umm... ok! You mean config('tenancy.database.suffix')? But this will be applied to all database I only want to apply that to sqlite.

For whom it may concern, now I'm using my own custom sqlite manager:
 'managers' => [
            'sqlite' => App\Tenancy\TenantDatabaseManagers\SQLiteDatabaseManager::class,

Why would you use SQLite and other drivers at the same time?

I use Sqlite (not :memory: database) for testing but mysql in local and production environment.

You can read the prefix from env() then :)

Oooh.... Of course! good idea. Thanks


Exam 21 - Question 11 ?

A company wants to use Amazon Elastic Compute Cloud (Amazon EC2) to deploy a global commercial application. The deployment solution should be built with the highest redundancy and fault tolerance.
Based on this situation, the Amazon EC2 instances should be deployed:
A. in a single Availability Zone in one AWS Region
B. with multiple Elastic Network Interfaces belonging to different subnets
C. across multiple Availability Zones in one AWS Region
D. across multiple Availability Zones in two AWS Regions
The answer given is C, but shouldn't this be D?

@StefH Deploying across multiple AWS Regions also provides redundancy, but it introduces additional complexities such as data replication, higher latency due to cross-region communication, and potentially higher costs. While deploying across multiple regions can be suitable for certain disaster recovery scenarios or to serve geographically dispersed users, it may not be necessary for all applications and can add unnecessary complexity.

@mametur 💯 ✅  @StefH Correct answer is C


[Type check] Consider dynamic casts to NSError and NSObject.

The runtime can cast an Error-conforming type to NSError or even NSObject; make sure the type checker's casting logic understands this.

@swift-ci please smoke test and merge


epic (esl-share): initial implementation

Other Ideas:

Auto-popup (Post MVP (releasable))

  <esl-share-popup  group="alternative" list="" data-share-*="">
    <svg viewBox="0 0 483 483" fill="none" xmlns="http://www.w3.org/2000/svg">
      <g fill="#add1fa">
        <path d="M395.72,0c-48.204,0-87.281,39.078-87.281,87.281c0,2.036,0.164,4.03,0.309,6.029l-161.233,75.674 c-15.668-14.971-36.852-24.215-60.231-24.215c-48.204,0.001-87.282,39.079-87.282,87.282c0,48.204,39.078,87.281,87.281,87.281 c15.206,0,29.501-3.907,41.948-10.741l69.789,58.806c-3.056,8.896-4.789,18.396-4.789,28.322c0,48.204,39.078,87.281,87.281,87.281 c48.205,0,87.281-39.078,87.281-87.281s-39.077-87.281-87.281-87.281c-15.205,0-29.5,3.908-41.949,10.74l-69.788-58.805 c3.057-8.891,4.789-18.396,4.789-28.322c0-2.035-0.164-4.024-0.308-6.029l161.232-75.674c15.668,14.971,36.852,24.215,60.23,24.215 c48.203,0,87.281-39.078,87.281-87.281C482.999,39.079,443.923,0,395.72,0z"/>
      </g>
    </svg>
  </esl-share-popup>

most likely extends esl-triggerr
use esl-popup but do not keep it in DOM when inactive

Combine group and list syntax

 list="copy group:group1"

The implementation looks awesome btw! 👍🏻 👍🏻 👍🏻

:tada: This PR is included in version 4.5.0-beta.1 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.6.0-beta.1 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


yii\log\EmailTarget includes trace even when traceLevel is set to zero

I have log trace level set to zero, with targets configured for syslog and email, and for some reason the email messages include stack trace information.
What steps will reproduce the problem?
Configuration:
'log' => [
    'traceLevel' => 0,
    'targets' => [
        [
            'class' => 'Sil\JsonSyslog\JsonSyslogTarget',
            'levels' => ['error', 'warning'],
            'except' => [
                'yii\web\HttpException:401',
                'yii\web\HttpException:404',
            ],
            'logVars' => [], // Disable logging of _SERVER, _POST, etc.
            'prefix' => function($message) use ($appEnv) {
                $prefixData = [
                    'env' => $appEnv,
                ];

                // There is no user when a console command is run
                try {
                    $appUser = \Yii::$app->user;
                } catch (\Exception $e) {
                    $appUser = null;
                }
                if ($appUser && ! \Yii::$app->user->isGuest) {
                    $prefixData['user'] = \Yii::$app->user->identity->email;
                }
                return \yii\helpers\Json::encode($prefixData);
            },
        ],
        [
            'class' => 'yii\log\EmailTarget',
            'levels' => ['error'],
            'except' => [
                'yii\web\HttpException:401',
                'yii\web\HttpException:404',
            ],
            'logVars' => [], // Disable logging of _SERVER, _POST, etc.
            'message' => [
                'from' => $fromEmail,
                'to' => $alertsEmail,
                'subject' => 'ALERT - ' . $idpName . ' PW [env=' . $appEnv .']',
            ],
            'prefix' => function($message) use ($appEnv) {
                $prefix = 'env=' . $appEnv . PHP_EOL;

                // There is no user when a console command is run
                try {
                    $appUser = \Yii::$app->user;
                } catch (\Exception $e) {
                    $appUser = Null;
                }
                if ($appUser && ! \Yii::$app->user->isGuest){
                    $prefix .= 'user='.\Yii::$app->user->identity->email . PHP_EOL;
                }

                // Try to get requested url and method
                try {
                    $request = \Yii::$app->request;
                    $prefix .= 'Requested URL: ' . $request->getUrl() . PHP_EOL;
                    $prefix .= 'Request method: ' . $request->getMethod() . PHP_EOL;
                } catch (\Exception $e) {
                    $prefix .= 'Requested URL: not available';
                }

                return PHP_EOL . $prefix;
            },
            'enabled' => $alertsEmailEnabled,
        ],
    ],
],

Here is an example email received when an exception occurred:
2016-07-23 02:17:20
env=staging
<EMAIL_ADDRESS>Requested URL: /password
Request method: PUT
[error][application] [
    'action' => 'save password',
    'employee_id' => '12345',
    'status' => 'error',
    'error' => 'Unable to update user\'s password, server error.',
    'previous' => [
        'code' => 2,
        'message' => 'ldap_mod_replace(): Modify: Constraint
        violation',
    ],
]
2016-07-23 02:17:20
env=staging
<EMAIL_ADDRESS>Requested URL: /password
Request method: PUT
[error][yii\web\HttpException:500] yii\web\ServerErrorHttpException:
Unable to update password in /data/common/models/Password.php:182
Stack trace:
#0 /data/common/models/User.php(420): common\models\Password->save()
#1 /data/frontend/controllers/PasswordController.php(58):
common\models\User->setPassword('password showed up here!!!')
#2 [internal function]:
frontend\controllers\PasswordController->actionUpdate()
#3 /data/vendor/yiisoft/yii2/base/InlineAction.php(55):
call_user_func_array(Array, Array)
#4 /data/vendor/yiisoft/yii2/base/Controller.php(151):
yii\base\InlineAction->runWithParams(Array)
#5 /data/vendor/yiisoft/yii2/base/Module.php(455):
yii\base\Controller->runAction('update', Array)
#6 /data/vendor/yiisoft/yii2/web/Application.php(84):
yii\base\Module->runAction('password/update', Array)
#7 /data/vendor/yiisoft/yii2/base/Application.php(375):
yii\web\Application->handleRequest(Object(yii\web\Request))
#8 /data/frontend/web/index.php(17): yii\base\Application->run()
#9 {main}

Here is the same log event from syslog:
22 Jul 2016 22:17:20.151  {
    "env": "staging",
    "user"<EMAIL_ADDRESS>    "level": "error",
    "category": "application",
    "message": {
        "action": "save password",
        "employee_id": "12345",
        "status": "error",
        "error": "Unable to update user's password, server error.",
        "previous": {
            "code": 2,
            "message": "ldap_mod_replace(): Modify: Constraint violation"
        }
    }
}

What is the expected result?
I would expect the email to look the same as the syslog message and not include any stack trace.
What do you get instead?
A stack trace is included in the email message.
Additional info

Q
A

Yii version
2.0.6

PHP version
7.0.4

Operating system
Ubuntu 16.04

!forum!
гугли лдап проблему ;) ldap_mod_replace(): Modify: Constraint violation
https://www.google.ru/search?q=ldap_mod_replace():+Modify:+Constraint+violation&ie=utf-8&oe=utf-8

@pstddc I'm not sure what you mean by your comment. I'm not concerned about the LDAP error, that part is irrelevant, my concern is about the stack trace being present in the email even though it is configured not to be.

@fillup i think it may happen due debug mode... try it plz.

Thanks @RSalo , its already off:
defined('YII_DEBUG') || define('YII_DEBUG', false);
defined('YII_ENV') || define('YII_ENV', 'production');

I'm afraid this is expected behavior. Every logged exception looks like this.
Stack trace is the part of Exception message because of its __toString() implementation and because of this it's being logged regardless a traceLevel value.
I have not checked this but I think Logger could check the type of $message and fetch only what's needed in case of exception and/or use its stack trace instead of building another one.
This might be a secure warning case as well because of this password showing stack trace line...

Thanks @bizley but I dont think that is really right. It seems to be the problem is with the Target::formatMessage function on line 257 in that it checks if traces are present and then includes them without checking what level of them should be included. I'll see if I can work on a PR to fix this.
Do you agree this is a bug?
And now I see the reason the traces are not in the syslog messages is because the SyslogTarget overrides this method and doesn't even check for traces. So that seems to be another bug that if you had traceLevel set to 3 and used syslog as a target you'd get no trace at all.

@fillup This is not the case. Traces are not present when traceLevel is set to 0. You can verify this by checking if condition at line 258 is met.
This is exception's __toString() issue and you can verify this by calling echo $text; die; after line 247 (when Exception is about to be logged) - stack trace is a part of $text there.

Simple
if ($message instanceof \Exception) {
    $message = $message->getMessage();
}

at the beginning of Logger::log() method would be enough to get rid of the unexpected stack trace (also it can be moved to $traces there maybe) but I'm not sure if this is something that Yii team wants.

@bizley I see what you mean now. I didn't realize that the exception itself also caused a message. In Target::formatMessage on line 252 I think is really my problem. when the message is an exception type it is just cast to string which serializes the whole thing. So now I'm thinking perhaps the fix is really a combination of yii\base\Exception overriding the \Exception::__toString() function to include an optional $traceLevel parameter that could serialize the exception with or without the trace as appropriate. That would allow the call in Target to not just cast to string but explicitly call __toString with the configured $traceLevel value. With that in place the $traceLevel parameter would have more meaning on the logger component.
What do you think of that approach? I think in the mean time I'll write my own email target and modify the existing to do like you suggested of just getting the message and probably code from the exception.

@fillup Your own EmailTarget solution is indeed good idea for now. As for the idea of fixing or not fixing the exception message logging we need to wait for Yii core developers.

@yiisoft/core-developers need opinions/

The traceLevel configuration of the logger is for normal messages so you can get an idea where they where generated in case the error message itself is not clear enough. The stacktrace that is logged from exceptions is completely different and very relevant in case an exception is thrown. Imo stack trace of exceptions should not be truncated. It makes debugging much harder.

What about truncating the message to just a message text and moving the exception stack trace to Logger stack trace (so it doesn't have to be built again)?

the purpose of the logger trace is different from exception trace. I would want to limit the logger trace but not limit the exception trace so they should be configurable separately.

I'd be fine with configuring them separately since they are different, but it does seem important that we be able to exclude or limit the trace on exceptions since they can include sensitive information like credentials.

in which case can exception trace contain sensitive information? Can you elaborate on that part? also you do not know in which level that may occur so it is unclear to me how limiting the trace helps in that case.

@cebe I noticed this was a problem when I was getting an exception writing to an ldap server and the trace included the function call which was updating a user's password and the trace included the password in clear text. I can also imagine this happening with a database connection exception including database credentials. Also, the definition of sensitive is relative so being able to prevent the trace from being logged is important. The ability to limit the trace is primarily to prevent it from being included at all. So a boolean includeTrace config option would be sufficient for my needs, but I thought to be consistent with normal message logging being able to specify a level and/or use the same existing config would be better.

@fillup the issue is that such sensitive data could be in any level of the trace starting from the very error so limiting trace depth to certain number won't solve this issue.

@samdark that is fine, but do you agree a configuration option should be available to prevent trace from being logged at all?

That's level of zero.

Exactly, but your comment about "limiting trace depth to a certain number wont solve the problem", it would if the number was zero so I was just getting at confirming such an option would be acceptable. Thanks for confirming.

No, it still would not since the data could be in the error message itself.

The option is, of course, acceptable.

Won't be implemented in 2.0.


Improve search by using Zotero's sqlite database

Currently the search through the API is severely limited. For example, a search for <author> <year> returns no matches, even if there are a number of items that fit the criteria.
It would be better to use Zotero's sqlite database in read-only mode (if available) to perform these searches.

The application now uses a local SQLite database with an FTS4 index for faster and more powerful full-text queries. The full query syntax can be looked up in the SQLite documentation, but the most important features are probably prefix search via prefix* and boolean combination of terms with AND/OR.
Indexed fields are currently:

Key
Better-Bibtex citation key (if available)
Creators
Title
Date

If there's demand for more fields, please open an issue.


Add documentation about major changes between V1 and V2

[x] add documentation for new installation (pip install cookiecutter-data-science) and new initiation (ccds )
[ ] add table of options with links to the project documentation in our docs
~add documentation for passing partial configs and only getting asked the unanswered questions!~ (see #325 in 2.1)

Last item in PR #350


[WIP] Test master PR

Will be removed
Signed-off-by: Vu Dinh<EMAIL_ADDRESS>
Description of the change:
Motivation for the change:
Reviewer Checklist

[ ] Implementation matches the proposed design, or proposal is updated to match implementation
[ ] Sufficient unit test coverage
[ ] Sufficient end-to-end test coverage
[ ] Docs updated or added to /doc
[ ] Commit messages sensible and descriptive

/close


Import SOCIAL_AUTH_PIPELINE from helusers, fixing AD groups synching with login

would not by synched and UID would be in wrong format

Codecov Report

Merging #106 into master will decrease coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #106      +/-   ##
==========================================
- Coverage   97.98%   97.93%   -0.05%
==========================================
  Files          96       96
  Lines        5899     5770     -129
  Branches      226      226
==========================================
- Hits         5780     5651     -129
  Misses        102      102
  Partials       17       17

Impacted Files
Coverage Δ

city-infrastructure-platform/settings.py
78.04% <100.00%> (+0.27%)
:arrow_up:

azure_client_ip/middleware.py
68.75% <0.00%> (-1.84%)
:arrow_down:

traffic_control/views/_common.py
93.33% <0.00%> (-0.22%)
:arrow_down:

traffic_control/models/traffic_sign.py
98.72% <0.00%> (-0.01%)
:arrow_down:

traffic_control/models/mount.py
99.17% <0.00%> (-0.01%)
:arrow_down:

traffic_control/views/mount.py
100.00% <0.00%> (ø)

traffic_control/views/barrier.py
100.00% <0.00%> (ø)

traffic_control/views/signpost.py
100.00% <0.00%> (ø)

azure_client_ip/test_middleware.py
100.00% <0.00%> (ø)

traffic_control/views/road_marking.py
100.00% <0.00%> (ø)

... and 23 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 1dd2681...6aa43df. Read the comment docs.


Hover does not work in table type definition keys

Repro:
--!strict

-- Hovering over Foo or its member keys
type Foo = {
	Bar: string,
	Baz: number,
}

-- Hovering over typeof or its argument
-- Note: this only seems to happen with builtins
local num = 123
if typeof(num) == "number" then end

Unfortunately, there is no clean way to currently get the type information when hovering inside a type table.
This is reliant on Luau updates, unless we apply a hacky workaround. Going to see if its worthwhile later


SQL Editor Background Color

Since upgrading to 6.3.2, I'm not able to change the SQL Editor background color

Never mind. My I recently changed my resolution and the apply button was hidden.


Create benchmarks / profiling

Potential starting point: https://opensourc.es/blog/benchmarking-and-profiling-julia-code/

You could also look at Catlab for one example of how to set up the benchmark infrastructure: https://github.com/AlgebraicJulia/Catlab.jl/tree/master/benchmark

addressed by #11


Develop a Roadmap for Integrations

We want to expand MLTE to integrate with various third-party libraries for ML. We should develop a roadmap for integration that prioritizes specific functionality in specific libraries.

No longer relevant on account of package refactor.


Meta duplicate

Describe the bug
Meta duplicate is back
Reproduction
https://github.com/thousandsofraccoons/double-meta
Logs
No response
System Info
System:
    OS: Windows 10 10.0.19043
    CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
    Memory: 2.39 GB / 15.87 GB
  Binaries:
    Node: 16.0.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.10.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (107.0.1418.26)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.86
    @sveltejs/adapter-vercel: ^1.0.0-next.81 => 1.0.0-next.81
    @sveltejs/kit: next => 1.0.0-next.532
    svelte: ^3.46.0 => 3.52.0
    vite: ^3.1.0 => 3.2.2

Severity
serious, but I can work around it
Additional Information
No response

Could you be more specific about what you expect which is wrong? The reproducible without more details/context makes it hard to look into this.

@dummdidumm Hello, Simon. I'm not sure why it happens exactly, my guess is because of svelte-intl-precompile together with SSR redirect to locale route.
So basically <svelte:head> gets duplicated in such configuration as in the repo.

The problem is the HTML minifier in the handle hook which also removes comments. It seems that Svelte uses a header start/end comment to check its integrity. If that comment is removed, the hydration algorithm thinks that header is gone and appends it, duplicating the content.
The quick fix is to set the removeComments option to false.
@benmccann @tanhauhau I believe you were involved in some of the meta/header fixes, is there anything we can here other than telling people to not remove these comments?

@dummdidumm it did the trick, thank you

you mean adding something else other than comments to do the trick?

probably that would be the solution, yes. I'm not sure though what to replace it with. Some data-hydrate-head-start/end attribute on the first and last element? Are data- attributes valid on these header tags?

My thought was whether we could add a dev mode warning that would warn no comments were found. I'm not sure if there's always at least one comment, but I suppose we could add a dummy comment if needed

So you're stance on this is "the minifier shouldn't remove those comments, and we should warn about it at dev time"?

So you're stance on this is "the minifier shouldn't remove those comments, and we should warn about it at dev time"?

Yeah. It seems the easiest/safest fix. I think we use comments elsewhere for hydration

If you pre-rendered static site ships without any JavaScript (export const csr = false) and therefore hydration isn't needed, then you can turn it on.


doc: dt: split into multiple pages and add overarching design goals

Zephyr's devicetree documentation has gotten a bit unwieldy, and is missing a single page which defines the overall goals of the effort.
Fix that by splitting it into multiple pages, doing a bit of cleanup on the result, and adding that single page.

Fix that by splitting it into multiple pages, doing a bit of cleanup on the result, and adding that single page.

Just my attempt based on meeting minutes and other discussions, of course :).

I added a patch to satisfy checkpatch, but don't want to do too much more cleanup work in this PR. I will send a separate PR on top of this one with more cleanups.


Can i use only deconz without hue bridge?

Can i use only deconz? When i try to use only user id deconz, homebridge ask to me hue button press link.

What’s your config.json?

"platforms" : [
{
"nativeHomeKitSensors" : false,
"host" : "",
"waitTimeUpdate" : 20,
"nativeHomeKitLights" : false,
"rules" : false,
"lights" : true,
"excludeSensorTypes" : [
"CLIP",
"Geofence",
"Daylight"
],
"schedules" : false,
"timeout" : 5,
"heartrate" : 2,
"group0" : false,
"wallSwitch" : false,
"sensors" : true,
"platform" : "Hue",
"rooms" : false,
"lowBattery" : 25,
"groups" : false,
"waitTimeResend" : 300,
"users" : {
"00212EFFFF040DBC" : "F418F196A9",
"001788FFFE639977" : "FmNZhFmHidRzGNjhXIOmNiUM9mCQMEuuSD5GR3Df"
},
"parallelRequests" : 10,
"resource" : true
}

Looks like you have both deCONZ and a Hue bridge.  Use the host setting to specify only the hostname or ip address of deCONZ.  See https://github.com/ebaauw/homebridge-hue/wiki/Configuration.

Oh perfect, with host function specified it works. Very thanks.


[Flink] Flink CDC Whole Library Synchronization

This procedure tests that the Whole database synchronization capture table must contain a primary key
Later, functions such as automatic table creation and automatic synchronization of table structure will be realized

if includeSchemaChanges = true, A null pointer exception will be thrown


OCM-3005: Fix allow private cluster without private link

Change the terraform provider logic to align with the logic in the backend
The following cases are allowed:

private cluster with private link
public cluster without private link
private cluster without private link

Public cluster with private link is not allowed

Critical correction:
The following cases are allowed:
private cluster with private link
public cluster without private link
Public cluster with private link
Private cluster without private link is not allowed

Critical correction:
The following cases are allowed:
private cluster with private link public cluster without private link Public cluster with private link Private cluster without private link is not allowed

We do not support a  "Public cluster with private link"
This PR looks good to me.

/lgtm
/approve


Modules

Where else have you looked for answers to this question?
Google
Share your question with as much detail as possible?
Hello
I can't figure out how to work with modules. Can you use them to link quests with other plugins? Or how does it work?
If applicable, which class or method is this in reference to?

Can you use them to link quests with other plugins?

Yes.
What modules are:
https://github.com/PikaMug/Quests/wiki/Casual-‐-Modules
How to create modules:
https://github.com/PikaMug/Quests/wiki/Master-‐-Custom-Quest-API


Hosting

Added button to specify address announcing
To be done in a future PR: Use Jquery across plugins where convenient and load up popup from a central html file to reduce redundancy

LGTM


troubleshooting actions

turns out it was hitting an API rate limit on test runs. Have updated code with options to support rate limiting


How to set up Email Notification when new Web Response

INSERT SHORT DESCRIPTION EXPLAINING THE HIGH-LEVEL REASON FOR THE NEW ISSUE HERE.
Current behavior

Expected behavior

Steps to replicate behavior

Screenshots
Current
Expected

Hi @tim41916
We are actually in the process of implementing this in our public backend REST service. You can look forward to it being released in the following months.
To answer your question, it is not actually possible to send an email directly from Javascript. You would have to set up a backend service to do it for you. For more information, see http://stackoverflow.com/questions/7381150/how-to-send-an-email-from-javascript. But luckily, we are creating and maintaining this service for you :)

It looks like emails are now going out. My question now is if there's any way to control the content of the emails: what's being sent now could be made much more useful with this ability. For example, putting the job title in the subject line and putting candidate information in the body instead of the job description.

Hey Dave,
Currently there is not a way to edit that within the Career Portal files since this is on Bullhorn's end.  That will have to be implemented in to the Bullhorn Service itself.

Ha - I had asked a Bullhorn support person first, figuring that was where this was controlled, and he told me that they had no control over it and I should ask here. Ah well, thanks for your help - I'll try to find a Bullhorn support person who knows more.

Hey, @DaveGarlock—I'm going to follow up with our internal support team directly and try to identify where our conversations broke down.
I'm sorry that you haven't received the correct information, but I will be sure to address this and once I have more information I'll reach out to you directly or post a follow up. Thanks for your patience!

Update: @DaveGarlock I've talked with our CS team and they will be reaching out to you this afternoon or first thing tomorrow morning with additional information. Thanks again for your patience.

That sounds great. Thank you.


fix: Keepalive a user data stream to prevent a time out

If the stream is open, ping it every DEFAULT_USER_TIMEOUT:
Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 30 minutes (Which is the DEFAULT_USER_TIMEOUT).
Fixes #712
Fixes #440

Hello @sammchardy can you please take some time to review this work 🙏
Thank you for everything  you have already done 👏

thanks @guillemavila


WASD to move, L to restart/go to next level
Code
Check off the items that are true.

[x The game was made using the Sprig editor.
[x] The game is placed in the in the /games directory.
[x] The code is significantly different from all other games in the Sprig gallery (except for games labeled "demo").
[x] The game runs without errors.
[x] The name of the file/game contains only alphanumeric characters, -s, or _s.
[x] The game name is not the same as the others from gallery

Thanks for your PR!

I finished the first level, it said level cleared, and then nothing.
Please make the game not so disappointing to the player - they want to feel like they spent their time for something worthwhile!

Did you hit the 'L' key?

Aha - gotcha - given that, congratz!  Neat game!  If you're a teenager, and haven't already received one, please fill in this form to receive a Sprig device of your very own!  Also feel free to join Hack Club's Slack and share your creation in the #sprig channel!


Add subcommand to print output

Right now there is no way to get the output of root terraform modules that doesn't involve running terraform manually. It would be nice if there was an astro output command, maybe even an optional flag for apply to print the output of each module when they finished.
astro output --config x.yaml --modules y,z
#
astro apply --output

You can view the logs of all previous commands that were run by manually looking in the .astro directory:
.astro/<sessionID>/<module>/logs/

There should be a log file in there corresponding to the command run (e.g. plan.log or apply.log).
However, I agree it would be good to have a way to navigate these easily through the astro CLI. I imagine being able to go back in time and see the output from any previous command that has been run, e.g.:
# List sessions
astro ls

# Show logs for session
astro output [session id] [--modules <module,names>]


Fix AsyncMediaProcessTrack to use asyncio instead of threading

Resolves #392

It seems this method has performance issue.


Stack-based Buffer Overflow in the dname_concatenate() function

Hi,
While fuzzing nsd-checkzone with American Fuzzy Lop, I found a Stack-based Buffer Overflow in the dname_concatenate() function, in dname.c L464.
Attaching a reproducer (gzipped so GitHub accepts it), issue can be reproduced by running:
nsd-checkzone all.rr zone02
zone02.gz
=================================================================
==7395==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffcd6a9763f at pc 0x0000004dadbc bp 0x7ffcd6a97510 sp 0x7ffcd6a96cc0
WRITE of size 8 at 0x7ffcd6a9763f thread T0
#0 0x4dadbb in __asan_memcpy (/home/fcambus/nsd/nsd-checkzone+0x4dadbb)
#1 0x534251 in dname_concatenate /home/fcambus/nsd/dname.c:464:2
#2 0x69e61f in yyparse /home/fcambus/nsd/./zparser.y:1024:12
#3 0x689fd1 in zonec_read /home/fcambus/nsd/zonec.c:1623:2
#4 0x6aedd1 in check_zone /home/fcambus/nsd/nsd-checkzone.c:61:11
#5 0x6aea07 in main /home/fcambus/nsd/nsd-checkzone.c:127:2
#6 0x7fa60ece6b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
#7 0x41c1d9 in _start (/home/fcambus/nsd/nsd-checkzone+0x41c1d9)
Address 0x7ffcd6a9763f is located in stack of thread T0 at offset 287 in frame
#0 0x533f8f in dname_concatenate /home/fcambus/nsd/dname.c:458
This frame has 1 object(s):
[32, 287) 'temp' (line 459) <== Memory access at offset 287 overflows this variable
HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext
(longjmp and C++ exceptions are supported)
SUMMARY: AddressSanitizer: stack-buffer-overflow (/home/fcambus/nsd/nsd-checkzone+0x4dadbb) in __asan_memcpy
Shadow bytes around the buggy address:
0x10001ad4ae70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10001ad4ae80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10001ad4ae90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10001ad4aea0: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 00
0x10001ad4aeb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x10001ad4aec0: 00 00 00 00 00 00 00[07]f3 f3 f3 f3 f3 f3 f3 f3
0x10001ad4aed0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10001ad4aee0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10001ad4aef0: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 00
0x10001ad4af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10001ad4af10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable:           00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone:       fa
Freed heap region:       fd
Stack left redzone:      f1
Stack mid redzone:       f2
Stack right redzone:     f3
Stack after return:      f5
Stack use after scope:   f8
Global redzone:          f9
Global init order:       f6
Poisoned by user:        f7
Container overflow:      fc
Array cookie:            ac
Intra object redzone:    bb
ASan internal:           fe
Left alloca redzone:     ca
Right alloca redzone:    cb
==7395==ABORTING

This issue got assigned CVE-2019-13207.

Thank you for the detailed report!  That is very useful, the check on the max length of the concatenate was missing here.  The commit adds it.
Reading zone files happens from the disk configuration (I mean, this is not data received in a DNS packet). There was an assertion guarding it too.  (I.e. I am thinking the severity is low enough to wait for the next release and not intrude on the release-candidate in-progress).


[WIP] Add GATT Characteristics for Indoor Positioning Service

Issue
#58
What does this PR Do?
Added GATTLongitude, GATTLatitude and GATTLocalNorthCoordinate
Where should the reviewer start?
GATTLongitud.swift, GATTLatitude.swift, GATTLocalNorthCoordinate.swift

Result of Integration 1
Duration: 10 minutes and 58 seconds
Result: Perfect build! All 199 tests passed. :+1:
Test Coverage: 86%

Result of Integration 3
Duration: 10 minutes and 19 seconds
Result: Perfect build! All 200 tests passed. :+1:
Test Coverage: 86%

Result of Integration 3
Duration: 10 minutes and 19 seconds
Result: Perfect build! All 200 tests passed. :+1:
Test Coverage: 86%

Result of Integration 3
Duration: 10 minutes and 19 seconds
Result: Perfect build! All 200 tests passed. :+1:
Test Coverage: 86%

Result of Integration 4
Duration: 10 minutes and 19 seconds
Result: Perfect build! All 200 tests passed. :+1:
Test Coverage: 86%

Result of Integration 4
Duration: 10 minutes and 19 seconds
Result: Perfect build! All 200 tests passed. :+1:
Test Coverage: 86%

Result of Integration 5
Duration: 10 minutes and 54 seconds
Result: Perfect build! All 201 tests passed. :+1:
Test Coverage: 86%

Result of Integration 7
Duration: 11 minutes and 44 seconds
Result: Perfect build! All 201 tests passed. :+1:
Test Coverage: 86%

Result of Integration 8
Duration: 10 minutes and 12 seconds
Result: Perfect build! All 202 tests passed. :+1:
Test Coverage: 86%

Result of Integration 8
Duration: 10 minutes and 12 seconds
Result: Perfect build! All 202 tests passed. :+1:
Test Coverage: 86%

Result of Integration 8
Duration: 10 minutes and 12 seconds
Result: Perfect build! All 202 tests passed. :+1:
Test Coverage: 86%

Result of Integration 8
Duration: 10 minutes and 12 seconds
Result: Perfect build! All 202 tests passed. :+1:
Test Coverage: 86%


Regenerated paintings are randomized/deleted

When paintings are regenerated successfully they do not seem to regenerate as the same painting they started as. However, from my testing it seems that depending on the order things regenerate in, sometimes they attempt to regenerate before the blocks they were placed on and instead do not regenerate at all

fixed in 4.0.0


Knex Import //  table.vector is not a function

Having trouble following these instructions:
https://github.com/pgvector/pgvector-node/blob/master/tests/knex.test.mjs
I'm just creating the database schema (and not using pgvector anywhere else at the moment)
import pgvector from 'pgvector/knex';
Doesn't work for me (looks like the code to extend knex is not executed).
Just using import 'pgvector/knex'; fixes it for me.

Hi @MichaelVIU, thanks for sharing. I'm not sure how to reproduce (the test case runs fine), so it may be something specific to your setup.


Feature-Task-44: Updated GUI of userPage

#44 Description
Commented "this.state.isUser" in order to show buttons because isUser is always false (properties of isUser are not defined yet).  Added unfollow and message button, counts of posts, followers, following (all set to 0 because undefined). Potential features also added like bio, friends who follow same user and image section.
Issue reference: #{44}
Branch and Commit name must follow this template
Branch template: {ISSUE TYPE}-{Issue number}/{desciption_of_branch}
Commit template: {ISSUE TYPE}-{Issue number}: {description of changes}

Type of change
Please delete options that are not relevant.

[x] FEAT (Add a new feature to the project)

Checklist:

[x] My pull request references the issue in the comments
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Test

[x] Ran make test-unit and all test passes
[x] Ran make test-coverage and coverage is atleast 90%

close du to the fact that the branch was set to protected


Are you looking for help with PCIe fuzzing?

I finally got my CrossLink-NX evaluation board (with a LICFL-40-8BG400C) and I put together a PCIe x1 to SMA board (https://github.com/teknoman117/PCIEX1-SMA) which I'm currently waiting on to arrive along with all of the SMA connectors and cables. Hopefully everything will be here by the end of the month.
I hope to be able to get a super simple example with the Lattice IP core working soon after assembling everything (basically just hook a GPIO bridge to the AHB-Lite master). After figuring out if it works at all, I'll try to port litepcie to it.
Either way, I just wanted to reach out to say that if PCIe support hasn't been figured out yet due to a lack of PCIe capable hardware, I will soon be able to run whatever tests you want.

Hi! There's a WIP fuzzer for PCIe in https://github.com/gatecat/prjoxide/tree/master/fuzzers/LIFCL/162-pcie-ipconfig, however, the results aren't pushed because I was seeing some dubious output, for example:
+    "BAR_INDEX_CFG4_A": (
+      bits: [
+        [(frame:16823,bit:0,invert:false,),(frame:20919,bit:0,invert:false,),(frame:25015,bit:0,invert:false,),(frame:29111,bit:0,invert:false,),],
+        [(frame:16823,bit:1,invert:false,),(frame:20919,bit:1,invert:false,),(frame:25015,bit:1,invert:false,),(frame:29111,bit:1,invert:false,),],
+        [(frame:16823,bit:2,invert:false,),(frame:20919,bit:2,invert:false,),(frame:25015,bit:2,invert:false,),(frame:29111,bit:2,invert:false,),],
+      ],
+    ),
+    "BAR_INDEX_CFG4_B": (
+      bits: [
+        [],
+        [],
+        [],
+      ],
+    ),
+    "BAR_INDEX_CFG4_C": (
+      bits: [
+        [],
+        [],
+        [],
+      ],

where you can see BAR_INDEX_CFG4_A affects four bits but _B and _C affect none. If you have designs that work in Radiant, that's already useful, as I suspect there's some non-obvious interaction between parameters going on.