CLI for shifting time of mock ETOs

Why we do it
We have several under-tested ETO state transition cases that were already an visible on production and are quite hard to add as an permanent fixtures. In essence we want to e2e and manually test following cases

Setup to Pre-Sale transition
Pre-Sale to Sale transition
Sale to Signing transition
On top of that we will be able to manually see what happens on Signing -> Refund transition which we only do in unit tests now.
The intention is for QA to be able to mock internal time of the ETO in a way that they can see such transitions. Same for e2e which is automated on CircleCI and uses private backend/contracts deployments.

What need to be implemented
Implement a CLI in platform contracts repo, similar to deployETO.js or inspectETO.js that when run via truffle will mock internal state of ETO to simulate state transitions.
Technical Details
On dev networks we deploy MockETOCommitment contract instead ETOCommitment Mock contract, among other things, allows to mock internal timestamps of ETO state machine (See _mockShiftBackTime). Look for method usage in existing code.
For reference please read
https://github.com/Neufund/platform-backend/wiki/5.06.-Use-Case-Investment - ETO State machine reference
https://github.com/Neufund/platform-contracts/wiki/Smart-Contracts-Catalogue#platformterms-etoterms-durationterms-and-shareholderrights - a kind of primer on ETO Contracts
Acceptance Criteria

[ ] a CLI that shifts time of ETO to the next state transition - delta in seconds passed as parameter
[ ] CLI should accept eto commitment address or a link to public profile for example https://platform.neufund.io/api/eto-listing/eto/view/c48e8968-d2fd-4e86-9845-26328feef243 (see deployETO)
[ ] should not allow to go over state transition to previous state (delta must be validated)
[ ] should provide user friendly errors for most common cases (eto does not exist, eto does not have start date etc.)
• should have a function does time shifting separate so it's easily copied to e2e tests in frontend repo (you can talk to @Moejoe90 or @desfero on how it works)

Testing
Manual testing would be enough, you can also unit test shiftting function if it's not yet...
Deployment

[ ] please explain to QA how to use CLI and provide some examples
[ ] please explain frontend team how to shift time in e2e tests

UPDATE:
in conversation with FE and backend, we figured the most appropriate solution will be to offer this as a service over an api-endpoint. this will enable e2e tests for the frontend.
Also, we could just write the shift into a soldity function, that way it will be easier tested by the backend-unit tests (i do not understand why yet)

here are my notes on solving this task:
===========
Table of Contents

TASK1: CLI for ETO Tests

read issue descriptions
what states does an ETO go through? -> 7, see IETOCommitmentStates.sol
how to know when next state transition will happen?
where to compute by how much to shift? Solidity > JS
put it on its own branch
which repo to work in ??

work in backend repo

in contract repo

understand how to query state
write basic truffle test
write js-script to be invoked by cmdLine
example says signing to refund… how to manipulate the contract so that it goes that way?
BUG:SOLVED shifting to state after public with _mockPastTime causes errors
implement function in commandline-tool

backend repo:

adjust the script to work via an exposed api
test pipeline
learn python blockchain :

run script via an API endpoint

define api-endpoint in backend/

wrap api in a service
define error-classes
Write helper to fetch address from fixture name STALLED
write tests for service -> does not need to be done,
NOT DONE readup on git submodules > some other time
add test for eto not in universe

helper notes

implement helper function on contract directly

STOPPED move contract implementation to backend-repo so that I can deploy the new MockEto contract -> increase GAS LIMIT on parity node
increase gasLimit of parity-node
what are all the networks in truffle.js

create gaslimit raising prs
move script implementation to backend-repo -> STOPPED
DO a JS implementation to be used by frontend-devs STUCK
test it by looking at deployed frontend (build frontend notes)
change endpoint to use the newly created helper on contract

use updated contracts in backend-repo:

test pipeline
WHERE AM I NOW?
show merged PR to Moe, learn together with Nicole how to use it

test whether invalid args return helpful messages

PRS to be merged:

DONE TASK1: CLI for ETO Tests

TODO read issue descriptions

DONE what states does an ETO go through? -> 7, see IETOCommitmentStates.sol
ETOState.
Setup
Whitelist
Public
Signing
Refund
Payout

DONE how to know when next state transition will happen?

check array ETOSTATEDURATIONS, which is filled in constructor by ETOTerms

DONE where to compute by how much to shift? Solidity > JS

DECISION: should the computation how much time should be shifted be
implemented in js or in the smart contract itself?

JS: my instinct would be to put it in js, as the SC should have only the
minimal computations needed
SOLIDITY: the python tests could use it too, without having to reimplement it (said Dave)

=> for now, implemented in solidity, using startOfInternal
js would use startOfStates

trouble as ETOCOmmitment is pretty big…

DONE put it on its own branch

DONE which repo to work in ??

work in backend repo

in contract repo

DONE understand how to query state
some tests use CommitmentState.js, whcih abstracts to 4 states vs the 7 defined in ETOStat
whcih f to use to understand ETO state?
there are various CommitmentState-enums defined, I need to use the one in ``helpers/CommitmentState.js``
-> expectLogStateTransition

DONE write basic truffle test
yarn build
then run individual test

yarn truffle test –network inprocesstest test/ETO/ETOCommitment.js test/setup.js
does not compile, run solc on it first

extra test here:
it("should move time to right before state transition", async () => {

await deployETO({ ovrArtifact: MockETOCommitment });
const timestamp = await latestTimestamp();
durTable = defaultDurationTable();
startDate = new web3.BigNumber(timestamp + 2 * dayInSeconds);
const whitelistD = durTable[CommitmentState.Whitelist].add(1);
// set start data to 2 days from now via mocker
const startTx = await etoCommitment.mockStartDate(
etoTerms.address,
equityToken.address,
startDate,
startDate.add(whitelistD),
{ from: company },
);
expectLogETOStartDateSet(startTx, company, 0, startDate.add(whitelistD));
// move to right before startDate via helper and wait
await etoCommitment.shiftToBeforeNextState(10);
await increaseTime(15);
const tx = await etoCommitment.handleStateTransitions();
expectLogStateTransition(tx, CommitmentState.Setup, CommitmentState.Whitelist, "ignore");
// do so again for whitelist->public transition
await etoCommitment.shiftToBeforeNextState(10);
await increaseTime(15);
const tx2 = await etoCommitment.handleStateTransitions();
expectLogStateTransition(tx2, CommitmentState.Whitelist, CommitmentState.Public, "ignore" );
});

DONE write js-script to be invoked by cmdLine

model upon inspectETO.js which is used like this:
```yarn truffle exec scripts/verifyDeployment.js –network localhost –universe 0x762db45f0ef6c83d64181988195991ef115dc2b3```

?! what does the "exec" option do? -> tells it that it is to be executed?

TODO example says signing to refund… how to manipulate the contract so that it goes that way?

i need to understand all the phases of the ETO

check https://github.com/Neufund/platform-backend/wiki/5.06.-Use-Case-Investment

DONE BUG:SOLVED shifting to state after public with _mockPastTime causes errors
-> shift all states so that one can not cause illogical states where a previous state ends before the next one

DONE implement function in commandline-tool

build in checks for address existence and startDate, plus errormgs
see how to call the commandline

backend repo:

contains contract repo, but can not run as it does not know truffle

adjust the script to work via an exposed api
always use make down before doing things

test pipeline

make down

fire up minimal services: test-unit-services-up

check ext-services here
http://localhost:1337/ui/#!/e2e-tests/api_e2etests_eto_time_travel

restart ext-services with wihtout downing everything

make update-service service=devexternalservicesmockapi
use docker ps to get id
docker kill id
navigate to /devexternalmockapi
and start manually python runapi.py

get ETO addresses from
-> make run output (best save that to file to browse later)

fixtures defined in etofixtures.json => ERROR: saying contract with address 0xc3Cce192d9Dae80245cce3bDE1B35c4230949abD is not deployed\"",

"type": "platformcontracts.exceptions.PlatformContractsContractNotDeployed"

TODO learn python blockchain :
check py3 docs
full instance 4 transactions vs instance (call only)
method().transact()
method().call()

DONE run script via an API endpoint

define api-endpoint in backend/
yaml and in e2etests.py

DONE wrap api in a service

DONE define error-classes

Write helper to fetch address from fixture name STALLED

DONE write tests for service -> does not need to be done,
for this specific endpoint, we need no tests as it will be tested by the frontend implicitly
in general:
make test im richtigen verzeichnis
make test in root => all

NOT DONE readup on git submodules > some other time

DONE add test for eto not in universe
where to get interface from?
Tomek send me a bunch of useful links to helper on slack:

helper notes
or maybe like this function getetofixtureaddress from platformtesting/platformcontracts.py in platform common (edited)
￼￼
70m3k￼ 1:25 PM
def obtainetotermscontract(etoid: str) -> ConciseContract:
connector = NeufundContractsConnector(ethereumserviceconfiguration)
neufundcontracts = connector.getneufundcontracts()
commitmentartifact = neufundcontracts.resolveartifactfrominterface("commitmentInterface", etoid)
etocontract = neufundcontracts.getinstance(commitmentartifact, etoid)
etotermsaddress = etocontract.etoTerms()
termsartifact = neufundcontracts.resolveartifactfrominterface("termsInterface", etotermsaddress)
return neufundcontracts.getinstance(termsartifact, etotermsaddress)
new messages
1:27 PM
again from pyplatformcommon now file  platformtesting/utils/ethereumhelpers.py there is getetocontract function with etoaddress as parameter (edited)
1:28 PM
and snippet I've sent you earlier could rewritten using getetocontract function ￼

DONE implement helper function on contract directly

STOPPED move contract implementation to backend-repo so that I can deploy the new MockEto contract -> increase GAS LIMIT on parity node

ERROR: Deploying it

Deploying MockETOCommitment
… 0x3640d1909d08919c9331c4120ff00bf4306569870fc13e3127995ec2b696ca54

TODO move all work there

?? how to increase gas-limit used in migrations? why does it work in the truffle test, but not in the backend-fixture deployment?

DONE increase gasLimit of parity-node

there are two places in parity repo
nfconf.json
supervisor.conf
one more place in contract repo, when starting truffle.js
one more in contract repo: testrpc.sh

DONE gas limit check
parity node vs latest raise
https://ethgasstation.info/blog/ethereum-block-size/

DONE what are all the networks in truffle.js
LEARNED:

localhost deployed on local machine / ganache
inprocess: also
nfprivate: ? >  dev environment that is deployed every night
nfprivateio: ? >  dev environment that is deployed every night
coverage: used for coverage analysis (currenl. not working)
forkedlive: running on own nodes
forkednanolive: ?? -> mainnet
live: mainnet
consolelive: also mainnet
localhostlive: ?  -> mainnet. test mainnet deployment on localhost (no special permissions, no fixtures)
inprocesstest: ? > DEV stuff
localhosttest: ? > DEV stuff
inprocessmassivetest: > was used to test initial ICBM > out of date

live mirrors mainnet
everything with test can use DEV things

DONE create gaslimit raising prs
on both contracts and parity s
see task "implement helper function on contract directly"

DONE move script implementation to backend-repo -> STOPPED
BLOCKED backend repo can not run truffle properly

DONE DO a JS implementation to be used by frontend-devs STUCK

STOPPER:

how to get the current time from the chain?
can not use web3 in script?
can not use bigNumber
how

?? why is BigNumber always used via web3?
?? How to get the current time in script? Blocktime does not work out of the box, maybe just use unix timestamp -> ask Moe
->

DONE test it by looking at deployed frontend (build frontend notes)
-> deploy frontend!

install latest yarn (from website)
run yarn in repo-root to install dependencies
cd into packages/web do > yarn start
also do yarn upgrade
also yarn deduplicate
if backend is runnning locally, look at https://localhost:9090

DONE change endpoint to use the newly created helper on contract

use updated contracts in backend-repo:
make update-submodules
make down & make test unit … got an error:
*root*.node-gyp/8.16.2/include/node/v8.h:3370:19: warning: inline function 'void\* v8::Object::GetAlignedPointerFromInternalField(int)' used but never defined

V8INLINE void* GetAlignedPointerFromInternalField(int index);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: * [scrypt.target.mk:121: Release/obj.target/scrypt/src/node-boilerplate/scryptcommon.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/nodemodules/npm/nodemodules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess.handle.onexit (internal/childprocess.js:198:12)
gyp ERR! System Linux 5.0.0-32-generic
gyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/nodemodules/npm/nodemodules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /usr/src/platform-contracts/nodemodules/scrypt
gypmake: Leaving directory '/usr/src/platform-contracts/nodemodules/scrypt/build'
ERR! node -v v8.16.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok"

test pipeline
go to backend node at
http://localhost:1337/ui/#!/e2e-tests/api_e2etests_eto_time_travel
get deployed contract address from fixture log
make run fixtures

DONE WHERE AM I NOW?

waiting to be merged

DONE show merged PR to Moe, learn together with Nicole how to use it

TODO test whether invalid args return helpful messages
nicola uses it via postman

PRS to be merged:

DONE parity > increase gas PR#25 DONE
DONE contracts > add mocker + tests PR#312, wait for marcin to explain different deployment configs DONE
backend > service and api using mocker PR#2276


Publish 05/11/2020 3:30

Docs Build status updates of commit 888f924:
:clock10: Pending: waiting for processors (39 builds ahead of you)
:warning: Docs Build is busy, currently there are 39 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

closing/re-opening PR

Docs Build status updates of commit 888f924:
:clock10: Pending: waiting for processors (34 builds ahead of you)
:warning: Docs Build is busy, currently there are 34 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 888f924:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docset/windows/failoverclusters/Add-ClusterResourceDependency.md
:white_check_mark:Succeeded

docset/winserver2012-ps/failoverclusters/Add-ClusterResourceDependency.md
:white_check_mark:Succeeded

docset/winserver2012r2-ps/failoverclusters/Add-ClusterResourceDependency.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.

Docs Build status updates of commit 888f924:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docset/windows/failoverclusters/Add-ClusterResourceDependency.md
:white_check_mark:Succeeded

docset/winserver2012-ps/failoverclusters/Add-ClusterResourceDependency.md
:white_check_mark:Succeeded

docset/winserver2012r2-ps/failoverclusters/Add-ClusterResourceDependency.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.


Cli: Don't regenerate idl in read_all_programs()

Resolving a TODO and making idl tooling work more nicely with manual adjustments to the on-disk idl.

Looks good, should be a small enough change to leave out of the changelog but whatever you prefer. I'm happy to merge as is.


Fix CI for MinGW

First of feel free to ask me(@MBkkt) any questions about this task, often the task may not be described in enough detail for devs who don't have the full context.
Describe the bug
We promise that YACLib works correctly with MinGW and it worked the last time I tried it.
We used to have MinGW in our CI.
But the MinGW installation provided by https://github.com/egor-tensin/setup-mingw was very unstable.
Therefore, we decided to temporarily disable it.
I think we can try to use https://github.com/msys2/setup-msys2
Expected behavior
Reliable MinGW tests in our CI

https://github.com/simdjson/simdjson/blob/master/.github/workflows/msys2.yml yep it works


Very slow prediction [object detection]

I am doing object detection with a pp-yolo-plus-S model.
And I'm getting prediction time of 300mS approximately.
Using a model trained by model yolov5-S I'm getting predictions of 90mS.
How can I reduce the prediction time?
I am generating my prediction with the following structure:
`
from paddlex import create_pipeline, create_model
model_deteccion = create_model("PaddleX/output01/best_model/inference", device="GPU")
frame="myimage.jpg"
myPrediction=list(model_deteccion.predict(frame)
`

Could you provide a sample of your test image, and could you also provide the specifications of your GPU?

Sure, my GPU is rtx3060 12gb

The problem is not the image, it is the processing time. Testing with PP-yolov-plus-s and yolov5-s coconut models. The prediction performance is 3 times less in Yolov5 (with pytorch)

Could you kindly explain how your PyTorch model makes predictions? If it’s convenient, could you share some example code?

The issue has no response for a long time and will be closed. You can reopen or new another issue if are still confused.

From Bot


[BUG] - Error when loading planet with corrupted belts

Describe the bug
Error crash when come to planet, first im write in DSP discord in bug section.
Some guy, inspect my save and tell me

It seems like conveyor belts' data on that planet is modified. It can be an issue caused by a corrupted blueprint. We can't fix every belt's data, even if we could, it would highly likely cause other errors.

To Reproduce
dnk, im build manufacture planet, and i warp away on main planed. after 30 min, i come back and has error
Log files
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at CargoTraffic.AlterPathRenderer (System.Int32 pathId, System.Boolean isFacting) [0x0010a] in <802e807582fc40e69fdab424a816833b>:0
at CargoTraffic.CreateRenderingBatches () [0x00139] in <802e807582fc40e69fdab424a816833b>:0
at PlanetModelingManager.LoadingPlanetFactoryMain (PlanetData planet) [0x0093c] in <802e807582fc40e69fdab424a816833b>:0
at PlanetModelingManager.LoadingPlanetFactoryCoroutine () [0x00053] in <802e807582fc40e69fdab424a816833b>:0
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context

https://drive.google.com/file/d/1t6T3vpx_6k2zM95QpyOO1fpmWkvNZrgk/view?usp=sharing

Were you removing belts using drag remove feature? Or other features that use fast remove feature?
You might be able to avoid such issues by disabling fast remove algorithm in mod settings.

I think about it, i see some belt without this pice of belt. Can it bee save in BP? Or can it bee after undo, redo? i dont remember when its happen.

Experienced this issue myself, which ended up bricking a save. Unfortunately I don't recall the exact instance for why it occurred, but if I could speculate it was because of either when I was attempting to place a blueprint on a coordinate boundary(the yellow lines in build mode that break up which regions you can put down a blue print). Or when I was tweaking the blueprint to be placed by changing the belt from mk1 to mk2 in the blueprint screen.


TypeError [ERR_INVALID_FILE_URL_PATH]

Hello, i have some error with this module
node version 16.15.1
updating to 18.13.0 node version not help
  ERROR  Error while requiring module nuxt-svg-transformer: TypeError [ERR_INVALID_FILE_URL_PATH]: File URL path must be absolute

 ERROR  Cannot start nuxt:  File URL path must be absolute            18:07:17

  at new NodeError (node:internal/errors:400:5)
  at getPathFromURLWin32 (node:internal/url:1463:11)
  at fileURLToPath (node:internal/url:1493:22)
  at finalizeResolution (node:internal/modules/esm/resolve:296:14)
  at moduleResolve (node:internal/modules/esm/resolve:945:10)
  at defaultResolve (node:internal/modules/esm/resolve:1153:11)       18:07:16
  at nextResolve (node:internal/modules/esm/loader:163:28)
  at ESMLoader.resolve (node:internal/modules/esm/loader:842:30)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40)

Hi!
Could you provide a repo for testing?

nuxt: "3.0.0",
os: windows 10 pro
https://github.com/SkyHolder/-nuxt-svg-transformer-bug

Caused by this config:
export default defineNuxtConfig({
    srcDir: "src/",
})

I will fix this in next release!

sorry, but this not help
after update your module i even try remove srcDir: "src/",
but still have same error

Could you try 0.2.0 version?


spring-cloud-sleuth and reactor

Describe the bug
spring-cloud-sleuth version is 2.1.1.REALEASE
reactor-core version is 3.2.11.REALEASE
this codes :
Mono
                .fromRunnable(task)
                .publishOn(scheduler)
                .subscribe();

there is no new thread to execute task，because Mono is MonoLift。
reactor.core.publisher.Mono#publishOn：
	public final Mono<T> publishOn(Scheduler scheduler) {
		if(this instanceof Callable) {
			if (this instanceof Fuseable.ScalarCallable) {
				try {
					T value = block();
					return onAssembly(new MonoSubscribeOnValue<>(value, scheduler));
				}
				catch (Throwable t) {
					//leave MonoSubscribeOnCallable defer error
				}
			}
			@SuppressWarnings("unchecked")
			Callable<T> c = (Callable<T>)this;
			return onAssembly(new MonoSubscribeOnCallable<>(c, scheduler));
		}
		return onAssembly(new MonoPublishOn<>(this, scheduler));
	}

MonoLift is not instanceof Callable,so cant use scheduler.
And I use main method to execute codes there is no problem.
When I use spring.sleuth.reactor.enabled=false,there is no problem.
Why Mono change to MonoLift,because TraceReactorAutoConfiguration.

Can you retry with the latest supported sleuth Hoxton.SR4 (2.2.2) and boot 2.2.7?

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.


Extended load - StatefulSets and PVs.

Ref. https://github.com/kubernetes/perf-tests/issues/704
As explained in one TODO, PVs are created by StatefulSets but are not deleted until namespaces are deleted (so after test, after all measurements are stopped). This is something we should change.

/test pull-perf-tests-clusterloader2

/test pull-perf-tests-clusterloader2-kubemark

Closing this one, will add StatefulSets separately in https://github.com/kubernetes/perf-tests/pull/776 and then tackle PVs in a separate PR.


Updated @starlightlacuna  FPS cap

I merged main into @starlightlacuna  branch for the FPS cap
Lowered the minimum frame rate to 5 because it's silly and I think people might have fun with it
Bumped the save file version to 0.12
The original work:

Added an FPS indicator in the settings menu
Added an FPS cap option allowing the user to cap the FPS
Added the FPS cap settings to the save file

I found this little bug with the FPS cap. Occassionally, a visual artifact will appear above the image. I'm not sure if it's a general Linux problem, or if it's a quirk of my machine. In-app, I set the FPS cap to 60.
I don't have a Windows installation currently, else I'd check if it exists there. @quellus tested on stream, but found no issues though.


Add ""Was this page useful?" survey

Acceptance criteria:

Add the "Was this page useful?" survey to each page of the Polkadot documentation

Should be closed @kapetan3sid?


fix: jQuery removal final adjustments

Summary
jQuery dependency removal fine tune for bs5
Checklist

[x] I've read and understood contributing guidelines;
[x] If changing UI, I've tested on most common viewports, desktop and mobile devices;

A picture of a cute animal

@leomp12, fuçando o código, encontrei só mais esses 2 arquivos com jQuery ainda


feat(API): add book and bookshelf API

Added Files:

book services
bookshelf services
book controllers
bookshelf controllers
book route
bookshelf route

Tested:

all of the above

@Relin404 hey check this so that you can merge it


Remove audit on rhel8

What type of PR is this?

/kind bug
What this PR does / why we need it:
fix #518
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

/lgtm


Testing

Okay so... testing. This PR adds infrastructure to run end-to-end tests using puppeteer as well as unit tests with Karma.
It’s quite the ball-ache due to the typescript+webpack setup. So I’d love for @developit to take a look at this and hopefully tell me that I’m dumb and it’s all much much easier than this 😅
I also added a Dockerfile that can be used to build a container to run the tests (mostly so you can run the test suite locally in the same way Travis would. Makes debugging Travis a lot easier). However, since Travis will always run on a fresh clone, we need to fix that bug now that styles are not being written on the first build.
The tests in here are mostly dummies so we can talk about the infrastructure. Might be worth talking about in a face-to-face, as it’s quite the monstrous setup. LMK.

This is a promise to have this reviewed by tomorrow EOD

Update: a few fixes locally, but I also tried just dropping karmatic in and it works!*
I'm going to open a PR so you can compare.

with a bugfix I'm releasing right now

Closing this in favor of #67


Nightly CI on restyled code

Run a full CI nightly on the restyled code, until we switch to it. This will help confirm that the restyled code works.
To be determined: how do we arrange this?

Set up a nightly job on one of the CIs (one is enough).
Have it restyle before all of the builds. For all.sh-based builds we can do this in all.sh, but what about Windows? As an intermediate stage, we might skip Windows in this job, to be added once we have a solution.

It doesn't seem worth it to fully automate. So what we're doing instead is a manual push (scripted, but with a human pressing the button) followed by CI runs.
Maybe we can automated the CI runs though? They'd have to run on the two preview branches.

Closing as this has been set up


Insecure Cross-Origin Resource Access Control

At a Glance:
Classification  : Information
Resource        : /manifest.json
Risk                : High
Request:
GET /manifest.json
Discussion:
The resource has set an insecure** Cross-Origin Resource Sharing (CORS)** access control. CORS provides mechanisms that allow a server to restrict resource access for cross-site requests to certain trusted domains. The server in question has allowed resource from any origin by setting the value of the "Access-Control-Allow-Origin" response header to a wildcard value. This presents a security risk because any site can issue requests to access resources, regardless of origin.
Desktop (please complete the following information):

OS: Windows
Browser : Chrome
Version [e.g. 22]

Remediation:
Set the "Access-Control-Allow-Origin" response header to allow access from trusted domains only. Do not allow access from arbitrary domains.
References:
Some additional links with relevant information published by third-parties:
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
Thank you for your consideration,
Best Regards,
Pratik Gaikwad.

We are using github pages to host the website.
How do you suggest we make this change in our case?


why calibration_data.toml is symbolic link

why is the calibration_data.toml in scripts made into a symbolic link to a calibration_data_linda?

I think that May have been som ols hack i din. I din not relise then that
it would appar that way on git. Remove it.
Den fre 7 okt. 2022 21:00OleMartinChristensen @.***>
skrev:

why is the calibration_data.toml in scripts made into a symbolic link to a
calibration_data_linda?
—
Reply to this email directly, view it on GitHub
https://github.com/innosat-mats/MATS-L1-processing/issues/56, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AMKNOYHS5XDCRF3K3UYMJADWCANHPANCNFSM6AAAAAAQ7SKNTM
.
You are receiving this because you were assigned.Message ID:
@.***>

ok symlink removed


Missing 'boto3_session' in aws-data-wrangler/awswrangler/s3.py

Describe the bug
Using s3.to_parquetwith mode overwrite_partitions fails since the call to delete_objects does not propagate the boto3_session
To Reproduce

Try to create a dataset while providing a boto3 session

import awswrangler as wr
import pandas as pd
import boto3

# The custom boto3 session
sess = boto3.Session(aws_access_key_id='<foo>', aws_secret_access_key='<bar>')

# The dataframe to write
df = pd.DataFrame({'one': [0,], 'two': ["spam"], 'three': [True]})

wr.s3.to_parquet(
    df=df,
    path='s3://path',
    dataset=True,
    mode="overwrite_partitions",
    partition_cols=["two"],
    boto3_session=sess
)

The previous snipet results in an authentication error, probably because of the missing boto3_session parameter in the delete call:
if mode == "overwrite_partitions":
    delete_objects(path=prefix, use_threads=use_threads

Hi @hjuhel-cdpq! Thank you very much for report it.
Will be fixed and released later today in the version 1.0.2.

Thanks @hjuhel-cdpq, this issue is resolved on version 1.0.2. Please, give feedback when possible.


Implement Semantic Analysis Stage

Semantic Analysis
Checks

All identifiers are declared.
Types.
Inheritance relationships.
Classes defined only once.
Methods in a class defined only once.
Reserved identifiers are not misused.

Scope
Identifier Bindings:
Cool Identifier Bindings are introduced by:

Class declarations (introduce class names)
Method definitions (introduce method names) – Let expressions (introduce object id’s)
Formal parameters (introduce object id’s)
Attribute definitions (introduce object id’s)
Case expressions (introduce object id’s)

Class Definitions:

Cannot be nested.
Are globally visible throughout the program.
Class names can be used before they are defined.

Class Attributes:

Attribute names are global within the class in which they are defined

Class Methods:

Method names have complex rules.
A method need not be defined in the class in which it is used, but in some parent class.
Methods may also be redefined (overridden).

Type System
Type Operations:

Type Checking. The process of verifying fully typed programs
Type Inference. The process of filling in missing type information

Types in Cool:

Class names: Builtins (Int; String; Bool; Object; IO) and User Defined.
SELF_TYPE.

Sub-Typing:

Types can be thought of as sets of attributes and operations defined on these sets.
All types are subtypes of the Object type.
Types can inherit from other types other than the Object type.
No type is allowed to inherit from the following types only: Int, Bool, String and SELF_TYPE.
All type relations can be thought of as a tree where Object is at the root and all other types branching down from it, this is also called the inheritance tree.
A least upper bound (lub) relation of two types is their least common ancestor in the inheritance tree.
Subclasses only add attributes or methods.
Methods can be redefined but with same type.
All operations that can be used on type C can also be used on type C', where C' <= C, meaning C' is a subtype of C.

Typing Methods:

Method and Object identifiers live in different name spaces.

A method foo and an object foo can coexist in the same scope.

Logically, Cool Type Checking needs the following 2 Type Environments:

O: a function providing mapping from types to Object Identifiers and vice versa.
M: a function providing mapping from types to Method Names and vice versa.

Due to SELF_TYPE, we need to know the class name at all points of Type Checking methods.

C: a function providing the name of the current class (Type).

SELF_TYPE:
SELF_TYPE is not a Dynamic Type, it is a Static Type.
SELF_TYPE is the type of the self parameter in an instance. In a method dispatch, SELF_TYPE might be a subtype of the class in which the subject method appears.
Usage:

SELF_TYPE can be used with new T expressions.
SELF_TYPE can be used as the return type of class methods.
SELF_TYPE can be used as the type of expressions (i.e. let expressions: let x : T in expr).
SELF_TYPE can be used as the type of the actual arguments in a method dispatch.
SELF_TYPE can not be used as the type of class attributes.
SELF_TYPE can not be used with Static Dispatch (i.e. T in m@T(expr1,...,exprN)).
SELF_TYPE can not be used as the type of Formal Parameters.

Least-Upper Bound Relations:

lub(SELF_TYPE.c, SELF_TYPE.c) = SELF_TYPE.c.
lub(SELF_TYPE.c, T) = lub(C, T).
lub(T, SELF_TYPE.c) = lub(C, T).

Semantic Analysis Passes
[incomplete]

Gather all class names.
Gather all identifier names.
Check missing or abusive use of class declarations.
Compute Types in a bottom-up pass over the AST.

Error Recovery
Two solutions:

Assign the type Object to ill-typed expressions.
Introduce a new type called No_Type for use with ill-typed expressions.

Solution 1 is easy to implement and will enforce the type inheritance and class hierarchy tree structures.
Solution 2 will introduce further adjustments. First, every operation will be treated as defined for No_Type. Second, the inheritance tree and class hierarchy will change from being Trees to Graphs. The reason for that is that expressions will ultimately either be of type Object or No_Type, which will make the whole representation look like a graph with two roots.

Semantic Analysis specification done.


THRIFT-3984 PHP7 extension causes segfault

Fix a double-free when serializing string map keys or the name of called methods, and a memory leak when deserializing maps or sets.

Any PHPers around to comment/confirm this solution? Will be happy to commit it if there are no objections against it.

Not a php expert but this looks okay to me, however I would like to see it pass CI.  How do we trigger a new build on someone else's pull request?  Otherwise, if the original author could rebase on master, ideally squash the commits to one, and push again that would be helpful and would kick off a new build.

In investigating long Travis CI queue times, I discovered that the Thrift project has 24 builds in its Travis CI matrix:
https://travis-ci.org/apache/thrift/builds/199234155
Since the entire Apache Software Foundation only has 30 concurrent build slaves on Travis CI, I've requested that concurrent builds for Thrift be throttled:
https://issues.apache.org/jira/browse/INFRA-13477

Rebased, the failed test seems unrelated.

I agree the failed CI build job does not look like it is related to the php change.

Ping. It would be nice to get this fix in since the double free is potentially a data corrupting bug.

Thanks for the reminder.  Things with failures often slip (as you can see from the current backlog).   I will merge this.


clean.sh doesn't work on windows :/

see: https://github.com/TiddlyWikiLinks/TiddlyWikiLinks/blame/main/bin/clean.sh#L5

Thanks @pmario. I'm not sure of the best solution nowadays, perhaps rewriting it as clean.js?

There's a npm library https://www.npmjs.com/package/rimraf which everyone uses for rm command  ... I'll create a PR, ... I wanted to create an issue, so it's not forgotten. ... I didn't have time to implement it yesterday ;)

Thanks @pmario


Add option to return full execution inputs & outputs

TL;DR
This change allows users to specify they want full inputs & outputs in a Get{Workflow,Node,Task}ExecutionData request but preserves existing functionality by defaulting to only return signed url blobs.
Type

[ ] Bug Fix
[x] Feature
[ ] Plugin

Are all requirements met?

[x] Code completed
[x] Smoke tested
[x] Unit tests added
[x] Code documentation added
[ ] Any pending items have an associated Issue

Complete description
This is useful to return inputs & outputs in sandbox mode when the signed url is host-specific
Tracking Issue
https://github.com/lyft/flyte/issues/419
Follow-up issue
NA

ping @kumare3 @wild-endeavor

mind taking another look @kumare3 @wild-endeavor @schottra ?


GreenKeeper not properly integrated?

GreenKeeper's branch dosent seem to be merged in and there are 2 packages that are already outdated but greenkeeper hasnt created PRs for them.
Package        Current  Wanted  Latest  Location
react-router     2.8.1   2.8.1   3.0.2  mypicontrol
react-scripts    0.2.1   0.2.1   0.9.0  mypicontrol

what level of access do you need to investigate the problem? I'm currently logged in to guthub from a non-official mobile app

Whichever level that gives you access to the repo's settings

I'll add you as a collaborator and if that still doesn't work i can transfer ownership to you and then you can return it back to me

Ok looks like it is still missing :( i still dont have the settings tab

It won't let me transfer the repo's ownership to you because you already have a repo with an identical name (the fork you made). either rename your fork or get rid of it so I can move this to you

I removed my fork

you are now the owner of the repo. Please make all the required adjustments and move it back to me when you're done. Thanks
Fadi

Got coveralls to work however couldnt figure out what is going on with greenkeeper

is this issue still relevant ?

Yes, it seems to be connected but it is not working properly so i am not sure what is wrong. Thats why I added the help wanted flag

i dp mpt suppose any of the contributors have any idea about greenkeeper / coveralls 😃

Coveralls is setup and functional however after the transfer things might break but not sure on that.

@AlhasanIQ
I do. I don't know how to set them up though

@fadeenk
Things have broken. Checked earlier
also if you happen to push a fix, make sure you update the links in the badges in README.md

I see, I will need an admin access then to fix things... I can fix the badges easily but the integration will require me to have access to the settings for the repo

@fadeenk
owner role granted. try now

Fixed travis, enabled green keeper (still not sure it is working)
coveralls is not syncing the repos so could not enable it


Can you update MD file about how install correctly and some screenshots

Is up to date. Please provide me with more information about what is happening when you try to use

Collecting yfinance==0.2.32
  Downloading yfinance-0.2.32-py2.py3-none-any.whl (68 kB)
	 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 69.0/69.0 KB 17.1 MB/s eta 0:00:00
Installing collected packages: webencodings, pytz, peewee, multitasking, appdirs, urllib3, tzdata, soupsieve, six, pyparsing, Pillow, packaging, numpy, lxml, kiwisolver, idna, frozendict, fonttools, cycler, charset-normalizer, certifi, requests, python-dateutil, html5lib, contourpy, beautifulsoup4, pandas, matplotlib, yfinance
Successfully installed Pillow-10.1.0 appdirs-1.4.4 beautifulsoup4-4.12.2 certifi-2023.11.17 charset-normalizer-3.3.2 contourpy-1.2.0 cycler-0.12.1 fonttools-4.44.3 frozendict-2.3.8 html5lib-1.1 idna-3.4 kiwisolver-1.4.5 lxml-4.9.3 matplotlib-3.8.2 multitasking-0.0.11 numpy-1.26.2 packaging-23.2 pandas-2.1.3 peewee-3.17.0 pyparsing-3.1.1 python-dateutil-2.8.2 pytz-2023.3.post1 requests-2.31.0 six-1.16.0 soupsieve-2.5 tzdata-2023.3 urllib3-2.1.0 webencodings-0.5.1 yfinance-0.2.32
(env) root@template:~/python-investment-simulation-tool# python data_processor.py

freeze in that point
this havent web UI?

It's very simple to solve this, just create the "assets" and "csv" folders inside it or the structure configured inside the src/settings/config.py file:

*APP_PATH_ASSETS_CSV_FOLDER
Then tell me if it worked

You need to get the data from the assets you want to analyze before running the analysis script.
Include the symbols of the assets you want to extract in the json file:

After this, you can run main.py:
*** As the project is still in its infancy, you need to change the desired asset within the code before running main.py

Change the desired period and asset symbol:

As I mentioned, the project is still very early in development. I have many ideas to implement to make it efficient in comparative analysis.
And I will also consider the idea you gave me.
From next month I will work on it again.


Improve greek translation for required fields.

According to one of our clients the old error message means something like “the price is demanded” and doesn’t make a lot of sense. The new message can be translated as “required field”.
Perhaps this also applies similarly to the other error message translations, but I’ve only got a better translation for this one.

ευχαριστώ


steampipe: 0.13.4 -> 0.15.0

Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Please dot the go version override in top-level the next time so it can be easily dropped with when it is no longer required.


[Fix] Some quick TS cleanup

Purpose
Let TS find our type registries, so it can infer the return type of things like route.controllerFor('application')
Summary of Changes

Switch to I-less interface names, like the ember typings expect (and are generated in ember-cli-typescript's blueprints).
Remove unused type registries on routes and components.
Update ember-cli-typescript to 1.1.5

Side Effects / Testing Notes
I flipped the interface-name linting rule, so no interfaces should start with I. I don't have strong feelings about this besides making the type registries work, but consistency is nice.
Ticket
--
Reviewer Checklist

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

Coverage remained the same at 15.228% when pulling 404167be66a4ba8566922e93e463a8b803c1174e on aaxelb:fix/ts-cleanup into 4bf0cb084222fb28aa44d218c7adcd656045d512 on CenterForOpenScience:develop.


Implement deeplink handling

Closes #1135.

I'm closing this PR because it's implemented in #1361 and #1364.


[orchestrator] ensure leader runs

What does this PR do?
Making sure that the leader election runs if we setup leader_election and orchestrator_explorer
Motivation
Possible cases when orchestrator_explorer is enabled, but no other check/controller which ensures that leader_election will run
Additional Notes
We currently just return if the node is not a leader in case of a resource collection. Do we want to log something in that case?
log.Debugf("not running collection, only on leaders")

-->  some checks do, some not.

The follower will output the following now:
=====================
Orchestrator Explorer
=====================
  ClusterID: 3c2e93a1-a57d-4ec4-815d-0e69d4c08ca7
  ClusterName: nam-test
  ContainerScrubbing: Enabled

  ======================
  Orchestrator Endpoints
  ======================

  ===============
  Forwarder Stats
  ===============
    Pods: 0
    Deployments: 0
    ReplicaSets: 0
    Services: 0
    Nodes: 0

  Status: Follower, redirecting to leader at: <IP_ADDRESS>

Do we still want to include forwarder stats? Or remove them entirely?
Describe your test plan
should work

run DCA with orchestrator_explorer enabled and cluster_checks activated (cluster_checks runs leader election as well)
run DCA with  orchestrator_explorer enabled and cluster_checks deactivated

should not work

run DCA with  orchestrator_explorer enabled and leader_election false
run DCA with  orchestrator_explorer disabled

Additionally:

run DCA with Leader and Follower
run agent status on leader and follower

I did some additional changes to the output. In case no leader election is running at all:
=====================
Orchestrator Explorer
=====================
  Disabled: Leader election is not enabled on the Cluster Agent. The orchestrator explorer needs leader election for resource collection.


[findscu] Support combining query file with query options

This allows dicom-findscu users to pass both a query file to serve as a base or template, as well as query options to extend it.
Summary

change parse_queries to take a base object
tweak build_query so that both forms of query specification may take place, but still error if neither one is provided
update readme accordingly

Nice one also! Works fine.
It actually helps because most of the times we have different templates of return keys that we would like to retrieve.
As you implicit mention, for generate the dcm file as query, dump2dcm from dcmtk can help.


Incorrect plural string returned when device language is set to Latvian.

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
https://github.com/ReinisSprogis/flutter-plural-bug

Set the device language to Latvian.
Tap on Floating action button to increment value.

Actual results
When the device language is set to Latvian, the plural strings are not handled correctly. For example, the string for the count "10" should be "10 punkti," but it incorrectly returns "Nav pievienotu punktu."
In English
"count": "{count, plural, =0{No points added} =1{1 point} other{{count} points}}",
In Latvian would be
"count": "{count, plural, =0{Nav pievienotu punktu} =1{1 punkts} other{{count} punkti}}",
0 returning = Nav pievienotu punktu
1 returning = 1 punkts
2 to 9 returning correct string
However when it hits 10 showing "Nav pievienotu punktu" so all the way up to 20.
21 showing = 1 punkts
22 showing = 22 -29 correct result
30 showing = Nav pievienotu punktu
31 showing = 1 punkts
33 showing = 33 punkti
And so on.
Logs

Logs

No logs

Flutter Doctor output

Doctor output

[√] Flutter (Channel stable, 3.10.6, on Microsoft Windows [Version 10.0.19045.3324], locale en-GB)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Build Tools 2022 17.5.5)
[√] Android Studio (version 2022.2)
[√] VS Code (version 1.81.1)
[√] Connected device (4 available)
[√] Network resources

I dug little bit around and seems like bug is in the PluralCase _lv_rule plural_rules.dart .
I'm not exactly sure what is happening there, but seems like it could be it.
PluralCase _lv_rule() {
  if (_n % 10 == 0 ||
      _n % 100 >= 11 && _n % 100 <= 19 ||
      _v == 2 && _f % 100 >= 11 && _f % 100 <= 19) {
    return ZERO;
  }
  if (_n % 10 == 1 && _n % 100 != 11 ||
      _v == 2 && _f % 10 == 1 && _f % 100 != 11 ||
      _v != 2 && _f % 10 == 1) {
    return ONE;
  }
  return OTHER;
}

Thanks for the report. I was able to replicate this using latest stable and master versions, whererin, from 1 to 10, it shows correctly as punktu, but from 10 onwards, it shows as below:

The text above 10 in English means no points added.

 stable, master flutter doctor -v
[!] Flutter (Channel stable, 3.13.1, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.13.1 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e1e47221e8 (2 days ago), 2023-08-22 21:43:18 -0700
    • Engine revision b20183e040
    • Dart version 3.1.0
    • DevTools version 2.25.0
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.14.0-9.0.pre.88, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 3.14.0-9.0.pre.88 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9ab8d27a2c (33 minutes ago), 2023-08-25 02:27:12 -0400
    • Engine revision 09e620d268
    • Dart version 3.2.0 (build 3.2.0-97.0.dev)
    • DevTools version 2.26.2
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/dhs/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13C100
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 65.1.4
    • Dart plugin version 213.7228

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (3 available)
    • Darshan's iphone (mobile) • 21150b119064aecc249dfcfe05e259197461ce23 • ios
      • iOS 15.3.1 19D52
    • macOS (desktop)           • macos                                    •
      darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)              • chrome                                   •
      web-javascript • Google Chrome 109.0.5414.119

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

And @ReinisSprogis , you should use the {count} placeholder for the =1 case, as for Latvian it appears to refer to any case where the singular noun must be used. As a workaround, you can have the =0 case match the plural, which would be grammatically correct (0 punktu).

It's not a bug in Flutter. That's unfortunately how plural category names for the Latvian language are defined in the Unicode Common Locale Data Repository (CLDR).
As stated by a Latvian native speaker in a different issue https://github.com/php-gettext/Languages/issues/45#issuecomment-1035157041 :

Lithuanian is a similar language to Latvian. Their similar plural form that is called "zero" in Latvian, is called "other" in Lithuanian, and what is called "other" in Latvian, is called "few" in Lithuanian.

The Latvian plural form rules are defined by CLDR here, and the Lithuanian are here.
So there's a discrepancy, and while Latvian follows the plural category names recommendations defined by the CLDR:

In some sense, the names for the categories are somewhat arbitrary. Yet for consistency across languages, the following guidelines should be used when selecting the plural category names.

If no forms change, then stop (there are no plural rules — everything gets 'other')

'one': Use the category 'one' for the form used with 1.

'other': Use the category 'other' for the form used with the most integers.

'two': Use the category 'two' for the form used with 2, if it is limited to numbers whose integer values end with '2'.

If everything else has the same form, stop (everything else gets 'other')

'zero': Use the category 'zero' for the form used with 0, if it is limited to numbers whose integer values end with '0'.

If everything else has the same form, stop (everything else gets 'other')

'few': Use the category 'few' for the form used with the least remaining number (such as '4')

If everything else has the same form, stop (everything else gets 'other')

'many': Use the category 'many' for the form used with the least remaining number (such as '10')

If everything else has the same form, stop (everything else gets 'other')
If there needs to be a category for items only have fractional values, use 'many'

If there are more categories needed for the language, describe what those categories need to cover in the bug report.

but it makes Latvian the only modernly spoken language that uses zero plural category for cardinals other then 0.
And that would be just okay but then in 2010s Apple entered the stage with a "brilliant" (not!) idea of using the zero category for cases with a zero quantity values to facilitate negative forms of sentences (i.e.: "You have no emails" instead of "You have 0 emails"). So, instead of introducing a custom plural category like none they messed up with CLDR categories and plural rules, completely disregarding the fact that it won't work properly for the Latvian language. (More detailed info about the Apple's implementation can be found here: https://stackoverflow.com/a/61426762). Android didn't follow that slippery slope, but now and then I see Android devs complaining online that zero plural category doesn't work as it's supposed to work 🤷🏻♂
The solution is to not use the plural strings for something they were never intended for (I'm looking at you Apple), but instead handle negative forms in the code (Kotlin+Android example below, but the pattern is straightforward):
val text =
    if (emailsCount == 0) getString(R.string.no_emails)                   // "You have no emails"
    else getQuantityString(R.plurals.x_emails, emailsCount, emailsCount)  // "You have %d email", "You have %d emails"

And if we really want to have that case covered by the plural strings system we should communicate it to Apple and Google to introduce a separate category of none.


Add start --no-gap and stop --at

This commit adds the functionality needed to catch up on time tracking.
Take the scenario where you are engaged in several ad hoc discussions at
the desks of your colleagues, seamlessly transitioning into each other.
While you manage to remember when each discussion start, you still need
to enter those into Watson.
 You can use
watson stop --at

to specify when a event stopped and
watson start --no-gap

to instruct Watson to start the new event seamlessly to the one most
recently stopped. By this to catch up on your time tracking all you need
to do is to cycle through these two commands.

In case you do not like the git history of https://github.com/TailorDev/Watson/pull/236, I created this branch to serve as a single commit version of the feature. It can be cherry-picked/fast-forward merged, leading to a linear history. Some prefer those.
Please note that I am much more in favour of the actual development history of https://github.com/TailorDev/Watson/pull/236 as it offers many atomic commits and some insights in the development process.

I've rebased the work in #236 and merged it. For external contributions, I prefer having a single commit feature or fix and keep a linear comprehensive history. But I understand your point. Thanks again for your work!


Drive URL results in an error

When I hit drive URL I'll get an error back:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "dailyLimitExceededUnreg",
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
"extendedHelp": "https://code.google.com/apis/console"
}
],
"code": 403,
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
}
}
Even if I hit the link just after midnight ;-).

You have to enable the drive's access for the app at the developers console.
This should be specify at the lab, but they didn't do it.
I had the same error, and solved it like this.

Great Thanks yonathan9669 i'm fix it


Dataset preparation in other language

Giving the crawler other channels path, is it possible to generate dataset of my own in other language?

Of course. You can follow https://github.com/SpeechColab/GigaSpeech2/blob/main/pipeline/crawler/README.md.

Great, and the format than can be used for training audio LDM2 for like speech model? I guess.

Just one question, considering reference estimate, how much time it took to generate a prepared dataset 30,000 hours and on which GPU you have prepared the dataset?

Great, and the format than can be used for training audio LDM2 for like speech model? I guess.

Yes. The original file type is probably .webm and it will be converted into .wav.

Just one question, considering reference estimate, how much time it took to generate a prepared dataset 30,000 hours and on which GPU you have prepared the dataset?

You can refer:


delete all documents doesn't always delete all documents

Describe the bug
delete all documents doesn't always delete all documents
Bug reproduced in 100% of cases with same output
To Reproduce
Steps to reproduce the behavior:

Get latest release wget https://github.com/meilisearch/MeiliSearch/releases/download/v0.14.1/meilisearch-linux-amd64
Ensure you don't have db from previous experiments rm -rf data.ms/
Get this script https://gist.github.com/vird/4d65689e7c6e18467f1288c8fbae1b96
Install dependencies npm i meilisearch
Start meilisearch with logging ./meilisearch-linux-amd64 2>&1 | tee meili.log
Run ./bug_import_reduce2.js | tee fuzz.log

Expected behavior
fuzz_cycle 0
fuzz_cycle 1
fuzz_cycle 2
fuzz_cycle 3
fuzz_cycle 4
fuzz_cycle 5
fuzz_cycle 6
fuzz_cycle 7
fuzz_cycle 8
fuzz_cycle 9
bug is not reproduced

Real behavior
fuzz_cycle 0
fuzz_cycle 1
fuzz_cycle 2
fuzz_cycle 3
fuzz_cycle 4
fuzz complete
[
  { _id: 0, text: 'test str' },
  { _id: 1, text: 'test str' },
  { _id: 2, text: 'test str' },
  { _id: 3, text: 'test str' },
  { _id: 4, text: 'test str' },
  { _id: 5, text: 'test str' },
  { _id: 6, text: 'test str' },
  { _id: 7, text: 'test str' },
  { _id: 8, text: 'test str' },
  { _id: 9, text: 'test str' },
  { _id: 10, text: 'test str' },
  { _id: 11, text: 'test str' },
  { _id: 12, text: 'test str' },
  { _id: 13, text: 'test str' },
  { _id: 14, text: 'test str' },
  { _id: 15, text: 'test str' },
  { _id: 16, text: 'test str' },
  { _id: 17, text: 'test str' },
  { _id: 18, text: 'test str' },
  { _id: 19, text: 'test str' }
]

Desktop

OS: Ubuntu 18.04.3 LTS
Version 0.14.1 (also reproduced with 84a3e95fa4bdfcf2b8adf458dac62127afdc6501)

Logs
see https://gist.github.com/vird/4d65689e7c6e18467f1288c8fbae1b96

meili.log
fuzz.log

I don't know how meili-js sdk works exactly and @curquiza may tell me wrong, but from a core perspective, the deletetion and addition request are enqueued and processed asynchronously. Therefore, if you send a delete request, and immediately after a read request, chances are that the deletion request was not yet completed, and you're not seing it. The deleteDocument method should return an update_id, and I suggest you check that the update associated with this id is processed before reading again.

Even after stop and relaunch this script bug is instantly reproduced (on 0 iteration). So previous deletion has enough time to be completed

You're adding a lot of documents at the same time without checking if the query has been processed.
If you add synchronization, you will see that indexing the documents actually takes time
let response = await index.deleteAllDocuments()
for (;;) {
	let update = await index.getUpdateStatus(response.updateId);
	if (update.status == "processed") {
			break
	}
	await sleep(1000)
}

checking "http://localhost:7700/indexes/bug/updates" will also demonstrate that many queries are still "enqueued" and not "processed" even after your script finishes. This is definitely a timing problem.

I'm closing this issue, feel free to re-open if you manage to observe this despite synchronization
I'm closing, but feel free to re-open if you


Support auto-disposing nested effects

This pull request adds support for auto-disposing nested effects. With the following setup:
const a = signal("a");
const b = signal("x");
const e = effect(() => {
  console.log("outer effect", a.value);
  effect(() => {
    console.log("inner effect", a.value + b.value);
  });
});

// Console: outer effect a
// Console: inner effect ax

Now if we run the outer effect again the previous inner effect is auto-disposed:
a.value = "b";
// Console: outer effect b
// Console: inner effect bx

If we only update the b signal only the latest version of the inner effect runs:
b.value = "y"
// Console: inner effect by

When we dispose the outer effect then the inner effect is also disposed:
e();
a.value = "c";
// Nothing in the console

Note that only immediate containing effects are tracked: For example creating an effect inside an computed inside an effect doesn't dispose the innermost effect when the outermost effect is disposed.

creating an effect inside an computed inside an effect doesn't dispose the innermost effect when the outermost effect is disposed.

usignal used to have WeakRef to deal with computed but it recently got moved for various reasons ... this scenario though seems like OK as once the inner computed gets collected its inner most effect should get collected too.
it's an interesting case though, 'cause the inner effect if run when the outer runs we have a reference, but if the computed is accessed conditionally we might have issues, but as long as the effect internals don't leak on purpose outside the effect I believe everything should be covered 👍


[docs] Should point out that BaseSettings uses different defaults than BaseModel

Hello,
Everything is in the title.
The documentation for model_config displays the defaults used for the BaseModel's Config inner class, but nothing is said about BaseSettings's Config.
One could reasonably assume that the defaults would be the same, yet they are not as some are modified here, like extra and validate_all.
So I think this should be mentioned somewhere in the settings management page.

Hello, sorry for late response.
Pydantic V2 is on alpha state and we are working on documentation as well.
Also, pydantic-settings is not part of Pydantic from V2 on and will have it's own documentation.


Fixed #29522 -- Convert python Deserializer from function to a class

serializers.python.Deserializer() converted from function to a class with internal methods for modifications and _get_model() function movied inside the class as well.

To fix these errors, I think the best approach is to make Django allow deserializers to be iterables or iterators, by changing https://github.com/django/django/blob/master/django/core/serializers/init.py#L140 to:
def deserialize(format, stream_or_string, **options):
    """
    Deserialize a stream or a string. Return an iterator that yields ``(obj,
    m2m_relation_dict)``, where ``obj`` is an instantiated -- but *unsaved* --
    object, and ``m2m_relation_dict`` is a dictionary of ``{m2m_field_name :
    list_of_related_objects}``.
    """
    d = get_deserializer(format)
    return iter(d(stream_or_string, **options))

@felixxm I applied the comments (thank you BTW). I just don't know how to write a case or add par in the topic as the Python Deserializer class is used as util in other serializers like JSON and YAML.
Can you guide me in this part?

@felixxm I applied the comments (thank you BTW). I just don't know how to write a case or add par in the topic as the Python Deserializer class is used as util in other serializers like JSON and YAML.
Can you guide me in this part?

aren't the existing test cases already covering this?

What scenarios need to be tested? @felixxm

What scenarios need to be tested? @felixxm

See my comment. We have new hooks and a new structure. We should add a test for creating a custom Deserializer subclass.

Closing due to inactivity.


Evergreen can't update app from ~/Downloads

While one can understand not running from disk images, etc, the Downloads folder is neither read-only nor an image or optical drive. Small thing in the the grand scheme of things, of course, but confusing.
Moving Evergreen to a sub-folder of /Applications worked.

Ah. Nevermind. I updated Evergreen from 1.0 d17 to 1.0 d20 and tested again and it worked in ~/Downloads.

innocent question from a beginner: how / from where would I download 1.0 d20?

@clausTue I used the builtin Updater. You could download d18 and update, I think:
https://twitter.com/evergreen_mac/status/933083660290473984

thanks! I have it running now. Nice.
However, I still get the same update error as described above, even when I run it from ~/Applications (not /Applications)

Aside: I just tested, and as @clausTue notices the issue is still there:
• I downloaded d18 in ~/Downloads.
• I unzipped d18.
• I started d18 from ~/Downloads.
• I started „Check for Update“.
• I got the same error.
Weirder:
• I quit Evergreen, restarted and checked for updates. Same error.
• I dragged the app to another Folder, ~/Movies in this case because the window was open.
• I started Evergreen from ~/Movies.
• Check for Updates: No Error.
Then I got creative, guessed the URL for d20 ( https://ranchero.com/downloads/Evergreen1.0d20.zip ) and repeated the same procedure:
From ~/Downloads → Error
Copied to ~/Applications → No Error.
Copied back to ~/Downloads → No Error.

This is an Apple thing — Gatekeeper Path Randomization, aka app translocation.
https://lapcatsoftware.com/articles/app-translocation.html
What should probably happen is that Evergreen detects the situation and then offers to move itself to /Applications.

Well, Evergreen can’t move itself and thereby fix the situation. The user has to move the app.
So Evergreen should detect the situation, then explain it to the user and suggest they move the app manually.

See <Security/SecTranslocate.h>.

Apparently this also means (I’ve heard) not switching to the latest Sparkle, because it will just crash in this situation.

This is a documentation issue. There isn’t anything we can do about the underlying issue.


This patch is incompatible with many plugins

0028-Thread-Local-IntCache.patch

0038-Async-Spawn-Chunks.patch


No documentation?

Hello @martnst
This package is not really designed for other projects unfortunatly. I use it to generate documentation for Ts.ED projects.
Sorry,
Romain


Explore ways to minimize impact on NameNode with metadata calls

Basic idea here is to use the commit metadata to be self contained about managing the storage

Ideas around this

Having a list of all file ids within each partition path
Having query engines filter the versions, based on commit metadata

This precursor to the Timelineserver. closing this, in favor of that ticket


TURN_OFF & TURN_ON system error log warnings requested the creation of this bug report

Warnings:
Entity None (<class 'custom_components.coway.fan.Purifier'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/RobertD502/home-assistant-iocare/issues
Entity None (<class 'custom_components.coway.fan.Purifier'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/RobertD502/home-assistant-iocare/issues
These warnings pop up in my system error log several times after a startup and as you can see contain a request to open a bug report so here it is!  :D  I haven't noticed any actual problems using the integration though.  I'm running v<IP_ADDRESS> of the Coway integration on HA Core 2024.8.1 with two AirMega 250S air filters and one AirMega 300S AP-1515G (US).

You'll need to update to <IP_ADDRESS> (released 5 days ago), which addresses the issue.

aha!  I didn't even notice the update in HACS!  Thanks.  I see it now and will give it a try.

Verified.  Installed update, restarted HA, waited for integration startup to complete, verified that integration still works as before, and checked the logs...no more errors.  Thanks again!


Slowdown of jax::lax::while_loop on CPU between 0.4.31 and 0.4.33

Description
Hi Sirs,
Something was released between versions 0.4.31 and 0.4.33 that is causing a big slowdown in jax::lax::while_loop on CPUs. I could distill the problem to the following code, which runs in 2 seconds on 0.4.31, but in 42 seconds on 0.4.33 (and later versions). Not sure related or not, but people have mentioned increased recompilation times of weak types in another issue (but it was closed, so may not be related).
Here is my code. I could run it in Colab and it's reproducible. You just change the Jax version in the header to 0.4.33 to observe the slowdown.
%pip install jax[cuda12]==0.4.31
import os
num_cpu = 96
os.environ['XLA_FLAGS'] = f'--xla_force_host_platform_device_count={num_cpu}'
import jax
from jax import numpy as jnp, lax
import timeit
start = timeit.default_timer()

steps = 2 ** 22
foo = jnp.arange(steps)
stop = jnp.max(foo)
cpu_devices = jax.devices('cpu')
cpu_count = jax.local_device_count('cpu')
cpu_range = jnp.arange(cpu_count)

def _episode(_):
    return lax.while_loop(lambda u: u[0] < stop
                          , lambda u: (jnp.maximum(u[0], foo[u[1]]), u[1] + 1)
                          , (0, 0))[1]

bar = jax.pmap(_episode, devices=cpu_devices)(cpu_range)
bar.block_until_ready()

finish = timeit.default_timer()
print(f'Elapsed time {finish - start:.2f}s')

Prints Elapsed time 2.21s on Jax 0.4.31, but Elapsed time 42.08s on Jax 0.4.33.
System info (python version, jaxlib version, accelerator, etc.)
Run in Colab, with 96 host devices
jax:    0.4.31
jaxlib: 0.4.31
numpy:  1.26.4
python: 3.10.12 (main, Nov  6 2024, 20:22:13) [GCC 11.4.0]
jax.devices (96 total, 96 local): [CpuDevice(id=0) CpuDevice(id=1) ... CpuDevice(id=94) CpuDevice(id=95)]
process_count: 1
platform: uname_result(system='Linux', node='083577bc3e73', release='6.1.85+', version='#1 SMP PREEMPT_DYNAMIC Thu Jun 27 21:05:47 UTC 2024', machine='x86_64')

And
jax:    0.4.33
jaxlib: 0.4.33
numpy:  1.26.4
python: 3.10.12 (main, Nov  6 2024, 20:22:13) [GCC 11.4.0]
jax.devices (96 total, 96 local): [CpuDevice(id=0) CpuDevice(id=1) ... CpuDevice(id=94) CpuDevice(id=95)]
process_count: 1
platform: uname_result(system='Linux', node='083577bc3e73', release='6.1.85+', version='#1 SMP PREEMPT_DYNAMIC Thu Jun 27 21:05:47 UTC 2024', machine='x86_64')

Could be related to this also: https://github.com/jax-ml/jax/issues/23302

The slowdown impacts lax::scan too (although to a less extent). Just replace the function above with this:
def _episode(_):
  return lax.scan(lambda c, x: (jnp.maximum(c, x), c+1)
                  , 0
                  , foo)[0]

Elapsed time 1.96s on 0.4.31 vs Elapsed time 33.49s on 0.4.33

I've seen the same effect (x10 speed-up going from 0.4.34 back to 0.4.31) for code using jax.lax.while_loop in jax.lax.map on a single CPU.

@ezhulenev @penpornk

You can disable the thunks runtime XLA_FLAGS=--xla_cpu_use_thunk_runtime=false to get the old behavior under the newer JAX.

Are there downsides to disabling the thunks runtime?

Are there downsides to disabling the thunks runtime?

No immediate ones. At some point we want to delete the older runtime, so ideally we'd fix any performance regressions by then!

@hawkinsp Does JAX have some sort of test suite that automatically detects performance regressions like this one? If not, it might be a good idea to create one.


feature request - submit workflow templates

Summary
the "Submit Workflow" mode on the webui, I would like to have a option to select a template from a set of example workflows
For example:
click on "submit workflow", click on the dropdown, choose "Packer"
It fills out this in the form:
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: packer-
spec:
  entrypoint: build
  arguments:
    parameters:
      - name: repo
        value: "REQUIRED"
      - name: env
        value: "REQUIRED"
  workflowTemplateRef:
    name: packer

And the user fills out the required values and submit the workflow
Use
I believe this would make it easier for team members

Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

You can already submit workflow templates directly from the UI from the Workflow Templates view:

You can also do the same from the CLI:
argo submit --from=wftmpl/hello-world

Hi,
okey I didnt know that. When I'm testing now, I can't supply any parameters to my workflowtemplates.

Works fine for me. What version are you running?

version 2.11.7

Can you attach the workflow template that you're trying to submit?

hmm okey now I see.. in my workflowtemplates, I dont use spec.arguments.


GetterProp - Add type_ann

Adds parsing of a type annotation to GetterProp.
This is valid typescript:
const obj = {
    get test() : string {
        return "";
    }
};

https://www.typescriptlang.org/play/?ssl=5&ssc=3&pln=1&pc=1#code/MYewdgzgLgBCBGArGBeGBvAsAKBnmA5gKaxRHQAUAlDAFwzQBOAlmARjvlzIyQK6MwMAETCA3J3wBfHFLFA

The pr seems good to me, but I expect swc_ecma_transforms would be broken.
Can you give me a permission to push to your fork? I'm asking this as I don't like breaking master branch. (Although tracis ci fails, I always check that all tests passes locally)

@kdy1 that would be great! I believe you already have permission. to push to my fork. Thanks and no rush!

@dsherret I didn't know that I have push permission on fork. I fixed swc_ecma_transforms and verified that all tests pass.


[FEATURE] combining number in textual format with nominal group

Is your feature request related to a problem? Please describe.
I would like to be able to write, depending on the number of flowers, one of the following forms:

une jolie fleur
deux jolies fleurs
trois jolies fleurs
...

However, I don't see how I can combine a number in textual value with a nominal group.
If I use two mixins such as
|#[+value(nb, {'TEXTUAL':true })]
- const nbNumber = nb>1 ? 'P' : 'S'
|#[+value('fleur', { number: nbNumber, adj:'joli', adjPos:'BEFORE'})]

I will obtain "un jolie fleur" instead of "une jolie fleur" in the case nb === 1
Describe the solution you'd like
I would like a simle way to generate "une jolie fleur" or "deux jolies fleurs" base on the variable nb
Describe alternatives you've considered
An if then structure
Additional context
Add any other context about the feature request here.

thanks @blegaut
TEXTUAL numbers could not have a gender. For French it had an impact on "un" / "une" (always getting "un").
In the next version you will be able to use:   l #[+value(1, {'TEXTUAL':true, agree: getAnonFS() })]
and get "une"

done in v3.2.2

Thank you Ludan


Message encoding

Message.getContent().asPlainText()
Message.getContent().asHtml()
returns message text in Windows-1251 encoding.
Is it right? Maybe UTF will be better?

Message#asPlainText() and Message#asHtml() will return a String built from Strings you provided in Text.plain(*). If it is returning text encoded in Windows-1251, then you are passing it strings encoded in Windows-1251


NamedArgumentForDataProviderRector changes data providers that it doesn't need to

Hey ya,
Let me know if I'm wrong, but I think this kind of change is unnecessary (I tried reverting the change and PHPUnit does not report any deprecation) :

While this one is probably necessary, as there cannot be un-named arguments after named arguments (yet PHPUnit does not report the deprecation either... probably a miss on their side) :

It doesn't really hurt though, so I get it if you don't want to fix it. But it might generate quite of lot of useless diff for some projects, which could be avoided.
gnutix

Hey, I agree. There should not be changed.
Could you send PR with fix and test?

Sorry, too much on my plate these days.

No worries. The rule works as intended, it's just an optional way to use a feature: https://github.com/sebastianbergmann/phpunit/pull/5225
I'll remove the rule from main set, so it's not enforcing an optional feature.


Magazines Section

Both magazine sources appear to be down. A stopgap can be found here:
freemagazines.top
Other magazine sources can be found here:
https://www.similarweb.com/website/magazinelib.com/competitors/

https://magazinelib.com/ is working. Removed http://pdf-giant.com/ from my fork https://github.com/Shakil-Shahadat/awesome-piracy#magazines-ok. I also added freemagazines.top and a couple of links from similarweb and from my collection.


openjdk8: 1.8.0_121-<IP_ADDRESS> -> 1.8.0_202-<IP_ADDRESS>

Motivation for this change
Update MacOS JDK version to latest
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Huh why are there two zulu derivations, one for darwin exclusive (the one you update here, and another one in https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/compilers/zulu, couldn't we use a single one?
Ping @thoughtpolice @jerith666 @concatime

My understanding is that the one being updated here is just a stop-gap until someone can figure out how to make plain vanilla openjdk build on darwin.  I haven't looked into this because I don't have a darwin system.
WRT this specific PR: we should keep openjdk/8.nix and openjdk/darwin/8.nix at the same version.


Python Errors

There seem to be issues in the following lines of code in lines 114-116:
       for x in resheaders.keys():
            printmsg(f"{x}: {reqheaders[x]}")
        headername = input("Header name: ")
        if headername in resheaderlist:

The reqheaders generates an error KeyError: 'Pragma'
The resheaderlist variable generates an error NameError: name 'resheaderlist' is not defined. Did you mean: 'reqheaderlist'?
To replicate the above select header placement for all parameters. All headers selected were new headers!

will take a look at this in a few days when my exams are over lol


apigee_product got struck in "Still creating" during terraform apply

During terraform apply apigee_product resource gets struck indefinitely . If I go to Apigee portal and see the product, it is created successfully. Did anyone see this behavior?
apigee_product.test_api_product: Still creating... [50s elapsed]
apigee_product.test_api_product: Still creating... [1m0s elapsed]
apigee_product.test_api_product: Still creating... [1m10s elapsed]
versions:
Terraform v0.12.24

provider.apigee v0.0.22

thank you

Update on this. It is nothing to do with api_product. If I add couple of resources (in this case I added 2 more shared flows) and now it got struck in shared flow deployment like below
module.test-api-sharedflows.apigee_shared_flow_deployment.access_token_mapper_deployment: Still creating... [1m50s elapsed]
module.test-api-sharedflows.apigee_shared_flow_deployment.fiserv_api_shared_flow_deployment: Still creating... [1m50s elapsed]
module.test-api-sharedflows.apigee_shared_flow_deployment.access_token_mapper_deployment: Still creating... [2m0s elapsed]
module.test-api-sharedflows.apigee_shared_flow_deployment.fiserv_api_shared_flow_deployment: Still creating... [2m0s elapsed]

When I commented this line: https://github.com/zambien/go-apigee-edge/blob/e45257f962621c84bbffd0a371cbd94cab709d6a/apigee_edge.go#L243 things were working as expected.
Is printing to standard output in provider could cause the problem?

@sairamaj I haven't been able to reproduce this issue.  Are you still seeing a problem?  If so we can reopen the issue.


Config file revamp - keeping it simple

It would be fantastic to have a basic config parser that reads the variables from config.py and if there are any missing, set them to some defaults (specific or None).
This would be most useful when users are pulling updates. Sometimes when a new variable is added to the config, and users pull changes, the new variable doesn't get merged into the customised config.py. Which then can cause missing variable errors when running.
My preference is to keep the config as simple and extendible as possible (being able to script in config.py has been most useful).
Still open to toml or something, as in this pull request (really appreciated btw). Maybe this is the way to go, but I would like to keep it simple. Interesting in your thoughts users.

Merged in https://github.com/nickfarrow/SatSale/pull/4


the ability to add new pipelines in transformers.js

Feature request
I think it would be cool... I noticed that this can be done with the Python transformers, but I haven't found anything about how to do it with JavaScript.
Motivation
I want to add a pipeline specific for this model: https://huggingface.co/SmilingWolf/wd-swinv2-tagger-v3
or maybe there is a better way of doing it? please let me know.
Your contribution
something similar to the python transformers, with a registerPipeline method.

I have submitted a PR


Cleanup the state of PlatformBridgeCertValidator to clarify the threading semantics

Cleanup the state of PlatformBridgeCertValidator to clarify the threading semantics.
Make the PendingValidation object only accessed on the worker thread.
Make the PlatformBridgeCertValidator only accessed on the main thread.

Superseded by https://github.com/envoyproxy/envoy-mobile/pull/2713


[RFC]: improve README examples of ndarray/iter namespace

Description
This RFC proposes to improve the README examples of the ndarray/iter namespace package. Currently, namespace package READMEs only include minimal examples which are not particularly informative and do not showcase namespace functionality.
Historically, namespace examples were not given much effort due to the rapidly changing nature of the project; however, now that development and organization has settled, it would be good to revisit these packages and add proper examples to better communicate to users how to use namespace contents.
For those wanting to contribute to this issue, you can use the following steps:

Browse through the contents of the ndarray/iter namespace and identify interesting functions and packages to showcase.
Update the example code block in the "Examples" section of the README for the ndarray/iter namespace and open a PR.
When updating the README, examples should follow existing project conventions (e.g., ES5).
Examples may require functionality from other packages to help make examples more interesting.

Related Issues
None.
Questions
No.
Other
No.
Checklist

[X] I have read and understood the Code of Conduct.
[X] Searched for existing issues and pull requests.
[X] The issue name begins with RFC:.

Hello, I hope this message finds you well! At the moment, I don’t have any significant issues to address (although I anticipate some minor adjustments for #1437). Therefore, I would be delighted to contribute to this issue. Given that we’ll be exploring similar packages and the patterns for examples in ndarray would be alike, I would also be more than happy to work on #1588, #1587, and #1586. Thank You!

@performant23 Your open PR should be ready for merging, so this sounds good. And it makes sense to treat the linked issues as one, so I just assigned you to them. Thanks for taking this on!
When updating the README.md examples, please make sure to also update the examples/index.js file(s) accordingly.


Check for existence of "screen" global before using

This is needed to be able to import with node/build with ember-cli
fixes immersive-web/webvr-polyfill#322
replaces https://github.com/immersive-web/webvr-polyfill/pull/323

@jsantell any more thoughts about getting this merged in? I'm currently using my patched version of the compiled source in webvr-polyfill, which is working fine for me at the moment, but I'd really rather not have to maintain that longer term

for more context/history, @kellyselden commented to link to his previous fixes here: https://github.com/immersive-web/webvr-polyfill/issues/322#issuecomment-392896564

@gabrielgrant sorry for the wait on this! I just submitted #28 which removes the need for screen orientation entirely which will help here as well

Thanks for the follow-up!

Landed #28, will uplift in the next version of webvr-polyfill!


Tm1 data need to plot

Can you provide some good example need to plot Tm1 data in Tm1py

Hi @Rnvksm ,
We published a series of articles around Data science with TM1 where we use Plotly with Jupiter Notebook to plot chart:
https://code.cubewise.com/blog/data-science-with-tm1-planning-analytics to
I hope this help,
Cheers,
Vincent

Thanks for your response,
Can you provide some different example
On Sun, 12 May, 2019, 12:11 vviau<EMAIL_ADDRESS>wrote:

Hi @Rnvksm https://github.com/Rnvksm ,
We published a series of articles around Data science with TM1 where we
use Plotly with Jupiter Notebook to plot chart:
https://code.cubewise.com/blog/data-science-with-tm1-planning-analytics to
I hope this help,
Cheers,
Vincent
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/cubewise-code/tm1py-samples/issues/47#issuecomment-491569504,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALWD5XPL4U5C6FOYXMIBXKDPU63ZPANCNFSM4HMCKA6A
.


Cache size limit

Added a naive cache limit that removes all unused resources (i.e. not retained outside of Siesta) from the Service’s internal cache. Default limit is 2048 resources.
This fixes #31.
We might want to add some more sophisticated cache eviction policy in the future, but this should suffice for now.

That should be enough complexity for now on OSX. Thanks!


Update overview-what-is-global-secure-access.md

Typo, remove the "Internet Access" in the name of the Private Access license

@kenwith
Can you review the proposed changes?
Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


test-branch/execute-job/wrong-commit-sha-on-pr/77013283-e604-4919-9390-ee1472bd5364

PR for testing bae724b4ceb3ef06dc9328842c3929116072031a

/canonical/self-hosted-runners/run-workflows 931ad21dd9ace68aaa0a7d341e94de96ad93fa6b


Bugfix: pressing arrows generates AttributeError

More info about the bug: I used the easygui.enterbox, and while pressing the left/right/up/down arrows - easygui generated these weird errors to me:
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\tomhe\AppData\Local\Programs\Python\Python311\Lib\tkinter\__init__.py", line 1948, in __call__
    return self.func(*args)
           ^^^^^^^^^^^^^^^^
  File "C:\Users\tomhe\AppData\Local\Programs\Python\Python311\Lib\site-packages\easygui\boxes\base_boxes.py", line 23, in tabRight
    boxRoot.event_generate("<Tab>")
    ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'event_generate'

It seems like the exact problem in #170.
This Pull Request is a solution to that problem. I tested it and it works for me.
It's only two new ifs to the codebase so it should be very simple to verify.
I also strongly believe that this bugfix should be deployed now by creating version 0.98.4 (I know I would love to use this library with the fixed bug).

Hi Tom, thanks for the bug report and the PR. It’s frustrating that there is a condition in which ‘boxRoot’ is none - so it may be that we’re masking a problem by checking it at this point.
That said - the fix you have here is nicely minimal and looks to do exactly what you’ve described.
I can review / approve now (on mobile) but am travelling so can’t rebuild a point version until I’m back with proper PC access - so getting a patched version out may take a few days. Hope that’s ok - and thank you for your input!

Hi, is there a chance that you can rebuild a new version? :)


Parental control lockout

Don't allow this to be used when Parental control is enabled, just like FBI.

I might be able to do it. In the smdh (before creating the .cia), replace the
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF FF FF 7F 00 00 00 00 00 00 00 00 00 00 00 00 05 01
by:
99 99 00 99 99 00 99 99 99 99 99 00 00 00 00 00 FF FF FF 7F 00 00 00 00 00 00 00 00 00 00 00 00 41 01

The SMDH is created at compile time by Bannertool, FBI passes rating flags, so I guess that's how @Steveice does it.
I rather try that before doing blind hex editing.

replace the flags in the Makefile (line 127) from
-f visible,allow3d,extendedbanner,nosavebackups
to
-f visible,extendedbanner,nosavebackups,ratingrequired --cero 153 --esrb 153 --usk 153 --pegigen 153 --pegiptr 153 --pegibbfc 153 --cob 153 --grb 153 --cgsrr 153
removed the allow3d because there is no use of 3d in this, so for people like me that have 3D disabled in parental controls, it's just an annoying warning message.

Nice, didn't know allow3d gave that sort of annoyances, I will change that ASAP!

Mine too removes allow3d


gen dataset error

/usr/local/lib/python3.10/dist-packages/torch/_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
return self.fget.get(instance, owner)()
You are using the default legacy behaviour of the <class 'transformers.models.t5.tokenization_t5.T5Tokenizer'>. This is expected, and simply means that the legacy (previous) behavior will be used so nothing changes for you. If you want to use the new behaviour, set legacy=False. This should only be set if you understand what it means, and thoroughly read the reason why this was added as explained in https://github.com/huggingface/transformers/pull/24565
Traceback (most recent call last):
File "/root/ps4-dataset/main.py", line 75, in
generate_embedings('ps4_data/ps4_data/data.fasta')
File "/root/ps4-dataset/ps4_data/get_embeddings.py", line 24, in generate_embedings
all_seqs = __read_fasta(fasta_path)
File "/root/ps4-dataset/ps4_data/get_embeddings.py", line 58, in __read_fasta
with open(fasta_path, 'r') as fasta_f:
FileNotFoundError: [Errno 2] No such file or directory: 'ps4_data/ps4_data/data.fasta'

thanks, this should be fixed in latest patch https://github.com/omarperacha/ps4-dataset/pull/4

hello omar, do you have any tips for me to improving my machine learning
skills?, maybe a github or any other sources for me to learn 😁, im still
an undergrad 😁, thankyou
On Thu, Mar 21, 2024, 05:21 Omar Peracha @.***> wrote:

thanks, this should be fixed in latest patch #4
https://github.com/omarperacha/ps4-dataset/pull/4
—
Reply to this email directly, view it on GitHub
https://github.com/omarperacha/ps4-dataset/issues/3#issuecomment-2010750377,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BHDFSPXGQ57TDCHXC4LC4WTYZIDYHAVCNFSM6AAAAABE5OWFI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJQG42TAMZXG4
.
You are receiving this because you authored the thread.Message ID:
@.***>


How to manually fetch emails

Hi, we havet to fetch emails manually, normally in redmine theres a command like:
rake redmine:email:receive_imap RAILS_ENV="production" host=imap.foo.bar<EMAIL_ADDRESS>password=xxx move_on_success=read move_on_failure=failed
but when we run rake inside docker container, in /home/redmine/redmine it says, rake is not installed?
These ist, because we have problems with your build in fetcher, it featch email only once by start container and than not more!
Not sure why.
Alternate we have tested to use Rufus-Scheduler
https://www.redmine.org/projects/redmine/wiki/redminereceivingemails#Schedule-email-receiving-with-Rufus-Scheduler
But we can not install "gem install rufus-scheduler" in a docker container.
Is there a way, you cann add refus scheduler? Or can you let me know, how to fetch emails manually?
Hope for help, many thanks!

Here is an example of sending a test email.  I think it shows how you would adapt it to manually fetch emails.
docker-compose exec redmine bundle exec rake redmine:email:test[admin] RAILS_ENV=production
Note the use of bundle exec, you can find info about it here: https://bundler.io/man/bundle-exec.1.html
Note: The bundle exec command needs to be run as the redmine user, which should already be true for the above example.
I haven't had any issue with the CRON scheduled email retrieval but using rufus does seem like a nice alternative.  If you would like to make modifications (like installing gems) on container start, you can create either pre-install.sh/post-install.sh script, located inside the plugins directory.


Disapproval not automatically increasing on the sheet

On spell results that generate disapproval, the range is not automatically increased on the sheet.

Fixed by https://github.com/foundryvtt-dcc/dcc/commit/8d5bb5bb79cd7f176e33f56953b47d075059b707


[CAD-4406] UTxO-HD: fix CI

Description
CI complained about redundant bindings and imports, as well as formatting. This µPR fixes that.
Checklist

Branch

[X] Commit sequence broadly makes sense
[X] Commits have useful messages

Pull Request

[X] Self-reviewed the diff
[X] Useful pull request description at least containing the following information:

What does this PR change?
Why these changes were needed?
How does this affect downstream repositories and/or end-users?
Which ticket does this PR close (if any)? If it does, is it linked?

[X] Reviewer requested

bors r+