text:
OAuth Problem with using as REST API

Hi all,
I have just install parse-server from last version. When I using http://localhost:1337/users on Rest clinet  with this headers;
X-Parse-Application-Id: 123456
X-Parse-REST-API-Key: 123456
X-Parse-Revocable-Session: 1
Content-Type: application/json
and  Payload data like that;
{
"oauth": {
"twitter": {
"consumer_key": "my_twitter_application_consumer_key",
"consumer_secret": "my_twitter_application_consumer_scret",
"auth_token": "My_users_Comes_outh_own_token",
"auth_token_secret":"My_users_Comes_token_secrets",
"id": "4186028951"
}
}
}
finaly parse server returns;
{
"code": 200
"error": "bad or missing username"
}
----------------------------------------- 0 ---------------------------------------------------------
this code works on parse.com . What is problem ?

Do you have your OAuth keys entered in Parse Server Config?

Yes , I have and configured parse server config. I have also send this via
request header.
On Monday, February 22, 2016, Maksim Petriv notifications@github.com
wrote:

Do you have your OAuth keys entered in Parse Server Config?
—
Reply to this email directly or view it on GitHub
https://github.com/ParsePlatform/parse-server/issues/560#issuecomment-187230828
.

@talkaboutdesign what does your parse server configuration look like?

My parse server configuration is like that;
#!/usr/bin/env node
var express = require('express');
var ParseServer = require("../lib/index").ParseServer;
var app = express();
var options = {};
if (process.env.PARSE_SERVER_OPTIONS) {
options = JSON.parse(process.env.PARSE_SERVER_OPTIONS);
} else {
options.databaseURI = 'mongodb://localhost:27017/dev';
options.cloud = process.env.PARSE_SERVER_CLOUD_CODE_MAIN;
options.collectionPrefix = process.env.PARSE_SERVER_COLLECTION_PREFIX;
// Keys and App ID
options.appId = '123456';
options.clientKey = '123456';
options.restAPIKey = '123456';
options.dotNetKey = '123456';
options.javascriptKey = '123456';
options.dotNetKey = '123456';
options.masterKey = '123456';
options.fileKey = '123456';
// Comma separated list of facebook app ids
var facebookAppIds = process.env.PARSE_SERVER_FACEBOOK_APP_IDS;
if (facebookAppIds) {
facebookAppIds = facebookAppIds.split(",");
options.facebookAppIds = facebookAppIds;
}
var oauth = process.env.PARSE_SERVER_OAUTH_PROVIDERS;
if (oauth) {
options.oauth = JSON.parse(oauth);
};
}
var mountPath = process.env.PARSE_SERVER_MOUNT_PATH || "/";
var api = new ParseServer(options);
app.use(mountPath, api);
var port = process.env.PORT || 1337;
app.listen(port, function() {
console.log('parse-server-example running on http://localhost:'+ port +
mountPath);
});

parse server is working locally. I aim is linking users with twitter
authData via RESt API. (
https://parse.com/docs/rest/guide#users-linking-users)
Normally this  technic is working on parse.com but locally not.
curl -X POST
-H "X-Parse-Application-Id: 123456"
-H "X-Parse-REST-API-Key: 123456"
-H "X-Parse-Revocable-Session: 1"
-H "Content-Type: application/json"
-d '{
"authData": {
"twitter": {
"id": "12345678",
"screen_name": "ParseIt",
"consumer_key": "SaMpLeId3X7eLjjLgWEw",
"consumer_secret": "SaMpLew55QbMR0vTdtOACfPXa5UdO2THX1JrxZ9s3c",
"auth_token":
"12345678-SaMpLeTuo3m2avZxh5cjJmIrAfx4ZYyamdofM7IjU",
"auth_token_secret": "SaMpLeEb13SpRzQ4DAIzutEkCE2LBIm2ZQDsP3WUU"
}
}
}'
http://localhost:1337/users
On 22 February 2016 at 19:49, Florent Vilmart notifications@github.com
wrote:

@talkaboutdesign https://github.com/talkaboutdesign what does your
parse server configuration look like?
—
Reply to this email directly or view it on GitHub
https://github.com/ParsePlatform/parse-server/issues/560#issuecomment-187290388
.

Kkaradag2 you're not supposed to set your configuration in bin/parse-server.
This is why it's not working correctly.
Please follow the installation instructions again in the README.md

All functions is working with current configuration.  For example I try to
create user with REST API
curl -X POST
-H "X-Parse-Application-Id: 123456"
-H "X-Parse-REST-API-Key: 123456"
-H "X-Parse-Revocable-Session: 1"
-H "Content-Type: application/json"
-d
'{"username":"cooldude6","password":"p_n7!-e8","phone":"415-392-0202"}'
http://localhost:1337/users
and parse server return acceptable result with sessionID;
{
"objectId": "zr7t9jE4Xb"
"createdAt": "2016-02-23T13:18:46.776Z"
"sessionToken": "r:9ead3b07e2855b4e7a4295670fff1e32"
}
I want to use linking user function. Previously I explain, sent twitter
access_token, screet and register user and retorn a sessionId as like as
parse.com  but if I sent like that data
curl -X POST
-H "X-Parse-Application-Id: 123456"
-H "X-Parse-REST-API-Key: 123456"
-H "X-Parse-Revocable-Session: 1"
-H "Content-Type: application/json"
-d '{
"authData": {
"twitter": {
"id": "12345678",
"screen_name": "ParseIt",
"consumer_key": "SaMpLeId3X7eLjjLgWEw",
"consumer_secret": "SaMpLew55QbMR0vTdtOACfPXa5UdO2THX1JrxZ9s3c",
"auth_token":
"12345678-SaMpLeTuo3m2avZxh5cjJmIrAfx4ZYyamdofM7IjU",
"auth_token_secret": "SaMpLeEb13SpRzQ4DAIzutEkCE2LBIm2ZQDsP3WUU"
}
}
}'
http://localhost:1337/users
parse server returns internal server error
at validateAuthData

(C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-server\lib\oa
uth\twitter.js:7:16)
at RestWrite.handleOAuthAuthData
(C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-
server\lib\RestWrite.js:262:10)
at RestWrite.validateAuthData
(C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-ser
ver\lib\RestWrite.js:166:19)
at
C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-server\lib\RestWrite.js:80:18
at process._tickDomainCallback (node.js:407:9)
On 23 February 2016 at 14:23, Florent Vilmart notifications@github.com
wrote:

Kkaradag2 you're not supposed to set your configuration in
bin/parse-server.
This is why it's not working correctly.
Please follow the installation instructions again in the README.md
—
Reply to this email directly or view it on GitHub
https://github.com/ParsePlatform/parse-server/issues/560#issuecomment-187678973
.

C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-server\src>node
run.js
parse-server-example running on port 1337.
Uncaught internal server error. [TypeError: Cannot read property
'consumer_key' of undefined] TypeEr
ror: Cannot read property 'consumer_key' of undefined
at new OAuth
(C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-server\lib\oauth\OAu
th1Client.js:5:30)
at validateAuthData
(C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-server\lib\oa
uth\twitter.js:7:16)
at RestWrite.handleOAuthAuthData
(C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-
server\lib\RestWrite.js:262:10)
at RestWrite.validateAuthData
(C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-ser
ver\lib\RestWrite.js:166:19)
at
C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-server\lib\RestWrite.js:80:18
at process._tickDomainCallback (node.js:407:9)
Uncaught internal server error. [TypeError: Cannot read property
'consumer_key' of undefined] TypeEr
ror: Cannot read property 'consumer_key' of undefined
at new OAuth
(C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-server\lib\oauth\OAu
th1Client.js:5:30)
at validateAuthData
(C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-server\lib\oa
uth\twitter.js:7:16)
at RestWrite.handleOAuthAuthData
(C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-
server\lib\RestWrite.js:262:10)
at RestWrite.validateAuthData
(C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-ser
ver\lib\RestWrite.js:166:19)
at
C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-server\lib\RestWrite.js:80:18
at process._tickDomainCallback (node.js:407:9)
On 23 February 2016 at 15:25, Kemal Karadag karadagkemal76@gmail.com
wrote:

All functions is working with current configuration.  For example I try to
create user with REST API
curl -X POST
-H "X-Parse-Application-Id: 123456"
-H "X-Parse-REST-API-Key: 123456"
-H "X-Parse-Revocable-Session: 1"
-H "Content-Type: application/json"
-d '{"username":"cooldude6","password":"p_n7!-e8","phone":"415-392-0202"}'

http://localhost:1337/users
and parse server return acceptable result with sessionID;
{
"objectId": "zr7t9jE4Xb"
"createdAt": "2016-02-23T13:18:46.776Z"
"sessionToken": "r:9ead3b07e2855b4e7a4295670fff1e32"
}
I want to use linking user function. Previously I explain, sent twitter
access_token, screet and register user and retorn a sessionId as like as
parse.com  but if I sent like that data
curl -X POST
-H "X-Parse-Application-Id: 123456"
-H "X-Parse-REST-API-Key: 123456"
-H "X-Parse-Revocable-Session: 1"
-H "Content-Type: application/json"
-d '{
"authData": {
"twitter": {
"id": "12345678",
"screen_name": "ParseIt",
"consumer_key": "SaMpLeId3X7eLjjLgWEw",
"consumer_secret":
"SaMpLew55QbMR0vTdtOACfPXa5UdO2THX1JrxZ9s3c",
"auth_token":
"12345678-SaMpLeTuo3m2avZxh5cjJmIrAfx4ZYyamdofM7IjU",
"auth_token_secret":
"SaMpLeEb13SpRzQ4DAIzutEkCE2LBIm2ZQDsP3WUU"
}
}
}'
http://localhost:1337/users
parse server returns internal server error
at validateAuthData

(C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-server\lib\oa
uth\twitter.js:7:16)
at RestWrite.handleOAuthAuthData
(C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-
server\lib\RestWrite.js:262:10)
at RestWrite.validateAuthData
(C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-ser
ver\lib\RestWrite.js:166:19)
at
C:\Users\kemal.karadag\AppData\Roaming\npm\node_modules\parse-server\lib\RestWrite.js:80:18
at process._tickDomainCallback (node.js:407:9)
On 23 February 2016 at 14:23, Florent Vilmart notifications@github.com
wrote:

Kkaradag2 you're not supposed to set your configuration in
bin/parse-server.
This is why it's not working correctly.
Please follow the installation instructions again in the README.md
—
Reply to this email directly or view it on GitHub
https://github.com/ParsePlatform/parse-server/issues/560#issuecomment-187678973
.

Please see the OAuth guide here: https://github.com/ParsePlatform/parse-server/wiki/Parse-Server-Guide#oauth

authors: flovilmart kkaradag2 talkaboutdesign


text:
Properly allow fields of type 'File' within _GlobalConfig

Fixes #3457

Looks like the test failures are unrelated to my change and there is a PR out to improve test flakiness, so I will push again later to re-trigger the build

It would be appreciated if you could also add support for GeoPoints (they have the same issue).
Also, could you add a test to https://github.com/ParsePlatform/parse-server/blob/master/spec/ParseGlobalConfig.spec.js that adds a file/geopoint so that further rewrites don't cause this fix to disappear.

@aontas sure, ill make the update for GeoPoint as well and update the PR.
I added a test for the file that I touched because I noticed that if I tried to repro the issue through ParseGlobalConfig.spec.js it didn't repro (so thus my test to demonstrate the failure passed from the start).  I didn't have a chance to look into it too deeply but i assume there is some difference in the testing case (or in the adapter) that differs from the prod behavior.

@mross22 thanks for getting onto that problem, however at the moment, I believe the implementation is not bullet proof, we'll need something else. I'll have a look later today for a proper suggestion of the implementation.

[ ]

[ ]
https://goo.gl/photos/7vzAGhfcLyXenWnNA

#https://www.facebook.com/RijonOfficial #3458 @ # #
20151211-Public-Folder-Info-Paper.pdf

[ ]

851561_1453310544890258_460181509_n.pdf

@mross22 Thanks for the PR, actually I found the real issue behind it.
The Config object is stored with a _Schema with only one property, params, when we run updates, we use the 'dot' notation params.key1 = value, params.key2 = value2 in order to update only the required keys in the params object.
Hoewever, those 'keys', were considered 'topLevel' which is bad, as they clearly are NOT. (they's interior keys).
Interior keys do not suffer transformation, therefore the fix is cleaner and has a larger scope. There was actually a bug that would affect all updates using the dot notation.

source: gharchive/pull-request

authors: aontas flovilmart mross22 rijonkhan

repo: ParsePlatform/parse-server

license_type: permissive

license_source: github-api


text:
Make "Must first load config" into exception class

Is your feature request related to a problem? Please describe.
This:
parsl/dataflow/dflow.py:            raise RuntimeError('Must first load config')

should be its own exception class so that code trying to detect uninitialized parsl can detect it based on class, rather than on matching strings.
tagging @yadudoc who had some interest in error structuring.
Additional context
https://github.com/cytomining/CytoTable/pull/93

Thank you for the changes related to addressing this issue! The newly added ConfigurationError for cases where Parsl configuration has not yet been loaded provides greater specificity but requires parsing the Exception message in order to make use of it (using either str(ConfigurationException) or ConfigurationException.args[0] to filter the specific message). I'd like to suggest an additional Parsl-specific Exception (perhaps NoConfigurationError, with a parent Exception of ConfigurationException) to help further differentiate specific cases where Parsl configuration has not yet been loaded. See this PR for an example Parsl implementation of where this could make a difference.

@d33bs have a look at https://github.com/Parsl/parsl/pull/2890

Thank you @benclifford , I took a look and thought that looked great for this!

PRs #2878 and #2890 resolve this

source: gharchive/issue

repo: Parsl/parsl

license_source: bigquery


text:
Write Byte Array

Add write as byte option.
Currently support only ASCII encoding.

Done in V2

repo: PasanBhanu/tcp-asynchronous-client

license: MIT


text:
Regex Rule cannot handle all Expressions

Because of how this library handles regex (as a string, that is), not all regular expressions work.
Keep in mind that you leave out the Quanitifiers "/" "/g" etc and check your own regexes for JavaScript at regex101.

Seems like it has many problems with complex regex. I'm trying to validate with these regex:
For a simple name (example: Oscar):
/[ÁÉÍÓÚÑA-Z][a-záéíóúñ]+(\s+[ÁÉÍÓÚÑA-Z]?[a-záéíóúñ]+)*$/g
For a password (example: Abc12#45)
/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*])[0-9a-zA-Z!@#$%^&*]{8,}$/g
And is not working! :(

@VegaMex
Your first regex works:
https://jsfiddle.net/57pyawLn/4/
Keep in mind you are using JavaScript. Please validate your Regex! :) A good tool is regex101.

@PascaleBeier
I really needed the quantifiers, and the second one only works without the quotes, but if the library uses strings there's nothing to do. Thanks for reply.

see #65

authors: PascaleBeier VegaMex

repo: PascaleBeier/bootstrap-validate

license: mit


text:
BYOL momentum update function is defined, but not used in the training script

https://github.com/PatrickHua/SimSiam/blob/fca181ed52274088fb39b92f3a9a57f97858e5d3/models/byol.py#L84
I am trying to apply different contrastive learning algorithms to some other fields. I found your implementation is really elegant and useful. However, I found that the BYOL model will not call the momentum update function.
So, is it a BUG, or I have missed it?

I know ... I just can't figure out a way to fit this line of code in the training.

I know ... I just can't figure out a way to fit this line of code in the training.

@PatrickHua May I know about your concerns on the updating?

Bump on this. Is the function well defined but not implemented? It seems to me that you could put it in main.py but I'm not sure if that would mess anything up

anyone who solve this problem?

i added below code in "main.py"
if args.model == 'byol':              model.update_moving_average()             else : pass
and annotate line 80 in byol.py
#raise NotImplementedError('Please put update_moving_average to training')
please, check i'm right.

I'm also having this problem, there is a problem calling this function, what should I do, has anyone solved it

Yes, I also encountered this issue. During the training process of BYOL, when I trained several epochs, its accuracy remained zero, which is different from my training of SimSiam.  SimSiam achieved an accuracy of over 30% at the beginning of the training, and I also found that you did not call update_moving_average() function in your byol.py file, so I referred to other people's code and called it in main.py. The calling code is as follows:
If args. model. name=="byol":
model.module.update_ moving_ average()
Add the original  the parameters of the update_moving_average() function were set in advance, and the momentum update parameter was set to 0.996. Therefore, I rerun it several times, but after training several epochs, the accuracy remained zero. So, I'm not sure how to solve this problem.

I got it, during the training process, after several epochs were trained, the accuracy was 0. The reason for this is that the testing used here is the knn method, which needs to be set  parameter “knn_monitor:True” in the "./configs/byol_cifar10.yaml“ file in order to perform knn testing and avoid the phenomenon of an accuracy of 0. After the byol training is completed, a linear evaluation will be conducted, and this evaluation will not show an accuracy of 0. At first, I thought the byol model had collapsed (but in reality, the training loss was gradually decreasing).
setting “knn_monitor:True” in the "./configs/byol_cifar10.yaml“ file can solve this issue.
Therefore, the main issue is still the setting the parameter ”knn_monitor:True“ in the "./configs/byol_cifar10.yaml“ file The monitor parameter is true only.

Yes, I also encountered this issue. During the training process of BYOL, when I trained several epochs, its accuracy remained zero, which is different from my training of SimSiam. SimSiam achieved an accuracy of over 30% at the beginning of the training, and I also found that you did not call update_moving_average() function in your byol.py file, so I referred to other people's code and called it in main.py. The calling code is as follows:
If args. model. name=="byol": model.module.update_ moving_ average()
Add the original the parameters of the update_moving_average() function were set in advance, and the momentum update parameter was set to 0.996. Therefore, I rerun it several times, but after training several epochs, the accuracy remained zero. So, I'm not sure how to solve this problem.

Could you tell me where you add the calling code?

authors: Gitnew1 PatrickHua Taoww21480 geekbgm joshnroy liuzuo-byte triangleCZH yuanenming

repo: PatrickHua/SimSiam


text:
Customtkinter integration?

Will this project ever be converted to use customtkinter? Or maybe somehow allow the video player to work with ctk apps?

@dishb you can easily use this with customtkinter.  Refer https://github.com/PaulleDemon/tkVideoPlayer/discussions/23#discussioncomment-4475005.

@dishb you can easily use this with customtkinter. Refer #23 (comment).

Did not see that for some reason 😅 Thank you!

authors: PaulleDemon dishb

repo: PaulleDemon/tkVideoPlayer


text:
Problema na home

Descrição:
Ao usuário clicar no banner, ele recebe um erro 500

Resolvemos o problema no Pull Request #2


text:
Is there any way to limit the date range?

I would like the calendar to only allow viewing/selecting days that are in the next 3 months and none from the past.  Any ways to currently disable browsing/selecting dates outside of a specified range?

I think this approach is what I'll likely end up using for my usecase unless there is a better way.
monthDiff just compares the months of 2 dates.
monthChanged: (selectedDate, events) => {               if(monthDiff(today, selectedDate) == 0){                 leftArrow = document.getElementsByClassName('calendar__arrow-prev')[0];                         leftArrow.style.display = "none";               } else {                 leftArrow = document.getElementsByClassName('calendar__arrow-prev')[0];                         leftArrow.style.display = "block";                               }               if(monthDiff(today, selectedDate) == 2){                 rightArrow = document.getElementsByClassName('calendar__arrow-next')[0];                         rightArrow.style.display = "none";               } else {                 rightArrow = document.getElementsByClassName('calendar__arrow-next')[0];                         rightArrow.style.display = "block";                               }           }

repo: PawanKolhe/color-calendar


text:
Changed core version (pom.xml) and version message to 0.3.1

Other minor improvements made were needed by the mobile wallet

Sorry I'm still trying to learn this stuff but what's happening with commit ebd6026.
It looks like you would rather be fetching from upstream and merging over master instead of what's happening in that commit?
I few similar looking commits as well that could probably be squashed (1416b08 and af04bcf)?

ebd6026 seems to be for the changes I pulled from PaycoinFoundation so its for my repository (https://github.com/brenzosa/paycoinj/commit/ebd602616e161c3bc564fb6dd39a08fdea9ab222).
The actual changes in this pull request can be seen here (1416b08 and af04bcf):  https://github.com/PaycoinFoundation/paycoinj/pull/16/files

I think I should teach you some git tricks for cleaner commits and pulls. For example you shouldn't pull the changes from paycoinfoundation like you did but rather doing a clean merge etc. I can chat on slack. We should clean this up before merging

@brenzosa we should be splitting these up into their own pull requests and this still needs a bit of a clean up. I might do it to at least get the protocol change in the wallet.

@brenzosa can you please review the pull request splits I've made above (I just cherry-picked your commits so you'll still get the credit).
Let me know if any need merging etc.

Sure go ahead, that's really the only important change so it should be easy to add.  I'll re-open another PR for the stuff, thanks

authors: brenzosa mitchellcash

repo: PaycoinFoundation/paycoinj


text:
test PR with Github API

Please pull this in!

Docs Build status updates of commit 3059778:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details
Dependent Files

:x:Error

Details

[Error] Cannot sync git repo to specified state. Please make sure the pull request is mergeable. Details: Git merge results in conflict, repository remote url: https://github.com/Peachying/testinlineedit, working directory: W:\cw0f-s, target branch: HEAD, target branch commit: e7e9561ce71795154a5f4ded6ee2c58845038c76, source commit: 3059778edf7d08cd3d25860703b8e59dc670b18f.

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

Docs Build status updates of commit f2239e5:
:warning: Validation status: warnings

File
Status
Preview URL
Details
Dependent Files

tutorial-manage-data-disk.md
:warning:Warning

Details

tutorial-manage-data-disk.md

Line 51: [Warning] Invalid file link:(~/sizes.md).
Line 68: [Warning] Invalid file link:(~/sizes.md).
Line 134: [Warning] Invalid file link:(~/tutorial-automate-vm-deployment.md).
Line 182: [Warning] Invalid file link:(~/tutorial-automate-vm-deployment.md).

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

repo: Peachying/testinlineedit


text:
Lint tests with flake8

A lot of errors are reported by flake8 for unit test files. Make sure you have flake8-docstrings installed and re-lint them.

Thanks for the review I have fixed my docstrings in the test files

repo: PeanutPK/ku-polls


text:
[SVT-01S] Improper Invocations of EIP-20 transfer / transferFrom

SVT-01S: Improper Invocations of EIP-20 transfer / transferFrom

Type
Severity
Location

Standard Conformity

StackVault.sol:L1037, L1055

Description:
The linked statements do not properly validate the returned bool values of the EIP-20 standard transfer & transferFrom functions. As the standard dictates, callers must not assume that false is never returned.
Impact:
If the code mandates that the returned bool is true, this will cause incompatibility with tokens such as USDT / Tether as no such bool is returned to be evaluated causing the check to fail at all times. On the other hand, if the token utilized can return a false value under certain conditions but the code does not validate it, the contract itself can be compromised as having received / sent funds that it never did.
Example:
require(_WETH.transferFrom(from, address(this), amount));

Recommendation:
Since not all standardized tokens are EIP-20 compliant (such as Tether / USDT), we advise a safe wrapper library to be utilized instead such as SafeERC20 by OpenZeppelin to opportunistically validate the returned bool only if it exists in each instance.

This has no impact on non-standard ERC20 tokens. This part of the code only handles WETH. All other parts of the code use OZ's safeTransfer/safeTransferFrom.

repo: Pearl-Finance/stack


text:
Remote access to the metrics port seems broken

Report from @tzapu:

got a problem with teku that seems eerily similar to one i had with eth2signer ( https://github.com/PegaSysEng/eth2signer/issues/97 ) i'm running with

|       --metrics-enabled=true
│       --metrics-port=8008
│       --metrics-interface=0.0.0.0
│       --metrics-host-allowlist=localhost, 127.0.0.1

but getting server returned HTTP status 403 Forbidden  when trying to connect from outside the pod. seeing that i am getting 403 the port must be right.

I've also had truble with this. Using the options  --metrics-enabled=true --metrics-host-allowlist='*' --rest-api-docs-enabled=true --rest-api-host-allowlist='*' I can access the RPC port remotely (5051), but get a 403 from the metrics port (8008), which is unexpected. Explicitly putting my remote host's IP address in the allow list does not help.
Local access is working OK for me with the above options.

Hi @tzapu,
Seems like Teku is actually showing expected behavior. To be able to connect from a remote host, you can use the option --metrics-host-allowlist='*' or  --metrics-host-allowlist=<remote-host-ip>.

@benjaminion tried with * and i think i tried as well before trying --metrics-host-allowlist=localhost, 127.0.0.1 like in eth2signer.
i will try again and report

Seems like @benjaminion was missing the --metrics-interface option. To be able to connect to Teku metrics from a remote host, that has to be set to 0.0.0.0

bingo, it was the bloody quotes 🤦🏻♂
i had --metrics-host-allowlist=* which  doesn't  work, but --metrics-host-allowlist="*" DOES!
thank you

My pleasure! Will keep the issue on until we figure @benjaminion's issue as well, but glad you figured it out.

@benjaminion seems like, for your case, you were missing the --metrics-interface=0.0.0.0, which would have made Teku metrics visible to remote hosts. The only reason Rest API worked without --rest-api-interface=0.0.0.0, is because of this issue we apparently have: https://github.com/PegaSysEng/teku/issues/2213. So if you provide those flags, your metrics should be accessible from remote hosts. Closing this issue as I'm pretty sure that will fix your problem, but let me know and we can open it up again.

authors: benjaminion cemozerr tzapu

repo: PegaSysEng/teku


text:
adding jenkins file

this file will be required on branch where PR checks have to be triggered.
PLEASE NOTE:- edge-ci library referenced in this file is a private repo and is used for internal testing only.

It might makes sense to squash these commits into one and add your PR description to the actual commit message:

this file will be required on branch where PR checks have to be triggered.

I don't think it's that big a deal though.

repo: PelionIoT/distro-pelion-edge


text:
Normalize to MNI via a different space (OASIS)

I'm hoping to process some pCASL data using the xcpEngine. I have already processed the T1 data using antsCorticalThickness with an OASIS template/template space and I have the OASIS to MNI warps. I was wondering if you could recommend a way to link up my already-processed structural data to use with the xcpEngine pCASL processing module.

Hi Chris,
It will only be possible if you run antsCorticalThickness  using xcpengine. You would have just change the  standard=MNI%2x2x2 to standard=MNI%2x2x2 via OASIS%1x1x1
In xcpengine, we rename the files to be uniform and esier to read for user, and compatible for other modules.
We  added some features  with the meeting we had the other day. please see documentation  on how to add t1w to cohort file if you have not run struc or fmriprep  before.
https://xcpengine.readthedocs.io/config/cohort.html#asl-processing
it take about an hour due to  antsregistration (between  T1 and template)

Hi Azeez,
Thanks for your reply! I'll try running it that way.
In the mean time, I've used antsApplyTransforms to combine my existing T1-to-OASIS and OASIS-to-MNI warps, and using that to move my data into MNI space. In addition, I've used a series of symlinks and simple calculations to get many of the images into the same directory structure and naming convention as xcpEngine/fmriprep. So far, it seems feasible that this could work to avoid re-processing the whole dataset, but an hour to get the T1-to-template warps is not bad at all.
Thanks,
Chris

repo: PennBBL/xcpEngine


text:
Path to MNI T2 template

Hello,
I have data that has a T2w image instead of a T1w image.  The T2w MNI template that QSIPrep tries to find has a different name than the one inside the package.  QSIPrep version, command, error message, and correct path are copied below.
TLDR, it's looking for file name "mni_1mm_t2w_lps.nii.gz" which appears to be renamed to "mni_1mm_t2w_lps_brain.nii.gz"
VSN: qsiprep version 0.19.1
Command: qsiprep-docker /data/bids/ /data/qsiprep_out/ participant --output-resolution 2 --participant_label sub-setA --skip-bids-validation --anat-modality T2w --hmc_model tensor --pepolar-method DRBUDDI --nthreads 4 --omp-nthreads 4 --work-dir /data/qsiprep_out/work/ --fs-license-file /data/license.txt
Traceback Error:
Traceback (most recent call last):
File "/usr/local/miniconda/lib/python3.8/site-packages/nipype/interfaces/base/core.py", line 453, in aggregate_outputs
setattr(outputs, key, val)
File "/usr/local/miniconda/lib/python3.8/site-packages/nipype/interfaces/base/traits_extension.py", line 330, in validate
value = super(File, self).validate(objekt, name, value, return_pathlike=True)
File "/usr/local/miniconda/lib/python3.8/site-packages/nipype/interfaces/base/traits_extension.py", line 135, in validate
self.error(objekt, name, str(value))
File "/usr/local/miniconda/lib/python3.8/site-packages/traits/base_trait_handler.py", line 74, in error
raise TraitError(
traits.trait_errors.TraitError: The 'template_file' trait of a _GetTemplateOutputSpec instance must be a pathlike object or string representing an existing file, but a value of '/usr/local/miniconda/lib/python3.8/site-packages/qsiprep/data/mni_1mm_t2w_lps.nii.gz' <class 'str'> was specified.
    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/local/miniconda/lib/python3.8/site-packages/nipype/interfaces/base/core.py", line 400, in run
        outputs = self.aggregate_outputs(runtime)
      File "/usr/local/miniconda/lib/python3.8/site-packages/nipype/interfaces/base/core.py", line 460, in aggregate_outputs
        raise FileNotFoundError(msg)
    FileNotFoundError: No such file or directory '/usr/local/miniconda/lib/python3.8/site-packages/qsiprep/data/mni_1mm_t2w_lps.nii.gz' for output 'template_file' of a GetTemplate interface

Template name inside docker container:
/usr/local/miniconda/lib/python3.8/site-packages/qsiprep/data/mni_1mm_t2w_lps_brain.nii.gz

Hi Nicole, Thanks for opening this issue, should be a straightforward fix

Thanks Matt! Anyway you can cherry pick this commit into 23.5.6-nofsl,

I believe this is fixed now, 0.20 should work

authors: mattcieslak mb3152 nseider

repo: PennLINC/qsiprep


text:
Pulling docker image results in error “unauthorized: authentication required”

Hello,
I am trying to pull the latest qsiprep from docker hub but get an error “unauthorized: authentication required” when docker is pulling the specific part a508bf686514. I do not have issues with other images that I pull from docker hub. I already tried to logout/login from Docker to no avail sadly.
Is anyone else experiencing this issue? What software is a508bf686514?
Thank you!

I can pull this successfully.
docker pull pennbbl/qsiprep:0.20.0
0.20.0: Pulling from pennbbl/qsiprep
7c457f213c76: Pull complete
ee53377a2918: Pull complete
35e525cfcfc9: Pull complete
9a3e099e3a33: Pull complete
8445210820d0: Pull complete
37a62f3288c1: Pull complete
255beb26a9d7: Pull complete
81102513731d: Pull complete
5c4d97efc687: Pull complete
176b64b26e9c: Pull complete
e4501def9a09: Pull complete
0aea9820e6f1: Pull complete
1018c5c4e106: Pull complete
5b2650ba2d6a: Pull complete
7a43e41d3813: Pull complete
5fb74a81ad3d: Pull complete
05fd47927372: Pull complete
b4b68ef108dc: Pull complete
149f4129545d: Pull complete
1dc9baa31c96: Pull complete
85c2a7b4352c: Pull complete
e72086f2d823: Pull complete
733921e908da: Pull complete
feed0a35e80c: Pull complete
4f4fb700ef54: Pull complete
c92bd07338a6: Pull complete
a946cbc898a9: Pull complete
b535e27fa691: Pull complete
a508bf686514: Pull complete
7f18e5949459: Pull complete
d370d4978e20: Pull complete
b42992b94daf: Pull complete
df06c765e3ba: Pull complete
8fecbc6842d7: Pull complete
a1ce80f25354: Pull complete
2a4cef1988be: Pull complete
f897b53c6b3e: Pull complete
Digest: sha256:3736fdd73342671de8e7a8f4b20fc50cd998fdbf40e46124bde2e28daa14d5c9
Status: Downloaded newer image for pennbbl/qsiprep:0.20.0
docker.io/pennbbl/qsiprep:0.20.0

Are you working in a VM? I've read that clock skew can cause problems like this.

authors: cookpa jAchtzehn


text:
pusher upload updates

merging Pusher code to dev environment to test

Note: This code is not yet production ready - needs correct credentials for Pusher in prod before this is promoted to production.


text:
make branch fails to unstash in an ugly way if local webserver is running

It's because of all the pycache stuff:
    cards.sqlite already exists, no checkout
    config.json already exists, no checkout
    decksite/__pycache__/__init__.cpython-35.pyc already exists, no checkout
    decksite/__pycache__/main.cpython-35.pyc already exists, no checkout
    decksite/data/__pycache__/__init__.cpython-35.pyc already exists, no checkout
    decksite/data/__pycache__/deck.cpython-35.pyc already exists, no checkout
    magic/__pycache__/__init__.cpython-35.pyc already exists, no checkout
    magic/__pycache__/card.cpython-35.pyc already exists, no checkout
    magic/__pycache__/database.cpython-35.pyc already exists, no checkout
    magic/__pycache__/mana.cpython-35.pyc already exists, no checkout
    magic/__pycache__/oracle.cpython-35.pyc already exists, no checkout
    shared/__pycache__/__init__.cpython-35.pyc already exists, no checkout
    shared/__pycache__/configuration.cpython-35.pyc already exists, no checkout
    shared/__pycache__/database.cpython-35.pyc already exists, no checkout
    shared/__pycache__/pd_exception.cpython-35.pyc already exists, no checkout
    Could not restore untracked files from stash

We can possibly clean before unstashing or stash differently.
If that doesn't work killing the server or prompting to kill the server is also acceptable.

b48ef61 introduces a cure that might be worse than the disease. Hope it never deletes anything important :)

repo: PennyDreadfulMTG/Penny-Dreadful-Tools


text:
Deploying the wheels at a release fails

For some reason wheels are not uploaded to PyPi due to an error, see the error (and log) here: https://github.com/PennyLaneAI/pennylane-lightning/runs/2477011891?check_suite_focus=true#step:4:46

Hey @maliasadi
We have infra in place for this to upload to test PyPI, but not the real PyPI. I think we can move that functionality over after the current release cycle, as we need things to be a little manual for the current cycle.

authors: antalszava mlxd

repo: PennyLaneAI/pennylane-lightning


text:
can't send post data using by CURL

running on OS X(El Capitan)
CURL can request correctly with GET method.
But with POST method, can't send post data.
import cURL
import PerfectLib

let url = "http://perfect.groovelab.asia/taptracker/TapTracker.mustache"
let paramString = "lat=2&long=3"

let curl = CURL(url: url)
curl.setOption(CURLOPT_POST, int: 1)
curl.setOption(CURLOPT_POSTFIELDS, s:paramString)
curl.setOption(CURLOPT_POSTFIELDSIZE, int: paramString.characters.count)
curl.setOption(CURLOPT_VERBOSE, int: 1)

let response = curl.performFully()
print(response.0)
print(UTF8Encoding.encode(response.1))
print(UTF8Encoding.encode(response.2))

The response body is {"resultSets":[]}, not add lat long data.
Must I need encoding parameter?
If I run below command on mac, the data was added.
curl http://perfect.groovelab.asia/taptracker/TapTracker.mustache -d lat=1 -d long=2

above issue was resolved by myself.
the code is like this.
import cURL
import PerfectLib

let url = "https://httpbin.org/post"
let curl = CURL(url: url)
curl.setOption(CURLOPT_POST, int: 1)

let paramString = "lat=2&long=3"
let byteArray = UTF8Encoding.decode(paramString)
curl.setOption(CURLOPT_POSTFIELDS, v: UnsafeMutablePointer<UInt8>(byteArray))
curl.setOption(CURLOPT_POSTFIELDSIZE, int: byteArray.count)

let response = curl.performFully()
let responseBody = UTF8Encoding.encode(response.2)
print(responseBody)

must set UnsafeMutablePointer<UInt8> type at CURLOPT_POSTFIELDS.
thanks

repo: PerfectlySoft/Perfect


text:
Relationship Bundles

Feature
Add ability to model and bundle relations (tuples).
Problem
It is currently responsibility of the services to model how relations are created and deleted when actions happen on resources. Having the ability to model this in a central place helps with transparency and consistency. The most difficult part about using permify is creating and maintaining relationships in sync with the business model.
Solution
Add a similar DSL to .perm to create and maintain bundle of relationships.
Example
Permissions:
entity user {}

entity organization {

    // organizational roles
    relation admin @user
    relation member @user

}

entity team {

    // represents owner or creator of the team
    relation owner @user

    // represents direct member of the team
    relation member @user

    // reference for organization that team belong
    relation org @organization

    // organization admins or owners can edit, delete the team details
    permission edit = org.admin or owner
    permission delete = org.admin or owner

    // to invite someone you need to be admin and either owner or member of this team
    permission invite = org.admin and (owner or member)

    // only owners can remove users
    permission remove_user =  owner
}

entity project {

    // references for team and organization that project belongs
    relation team @team
    relation org @organization

    permission view = org.admin or team.member
    permission edit = org.admin or team.member
    permission delete = team.member
}

Relations bundle:

relations project_created {

   params {
       projectId
       teamId
       orgId
   }

   add {
           entity {
                type team
                id params.teamId
            }
            relation team
            subject {
                type project
                id params.projectId
            }
    }

   add {
           entity {
                type organization
                id params.orgId
            }
            relation org
            subject {
                type project
                id params.projectId
            }
    }
}

relations project_deleted {

   params {
       projectId
       teamId
       orgId
   }

   delete {
           entity {
                type team
                id params.teamId
            }
            relation team
            subject {
                type project
                id params.projectId
            }
    }

   delete {
           entity {
                type organization
                id params.orgId
            }
            relation org
            subject {
                type project
                id params.projectId
            }
    }
}

This would require a relationship bundle API.
POST /relationships/bundle
BODY
{
   "name": "project_created",
   "params": {
       "projectId": "1234"
       "teamId": "teamA"
       "orgId": "orgA"
    }
}

With this functionality the code responsible for creating a project would either call this API directly or create an event for some other component to call this API.
I think this could help sove the problem of maintaining the relationships.
Best Regards,
Bruno Vale

Hi @brunovale91, this looks really interesting. We're planning to schedule this feature, and we'd love to learn more about your thoughts and details of the use case to get a better idea about it. Would you be open to a quick call?

Hi @EgeAytin, that's nice. Let's schedule a call.

Great @brunovale91 , You can select an available time in my calendar. Looking forward to it!

repo: Permify/permify


text:
feat(v3 hydrateUxos): Deprecating v3 hydrateUtxos to improve system s…

…tability

:tada: This PR is included in version 1.28.0 :tada:
Your semantic-release bot :package::rocket:


text:
Allow Designer to render Xaml when not wrapped in a suitable root.

Originally by @danwalmsley

i.e.

<TabItem xmlns="https://github.com/perspex" Header="Type">
  <DropDown Items="{Binding ProjectTypeOptions}" SelectedItem="{Binding ProjectType, Mode=TwoWay}" />
</TabItem>

Above could be rendered if Designer wrapped it in a Presenter.. currently it doesn't.

Latest Designer has this feature but testing is still needed.

repo: Perspex/PerspexVS


text:
Set kelunik/acme version

Prevent breaking upgrades to the acme lib.

Thank you!


text:
Roadmap

This file https://github.com/Pfern/OSODOS/blob/master/docs/ROADMAP/README.md needs to be written out to indicate the "need to know" sections for the different stakeholders.

(see #6)

@Pfern, can you review if the roadmap prose is sufficient for Milestone 1.0? Please re-open this ticket if it needs more work.

repo: Pfern/OSODOS


text:
iOS: App Scan GS1 Composite Code

This story is identical to the #101 only it covers the iOS Swift Scandit library.
PL user story: #93 (see full overview for additional information)
Description:
Changes to the App and decoding in order to be able to scan additional codes:

The ability to scan and decode a GS1 Composite Code

This code is used in Japan and contains the GTIN, Batch and Expiry Date

The Composite Code has the following Application Identifiers:
AI01 (GTIN)
AI10 (Batch Number)
AI17 (Expiry Date)

The rules for decoding could be:

The following a a sample code (refer also to #122 )

Acceptance criteria's:
positive tests

create a non-serialized batch. (refer to #100)
create a GS1 Composite code with a correct GTIN, Batch and Exp Date details, when scanned this should provide the ePI.

negative tests / error path testing

create a non-serialized batch.
create a GS1 Composite code with a correct GTIN, incorrect Batch and Exp Date details, when scanned this should not provide the ePI (refer to ADD REFERENCE)

Process scenario:

Japan used the GS1 Composite code for all prescription Medicines.
For non-prescription medicines Japan (like many other countries) uses a 13digit (typically) 1D barcode.
The attached document gives an overview of the different barcodes that are commonly used. This is for information purposes only.
Barcodes and Resolver v0.4.pdf

Additional information:
N/A

Testing: put the composite code in this manner with the \F separator (check the Evaluate escape sequences checkbox) https://barcode.tec-it.com/en/RSSLimitedCCA?data=05290931025615|10VC9695\F17210831

repo: PharmaLedger-IMI/epi-workspace


text:
🛑 Anderson Driver Training is down

In 846192d, Anderson Driver Training (https://www.andersondrivertraining.co.uk) was down:

HTTP code: 500
Response time: 3558 ms

Resolved: Anderson Driver Training is back up in ef8dba2.

repo: PhilStevenson/upptime


text:
add tests for scrape_metrics_for_device

fix this:
https://github.com/PhilipMay/smart-prom-next/blob/fdc4a96da917d663a7e2dcbd8c9a9ab4e9b9bf66/tests/test_scrape_metrics_for_device.py#L12-L14

fixed above with comment

see https://github.com/prometheus/client_python/discussions/828

done

repo: PhilipMay/smart-prom-next


text:
[BUG]: Canon EOS 60D on Raspberry Pi 5 Liveview not working

Describe the bug
Hello,
first of all thank you for the great work. I installed a brand new Rasperry Pi 5 and installed Photobooth with the installation script. I am working directly on the Raspberry with a display. I changed the following settings in admin panel to enable preview with Canon EOS 60D:
Live preview -> Preview mode
from: None
to: from device cam (no remote preview)
Live preview -> Use preview from device cam as background
from: Off
to: On
Commands -> Execute start command for preview on take picture/collage
from: On (default)
to: Off
Commands -> Command to generate a live preview
from:
to: python3 cameracontrol.py
Commands -> Take picture command
from: gphoto2 --capture-image-and-download --filename=%s
to: python3 cameracontrol.py --capture-image-and-download %s
The following commands are working standalone in terminal:

python3 cameracontrol.py --capture-image-and-download %s (takes a picture as expected)
python3 cameracontrol.py (I can see the camera stream if I connect VLC to capture device /dev/video0)

If I open Photobooth via http://localhost/ the shutter is opening, but I only see the standard background of Photobooth. If I press the picture button to take a photo, the counter starts ending with the Cheeeeese message (stucks there without taking a picture). If I want to open http://localhost/ in a second browser window, Photobooth is not responding anymore.
Is there something else I could do?
Thank you!
Steps to reproduce the behavior
see above
Expected behavior
see above
Photobooth Version
latest version (installed on 03.01.2024 via install-photobooth.sh)
Browser and browser version
Firefox for Raspberry Pi 121.0
Operating System
Raspberry Pi OS with desktop 64-bit (Bookworm)
Did it work before?
No
Latest working version
No response
Additional context
No response

Hey and thanks for the report!
I am aware of the issue, but yet didn't hat enough time to look at it.
To workaround that please add the following lines to /usr/ffmpeg-webcam.sh
sleep 5
python3 /var/www/html/api/cameracontrol.py -b

(The -b is optional, remove if you set Execute start command for preview on take picture/collage to off)

Hi,
thank you for the hint, but unfortunately it is not solving the problem. When I now start the Raspberry without accessing the the Photobooth application the shutter opens already (assuming this is because the service is started already?). When I open Firefox at http://localhost a small icon appears informing that a video is played in Picture-in-Picture mode. When I press on this small icon I only see black screen any video stream from the camera. When I press the picture button the countdown is triggered and a picture is taken. Liveview is unfortunately still not working.
kr

What's your preview config?
Same on Chromium?
This workaround is working for others. Any other cameras connected?
Maybe also try without using it as background using -b and starting preview on take picture/collage.

Hi,
I just tested with Chromium and it works with Chromium - THANK YOU!
Besides the standard / default configuration after installation with the install script, I did the following changes:
Live preview -> Preview mode
from: None
to: from device cam (no remote preview)
Live preview -> Use preview from device cam as background
from: Off
to: On
Commands -> Execute start command for preview on take picture/collage
from: On (default)
to: Off
Commands -> Command to generate a live preview
from:
to: python3 cameracontrol.py
Commands -> Take picture command
from: gphoto2 --capture-image-and-download --filename=%s
to: python3 cameracontrol.py --capture-image-and-download %s
As workaround add the following lines to /usr/ffmpeg-webcam.sh (works only for Chromium)
sleep 5
python3 /var/www/html/api/cameracontrol.py
I have no other cameras connected.
For Firefox it does not work - here some screenshots maybe they will help to analyze further.

After pressing the small picture-in-picture icon it looks like this with Firefox

kr

Access was granted inside Firefox?

Yes permissions for camera usage has been granted within Firefox

https://support.mozilla.org/en-US/kb/turn-picture-picture-mode
Could you please disable PIP and try again?

I have now reset all firefox settings and tried again without success and have reset again all settings and disabled PIP with the same result for Mozilla Firefox 121.0 (64-bit) for Raspberry Pi OS, which was part of the installation image of the Raspberry PI.
I installed now in addition Firefox ESR (Extended Support Release) version 115.6.0esr (64-bit) and there it works without problems (with and without PIP)
Thank you very much for your support!
kr

I have the same issue like described above.
When I execute python3 cameracontrol.py I clearly see that the video works. I also hear some sounds from the camera. But when I activate the livepreview and using from device cam (no remote preview) and turning Execute start command for preview on take picture/collage off, there is wheter a sound on my camera nor a live preview when taking a picture.

I can still replicate the problem, that the first image is not taken. That is what I tested, hopefully it helps discovering the problem:

my setup: Ubuntu 22.04, DELL thin client, Canon 5D MkII, with live view from device during count down
when I press the "take picture" button I can see the live view and after count down the photobooth website keeps showing an error message, that it will restart, but it doesn't
I am also unable to access admin page with the 6 clicks in the right buttom corner on first run, only possible after taking first picture and restarting firefox
My testing:
Firefox 116 (snap) --> not ok
Firefox ESR 102 (snap) --> not ok
Chromium --> not ok
disabled live view --> ok, everything works as expected (= firefox starts automatically in kiosk mode and I am able to take pictures)

Please use the mjpeg/go2rtc variant for preview via DSLR until the issue is solved.

I use mjpeg now. But there are also issues. Preview via Background url (CSS) does Not Work for me (CORB Issues) and the Default URL was wrong. I scripted a small workaround with an IFrame - what works perfectly. But thanks for all the hints - helped me a lot.

With the updated version (01. May 2024) and mjpeg/go2rtc the issue (no first photo after start/reboot) is resolved, at least for me.
My setup again:

Ubuntu 22.04, DELL thin client, Canon 5D MkII, with live view from device during count down
HDMI Touch display
Firefox (snap) with autostart and kiosk mode
use of mjpeg/go2rtc
running localhost

Thank you very much for help and your work. This is a really nice project.

repo: PhotoboothProject/photobooth


text:
Web UI: noisy git command warnings in logs

For every Web UI page load, this warning gets thrown:
Mar 11 13:05:17 piscsi PISCSIWEB[1253]: [2023-03-11 13:05:17,950] [WARNING] sys_cmds.py:39 Shell command: "['git', 'rev-parse', 'HEAD']" led to error: fatal: detected dubious ownership in repository at '/home/pi/piscsi'

Addressed with https://github.com/PiSCSI/piscsi/pull/1129

repo: PiSCSI/piscsi


text:
Upgrade com.groupcdg.arcmutate:base 1.0.4 -> 1.0.5

This PR contains the following updates:

Package
Type
Update
Change

com.groupcdg.arcmutate:base
build
patch
1.0.4 -> 1.0.5

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade Arcmutate 1.0.4 -> 1.0.5

repo: PicnicSupermarket/error-prone-support


text:
Update README.md

Add repositórios com listas de podcasts.

:+1:

authors: Pierry felipexw

repo: Pierry/gist-tips-tricks-strippers


text:
lint: long chain expression checker v1

fixes #11

I'll take a closer at evening.
Thanks for doing this, by the way.
Can't wait to check it on a bigger code base.
Have you tried to run it with lintwalk on $GOOROOT/src?
(By the way, it can help to reveal bugs.)

If you have time, try running this checker with lower n and see if it finds issues in $GOROOT/src.
This could help us to find false positives and/or crashes.

authors: Quasilyte fexolm

repo: PieselBois/kfulint


text:
请问如何在原版vits中使用预训练的底模？

我在其它远程Linux服务器上无法正常部署该项目环境。所以我想直接使用该项目中已有的模型并在此基础上微调。但是配置文件似乎有点问题，一开始训练就会直接覆盖掉原本的预训练模型。
请问如何实现原本vits中的预训练模型微调部署？非常感谢！

你说的原版VITS是指这个多语言版本还是指原paper的仓库?

你说的原版VITS是指这个多语言版本还是指原paper的仓库?
是CjangCjengh的多语言版本

这个repo为了适用于微调改了很多东西，具体我也记不清了，不过建议你在debug模式下仔细看一下应该可以找到哪里出了问题

repo: Plachtaa/VITS-fast-fine-tuning


text:
Preprocessing ERE

I ran the script preprocessing/process_ere.py and I discovered that the amount of sentences in train.w1.oneie.json (12977) is not as same as the paper claimed (14736). And of course, I cannot reproduce the F1 score result on the ERE-EN dataset.
So I looked into this script and in line 1336, it just ignored all the data in dataset 'normal'. However, if I changed to os.path.join(input_dir, 'source', 'cmptxt', '*', '*.txt')). An error occurs when processing this line entity.char_offsets_to_token_offsets(tokens), only a few docs. Ignoring all errors, I got 18895, but still not the same.

Notice that sometimes package version matters as well. So please check if you packages match ours.

repo: PlusLabNLP/DEGREE


text:
add transform optional parameter to function plot_pole_dp_dm

I hope to make this change to address issue #692

Should we make the default ccrs.geodetic() or will that cause other issues?

My experience is that PlateCarree usually works fine and geodetic has other issues such as making weird filled polygons instead of a circle/ellipse, and I felt that geodetic more often has issues for our applications.

That makes sense. Perhaps we can add to the documentation of the parameter that it will rarely need to be changed?

This should do the trick!

authors: Swanson-Hysell duserzym

repo: PmagPy/PmagPy


text:
object 'Tumor_Sample_Barcode' not found' for maf file contains single sample

Just ran maftools with codes in R:
data_maf = read.maf("test.maf.txt", useAll = TRUE) and got the error:
NOTE: Missing clinical data! It is strongly recommended to provide clinical data associated with samples if available.
Error in Tumor_Sample_Barcode %in% maf.tsbs :
object 'Tumor_Sample_Barcode' not found
The file does contains Tumor_Sample_Barcode. I have tried multiple maf files which all came across the same problem. I duplicate each variant and make a fake Tumor sample barcode to let the code run:

Hugo_Symbol
Entrez_Gene_Id
Center
NCBI_Build
Chromosome
Start_Position
End_Position
Strand
Variant_Classification
Variant_Type
Reference_Allele
Tumor_Seq_Allele1
Tumor_Seq_Allele2
dbSNP_RS
dbSNP_Val_Status
Tumor_Sample_Barcode
Matched_Norm_Sample_Barcode

MMEL1
0
.
GRCh37
1
2526358
2526358
+
Intron
SNP
A
A
G
novel

TUMOR
NORMAL

MMEL1
0
.
GRCh37
1
2526358
2526358
+
Intron
SNP
A
A
G
novel

TUMOR2
NORMAL2

Would you please help me to have a look at the problem? Many thanks!

This is a good catch. I'm also testing a maf file with one sample and getting the same problem.
I never thought using more than one sample will prevent the problem.
I guess this is a bug that happens when number of samples = 1. This might be linked to the object expecting a list input .

Hi,
Sorry for the delay, Could you post your sessionInfo ? Do you have any non-synonymous variants in your input maf ?

Sorry for the delay.
The file I tested don't have  non-synonymous variants. Below is my sessionInfo
sessionInfo()
R version 3.4.3 (2017-11-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: SUSE Linux Enterprise Server 12 SP2
Matrix products: default
BLAS: ~/sw/R/3.4.3/lib64/R/lib/libRblas.so
LAPACK: ~/sw/R/3.4.3/lib64/R/lib/libRlapack.so
locale:
[1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8       LC_NAME=C
[9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] parallel  stats     graphics  grDevices utils     datasets  methods
[8] base
other attached packages:
[1] pheatmap_1.0.8      NMF_0.21.0          cluster_2.0.6
[4] rngtools_1.2.4      pkgmaker_0.22       registry_0.5
[7] maftools_1.4.25     Biobase_2.38.0      BiocGenerics_0.24.0
loaded via a namespace (and not attached):
[1] httr_1.3.1                 RMySQL_0.10.14
[3] bit64_0.9-7                splines_3.4.3
[5] foreach_1.4.4              assertthat_0.2.0
[7] stats4_3.4.3               blob_1.1.0
[9] BSgenome_1.46.0            GenomeInfoDbData_1.0.0
[11] Rsamtools_1.30.0           slam_0.1-42
[13] progress_1.1.2             ggrepel_0.7.0
[15] pillar_1.1.0               RSQLite_2.0
[17] lattice_0.20-35            digest_0.6.15
[19] GenomicRanges_1.30.3       RColorBrewer_1.1-2
[21] XVector_0.18.0             colorspace_1.3-2
[23] cowplot_0.9.2              Matrix_1.2-12
[25] plyr_1.8.4                 XML_3.98-1.10
[27] GetoptLong_0.1.6           biomaRt_2.34.2
[29] zlibbioc_1.24.0            xtable_1.8-2
[31] scales_0.5.0               BiocParallel_1.12.0
[33] tibble_1.4.2               IRanges_2.12.0
[35] ggplot2_2.2.1              SummarizedExperiment_1.8.1
[37] GenomicFeatures_1.30.3     lazyeval_0.2.1
[39] mclust_5.4                 survival_2.41-3
[41] magrittr_1.5               memoise_1.1.0
[43] doParallel_1.0.11          changepoint_2.2.2
[45] tools_3.4.3                data.table_1.10.4-3
[47] prettyunits_1.0.2          GlobalOptions_0.0.13
[49] matrixStats_0.53.1         gridBase_0.4-7
[51] ComplexHeatmap_1.17.1      stringr_1.3.0
[53] S4Vectors_0.16.0           munsell_0.4.3
[55] DelayedArray_0.4.1         AnnotationDbi_1.40.0
[57] Biostrings_2.46.0          compiler_3.4.3
[59] GenomeInfoDb_1.14.0        rlang_0.2.0
[61] grid_3.4.3                 RCurl_1.95-4.10
[63] iterators_1.0.9            VariantAnnotation_1.24.5
[65] rjson_0.2.15               circlize_0.4.3
[67] bitops_1.0-6               gtable_0.2.0
[69] codetools_0.2-15           DBI_0.8
[71] reshape2_1.4.3             R6_2.2.2
[73] gridExtra_2.3              zoo_1.8-1
[75] GenomicAlignments_1.14.1   rtracklayer_1.38.3
[77] bit_1.1-12                 shape_1.4.4
[79] stringi_1.1.7              Rcpp_0.12.16
[81] wordcloud_2.5

Hi,
Thats the issue. Try with maf file containing non-syn variants. Or use argument vc_nonSyn to define which Variant Classifications to be considered as non-synonymous. Please let me know if you still have an issue. Meanwhile I will add more detailed error messages. Hope this helps.

sorry, I am a bit confused. My maf file desn't have non-synonymous variants and I have to assign a type of variants as non_syn. In this case, rest will be considered as silent variants. What happen if I have non_syn in the maf file. Are the rest of be treated as silent variants?

I tried:
data_maf = read.maf("test.maf", useAll = TRUE, vc_nonSyn=c("Missense_Mutation", "Nonsense_Mutation") )
and still got the same error.

Hi,
Apologies for confusion. Should have made it clear in the docs. Here is how it works.
MAF object has two slots, main data containing non-syn variants (by default: "Frame_Shift_Del", "Frame_Shift_Ins", "Splice_Site", "Translation_Start_Site","Nonsense_Mutation", "Nonstop_Mutation", "In_Frame_Del","In_Frame_Ins", "Missense_Mutation") and a separate slot containing silent variants (rest of all variants). If you want to define your own set of variant classifications as non-synonymous then you can do so by using vc_nonSyn argument while reading maf.
Since your maf has no non-syn variants (default ones), the function is failing to validate it. I am not sure about what entries you have in your Variant_Classifications column of MAF file. You can pass all unique values (for example: silent, UTR, Intronic, Intergeic) from that column to vc_nonsyn argument to consider them as non-synonymous.
Hope this helps.
PS: Again, most of the plotting functions use color codes for default non-syn variants, so you will have to define color codes for your own data. See here for details.

Hi, I can confirm that this is not related at all to the existance of non-syn variants in the MAF file. Furthermore, I just tested the same MAF file in v1.4.15 and it works, while on v1.4.25 it crashes

Hi,
Can you install from GitHub and see if it works ?

Hi,
I've just pulled the latest version from GitHub and it works again! Thank you very much for such a quick  patch!

authors: PoisonAlien diegollarrull kb472 tianbu

repo: PoisonAlien/maftools


text:
Error after npm install cannot start anything...

Found existing installation: protobuf 2.6.1
Uninstalling protobuf-2.6.1:
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/site-packages/pip/commands/install.py", line 317, in run
prefix=options.prefix_path,
File "/usr/local/lib/python2.7/site-packages/pip/req/req_set.py", line 736, in install
requirement.uninstall(auto_confirm=True)
File "/usr/local/lib/python2.7/site-packages/pip/req/req_install.py", line 742, in uninstall
paths_to_remove.remove(auto_confirm)
File "/usr/local/lib/python2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/usr/local/lib/python2.7/site-packages/pip/utils/init.py", line 267, in renames
shutil.move(old, new)
File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 303, in move
os.unlink(src)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/site-packages/google/protobuf/init.py'

Error is clear OSError: [Errno 13] Permission denied are you doing sudo npm install ?

This is permission issue. Try running sudo npm install or pip install -r requirements.txt in gofbot folder.

authors: Shinoby1992 justinbeatz sniok

repo: PokemonGoF/PokemonGo-Bot-Desktop


text:
Deprecation Warning

2016-08-04 10:09:49,309 [   generic] [INFO] Could not reach PokemonGo-Map Server
/Users/me/Development/Personal/PokemonGo-Bot/pokemongo_bot/logger.py:20: DeprecationWarning: Using logger.log is deprecated and will be removed soon. We recommend that you try to log as little as possible and use the event system to send important messages (they become logs and websocket messages) automatically). If you don't think your message should go to the websocket server but it's really necessary, use the self.logger variable inside any class inheriting from BaseTask to log.
  warnings.warn(message, DeprecationWarning)

The dev branch switched to events rather than logger. The bot is also not working right now.

Ok, thanks for the update

@chadsaun can this be closed?

authors: chadsaun klvs mjmadsen

repo: PokemonGoF/PokemonGo-Bot


text:
Botting on multiple accounts?

Is there any way to bot multiple accounts with one install?
If so, how?

Yea, you can make a generic config file without auth_service, username and pw.
Then you start the bot, pass your username, pass and auth for that instance, repeat for every account.

Run multiple instances, each with it's own cf file.

authors: alxnegrila brantje crilleaz