Automate R script

Automate R script for calling in command line.
Additions

Removals

Changes
Can now call the following in command:
Rscript fs_attrs_grab.R "/path/to/attribute_config.yaml"

Testing

No unit tests for this script because no new functions created.

Screenshots
Notes

Todos

Checklist

[ ] PR has an informative and human-readable title
[ ] Changes are limited to a single goal (no scope creep)
[ ] Code can be automatically merged (no conflicts)
[ ] Code follows project standards (link if applicable)
[ ] Passes all existing automated tests
[ ] Any change in functionality is tested
[ ] New functions are documented (with a description, list of inputs, and expected output)
[ ] Placeholder code is flagged / future todos are captured in comments
[ ] Visually tested in supported browsers and devices (see checklist below :point_down:)
[ ] Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)
[ ] Reviewers requested with the Reviewers tool :arrow_right:

Testing checklist
Target Environment support

[ ] Windows
[ ] Linux
[ ] Browser

Accessibility

[ ] Keyboard friendly
[ ] Screen reader friendly

Other

[ ] Is useable without CSS
[ ] Is useable without JS
[ ] Flexible from small to large screens
[ ] No linting errors or warnings
[ ] JavaScript tests are passing

@bolotinl , this PR assumes that the code in the fsds_fs is accepted. We will first merge any changes that happen there in case they're needed to keep this branch up-to-date.

@bolotinl - resolved aforementioned mis-spellings with the latest commit, but now this needs reapproval.


Add file association on Linux

Howdy,
I am the current AUR maintainer for vpkedit and vpkedit-git. On those packages, I add in file associations for vpk files, and make it where vpkedit can auto open them.
What is needed for file assocation
On linux, you need at least a few things to get file assocation. First, you need a xml file at /usr/share/mime/packages/vpkedit.xml which defines basaically what a VPK is, what extension do vpk files use, and what icon should vpk files have.
Defining what a VPK is
Currently, in my PKGBUILD, I have the following:
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
    <mime-type type="application/x-vpk">
    <comment>VPK Archive</comment>
<icon name="x-vpk"/>
<acronym>VPK</acronym>
<expanded-acronym>Valve Pack File</expanded-acronym>
    <glob-deleteall/>
    <glob pattern="*.VPK"/>
    <glob pattern="*.vpk"/>
    </mime-type>
</mime-info>

This defines a new mime application/x-vpk, gets it the icon name x-vpk, expands the acronym, adds a comment you will see whenever hovering over the file, and adds the patern to look out for.
An icon for VPKs
In my PKGBUILD, I copy the vpkedit.png installed at /usr/share/pixmaps/vpkedit.png to /usr/share/icons/hicolor/128x128/mimetypes/x-vpk.png. Since VPK's are defined above to have the icon named x-vpk, it will use that x-vpk.png as its icon now.
Associating VPKEdit with the VPK file
To get vpkedit to be associated with vpks now, you have to add the MimeType option to the .desktop file for vpkedit. Currently, my PKGBUILD makes it so the the desktop file ends up looking like this:
[Desktop Entry]
Version=3.6.0
Name=VPKEdit
Comment=A tool to read, preview, and write to VPK files.
Exec=/opt/vpkedit/vpkedit %f
Icon=vpkedit
Terminal=false
Type=Application
Categories=Qt;Development;Utility;
MimeType=application/x-vpk

I associated it with application/x-vpk, and added a %f as per the freedesktop desktop file spec; gives file argument.
That's Basically It
Yeah, just those three things give you the glorious ability to double click on a vpk. Honestly, I am making this issue to let you know about it, and hopefully get this implemented upstream. I would make a pull request, but I don't know how to do anything with cmake.

Thank you for this extensive issue, as soon as I'm not busy I'll add this in :)
I was initially trying to add extensions but couldn't figure it out, and subsequently forgot about it

Not a problem!

Looks like it's working, tysm! This will be in the next release

Swag thank you


macOS wip

No, just visibility if someone needs to run this in a cross plat codebase. I won't get into discussing it as I have no stake in the project besides a specific function. I'll close if the project does not want to run in multi target projects.


testing: repair docker cross check tests

The xchk with docker integration tests are broken.  The docker files were
attempting to download old versions of Kafka and Drill that no longer
existed on the servers.  In addition the RUOK test was causing all tests
to hang in the docker mode by causing a NPE Zookeeper and never
completely starting up.

I've included these changes in another pull request


App is not starting after upgrade to angular 16.0.2

Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
Hi, after upgrade from 15.1.0 to 16.0.2 my app is not staring anymore. I'm using monorepo approach with nx.
I noticed that the problem is related to the code generated by angular.
For example, when I have a service like below:
@Injectable()
export class TestService extends BaseService {

	public readonly renderer2: Renderer2 = this.getRenderer();

	constructor(private readonly rendererFactory2: RendererFactory2) {
		super();
	}

	getRenderer(): Renderer2 {
		return this.rendererFactory2.createRenderer(null, null);
	}

}

The result code in Angular 15 looks like:
class TestService extends _bp_util__WEBPACK_IMPORTED_MODULE_0__.BaseService {
  constructor(rendererFactory2) {
    super();
    this.rendererFactory2 = rendererFactory2;
    this.renderer2 = this.getRenderer();
  }
  getRenderer() {
    return this.rendererFactory2.createRenderer(null, null);
  }
}

and After upgrade to Angular 16:
 class TestService extends _bp_util__WEBPACK_IMPORTED_MODULE_1__.BaseService {
  constructor(rendererFactory2) {
    super();
    (0,_app_path_node_modules_angular_devkit_build_angular_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "rendererFactory2", void 0);
    (0,_app_path_node_modules_angular_devkit_build_angular_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "renderer2", this.getRenderer());
    this.rendererFactory2 = rendererFactory2;
  }
  getRenderer() {
    return this.rendererFactory2.createRenderer(null, null);
  }
}

In Angular 16 to create field renderer2 code is trying to access rendererFactory2 that has not been assigned yet, and it throws an error.
If you need more details, please let me know.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Cannot read properties of undefined

Please provide the environment you discovered this bug in (run ng version)
"@angular/animations": "16.0.3"
"@angular/cdk": "16.0.1"
"@angular/common": "16.0.3"
"@angular/compiler": "16.0.3"
"@angular/core": "16.0.3"
"@angular/forms": "16.0.3"
"@angular/platform-browser": "16.0.3"
"@angular/platform-browser-dynamic": "16.0.3"
"@angular/router": "16.0.3"
"@angular/upgrade": "16.0.3"
"@angular-devkit/build-angular": "16.0.2"
"@angular-eslint/eslint-plugin": "16.0.2"
"@angular-eslint/eslint-plugin-template": "16.0.2"
"@angular-eslint/template-parser": "16.0.2"
"@angular/cli": "16.0.2"
"@angular/compiler-cli": "16.0.3"
"@angular/elements": "16.0.3"
"@angular/language-service": "16.0.3"

Node: v16.16.0

Anything else?
"@nx/angular": "16.2.2"
"@nx/devkit": "16.2.2"

Can you please provide the output of npm ls @angular-devkit/build-angular?

Yes I can, no problem.
> ~/D/p/ui npm ls @angular-devkit/build-angular
<EMAIL_ADDRESS><repo_path>
├──<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>deduped
├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>deduped
└─┬<EMAIL_ADDRESS>  └──<EMAIL_ADDRESS>deduped

I'm sorry, but we can't reproduce the problem following the instructions you provided. Can you setup a minimal repro please?
You can read here why this is needed. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.
This might be related to your directory structure so its really important to get an accurate repro to diagnose this.

Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.
If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template.

Hi, I'm still trying to achieve the same error on smaller app, it works with smaller apps with no problem. I'll open a new ticket when I will have a good reproduction.


Regression in<EMAIL_ADDRESS>

Hi,
I'm using the ws package and I was able to run my project in<EMAIL_ADDRESS>but I've tried to upgrade to<EMAIL_ADDRESS>and I'm getting the following error :
file:///home/quentin/labs/regression-swc-node-register/node_modules/.pnpm/ws@8.17.0/node_modules/ws/wrapper.mjs:2
import Receiver from './lib/receiver.js';
       ^^^^^^^^
SyntaxError: The requested module './lib/receiver.js' does not provide an export named 'default'

And the reproduction https://github.com/Yovach/regression-swc-node-register
Thanks!

I'm having the same issue (well, with a different dependency but the exact same looking error message). Downgrading to 1.8.0 works.

I'm having the same issue (well, with a different dependency but the exact same looking error message). Downgrading to 1.8.0 works.

You can also downgrade to 1.9.0. The issue seems to be in these changes https://github.com/swc-project/swc-node/compare/@swc-node/register@1.9.0<EMAIL_ADDRESS>

I can confirm that downgrading to 1.9.0 also resolves this issue for me, thanks @Yovach

I just spent some time debugging why I'm getting this:
node:internal/process/esm_loader:34
      internalBinding('errors').triggerUncaughtException(
                                ^
Error: Failed to convert JavaScript value `Undefined` into rust type `String`
    at Compiler.<anonymous> (/Users/daniel/Documents/mpi-15k-controller/.yarn/unplugged/@swc-core-virtual-78abd7d83c/node_modules/@swc/core/index.js:222:33)
    at Generator.next (<anonymous>)
    at /Users/daniel/Documents/mpi-15k-controller/.yarn/unplugged/@swc-core-virtual-78abd7d83c/node_modules/@swc/core/index.js:34:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/daniel/Documents/mpi-15k-controller/.yarn/unplugged/@swc-core-virtual-78abd7d83c/node_modules/@swc/core/index.js:30:12)
    at Compiler.transform (/Users/daniel/Documents/mpi-15k-controller/.yarn/unplugged/@swc-core-virtual-78abd7d83c/node_modules/@swc/core/index.js:208:16)
    at transform (/Users/daniel/Documents/mpi-15k-controller/.yarn/unplugged/@swc-core-virtual-78abd7d83c/node_modules/@swc/core/index.js:350:21)
    at transform (/Users/daniel/Documents/mpi-15k-controller/.yarn/__virtual__/@swc-node-core-virtual-a15c23fadb/3/.yarn/berry/cache/@swc-node-core-npm-1.13.1-7bd6e51ef2-10c0.zip/node_modules/@swc-node/core/lib/index.js:71:33)
    at compile (/Users/daniel/Documents/mpi-15k-controller/.yarn/__virtual__/@swc-node-register-virtual-c40bc1c491/3/.yarn/berry/cache/@swc-node-register-npm-1.9.1-7aae79f2c8-10c0.zip/node_modules/@swc-node/register/lib/register.js:81:37)
    at load (file:///Users/daniel/Documents/mpi-15k-controller/.yarn/__virtual__/@swc-node-register-virtual-c40bc1c491/3/.yarn/berry/cache/@swc-node-register-npm-1.9.1-7aae79f2c8-10c0.zip/node_modules/@swc-node/register/esm/esm.mjs:60:32) {
  code: 'StringExpected'
}

Node.js v21.7.3

And I think it's the same cause, since downgrading to<EMAIL_ADDRESS>fixed it for me too.
If you want to reproduce, you can check out this commit: https://github.com/danieltroger/mpi-15k-controller/pull/1/commits/2f9bf9fc38840045b8afcac464a730270229b822
And do yarn && cd backend && yarn start
I narrowed down the specific exception I'm seeing to yarn not deciding to read the file contents of commonjs modules here:

But @swc-node/register not handling that case properly

@yeliex would you mind follow up this issue introduced by the https://github.com/swc-project/swc-node/pull/767 ?

@yeliex would you mind follow up this issue introduced by the #767 ?

I would attention this later

I also have same issue as @danieltroger . Reference, action runner: https://github.com/psychobolt/vite-storybook-boilerplate/actions/runs/8972952433/job/24642078580 . Also reverting back to 1.9.0 fixed it as well.

Not exactly the same error message, but definitely a regressing in 1.9.1
$ node --no-warnings=ExperimentalWarning --experimental-loader @swc-node/register/esm scripts/clean.ts
file:///Users/ray.pierce/source/ent-shared-components/node_modules/@swc-node/register/esm/esm.mjs:52
    const swcAttribute = context.importAttributes.swc;
                                                  ^

TypeError: Cannot read properties of undefined (reading 'swc')
    at load (file:///Users/ray.pierce/source/ent-shared-components/node_modules/@swc-node/register/esm/esm.mjs:52:51)
    at nextLoad (node:internal/modules/esm/loader:163:28)
    at ESMLoader.load (node:internal/modules/esm/loader:603:26)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)
    at new ModuleJob (node:internal/modules/esm/module_job:64:26)
    at #createModuleJob (node:internal/modules/esm/loader:480:17)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:434:34)

Specifically, this is with Node 18.18.0 and<EMAIL_ADDRESS>When I bump to Node 18.19.0, everything works fine.  If I stay on Node 18.18.0 and downgrade to<EMAIL_ADDRESS>it also works again.

Not exactly the same error message, but definitely a regression in 1.9.1
$ node --no-warnings=ExperimentalWarning --experimental-loader @swc-node/register/esm scripts/clean.ts
file:///Users/ray.pierce/source/ent-shared-components/node_modules/@swc-node/register/esm/esm.mjs:52
    const swcAttribute = context.importAttributes.swc;
                                                  ^

TypeError: Cannot read properties of undefined (reading 'swc')
    at load (file:///Users/ray.pierce/source/ent-shared-components/node_modules/@swc-node/register/esm/esm.mjs:52:51)
    at nextLoad (node:internal/modules/esm/loader:163:28)
    at ESMLoader.load (node:internal/modules/esm/loader:603:26)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)
    at new ModuleJob (node:internal/modules/esm/module_job:64:26)
    at #createModuleJob (node:internal/modules/esm/loader:480:17)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:434:34)

Specifically, this is with Node 18.18.0 and<EMAIL_ADDRESS>When I bump to Node 18.19.0, everything works fine. If I stay on Node 18.18.0 and downgrade to<EMAIL_ADDRESS>it also works again.

node 18.18.0 does not support importAttributes.

node 18.18.0 does not support importAttributes, and experimental-loader  has been deprecated by node in higher version, I would try to add a polyfill to this

Should there be a minimum node version set for @swc-node/register then?


Some glb files are not rendered correctly

This needs investigation: https://forum.playcanvas.com/t/glb-viewer-fails-to-show-texture-mesh-properly/35886

Closing as based on the forum discussion, this is a model problem, also not rendering correctly in other tools.


Failed to run MethylToSNP

Description:
I'm having problems running the MethylToSNP function, I'm not sure what the problem is precisely.
Problem:
ncol(myUSARC_RAW)
[1] 85

nrow(myUSARC_RAW)
[1] 866836

mySNPs <- MethylToSNP(myUSARC_RAW, SNP=SNPs.147CommonSingle)
Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE,  :
  row names contain missing values

Some checks:
I checked to see if there were any missing values:
anyNA(myUSARC_RAW)
[1] FALSE

anyNA(rownames(myUSARC_RAW))
[1] FALSE

I was wondering if you've come across this before?

I could not reproduce it, unfortunately. The error message is a generic data frame constructor error, which could only be triggered in the very end of the MethylToSNP code when results are reported as a data.frame. Running traceback() could help see the call stack and narrow it down. I have a couple of questions that could help me identify the issue.
Did it also happen without specifying the SNP= parameter?
And most importantly, what is the data type (class) of myUSARC_RAW ?
I'm wondering if you will have any NA row names in anyNA(rownames(getBeta(myUSARC_RAW)))
I apologize for a late reply, I'm no longer working in the lab.


ergoCub1.1-SN001: fixed wrists

This PR forces use of CAN communication on the wrists of ergoCub.
It has just been tested and validated on the robot using latest robotology devel of icub-firmware-build, icub-firmware-shared, icub-main.

Hi @marcoaccame
Could you please extend these mods to ergoCub 2.0 as well? Thanks!
cc @AntonioConsilvio

ok, changed also in sn002


HIVE-25551. Fix Schema upgrade sql for mssql.

Fix has been pushed to master. Please close this PR.

Thanx @nrg4878


Remove upper version constraint for Python

Remove the upper version constraint to allow installs with Python 3.13.

@frwickst Would you mind taking a look at this one? Without it we'd have to disable the Huum integration for Python 3.13, see https://github.com/home-assistant/core/pull/129442.
If merged, please do a new release so we can update the version used by Home Assistant.

Thank you for bringing this to my attention. Sorry, I could not make this happen before the 3.13 branch was merged. Things happened to fast for me to react. But I've merged your changes as part of a separate push with some other changes as well that changed the version in all places of the repo.
I'll close this, but your commit was cherry-picked so that you would still get the credit for the change 😄

Sorry, I could not make this happen before the 3.13 branch was merged. Things happened to fast for me to react.

No problem. Opened https://github.com/home-assistant/core/pull/130527 in Home Assistant to update the version and add support for 3.13 back.

Thank you @cdce8p !


Snapshot view animations have artifacts, look glitchy

The view that temporarily shows up during the animate-out is quite glitchy with some artifacts. For example, it often shows the iPhone's main screen's top bar instead of the current app's top bar. And for iPhone 6/6+, it shows a zoomed-in version of the status bar which looks awkwardly oversized.
I was able to hot-fix this by doing the following:
Change:

return underStatusBar ? [[UIApplication sharedApplication].keyWindow.rootViewController.view snapshotViewAfterScreenUpdates:YES] : [[UIScreen mainScreen] snapshotViewAfterScreenUpdates:YES];

to:

return [[UIView alloc] initWithFrame:CGRectMake(0, 0, 1000, 500)];

under (in crtoast.m):

static UIView *CRStatusBarSnapShotView(BOOL underStatusBar)

This fixed the animate-out artifact. The CRToast appears to take a screenshot of the iPhone's main screen OR the current screen, and then replaces that with the animate-out view. But if you just return an empty view as I do above, it appears to work OK.
Thoughts?

Why not just take the snapshot of the top most view controller? Thats the one that the toast will be appearing over.


Relationship from Model Data and inheritance

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the SQLModel documentation, with the integrated search.
[X] I already searched in Google "How to X in SQLModel" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to SQLModel but to Pydantic.
[X] I already checked if it is not related to SQLModel but to SQLAlchemy.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
class SurveyDTO(SQLModel):
    responses: List[ResponsesDTO] = []
    # other fields..

class ResponsesDTO(SQLModel):
    code: int
    response: str

class SurveyTable(SurveyDTO, table='True'):
    id: Optional[int] = Field(default=None, primary_key=True)
    # how to manage relationship from DTO?

class ResponsesTable(ResponsesDTO, table='True'):
    id: Optional[int] = Field(default=None, primary_key=True)
    # how to manage relationship from DTO?

In FastAPI:

@app.post(endpoint_paths.SURVEY)
def post_survey(session: Session = Depends(get_session),
                           survey: SurveyDTO= Body(..., embed=True)) -> Response:
                 # save the survey

Description
I am trying to create a a one to many relationship through inheritance from a model class to a table class.
I don't understand how to create the relationship with the List[ResponsesDTO] in the table without duplicating code.
Maybe I am missing something?
Thank you for your help :)
Operating System
Windows
Operating System Details
No response
SQLModel Version
0.08
Python Version
3.8
Additional Context
No response

If you can provide an MRE I can try to help. :eyes:

it works
from typing import List, Optional, ClassVar
from sqlmodel import create_engine, Session, SQLModel, Field, Relationship

engine = create_engine('sqlite://',echo=True)

class SurveyDTO(SQLModel):
    ...
    # other fields..

class ResponsesDTO(SQLModel):
    code: int
    response: str

class SurveyTable(SurveyDTO, table=True):
    __tablename__: ClassVar[str] = 'survey_table'

    id: Optional[int] = Field(default=None, primary_key=True)
    # how to manage relationship from DTO?
    responses: List["ResponsesTable"] = Relationship()

class ResponsesTable(ResponsesDTO, table=True):
    __tablename__: ClassVar[str] = 'responses_table'

    id: Optional[int] = Field(default=None, primary_key=True)
    # how to manage relationship from DTO?
    survey_id: Optional[int] = Field(default=None, foreign_key='survey_table.id')
    survey: SurveyTable = Relationship()

def main():
    with Session(engine) as session:
        SQLModel.metadata.create_all(session.connection())
        session.commit()

        survey = SurveyTable()
        response1 = ResponsesTable(code=1, response='test1')
        response2 = ResponsesTable(code=1, response='test2')
        response3 = ResponsesTable(code=1, response='test3')
        survey.responses = [response1, response2, response3]
        session.add(survey)
        session.commit()

    with Session(engine) as session:
        survey = session.get(SurveyTable, 1)
        print(survey)
        if survey is not None:
            print(survey.responses)

if __name__ == '__main__':
    main()

This solves the problem from the SQLModel side. From FastAPI side the SurveyDTO and the list come as JSON payload from a POST request.
@app.post(endpoint_paths.SURVEY)
def post_survey(session: Session = Depends(get_session), survey: SurveyDTO= Body(..., `embed=True))

We could say that the object in the POST request should bea a SurveyTable but in this way I am exposing db data to the outside (and to documentation).
If I define the list in SurveyDTO and ovverride in SurveyTable I get ValueError: The field responses has no matching SQLAlchemy type. Is there a way to map a  field from DTO to a table field? Or I need to just duplicate the field in the parent.
Thank you guys!


CalcBiomass and readme.

restore ndvi-diff/NDVI-diff.ipynb file to avoid conflicts
add yourself and Sergi to the Authors list in the main README


Github PAT Token Documentation

User Need
As a Developer
I want Documentation on Github PAT token best practices
so that Our systems remain secure
Acceptance Criteria:

Write documentation around the standards of PAT tokens.
Where creating own tokens specify that fine-grained tokens should be used.
Should use default repository specific GITHUB_TOKEN token where possible, controlling token permissions per job using permissions field in GitHub Actions.

Replaced by #4399


Add a task for the creation of system accounts

This logic attempts to emulate the creation of a system user in ipa. This kind of account can be useful for automated tasks that require specific permissions to read and write from NFS shares. Right after creating the account, it is removed from the default group ipausers.
I haven't tested due to lack of permissions. @hfrSchmidt let me know if we can work this out.

If I remember correctly there was an option in the ipa_user role to create system users. But I can't seem to find the documentation anymore.


WeCross-Account-Manager 启动 start.sh 报错

问题描述
WeCross-Account-Manager 执行脚本 start.sh 时 出现错误

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceContextConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'newRestRequestFilter' defined in class path resource [com/webank/wecross/account/service/config/UAManagerConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.webank.wecross.account.service.RestRequestFilter]: Factory method 'newRestRequestFilter' threw exception; nested exception is java.lang.ClassCastException: class org.bouncycastle.asn1.DLSequence cannot be cast to class org.bouncycastle.asn1.ASN1Integer (org.bouncycastle.asn1.DLSequence and org.bouncycastle.asn1.ASN1Integer are in unnamed module of loader 'app')
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceContextConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'newRestRequestFilter' defined in class path resource [com/webank/wecross/account/service/config/UAManagerConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.webank.wecross.account.service.RestRequestFilter]: Factory method 'newRestRequestFilter' threw exception; nested exception is java.lang.ClassCastException: class org.bouncycastle.asn1.DLSequence cannot be cast to class org.bouncycastle.asn1.ASN1Integer (org.bouncycastle.asn1.DLSequence and org.bouncycastle.asn1.ASN1Integer are in unnamed module of loader 'app')
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'newRestRequestFilter' defined in class path resource [com/webank/wecross/account/service/config/UAManagerConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.webank.wecross.account.service.RestRequestFilter]: Factory method 'newRestRequestFilter' threw exception; nested exception is java.lang.ClassCastException: class org.bouncycastle.asn1.DLSequence cannot be cast to class org.bouncycastle.asn1.ASN1Integer (org.bouncycastle.asn1.DLSequence and org.bouncycastle.asn1.ASN1Integer are in unnamed module of loader 'app')
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'newRestRequestFilter' defined in class path resource [com/webank/wecross/account/service/config/UAManagerConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.webank.wecross.account.service.RestRequestFilter]: Factory method 'newRestRequestFilter' threw exception; nested exception is java.lang.ClassCastException: class org.bouncycastle.asn1.DLSequence cannot be cast to class org.bouncycastle.asn1.ASN1Integer (org.bouncycastle.asn1.DLSequence and org.bouncycastle.asn1.ASN1Integer are in unnamed module of loader 'app')
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.webank.wecross.account.service.RestRequestFilter]: Factory method 'newRestRequestFilter' threw exception; nested exception is java.lang.ClassCastException: class org.bouncycastle.asn1.DLSequence cannot be cast to class org.bouncycastle.asn1.ASN1Integer (org.bouncycastle.asn1.DLSequence and org.bouncycastle.asn1.ASN1Integer are in unnamed module of loader 'app')
版本

WeCross-Account-Manager [WeCross-Account-Manager-1.2.1]
Java: [jdk14]
kali 2022.2

#573


FieldReflector SetValue

C# / Latest version of the framework
Any insight on how to use the SetValue method on the FieldReflector object?  It seems to want a state object of my type and I'm not sure how to pass that in since this is being called in the static chained FormBuilder BuildForm method and I don't believe I have access to the instance state.  Wasn't able to find any examples and the framework source code didn't seem to provide any help.
Ultimately I'm trying to load values dynamically from a database and provide those as options for user selection in this dialog.
TIA,
-r

Nevermind, I figured it out.  Needs to be done in the SetDefine method.  :-)

Hi rodzillarr, Can you please share your code as I have stuck in same issue :(


customStyleMap is too limiting

customStyleMap works by identifying inline styles and iteratively building a style map by concatenating the maps together in order. For example, a character with BOLD and ITALIC would apply font-weight: bold and font-style: italic, which works well for thise case.
However, sometimes, you want to apply a single style based on having two overlapping ranges. For example, assuming the ordered set ['BOLD', 'ITALIC'] I want:
style: {
  fontFamily: 'MyFont-BoldItalic';
}

This is because I don't control the weights via CSS transforms alone, but a custom font.
I thought of a couple hacky solutions:

Define and apply a new custom style BOLD_ITALIC when I detect overlapping ranges, and use the customStyleMap but this just feels like sadness.
Use a decorator, but sadly, I would have to switch entirely to using a decorator for single styles because otherewise `customStyleMap``creates a new, styled span within the decorator's span, overriding styles.

The better solution, I think, may be to allow for a customStyleFn which takes a character and returns the styleMap you want to apply. This means that you'd lose the ability to "stack" styles via customStyleMap. Maybe this is a bit too heavy for this use case, but I'm not seeing anything more elegant right now.

The customStyleFn approach is interesting. I don't think you'd have to lose the ability to stack styles, you'd just have to do the combinations yourself.
An added benefit of this function would be avoiding the need to create a new customStyleMap object every time a new style name is added. This would be especially helpful for cases like color pickers.
Thinking aloud...
function customStyleFn(style: DraftInlineStyle): Object {
  const output = {};
  const isBold = style.has('BOLD'):
  const isItalic = style.has('ITALIC');

  if (isBold) {
    if (isItalic) {
      output.fontFamily = 'MyFont-BoldItalic';
    } else {
      output.fontWeight = 'bold';
    }
  } else if (isItalic) {
    output.fontStyle = 'italic';
  }

  // A possibility for color picker style names...
  const color = style.filter((value) => value.startsWith('#')).first();
  if (color) {
    output.color = color;
  };

  // etc.
  return output;
}

Is this something like what you have in mind?
The library could provide a default customStyleFn to process existing maps and ease the transition.

Yes, that's exactly what I was leaning towards.
(I wasn't clear by what I meant with the ability to stack styles, I meant you wouldn't get it "for free" and you'd have to implement yourself as you did in the code example.)

That would be great. I'm in a similar position: needing to implement a color picker and custom font styles.

Is this something that, if implemented, would likely be merged, and does anyone have plans to work on it?
If not, I'll take a look since I have a deadline and don't want to have to drop Draft because I can't implement a color picker.

Nothing prevents you from implanting a color picker. That said I was
planning to work on this next week. But have at it.
On Thursday, April 28, 2016, Andrew Gleave<EMAIL_ADDRESS>wrote:

Is this something that, if implemented, would likely be merged, and does
anyone have plans to work on it?
If not, I'll take a look since I have a deadline and don't want to have to
drop Draft because I can't implement a color picker.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/facebook/draft-js/issues/342#issuecomment-215565622

@andrewgleave I'd certainly be open to a PR.
I think a color picker should be doable already, though with some awkwardness around forcing re-renders.

I presume you mean that I could just mutate customStyleMap and force a re-render to get the behaviour? Or have I missed something?
If I get time, I'll be looking at this early next week.

@andrewgleave: Exactly. If you add new values to your customStyleMap, and relevant ContentBlock objects have the new style strings, then re-rendering the editor should re-render those blocks accordingly.
The awkwardness arises when making changes to the customStyleMap without corresponding changes to the ContentState, which would necessitate forcing a re-render of the editor.

Yeah, that's what I'm/was doing.
I made a start late today on adding support for customStyleFn. Will let you know.

@andrewgleave check out the referenced PR above.

@guitardave24 Excellent!

I have a similar issue, but would like to be able to create customRenderMap. The reason for that is that I would like to be able to create a custom inline style with a className that I can manipulate in an CSS file.
My use case is that I want to use customRenderMap to create <redact className="redact" /> and manipulate it using Pseudo CSS.
.redact,
.redact::selection {
  color: rgb(0, 0, 0);
  background: rgb(0, 0, 0);
}

.redact:hover {
  background: rgb(50, 50, 50);
}

Any particular reason this has not been merged yet ? cheers

Yeah, seems to be good.

Ditto

@hellendag ?

What about something like this for block styles as well?
For example, storing the amount of spacing before/after a block in the block-level metadata and then converting that dynamically to a React style object with the appropriate marginTop and marginBottom values.
I know something like this can already be done with blockStyleFn but that requires predefined classes. So if, for example, I wanted margin options for 4px, 5px, 6px... 19px, 20px, I would have to create a separate CSS class for each of them.
Would be much nicer to just return { ... marginTop: data.spaceBefore, ... } from a function.
Hmm, perhaps I should create a separate issue for that :)

I have proposed an additional enhancement to customStyleFn in a PR here: https://github.com/facebook/draft-js/pull/851 . This allows you to specify different CSS objects for an inline style depending on the underlying block type. Hopefully this is functionality others would find useful in master, as well.

I created an npm package that give helps with customStyles .
https://www.npmjs.com/package/draft-js-custom-styles

I have a use case that isn't covered by the addition of customStyleFn: using the ::before and ::after pseudo selectors, because they aren't supported by React.
My initial take was that the best solution would be allowing mapping to classes, so that you can map a style to a class - this would solve the issue for me and would provide plenty of flexibility for others as well (including how to handle multiple applied styles).
It seems that the customStyleFn almost tries to re-implement some of what CSS is supposed to do already.
Any thoughts?

@mzedeler you might want to have a look at #957 if you haven't already.
Otherwise, for your use case you should be able to create a decorator based on findstyleranges and then set a class there with the pseudo elements.

I'm having a trouble using customStyleFn. When the values of customStyleFn have changed, I have to re-render the editor itself to make changes across all over the content simultaneity. I have no idea about re-rendering Draft editor. How can I do that?

Nevermind. I found a solution. Get a editor state like:
    const selectedEditorState = EditorState.forceSelection(
      editor.editorState,
      editor.editorState.getSelection()
    );

And force re-render editor by :
function forceRender() {
  const currentState = store.getState();
  const content = currentState.editor.editorState.getCurrentContent();
  const newEditorState = EditorState.createWithContent(content, new CompositeDecorator([]));

  store.dispatch({
    type: UPDATE_EDITOR_STATE,
    payload: newEditorState
  });
}

I can get a re-rendered editor.


VYGR-411: Use a simple cache for Service Central

This is a simple implementation of a cache which should reduce the number of requests sent to Service Central without changing the actual logic.

I don't think local cache is the right approach here, we can do better than that. See my comment on the ticket.

@ash2k I've replied to your comment on that ticket. The main purpose of this PR is to address the issue with a long delay between adding item to the queue and processing it. I see 2 options of quickly fixing this issue:

Reduce the average processing time for each item - this PR achieves that via cache and reducing a processing of each item by 100-200 ms (time for a single call to SC)
Increase the number of workers, as a consequence of which we will increase the load on SC.

I'm not opposed to refactoring of the synchronization logic, I just don't want to spend too much time on that right now. If you're fine with increasing the number of workers instead of caching, I can work on that. The refactoring work could be part of the "technical debt" epic.

I'm just afraid that the needed refactoring will not happen with this band aid in place. I'd prefer a faster and simpler solution of increasing the number of workers. Don't delete this branch though =)

The fix increasing workers and QPS has been merged, and the monitor alert has been resolved.
So this is not urgent anymore, and we can work on a full refactoring of synchronization controller if we want :)

This is not urgent anymore, and can be fixed with a proper refactoring. Closing.


Capacity/Production Readiness

All,
Stumbled on this while struggling to get slurmrestd set up on pcluster. It looks like this provides a lot of friendly wrappers for HPC type problems. Is this code production-ready? Does it support GPU instances? Is there an API provided?

Hi there,
In general the code that you find on https://github.com/aws-samples is not supposed to be used in production but instead as a sample code, snippets, you use your projects.
About to your questions:

This particular project is constantly updated, maintained, and is also used by a number of customer in production environments. AWS does not commit on supporting it but we typically fix problem or respond to features requests in an "affordable effort" manner.

if you are looking for examples of how to use a Slurm REST API, you can have a look at this:
https://aws.amazon.com/blogs/hpc/using-the-slurm-rest-api-to-integrate-with-distributed-architectures-on-aws/

yes it does support GPUs see here: https://github.com/aws-samples/1click-hpc/blob/main/parallelcluster/config.us-east-1.sample.yaml#L165
in particular, the GPU instances can be uses for compute jobs or for running (3D) interactive applications (using Nice DCV).

No there is no API specifically developed for this project but most of the component/services used by this project do have an API:
a. ParallelCluster 3.X has an API https://docs.aws.amazon.com/parallelcluster/latest/ug/api-reference-v3.html
b. Nice EnginFrame has a REST API (as well as a wsdl web services interface): https://dn3uclhgxk1jt.cloudfront.net/enginframe/packages/2020.1/documentation/EFAdminGuide2020.1.pdf


CRAB-32584: Streamline Nagbot for easier expansion

Committed again with lots of changes based on Cody Ray's suggestions yesterday - bad timing on my part considering he's off the rest of this week, but appreciate any insight that y'all can offer regardless!


Issues Setting Up Cloned Project

yarn install fails (so I fell back on npm install)
error An unexpected error occurred: "https://registry.yarnpkg.com/broccoli-babel-transpiler-6.0.0-alpha.3.tgz: Request failed \"404 Not Found\"".
info If you think this is a bug, please open a bug report with the information provided in "ember-native-dom-helpers/yarn-error.log".

ember s fails
Could not require 'ember-cli-build.js': Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
SyntaxError: Could not require 'ember-cli-build.js': Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at module.exports (ember-native-dom-helpers/node_modules/ember-cli/lib/utilities/find-build-file.js:18:17)
    at Builder.setupBroccoliBuilder (ember-native-dom-helpers/node_modules/ember-cli/lib/models/builder.js:50:21)
    at new Builder (ember-native-dom-helpers/node_modules/ember-cli/lib/models/builder.js:30:10)

If you try again should be fine.

Addressed ember s failing in the above PR, still getting the yarn install errors:
yarn --version
0.23.2

ember --version
ember-cli: 2.13.0-beta.3
node: 4.7.0
os: linux x64

Apparently there is a bug in yarn on node 4. Not related with this project.


Users who registered via Northstar should edit profile there.

What's this PR do?
If a user was registered via Northstar, they should be redirected to Northstar to edit their profile. This will allow them to change their password (since Northstar knows and can check against these users' hashed passwords, and Drupal cannot). This also allows us to start testing the new profile form with a small percentage of users before we launch it as the real (and only) deal.
How should this be reviewed?
With 'yer eyes. 👀
Any background context you want to provide?
We currently don't redirect the user back to Phoenix after completing their profile form. That's a change we'll have to make on the ✨ Northstar side ✨.
Relevant tickets
Fixes 🔄.
Checklist

[ ] Documentation added for new features/changed endpoints.
[ ] Tested on staging.
[ ] Pinged a PM if this is a larger PR that would benefit from some additional testing love
[ ] Post a message in #phoenix if this includes something that causes a rebuild!

 (11) As a developer, I want to update user profile through northstar so that we're moving everything out of drupal.


Update coverage command description

When running swift doc --help both the generate and coverage subcommands have the same description.
OVERVIEW: A utility for generating documentation for Swift code.

USAGE: swift-doc <subcommand>

OPTIONS:
  -h, --help              Show help information.

SUBCOMMANDS:
  generate                Generates Swift documentation
  coverage                Generates Swift documentation
  diagram                 Generates diagram of Swift symbol relationships

This PR changes the coverage description to “Generates documentation coverage statistics for Swift files”. I took that string from the project’s readme section on the coverage command 😸

Thanks so much for this, @rastersize — I really appreciate it.


Add validation for SPV_EXT_fragment_shader_interlock

FYI @dgkoch I had to pull in some of the sm_builtins stuff to avoid a build error.

FYI @dgkoch I had to pull in some of the sm_builtins stuff to avoid a build error.

Thanks!

I updated Android.mk and BUILD.gn, and CI is all passing now.


Failed to detect NVIDIA driver version since vllm 0.2.0

Hey.
I recently updated from 0.1.3 to 0.2.0.  Since then I have a problem.
The following Docker container is deployed through SageMaker:
FROM nvcr.io/nvidia/pytorch:22.12-py3
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get -y update \
    && apt-get -y install gcc \
    && pip uninstall torch -y

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY .

vllm==0.2.0
Flask==2.3.2
gunicorn==20.1.0
sentence_transformers==2.2.2
accelerate==0.23.0
huggingface_hub==0.17.3
typing-inspect==0.9.0
typing_extensions==4.8.0

When creating the Inference service, CloudWatch then repeatedly spits out the following logs:
=============
== PyTorch ==
=============
NVIDIA Release 22.12 (build 49968248)
PyTorch Version 1.14.0a0+410ce96
Container image Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Copyright (c) 2014-2022 Facebook Inc.
...
Copyright (c) 2013-2016 The Caffe contributors
All rights reserved.
Various files include modifications (c) NVIDIA CORPORATION & AFFILIATES. All rights reserved.
This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license
ERROR: No supported GPU(s) detected to run this container
Failed to detect NVIDIA driver version.
Usage: serve [OPTIONS] COMMAND [ARGS]... CLI for managing Serve applications on a Ray cluster.
Options: -h, --help Show this message and exit.
Commands: build Generate a config file for the specified applications. config Gets the current config(s) of Serve application(s) on the... deploy Deploy Serve application(s) from a YAML config file. run Run Serve application(s). shutdown Shuts down Serve on the cluster, deleting all applications. start Start Serve on the Ray cluster. status Get the current status of all Serve applications on the cluster.

When I use exactly the same settings but vllm version 0.1.3. It works. Any idea? Probably I am just doing something terribly wrong ;-)
Thanks in advance!

Hi @chrislemke I think this issue is due to the recent PyTorch v2.1.0 release and is solved by #1290. Could you try it again?


feat: add Healing Arts metadata (DEV-3892)

please see the comments, thx!

Thanks for your feedback, I have applied it.


Had to add css loader prefix in app.jsx to successfully complete webpack process

from:
import 'bootstrap/dist/css/bootstrap.min.css';
to:
import 'css!../node_modules/bootstrap/dist/css/bootstrap.min.css';
otherwise works great, thanks.

Hi,
Do you mind create a pull request with the fix?
Thanks!

Even with the plugin prefix does not work for me. Took a fresh cloned repo, then npm install and  and installed only bootstrap ( npm i bootstrap --save)
Added this to the component like so
import styles from './index.scss';
import React from 'react';
import 'css!../node_modules/bootstrap/dist/css/bootstrap.css';

export default class App extends React.Component {
  render() {
    return (
      <div>

After npm start I get the following
ERROR in ./~/css-loader!./~/bootstrap/dist/css/bootstrap.css
Module build failed: Unknown word (5:1)

  3 | // load the styles
  4 | var content = require("!!./../../../css-loader/index.js!./bootstrap.css");

There seem to be a bug in css-loader module itself... I saw this https://github.com/webpack/css-loader/issues/362 issue and using import 'style!../node_modules/bootstrap/dist/css/bootstrap.css'; instead of css prefix works.

Closing this unless we can do anything to make this better...

I have similar issue:
ERROR in ./~/css-loader!./assets/sass/foo.css
Module build failed: Unknown word (1:1)

> 1 | exports = module.exports = require("./../../node_modules/css-loader/lib/css-base.js")();
    | ^
  2 | // imports
  3 |
  4 |

Syntax Error: Unknown word (1:1)

> 1 | exports = module.exports = require("./../../node_modules/css-loader/lib/css-base.js")();
    | ^
  2 | // imports
  3 |
  4 |

    at C:\Users\user\app\node_modules\css-loader\lib\processCss.js:219:23
    at process._tickCallback (internal/process/next_tick.js:103:7)
 @ ./assets/js/react/dev/MyCustomSlider.js 47:0-22

sadly css-loader hasn't fixed their issue yet :(

I had the same error. css-loader is not working. Replaced and style-loader worked instantly. The following works :
 import "style-loader!../styles/main.css";


Print algorithms

This PR makes a couple of changes to the verbose output of an Algorithm.

update_objective_interval is used to control how often the objective function is evaluated. The iteration number and the objective are stored in the algorithm
the run method accepts the new print_interval parameter (defaults to update_objective_interval) which controls how often there is a print to screen during the run of the algorithm.
the verbose parameter is now an int: 0 means no print to screen (it was verbose=False, very_verbose=False), 1 medium verbosity and default setting (verbose=True, very_verbose=False), 2 highly verbose (verbose=True, very_verbose=True). The change is backward compatible and both verbose and very_verbose as boolean are accepted, though deprecated.
verbose=2 is a setting that is useful only for PDHG and SPDHG. However, the verbose=2 setting is available for all algorithms, but in the column for the dual and primal-dual gap there will be printed N/A
the callback is evaluated at each update_objective_interval regardless of the print_interval
the timing of the time per iteration will be up-to-date, even if the objective isn't calculated
adds the iterations property to Algorithm where the iterations at which the objective has been evaluated are stored

Notice that print to screen will write the evaluated objective value only if the print happens at a multiple of update_objective_interval. Where not available it'll print N/A.
For instance

algo = PrintAlgo(update_objective_interval = 10, max_iteration = 1000)

algo.run(20, verbose=2, print_interval = 2)

algo.run(3, verbose=1, print_interval = 2)

algo.run(20, verbose = 1, print_interval = 7)

algo.run(20, verbose=True, very_verbose=False)
algo.run(20, verbose=True, very_verbose=True, print_interval=7, callback=callback)

print (algo._iteration)
print (algo.objective)

This code outputs
     Iter   Max Iter     Time/Iter        Primal          Dual     Primal-Dual
                               [s]     Objective     Objective             Gap
        0       1000         0.000    0.00000e+00           N/A            N/A
        2       1000         0.100            N/A           N/A            N/A
        4       1000         0.100            N/A           N/A            N/A
        6       1000         0.100            N/A           N/A            N/A
        8       1000         0.100            N/A           N/A            N/A
       10       1000         0.100    1.00000e+02           N/A            N/A
       12       1000         0.100            N/A           N/A            N/A
       14       1000         0.100            N/A           N/A            N/A
       16       1000         0.100            N/A           N/A            N/A
       18       1000         0.100            N/A           N/A            N/A
----------------------------------------------------------------------------
       20       1000         0.100    1.00000e+02           N/A            N/A
Stop criterion has been reached.

     Iter   Max Iter     Time/Iter            Objective
                               [s]
       20       1000         0.100          4.00000e+02
       22       1000         0.100                  N/A
-------------------------------------------------------
       23       1000         0.100                  N/A
Stop criterion has been reached.

     Iter   Max Iter     Time/Iter            Objective
                               [s]
       23       1000         0.100                  N/A
       30       1000         0.100          9.00000e+02
       37       1000         0.100                  N/A
-------------------------------------------------------
       43       1000         0.100                  N/A
Stop criterion has been reached.

     Iter   Max Iter     Time/Iter            Objective
                               [s]
       43       1000         0.100                  N/A
       53       1000         0.100                  N/A
-------------------------------------------------------
       63       1000         0.100                  N/A
Stop criterion has been reached.

     Iter   Max Iter     Time/Iter        Primal          Dual     Primal-Dual
                               [s]     Objective     Objective             Gap
       63       1000         0.100            N/A           N/A            N/A
I am being called  70
       70       1000         0.100    4.90000e+03           N/A            N/A
       77       1000         0.100            N/A           N/A            N/A
I am being called  80
----------------------------------------------------------------------------
       83       1000         0.100            N/A           N/A            N/A
Stop criterion has been reached.

[0, 10, 20, 30, 40, 50, 60, 70, 80]
[0, 100, 400, 900, 1600, 2500, 3600, 4900, 6400]

Also, notice that only GradientDescent requires the evaluation of the objective value at the initialisation, therefore the call to update_objective in set_up has been removed in all algorithms (this speeds up the set up of the algorithm).

closes #669
closes #673

Looking at it now, it is looking very promising. Two immediate comments:

I would prefer to have blank space instead of N/A, that makes it simpler to look at.

This I think was present before this PR as I noticed the same yesterday. There seems to be a bug when stopping and starting the algorithm, specifically look at the output at iteration 20, when it stops, you have primal objective 1e+2. Then when it restarts it goes again iteration 20, but prints objective 4e+2. I don't mean the fact that it is bigger (which is also concerning, but I don't know what problem is being solved) but the fact that it is different. Has another iteration already been done, so it should print 21 in the first line instead of 20 again?

There are some print outs that appear like debugging statements "I am being printed  70" and "I am being printed  80" in the last algorithm run. Remove?

The lines I am being called  80 are to demonstrate the use of the callback in the run. The callback function gets called every update_objective_interval (in the example update_objective_interval = 10, so it got called only at 70 and 80 iteration. In this case it just prints to screen.
Your point 2 before is well spotted. In this specific example the objective is the square of the iteration number. So, the 400 is correct and the 100 is wrong. This means that if you run 20 iterations it'll go from iteration 0 to 19. The actual objective printed is the last one to be available, i.e. 100 calculated at iteration 10.
Thanks I'll debug tomorrow and will remove N/A.

OK great, thanks. A few follow-up points/questions:
What does iteration 0 mean?  Is that the first actual iteration? In other words what is stored in alg.objective[0] and alg.objective[1]?  I thought in position [0] we save the objective at the initial value, then run 20 iterations, so that alg.objective is 21 elements long, and the objective after iteration 20 is in position [20].
It's great to have the iterations property - that makes it easy to plot objective history vs the correct iteration numbers afterwards.
How would one specify NOT to save any objective values?  update_objective_interval = 0?

Integers for verbose is great too: much easier to remember, and cleaner to add more verbosity levels if necessary later.

With the timing being printed no matter whether the objective has been evaluated at that iteration, it should be possible to compare and see how much more expensive it is to compute the objective.

How would one specify NOT to save any objective values? update_objective_interval = 0?

Exactly

What does iteration 0 mean? Is that the first actual iteration? In other words what is stored in alg.objective[0] and alg.objective[1]? I thought in position [0] we save the objective at the initial value, then run 20 iterations, so that alg.objective is 21 elements long, and the objective after iteration 20 is in position [20].

I think I've addressed your points. Now when you issue something like (notice that in this algorithm the objective function value is the square of the iteration number).
algo = SomeAlgorithm(update_objective_interval=5, , max_iteration = 1000)
algo.run(10, print_interval=2, verbose=1)
print (algo.iterations)
print (algo.objective)

algo.run(10, print_interval=2, verbose=1)
print (algo.iterations)
print (algo.objective)

The expected behaviour is:
     Iter   Max Iter     Time/Iter        Primal          Dual     Primal-Dual
                               [s]     Objective     Objective             Gap
        0       1000         0.000    0.00000e+00
        2       1000         0.050
        4       1000         0.050
        6       1000         0.050
        8       1000         0.050
       10       1000         0.050    1.00000e+02
----------------------------------------------------------------------------
       10       1000         0.050    1.00000e+02
Stop criterion has been reached.

[0, 5, 10]
[0, 25, 100]
     Iter   Max Iter     Time/Iter            Objective
                               [s]
       11       1000         0.050
       13       1000         0.050
       15       1000         0.050          2.25000e+02
       17       1000         0.050
       19       1000         0.050
-------------------------------------------------------
       20       1000         0.050          4.00000e+02
Stop criterion has been reached.

[0, 5, 10, 15, 20]
[0, 25, 100, 225, 400]

I see:

in algo.iterations you find all the iterations at which the objective function has been evaluated, that's [0,5,10,15,20] as the update_objective_interval = 5
in algo.objective you find the relative values of the objective function
the first run(10) runs 10 iteration + the evaluation of the objective function on the starting solution, therefore the print stops at iteration 10.
the second run(10) starts from iteration 11 and proceeds with a print_interval=2 apparently off sync. This is expected as the print_interval is detached from the update_objective_interval and is related to the issuing of run.

@jakobsj Jenkins is happy, if you are too I will merge

Looks great, thanks, please go ahead.
On Tue, 20 Oct 2020, 17:17 Edoardo Pasca<EMAIL_ADDRESS>wrote:

@jakobsj https://github.com/jakobsj Jenkins is happy, if you are too I
will merge
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/vais-ral/CCPi-Framework/pull/674#issuecomment-712928209,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACMDSCHLUGQ37RBO6PNIMODSLWSYLANCNFSM4SWNSXVQ
.


Update MD file on new branch 2017-21-13_06-11-35

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.md
:white_check_mark:Succeeded

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.


"next unread" hotkey includes muted streams

Using the n ("Narrow to next unread") hotkey on chat.zulip.org just now, it started cycling through the topics in the #test+here stream. Which I'm subscribed to, but have muted.
The hotkey should skip muted streams and muted topics -- its purpose is to help catch up, and I don't want to catch up on those.

Duplicate of #4735.  There's an open PR, in need of some fixes (the whole feature is new in the last week).

Huh. I thought I'd... ah, that's a PR. I searched for any open issues mentioning "muted"; should have also deleted the is:issue token. Thanks!

Fix merged, thanks for the report!
Yeah, in theory that one should have gone through an issue, but sometimes folks don't bother when the thought is the fix will be quick and is being actively worked on.


Archived folders not found if any folder under Archive is missing a readme

In the LifeOS testing vault I have created a folder called "testing"in "4. Archives" with the tag #work. Under the "Work" area, "testing" shows up under archive.

I then create another folder within "4. Archives" called "Not A Test". There's nothing inside of this folder, not even a readme.
I go back to the "Work" area and the Archived section is now empty.

I create "Not A Test.readme" and go back to the "Work" area. "Testing" has reappeared under Archive.
I then go to "Not A Test.readme" and give it the tag #work. Both archived folders now show under the Archived section.

I then go back to "Not A Test" and remove the tag #work. "testing" still shows under the Work area.
Creating any new folder without a Readme again repeats the process of no folders showing up under Archive.

Having an index file is a convention of a PARA note


Incorrect chef-vault gem is selected for Chef 12

Cookbook version
3.1.1
Chef-client version
12.19.36
12.22.5
Platform Details
Oracle Enterprise Linux (RHEL) 6.10
Oracle Enterprise Linux (RHEL) 7
Scenario:
Installing cookbook gems selects the brand-new 4.0.1 chef-vault gem which is incompatible with Chef 12's embedded Ruby 2.3. This breaks the entire chef-client run.
Steps to Reproduce:
Include this cookbook in the run-list of a node running Chef 12, then chef-client
Expected Result:
Chef-client completes
Actual Result:
Chef-client breaks at 'installing cookbook gems'
$ sudo cat /var/chef/cache/chef-stacktrace.out
Generated at 2019-12-30 13:54:37 -0600
Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '5'
---- Begin output of bundle install ----
STDOUT: Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using aws-eventstream 1.0.3
Using aws-partitions 1.228.0
Using aws-sigv4 1.1.0
Using jmespath 1.4.0
Using aws-sdk-core 3.71.0
Using aws-sdk-cloudformation 1.21.0
Using aws-sdk-cloudwatch 1.22.0
Using aws-sdk-dynamodb 1.28.0
Using aws-sdk-ec2 1.115.0
Using aws-sdk-elasticloadbalancing 1.14.0
Using aws-sdk-iam 1.22.0
Using aws-sdk-kinesis 1.15.0
Using aws-sdk-kms 1.20.0
Using aws-sdk-route53 1.24.0
Using aws-sdk-s3 1.38.0
Using aws-sdk-ssm 1.46.0
Using bundler 1.16.6
Fetching chef-vault 4.0.1
Installing chef-vault 4.0.1
Gem::RuntimeRequirementNotMetError: chef-vault requires Ruby version >= 2.4. The
current ruby version is 2.3.0.
An error occurred while installing chef-vault (4.0.1), and Bundler cannot
continue.
Make sure that `gem install chef-vault -v '4.0.1'` succeeds before bundling.
In Gemfile:
  chef-vault

3.1.2 resolves the Chef 12 incompatibilities.


$context is never set

Most likely it should come from New-AzApiManagement...?

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

ID: 490f58ad-9620-edda-36c5-6de18c61edb9
Version Independent ID: 385c8ad4-2613-fb66-e180-a62b710d8b13
Content: Azure PowerShell Script Sample - Set up rate limit policy
Content Source: articles/api-management/scripts/powershell-setup-rate-limit-policy.md
Service: api-management
GitHub Login: @vladvino
Microsoft Alias: apimpm

Thanks for the feedback! We are currently investigating and will update you shortly.

Hi @Mikli Sorry for the delay in response and thank you reporting this issue. You can set the $context as follows:

$context = New-AzApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $apimServiceName

I've created a PR at the Powershell samples repo that'll address this issue: Azure/azure-docs-powershell-samples/pull/227
We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Reconsider how algorithms are represented and passed

Initial thoughts:
I should consider just switching each algorithm implementation to a class that gets instantiated and implements an interface, as it is straightforward for the algorithm's parameters (e.g., batch size) to just be instance variables, and this is going with the grain of what's easy to do in Java. Alternatively, I could look into the idea of calling a static method that somehow takes different numbers of  parameters for different algorithms, as a method with parameters feels more fitting than an object with instance variables.

I'm choosing the former option -- i.e., the algorithm is implemented in a class that implements an interface.
E.g., class AsYouGoPairer implements PairingAlgorithm

New strategy implemented in 061a215611596a71d2afc6a5e6053946c40c351f.


Segfault?

Parsing the following Dart program produces a segfault on my machine:
void main() {
  test('', () {
    'åÅ';
    'åÅ';
  });
}

That is, the following ...
  // ...
  const program = r"""
void main() {
  test('', () {
    'åÅ';
    'åÅ';
  });
}
""";
  final tree = parser.parse(program);
  // ...

... produces:
===== CRASH =====
si_signo=Segmentation fault: 11(11), si_code=2, si_addr=0x2c
version=3.2.0-edge.88b07ba64e07fb0eef9c777769917c65fdf1832e (be) (Tue Sep 19 21:57:39 2023 +0000) on "macos_arm64"
pid=10106, thread=15363, isolate_group=main(0x13d829800), isolate=main(0x13d82c600)
os=macos, arch=arm64, comp=no, sim=no
isolate_instructions=10028dfe0, vm_instructions=10028dfe0
fp=1704222b0, sp=1704220d0, pc=102a57278
  pc 0x0000000102a57278 fp 0x00000001704222b0 ts_parser_parse+0x1628
  pc 0x0000000102a585d0 fp 0x00000001704222f0 ts_parser_parse_string+0x30
  pc 0x0000000102b07a28 fp 0x0000000170422320 Unknown symbol
  pc 0x00000001056c13f0 fp 0x0000000170422368 Unknown symbol
  pc 0x00000001056c0e4c fp 0x00000001704223e8 Unknown symbol
  pc 0x00000001056b9858 fp 0x0000000170422488 Unknown symbol
  pc 0x00000001056adc7c fp 0x00000001704224d0 Unknown symbol
  pc 0x00000001056ada9c fp 0x00000001704224f8 Unknown symbol
  pc 0x00000001056ad978 fp 0x0000000170422558 Unknown symbol
  pc 0x00000001056ac1c8 fp 0x0000000170422598 Unknown symbol
  pc 0x00000001056abe20 fp 0x0000000170422600 Unknown symbol
  pc 0x00000001056aa908 fp 0x0000000170422658 Unknown symbol
  pc 0x0000000102b03404 fp 0x0000000170422730 Unknown symbol
  pc 0x00000001003a983c fp 0x00000001704227a0 /Users/modulovalue/Downloads/dart-sdk/bin/dart+0x16583c
  pc 0x00000001003ab2f4 fp 0x00000001704227e0 /Users/modulovalue/Downloads/dart-sdk/bin/dart+0x1672f4
  pc 0x00000001003c89f0 fp 0x0000000170422d90 /Users/modulovalue/Downloads/dart-sdk/bin/dart+0x1849f0
  pc 0x00000001003eb550 fp 0x0000000170422e00 /Users/modulovalue/Downloads/dart-sdk/bin/dart+0x1a7550
  pc 0x00000001003ebb7c fp 0x0000000170422e60 /Users/modulovalue/Downloads/dart-sdk/bin/dart+0x1a7b7c
  pc 0x00000001004f3c0c fp 0x0000000170422f20 /Users/modulovalue/Downloads/dart-sdk/bin/dart+0x2afc0c
  pc 0x00000001004f3e84 fp 0x0000000170422f50 /Users/modulovalue/Downloads/dart-sdk/bin/dart+0x2afe84
  pc 0x000000010047e204 fp 0x0000000170422fc0 /Users/modulovalue/Downloads/dart-sdk/bin/dart+0x23a204
  pc 0x0000000182e8a06c fp 0x0000000170422fe0 _pthread_start+0x94
-- End of DumpStackTrace
  pc 0x0000000000000000 fp 0x0000000170422320 sp 0x0000000000000000 Cannot find code object
  pc 0x00000001056c13f0 fp 0x0000000170422368 sp 0x0000000170422330 [Optimized] FfiTrampoline__ts_parser_parse_string
  pc 0x00000001056c0e4c fp 0x00000001704223e8 sp 0x0000000170422378 [Unoptimized] TreeSitter.ts_parser_parse_string
  pc 0x00000001056b9858 fp 0x0000000170422488 sp 0x00000001704223f8 [Unoptimized] Parser.parse
  pc 0x00000001056adc7c fp 0x00000001704224d0 sp 0x0000000170422498 [Unoptimized] main
  pc 0x00000001056ada9c fp 0x00000001704224f8 sp 0x00000001704224e0 [Unoptimized] main
  pc 0x00000001056ad978 fp 0x0000000170422558 sp 0x0000000170422508 [Unoptimized] _Closure@0150898.dyn:call
  pc 0x00000001056ac1c8 fp 0x0000000170422598 sp 0x0000000170422568 [Unoptimized]<EMAIL_ADDRESS>closure>
  pc 0x00000001056abe20 fp 0x0000000170422600 sp 0x00000001704225a8 [Unoptimized] _Closure@0150898.dyn:call
  pc 0x00000001056aa908 fp 0x0000000170422658 sp 0x0000000170422610 [Unoptimized] _RawReceivePort@1026248._handleMessage@1026248
  pc 0x0000000102b03404 fp 0x0000000170422730 sp 0x0000000170422668 [Stub] InvokeDartCode

Can any of the contributors reproduce this or is it most likely my fault? I can parse other Dart code without any segfaults, so I'm not sure how to proceed here.

I'm not sure many others are using the dart TreeSitter ffi bindings (I'm the contributor that added it, and I have set it to the side for now, due to other priorities). Glad to know someone is using it!
Right now, I'm running into an issue where dart isn't even able to find the dylibs in the first place (even though I verified they exist at the proper locations), so I'll have to dig into why that is an issue now, when it wasn't before - maybe a dart compiler bug or version issue for me.
Yours is a strange issue though. You could try getting rid of the finalizer stuff in the library. It was my first time using dart's C finalizer support, and I don't know that I got it perfectly correct, but it seems like if it was an issue with that it would occur on the other code you have parsed, which makes me think this is an issue in the scanner or parser, or even the tree sitter library itself.

Just figured out my issue, (copied symlink, and not actual library). Anyways, I'm not getting any segfault, and the tree prints out fine.

Nevermind, I didn't have a segfault, but there was an issue with the parsed string. Just pushed a fix and published to pub.dev.

@TimWhiting Thank you for your help and the quick fix. I can confirm that the issue has been resolved on my machine and everything seems to be working as expected now.


[audit] update to version 4.0.2 and fix the issue of multiple definitions of a function

Update audit to the latest version 4.0.2.
No feature need to be tested.
The following error occurs when installing under Linux.
/usr/bin/ld: /usr/bin/ld: ../auparse/.libs/libauparse.a(interpret.o): in function `aulookup_destroy_uid_list':
/mnt/vcpkg-ci/b/audit/x64-linux-dbg/auparse/.././../src/v4.0.2-90950820cd.clean/auparse/interpret.c:598: multiple definition of `aulookup_destroy_uid_list'; ausearch-lookup.o:/mnt/vcpkg-ci/b/audit/x64-linux-dbg/src/.././../src/v4.0.2-90950820cd.clean/src/ausearch-lookup.c:246: first defined here

Fix the multiple definitions of the aulookup_destroy_uid_list function in interpret.c.

[x] Changes comply with the maintainer guide.
[x] SHA512s are updated for each updated download.
[ ] ~The "supports" clause reflects platforms that may be fixed by this new version.~
[ ] ~Any fixed CI baseline entries are removed from that file.~
[ ] ~Any patches that are no longer applied are deleted from the port's directory.~
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

I have submitted an issue upstream to fix the bug: https://github.com/linux-audit/audit-userspace/issues/391


setNativeprops on a View in SVG does not work

Bug
<Svg>
    <View ref={ref} />
</Svg>

ref.setNativeProps()  was working in v9.5.1 but not working in v11.0.1

Can you make a full reproduction?

:tada: This issue has been resolved in version 12.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

I'm trying to use setNativeProps() on a Ellipse, but it doesn't exist. I'm using react-native-web and the latest react-native-svg (12.1). I just noticed this question was about a ref to a View inside Svg, but still curious.

setNativeProps seems not to be support on WebShape (which is the substitute for Shape on Web and that has setNativeProps implemented).
@msand I would gladly help out with implementing it (if help is needed) as I'm interested in getting it to work. However, I'd need some guidance first


chore: updated ci (node version), fixed badge in readme, updated deps, added license file

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (a4ffbd9) 100.00% compared to head (d0531cc) 100.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##            master       #14   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            4         4
  Lines          125       125
=========================================
  Hits           125       125

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


Obtaining refresh tokens is not working

Describe the Bug
All of a sudden today my scripts using praw to interact with the reddit API stopped being able to authenticate. I wasn't certain if it was an issue with my API credentials so I thought I'd make a new app to get new credentials. However, after doing so and then trying to use the script found in the praw docs here to obtain the necessary refresh token, the script fails with the attached error.
Desired Result
The script using praw and prawcore should return a Reddit refresh token for Oauth2 access.
Relevant Logs
Enter a comma separated list of scopes, or `*` for all scopes: *
Enter the client ID, it's the line just under Personal use script at the top: [redacted]
Enter the client secret, it's the line next to secret: [redacted]
Now open this url in your browser: https://www.reddit.com/api/v1/authorize?client_id=[redacted]&duration=permanent&redirect_uri=http%3A%2F%2Flocalhost%3A8080&response_type=code&scope=%2A&state=35674
Traceback (most recent call last):
  File "/Users/username/Projects/personal/macos-menubar-plugins/resources/scripts/praw_refresh_token.py", line 98, in <module>
    sys.exit(main())
  File "/Users/username/Projects/personal/macos-menubar-plugins/resources/scripts/praw_refresh_token.py", line 70, in main
    refresh_token = reddit.auth.authorize(params["code"])
  File "/Users/username/.virtualenvs/macos-menubar-plugins/lib/python3.10/site-packages/praw/models/auth.py", line 53, in authorize
    authorizer.authorize(code)
  File "/Users/username/.virtualenvs/macos-menubar-plugins/lib/python3.10/site-packages/prawcore/auth.py", line 242, in authorize
    self._request_token(
  File "/Users/username/.virtualenvs/macos-menubar-plugins/lib/python3.10/site-packages/prawcore/auth.py", line 158, in _request_token
    raise OAuthException(
prawcore.exceptions.OAuthException: invalid_grant error processing request

Code to reproduce the bug
"""This example demonstrates the flow for retrieving a refresh token.

This tool can be used to conveniently create refresh tokens for later use with your web
application OAuth2 credentials.

To create a Reddit application visit the following link while logged into the account
you want to create a refresh token for: https://www.reddit.com/prefs/apps/

Create a "web app" with the redirect uri set to: http://localhost:8080

After the application is created, take note of:

- REDDIT_CLIENT_ID; the line just under "web app" in the upper left of the Reddit
  Application
- REDDIT_CLIENT_SECRET; the value to the right of "secret"

Usage:

    EXPORT praw_client_id=<REDDIT_CLIENT_ID>
    EXPORT praw_client_secret=<REDDIT_CLIENT_SECRET>
    python3 obtain_refresh_token.py

"""
import random
import socket
import sys

import praw

def main():
    """Provide the program's entry point when directly executed."""
    scope_input = input(
        "Enter a comma separated list of scopes, or `*` for all scopes: "
    )
    scopes = [scope.strip() for scope in scope_input.strip().split(",")]

    client_id = input(
        "Enter the client ID, it's the line just under Personal use script at the top: "
    )
    client_secret = input("Enter the client secret, it's the line next to secret: ")

    reddit = praw.Reddit(
        client_id=client_id.strip(),
        client_secret=client_secret.strip(),
        redirect_uri="http://localhost:8080",
        user_agent="obtain_refresh_token/v0 by u/bboe",
    )
    state = str(random.randint(0, 65000))
    url = reddit.auth.url(duration="permanent", scopes=scopes, state=state)
    print(f"Now open this url in your browser: {url}")

    client = receive_connection()
    data = client.recv(1024).decode("utf-8")
    param_tokens = data.split(" ", 2)[1].split("?", 1)[1].split("&")
    params = {
        key: value for (key, value) in [token.split("=") for token in param_tokens]
    }

    if state != params["state"]:
        send_message(
            client,
            f"State mismatch. Expected: {state} Received: {params['state']}",
        )
        return 1
    elif "error" in params:
        send_message(client, params["error"])
        return 1

    refresh_token = reddit.auth.authorize(params["code"])
    send_message(client, f"Refresh token: {refresh_token}")
    return 0

def receive_connection():
    """Wait for and then return a connected socket..

    Opens a TCP connection on port 8080, and waits for a single client.

    """
    server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
    server.bind(("localhost", 8080))
    server.listen(1)
    client = server.accept()[0]
    server.close()
    return client

def send_message(client, message):
    """Send message to client and close the connection."""
    print(message)
    client.send(f"HTTP/1.1 200 OK\r\n\r\n{message}".encode("utf-8"))
    client.close()

if __name__ == "__main__":
    sys.exit(main())

My code example does not include the Reddit() initialization to prevent credential leakage.
Yes
This code has previously worked as intended.
Yes
Operating System/Environment
macOS Monterey 12.3.1
Python Version
Python 3.10.0
PRAW Version
7.5.0
Prawcore Version
2.3.0
Anything else?
No response

Did you set the redirect uri to http://localhost:8080 on https://www.reddit.com/prefs/apps?

@LilSpazJoekp yes, both the pre-existing app and the new one I made have http://localhost:8080 set as the redirect URIs. It's important to note that the pre-existing app had worked without issue through yesterday, and I used the same praw docs script to obtain a refresh token for it in the past.

So I figured I would come back later to check on things, since the initial bug occurred without any changes, and sure enough it is no longer happening. I was able to obtain new refresh tokens again using the same script without issue, and I haven't even upgraded to the latest praw v7.6.0 yet.
As such, I suspect this was not a praw issue at all but was instead some temporary issue on Reddit's side with how they handle OAuth2 authentication, so I'm closing the issue as it is no longer occurring.
Thanks for the speedy reply earlier @LilSpazJoekp, and thanks for everything you and the praw team do!


Ninja midround antagonist can spawn on extended.

Description
title
Reproduction
Set round to extended
wait an eternity
Ninja ghostrole spawns
Additional context
feel free to close if intended but Extended is basically "no antagonists ™" so feels strange to have a midround antag spawn in without admin intervention

Terminator can also spawn on extended
I think extended still rolls random events and midround antags, you just don't get roundstart antags

Extended rolling random events is intended.

introducing: boring mode. We removed all antagonists, midrounds, and possible threats. You are now free to RP in peace without the pesky disturbances of gameplay.

greenshift my beloathed.

So then how are you supposed to have a fully curated admin event that doesn't get interrupted by a mob of tarantulas or a zombie outbreak, hmmmm?

So then how are you supposed to have a fully curated admin event that doesn't get interrupted by a mob of tarantulas or a zombie outbreak, hmmmm?

part of the fun!

So then how are you supposed to have a fully curated admin event that doesn't get interrupted by a mob of tarantulas or a zombie outbreak, hmmmm?

endgamerule BasicStationEventScheduler

introducing: boring mode. We removed all antagonists, midrounds, and possible threats. You are now free to RP in peace without the pesky disturbances of gameplay.

 There are reasons for extended, from admin-driven round events to simply calmer rounds with more character interaction that isn't hampered by an antag sending the station into a death spiral.
 We removed all antagonists, midrounds, and possible threats. You are now free to RP in peace without the pesky disturbances of gameplay.

 There are reasons for extended, from admin-driven round events to simply calmer rounds with more character interaction that isn't hampered by an antag sending the station into a death spiral.
There's no reason to be an asshole, man.

Spiders, slimes and ninjas don't usually send the station into doom, just give literally a whole department a reason to exist other than shitters and anoms, security, and just make the round more interesting if theres no admin event going on.

if you want to disable events you can do just that as seen above

you could literally have a preset that has no event scheduler then make that 100% in secret :trollface:


HttpTransport timeout unit unclear

In the HttpTransport, the docs specify millis as the unit, see HttpTransport.withTimeout(Double), but if the timeout is overwritten, the client multiples the timeout * 1000:
private static CloseableHttpClient withTimeout(Double timeout) {
    int timeoutMs;
    if (timeout == null) {
      timeoutMs = 5000;
    } else {
      timeoutMs = (int) (timeout * 1000);
    }
...

Why do we use double, not int?
If a user passes 2000, the timeout would be (based on the above) 2000 * 1000 = 2000000

Why do we use double, not int?

I think that's the artifact of originally doing this for Python, where requests library accepts float as timeout parameter.


[CELEBORN-656] Batch revive RPCs in client to avoid too many requests

What changes were proposed in this pull request?
This PR batches revive requests and periodically send to LifecycleManager to reduce number or RPC requests.
To be more detailed. This PR changes Revive message to support multiple unique partitions, and also passes a set unique mapIds for checking MapEnd. Each time ShuffleClientImpl wants to revive, it adds a ReviveRquest to ReviveManager and wait for result. ReviveManager batches revive requests and periodically send to LifecycleManager (deduplicated by partitionId). LifecycleManager constructs ChangeLocationsCallContext and after all locations are notified, it replies to ShuffleClientImpl.
Why are the changes needed?
In my test 3T TPCDS q23a with 3 Celeborn workers, when kill a worker, the LifecycleManger will receive 4.8w Revive requests:
[emr-user@master-1-1 logs]$ cat spark-emr-user-org.apache.spark.sql.hive.thriftserver.HiveThriftServer2-1-master-1-1.c-fa08904e94c028d1.out.1 |grep -i revive |wc -l
48124

After this PR, number of ReviveBatch requests reduces to 708:
[emr-user@master-1-1 logs]$ cat spark-emr-user-org.apache.spark.sql.hive.thriftserver.HiveThriftServer2-1-master-1-1.c-fa08904e94c028d1.out |grep -i revive |wc -l
708

Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manual test.

Hi @onebox-li  @pan3793 @RexXiong @AngersZhuuuu , please take a look at this PR.

Hi @RexXiong , RetryReviveTest already covers revive code path. And I've tested manually by killing worker when running TPCDS queries.

Hi @RexXiong @FMX , I've addressed the comments, please take a look again.

Hi @AngersZhuuuu @RexXiong @onebox-li @FMX @pan3793 , I've addressed most of the comments and refactored code, please take a look again.


do not print out aws client error directly

now we might print out errors like

failed to update backup policy: resource name may not be empty"

This error message is useless since it has no context. I do not know what is the resource name and what is empty. At least, it should have aws s3 prefix. It should be something like
failed to update backup policy: failed to create s3 client (resource name may not be empty)

ailed to update backup policy: failed to create s3 client (resource name may not be empty)

Adding stack trace to error should be the right way to go.
Maybe we should consider switching to https://github.com/pkg/errors

After digging through the code base, I think there are two things that we need to improve on error handling:

First, we need to wrap all errors. What this issue basically about is that we don't really provide context for where the error happened, what we expect, etc.
Second, we have a method called isFatalError() which detects sentinel/const error. This limits our ability to wrap the error with more context info. We need to think of something to improve that.


UnitTest for local transport explicit connection close.

Problem
No tests to verify whether close works for local transport.
Modification
Added a test to close connection.
Result
More test coverage.

AeronChannelTest failure on travis, which has been failing since the first build.


Update DLPack support

There are two tasks:

[x] Update to DLPack v0.8 (the last compatible version before API/ABI break): #7307
[ ] Update to DLPack v1.0 (WIP: https://github.com/dmlc/dlpack/pull/113)

I think we should do the first one now, before CuPy v11.5 (or v11.6) is released, and discuss the plan for the ABI break.
Feel free to assign this task to me, thanks!

v0.8 support merged in #7307 (v12) and #7376 (v11).

The new DLPack 1.0 is imminent. I'll start working on it after array API standard v2023 is finalized (which includes DLPack 1.0 support).

Done in #8683!


Add speaker elements and personal social media urls and add more talks

polite ping @kenvandine

https://user-images.githubusercontent.com/65948705/152187112-79eb7e19-412f-475c-8dad-c234b9332dd4.mp4

in the video there were some typos (wrong link under Torsten etc ) this has been already fixed

with different icons
https://user-images.githubusercontent.com/65948705/152192907-dd4dd959-64b6-4320-91cd-870eaebf86c6.mp4

https://user-images.githubusercontent.com/65948705/152199723-28e3b3b8-4443-4fbf-b3af-21a4ac3f585a.mp4

@madhens ^ add the links


Add error status on turn table

In this way we can display which turns generated had an error and which ones not so we could add a warning icon or something similar

Done at https://github.com/MarckFp/ppoc-gen/commit/8553ea8c2cda57e60d5b6ee88c06f4772cf6b1d3


IEN-433 | run cypress in parallel

move seeding data from cypress to shell
seed jobs and milestones
tests are independent from each other except adding a job
fix some issues of 'dom detached' and timeouts
test time reduced to 9m

Hope we are not missing any cypress test, because earlier it shows 15/16 now it shows 10. Did we combine some checks here? Please verify it and if it looks good, go ahead and merge.

Yes, it's because I merged a few files.


add uint double/1add and u1, u2, ..., u30 to_bits

This PR adds the double function for uint, as well as a generic implementation of to_bits for 30-bit limbs (or fewer). The to_bits implementation intentionally tries to avoid pushing the 2^k in the script in order to save weight units.

I also reorganized the files into a subfolder ubigint, still as a submodule, to make it easier to organize the codes---I am going to add karatsuba soon.


⚠ ClamAV has degraded performance

In db913ed, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 245 ms

Resolved: ClamAV performance has improved in e0ac4d3.


[Landcover Toolkit] Should addDate... methods share the same mask as other bands?

The following dataset methods add a constant band which has a mask unlike the associated image bands. Is there a good reason not to mask it based on the first band's mask, for instance?
addDateBand
addDayOfYearBand
addFractionalYearBand

@gorelick-google

There actually seem to be no problem - it appears as though the constant date band inherits the image mask. However, it renders weird, which is likely due to differences in projection of the bands.
Here is a demo:
var lct = require('users/google/toolkits:landcover/api.js');

var dataset = lct.Landsat8()
  .filterDate('2018-06-01', '2019-01-01')
  .filterBounds(lct.Region.lsib('Tanzania'))
  .addDateBand()
  .addDayOfYearBand()
  .addFractionalYearBand();

var img = dataset.getImageCollection();

var rightImg = img.filter(ee.Filter.and(
  ee.Filter.eq('WRS_PATH', 165),
  ee.Filter.eq('WRS_ROW', 65)
  )).first();

var leftImg = img.filter(ee.Filter.and(
  ee.Filter.eq('WRS_PATH', 166),
  ee.Filter.eq('WRS_ROW', 65)
  )).first();

var doyCol = ee.ImageCollection([rightImg, leftImg]).select('doy');

var doyColMean = doyCol.mean();
var doyColMax = doyCol.max();
var doyColMosaic = doyCol.mosaic();

Map.centerObject(rightImg);

var visDoy = {min: 158, max: 167};
Map.addLayer(doyColMax, visDoy, 'doyColMax');
Map.addLayer(doyColMosaic, visDoy, 'doyColMosaic');
Map.addLayer(doyColMean, visDoy, 'doyColMean');

var visSR = {bands: ['B6', 'B5', 'B4'], min: 100, max: 3500};
Map.addLayer(rightImg, visSR, 'rightImg');
Map.addLayer(leftImg, visSR, 'leftImg');

print('B1 projection:', leftImg.select('B1').projection());
print('doy projection:', leftImg.select('doy').projection());

Maybe we could make a copy of first band and .multiply(0).add(dateNumber), then img.addBands() the result. Extra computation, but would make visualization better. For other purposes where scale and crs can be specified the difference in projection is not important - reprojection will take place.

No masking (it'll be wrong in at leaast some cases), but we could clip to
img.geometry() if the global date image bothers you.
On Fri, Nov 15, 2019 at 10:22 PM Justin Braaten<EMAIL_ADDRESS>wrote:

Maybe we could make a copy of first band and .multiply(0).add(dateNumber),
then img.addBands() the result. Extra computation, but would make
visualization better. For other purposes where scale and crs can be
specified the difference in projection is not important - reprojection will
take place.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/google/earthengine-community/issues/121?email_source=notifications&email_token=AM25RFSZR7S6DXZM6I7MZUTQT4HHXA5CNFSM4JNUBQLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEGYDPY#issuecomment-554533311,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AM25RFT7TX5O7XGOLRUMXXLQT4HHXANCNFSM4JNUBQLA
.

I would sleep better at night with them clipped. Mean date when clipped by img.geometry():
https://screenshot.googleplex.com/bQ46oAFBuei

Closing due to inactivity. Please reopen as necessary.


PDF preview fails for release mode - No implementation found for long com.shockwave.pdfium.PdfiumCore.o

I'm using flutter_cached_pdfview: ^0.4.1.
Here is my code:
const PDF().cachedFromUrl(
        widget.fileUrl,
        placeholder: (progress) => Center(
          child: SizedBox(
            width: MediaQuery.of(context).size.width / 2.5,
            child: LinearProgressIndicator(
              value: progress / 100,
              color: Colors.white,
              backgroundColor: Colors.grey,
            ),
          ),
        ),
        errorWidget: (error) => Center(child: Text(error.toString())),
      )

Everything works just fine in debug mode, but running the app in release mode shows a blank screen instead of the PDF preview.
I got the above log in logcat:

04-03 18:36:31.360 29300 29749 E .tenant_app.dev: No implementation found for long com.shockwave.pdfium.PdfiumCore.o(int, java.lang.String) (tried Java_com_shockwave_pdfium_PdfiumCore_o and Java_com_shockwave_pdfium_PdfiumCore_o__ILjava_lang_String_2)

After disabling the shrinking option on build.gradle, the problem was solved.
android {
    ...
    buildTypes {
        release {
            ...
            minifyEnabled false
            shrinkResources false
            ...
        }
    }
}

It seems that there is an issue when shrinking this plugin.
Flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.6, on macOS 13.2.1 22D68 darwin-x64, locale en-IL)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.76.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

any new on this


Add poll_backoff_base and make polling backoff less aggressive

By lowering the exponential base of the backoff schedule from 2 to 1.3
we are making sampling more responsive (particularly for short response
times).

@JoelPasvolsky, 1.3 is just a SWAG to get better coverage for faster SAPI response times.
Compare poll times (seconds after start) for base=2, for first 2 minutes:
0.05
0.15
0.35
0.75
1.55
3.15
6.35
12.75
25.55
51.15
102.35

with poll times for base=1.3:
0.05
0.115
0.1995
0.3094
0.4522
0.6378
0.8791
1.1929
1.6007
2.131
2.8203
3.7163
4.8813
6.3956
8.3643
10.9236
14.2507
18.5759
24.1987
31.5083
41.0108
53.364
69.4232
90.3001
117.4402

thanks! So you resisted 1.414 or 1.259 in favor of the practical.

That's why I exposed it as a parameter, so you can use sqrt(2) or math.pi/2 if you fancy. :wink:

Codecov Report

Merging #519 (9ddae37) into master (d0ce807) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #519   +/-   ##
=======================================
  Coverage   86.64%   86.64%
=======================================
  Files          24       24
  Lines        3316     3317    +1
=======================================
+ Hits         2873     2874    +1
  Misses        443      443

Impacted Files
Coverage Δ

dwave/cloud/client/base.py
90.27% <100.00%> (+0.01%)
:arrow_up:

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 d0ce807...9ddae37. Read the comment docs.


[Build] Fix CI deprecation warnings

Each of our CI runs has notifications/warnings about several deprecated features we are using in our workflows.
List of deprecations:  https://github.com/spring-projects-experimental/spring-pulsar/actions/runs/3238804365

This has been completed via various commits.


Project basic structure

Add the basic structure described in "cxx-pflR1 The Pitchfork Layout (PFL)"
https://api.csswg.org/bikeshed/?force=1&url=https://raw.githubusercontent.com/vector-of-bool/pitchfork/develop/data/spec.bs

Solved with


fix(yanky): load yanky earlier to avoid losing deleted lines

Currently, yanky is only loaded on yank and put operations. This is problematic because if you open a file and start deleting lines (d<motion>), you lose them because yanky is not loaded to save them.

Makes sense. Thanks!


Added icons/logos to group cards

- What I did

Created new shortcakes for image and icon cards
Added appropriate icons and images to /GetStarted and /start page

- How I did it
Local edits
- How to verify it
eyeball it, requests screenshots
- Description for the changelog
Added icons/logos to group cards

TODO: Boxes on /start are a bit larger than /getstarted


WIP: Add tests for Approver

https://progress.opensuse.org/issues/111078

Codecov Report

Merging #29 (9f27fd6) into master (300aac7) will increase coverage by 7.48%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #29      +/-   ##
==========================================
+ Coverage    9.06%   16.55%   +7.48%
==========================================
  Files          23       23
  Lines        1577     1577
==========================================
+ Hits          143      261     +118
+ Misses       1434     1316     -118

Impacted Files
Coverage Δ

openqabot/loader/qem.py
20.00% <0.00%> (+20.00%)
:arrow_up:

openqabot/types/incident.py
25.67% <0.00%> (+25.67%)
:arrow_up:

openqabot/approver.py
59.30% <0.00%> (+59.30%)
:arrow_up:

openqabot/types/__init__.py
100.00% <0.00%> (+100.00%)
:arrow_up:

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 300aac7...9f27fd6. Read the comment docs.