text:
It's useless on mac

I deploy it on my mac(Apple M1,8GB,Ventura 13.5),when i use it,it always run a while,then
`VALL-E EOS [413 -> 727]
libc++abi: terminating due to uncaught exception of type c10::Error: Unsupported type byte size: ComplexFloat
Exception raised from getGatherScatterScalarType at /Users/runner/work/pytorch/pytorch/pytorch/aten/src/ATen/native/mps/operations/View.mm:758 (most recent call first):
frame #0: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&) + 92 (0x16a4f92b8 in libc10.dylib)
frame #1: at::native::mps::getGatherScatterScalarType(at::Tensor const&) + 304 (0x28e923150 in libtorch_cpu.dylib)
frame #2: invocation function for block in at::native::mps::gatherViewTensor(at::Tensor const&, at::Tensor&) + 128 (0x28e924ca0 in libtorch_cpu.dylib)
frame #3: dispatch_client_callout + 20 (0x19acb4400 in libdispatch.dylib)
frame #4: dispatch_lane_barrier_sync_invoke_and_complete + 56 (0x19acc397c in libdispatch.dylib)
frame #5: at::native::mps::gatherViewTensor(at::Tensor const&, at::Tensor&) + 888 (0x28e923838 in libtorch_cpu.dylib)
frame #6: at::native::mps::mps_copy(at::Tensor&, at::Tensor const&, bool) + 3096 (0x28e87ab58 in libtorch_cpu.dylib)
frame #7: at::native::copy_impl(at::Tensor&, at::Tensor const&, bool) + 1944 (0x28a5f7604 in libtorch_cpu.dylib)
frame #8: at::native::copy(at::Tensor&, at::Tensor const&, bool) + 100 (0x28a5f6dac in libtorch_cpu.dylib)
frame #9: at::ops::copy::call(at::Tensor&, at::Tensor const&, bool) + 288 (0x28b32d718 in libtorch_cpu.dylib)
frame #10: at::native::clone(at::Tensor const&, c10::optionalc10::MemoryFormat) + 444 (0x28a981f84 in libtorch_cpu.dylib)
frame #11: at::_ops::clone::call(at::Tensor const&, c10::optionalc10::MemoryFormat) + 276 (0x28b03b0c4 in libtorch_cpu.dylib)
frame #12: at::_ops::contiguous::call(at::Tensor const&, c10::MemoryFormat) + 272 (0x28b45fa60 in libtorch_cpu.dylib)
frame #13: at::TensorBase::__dispatch_contiguous(c10::MemoryFormat) const + 40 (0x28a447130 in libtorch_cpu.dylib)
frame #14: at::native::mps::binaryOpTensor(at::Tensor const&, at::Tensor const&, c10::Scalar const&, at::Tensor const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>, MPSGraphTensor* (at::native::mps::BinaryOpCachedGraph*, MPSGraphTensor*, MPSGraphTensor*) block_pointer) + 968 (0x28e863330 in libtorch_cpu.dylib)
frame #15: at::native::structured_mul_out_mps::impl(at::Tensor const&, at::Tensor const&, at::Tensor const&) + 128 (0x28e8673f0 in libtorch_cpu.dylib)
frame #16: at::(anonymous namespace)::wrapper_MPS_mul_Tensor(at::Tensor const&, at::Tensor const&) + 140 (0x28c003ea8 in libtorch_cpu.dylib)
frame #17: at::_ops::mul_Tensor::call(at::Tensor const&, at::Tensor const&) + 284 (0x28ae41898 in libtorch_cpu.dylib)
frame #18: torch::autograd::THPVariable_mul(_object*, _object*, _object*) + 396 (0x1781f82dc in libtorch_python.dylib)
frame #19: object* torch::autograd::TypeError_to_NotImplemented<&torch::autograd::THPVariable_mul(_object*, _object*, _object*)>(_object*, _object*, _object*) + 12 (0x178154330 in libtorch_python.dylib)
frame #20: method_vectorcall_VARARGS_KEYWORDS + 144 (0x104b77f88 in Python)
frame #21: vectorcall_maybe + 104 (0x104bd5824 in Python)
frame #22: slot_nb_multiply + 148 (0x104bd2588 in Python)
frame #23: binary_op1 + 228 (0x104b5021c in Python)
frame #24: PyNumber_Multiply + 36 (0x104b5082c in Python)
frame #25: _PyEval_EvalFrameDefault + 51104 (0x104c467d0 in Python)
frame #26: _PyEval_Vector + 116 (0x104c48564 in Python)
frame #27: method_vectorcall + 164 (0x104b6e0c0 in Python)
frame #28: _PyEval_EvalFrameDefault + 48300 (0x104c45cdc in Python)
frame #29: _PyEval_Vector + 116 (0x104c48564 in Python)
frame #30: _PyObject_FastCallDictTstate + 96 (0x104b6afe8 in Python)
frame #31: slot_tp_call + 180 (0x104bd076c in Python)
frame #32: _PyObject_MakeTpCall + 128 (0x104b6ad3c in Python)
frame #33: _PyEval_EvalFrameDefault + 40584 (0x104c43eb8 in Python)
frame #34: _PyEval_Vector + 116 (0x104c48564 in Python)
frame #35: _PyVectorcall_Call + 152 (0x104b6b82c in Python)
frame #36: _PyEval_EvalFrameDefault + 48300 (0x104c45cdc in Python)
frame #37: _PyEval_Vector + 116 (0x104c48564 in Python)
frame #38: _PyEval_EvalFrameDefault + 48300 (0x104c45cdc in Python)
frame #39: _PyEval_Vector + 116 (0x104c48564 in Python)
frame #40: _PyEval_EvalFrameDefault + 48300 (0x104c45cdc in Python)
frame #41: _PyEval_Vector + 116 (0x104c48564 in Python)
frame #42: _PyObject_VectorcallTstate.4608 + 88 (0x104c62a28 in Python)
frame #43: context_run + 92 (0x104c628e4 in Python)
frame #44: cfunction_vectorcall_FASTCALL_KEYWORDS + 76 (0x104bb3a00 in Python)
frame #45: _PyEval_EvalFrameDefault + 48300 (0x104c45cdc in Python)
frame #46: _PyEval_Vector + 116 (0x104c48564 in Python)
frame #47: method_vectorcall + 380 (0x104b6e198 in Python)
frame #48: thread_run + 168 (0x104cfaad4 in Python)
frame #49: pythread_wrapper + 48 (0x104c9c1cc in Python)
frame #50: _pthread_start + 148 (0x19ae63fa8 in libsystem_pthread.dylib)
frame #51: thread_start + 8 (0x19ae5eda0 in libsystem_pthread.dylib)
[1]    36424 abort      python3 -X utf8 launch-ui.py`
IT EVEN USE ME 20GB RAM!!!!(zipped,i dont know what's that mean)
Optimize it,please.

ComplexFloat seems to be a common problem reported by several Mac users, but I personally don't have a MacBook to do debugging.
So, I apologize that currently I'm unable to fix this problem.

ComplexFloat seems to be a common problem reported by several Mac users, but I personally don't have a MacBook to do debugging. So, I apologize that currently I'm unable to fix this problem.

ok thanks

repo: Plachtaa/VALL-E-X


text:
Why does your 9.2 upgrade section use an outdated version of rxTools?

There is no reason not to use the newer version, load it on http://dukesrg.github.io/?rxTools/sys/code.bin rather than reboot.ms.

Very old system versions cannot run newer rxTools versions.

source: gharchive/issue

repo: Plailect/Guide

license: mit

license_type: permissive

license_source: bigquery


text:
Black screen after restoring RedNand

On my new 3DS I get a black screen on boot after finishing A9LH installation and restoring the RedNand, sysnand and sysnand from part 2 don't work either. A9LH has installed correctly (I tested it with the tester package, a powers off the console just fine).
Any idea what could be wrong?

Copy Luma's files again, make sure your options are right.

authors: Plailect SuperStuck


text:
Strlenfix

This avoids the crash on gnews.bin but unfortunatley I haven't been able to confirm it works since I run out of memory.

Attempting to run this code now on an Amazon cluster where I'd previously gotten the error this is supposed to fix. Not sure how long it'll take but I'll update when it's done.
  w2v.loadModel('../GoogleNews-vectors-negative300.bin', function(err, model){
    console.log('model',model);
  });

Thanks for the commit & the fix of the string length. I am thinking that maybe we can remove the slice operation when creating a new WordVec instance. Apparently, node Buffers are allocated in memory outside of the V8 heap, so if we avoid creating a shallow copy and would instead just provide a new view on the underlying data, this might help. I made some little changes to the code to facilitate this and merged it into the master branch.

Oh excellent. I'll use the current master branch and give it a shot now.

$ node index.js --max_old_space_size 4096 > out.txt

FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory
Aborted (core dumped)

Even with the optimization it's still hitting 4GB of memory usage and dumping.

Thanks for trying out the updated code! You were right from the start, and it seems that we might not be able to get this working without a major rewrite of the code, which could utilize either multiple node processes or native C++ code via an add-on. I am a bit at my wit's end, but will let all of you know in case I come up with something in the future.

This might magically get fixed by the upcoming Node "4.0" release, which you can read about here:
https://medium.com/node-js-javascript/4-0-is-the-new-1-0-386597a3436d
(io.js is a fork of node with lots of improvements that is getting folded back into the trunk)

source: gharchive/pull-request

authors: Planeshifter dariusk oskarflordal


text:
MonitoringApplicationConfiguration doesn't work

Even if you specify an argument for -MonitoringApplicationConfiguration in New-PfBuild, nothing gets sent to the server

So turns out I was wrong--if you pass in a correctly-shaped object it works. But if the passed in object isn't exactly correct, Autorest just silently ignores it. Which is terrible, and I can't find any switches in Autorest to change this behavior.
This affects all arguments, not just MonitoringApplicationConfiguration

repo: PlayFab/MpsPowershell

license_source: github-api


text:
Add namespaces to Groups

Currently, tables that are passed to be tied to a key are tied as singular states, as opposed to tables creating a new namespace.
Namespaces are a very powerful feature to the centralized state paradigm, as sometimes, you have to divide multiple states into places according to their relevance- however, how can we explicitly define that a key is a namespace key rather than a normal one? As after all, there is nothing that helps developers know when a key is a namespace/normal one.
However, Namespaces can be also created by nesting groups, and treating each group as a new namespace, which can look something like this (this depends on #9):
local centerGroup = Group({
    Namespace1 = Group({
        key1 = "hi"
    }, AlwaysTrue)
}, AlwaysTrue)

The instead looks like a far more superior solution to me, as it avoids implementing a new feature that risks causing issues with code understandability, Plus, we can actually create a specific processor to each namespace!

Just like previously mentioned, Namespaces can be created as groups which allows for setting a new processor for each namespace, Plus, it avoids designing a new API to allow for native namespaces.
This is rejected.

repo: Plothan/Vinum

license: MIT


text:
ACE-zh

Hello, dear author.
I encountered a problem with Chinese data processing. I tried to use 'bash./scripts/process_ace05ep. sh' to change the English content to Chinese, but an error occurred as shown in the following figure:

, I have successfully preprocessed the English data. Can you provide some help?'? Thank you very much.

Hi, thanks for your interest in our work. For this work, we do not consider Chinese data. If you are interested in this part. You can check another work and script https://github.com/PlusLabNLP/X-Gear/tree/main/preprocessing

repo: PlusLabNLP/DEGREE


text:
Support Python 2.7, 3.3 and 3.4

Uses the future package to support Python 2.7, 3.3 and 3.4 from a single code base.
Also tested with LCP code base with both unit and integration tests using Python 2.7.

github says this branch has conflicts

The conflict is with #43 which is also unmerged.
Not sure of the GH way of dealing with this? Accept PR #43 and then I can sort out the conflict and push again to this PR?

Done!

The decrease in coverage is due to Python 2/3 handling such as try/except on imports to handle differences in package names.
Let me know what you'd like me to do with this PR.

Ideally we'd be able to make coveralls look at the aggregate coverage across all different python versions, but I don't think that needs to block this pull request.

authors: bradsokol greatestape

repo: Points/PyLCP


text:
Update travis badge

Minor update.

Indeed. Thank you @MitMaro.

authors: MitMaro mightyiam

repo: PolicyStat/combokeys


text:
Simple BleClient mocking

#RxBleClient can be mocked now like this:
        rxBleClient = new RxBleClientMock.Builder()
                .deviceMacAddress("AA:BB:CC:DD:EE:FF")
                .deviceName("TestDevice")
                .rssi(42)
                .rxBleDeviceServices(
                new RxBleClientMock.ServicesBuilder()
                        .addService(
                            UUID.fromString("00001234-0000-0000-8000-000000000000"),
                            new RxBleClientMock.CharacteristicsBuilder()
                                    .addCharacteristic(
                                        UUID.fromString("00002a29-0000-1000-8000-00805f9b34fb",
                                        "SomeData".getBytes(),
                                        new RxBleClientMock.DescriptorsBuilder()
                                            .addDescriptor(UUID.fromString("00002902-0000-1000-8000-00805f9b34fb"), "SomeDescriptor".getBytes())
                                            .build()
                            ).build()
                ).build()
        ).build();

Code review fixes applied, now mocking client looks like this:
rxBleClient = new RxBleClientMock.Builder()
                .deviceMacAddress("AA:BB:CC:DD:EE:FF")
                .deviceName("TestDevice")
                .scanRecord("ScanRecord".getBytes())
                .rssi(42)
                .addService(
                UUID.fromString("00001234-0000-0000-8000-000000000000"),
                new RxBleClientMock.CharacteristicsBuilder()
                        .addCharacteristic(
                        UUID.fromString("00002a29-0000-1000-8000-00805f9b34fb"),
                        "CharacteristicData".getBytes(),
                        new RxBleClientMock.DescriptorsBuilder()
                                .addDescriptor(
                                 UUID.fromString("00002902-0000-1000-8000-00805f9b34fb"),
                                 "DescriptorData".getBytes()
                                 ).build()
                ).build()
        ).build();

Please verify again.

Looks good to me. What do you think @dariuszseweryn?

I'm not really convinced that Mocking functionality should be introduced in this project. Maybe some kind of extension would be better (like rxjava and rxandroid -> rxandroidble and rxandroidblemock)

This is added as a separate module. If someone wants to use it then he will need to add an additional dependency (exactly like MockWebServer from OkHttp).

Please configure publishing settings in gradle.properties.

Fixes have been applied.

Good points @dariuszseweryn. Thanks. Should be ok now.

I've implemented mocking characteristic notifications. API looks like this:
rxBleClient = new RxBleClientMock.Builder()
                //....
                 .notificationSource(characteristic_UUID, observable)
                 .build();

You can pass a subject as a notification source and then when you can call getNotification(characteristic_UUID), you will get a notification every time you call onNext() on your subject. See updated tests.

@dariuszseweryn could you check the logic in createCharacteristicNotificationObservable especially the cache and share operators at the end? I've mimicked the behavior of RxBleConnectionImpl implementation but it's quite confusing so I'm not completely sure if I did it right.

I've implemented mocking connection status. API looks like this:
rxBleClient = new RxBleClientMock.Builder()
//....
.connectionStateSource(Subject<RxBleConnection.RxBleConnectionState>)
.build();
You can then subscribe to rxBleDevice.getConnectionState() to get notifications about connection state.  Subject that is being passed as a parameter allows to change current connection state - see updated test.

Such functionality has no sense. It will be changed in the future. You can ignore it.

I've added support for simulating device disconnection. Now you will get a CONNECTED status when you subscribe to RxBleConnection and you can simulate a situation when device has disconnected itself. You can do it by calling rxBleClient.disconnect() method. State will change to DISCONNECTED and BleDisconnectedException error will be emited.

LGTM, merging.

authors: dariuszseweryn mzgreen uKL

repo: Polidea/RxAndroidBle


text:
python scripts/python/cli.py   does not work

Describe the bug
I dont really know what the problem is but  "python scripts/python/cli.py"  dosnt work.
Look :      (.venv) C:\Users\ALFA\Downloads\agents>  python scripts/python/cli.py
Traceback (most recent call last):
File "C:\Users\ALFA\Downloads\agents\scripts\python\cli.py", line 4, in
from agents.polymarket.polymarket import Polymarket
ModuleNotFoundError: No module named 'agents'
What am i doing wrong ?
.

Run
export PYTHONPATH="."
and you should be fine.

repo: Polymarket/agents


text:
Question: Does html take fragments as arguments?

I could not find the answer anywhere. Unfortunately the type of the values parameter of TemplateResult is values: readonly unknown[]; and is not really self-explanatory. Therefore I am not sure if I can pass DOM fragments to the html function although I know that it works. But I would like to ask if this could somehow cause problems.
Example:
function createHtmlTemplate(html: string) {
  var template = document.createElement("template")
  template.innerHTML = html.trim()
  return template
}

html`${createHtmlTemplate(`
Hello World
`).content}`

Is this a valid way to use html?
Thank you!

You can use DOM Nodes as values as documented in the supported data types section: https://lit-html.polymer-project.org/guide/template-reference#supported-data-types-for-text-bindings
Passing a Node will insert that node into the DOM, so make sure that the semantics of that are what you want. In the case of a <template> element, inserting the element itself will not cause anything to render because the template contents are stored as a separate document fragment. You probably want to return template.content.
You seem to be basically re-implementing unsafeHTML without the dirty-checking though. WHat's your use case?

@justinfagnani thank you. I have one quick follow-up question before I close this issue: Do SVGs fall under DOM Nodes here?

authors: justinfagnani timonson

repo: Polymer/lit-html


text:
Unable to query slotted nodes created by dom-repeat

When slotting a dom-repeat, i am unable to query the generated items.
Possible regression of https://github.com/Polymer/polymer/issues/2276
Live Demo
http://codepen.io/oridan/pen/JbWrxv?editors=1000
Expected Results
console log should show something like:
[x-items]    [slot]
Actual Results
console log shows
[]    [slot]
Browsers Affected

[x] Chrome

Versions

Polymer: 2.0-preview
webcomponents: v1

Closing after discussion in slack. Thanks to @arthurevans suggestion of stamping elements into light dom as follows:
_attachDom: function (dom)
            {
              this.appendChild(dom);
            },

repo: Polymer/polymer


text:
Refactorings around how computational expressions get their arguments

Do not set splices property on userland arrays. Fixes #2415, #2350
Use value sent through the notification system (#3179)
Don't mutate splices sent into userland. As reported #3239

Should fix #3179

I've added three more commits on top of that initial commit. It seemed appropriate to not open a PR for each of them. Anyhow, please review the commits individually. Overall it's a concise change, @azakus give it a P1 ;-)

This is a nice change :+1:

LGTM from @kevinpschaaf

authors: azakus devinivy kaste


text:
Fixes #3938

Fixes #3938

Separate application of listeners and host attributes.
Adds _applyListeners and _ensureAttributes as override points.
Legacy Polymer impl ensures attributes subclass before superclass so that a subclass gets first crack as to what attribute value should exist (This matches the behavior of Polymer 1.0).

LGTM

authors: kevinpschaaf sorvell


text:
Ensure that express and done are getting returned in prepare:webserver

[X] CHANGELOG.md has been updated

@justinfagnani Can you take a look at this please? Thanks!

repo: Polymer/web-component-tester


text:
Use CollectionStorageProvider for handle operations

Could be generalized to something more generic in the future.
Avoids any
Fixes #2340

Any issues with this?

repo: PolymerLabs/arcs


text:
feat: 🎸 Add procedures to clear and remove a MetadataEntry

Description

Add procedure to clear an Asset Metadata value
Add procedure to remove any Local Asset Metadata
Also, adds a method isModifiable to MetadataEntry to return whether any metadata entry can be modified

Breaking Changes
NA
JIRA Link
DA-885, DA-950, DA-951
Checklist

[ ] Updated the Readme.md (if required) ?

:tada: This PR is included in version 23.0.0-alpha.37 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 24.0.0-alpha.1 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 24.0.0-confidential-assets.1 :tada:
The release is available on:

npm package (@confidential-assets dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 24.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: PolymeshAssociation/polymesh-sdk


text:
style: 💄 remove unused isV6 internal function

Description

Breaking Changes

JIRA Link

Checklist

[ ] Updated the Readme.md (if required) ?

/fast-forward

:tada: This PR is included in version 27.0.0-beta.2 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 27.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: polymath-eric prashantasdeveloper


text:
feat: 🎸 ensure one vote per signer for multiSig proposals

Description
when a multiSig signer changes their vote, the vote record will now be updated instead of inserting a second vote. Proposal approval/rejection counts will now be decremented in this case
Breaking Changes

JIRA Link
DA-1289
Checklist

[ ] Updated the Readme.md (if required) ?

Draft for now since I still need to verify the behavior when a signer approves a proposal, but is removed before the proposal is executed.

I merged in 7.x into settlements-v2 (since the v2 one had merge conflicts with alpha). As a result when base branch was updated, I rebased this PR onto settlements-v2 to make it up to date @polymath-eric

/fast-forward

repo: PolymeshAssociation/polymesh-subquery


text:
Cannot read properties of undefined (reading 'creator')

Hi, guys. Got an error

And I think that is the reason why web3AccountsSubscribe not working via @polkadot/extension-dapp so I cannot handle switching between Networks
Could you please review

@sgurin Currently the testnet runtime is on v5.0.2, while mainnet is on v4.1.2. The version of the wallet extension on the chrome store is not fully compatible with v5.0.2, as seen from your error.
This issue will be addressed in the next release. There is a development release of the wallet in the chrome store that will allow you to use testnet without this wallet error. See https://chrome.google.com/webstore/detail/polymesh-wallet/ihppiagplceklfpgloomoiehdjikkacp
IF YOU DO DECIDE TO USE THE DEVELOPMENT WALLET IT SHOULD ONLY BE USED WITH TESTNET
Ensure you disable or remove the mainnet wallet when using the dev wallet to avoid conflicts between the two extensions

Still the same issue on Development Extension Version

That's because the development wallet is not compatible with the current mainnet runtime. You need to use development with Testnet and the official release with Mainnet until the runtime on mainnet is update to match testnet at which point the official wallet will also be updated.

Thanks a lot

Hi there, Robinland dev lead here. We are an unofficial partner of Polymath/Polymesh and a friend of Vincent's, as well as partner of the tech solution team that sgurin@ is a part of.
Assuming this issue will be fully addressed in the next release, may I ask for a rough ETA of the next release's timeline just so that we can plan our launches better that integrates with the Polymesh SDK? Thank you very much!

@yzrbl The mainnet update is on hold pending Ledger approval and release of an update hardware wallet app in Ledger Live. The official release on their end is taking longer than we expected and the latest information is that it still may not be approved this month.
If you've any general questions about integration you can reach out to us on the Polymesh discord server.

@F-OBrien @yzrbl  Hello guys.  Could you let me know whether this issue with Ledger Live has been resolved and updated?

@F-OBrien @yzrbl Hello guys. Could you let me know whether this issue with Ledger Live has been resolved and updated?

@KisIrene Yes. The Polymesh Ledger app was updated a couple of months ago. it can be downloaded from ledger live. The latest ledger app version is v3.5.000003.0

Thank you so much!!!

authors: F-OBrien KisIrene sgurin yzrbl

repo: PolymeshAssociation/polymesh-wallet


text:
Setup the base of the front end repo

To setup the base of the front end repo we would need to do the following things

[x] Set up the docs folder where we will be noting down each decision
[x] Set up the tailwind css
[x] Setup the eslint and prettierr
[ ] Finalize with the wireframe / design for the application

Finalizing wireframe in a separate task

repo: PoojeshShetty/chat-app-fe


text:
[Feature Request] Ability To Hide "No Deadline Set" On Widget

An option to simply hide the "no deadline set" text on the widget when no deadline is set, would be nice. Just for a cleaner look.

Seems like a good idea, planning to work on widgets soon, will do it then

repo: Pool-Of-Tears/GreenStash


text:
Integrate IPFS and web3 storage uploads

Is your feature request related to a problem?
Presently, snapshotters send the entire contents of each snapshot to the payload commit service in audit protocol over RabbitMQ. This is a huge overhead considering that this can take place for thousands of projects per epoch. This often causes high resource usage when there is a burst of large snapshots that are computed.
Describe the solution you'd like
Once the snapshots are computed and built, upload them from within the snapshot and aggregation workers itself.
Describe alternatives you've considered
NA
Additional context
NA

Implemented in #53 and #55, closing.

authors: anomit xadahiya

repo: PowerLoom/pooler


text:
Moved Code of Conduct to separate file - Fixes #139

Pull Request (PR) description
Moved Code of Conduct to separate file.
This Pull Request (PR) fixes the following issues:

Fixes #139

Task list:

[x] Change details added to Unreleased section of CHANGELOG.md?
[x] Added/updated documentation, comment-based help and descriptions in .schema.mof files where appropriate?
[ ] Examples appropriately updated?
[ ] New/changed code adheres to Style Guidelines?
[ ] Unit and (optional) Integration tests created/updated where possible?

@Johlju - would you mind reviewing? Should be just standard Code of Conduct change.

This change is

Codecov Report

Merging #140 into dev will increase coverage by <1%.
The diff coverage is 95%.

@@         Coverage Diff         @@
##           dev   #140    +/-   ##
===================================
+ Coverage   94%    94%   +<1%
===================================
  Files        5      5
  Lines      519    520     +1
  Branches     2      1     -1
===================================
+ Hits       491    493     +2
  Misses      26     26
+ Partials     2      1     -1

@johlju - doh! Yes I did. Forgot I had another outstanding branch on this repo! Will fix it tonight.

Actually, I'll fix up this one once #137 has been reviewed and merged.

This one should be good to go now @johlju - sorry about the mess up!

No worries - it happens :smiley:

Reviewed 3 of 3 files at r1.
Review status: :shipit: complete! all files reviewed, all discussions resolved

Comments from Reviewable

authors: PlagueHO codecov-io johlju

repo: PowerShell/CertificateDsc


text:
Can't use New-PSSession to "https://ps.compliance.protection.outlook.com/powershell-liveid/"

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
$Username =
$Password =
$SecPassword = ConvertTo-SecureString $Password -AsPlainText -Force
$Office365URI = "https://ps.compliance.protection.outlook.com/powershell-liveid/"
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri $Office365URI -Credential $Credentials -Authentication Basic -AllowRedirection
Expected behavior
$Session is a valid session in exchange online

Actual behavior
New-PSSession: /powershell/Connection.ps1:19
Line |
  19 |  $Session = New-PSSession -ConfigurationName Microsoft.Exchange -Conne …
     |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | [ps.compliance.protection.outlook.com] Connecting to remote
     | server ps.compliance.protection.outlook.com failed with the
     | following error message : MI_RESULT_FAILED For more
     | information, see the about_Remote_Troubleshooting Help topic.

Environment data
Name                           Value
----                           -----
PSVersion                      7.1.0
PSEdition                      Core
GitCommitId                    7.1.0
OS                             Darwin 19.6.0 Darwin Kernel Version 19.6.0: Thu May  6 00:48:39 PDT 2021; root:xnu-6153.141.33~1/RELEASE_X86_64
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals
NA

Some additional information. This worked up until Monday (July 5th 2021). We had this script suddenly fail across several organizations and we're not sure what changed.

WG-Remoting:

This ended up being a problem with docker. I couldn't tell you the root cause. I had to uninstall and reinstall docker to get it to work. A simple reset of docker wasn't enough.

repo: PowerShell/PowerShell


text:
WindowsCompatibility module fails to import on PS 7.5.0-preview.3

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
WindowsCompatibility module fails to import on PS 7.5.0-preview.3 due to an extra trailing dot in the namespace in the WindowsCompatibility.psm1 file:
using namespace System.Management.Automation.

This works on PowerShell 7.4.3, so I guess we should allow for trailing dots in PS 7.5.0 as well.
Expected behavior
I should be able to import WindowsCompatibility module

Actual behavior
Import-Module WindowsCompatibility -Force
ParserError: The specified namespace in the 'using' statement contains invalid characters.
Import-Module: The module to process 'WindowsCompatibility.psm1', listed in field 'ModuleToProcess/RootModule' of module manifest 'C:\Program Files\PowerShell\Modules\WindowsCompatibility\1.0.0\WindowsCompatibility.psd1' was not processed because no valid module was found in any module directory.

Error details
Exception             :
    Type           : System.Management.Automation.PSInvalidOperationException
    ErrorRecord    :
        Exception             :
            Type    : System.Management.Automation.ParentContainsErrorRecordException
            Message : The module to process 'WindowsCompatibility.psm1', listed in field 'ModuleToProcess/RootModule' of module manifest 'C:\Program
Files\PowerShell\Modules\WindowsCompatibility\1.0.0\WindowsCompatibility.psd1' was not processed because no valid module was found in any module directory.
            HResult : -2146233087
        TargetObject          : WindowsCompatibility
        CategoryInfo          : ResourceUnavailable: (WindowsCompatibility:String) [], ParentContainsErrorRecordException
        FullyQualifiedErrorId : Modules_ModuleFileNotFound
    TargetSite     :
        Name          : LoadModuleManifest
        DeclaringType : [Microsoft.PowerShell.Commands.ModuleCmdletBase]
        MemberType    : Method
        Module        : System.Management.Automation.dll
    Message        : The module to process 'WindowsCompatibility.psm1', listed in field 'ModuleToProcess/RootModule' of module manifest 'C:\Program
Files\PowerShell\Modules\WindowsCompatibility\1.0.0\WindowsCompatibility.psd1' was not processed because no valid module was found in any module directory.
    InnerException :
        Type    : System.IO.FileNotFoundException
        Message : The module to process 'WindowsCompatibility.psm1', listed in field 'ModuleToProcess/RootModule' of module manifest 'C:\Program
Files\PowerShell\Modules\WindowsCompatibility\1.0.0\WindowsCompatibility.psd1' was not processed because no valid module was found in any module directory.
        HResult : -2147024894
    Source         : System.Management.Automation
    HResult        : -2146233079
    StackTrace     :
   at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModuleManifest(String moduleManifestPath, ExternalScriptInfo manifestScriptInfo, Hashtable data, Hashtable localizedData,
ManifestProcessingFlags manifestProcessingFlags, Version minimumVersion, Version maximumVersion, Version requiredVersion, Nullable`1 requiredModuleGuid, ImportModuleOptions& options,
Boolean& containedErrors) in D:\DEVELOPMENT\PowerShellCore\src\System.Management.Automation\engine\Modules\ModuleCmdletBase.cs:line 3120
   at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModuleManifest(String moduleManifestPath, ExternalScriptInfo manifestScriptInfo, Hashtable data, Hashtable localizedData,
ManifestProcessingFlags manifestProcessingFlags, Version minimumVersion, Version maximumVersion, Version requiredVersion, Nullable`1 requiredModuleGuid, ImportModuleOptions& options,
Boolean& containedErrors) in D:\DEVELOPMENT\PowerShellCore\src\System.Management.Automation\engine\Modules\ModuleCmdletBase.cs:line 3139
   at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModule(PSModuleInfo parentModule, String fileName, String moduleBase, String prefix, SessionState ss, Object privateData,
ImportModuleOptions& options, ManifestProcessingFlags manifestProcessingFlags, Boolean& found, Boolean& moduleFileFound) in
D:\DEVELOPMENT\PowerShellCore\src\System.Management.Automation\engine\Modules\ModuleCmdletBase.cs:line 5630
   at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingExtensions(PSModuleInfo parentModule, String moduleName, String fileBaseName, String extension, String moduleBase, String
prefix, SessionState ss, ImportModuleOptions options, ManifestProcessingFlags manifestProcessingFlags, Boolean& found, Boolean& moduleFileFound) in
D:\DEVELOPMENT\PowerShellCore\src\System.Management.Automation\engine\Modules\ModuleCmdletBase.cs:line 5505
   at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingMultiVersionModuleBase(String moduleBase, ManifestProcessingFlags manifestProcessingFlags, ImportModuleOptions
importModuleOptions, Boolean& found) in D:\DEVELOPMENT\PowerShellCore\src\System.Management.Automation\engine\Modules\ModuleCmdletBase.cs:line 455
   at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingModulePath(PSModuleInfo parentModule, IEnumerable`1 modulePath, String name, SessionState ss, ImportModuleOptions options,
ManifestProcessingFlags manifestProcessingFlags, PSModuleInfo& module) in D:\DEVELOPMENT\PowerShellCore\src\System.Management.Automation\engine\Modules\ModuleCmdletBase.cs:line 381
   at Microsoft.PowerShell.Commands.ImportModuleCommand.ImportModule_LocallyViaName(ImportModuleOptions importModuleOptions, String name) in
D:\DEVELOPMENT\PowerShellCore\src\System.Management.Automation\engine\Modules\ImportModuleCommand.cs:line 824
TargetObject          : WindowsCompatibility
CategoryInfo          : ResourceUnavailable: (WindowsCompatibility:String) [Import-Module], PSInvalidOperationException
FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
InvocationInfo        :
    MyCommand        : Import-Module
    ScriptLineNumber : 1
    OffsetInLine     : 1
    HistoryId        : 11
    Line             : ipmo WindowsCompatibility -Force
    Statement        : ipmo WindowsCompatibility -Force
    PositionMessage  : At line:1 char:1
                       + ipmo WindowsCompatibility -Force
                       + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    InvocationName   : ipmo
    CommandOrigin    : Internal
ScriptStackTrace      : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo :
      0
      1

Environment data
Name                           Value
----                           -----
PSVersion                      7.5.0-preview.3
PSEdition                      Core
GitCommitId                    7.5.0-preview.3-37-gec3840d6a1fffdbaca7173ededb4a4504b2f5b41
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

Note that the WindowsCompatibility module is obsolete (it was designed for  t PS v6 , and is now archived; arguably, it should be hidden from the PowerShell Gallery or clearly marked as obsolete).
Its functionality has been folded into PowerShell itself, so there is no longer a need for it.
And, in general, I think it's preferable that something like using namespace System.Management.Automation. not be accepted.

@mklement0:

Yeah, it makes sense. I have a function that exports Scoop environment from online system to disconnected system, that needs to run some code from PS Core session on Windows PowerShell, and I was using Invoke-WinCommand to accomplish that. I'll refactor this code to use New-PSSession -UseWindowsPowerShell instead.
I also agree that the WindowsCompatibility module should be retired, the only concern I have that there might be some code in the wild that has using namespace statements with extra trailing dot that will fail to work on PS 7.5.0 once it is released as stable - I guess that it should be clearly stated in the release docs as breaking change so users are aware.

It's surprising for that trailing period to be there, but I see it in the psm1 source.  The WinCompat module is deprecated and the repo is archived and no longer supported.  As noted, there are other supported solutions.

authors: SteveL-MSFT kborowinski mklement0


text:
Powershell hangs or dies silently when running Read-Host -AsSecureString when invoked via Python subprocess

Steps to reproduce
import json, uuid, subprocess, base64

PSCODE = '''
[CmdletBinding()]
param
(
    $payload = (Read-Host -AsSecureString)
)
Get-Host
'''

def base64_encode_powershell(input_string):
    """
        Encodes input value in UTF-16 Little Endian, making it suitable for use with powershell's encoded command argument.
    """
    byte_string = input_string.encode('utf-16-le')
    encoded_data = base64.b64encode(byte_string)
    return encoded_data

def create_ps_file(ps_name, ps_content):
        ps_path = ps_name
        with open(ps_path, 'w+') as file:
            file.write(ps_content)
        return ps_path

ps_args = {}
ps_args['URL'] = "https://google.com"
payload = base64_encode_powershell(json.dumps(ps_args))
ps_path = create_ps_file('ps_' + str(uuid.uuid4()).replace('-','') + '.ps1', PSCODE)
output = subprocess.Popen(["pwsh", ps_path], stdin = subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = output.communicate(payload)
print stdout

Expected behavior
stdout in the Python code should contain the output of Get-Host
Name             : ConsoleHost
Version          : 6.2.1
InstanceId       : 5168dee8-2e5c-4967-9d78-b53372cf351d
UI               : System.Management.Automation.Internal.Host.InternalHostUserI
                   nterface
CurrentCulture   : en-US
CurrentUICulture : en-US
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled  : True
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace

Actual behavior
stdout in the Python code is empty, as is stderr

Environment data

Name                           Value
----                           -----
PSVersion                      6.2.1
PSEdition                      Core
GitCommitId                    6.2.1
OS                             Linux 4.9.125-linuxkit #1 SMP Fri Sep 7 08:20:28 UTC 2018
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Note
The expected behavior is observed when using PowerShell 5 on a Windows system, using the exact same Python code (except for changing pwsh to powershell.exe and adding a -f to the args in the subprocess call.

Suggest to simplify python code and give os, python version

Close as stale issue. Feel free to continue discussion.

Close as stale issue. Feel free to continue discussion.

authors: chuanjiao10 iSazonov vector-sec


text:
Remove minor versions from PSCompatibleVersions

Supercedes #18346.

I'd be more willing to see this not remove all minor versions but instead leave the latest minor version

Language breaking change can be introduced only in new major version.

@kilasuit the @PowerShell/powershell-committee's position is 7.0 represents 7.x (docs will need to be updated) instead of perpetually updating this list with every yearly release of 7.x.

@SteveL-MSFT that's fair, just wanted to highlight this possible other viewpoint so that it's mentioned within this PR for full transparency to those coming to this in future

@xtqqczze Can you please fix the failing tests? Some tests need to be updated accordingly.

authors: SteveL-MSFT daxian-dbw iSazonov kilasuit xtqqczze


text:
[SPAppManagementServiceApp] Resource does not create proxy afterwards

Details of the scenario you tried and the problem that is occurring
When the Service App Proxy isn't created during deployment, this isn't created anymore at a later stage
Verbose logs showing the problem
N/A
Suggested solution to the issue
Update resource to check for the presence of the proxy and create it when not present.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
N/A
The operating system the target node is running
Win 2K16, PSv5.1
Version of SharePoint that is used (e.g. SharePoint 2016)
All
Version and build of PowerShell the target node is running
v5.1
Version of the DSC module that was used ('dev' if using current dev branch)
Dev

Will be included in my next bugfix PR

repo: PowerShell/SharePointDsc


text:
Add New-Markdown test for dynamic parameters

Courtesy to @dotps1 for the function with dynamic parameters example
--ff only merge

This change is

Merged in master with --ff

repo: PowerShell/platyPS


text:
Get-MySqlPort should be skipped when a optional port parameter is supplied

Resources that perform Get-MySqlPort currently fail for me as my.ini is not located in the standard location.
Not really sure why is even necessary to parse the port from the config, I assumed there's something I've overlooked so I've created an my.ini path override optional parameter to the Get-MySqlPort function and the associated resources. Happy to submit a PR.

That helper function is used in several resources to get the port - if there are a better way to get the port then that should be used. Otherwise your workaround sound promising. Do you want to send in a PR then please do.

repo: PowerShell/xMySql


text:
Update errant file encodings

Remove smartquotes in MOF schema and ensure file is UTF8

Hi @Iristyle, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

Thanks for fixing encoding in this and other modules @Iristyle

authors: Iristyle KarolKaczmarek msftclas

repo: PowerShell/xRemoteDesktopSessionHost


text:
Update Schema to support singleton

Fix/Workaround for issue #2

Hi @TravisEz13, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Travis Plunk). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

looks good

authors: KarolKaczmarek TravisEz13 msftclas

repo: PowerShell/xTimeZone


text:
DAMAGE event should be emitted only for damage caused by tower attacks

Any calls to do_spell_damage(), do_attack_damage() and AOE variations inside tower scripts should not emit DAMAGE event.
This behavior is according to original JASS code.

DAMAGE even should also be emitted for all instances of damage resulting from splash attacks.
Proof:

The tower in the screenshot is Ash Geyser. It has a splash attack and an ability which applies a debuff to creeps inside DAMAGE event callback. The screenshot shows that a creep was hit by splash attack (not as main target) and it received the debuff.


text:
No padding between axis label and color legend bar

Should have a 3px space. Right now the first color bar sits directly next to the label.

fixed

repo: PredixDev/px-vis-xy-chart


text:
[Request] Automatic Fishing Net auto-eject

I can see that this has been partially looked at in #200 but I'm not sure how we might go about automatically extracting from the Fishing net. Putting a hopper under it does extract the contents but appears to halt production.
With cyclic 1.10.2-1.9.19 I'm unable to extract from the top face using Translocators (extracts rod, not loot), Transfer Nodes, nor ActuallyAddition's ESD.  (edit: Tried using an AA PhantomFace too and it complains. I'm guessing your inventory isn't being made available)
Perhaps you could have the Net automatically eject to an inventory that's on the top face? That way we could throw a chest on top and then use automation to clear the chest.

With the current restriction on available faces, I'd have to choose between having a crafter auto-insert fresh rods, OR having something auto-extract the fish. I don't have EnderIO in this pack so I can't use one conduit for both :P
Perhaps you could set the net to halt when the rod is close to breaking so that I don't lose my Unbreaking/Luck rod? Alternatively ease the placement restrictions to expose 2 faces for automation.

Yeah i could do an inventory on/off feature. so if its off then it will drop below always as if it was full.
letting rods break or not should be doable too.
i havent thought about the faces having only one open, ill look at it. maybe 3 out of 4 sides.

By the way, if the fishing rod has mending it shouldnt break in there, it should repair itself from the fishing xp

Made a bunch of changes in the latest release, let me know what you think https://minecraft.curseforge.com/projects/cyclic/files/2374252

Wonderful! I'll update the pack next weekend and check out the changes. Thanks!

authors: PrinceOfAmber xenoflot

repo: PrinceOfAmber/Cyclic


text:
Address JSON view for member map

indexes member address information in Solr
new JSON view to return map and member data with the same filters used on the members list view

@thatbudakguy codefactor is helpfully flagging a couple of todos I left in the code — I think they depend on what we decide we need from this view, so I probably need input from you to resolve.
IDK how we want to handle merging this one — do we merge into develop when you're happy with it even though it's not really functional on its own?

Codecov Report

Merging #643 into develop will increase coverage by 0.00%.
The diff coverage is 99.07%.

@@            Coverage Diff            @@
##           develop     #643    +/-   ##
=========================================
  Coverage    98.08%   98.09%
=========================================
  Files          218      219     +1
  Lines        11568    11671   +103
  Branches        63       63
=========================================
+ Hits         11347    11449   +102
- Misses         221      222     +1

authors: codecov-commenter rlskoeser

repo: Princeton-CDH/mep-django


text:
Update the column headers in the peakgroups search output

BUG DESCRIPTION
Problem
Column headers in the peakgroups search results (both basic and advanced) use Caroline's Processed tissue data.  They should use the terms from issue #107.  They could also be informed by the peakgroups tab of customer-desired consolidated view formats
Steps to reproduce

Go to http://127.0.0.1:8000/DataRepo/search_peakgroups/ and search for tissue is brain

Current behavior
Names used in Caroline's Processed tissue data
Expected behavior
Use the terms from issue #107 -  TraceBase Terms and Definitions.
Suggested Change
Simple edit of search_peakgroups and the basic search templates.
Comment
Change the column headers from Caroline's terms to agreed upon terms (issue #107)
Originally posted by @hepcat72 in https://github.com/Princeton-LSI-ResearchComputing/tracebase/pull/127#discussion_r662395704

ISSUE OWNER SECTION
Assumptions

List of assumptions made WRT the code
E.g. We will assume input is correct (explaining why there is no validation)

Requirements

List of conditions to be met for the feature
E.g. Every column/row must display a value, i.e. cannot be empty

Limitations

A list of things this work will not fix
E.g. Getting edge case X to work requires too much effort and will not be
fixed in this effort.

Affected/Changed Components

Files
Environment variables
External executables
Database tables
Cron job settings
Etc.

DESIGN
GUI Change description
Describe changes the user will see.
Code Change Description (Pseudocode optional)
Describe code changes planned for the fix.
Tests
A test should be planned for each requirement (above), where possible.

Dupe of #147


text:
What is the parent property in the environment of the wrap hook for?

I don't get what the parent property is for.
We don't have a plugin that is using it doesn't even is what the name suggests: parent actually holds the nearest token array; i.e. in the case that the content of a token is a single token, then parent will not be the parent token but the token stream of the parent.
Apart from that, I also don't see why it would be useful:
Assuming we wrap a token which is in a token stream: What can parent be used for?
We can alter token positioned before the current token but that doesn't change the output of stringify because these token as stringified already. Changing the current token doesn't do anything either.
The only thing parent can be used for is to alter the items positioned after the current token. Btw. we can't add or remove items because stringify uses map.
So, what is it for?
Also, I don't see why the wrap hook should be able to modify the token stream anyway.

Added 11 May 2013

Because of the proximity in time between the commits, I suspect it was initially added for something related to the WPD plugin (20c0a1e96d6760aa2f0fad5b9a4f77d6f6b89434), but even there it is unused.
I believe it is safe to remove it, considering how unreliable it is anyway.

authors: Golmote RunDevelopment

repo: PrismJS/prism


text:
Replace compile with implementation

My project keeps giving me this error and fortunately android studio now points to the library which has this problem.
Please replace
dependencies {
    compile 'com.android.support:support-annotations:25.0.0'
}

with "implementation" (and any other if there is)

Can you make a pull request and fix this?

Done.
I have never done this before so I hope I did it correctly :)

thanks!

authors: RJFares dschuermann

repo: PrivacyApps/html-textview


text:
Breakout 4: Token Vault workflows

Problem Statement:
Token scanning is important to ensure that secrets/tokens aren't exposed (very important for open source projects and the supply chain that depends on them). A repo contains 100 secrets and an org can contain upto 500
Tasks
*lean on maintainer for admin privileges

[ ] checkout the action for Hashicorp vault
[ ] create a .yml file in workflows
[ ] Set up a Vault instance,
[ ] Authentication with GitHub OIDC Token
[ ] Example usage to reference

2023-04-26

Vault is a Hashicorp service for storing secrets
OIDC workflows are used to generate short-lived auth tokens

This is preferable to generating a long-lived token with read:org

We have a Vault account already and can use that to generate a Vault instance

repo: ProgramEquity/amplify


text:
feat: Implementation of CRUD with JSON files (transports)

Pull Request

Description

Type of Change

[ ] ✨ New feature (non-breaking change which adds functionality)
[ ] 🛠 Bug fix (non-breaking change which fixes an issue)
[ ] ❌ Breaking change (fix or feature that would cause existing functionality
to change)
[ ] 🧹 Code refactor
[ ] ✅ Build configuration change
[ ] 📝 Documentation
[ ] 🗑 Chore

Task linked: CU-8689n1ev7 Implementation of CRUD with JSON files transports


text:
Documents roundtrip param

See https://github.com/Project-OSRM/osrm-backend/issues/3741

Now in the backend https://github.com/Project-OSRM/osrm-backend/pull/4185.

repo: Project-OSRM/node-osrm


text:
Add Initial r9q Support

What Changed

Add support for r9q
Reason

As I don't think I'll have many more updates recently, I'll do the PR again.
Checklist

[x] Is what you changed Tested?
[x] Is the Source Code Cleaned?

Now the DSDT dosen't Exist, Please make a PR in the Silicium-ACPI Repo.

repo: Project-Silicium/Mu-Silicium


text:
Wrap analytics id in quotes

This might get the google analytics working for the Foundations site.
I noticed that my other JupyterBook site (which has working analytics) wrapped the ID in double quotes:
https://github.com/brian-rose/ClimateLaboratoryBook/blob/87801650d5f2e374494d8ccfc955b2a3b3000254/_config.yml#L45
This is consistent with the JupyterBook config reference, which shows double quotes:
https://jupyterbook.org/customize/config.html
I tried using double quotes here, but prettier insisted on changing them to single quotes.

@kmpaul I suggest merging this and see if it get the analytics working. I'm not sure we have a way to test this without merging first.

If this doesn't work, then we might be able to wait for a fix:
https://github.com/executablebooks/jupyter-book/issues/1300
https://github.com/pydata/pydata-sphinx-theme/pull/439

I don't think this fixed anything, sadly.  I can't be 100% sure, but I don't see any differences in the actual HTML generated for the page.

Ok! I suppose my Climate Laboratory book must be using an "old style" Google Analytics ID, though I'm not yet clear what that means.

Does it start with a UA-?  Or a G-?  The first is the old and the second is the new.

authors: brian-rose kmpaul

repo: ProjectPythia/pythia-foundations


text:
:technologist: PlayerShouldInvulnerableタグを作成

close #904

この処理が実行されたあとワールドとか神器の処理でゲームモードが変えられた場合変なことになりそうだけど大丈夫？

当然そのtick内ではダメージを食らったりするだろうけど正直"遅かった"で済まされる問題程度だと思うので問題ない気もする

repo: ProjectTSB/TheSkyBlessing


text:
Testing: Babylon Controller

User Story
Verbleibende ungetestete Babylon Controller:

src/Components/Core/Presentation/Babylon/

Akzeptanzkriterien

[ ] Avatar/AvatarController
[ ] LearningElement/LearningElementController

Definition of Ready

[ ] User Story ist klein genug für Sprint
[ ] User Story ist für jeden Beteiligten klar verständlich
[ ] User Story Aufwand ist geschätzt
[ ] User Story hat Akzeptanzkriterien
[ ] User Story hat einen Mehrwert für das Produkt oder die Entwicklung
[ ] User Story Ursprung ist bekannt (Stakeholder)
[ ] User Story ist Release zugewiesen

Definition of Done

[ ] Alle Akzeptanzkriterien sind erfüllt
[ ] Die Implementierung ist gepusht
[ ] Die Codekonventionen sind eingehalten
[ ] Eine Code Review wurde durchgeführt (oder in Paired Programming gearbeitet)
[ ] Unittestabdeckung ist über 92% oder so hoch wie möglich mit validen Gründen weshalb die 92% nicht erreicht werden können
[ ] Alle Tests müssen bestanden sein
[ ] Technische Dokumentation innerhalb der Realisierung wurde, falls nötig, erstellt (Quellcode)
[ ] Dokumentation des Vorgehens wurde, falls nötig, angelegt (Zenhub Kommentar)
[ ] Es gibt keine bekannten Bugs
[ ] Die Realisierung der User Story wurde erfolgreich durch den Product Owner abgenommen

Please add your planning poker estimate with ZenHub @philgei

authors: DerKatsche Lizardguard


text:
forget password issue

Question: In login form after a user type his username and then click forget password link and after confirming new password ,will the user back to the login page with pre-filled  fields with new password already or he/she has to enter the whole information again?

When user comes back on login form after resetting password from forgot password link, he/she has to fill both the details again.

authors: Suparna-Acharya iroshni

repo: Promact/trappist


text:
Query BDD Test by productId

As a Developer
I need to describe the behavior of listing all promotions by productId
So that I can test the feature under DBB
Details & Assumptions:

Write the feature using Gherkin syntax that is understood by the behave tool

Acceptance Criteria:
When run tests using `behave`
Then I should see “list all promotions by productId query” scenario pass

IBM Cloud toolchain: Delivery Pipeline deployed promotions to prod, including commits 9fc2661199993d8990995905067cd7dac4192450, 594968bcce6b80cd84ae9d4c43896a7c0c1dd42a

authors: Tingtingyy dizys

repo: PromoSquad/promotions


text:
Updated routes.py file for descrip. & create promo

Updated the routes.py file to include our name and description. Also, updated the file within the Get Index function to inlcude read promotion.

reviewed!

repo: PromotionsSquad/promotions


text:
ifconfig not found cs go server

i am trying to run a cs go server on the panel but it seems like it can't find ifconfig,so it will crash
here's the log
http://hastebin.com/ukaqocacaw.sql

/cc @parkervcp

Oh i solved this by adding apt-get install -y net-tools to srcds docker Image but now cs go server gets stuck at assigning ip(it fails)

I am unable to reproduce this on my system, and did not encounter any issues while downloading CS:GO though the container.
I am going to assume that these issues are most likely due to the method that you used to move files, and could be either permissions or missing files entirely.

repo: Pterodactyl/Daemon


text:
[7.0] Server Sub-User Issues.

Panel or Daemon: Panel
Version of Panel/Daemon: 7.0
Server's OS: Ubuntu 16.04
Your Computer's OS & Browser: Chrome, Win 10

Add Details Below:
Adding a sub-user to a server is non-functional, unsure about deleting a sub-user from a server. Adding a deleting sub-users/users from the panel itself is fine though.

Can you please clarify what the issue here is @odddellarobbia?

authors: DaneEveritt odddellarobbia

repo: Pterodactyl/Panel


text:
Improve UX for zooming with restricted geolevels

Description

We prevent selecting the blocks geolevel at zoom levels below a certain threshold. However, if you zoom in, select the blocks geolevel, and then zoom out, blocks are still selected but they are grayed out and we don't clearly explain what changed and what a user needs to do to continue working with blocks. The user can't select geounits on the map until they manually select an available geolevel. For example:

To remedy this, we want to make it more clear that the user needs to zoom back in to see and interact with blocks by showing a them a message (see screenshot). We also want to not gray-out the blocks geolevel so it's clear the blocks geolevel is still active.
AC:

When a user selects a restricted geolevel (i.e. Blocks) and zooms out past the min-zoom, we show a message that explains: Zoom in to work with [geolevel]. (See screenshot)
Also when this happens, the blocks geolevel button is still active and indicates blocks are still selected (rather than being grayed out).
When zoomed out, if a user selects a non-restricted geolevel  the restricted geolevel button is deactivated and returns to a state like in #268 / #287.
If a user has a restricted geounit selected, the user can zoom out past the min-zoom (rather than be limited to it) and the selection is maintained (i.e. sidebar shows proposed change, if you zoom back in the selection is still there)

Screenshots

I edited this issue to reflect the new direction mentioned in this message: https://github.com/PublicMapping/districtbuilder/pull/270#issuecomment-669479824

Updated to capture the various nuances.

@jfrankl What do you think of Zoom in to work with blocks? It's a little more concise than Zoom in to view and select blocks.

@tgilcrest looks good to me.

authors: jfrankl tgilcrest

repo: PublicMapping/districtbuilder


text:
firmware_bundles are obsolete

The most recent commit (72eca92) updated firmware to rev 201611070000, whereas current Bean Loader apps require rev 201611160000.
In a possibly related issue, the bean program_firmware command does not fail-fast if the bean's firmware is more recent than the revision in the SDK's firmware_bundles. Instead it proceeds, but does not complete:
[...]
2017-03-21T00:39:41.915Z INFO All services have been setup!
Connected!

2017-03-21T00:39:41.946Z INFO Char read success(2a27): 2A
Programming device firmware: 884aea153e0a
2017-03-21T00:39:41.952Z INFO Begin update called
2017-03-21T00:39:41.975Z INFO Char read success(2a26): 201611160000 Img-B
2017-03-21T00:39:41.976Z INFO Comparing firmware versions: Bundle version (201611070000), Bean version (201611160000)
2017-03-21T00:39:41.979Z INFO Starting FW update for device Bean+(884aea153e0a)
2017-03-21T00:39:41.981Z INFO Begin FW @ 1490056782
2017-03-21T00:39:41.984Z INFO Triggered a notification on Identify char

The command appears to hang at this point and must be manually terminated.
Another possibly related bug is that the bean program_sketch command also hangs. This has been reported several times recently in the forum:
2017-03-21T00:42:35.289Z INFO All services have been setup!
Connected!

2017-03-21T00:42:35.318Z INFO Char read success(2a27): 2A
Found sketch setLed for board Bean+
2017-03-21T00:42:35.328Z INFO No longer scanning...
2017-03-21T00:42:35.331Z INFO State transition: null -> STATE_INACTIVE
2017-03-21T00:42:35.331Z INFO Beginning sketch upload of sketch: setLed
2017-03-21T00:42:35.332Z INFO State transition: STATE_INACTIVE -> STATE_AWAIT_READY
2017-03-21T00:42:35.333Z INFO Sketch upload started!

Once again, the command appears to hang at this point and must be manually terminated.
Other commands that hang are: read_accel, read_ble_config, and read_device_info.
I wonder if the hangs are related to the firmware version? It seems unlikely that they are related to BLE dongle because the hangs have been reported when using several different approved dongles.
windows 10
python 2.7.13
node v6.10.0
bean 0.6.1

I forked and recompiled version - with latest firmware it is not possible to program lightblue bean anymore. Same problem as described here: http://beantalk.punchthrough.com/t/cli-unable-to-upload-sketch-update-firmware-rename-bean/4187/14
Not working on all platforms probably (mine linux)

I tried to downgrade firmware (using reversed patch), but unfortunately command also hangs
./bean.sh program_firmware -n Bean
2017-04-01T19:59:35.606Z INFO Setting scan timeout: 15 seconds
2017-04-01T19:59:35.611Z INFO Starting to scan...

Found device with name/address: Bean/04a3169af315
2017-04-01T19:59:36.349Z INFO No longer scanning...
2017-04-01T19:59:36.350Z INFO Connecting to device: Bean
2017-04-01T19:59:36.883Z INFO Looking up services for device: Bean
2017-04-01T19:59:37.725Z INFO Found service: OAD Service / f000ffc004514000b000000000000000
2017-04-01T19:59:37.725Z INFO Found service: Generic Access / 1800
2017-04-01T19:59:37.725Z INFO Found service: Generic Attribute / 1801
2017-04-01T19:59:37.726Z INFO Found service: Device Information / 180a
2017-04-01T19:59:37.726Z INFO Found service: Serial Transport Service / a495ff10c5b14b44b5121370f02d74de
2017-04-01T19:59:37.726Z INFO Found service: Unknown / a495ff20c5b14b44b5121370f02d74de
2017-04-01T19:59:37.726Z INFO Found service: Battery Service / 180f
2017-04-01T19:59:37.726Z INFO Found service: Scan Parameters / 1813
2017-04-01T19:59:37.726Z INFO Found service: Human Interface Device / 1812
2017-04-01T19:59:37.726Z INFO Found service: Unknown / 03b80e5aede84b33a7516ce34ec4c700
2017-04-01T19:59:37.727Z INFO Service setup successfully: Generic Access
2017-04-01T19:59:37.727Z INFO Service setup successfully: Generic Attribute
2017-04-01T19:59:37.727Z INFO Service setup successfully: Human Interface Device
2017-04-01T19:59:37.727Z INFO Service setup successfully: Scan Parameters
2017-04-01T19:59:37.728Z INFO Setting up IDENTIFY and BLOCK notifications
2017-04-01T19:59:37.728Z INFO Service setup successfully: Device Information
2017-04-01T19:59:37.728Z INFO Setting up SERIAL notifications
2017-04-01T19:59:37.728Z INFO Service setup successfully: Unknown
2017-04-01T19:59:37.728Z INFO Service setup successfully: Battery Service
2017-04-01T19:59:37.729Z INFO Service setup successfully: Unknown
2017-04-01T19:59:37.848Z INFO Service setup successfully: OAD Service
2017-04-01T19:59:37.870Z INFO Service setup successfully: Serial Transport Service
2017-04-01T19:59:37.871Z INFO All services have been setup!
Connected!

2017-04-01T19:59:37.893Z INFO Char read success(2a27): 1E
Programming device firmware: 04a3169af315
2017-04-01T19:59:37.895Z INFO Begin update called
2017-04-01T19:59:37.915Z INFO Char read success(2a26): 201611070000 Img-B
2017-04-01T19:59:37.916Z INFO Comparing firmware versions: Bundle version (201609290000), Bean version (201611070000)
2017-04-01T19:59:37.916Z INFO Starting FW update for device Bean(04a3169af315)
2017-04-01T19:59:37.916Z INFO Begin FW @ 1491076778
2017-04-01T19:59:37.917Z INFO Triggered a notification on Identify char

Sort of good news is that Bean is not bricked, because it is possible to program it using OSX non-CLI tools

The firmware in repo has been updated (20170406) but I'm still seeing the hangs for read_ble_config and read_device_info, etc.
windows 10
python 2.7.13
node v6.10.2
bean 0.6.2

Same problem still stuck CLI on Linux, Windows and OSX like this:
2017-04-01T19:59:37.893Z INFO Char read success(2a27): 1E
Programming device firmware: 04a3169af315
2017-04-01T19:59:37.895Z INFO Begin update called
2017-04-01T19:59:37.915Z INFO Char read success(2a26): 201611070000 Img-B
2017-04-01T19:59:37.916Z INFO Comparing firmware versions: Bundle version (201609290000), Bean version (201611070000)
2017-04-01T19:59:37.916Z INFO Starting FW update for device Bean(04a3169af315)
2017-04-01T19:59:37.916Z INFO Begin FW @ 1491076778
2017-04-01T19:59:37.917Z INFO Triggered a notification on Identify char

Only way to upload sketch only through OSX GUI uploader

Hi folks!  We are working through this issue with the Node loader.  I'll
make sure to update this issue when we make headway.  Thanks!
On Tue, Apr 11, 2017 at 7:38 AM, evaldsurtans notifications@github.com
wrote:

Same problem still stuck CLI on Linux, Windows and OSX like this:
2017-04-01T19:59:37.893Z INFO Char read success(2a27): 1E
Programming device firmware: 04a3169af315
2017-04-01T19:59:37.895Z INFO Begin update called
2017-04-01T19:59:37.915Z INFO Char read success(2a26): 201611070000 Img-B
2017-04-01T19:59:37.916Z INFO Comparing firmware versions: Bundle version (201609290000), Bean version (201611070000)
2017-04-01T19:59:37.916Z INFO Starting FW update for device Bean(04a3169af315)
2017-04-01T19:59:37.916Z INFO Begin FW @ 1491076778
2017-04-01T19:59:37.917Z INFO Triggered a notification on Identify char
Only way to upload sketch only through OSX GUI uploader
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PunchThrough/bean-sdk-node/issues/7#issuecomment-293247059,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACLYdHQr1grfayqOE3d4_IFeZK5zeLHks5ru3RYgaJpZM4MjNgH
.

Punch Through Tech Support suggested I do the following, and it works much better:
$ cd %AppData%\npm\node_modules\bean-sdk
$ npm install --save --save-exact noble@1.7.0

The problem is apparently that bean-sdk relies on noble 1.7.0 exactly but the dependency in package.json is specified as ^1.7.0 instead of 1.7.0 so the latest noble version (1.8.0) is installed instead.
The fix downgrades bean-sdk's noble install to 1.7.0 and rewrites the dependency so that an update won't accidentally revert the fix.

Yes, with latest update it is possible to program_sketch using CLI, thank you!

I am still running into hangs on linux with program sketch or program firmware

authors: adamwolf estiens evaldsurtans joebowbeer

repo: PunchThrough/bean-sdk-node


text:
fix: Add relates to to the duplicates list

This adds the relates to trailer to the list of trailers we detech
duplicates from, but the root of the problem is that we sometimes insert
a trailer when we don't actually need to, because it's already there.
This also fixes that.
Relates-to: #220

#315

repo: PurpleBooth/git-mit


text:
Return appropriate HTTP status codes on error

This pull request makes sure errors actually return non-OK HTTP status codes. Before, all requests (that didn't cause an actual uncaught exception serverside) returned 200. With this change, they instead return what they should according to the documentation, and as for the undocumented ones according to common sense.
With this pull request, the errors are mapped as following:

Error.NONE - 200 OK
Error.INVALID_CLIENT - 400 Bad request
Error.INVALID_SERVICE - 400 Bad request
Error.INVALID_SECRET - 400 Bad request
Error.DUPLICATE_LISTEN - 409 Conflict
Error.RATE_TOOFAST - 429 Too many requests
Error.SERVICE_NOTFOUND - 404 Not found
Error.ARGUMENT_MISSING - 400 Bad request
Error.INVALID_PUBKEY - 400 Bad request (Though this error is never used.)
Error.CONNECTION_CLOSING - 499 Client closed request (I wasn't sure about this one either, since it also goes unused.)
Error.NO_CHANGES - 400 Bad request

Pretty nice, eh? This also resolves #17.

Nice, I just need to make sure this is reflected in the docs from now on.

Error.CONNECTION_CLOSING WAS used when websockets were  still in the API instead of a connector. I should remove it some time.

authors: Mechazawa obskyr

repo: Pushjet/Pushjet-Server-Api


text:
Windows Phone notification payload

Hey just curious what the Windows Phone notification payload looks like.
iOS looks like
{
    "aps": {
        "sound": "default",
        "alert": "push title"
    },
    u: '{key: value}'   //user data
}

Android looks like
{
    title: "push title"
    userdata: '{key: value}'   //user data
}

Windows Phone looks like
// ???

{
    "content": "message",
    "userdata": "{key: value}",
    "onStart": false
}

authors: sean-hill shaders

repo: Pushwoosh/pushwoosh-sdk-samples


text:
🛑 Home Assistant is down

In 503b115, Home Assistant (https://homeassistant.pxlbuzzard.com) was down:

HTTP code: 502
Response time: 312 ms

Resolved: Home Assistant is back up in e4999c3.

repo: PxlBuzzard/upptime


text:
PDF Redaction

PDF Redaction -
what will change -
We generally find pdfs to contain sensitive information so it is necessary to remove those details. The code will annotate the sensitive informations.
Instructions

Create a new folder for your script and file/folder name should be appropriate.
Create a README.md in your folder for program Instructions
add requirements.txt if needed

Please add/delete options that are not relevant.

[x] Adding New Code
[] Improving Code
[] Improving Documentation
[] Bug Fix

Programming Language

[x] Python

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
Discord server  - https://discord.gg/FXyh2S3
Happy Coding,

I would love to work on this

repo: Py-Contributors/awesomeScripts


text:
dasch cached basis implementation

An implementation of @MikhailRyazanov's basex caching and slicing, for the dasch methods is in my PyAbel fork dasch-cached-memory-basis
This issue provides discussion point on the best PyAbel coding practices.

Implementation
@MikhailRyazanov's clever ideas:
a) caching the basis numpy array, for faster repeat transforms (rather than reading the basis file)
and
b) slicing the basis from a larger basis (cached or file)
Are easy to implement:
a) add global variables _basis = None, as per basex, and a  _method = None to identify the Dasch method, to abel.dasch.py
and
b) add slicing to the cached basis  _basis[:cols, :cols], to extract from any larger basis.
# cache basis
_basis = None
_method = None
   :
_basis = abel.tools.basis.get_bs_cached(method, cols, cols,
                                      basis_dir=basis_dir,
                                      cached_basis=(_basis, _method),
                                      verbose=verbose)
_method = method

get_bs_cached() is common to all the basis methods, and was extracted to abel.tools.basis.py during coding of the abel.dasch.py methods.
abel.tools.basis.py became somewhat untidy when the linbasex method was included, since that method broke the simple method_basis_{cols}_{nbf}.npy naming scheme, as uniqueness required additional variables.  The use of abel.tools.basis.py requires the dasch global variables to be passed to abel.tools.get_bs_cached(), in this fork, as a tuple
if cached_basis is not None and cached_basis[0] is not None:
    _basis, _method = cached_basis
    if _basis.shape[0] >= cols and _method == method:
        if verbose:
            print('Using memory cached basis')
        return _basis
   :
   basis_files = glob.glob(path_to_basis_files)
   for bf in basis_files:
       if int(bf.split('_')[-2]) >= cols:  # relies on file order
           if verbose:
               print("Loading {:s} basis {:s}".format(method, bf))
           D = np.load(bf)
           # trim to size
           return D[:cols, :nbf]

Q1: Given the mess caused by linbasex is it better to return get_bs_cached() into abel.dasch.py, as is the case for abel.basex.py?
Q2: Any alternative suggestions?

Testing (as implemented in my fork)
test code gist
Generates two Dribinski sample quadrants, comparing the transform time for (0) generating the basis, (1) memory cached basis, and (2) re-reading the basis file. Then, for the smaller size quadrant, the transform time for a basis extracted from the larger basis (3) cached, (4) read from file.
Note, that file reading is expensive, for a small image it is better to generate the basis, rather than read it.

python test-dasch.py

Dribinski image quadrant (251, 251) ========================================

(0) Generate basis ------------------------------

A suitable basis for 'three_point' was not found.
A new basis will be generated.
But don't worry, it will be saved to disk for future  use.

Operator matrix saved for later use to,
         ./three_point_basis_251_251.npy
                                                            ... in 15.2 ms

(1) Cached basis ------------------------------

Using memory cached basis
                                                            ... in 0.7 ms

(2) Read basis from file ------------------------------

Loading three_point basis ./three_point_basis_251_251.npy
                                                            ... in 1.3 ms

Dribinski image quadrant (2501, 2501) ========================================

(0) Generate basis ------------------------------

A suitable basis for 'three_point' was not found.
A new basis will be generated.
But don't worry, it will be saved to disk for future  use.

Operator matrix saved for later use to,
         ./three_point_basis_2501_2501.npy
                                                            ... in 1399.4 ms

(1) Cached basis ------------------------------

Using memory cached basis
                                                            ... in 346.2 ms

(2) Read basis from file ------------------------------

Loading three_point basis ./three_point_basis_2501_2501.npy
                                                            ... in 368.7 ms

[remove small size basis file three_point_basis_251_251.npy]

Back to (251, 251) image size ----------------------------------------

(3) Cached from larger basis cache ------------------------------

Using memory cached basis
                                                            ... in 1.1 ms

(4) Read from larger basis file ------------------------------

Loading three_point basis ./three_point_basis_2501_2501.npy
                                                            ... in 20.1 ms

clean up, remove basis file

I was also confused about basex having its own get_bs_basex_cached(), unlike all other methods. Why was it made so?
I think, the simplest solution would be to keep all basis handling within the corresponding methods modules rather than combine them all in one separate module. Especially since different methods might have quite different requirements and approaches. On the other hand, there is some common code (this, however, is true for their ..._transform() methods as well).
We probably should compare how much code is shareable and how much is not.
My basex basis cropping is also more complicated. And currently, with the implementation of n ≠ nbf, I actually want to move from the n, nbf scheme to n, sigma, since it makes more sense to the user (can use the same kind of basis defined by the width sigma for any n and do not bother about calculating nbf, which is used only internally) and simplifies the cropping implementation.

Another question, related to https://github.com/PyAbel/PyAbel/issues/226#issuecomment-423258091: do we want separate caches for each "method" ("basex", "two_point", "onion_peeling", ...), such that they can coexist without evicting each other? Or the idea is to have caching only for repetitive calling of the same method (with constant parameters)?
I have implemented basex cache purging as basex_cleanup(), considering that there will be separate two_point_cleanup(), onion_peeling_cleanup() and so on, akin to basex_transform(), two_point_transform(), onion_peeling_transform... But if we want only one common cache, then it probably should be renamed to just cleanup(). And maybe even moved (with the cache variables) to transform.py?

moved (with the cache variables) to transform.py

That only works for abel.Transform(), direct calls abel.method.method_transform() bypass transform.py.
I think each method should handle its own cache, and perhaps, have abel.basis_purge(method), to purge unwanted basis variables.
@DanHickstein is normally the king of these types of decisions ;-)

Great discussion here!
I'm fine to have each method have it's own cache.
I also like the idea of using your check of the consistency of cropped basis sets as a unit test. You can perhaps simple use very small images in order to make it quick.
In regards to @MikhailRyazanov's point about n, nbf, and sigma: shouldn't each saved basis set be labelled with all three labels? Of course, a certain n and sigma suggests a reasonable nbf, but can't any sigma be selected in principle?

The basis defined in the BASEX article has only one parameter σ, which defines the overall scaling. That is, the spacing between the maxima of ρk and ρk+1 is always σ. In principle, k in (14) can be non-integer, but then its projection (15) is not a finite expansion. So nbf is really uniquely determined by n and sigma (within maybe ±1, depending on its rounding when n/sigma is not an integer).
Also, as I understand, in all Dasch methods nbf = n always, so nbf there is also redundant. And linbasex basis needs more than 2 parameters. I don't think that a common naming scheme, except the {method}_basis_ prefix, can exist, and since now all methods will be handling their basis files internally, it would be natural to allow them to use their own naming conventions.

Completed with PR #232 . Closing.

Great work!

authors: DanHickstein MikhailRyazanov stggh

repo: PyAbel/PyAbel


text:
Compilation failed with M1 macOS, PyO3 0.12, Python 3

🌍 Environment

Your operating system and version: macOS Big Sur 11.1
Your python version: Python 3.8 (system), Python 3.9 (homebrew), Python 3.9 (homebrew, Rosetta)
How did you install python (e.g. apt or pyenv)? Did you use a virtualenv?: brew install, no.
Your Rust version (rustc --version): rustc 1.49.0-beta.4 (877c7cbe1 2020-12-10)
Your PyO3 version: 0.12
Have you tried using latest PyO3 master (replace version = "0.x.y" with git = "https://github.com/PyO3/pyo3")?: no

💥 Reproducing
This happens on my own project, but I can reproduce it with maturin's test-crate

install rust beta with rustup (stable does not yet have darwin aarch64 support)
install python3.9 aarch64 with native homebrew

1. Compile with System python 3.8
git clone https://github.com/PyO3/maturin.git
cd maturin/test-crates/pyo3-pure
cargo build

would produce the following error:
  = note: Undefined symbols for architecture arm64:
            "_PyExc_ValueError", referenced from:
                _$LT$pyo3..exceptions..PyValueError$u20$as$u20$pyo3..type_object..PyTypeInfo$GT$::type_object_raw::h059c73bcf950bd88 in libpyo3-a087e80261990d6e.rlib(pyo3-a087e80261990d6e.pyo3.1al8rrrd-cgu.0.rcgu.o)
            "_PyExc_BaseException", referenced from:
                _$LT$pyo3..exceptions..PyBaseException$u20$as$u20$pyo3..type_object..PyTypeInfo$GT$::type_object_raw::h82828fb355186050 in libpyo3-a087e80261990d6e.rlib(pyo3-a087e80261990d6e.pyo3.1al8rrrd-cgu.0.rcgu.o)
            "_PyList_Append", referenced from:
                pyo3::types::list::PyList::append::_$u7b$$u7b$closure$u7d$$u7d$::h5630ce7dc966791a in libpyo3-a087e80261990d6e.rlib(pyo3-a087e80261990d6e.pyo3.1al8rrrd-cgu.4.rcgu.o)
            "_PyExc_SystemError", referenced from:
                _$LT$pyo3..exceptions..PySystemError$u20$as$u20$pyo3..type_object..PyTypeInfo$GT$::type_object_raw::h76492aefdb4928b0 in libpyo3-a087e80261990d6e.rlib(pyo3-a087e80261990d6e.pyo3.1al8rrrd-cgu.0.rcgu.o)
            "_PyList_New", referenced from:
                pyo3::types::list::PyList::empty::h3e9f2e6039a3ef3a in libpyo3-a087e80261990d6e.rlib(pyo3-a087e80261990d6e.pyo3.1al8rrrd-cgu.4.rcgu.o)
            "_PyErr_PrintEx", referenced from:
                pyo3::err::PyErr::print::h12dca2eb6fa69d90 in libpyo3-a087e80261990d6e.rlib(pyo3-a087e80261990d6e.pyo3.1al8rrrd-cgu.7.rcgu.o)
            "_PyObject_SetAttr", referenced from:

...
...

The python3 binary is from Apple, in universal format with both x86_64 and arm64. file $(which python3) gives /usr/bin/python3: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e]
2. Compile with HomeBrew Python 3.9
basically the same process and same error
git clone https://github.com/PyO3/maturin.git
cd maturin/test-crates/pyo3-pure
PYO3_PYTHON=python3.9 cargo build

file $(which python3.9) output: /opt/homebrew/bin/python3.9: Mach-O 64-bit executable arm64
3. Compile with Rosetta under x86 works fine

As you're using macOS - you would need cargo rustc --release -- -C link-arg=-undefined -C link-arg=dynamic_lookup?
Or otherwise you could try building with maturin develop, which will include these flags for you.

@davidhewitt Thanks for the reply, that is indeed the problem.
I copied my cargo config ~/.cargo/config which contains the fix for x86_64:
[target.x86_64-apple-darwin]
rustflags = [
  "-C", "link-arg=-undefined",
  "-C", "link-arg=dynamic_lookup",
]

Changing to [target.aarch64-apple-darwin] fixes the problem. Perhaps the documentation @ https://pyo3.rs/master/index.html#using-rust-from-python can be updated to include aarch64 for anyone else encountering this issue?

@davidhewitt Oh and maturin develop currently does not work because of platforms crate cannot correctly detect the triplet aarch64-apple-darwin.
$ maturin develop
💥 maturin failed
  Caused by: Could guess the current platform

Ref: https://github.com/RustSec/platforms-crate/blob/master/src/platform.rs
Will open a separate issue to either maturin or platforms.


text:
User Guide: Rewrite parallelism chapter

I took a stab at rewriting the parallelism chapter because it seemed to suggest that you need to release the GIL in order to achieve parallelism within your Rust code and that allow_threads enables running of Python code in parallel. See #640 and #649 for discussion and thanks @Askannz for the nice example which I included.
Also included the previous PR #957 to make the benchmarks more comparable.
Closes #956

Hmm, it looks that we have a problem with travis integration.
https://travis-ci.org/github/PyO3/pyo3/builds/695173811
It looks tests are correctly executed, but Github fails to fetch the result.

Closed and reopened to retrigger CI.

Thanks!

authors: Alexander-N kngwyu


text:
CPLEX: Warning, line 133208941: Name 'x10609872' does not exist.

Dear all,
I am getting several of these warnings when using linopy with PyPSA:
Warning, line 133208941: Name 'x10609872' does not exist.
It looks to me like a constraint or variable, that CPLEX expects is not available? The network is a modified pypsa-eur network, to which I added different system components.
Best,
Georg

Thanks Fabian! After your comment, I wanted to investigate whether this has to do with linopy/PyPSA releases that came after the latest PyPSA-Eur version (0.13), and indeed I managed to solve the issue now by downgrading PyPSA (and thereby linopy) to the lowest version that was mentioned in the environment.yaml.
Don't know if this is even worth following up on, but with the latest version I also got some mentions of repeating rows, which was usually an indicator that the run would fail (for example "Row 'c6164160' repeats.")
I will just leave it here, in case it might be helpful. But it might also just be a result of incompatible packages, so feel free to ignore it, of course :-)

repo: PyPSA/linopy


text:
bug: romanize("ฤดู", "royin")

Description
These words occurred error when using romanize() by royin engine:
ฤดูใบไม้ผลิ
ฤดูร้อน
ฤดูหนาว
ฤดูใบไม้ร่วง
ฤดู
Expected results
no error
Current results
return select_romanize_engine(engine)(text)

File "C:\Users\brigh\anaconda3\envs\RomanDictionary\lib\site-packages\pythainlp\transliterate\royin.py", line 229, in romanize
romanized_words = [_romanize(word) for word in words]
File "C:\Users\brigh\anaconda3\envs\RomanDictionary\lib\site-packages\pythainlp\transliterate\royin.py", line 229, in
romanized_words = [_romanize(word) for word in words]
File "C:\Users\brigh\anaconda3\envs\RomanDictionary\lib\site-packages\pythainlp\transliterate\royin.py", line 213, in _romanize
word = _replace_consonants(word, consonants)
File "C:\Users\brigh\anaconda3\envs\RomanDictionary\lib\site-packages\pythainlp\transliterate\royin.py", line 197, in _replace_consonants
mod_chars.append(_CONSONANTS[consonants[j]][1])
IndexError: list index out of range
Steps to reproduce
romanize("ฤดู", "royin")
PyThaiNLP version
4.0.2
Python version
3.10.12
Operating system and version
windows11
More info
Runned by VSCode, conda environment
Possible solution
No response
Files
No response

@konbraphat51 Hello! It is not bug. romanize(A Thai syllable, "royin") is input a syllable only to get correct. If you want to input a word, you should use romanize(text, engine: str = 'thai2rom').
We will improve our document. Thank you for reporting!

Oh, got it. thank you!

repo: PyThaiNLP/pythainlp


text:
new metric SCC for Images

What does this PR do?
Adds a new metric Spatial Correlation Coefficient for Images
part of #799
Before submitting

[x] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)-Yes
[x] Did you read the contributor guideline, Pull Request section?-Yes
[ ] Did you make sure to update the docs?-No
[ ] Did you write any new necessary tests?-No

PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

Hi @nishant42491, thanks for wanting to contribute.
However, I can only see that you have created a new file. Is that correct?

Hi @nishant42491, thanks for wanting to contribute. However, I can only see that you have created a new file. Is that correct?

yes, that's correct. sorry for the delay as I was trying to understand how to calculate the SCC coefficient as there are not many resources available online to understand the implementation of Laplacian filters. I am working with my college professors to understand more about the SCC metric how ever due to my college exams my progress has been slow. however I will try to speed things up again really sorry for the delay.

Hi @nishant42491, do you have any updates here? :]

Hi @nishant42491, do you have any updates here? :]

yep, I have taken references from andrewkhalels sewar repo containing information about the SCC metric and have created a scc.py  file containing its implementation however  I am not 100 % sure that it's correct as I still don't understand the SCC metric completely. Ill be more than happy to change anything that needs changing. I would love any suggestions on how to proceed further. Thank you a lot for your patience with me  I really appreciate it :].

@SkafteNicki @stancld I have finished creating a functional and class-based interface for the scc metric and they seem to be working properly. I have tested it against the sewar repos SCC metric and my metric is giving me the right outputs. However, I am stuck on implementing the test_scc.py file as I don't exactly know what to write in the tests file. I have tried using the sewar repos scc metric in the tests file but it does not work with batched inputs so i am not sure what to test my metric against. any suggestions on how to move forward will really help me out. Thank you in advance for your help :]

Hi @nishant42491,
I tried to take a stab at finishing this PR. I written tests and added some docs, but the tests fails with assertion when I try to compare against the implementation from sewar. Could you maybe help with getting this PR finished, by providing at least an example how to get this implementation to match the one from sewar.

Hi @nishant42491, I tried to take a stab at finishing this PR. I written tests and added some docs, but the tests fails with assertion when I try to compare against the implementation from sewar. Could you maybe help with getting this PR finished, by providing at least an example how to get this implementation to match the one from sewar.

Hi @nishant42491, I tried to take a stab at finishing this PR. I written tests and added some docs, but the tests fails with assertion when I try to compare against the implementation from sewar. Could you maybe help with getting this PR finished, by providing at least an example how to get this implementation to match the one from sewar.

I think the difference between the two metrics arises because the package in swear has implemented a high pass filter whilst I have not however the difference did not seem significant whilst i was testing the metric

@SkafteNicki  should I try implementing a high pass filter for my metric too to try and make it pass the tests you have written?

@nishant42491 yes, we kind of need the two metrics to produce the same output, so we make sure that this implementation is doing the right thing.
Maybe the reason the tests are failing is that the input is random? did you test with some structured input?

![puppy](https://user-images.githubusercontent.com/79035403/165307101-b9628ea4-bf33-4c70-95c2-f16c83995358.jpeg)
![mud_turtle](https://user-images.githubusercontent.com/79035403/165307128-2da3fc20-14fe-4dc1-9f13-719b9ffd98bb.jpg)
@SkafteNicki I have received outputs 0.079 and 0.080 for 2 images for swear's metric and my metric respectively

will try and implement the high pass filter which should solve the problem. @SkafteNicki  Thnx for the help on the tests  i really appreciate it :]

@nishant42491 is it correct that current differences in implementation is:

The input to sewar should be target, preds whereas your implementation takes in oppesit order preds, target (which is the same as the rest of out codebase)
The input to sewar is expected to be single images of shape [H, W, C] whereas your implementation takes in [B, C, H, W] (so the channel dimension should be moved when we compare)

Just trying to figure out why I cannot get the numbers to match (I know the high pass filter is missing, but it should still be fairly close as to my understanding).

@nishant42491 is it correct that current differences in implementation is:

The input to sewar should be target, preds whereas your implementation takes in oppesit order preds, target (which is the same as the rest of out codebase)
The input to sewar is expected to be single images of shape [H, W, C] whereas your implementation takes in [B, C, H, W] (so the channel dimension should be moved when we compare)

Just trying to figure out why I cannot get the numbers to match (I know the high pass filter is missing, but it should still be fairly close as to my understanding).

yep, those are the differences between the sewar implementation and the metric's implementation. for the inputs, I have tested
In both metrics  the difference is slight generally up to the 3rd decimal place.

@nishant42491 is it correct that current differences in implementation is:

The input to sewar should be target, preds whereas your implementation takes in oppesit order preds, target (which is the same as the rest of out codebase)
The input to sewar is expected to be single images of shape [H, W, C] whereas your implementation takes in [B, C, H, W] (so the channel dimension should be moved when we compare)

Just trying to figure out why I cannot get the numbers to match (I know the high pass filter is missing, but it should still be fairly close as to my understanding).

yep, those are the differences between the sewar implementation and the metric's implementation. for the inputs, I have tested In both metrics the difference is slight generally up to the 3rd decimal place.

one more thing is that my default kernel size is 9, whilst sewras kernel size is 8 so you have to set the sewar metrics kernel size to 9 explicitly   to get similar results

@nishant42491 tried changing the implementation based on what you have told me but cannot get it to match. Below is shown the wrapped reference implementation from sewar that should do everything correctly:

summarizes a batch of input
flips the input
permute the dimensions
changes the window size to 9

from sewar.full_ref import scc

def _reference_scc(preds, target, reduction):
    val = 0.0
    for p, t in zip(preds, target):
        val += scc(t.permute(1, 2, 0).numpy(), p.permute(1, 2, 0).numpy(), ws=9)
    val = val if reduction == "sum" else val / preds.shape[0]
    return val

from torchmetrics.functional import spatial_correlation_coefficient

import torch
_ = torch.manual_seed(42)

BATCH_SIZE = 10
CHANNELS = 3
SIZE = 100
preds = torch.randint(0, 255, (BATCH_SIZE, CHANNELS, SIZE, SIZE)).float()
target = torch.randint(0, 255, (BATCH_SIZE, CHANNELS, SIZE, SIZE)).float()

print(spatial_correlation_coefficient(preds, target, reduction='sum').item())
print(_reference_scc(preds, target, reduction='sum'))

can you find what I do wrong?

Your Implementation seems correct. I'm not quite sure why the outputs differ.

authors: SkafteNicki nishant42491 stancld

repo: PyTorchLightning/metrics