text:
Could not cleanly terminate all actors after devise:install

Hi,
Not sure what's causing this, but just done rails g devise:install on a Rails 5.0.0.1 repository (using devise 4.2.0) I'm working on, and, in addition to the usual output regarding needing to set up mailer options etc, I get the following output:
E, [2016-08-24T17:44:35.246531 #56232] ERROR -- : Couldn't cleanly terminate all actors in 2 seconds!

Not sure if this should be cause for concern...

@CharlieHawker that output is generated by Celluloid - please see celluloid/celluloid#696 and other related tickets on t eh celluloid repo.

authors: CharlieHawker lucasmazza

repo: plataformatec/devise


text:
feat: Do not fail init when directory only contains hidden files.

Fixes #3449.

Init now aborts only when a file it wants to write already exists.

source: gharchive/pull-request

repo: platformatic/platformatic

license_type: permissive

license_source: github-api


text:
Can't click buttons in status bar during tooltip transition.

Keyword is during.
When attempting to click a button, such as New Terminal, Close All or switching to a different open terminal. I must first wait until the fade in transition on the tooltip has finished, meaning if the mouse release event occurs before this the button is not clicked.
The buttons work fine when I disable the transition from Developer Tools.

Well damn, I think it might be from atom-material-ui by silvestreh.

I've been experiencing the same issue with atom-material-ui. How did you disable the transition from devtools?

Came here with the same issue, thanks!

Please retest again with platformio-atom-ide-terminal 2.9.0 is using node-pty-prebuilt instead unmaintained and outdated pty.js

Please retest again with platformio-atom-ide-terminal 2.9.0 which since f64888d is using node-pty-prebuilt instead unmaintained and outdated pty.js. This is good news for stability and compatibility.
if issues persist, please open a new ticket with requested information.
Thx =)

source: gharchive/issue

authors: QuasimodoNZ erwstout kbrgl the-j0k3r

repo: platformio/platformio-atom-ide-terminal

license: MIT


text:
Automatic update of various runtimes in ify command ?

I just test this morning the envVar automatic generation on runtime NodeJs 20 and it works, but not yet for older version (used in upsun ify command).
My question are:
how could we make sure that {vendor} ify command is using the latest runtime versions?
Is there a way to add a variable to update once the runtime version (depending of its release) and then it's available in the generated Yaml?

I think we should ensure that ify generates for the latest version of NodeJS

This is related to #80 as well.

authors: akalipetis flovntp lolautruche

repo: platformsh/platformify


text:
Use gamma textures format (WebGl2)

Currently, when the engine samples a texture stored in gamma space, it uses gammaCorrectInput function to bring the values to linear space for lighting, costing us a pow instruction per sample, and also bilinear interpolation when sampling takes place in sRGB space, which is slightly incorrect.
On Webgl2 devices, and also on Webgl1 devices with EXT_sRGB (https://developer.mozilla.org/en-US/docs/Web/API/EXT_sRGB), we could use hardware support for sRGB textures.
See here: (http://www.realtimerendering.com/blog/webgl-2-new-features/)
The sRGB texture will be automatically converted to linear space when being fetched in the shader.
The disadvantage here is that the texture needs to be marked as sRGB when we create a WebGl texture, meaning likely that we would need to expose a texture import setting in the Editor to allow textures to be marked as sRGB (diffuse and similar texture need sRGB, normal map, roughness and others don't as they are in linear space).

Our gamma space textures also currently have their mipmaps generated in gamma space, which is wrong. Marking texture sRGB will result in linear-space generated mipmaps.
We also need to address compressed textures in the editor. Textures are assumed gamma space (and converted to linear for mipmaps) - so linear-space textures currently have the inverse mipmap problem. (Though I believe normal maps are correctly handled).

Note that ideally we'd use sRGB framebuffers as well, which automatically encode linear -> sRGB on write.
https://hackmd.io/@jgilbert/sRGB-WebGL

Closing this as this is now supported by the engine v2.1.0. Support to the Editor is coming soon too.

authors: mvaligursky slimbuck

repo: playcanvas/engine


text:
Can't build stable playcanvas engine 0.190.2

Error while trying to build "stable" branch with last commit "[RELEASE] v0.190.2".
D:\dev\playcanvas-engine\build>node build.js
fs.js:549
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open 'D:\dev\playcanvas-engine\src\core\core.js
..\src\polyfill\request-animation-frame.js
..\src\polyfill\string.js
..\src\polyfill\fullscreen.js
..\src\core\color.js
..\src\core\guid.js
..\src\core\time.js
..\src\core\uri.js
..\src\core\log.js
..\src\core\inheritance.js
..\src\core\path.js
..\src\core\string.js
..\src\core\debug.js
..\src\core\events.js
..\src\core\tags.js
..\src\core\object-pool.js
..\src\math\math.js
..\src\math\vec2.js
..\src\math\vec3.js
..\src\math\vec4.js
..\src\math\mat3.js
..\src\math\mat4.js
..\src\math\quat.js
..\src\math\curve.js
..\src\math\curve-set.js
..\src\shape\bounding-box.js
..\src\shape\bounding-sphere.js
..\src\shape\frustum.js
..\src\shape\plane.js
..\src\shape\ray.js
..\src\graphics\graphics.js
..\src\graphics\scope-id.js
..\src\graphics\scope-space.js
..\src\graphics\version.js
..\src\graphics\versioned-object.js
..\src\graphics\vertex-iterator.js
..\src\graphics\vertex-format.js
..\src\graphics\vertex-buffer.js
..\src\graphics\index-buffer.js
..\src\graphics\texture.js
..\src\graphics\render-target.js
..\src\graphics\shader-input.js
..\src\graphics\shader.js
..\src\graphics\program-library.js
..\src\graphics\device.js
..\src\graphics\chunks.js
..\src\graphics\simple-post-effect.js
..\src\graphics\prefilter-cubemap.js
..\src\graphics\paraboloid.js
..\src\graphics\program-lib\chunks\generated-shader-chunks.js
..\src\graphics\program-lib\program-lib.js
..\src\graphics\program-lib\basic.js
..\src\graphics\program-lib\depth.js
..\src\graphics\program-lib\depth-rgba.js
..\src\graphics\program-lib\particle.js
..\src\graphics\program-lib\standard.js
..\src\graphics\program-lib\pick.js
..\src\graphics\program-lib\skybox.js
..\src\graphics\post-effect.js
..\src\scene\scene.js
..\src\scene\forward-renderer.js
..\src\scene\graph-node.js
..\src\scene\camera.js
..\src\scene\light.js
..\src\scene\material.js
..\src\scene\basic-material.js
..\src\scene\depth-material.js
..\src\scene\standard-material.js
..\src\scene\mesh.js
..\src\scene\skin.js
..\src\scene\skin-partition.js
..\src\scene\model.js
..\src\scene\particle-emitter.js
..\src\scene\pick.js
..\src\scene\procedural.js
..\src\anim\animation.js
..\src\anim\skeleton.js
..\src\sound\manager.js
..\src\sound\sound.js
..\src\sound\listener.js
..\src\sound\instance.js
..\src\sound\instance3d.js
..\src\audio\channel.js
..\src\audio\channel3d.js
..\src\input\input.js
..\src\input\mouse.js
..\src\input\keyboard.js
..\src\input\game-pads.js
..\src\input\touch.js
..\src\input\controller.js
..\src\net\http.js
..\src\script\script-registry.js
..\src\script\script.js
..\src\framework\script.js
..\src\framework\application.js
..\src\framework\stats.js
..\src\framework\components\registry.js
..\src\framework\components\system.js
..\src\framework\components\component.js
..\src\framework\components\data.js
..\src\framework\components\animation\component.js
..\src\framework\components\animation\system.js
..\src\framework\components\animation\data.js
..\src\framework\components\model\system.js
..\src\framework\components\model\component.js
..\src\framework\components\model\data.js
..\src\framework\components\camera\system.js
..\src\framework\components\camera\component.js
..\src\framework\components\camera\data.js
..\src\framework\components\camera\post-effect-queue.js
..\src\framework\components\light\system.js
..\src\framework\components\light\component.js
..\src\framework\components\light\data.js
..\src\framework\components\script\system.js
..\src\framework\components\script\component.js
..\src\framework\components\script\data.js
..\src\framework\components\script-legacy\system.js
..\src\framework\components\script-legacy\component.js
..\src\framework\components\script-legacy\data.js
..\src\framework\components\sound\constants.js
..\src\framework\components\sound\slot.js
..\src\framework\components\sound\system.js
..\src\framework\components\sound\component.js
..\src\framework\components\sound\data.js
..\src\framework\components\audio-source\system.js
..\src\framework\components\audio-source\component.js
..\src\framework\components\audio-source\data.js
..\src\framework\components\audio-listener\system.js
..\src\framework\components\audio-listener\component.js
..\src\framework\components\audio-listener\data.js
..\src\framework\components\rigid-body\constants.js
..\src\framework\components\rigid-body\system.js
..\src\framework\components\rigid-body\component.js
..\src\framework\components\rigid-body\data.js
..\src\framework\components\collision\trigger.js
..\src\framework\components\collision\system.js
..\src\framework\components\collision\component.js
..\src\framework\components\collision\data.js
..\src\framework\components\particle-system\system.js
..\src\framework\components\particle-system\component.js
..\src\framework\components\particle-system\data.js
..\src\framework\components\text\font.js
..\src\framework\components\text\system.js
..\src\framework\components\text\component.js
..\src\framework\components\text\data.js
..\src\framework\components\zone\system.js
..\src\framework\components\zone\component.js
..\src\framework\components\zone\data.js
..\src\framework\entity.js
..\src\resources\loader.js
..\src\resources\animation.js
..\src\resources\audio.js
..\src\resources\cubemap.js
..\src\resources\json.js
..\src\resources\material.js
..\src\resources\model.js
..\src\resources\script.js
..\src\resources\text.js
..\src\resources\binary.js
..\src\resources\texture.js
..\src\resources\html.js
..\src\resources\css.js
..\src\resources\shader.js
..\src\resources\scene.js
..\src\resources\hierarchy.js
..\src\resources\scene-settings.js
..\src\resources\folder.js
..\src\resources\font.js
..\src\resources\parser\json-model.js
..\src\resources\parser\scene.js
..\src\asset\asset.js
..\src\asset\asset-registry.js
..\src\backwards-compatibility.js
..\src\scene\immediate.js
..\src\scene\lightmapper.js'
    at Error (native)
    at Object.fs.openSync (fs.js:549:18)
    at Object.fs.readFileSync (fs.js:397:15)
    at D:\dev\playcanvas-engine\build\build.js:174:25
    at Array.forEach (native)
    at preprocess (D:\dev\playcanvas-engine\build\build.js:170:18)
    at D:\dev\playcanvas-engine\build\build.js:236:25
    at D:\dev\playcanvas-engine\build\build.js:127:9
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)

I've installed all dependencies including:

node.js 4.4.7 (x64)
Java 8 Update 101

Found the issue! Please see PR #710


text:
Fixed undefined script error

Fixed an error where a script's update method would be called even after the script component was destroyed
#1100

Thanks for investigating this, @sethgillett! @daredevildave, @vkalpias - what do you think? This is basically happening because the number of script components to update is cached and while the for loop executes, 1 or more script components can be removed. To fix the original reported bug, you can just not cache scripts.length and things seem fine. But is this or what's submitted here the 'right thing' to do?

Hi @sethgillett,
Can you please complete the Contributor License Agreement so that I can merge your changes: https://docs.google.com/a/playcanvas.com/forms/d/e/1FAIpQLSfG9XHIgdapCBkvwxbXow592Y5NFPEKD5TM-TyWOmbaCbLeHA/viewform
Thanks

If the length is changing after removing a component during the loop, both solutions of checking script or not caching the length are not enough.
In both cases it would avoid the exception but one component could be skipped.
For example  [A, B, C, D] while the loop is doing the update of B (so the index is 1) and B is removed, on next loop the index will be 2 and the array will be [A, C, D]. It means the from B the code will jump to D skipping C.

Yes @mcmorry you're right - I noticed this myself. For the case you describe, reversing the for loop should solve the problem, no? i.e.:
for(var i = scripts.length - 1; i >=0; i--) {

We can't reverse the for loop order - the order of the update calls need to happen in the same order as the scripts array.

One option could be to queue the deletion of script components and execute the deletion after the update or the postUpdate.

Yep, that could work.

@daredevildave I have completed the agreement.

Closing this because it has just been fixed in this PR: https://github.com/playcanvas/engine/pull/1181

authors: daredevildave mcmorry sethgillett vkalpias willeastcott


text:
🛑 Treatmentbank is down

In 25b618e, Treatmentbank (https://tb.plazi.org/GgServer/search?fullText.ftQuery=lepus&fullText.matchMode=prefix&taxonomicName.taxonomicName=&taxonomicName.isNomenclature=true&taxonomicName.exactMatch=true&taxonomicName.order=&taxonomicName.family=&taxonomicName.genus=&taxonomicName.species=&BibMetaData.docAuthor=&BibMetaData.docDate=&BibMetaData.docTitle=&BibMetaData.docOrigin=&BibMetaData.part=&BibMetaData.pageNumber=&BibMetaData.extId=&materialsCitation.location=&materialsCitation.country=&materialsCitation.stateProvince=&materialsCitation.typeStatus=All+Types&materialsCitation.collectionCode=&materialsCitation.specimenCode=&materialsCitation.LSID=&materialsCitation.longitude=&materialsCitation.latitude=&materialsCitation.degreeCircle=1&materialsCitation.elevation=&materialsCitation.elevationCircle=100&indexName=0&subIndexName=0&minSubResultSize=0) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Treatmentbank is back up in ac74d19 after 6 minutes.

repo: plazi/monitoring


text:
configure : WORNING : unrecongnized options: --with-multilib-generator

when I execute the "./configure ...." command, it shows "configure : WORNING : unrecongnized options: --with-multilib-generator",      and it it cant generate it multilib.

Hi @Jeremy-Jia
There are dozens scripts in the repo. Would you like to share your build env and the repo/sript you are building/using?

Seems that the issue is irrelevant with riscv-ci. close it.

authors: Jeremy-Jia lazyparser

repo: plctlab/riscv-ci


text:
Folders Missing

Hello
after the first cache process is done
"ANIME" - has 84 folders but in reality, it is having 267 folders
please look into this

Please provide more info:

What OS are you using? (e.g. Ubuntu 18.04)
Which Plexdrive version are you using?

Also did the missing folders have special or asian characters in them?
Does the problem go away, if you rename ~/.plexdrive/ to cache.bolt.bak and restart plexdrive?

Using
OS- Debian 9.13
Plexdrive version - 5.1.0
The folders don't have asian characters in then
"Does the problem go away, if you rename ~/.plexdrive/ to cache.bolt.bak and restart plexdrive?"
Haven't tried this

Sorry, there was a typo, I meant to write "if you rename ~/.plexdrive/cache.bolt to cache.bolt.bak".

haven't tried it but will try and let you know

renamed and got this
restarted plex drive
will have to see how it turns out

nope it's not working its not going away

Do you get anything interesting in the logs, if you rename the cache.bolt file and restart plexdrive with the -v 3 flag?
Does ist always show the same incomplete list of files or does it change when you rebuild the cache by renaming or removing cache.bolt?

yup its showing the same incomplete files

Do you get any of these errors, after removing the cache.bolt and restarting plexdrive with -v 3?

"Could not get changes"
"Ignoring change type"
"Could not map Google Drive file"

Everything that looks suspicious in the logs between the lines "First cache build process started..." and "First cache build process finished!" will be usefull for debugging.

Hello, I have the same problem, I tried what you mentioned and it didn't work, everything is fine until this appears in the console, it stops updating, I have other folders where all the files appear, only the anime one shows up 311 and there are more than 800 folders

repo: plexdrive/plexdrive


text:
Add a sample broker definition to https://plexsystems.github.io/rabbit-viz/

Add some sample configuration so that new users can understand better the value of this tool.
I opened the page and could not find a sample configuration or a screenshot.

Thanks for the idea @luissantos! This is a great idea that would improve the immediate understanding of the tool and should be fairly easy to implement.

I can take this one on if nobody else is interested.

The implementation of this that I'm putting together is fairly simple, but should demonstrate the basics. The sample definition looks like this:
{
  "vhosts": [{
    "name": "logs"
  }],
  "policies": [{
    "vhost": "logs",
    "name": "logs",
    "pattern": ".*",
    "apply-to": "all",
    "definition": {
      "ha-mode": "all",
      "ha-sync-mode": "manual"
    },
    "priority": 0
  }],
  "queues": [{
    "name": "log",
    "vhost": "logs",
    "durable": true,
    "auto_delete": false,
    "arguments": {}
  }, {
    "name": "critical",
    "vhost": "logs",
    "durable": true,
    "auto_delete": false,
    "arguments": {}
  }, {
    "name": "alert",
    "vhost": "logs",
    "durable": true,
    "auto_delete": false,
    "arguments": {}
  }],
  "exchanges": [{
    "name": "logs",
    "vhost": "logs",
    "type": "topic",
    "durable": true,
    "auto_delete": false,
    "internal": false,
    "arguments": {}
  }],
  "bindings": [{
    "source": "logs",
    "vhost": "logs",
    "destination": "log",
    "destination_type": "queue",
    "routing_key": "log.*",
    "arguments": {}
  }, {
    "source": "logs",
    "vhost": "logs",
    "destination": "critical",
    "destination_type": "queue",
    "routing_key": "*.critical",
    "arguments": {}
  }, {
    "source": "logs",
    "vhost": "logs",
    "destination": "alert",
    "destination_type": "queue",
    "routing_key": "alert.*",
    "arguments": {}
  }]
}

This produces a graph like this:

This feels like a sufficient sample, without going full sample repository a la ARMVIZ, but I'm open to concerns/suggestions with this sample.

I think it's a good enough start and better than we have right now (which is nada).

Example definition has been implemented and deployed to the gh-pages site.

authors: jpreese luissantos numo16

repo: plexsystems/rabbit-viz


text:
(feat):Put default alt as description than image title, because this is the most probably scenario

With this change editors, will have the alt option already set to the description or title of the image, because this is the most probably scenario.

i think to be consistent, it has to be data.alt, like here
https://github.com/plone/volto/blob/f0284f14742fcdeddfc9f6735c1fcad81f20099d/src/components/manage/Blocks/Image/View.jsx#L80
I also request, for accessibility, if it's possible to set alt attribute as <img alt="" ../> when alt prop is empty, and not as  because for screen readers and accessibility it's not correct the second way.

repo: plone/volto


text:
Custom ringtone sounds playing when they shouldn't

Issue: the custom mp3 file I have set for incoming calls plays twice, once at the proper initial call and again when declining the call.
Steps to recreate:

Join a group DM with at least 3 people.
Have one person call the group. The correct custom ringtone will play.
Decline the group call and the custom ringtone will play again without stopping.

Notes:
It may play the custom ringtone the second time an additional time for each person in the call. I've tested several times and it sounds like its possible, but I can't tell as, if there are multiple, they are playing exactly on top of each other with a few milliseconds of difference.
I have three custom ringtones set: New Chatmessage, Incoming Call, Outgoing Call

wierd, will investigate in ~2 hours

authors: ADoesGit YangHusurianto

repo: ploogins/ringtoner


text:
%sql produces an error with a leading space and -

What happens?
When a space precedes -, as in a numerical operation like something * -1 , jupysql incorrectly parses the - to indicate a switch operator.
I presume this is the same root issue as #918, but this particular edge case was not addressed in #938

To Reproduce
Run:
%sql select 5 * -1;

OS:
Any
JupySQL Version:
0.10.4
Full Name:
Maciej Bukczynski
Affiliation:
Darkhorse Analytics

hi @maciejb, thanks for reporting this. we improved the SQL parsing in 0.10.4 but I just confirmed the edge case you're reporting. as a temporary workaround, you can remove the trailing ;
(jupysql) eduardo@macbookair dev/jupysql » ipython
Python 3.10.12 (main, Jul  5 2023, 15:02:25) [Clang 14.0.6 ]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.17.2 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import sql; sql.__version__
Out[1]: '0.10.4'

In [2]: %load_ext sql
<IPython.core.display.HTML object>

In [3]: %sql duckdb://
Connecting to 'duckdb://'

In [4]: %sql select 5 * -1;
UsageError: unrecognized arguments: -1;

In [5]: %sql select 5 * -1
Running query in 'duckdb://'
Out[5]:
+----------+
| (5 * -1) |
+----------+
|    -5    |
+----------+

In [6]:

@bryannho this is another edge case of the PR you recently worked on. seems like an easy fix so please tackle it

authors: edublancas maciejb

repo: ploomber/jupysql


text:
status code: undefined

I'm testing Mozaik with 2 different Jenkins, both having the rest json enabled and exposing data to my jenkins user.
I'm getting a status code: undefined error on one of them.
Before I dig inside, I was wondering:

is there a particular jenkins version requirement?
do the client works on untrusted HTTPS connection?

Thank you.

Didn't had the opportunity to test a lot of jenkins versions, the only thing which didn't worked with older jenkins versions was the pipeline API? which is not used for now.
Not sure for the untrusted connection, you should try to run the Mozaïk backend with this env var NODE_TLS_REJECT_UNAUTHORIZED=0or set a custom certificate authority thanks to the recently merged PR from @klippx https://github.com/plouc/mozaik-ext-jenkins/pull/11.

Worked! This could be added to documentation BTW.
Thank you @plouc

authors: plouc tomav

repo: plouc/mozaik-ext-jenkins


text:
Add wrong amount window

Game goes to the state MESSAGE when wrong amount (too big or negative) is passed.

Resolve #7

repo: plpabla/dealg


text:
🛑 Dick Pluim.com is down

In 96bb08c, Dick Pluim.com (https://dickpluim.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Dick Pluim.com is back up in dd94c45 after 10 minutes.


text:
🛑 Dick Pluim.com is down

In e2fd9ac, Dick Pluim.com (https://dickpluim.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Dick Pluim.com is back up in 7d0a288 after 11 minutes.


text:
🛑 KCG is down

In 64a0ad9, KCG (https://kunstrijclubgroningen.nl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: KCG is back up in eae6c40 after 9 minutes.


text:
🛑 Dick Pluim.com is down

In a7504c8, Dick Pluim.com (https://dickpluim.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Dick Pluim.com is back up in 2edbe84 after 13 minutes.


text:
🛑 My Grafana dashboard is down

In a3ac3cf, My Grafana dashboard (https://$UPPTIME_GRAFANA) was down:

HTTP code: 0
Response time: 0 ms

Resolved: My Grafana dashboard is back up in 2d38a2e.


text:
Fix/open overlay on focus

What You're Solving
Make keyboard nav better on cards.  What you focus on in overlay will make the overlay visible (analogous to the overlay mouse over currently)
Design Decisions

Use :focus-within because we don't control the contents
But :focus-within not supported in IE/Edge, so js polyfill, which feels sad

How to Verify

New combo story with hidden overlay by default.  Click in storybook space and tab around.  Stuff should appear!

Hey @danethurber , would you mind giving this another look?

repo: pluralsight/design-system


text:
AppRaven 2.0 TestFlight

Hi! I am the developer of AppRaven, a price tracker and app discovery network for iOS with over 100k registered users. I would love to share a link to the TestFlight of AppRaven 2.0, the biggest update yet! Could it be featured on your site?
https://testflight.apple.com/join/8uVQrfHu

done

authors: Agnakaraara pluwen

repo: pluwen/awesome-testflight-link


text:
OpenSSL & please trust the rootCA.crt ???

rootCA.key

error

E:\github\Roles>npm start

> @ start E:\github\Roles
> dora --plugins "proxy,webpack,webpack-hmr"

          proxy: load rule from proxy.config.js
(node:9032) DeprecationWarning: 'GLOBAL' is deprecated, use 'global'
          proxy: listened on 8989
temp certs cleared
1/3 build modulesWARNING: can't open config file: C:/OpenSSL/openssl.cnf
Generating RSA private key, 2048 bit long modulus
.............+++
...................................................+++
e is 65537 (0x10001)
WARNING: can't open config file: C:/OpenSSL/openssl.cnf
Unable to load config info from C:/OpenSSL/openssl.cnf
=============
rootCA generated at :
C:\Users\Admin\.anyproxy_certs
=============
rootCA generated
please trust the rootCA.crt in C:\Users\Admin\.anyproxy_certs\
or you may get it via anyproxy webinterface
 1691/1691 build modules
webpack: bundle build is now finished.

what's wrong with this?

Uncaught ReferenceError: webpackJsonp is not defined ???

开发使用npm run dev吧，start命令行暂时没有用

Thanks, it works, now!

    "scripts": {
        "dev": "dora --plugins \"webpack?config=conf/webpack.config.js&publicPath=/,webpack-hmr,browser-history?index=/src/index.html\"",
        "build-dev": "atool-build --config conf/webpack.config.js --publicPath /",
        "build-staging": "atool-build --config conf/webpack.config.staging.js --publicPath /",
        "build-release": "atool-build --config conf/webpack.config.release.js --publicPath /",
        "start": "dora --plugins \"proxy,webpack,webpack-hmr\"",
        "lint": "eslint --fix --ext .js,.jsx src/components/layout"
    },

Enhancement wanted

Please, add auto open default browser on http://localhost:8000/, instead of just print some info on the console, just like react-create-app/ ng2-cli did!

npm scripts & auto open default browser & run multi commands

just using the following npm script to replace the old one.

"start": "start http://localhost:8000 && npm run dev",
<del>"start": "dora --plugins \"proxy,webpack,webpack-hmr\"",</del>

for more info, please look into the below refs links!

npm-run-all & concurrently

https://www.npmjs.com/package/concurrently
https://www.npmjs.com/package/npm-run-all

license: mit

license_source: bigquery


text:
🛑 Higher Mind Healing is down

In 67c8e4d, Higher Mind Healing (https://highermindhealing.net/) was down:

HTTP code: 503
Response time: 19311 ms

Resolved: Higher Mind Healing is back up in 8a87129 after 5 minutes.

repo: pmjustin/pmuptime


text:
🛑 Healing Vulvodynia is down

In 8220965, Healing Vulvodynia (https://healingvulvodynia.com/) was down:

HTTP code: 503
Response time: 224 ms

Resolved: Healing Vulvodynia is back up in 17fdb6e after 16 minutes.


text:
New Sample reorder expand items board format

Q
A

Bug fix?
no

New sample?
yes

Related issues?

What's in this Pull Request?
This sample allow users to manage cards order in Board Views and also allow to expand and collapse images based on url or iconName option.
This sample has option "Move to Top" that allows to manage cards to top of board view as way to rearrange card positions.
Guidance
Thanks for your contribution! Sharing is caring.

WOO WOO!!! 👍👍

authors: PopWarner aaclage

repo: pnp/List-Formatting


text:
Remove-PNPPage -Recycle Parameter not found

Using this against SharePoint Online:
$page = Get-PnPPage -Identity "help.aspx"
Remove-PnPPage -Identity $page -Recycle
Error Thrown: Remove-PnPPage : A parameter cannot be found that matches parameter name 'Recycle'.
However, the -Recycle Parameter works fine with Remove-PNPFile.

Please dont delete the Issue template , makes it very difficult for us to understand it.
About this command, please use the latest PnP PowerShell nightly build, we added it couple of days back, so it is not available in the major version.
You can install the nightly build by following the docs here:
https://pnp.github.io/powershell/articles/installation.html

authors: adidelot gautamdsheth

repo: pnp/powershell


text:
[BUG] Export-PnPListToSiteTemplate doesn't export token for default RoleDefinitions

Reporting an Issue or Missing Feature
When I export a list with custom permissions no token for default RoleDefinition is set for the RoleDefinition attribute
          <pnp:Security>
            <pnp:BreakRoleInheritance CopyRoleAssignments="false" ClearSubscopes="false">
              <pnp:RoleAssignment Principal="{associatedownergroupid}" RoleDefinition="Lezen" />
            </pnp:BreakRoleInheritance>
          </pnp:Security>

Expected behavior
When I export the list I want to get the token for default RoleDefinition. See below
          <pnp:Security>
            <pnp:BreakRoleInheritance CopyRoleAssignments="false" ClearSubscopes="false">
              <pnp:RoleAssignment Principal="{associatedownergroupid}" RoleDefinition="{roledefinition:Reader}" />
            </pnp:BreakRoleInheritance>
          </pnp:Security>

Actual behavior
When I export a list with custom permissions no token for default RoleDefinition is set for the RoleDefinition attribute
          <pnp:Security>
            <pnp:BreakRoleInheritance CopyRoleAssignments="false" ClearSubscopes="false">
              <pnp:RoleAssignment Principal="{associatedownergroupid}" RoleDefinition="Lezen" />
            </pnp:BreakRoleInheritance>
          </pnp:Security>

Steps to reproduce behavior
Run the Export-PnPListToSiteTemplate cmdlet on a list with custom permissions with built in RoleDefinition
What is the version of the Cmdlet module you are running?
2.4.0
Which operating system/environment are you running PnP PowerShell on?

[x] Windows
[ ] Linux
[ ] MacOS
[ ] Azure Cloud Shell
[ ] Azure Functions
[ ] Other : please specify

I reproduced this behaviour, but it's not clear to me why this is not working as expected. I created a new SharePoint Online list, broke the permissions inheritance on it. Run the Export-PnPListToSiteTemplate cmdlet and below is the response i get on the screen.
          <pnp:Security>             <pnp:BreakRoleInheritance CopyRoleAssignments="false" ClearSubscopes="false">               <pnp:RoleAssignment Principal="{associatedownergroupid}" RoleDefinition="Full Control" />               <pnp:RoleAssignment Principal="{associatedvisitorgroupid}" RoleDefinition="Read" />               <pnp:RoleAssignment Principal="{associatedmembergroupid}" RoleDefinition="Edit" />             </pnp:BreakRoleInheritance>           </pnp:Security>
I also created a custom permission level named "CustomPermissionLevel" and the response is the following:
'          pnp:Security
<pnp:BreakRoleInheritance CopyRoleAssignments="false" ClearSubscopes="false">
<pnp:RoleAssignment Principal="{associatedownergroupid}" RoleDefinition="Full Control" />
<pnp:RoleAssignment Principal="{associatedvisitorgroupid}" RoleDefinition="CustomPermissionLevel" />
<pnp:RoleAssignment Principal="{associatedmembergroupid}" RoleDefinition="Edit" />
</pnp:BreakRoleInheritance>
</pnp:Security>'
Is it possible to provide some more details what you are trying to do?

I want to be able to run my template on a English site. The definition "Lezen" is not recognized then because its Dutch


text:
Submit graph API scripts

Hi folks,
I would like to submit 2 types of scripts

Graph API scripts that use URI strings with Invoke-RestMethod to get data.
EXO module PowerShell scripts.
Can I contribute to the script-sample library?
Thanks

Hi @oliveir3 yes, we support those script types. You might be the first EXO one but that's ok I can make adjustments.
Thank you 🙏

Closing as low activity, however if you would like to contribute please let me know.

repo: pnp/script-samples


text:
Arabic local missing for resource "PropertyControlStrings"

Hello,
it appears that the localization data is missing for Arabic language. Is this possible to have or plan it in next release please ?
Category

[x] Enhancement
[x] Bug
[ ] Question

Version
version of the library: [3.6.0]
Expected / Desired Behavior / Question
ar-sa.js shipped in package -> dist folder
Observed Behavior
Error - [webpack] 'dist':
The selected locale (ar-sa) is not present in the localized data for resource "PropertyControlStrings".
Steps to Reproduce
In the built solution the src/loc/ar-sa.js ressource file is present
then
gulp serve --locale=ar-sa
Thanks!

Hello @milanholemans,
It is pushed. Let me know if additional steps are required.
Bye

Hi @JeanNetryValere, looks good!
Now we have to wait for this PR to be reviewed and completed. ☺

authors: JeanNetryValere milanholemans

repo: pnp/sp-dev-fx-property-controls


text:
Child processes outlive their parent

I'm having an issue when the main process / thread is killed (keyboard interrupt), the timeout_decorator child processes don't die with it.  I have to manually kill the processes so I can restart my application properly.  Is there a way to fix this?  Thanks

can You please provide a minimal example,
type of operating system, and python persion
bitranox

Here is an example of code similar to what I"m running.  However, I'm not sure this code exhibits the behavior of leaving child processes open.  They seem to close fine.  But my real program function is a lot more complex.  Running the latest Ubuntu and Python 3.8
import time
import asyncio
import timeout_decorator
import threading

class TimesUP:
    pass

@timeout_decorator.timeout(5, use_signals=False)
def timedtest(threadnum):
    i = 1
    while True:
        time.sleep(1)
        print(f"Thread {threadnum}: {i} seconds have passed")
        i += 1

def mytest(threadnum):
    print(f"Start {threadnum}")
    loop = asyncio.new_event_loop()
    asyncio.set_event_loop(loop)
    while True:
        try:
            timedtest(threadnum)
        except timeout_decorator.TimeoutError:
                print("****** Timeout on thread %d ******" % threadnum)
    loop.close()

def consume_create():
    for i in range(5):
        jobthread = threading.Thread(
            name="ConsumerCreateThread-%d" % i,
            target=mytest,
            args=(i,),
            daemon=True,
        )
        jobthread.daemon = True
        jobthread.start()

if __name__ == '__main__':
    createthread = threading.Thread(
        name="ConsumerThread-Create",
        target=consume_create,
        daemon=True,
    )
    createthread.daemon = True
    createthread.start()
    while True:
        pass

I'm running into a secondary issue though with timeout-decorator that might be unworkable in my situation.  My threads share objects from the parent class for storing variables, such as statistics.  Currently using timeout-decorator, none of that is getting updated properly.  I assume this is because the multiprocessing does not share memory and thus any updates go to a cloned object. :/

I wonder if this library should be flagged with "do not use multiprocessing with this decorator"

I have the same issue... @imidoriya if you found a solution please share it.
thanks!

authors: bitranox chucklesoclock hashark imidoriya

repo: pnpnpn/timeout-decorator


text:
Minimal stochastic muzero version to run and evaluate

Hi,
Could you provide a minimal example of stochastic muzero training and evaluating?
Thanks in advanced

Hi @pocokhc ,
Thanks for the quick response.
It's working like a charm.
Now I want to adapt this code to run my gym version (gymnasium). Have you done this before?
Just out of curiosity. Tensorflow version 2.12.0 is not working. The mistake:
KeyError: 'The optimizer cannot recognize variable conv2d_24/kernel:0. This usually means you are trying to call the optimizer to update different parts of the model separately. Please call `optimizer.build(variables)` with the full list of trainable variables before the training loop or use legacy optimizer `tf.keras.optimizers.legacy.Adam.'

Hi again @pocokhc,
I'm training with success my custom environment.
18:22:04  5.01s(167.6m left)   102st(    1ep)     0tr, -57.4 -57.399 -57.4 re(-55.104 eval), 67.0 step, 2.01s/ep, 0.000s/tr,    67mem|v_min inf|v_max -inf
18:22:15 16.02s(166.0m left)   269st(    4ep)     0tr, -69.6 -67.974 -66.5 re(-67.407 eval), 67.0 step, 1.99s/ep, 0.000s/tr,   268mem|v_min -18.106|v_max 0.000
18:22:35 36.03s(166.0m left)   588st(    8ep)    53tr, -73.2 -55.412 -36.5 re(-66.200 eval), 67.0 step, 2.00s/ep, 0.047s/tr,   536mem|v_min -19.873|v_max 0.710|loss 21.377|v_loss 7.504|policy_loss 4.665|reward_loss 3.769|chance_loss 1.307|q_loss 3.994|vae_loss 0.008|lr 0.010
18:23:15   1.3m(328.3m left)   945st(   14ep)   410tr, -82.2 -65.416 -43.5 re(-50.050 eval), 67.0 step, 3.95s/ep, 0.048s/tr,   938mem|v_min -23.060|v_max 1.409|loss 14.611|v_loss 5.829|policy_loss 4.606|reward_loss 1.119|chance_loss 0.013|q_loss 2.923|vae_loss 0.001|lr 0.010
18:24:35   2.6m(442.5m left)  1676st(   25ep)  1141tr, -87.2 -69.112 -43.1 re(-57.511 eval), 67.0 step, 5.34s/ep, 0.049s/tr,  1000mem|v_min -23.685|v_max 1.409|loss 14.357|v_loss 5.619|policy_loss 4.605|reward_loss 1.116|chance_loss 0.028|q_loss 2.923|vae_loss 0.000|lr 0.008
18:27:15   5.3m(445.2m left)  3144st(   46ep)  2609tr, -93.1 -60.315 -33.8 re(-67.401 eval), 67.0 step, 5.39s/ep, 0.048s/tr,  1000mem|v_min -24.821|v_max 1.693|loss 13.232|v_loss 5.183|policy_loss 4.605|reward_loss 0.794|chance_loss 0.000|q_loss 2.503|vae_loss 0.000|lr 0.007
18:32:35  10.6m(437.8m left)  6052st(   90ep)  5517tr, -94.1 -64.214 -33.4 re(-60.883 eval), 67.0 step, 5.35s/ep, 0.048s/tr,  1000mem|v_min -25.458|v_max 1.707|loss 12.857|v_loss 5.053|policy_loss 4.605|reward_loss 0.594|chance_loss 0.000|q_loss 2.408|vae_loss 0.000|lr 0.004
18:42:35  20.6m(432.6m left) 11536st(  172ep) 11001tr, -110.3 -64.348 -27.1 re(-63.268 eval), 67.0 step, 5.38s/ep, 0.049s/tr,  1000mem|v_min -28.921|v_max 2.514|loss 13.003|v_loss 5.116|policy_loss 4.605|reward_loss 0.581|chance_loss 0.000|q_loss 2.508|vae_loss 0.000|lr 0.002

Now I want to get the action from my observation like (action = srl.policy(observation)) to pass to gym directly (outside your evaluate method), so I can call env.step(action) to interact with the env.

Hi @ipsec

Just out of curiosity. Tensorflow version 2.12.0 is not working. The mistake:

Thank you very much.I also checked.
Apparently, the optimizer is new from tf2.11.0 and it seems that the following changes are necessary for compatibility.
self.optimizer = keras.optimizers.Adam()

↓
self.optimizer = keras.optimizers.legacy.Adam()

The git code will be updated in the next update.

Now I want to adapt this code to run my gym version (gymnasium). Have you done this before?
For image input like Atari, you can go with:

This is an example of Pendulum-v1.
import numpy as np

import srl
from srl import runner
from srl.rl.models.tf.muzero_atari_block import MuZeroAtariBlock

# --- env & algorithm load
import gym  # isort: skip # noqa F401
from srl.algorithms import stochastic_muzero  # isort: skip

# --- save parameter path
_parameter_path = "_params.dat"

def _create_config():
    rl_config = stochastic_muzero.Config(
        num_simulations=10,
        discount=0.9,
        batch_size=8,
        memory_warmup_size=200,
        memory_name="ReplayMemory",
        lr_init=0.01,
        lr_decay_steps=10_000,
        v_min=-2,
        v_max=2,
        unroll_steps=1,
        input_image_block=MuZeroAtariBlock,
        input_image_block_kwargs={"base_filters": 16},
        dynamics_blocks=1,
        enable_rescale=False,
        codebook_size=4,
    )
    rl_config.change_observation_render_image = True   ### This option internally changes the input to an image.
    env_config = srl.EnvConfig("Pendulum-v1")
    config = runner.Config(env_config, rl_config)

    # setting load parameter (Loads the file if it exists)
    rl_config.parameter_path = _parameter_path

    return config

def train():
    config = _create_config()
    config.model_summary()
    parameter, memory, history = runner.train(config, max_episodes=100, enable_evaluation=False)
    parameter.save(_parameter_path)

def evaluate():
    config = _create_config()
    rewards = runner.evaluate(config, max_episodes=10, print_progress=True)
    print("mean", np.mean(rewards))

def animation():
    config = _create_config()
    render = runner.animation(config)
    render.create_anime(draw_info=True).save("_PendulumV1.gif")

if __name__ == "__main__":
    train()
    evaluate()
    animation()

However, I haven't been able to confirm that I can learn, so I'm sorry if I can't learn.

Now I want to get the action from my observation like (action = srl.policy(observation)) to pass to gym directly (outside your evaluate method), so I can call env.step(action) to interact with the env.

There are two big things.

How to implement call_direct_reset and call_direct_step on the Env side.
(Refer to "srl.envs.connectx.py" for an implementation example)

In this case you can directly rewrite env.
The code to move is below.
import srl
from srl import runner

env_config = srl.EnvConfig("XXX")
rl_config = XXX.Config()
config = runner.Config(env_config, rl_config)

# ---- agent
env = config.make_env()
parameter = config.make_parameter()
worker = config.make_worker(parameter)

# --- User original steps
env.direct_reset(UserDefineArgs)
worker.on_reset(env, player_index)
for step in range(100):
    action = worker.policy(env)
    env.direct_step(UserDefineArgs)

Also, although it's a bit old version, here's a ConnectX code example that uses this:
https://www.kaggle.com/code/ngfkf1vv5ot6/connectx-dqn-minmax/notebook

call env.step directly

You can call it directly with the code below.
However, please note that compatibility with the framework will be lost if you rewrite with this object (for example, call a step).
rl_config = stochastic_muzero.Config()
env_config = srl.EnvConfig("Pendulum-v1")

env = srl.make_env(env_config)
print(type(env))  # EnvRun class

### get original environment
gym_env = env.get_original_env()
print(type(gym_env))  # gym env class

Also, please refer to the following for the implementation when the "runner" class is not used.
"examples/minimum_raw_multiplay.py"
"examples/minimum_raw_singleplay.py"

authors: ipsec pocokhc


text:
Feature/issue 100 Add option to 'compact' GeoJSON result into single feature

Github Issue: #100
Description
Add option to 'compact' GeoJSON result into single feature.
Overview of work done

Set OpenAPI query parameters required to match API functionality.

Defined a new boolean query parameter called 'compact' in the OpenAPI schema.

Plumbed the 'compact' parameter into the API Lambda function.

Returns a 'compact' GeoJSON response for cases where the Accept=application/json, output=geojson, and compact=true.
Returns a 'compact' GeoJSON response for cases where the Accept=application/geo+json. Default behavior is to return compact response unless compact is explicitly set to false.

Updated documentation for the compact GeoJSON response.

Overview of verification done
Created two new unit tests to test compact response for application/json and application/geo+json response. All units test pass.
Overview of integration done
Deployed modifications to SIT environment and ran the following queries.
Compact application/json
curl -v --location 'https://soto.podaac.sit.earthdatacloud.nasa.gov/hydrocron/v1/timeseries?feature=Reach&feature_id=63470800171&start_time=2024-02-01T00:00:00%2b00:00&end_time=2024-10-30T00:00:00%2b00:00&fields=reach_id,time_str,wse&compact=true'

{
    "status": "200 OK",
    "time": 2175.824,
    "hits": 2,
    "results": {
        "csv": "",
        "geojson": {
            "type": "FeatureCollection",
            "features": [
                {
                    "id": "0",
                    "type": "Feature",
                    "properties": {
                        "reach_id": [
                            "63470800171",
                            "63470800171"
                        ],
                        "time_str": [
                            "2024-02-01T02:26:50Z",
                            "2024-02-08T13:48:41Z"
                        ],
                        "wse": [
                            "3386.9332",
                            "1453.4136"
                        ],
                        "wse_units": [
                            "m",
                            "m"
                        ]
                    },
                    "geometry": {
                        "type": "LineString",
                        "coordinates": [
                            -45.845445,
                            -16.166559
                        ]
                    }
                }
            ]
        }
    }
}

*Coordinates removed
Compact application/geo+json
curl -v --header "Accept: application/geo+json" --location 'https://soto.podaac.sit.earthdatacloud.nasa.gov/hydrocron/v1/timeseries?feature=Reach&feature_id=63470800171&start_time=2024-02-01T00:00:00%2b00:00&end_time=2024-10-30T00:00:00%2b00:00&fields=reach_id,time_str,wse'

{
    "type": "FeatureCollection",
    "features": [
        {
            "id": "0",
            "type": "Feature",
            "properties": {
                "reach_id": [
                    "63470800171",
                    "63470800171"
                ],
                "time_str": [
                    "2024-02-01T02:26:50Z",
                    "2024-02-08T13:48:41Z"
                ],
                "wse": [
                    "3386.9332",
                    "1453.4136"
                ],
                "wse_units": [
                    "m",
                    "m"
                ]
            },
            "geometry": {
                "type": "LineString",
                "coordinates": [
                    [
                        -45.845445,
                        -16.166559
                    ]
                ]
            }
        }
    ]
}

*Coordinates removed
Not compact application/geo+json
curl -v --header "Accept: application/geo+json" --location 'https://soto.podaac.sit.earthdatacloud.nasa.gov/hydrocron/v1/timeseries?feature=Reach&feature_id=63470800171&start_time=2024-02-01T00:00:00%2b00:00&end_time=2024-10-30T00:00:00%2b00:00&fields=reach_id,time_str,wse&compact=false'

{
    "type": "FeatureCollection",
    "features": [
        {
            "id": "0",
            "type": "Feature",
            "properties": {
                "reach_id": "63470800171",
                "time_str": "2024-02-01T02:26:50Z",
                "wse": "3386.9332",
                "wse_units": "m"
            },
            "geometry": {
                "type": "LineString",
                "coordinates": [
                    [
                        -45.845445,
                        -16.166559
                    ]
                ]
            }
        },
        {
            "id": "1",
            "type": "Feature",
            "properties": {
                "reach_id": "63470800171",
                "time_str": "2024-02-08T13:48:41Z",
                "wse": "1453.4136",
                "wse_units": "m"
            },
            "geometry": {
                "type": "LineString",
                "coordinates": [
                    [
                        -45.845445,
                        -16.166559
                    ]
                ]
            }
        }
    ]
}

*Coordinates removed.
Compact GeoJSON - Nodes
curl --header "Accept: application/geo+json" --location 'https://soto.podaac.sit.earthdatacloud.nasa.gov/hydrocron/v1/timeseries?feature=Node&feature_id=12228200110861&start_time=2023-11-29T00:00:00Z&end_time=2024-10-30T00:00:00Z&fields=reach_id,node_id,time_str,wse'

{
    "type": "FeatureCollection",
    "features": [
        {
            "id": "0",
            "type": "Feature",
            "properties": {
                "reach_id": [
                    "12228200111",
                    "12228200111"
                ],
                "node_id": [
                    "12228200110861",
                    "12228200110861"
                ],
                "time_str": [
                    "2024-01-30T21:19:19Z",
                    "2024-02-06T08:37:09Z"
                ],
                "wse": [
                    "3389.616",
                    "1346.93836"
                ],
                "wse_units": [
                    "m",
                    "m"
                ]
            },
            "geometry": {
                "type": "Point",
                "coordinates": [
                    35.149314,
                    -10.256285
                ]
            }
        }
    ]
}

PR checklist:

[X] Linted
[X] Updated unit tests
[X] Updated changelog
[X] Integration testing

See Pull Request Review Checklist for pointers on reviewing this pull request

Just an FYI: I created the branch for this PR from the branch for Issue #101 which has not been merged into develop yet so it may cause issues when we merge all open PRs.

Just an FYI: I created the branch for this PR from the branch for Issue #101 which has not been merged into develop yet so it may cause issues when we merge all open PRs.

I updated the base for this PR to be feature/issue-101 to reflect the dependency. Once 101 gets merged this PR will automatically get updated to point to develop

@nikki-t can you work on resolving the merge conflicts?

@frankinspace - Conflicts resolved and merged! I also deployed and tested in SIT to make sure everything looked okay.

authors: frankinspace nikki-t

repo: podaac/hydrocron


text:
how can I use System.Net.Sockets in macro

Hi,
I want to use System.Net.Sockets.UdpClient and some other system class in macro,
but I got an error "Type 'System.Net.Sockets.UdpClient' could not be found, is an assembly reference missing?"
I'm already add "import System.Net.Sockets;" at the top of my macro.
How should I do?
Something else like System.Diagnostics.ProcessStartInfo cannot be used too.

System.Net.Sockets.UdpClient is provided by system.dll, but Poderosa doesn't make it available in the macro environment in default.
You have to specify the additional assembly in the macro settings.

Open Tools>Macro>Environment
Select your macro setting and click "Property" button
In "Additional assemblies" text box, enter "system.dll".

If you need more assemblies, you can specify them by separating with semicolons.

authors: barrygu poderosaproject

repo: poderosaproject/poderosa


text:
Custom propertyWrapper in State: Compiler error when using new @ObservableState macro

Description
When using a propertyWrapper in the state in combination with the @ObservableState macro, it causes a compiler error:
Property wrapper cannot be applied to a computed property.

Here's a reproducible project: TCAState PropertyWrapper.zip
Here's an example propertyWrapper :
@propertyWrapper
public struct Placeholder<Value: Equatable & Redactable>: Equatable {
    public var wrappedValue: Value {
        get {
            projectedValue.value
        } set {
            projectedValue.value = newValue
        }
    }

    public var projectedValue: Projected

    public init(wrappedValue: Value = .placeholder) {
        self.projectedValue = Projected(value: wrappedValue)
    }

    public struct Projected: Equatable {
        var value: Value

        public var isLoading: Bool {
            value == Value.placeholder
        }
    }
}

public protocol Redactable {
    static var placeholder: Self { get }
}

public protocol RedactableArray {
    static var placeholders: [Self] { get }
}

extension Array: Redactable where Element: RedactableArray {
    public static var placeholder: [Element] {
        Element.placeholders
    }
}

State:
@Reducer
struct ContentViewFeature {
    @ObservableState
    struct State {
        @Placeholder var users: [User]

        var isRedacted: Bool {
            $users.isLoading
        }
    }

    enum Action {}

    var body: some ReducerOf<Self> {
        Reduce { state, action in
            .none
        }
    }
}

Checklist

[X] I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
[X] If possible, I've reproduced the issue using the main branch of this package.
[X] This issue hasn't been addressed in an existing GitHub issue or discussion.

Expected behavior
The project should compile successfully (as prior to updating to the @ObservableState macro)
Actual behavior
Error while compiling
Property wrapper cannot be applied to a computed property.

Steps to reproduce
No response
The Composable Architecture version information
1.8.2
Destination operating system
iOS 17
Xcode version information
15.2
Swift Compiler version information
swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx14.0

Hi @mschonvogel, this is just a problem with Swift macros in general. It won't work with Swift's @Observable macro or SwiftUI's @Model macro either:
@Observable
class Foo { var count = 0 }  // 🛑
@Model
class Bar { var count = 0 }  // 🛑

Since this is not an issue with the library I am going to convert it to a discussion.

authors: mbrandonw mschonvogel


text:
testValue can leak state between tests when used asynchronously

Description
This might be related to https://github.com/pointfreeco/swift-dependencies/issues/75, but I'm creating this as a separate issue as it could be a different issue, or it's the underlying issue causing https://github.com/pointfreeco/swift-dependencies/issues/75.
The problem:
If withDependencies isn't being used, and default testValues are being used instead, if one test kicks off a write to a dependency asynchronously, this write can be triggered during the lifetime of a test run later.
If this happens, that second test's dependency state will be unexpectedly affected by the earlier test, leading to incorrect state.
This can be shown with the contrived example here:
private final class TestObject {
    @Dependency(\.analytics) private var analytics

    func trackAction(named name: String, after delay: Duration = .zero) {
        Task {
            if delay != .zero {
                try await Task.sleep(for: delay)
            }
            analytics.trackEvent(named: name)
        }
    }
}

final class LeakageTests: XCTestCase {
    func testAsyncDependencyMutationOnDefaultDependencyLeaksPart1() async throws {
        TestObject().trackAction(named: "One", after: .milliseconds(10))
    }

    /// This demonstrates that we must avoid using default `testValue` values if they're going to be mutated asynchronously. *This test must be run as part of the suite to pass.*
    func testAsyncDependencyMutationOnDefaultDependencyLeaksPart2() async throws {
        let analytics = DependencyValues._current.analytics as! AnalyticsMock

        // Sleep, to let the async write happen at this time.
        try await Task.sleep(for: .milliseconds(15))

        XCTAssertEqual(analytics.events, ["One"])
        // 💥😱 This assertion passes if the test is run on its own, but it fails if the test is run with testAsyncDependencyMutationOnDefaultDependencyLeaksPart1().
        XCTExpectFailure {
            // What we wanted the value to be:
            XCTAssertEqual(analytics.events, [])
        }
    }
}

A potential workaround
Rather than avoiding using testValue and applying withDependencies absolutely everywhere in tests instead, I found some potential success taking inspiration from https://pointfreeco.github.io/swift-dependencies/main/documentation/dependencies/overridingdependencies#Testing
We can wrap the entire test run in a withDependencies, and just leverage default values automatically:
func withDefaultDependencies(_ operation: () -> Void) {
    withDependencies {
        $0 = .current
    } operation: {
        operation()
    }
}

private extension DependencyValues {
    static var current: Self {
        var values = Self()
        values.context = DependencyValues._current.context
        return values
    }
}

final class LeakageTests: XCTestCase {
    override func invokeTest() {
        withDefaultDependencies {
            super.invokeTest()
        }
    }

    func test_WithDefaultDependencies_OnDefaultDependencyPreventsLeaksPart1() async throws {
        TestObject().trackAction(named: "One", after: .milliseconds(10))
    }

    func test_WithDefaultDependencies_OnDefaultDependencyPreventsLeaksPart2() async throws {
        let analytics = DependencyValues._current.analytics as! AnalyticsMock
        try await Task.sleep(for: .milliseconds(15))

        XCTAssertEqual(analytics.events, [])
    }
}

This passes! 😄
Issues with the workaround
This workaround creates some new issues though, which probably make it not worth using:

static initializations of objects start leaking their dependencies, which defeats the whole point of this.
I'm not really sure why, but once I start introducing this, any statically initialized objects don't seem to get updates to their stored @Dependency values. See https://github.com/dafurman/Swift-Dependencies-Exploration/blob/f1be21b6a2725a7656fc7cb799d9bfdd407af60e/Tests/SwiftDepsTests/WithDefaultDependenciesTests.swift#L52

Dependencies used in .task() must be propagated with withDependencies(from: self)
Within the scope of a .task() or any code it kicks off, we have to use stored versions of @Dependency, and propagate dependencies with withDependencies(from: self), otherwise we'll get an incorrect instance of the dependency.
See https://github.com/dafurman/Swift-Dependencies-Exploration/blob/f1be21b6a2725a7656fc7cb799d9bfdd407af60e/Tests/SwiftDepsTests/WithDefaultDependenciesTests.swift#L38

Maybe someone else can take ideas from this and get something working that keeps testValue safe to use from asynchronous code.
For now, it seems like I have two options, and I'm probably going to go with the second:

Apply withDependencies() to every dependency-using action in a test and never rely on testValue.
Accept that testValue will sometimes leak and keep an eye out for that. These situations can be hard to notice, but if I do notice them, I at least have the workaround of applying withDependencies() on the leaking test or the test being leaked into.

Checklist

[X] I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
[X] If possible, I've reproduced the issue using the main branch of this package.
[X] This issue hasn't been addressed in an existing GitHub issue or discussion.

Expected behavior
I'd expect use of testValue to be safe between different test runs, and for one test to not read from or mutate another test's dependencies.
Actual behavior
When I write to a default testValue dependency asynchronously, it can affect the dependency's state when accessed from another test, causing tests to succeed if run on their own, but to fail when run as part of a test suite.
Steps to reproduce
Check out https://github.com/dafurman/Swift-Dependencies-Exploration/blob/main/Tests/SwiftDepsTests/LeakageTests.swift and run LeakageTests. Pay attention to testAsyncDependencyMutationOnDefaultDependencyLeaksPart1() and testAsyncDependencyMutationOnDefaultDependencyLeaksPart2(), then run testAsyncDependencyMutationOnDefaultDependencyLeaksPart2() on its own and see that its behavior is different when run in isolation vs having part 1 run beforehand.
Dependencies version information
1.0.0 & main
Destination operating system
iOS 16 & 17
Xcode version information
Xcode 15.0
Swift Compiler version information
swift-driver version: 1.87.2 Apple Swift version 5.9 (swiftlang-5.9.2.1.6 clang-1500.1.0.1.1)

Hi @dafurman, this problem exists in any Xcode test as the following demonstrates:
final class SomeTest: XCTestCase {
  func test1() {
    Task {
      try await Task.sleep(for: .seconds(0.1))
      XCTFail()
    }
  }
  func test2() async throws {
    try await Task.sleep(for: .seconds(0.15))
  }
}

Each individual test passes but the whole suite does not.
This is just a general problem with escaping closures and tests. It is possible to spin up an alternate execution context and execute code long after the test has finished running, allowing one test to leak in another. And it's yet another reason why it's best to stay in the structured programming world as much as possible.
And because of this we don't think there's really anything the library should be doing to try to remedy the situation. There is a chance we could improve the test failure message if we can detect the situation, but that can be very difficult. We tried doing that when we detect a test failure from the test host, but we're not sure how often people read it or how often it helps people.
We are open to suggestions, but since this isn't any issue with the library I am going to convert it to a  discussion.

authors: dafurman mbrandonw

repo: pointfreeco/swift-dependencies


text:
🛑 Pokko - au-syd1 is down

In 87bb1ea, Pokko - au-syd1 (https://au-syd1.pokko.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Pokko - au-syd1 is back up in f8bba48 after 7 minutes.

repo: pokkocms/pokko-status


text:
🛑 Pokko - au-syd1 is down

In 856ab14, Pokko - au-syd1 (https://au-syd1.pokko.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Pokko - au-syd1 is back up in 3c02585 after 14 minutes.


text:
[Core] Deploying all-the-protocol-actors

Objective
Enable deploying different types of protocol actors.
Origin Document
The utility specification outlines several different types of actors:

Validator
Servicer
Fisherman
Portal
Full Nodes (a full node that is not a protocol actor)

As of writing, the V1 repo only supports running validators and the debug client is a "makeshift" full node. As we are about to start working on M3 and have a live devnet, there needs to be an easy way to build and scale different types of actors.
Note that Application and Actor do not fall into the scope of this ticket.
V0 - Swagger Documentation (as a reference)
Note: It is slightly outdated
The V0 RPC spec can be found here.
For example, the height can be queried like so:
curl --location -X 'POST' -H 'Content-Type: application/json' 'https://<user>:<pass>@<hostname>:<port>/v1/query/height' | jq

{
  "height": 89554
}

V1 - Swagger Documentation (as a reference)
Note: It is still in the early stages
The V1 RPC spec can be found here.

Goals

Enable deploying different types of protocol actors from a single binary
Enable scaling different types of protocol actors
Enable iterating on the business logic for M3 (locally & and in devnet)
Set a foundation for full nodes, which will extend to light clients

Deliverable
Note that there are a lot of notes and deliverables below. These should be used as a guide but the implementor is expected to use their best judgment and creativity to achieve the goals above.

[ ] Update config.go to contain the type of actor being deployed
- Note to implementor: Creating empty XXXConfig (e.g. FishermanConfig) protos that we can build on in the future would help
[ ] Update/add config.json files for each actor(s) being deployed on this node
[ ] Add empty placeholder logic (e.g. a print statement in the Utility Module) that is specific to each protocol ator

Note to implementor: For example, some code path should only execute if a node is actor X but should not execute if it's actor Y; this will require some thought and creativity

[ ] Add business logic and tests that limit the types of permutations a single node can be. E.g.

A Servicer can also, optionally, be a Validator at the same time
A Portal can not double as anyone else must be a standalone
Note to implementor: Use your best judgment and we'll review during the PR process

[ ] Update LocalNet (k8s and docker-compose) to deploy the following configuration:

4 Validators (1 of these should also be a servicer in parallel)
1 full node
1 servicer
1 fisherman
Note to implementor: portal will be added in the future
Note to implementor: @bryanchriswhite is working on random gossip for full nodes, @gokutheengineer is working on state sync with full nodes, @okdas is working on infrastructure to deploy them; please ping them in the public channels for more details. @Olshansk is not doing anything ;'(

[ ] Add an RPC endpoint that returns the type of actor(s) running on the node (see the code below as an example)
[ ] Update the CLI to be able to query the RPC endpoint above
[ ] Add new RPC endpoints (with placeholder backing code) that either return a static response or an error if the actor type should not support them

Note to implementor: For example, you can add the relayDispatch endpoint and if the actor type is not a servicer, it should return an error.
Note to implementor: For example, looking at the v1 swagger file, you can implement v1/servicer/... or /v1/fisherman/...

curl --location -X 'POST' -H 'Content-Type: application/json' 'https://<user>:<pass>@<hostname>:<port>/v1/query/nodeRoles' | jq

{
  "node_roles":
  [
  	"servicer",
  	"validator",
  ]
}

Non-goals / Non-deliverables

Implementing new business logic for the actor-specific logic
Exhaustively updating all the source code with the appropriate build tags

General issue deliverables

[ ] Update the appropriate CHANGELOG(s)
[ ] Update any relevant local/global README(s)
[ ] Update relevant source code tree explanations
[ ] Add or update any relevant or supporting mermaid diagrams

Testing Methodology

[ ] Required: A demo document (w/ video) showing this in action
[ ] All tests: make test_all
[ ] LocalNet: verify a LocalNet is still functioning correctly by following the instructions at docs/development/README.md

Creator: @Olshansk
Co-Owners: @okdas

@okdas Can you PTAL at the requirements in this ticket? I know you've been putting a lot of thought into it, but I think we can potentially get some help on this piece of work, which will link what I'll be doing in M3 and what you're doing in M2.
cc @jessicadaugherty - this will be a great bounty after we triage it.

So I am trying to wrap my head around the current behaviour, so I can try and implement the ticket. And have a few questions:

So looking into app/pocket/main.go, runtime/manager.go and shared/node.go I can see these are the current entry points to starting the node. However, from this, I am getting the understanding that the default behaviour of creating a new node and starting all the modules is to become a Validator actor. My question is whether there is currently any logic that once the Utility module is started means the Validator behaviour is begun? (Like a StartValidating function for example 😆) If this is defined then adding the logic to build different actor binaries would be more straightforward. If however, this is not the case, from my current understanding something like this would need to be implemented (is this the case as I may be missing something)

In conjunction with the first question - I cannot seem to find any current method exposed that returns the actor type of a node - unless I am missing something again. If this is the case, my initial thought is to add some sort of field to the UtilityContext or something similar that is set upon the module's creation and retrieve this.

If I have gone wrong with anything I've mentioned please let me know - I will keep looking into this over the weekend hopefully to start next week.

Can you PTAL at the requirements in this ticket?

The current requirements look good. One part I am not sure about is Update the configs to specify the type of actor(s) being deployed on this node. If we are going to have multiple binaries, one per actor, we probably don't need that configuration option.
We might, however, require actor-specific configs we need to expose. For example, adding { "portal": { "listen_port": 80, ... }} or similar configurations makes sense to me. Considering our configuration is done “by module” would that mean we need to introduce a “portal” module? I would like to avoid creating a separate config for actor-specific parameters but I suspect that can be done too.

Something we could use to solve this is https://goreleaser.com/ - I was looking at whether we could use it to build go binaries along container images, but it was quicker to add a custom image build. Maybe it's time to revisit?
GoReleaser also can package brew binaries and can handle changelogs with releases/pre-releases. There are a couple of requirements – we need to follow semantic versioning (we do), and there could be complications with CGO (AFAIK we do not use it). So it should work for us.

first pass with notes, will be moving and grooving here https://github.com/pokt-network/pocket/compare/0xbigboss/dw-1860/core-deploying-all-the-actors?expand=1

Ty @0xBigBoss :)

@0xBigBoss I was going to suggest that the presence of the fisherman/servicer config could determine if its enabled/disabled, but having the boolean can actually make toggling/developing much easier so +1.
Within the utility module, I suggest you looked at what @gokutheengineer has been doing with the StateSync module in consensus. It's like a "submodule" inside the consensus module, and I was thinking Fisherman / Servicer / etc business logic could be similar

@Olshansk yes, thank you for the pointer. I did my best to brush up on the module docs and move in this direction.
I pushed a new commit experimenting with standalone modules. This works thus far for servicer and fisherman. Not convinced this is the best way yet though start the actor-specific modules. I included an engines field, but seems like unnecessary/overkill, the engines field seems more appropriate to other modules that need start other sub-modules.
I also haven't quite reviewed how it should all work e2e and how siloed these utility modules can be. I haven't reviewed the validator bootstrap logic and how that should come into play here. Will think on this more after I have read more on how that module starts.
https://github.com/pokt-network/pocket/compare/0xbigboss/dw-1860/core-deploying-all-the-actors#diff-2cbaa9daa0be26c2069b254103e311e37307bf9835314c19082e5f91e78898c3R69

@0xBigBoss I'm not 100% sure if you were looking for feedback yet, so just going to send suggestions based on a high-level brief overview.

engines - overkill IMO; let's keep it simple
enableActorModules - we're only going to have a handful of actors. Even if we introduce new ones, this is not something that will grow very large. I think keeping things verbose (avoiding lists here) will keep it simpler longer-term.

If there's any specific piece that you have questions about, lmk

@Olshansk I believe I am set with the skeleton configs for the various actors and creating/starting them in the utility module. I did end up keeping one list, actorModules that represents the current actors enabled for the node. There may be a more clever way to not make it a list, but since we are allowing for multiple actor types in some cases, it seemed fitting.
@h5law I did end up going with the approach you recommended for now, and kept a top-level ValidatorConfig. Still not set that this is the best path forward longterm since I still believe this sort of overlaps with the consensus config already. 🤣
@gokutheengineer If you could, please send me some easy instructions on how to add non-validator, full nodes to localnet  so I can start integrating these new configs.
In the meantime, I'll start on the RPC calls and the plumbing for that.
https://github.com/pokt-network/pocket/compare/0xbigboss/dw-1860/core-deploying-all-the-actors#diff-2cbaa9daa0be26c2069b254103e311e37307bf9835314c19082e5f91e78898c3R72

@Olshansk I believe I am set with the skeleton configs for the various actors and creating/starting them in the utility module. I did end up keeping one list, actorModules that represents the current actors enabled for the node. There may be a more clever way to not make it a list, but since we are allowing for multiple actor types in some cases, it seemed fitting.

👍 Will think about it myself a bit more as well, but definitely a great way to start.
Any chance you can open up a draft PR? It'll be a good way to leave comments & have a discussion along the way.

@h5law I did end up going with the approach you recommended for now, and kept a top-level ValidatorConfig. Still not set that this is the best path forward longterm since I still believe this sort of overlaps with the consensus config already.

I think its reasonable. Not an irreversible decision.

@gokutheengineer If you could, please send me some easy instructions on how to add non-validator, full nodes to localnet so I can start integrating these new configs.

This isn't ready YET. The PRs are in flight so we should hopefully have them ready next week along with the markdown readme.

In the meantime, I'll start on the RPC calls and the plumbing for that.

👍

@0xBigBoss Just sharing a screenshot from a conversation we had today rather than summarizing. Stay tuned!

Very cool @Olshansk . I have started in that direction in my PR #710. Though it's not completely there yet since the fisherman/servicer aren't staked by the cluster manager, I tried to add a hacky method of overriding some of the genesis values.
I think once I have clarity on the full node vs validator configuration, it will be straightforward to bring this home.

Just chiming in here on timing and coordination: #505 a dependency for the P2P module to support communication with non-staked actors (e.g. full-nodes). I've just put #707 up for review which I expect to be part 1 of 2 to close #505.

Just chiming in here on P2P timing and coordination: #505 is a dependency for the P2P module to support communication with non-staked actors (e.g. full-nodes). I've just put #707 up for review which I expect to be part 1 of 2 to close #505.
TLDR (why); Here's an excerpt from the P2P README update in #707:
flowchart TD
    subgraph lMod[Local P2P Module]
        subgraph lHost[Libp2p `Host`]
        end
        subgraph lRT[Raintree Router]
            subgraph lRTPS[Raintree Peerstore]
                lStakedPS([staked actors only])
            end

            subgraph lPM[PeerManager]
            end
            lPM --> lRTPS
        end

        subgraph lBG[Background Router]
            subgraph lBGPS[Background Peerstore]
                lNetPS([all P2P participants])
            end

            subgraph lGossipSub[GossipSub]
            end

            subgraph lDHT[Kademlia DHT]
            end

            lGossipSub --> lBGPS
            lDHT --> lBGPS
        end

        lRT --1a--> lHost
        lBG --1b--> lHost
    end

    subgraph rMod[Remote P2P Module]
        subgraph rHost[Libp2p `Host`]
        end
        subgraph rRT[Raintree Router]
            subgraph rPS[Raintree Peerstore]
                rStakedPS([staked actors only])
            end

            subgraph rPM[PeerManager]
            end

            rPM --> rStakedPS
        end

        subgraph rBG[Background Router]
            subgraph rBGPS[Background Peerstore]
                rNetPS([arr P2P participants])
            end

            subgraph rGossipSub[GossipSub]
            end

            subgraph rDHT[Kademria DHT]
            end

            rGossipSub --> rBGPS
            rDHT --> rBGPS
        end

        rHost -. "setStreamHandler()" .-> hs[[handleStream]]
        hs --3a--> rRT
        hs --3b--> rBG
        rBG  --"4a (cont. propagation)"--> rHost
        linkStyle 11 stroke:#ff3
        rRT  --"4b (cont. propagation)"--> rHost
        linkStyle 12 stroke:#ff3
    end

    lHost --2--> rHost

Thanks for the details @bryanchriswhite! Amazing and very clear diagram. There's a lot going on and it's very easy to understand so I want to make sure that doesn't go unnoticed. 🙏

authors: 0xBigBoss Olshansk bryanchriswhite h5law jessicadaugherty okdas

repo: pokt-network/pocket


text:
Support pyo3 v0.18.0

I was going to use this with pyo3-asyncio, but it requires 0.18.0.
Any chance to add support for this any time soon?

Fixed


text:
Posthog: Events for pledge flow

Events:

Badge shown (SVG requested). Not a perfect metric due to short-term cache, but good to have
Pledge page shown
Pledge amount entered
Email entered
Form completed
Submitted
Status (Paid, Failed etc)

Variables:

Organization ID + Name
Repository ID + Name
Issue ID + Number

I guess you want to make a funnel for these events. #709 implements them, but the "Pledge Badge Shown" event won't be for an identifiable user (as it is generated on the next server, and not requested from the web app), so it can't really go in the funnel.

Badge shown event moved to #723

authors: birkjernstrom hult

repo: polarsource/polar


text:
created BenefitCustomCreateProperties with default note to None

Fix issue #4005
Create a BenefitCustomCreateProperties same as others CreateProperties in schema

Thank you @nareshNishad, but that's not the way it works in our codebase ☺
The schema is auto-generated from actual Python (Pydantic) models. So the changes should rather happen over here: https://github.com/polarsource/polar/blob/07dfb2b56a1473ec3ad041e7c1893a08bcc30e5b/server/polar/benefit/schemas.py#L60

Thanks @frankie567 for guiding, i will make the changes.

@frankie567 updated the code, let me know anything else I can update in it.

@frankie567  Removed schema.json changes.

Took the liberty to fix a small typing issue. Thank you for your help in fixing this @nareshNishad :pray:

Sorry for being negligent about the test case, I will make sure about these in future contributions.


text:
[BUG] ValueError in aCompCor

Running ds011
nipypecli crash /scratch/03843/crn_plab/fmriprep-ohbm-2/work/ds000011_R2.0.1/out/log/crash-20161215-131711-crn_plab-aCompCor.a4-a96c4457-b951-4f01-ab20-106caa44ba90.pklz

File: /scratch/03843/crn_plab/fmriprep-ohbm-2/work/ds000011_R2.0.1/out/log/crash-20161215-131711-crn_plab-aCompCor.a4-a96c4457-b951-4f01-ab20-106caa44ba90.pklz
Node: workflow_enumerator.09.ConfoundDiscoverer.aCompCor.a4
Working directory: /scratch/03843/crn_plab/fmriprep-ohbm-2/work/ds000011_R2.0.1/work/workflow_enumerator/09/ConfoundDiscoverer/_epi_..scratch..03843..crn_plab..fmriprep-ohbm-2..ds000011_R2.0.1..sub-09..func..sub-09_task-Singletaskweatherprediction_run-02_bold.nii.gz/aCompCor

Node inputs:

components_file = acompcor.tsv
generate_report = True
header = aCompCor
ignore_exception = False
mask_file = /scratch/03843/crn_plab/fmriprep-ohbm-2/work/ds000011_R2.0.1/work/workflow_enumerator/09/ConfoundDiscoverer/_epi_..scratch..03843..crn_plab..fmriprep-ohbm-2..ds000011_R2.0.1..sub-09..func..sub-09_task-Singletaskweatherprediction_run-02_bold.nii.gz/combine_rois/logical_or.nii.gz
num_components = 6
out_report = report.html
realigned_file = /scratch/03843/crn_plab/fmriprep-ohbm-2/work/ds000011_R2.0.1/work/workflow_enumerator/09/EPI_HMC/_epi_..scratch..03843..crn_plab..fmriprep-ohbm-2..ds000011_R2.0.1..sub-09..func..sub-09_task-Singletaskweatherprediction_run-02_bold.nii.gz/EPI_hmc/sub-09_task-Singletaskweatherprediction_run-02_bold_mcf.nii.gz
regress_poly_degree = 1
use_regress_poly = True

Traceback:
Traceback (most recent call last):
  File "/work/01329/poldrack/lonestar/software_lonestar5/crn-agave/anaconda/lib/python2.7/site-packages/nipype-0.13.0_gff36588.dev-py2.7.egg/nipype/pipeline/plugins/multiproc.py", line 52, in run_node
    result['result'] = node.run(updatehash=updatehash)
  File "/work/01329/poldrack/lonestar/software_lonestar5/crn-agave/anaconda/lib/python2.7/site-packages/nipype-0.13.0_gff36588.dev-py2.7.egg/nipype/pipeline/engine/nodes.py", line 367, in run
    self._run_interface()
  File "/work/01329/poldrack/lonestar/software_lonestar5/crn-agave/anaconda/lib/python2.7/site-packages/nipype-0.13.0_gff36588.dev-py2.7.egg/nipype/pipeline/engine/nodes.py", line 477, in _run_interface
    self._result = self._run_command(execute)
  File "/work/01329/poldrack/lonestar/software_lonestar5/crn-agave/anaconda/lib/python2.7/site-packages/nipype-0.13.0_gff36588.dev-py2.7.egg/nipype/pipeline/engine/nodes.py", line 607, in _run_command
    result = self._interface.run()
  File "/work/01329/poldrack/lonestar/software_lonestar5/crn-agave/anaconda/lib/python2.7/site-packages/nipype-0.13.0_gff36588.dev-py2.7.egg/nipype/interfaces/base.py", line 1085, in run
    runtime = self._run_wrapper(runtime)
  File "/work/01329/poldrack/lonestar/software_lonestar5/crn-agave/anaconda/lib/python2.7/site-packages/nipype-0.13.0_gff36588.dev-py2.7.egg/nipype/interfaces/base.py", line 1033, in _run_wrapper
    runtime = self._run_interface(runtime)
  File "/work/01329/poldrack/lonestar/software_lonestar5/crn-agave/anaconda/lib/python2.7/site-packages/niworkflows-0.0.4a0-py2.7.egg/niworkflows/common/report.py", line 45, in _run_interface
    ReportCapableInterface, self)._run_interface(runtime)
  File "/work/01329/poldrack/lonestar/software_lonestar5/crn-agave/anaconda/lib/python2.7/site-packages/nipype-0.13.0_gff36588.dev-py2.7.egg/nipype/algorithms/confounds.py", line 361, in _run_interface
    u, _, _ = linalg.svd(M, full_matrices=False)
  File "/work/01329/poldrack/lonestar/software_lonestar5/crn-agave/anaconda/lib/python2.7/site-packages/scipy/linalg/decomp_svd.py", line 112, in svd
    compute_uv=compute_uv, full_matrices=full_matrices)
  File "/work/01329/poldrack/lonestar/software_lonestar5/crn-agave/anaconda/lib/python2.7/site-packages/scipy/linalg/lapack.py", line 470, in _compute_lwork
    wi = routine(*args, **kwargs)
ValueError: On entry to DGESDD parameter number 10 had an illegal value
Interface ACompCorRPT failed to run.

I've got this in DS102 too

ds107 as well sub-01_task-onebacktask_run-02,  sub-45_task-oneback_run-02

Some bad values are sneaking into the mask

Happening in ds115 and ds119 too.

One subject on ds116.

Many of these errors were caused by coregistration issues (hopefully) solved in #294. Some could be related to #296.

After fixing the coregistration issues there is only one error, which turns out to be due to the epi file looking like this:

This is the same subject as reported in https://github.com/poldracklab/fmriprep/issues/291.
If you can confirm that this is the only case among the tested datasets we can close this issue.

I don't think this is still happening. I'll close it and then reopen if we see it again.

authors: chrisfilo oesteban rwblair shoshber

repo: poldracklab/fmriprep


text:
error in installation/ python setup.py egg_info

This is probably not the best place to ask this question, but I was wondering if anyone came across this or know what this error points to during installation. The command line is

pip install --user --upgrade fmriprep-docker

Collecting fmriprep-docker
Using cached fmriprep-docker-0.5.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-Qvo5S9/fmriprep-docker/setup.py", line 43, in
main()
File "/tmp/pip-build-Qvo5S9/fmriprep-docker/setup.py", line 14, in main
info = runpy.run_path(op.join(this_path, 'fmriprep_docker.py'))
File "/usr/lib/python2.7/runpy.py", line 252, in run_path
return _run_module_code(code, init_globals, run_name, path_name)
File "/usr/lib/python2.7/runpy.py", line 82, in _run_module_code
mod_name, mod_fname, mod_loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/tmp/pip-build-Qvo5S9/fmriprep-docker/fmriprep_docker.py", line 3, in
from builtins import int, map, input, zip
ImportError: No module named builtins

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ypLRg8/fmriprep/.

Both docker and manually prepared environment routes produce the same error in installation. I have some restriction issues in this computer and I ran it with sudo but I am still wondering if that might be a cause. Thank you for the help!

pip install future

This should be automatically installed when you try to install fmriprep-docker... I'll see if I can figure out why it's not working.
Also, this is a great place to ask the question. :-)

That command helped. Thank you!

We should revisit this after 0.6.1 is released, to verify that it can be installed without pre-installing future. (See #631.)

Alright, it looks like #631 had no effect:
$ docker run --rm -it continuumio/miniconda
root@20b4fbe854c7:/# pip install fmriprep-docker==1.0.0rc1
Collecting fmriprep-docker==1.0.0rc1
  Downloading fmriprep-docker-1.0.0rc1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-1QAk0K/fmriprep-docker/setup.py", line 43, in <module>
        main()
      File "/tmp/pip-build-1QAk0K/fmriprep-docker/setup.py", line 14, in main
        info = runpy.run_path(op.join(this_path, 'fmriprep_docker.py'))
      File "/opt/conda/lib/python2.7/runpy.py", line 252, in run_path
        return _run_module_code(code, init_globals, run_name, path_name)
      File "/opt/conda/lib/python2.7/runpy.py", line 82, in _run_module_code
        mod_name, mod_fname, mod_loader, pkg_name)
      File "/opt/conda/lib/python2.7/runpy.py", line 72, in _run_code
        exec code in run_globals
      File "/tmp/pip-build-1QAk0K/fmriprep-docker/fmriprep_docker.py", line 3, in <module>
        from builtins import int, map, input, zip
    ImportError: No module named builtins

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-1QAk0K/fmriprep-docker/

Perhaps we should just update the docs to say 'pip install --user --upgrade future fmriprep-docker`?

FMRIPREP does not support python < 3 anymore.

authors: effigies oesteban yidilozdemir


text:
script on sleep mode

Hello everyone,
When I am trying to run the script fmriprep-docker the terminal does not show anything. When I do ps -au I see that the script is sort of in a sleep mode*? This probably is a problem pertaining to my computer but I was hoping someone would help me understand it.
When I tried to kill the script previously, the system did not recognize its ID. I tried to do debug but couldn't figure it out.
*lab      21067  0.0  0.1  22680  5240 pts/18   Ss   12:17   0:00 bash
root     21089  0.0  0.1  55032  4056 pts/18   S+   12:18   0:00 sudo fmriprep-d
root     21090  1.9  0.5  58252 22672 pts/18   S+   12:18   0:00 /usr/bin/python
root     21102  0.1  0.4 528616 17000 pts/18   Sl+  12:18   0:00 docker run --rm
lab      21224  0.0  0.0  37368  3372 pts/0    R+   12:18   0:00 ps -au
Whenever I stop the script by ctrl C, the same "traceback" shows as below so I guess this is where the problem is?
lab@lab-ThinkStation-E31:~/Desktop/freesurfer$ sudo fmriprep-docker --anat-only /home/lab/Desktop/freesurfer/ds001 /home/lab/Desktop/freesurfer/ds001 participant bash -x ./fmriprep-docker
[sudo] password for lab:
^CTraceback (most recent call last):
  File "/usr/local/bin/fmriprep-docker", line 11, in <module>
    load_entry_point('fmriprep-docker==0.6.0', 'console_scripts', 'fmriprep-docker')()
  File "/usr/local/lib/python2.7/dist-packages/fmriprep_docker.py", line 292, in main
    mem_total = check_memory(opts.image)
  File "/usr/local/lib/python2.7/dist-packages/fmriprep_docker.py", line 118, in check_memory
    stdout=subprocess.PIPE)
  File "/usr/local/lib/python2.7/dist-packages/fmriprep_docker.py", line 74, in _run
    stdout, stderr = proc.communicate()
  File "/usr/lib/python2.7/subprocess.py", line 792, in communicate
    stdout = _eintr_retry_call(self.stdout.read)
  File "/usr/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call
    return func(*args)
KeyboardInterrupt

Thank you for the help!

There are some steps in the pipeline that take a long time with not output
on the terminal (for example 1-2h for skullstripping and normalization).
Are you sure this is not the case?
On Fri, Aug 4, 2017 at 9:21 AM, yidilozdemir notifications@github.com
wrote:

Hello everyone,
When I am trying to run the script fmriprep-docker the terminal does not
show anything. When I do ps -au I see that the script is sort of in a sleep
mode*? This probably is a problem pertaining to my computer but I was
hoping someone would help me understand it.
When I tried to kill the script previously, the system did not recognize
its ID. I tried to do debug but couldn't figure it out.
*lab 21067 0.0 0.1 22680 5240 pts/18 Ss 12:17 0:00 bash
root 21089 0.0 0.1 55032 4056 pts/18 S+ 12:18 0:00 sudo fmriprep-d
root 21090 1.9 0.5 58252 22672 pts/18 S+ 12:18 0:00 /usr/bin/python
root 21102 0.1 0.4 528616 17000 pts/18 Sl+ 12:18 0:00 docker run --rm
lab 21224 0.0 0.0 37368 3372 pts/0 R+ 12:18 0:00 ps -au
Whenever I stop the script by ctrl C, the same "traceback" shows as below
so I guess this is where the problem is?
lab@lab-ThinkStation-E31:~/Desktop/freesurfer$ sudo fmriprep-docker --anat-only /home/lab/Desktop/freesurfer/ds001 /home/lab/Desktop/freesurfer/ds001 participant bash -x ./fmriprep-docker
[sudo] password for lab:
^CTraceback (most recent call last):
File "/usr/local/bin/fmriprep-docker", line 11, in
load_entry_point('fmriprep-docker==0.6.0', 'console_scripts', 'fmriprep-docker')()
File "/usr/local/lib/python2.7/dist-packages/fmriprep_docker.py", line 292, in main
mem_total = check_memory(opts.image)
File "/usr/local/lib/python2.7/dist-packages/fmriprep_docker.py", line 118, in check_memory
stdout=subprocess.PIPE)
File "/usr/local/lib/python2.7/dist-packages/fmriprep_docker.py", line 74, in _run
stdout, stderr = proc.communicate()
File "/usr/lib/python2.7/subprocess.py", line 792, in communicate
stdout = _eintr_retry_call(self.stdout.read)
File "/usr/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call
return func(*args)
KeyboardInterrupt
Thank you for the help!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/fmriprep/issues/644, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOkp51auRbNGwL6n-UlwKOkU2wfgFvYks5sU0T4gaJpZM4Ot6tG
.

I ran the script multiple times and it would immediately ask me something like if I am willing to use my docker memory space, then the terminal window would always show what job it's currently doing along with some other stuff.

(I am just doing this to show how unresponsive the script is with sudo-which I need because I have some access issues)
lab@lab-ThinkStation-E31:~/Desktop/freesurfer/ds001$ fmriprep-docker
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.30/images/json?filters=%7B%22reference%22%3A%7B%22poldracklab%2Ffmriprep%3A0.6.0%22%3Atrue%7D%7D: dial unix /var/run/docker.sock: connect: permission denied
usage: fmriprep-docker [-h] [-v] [-i IMG] [-w WORK_DIR]
[--output-grid-reference OUTPUT_GRID_REFERENCE]
[-f PATH] [-n PATH] [-p PATH] [--shell] [--config PATH]
[bids_dir] [output_dir] [{participant}]
(...)
Image 'poldracklab/fmriprep:0.6.0' is missing
Would you like to download? [Y/n] Y
Downloading. This may take a while...
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.30/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
Could not detect memory capacity of Docker container.
Do you have permission to run docker?
lab@lab-ThinkStation-E31:~/Desktop/freesurfer/ds001$ sudo fmriprep-docker
and this does not show anything

Maybe you can avoid using sudo by adding your user to docker group?
On Fri, Aug 4, 2017 at 9:38 AM, yidilozdemir notifications@github.com
wrote:

(I am just doing this to show how unresponsive the script is with
sudo-which I need because I have some access issues)
lab@lab-ThinkStation-E31:/Desktop/freesurfer/ds001$ fmriprep-docker
Got permission denied while trying to connect to the Docker daemon socket
at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.
sock/v1.30/images/json?filters=%7B%22reference%22%3A%
7B%22poldracklab%2Ffmriprep%3A0.6.0%22%3Atrue%7D%7D: dial unix
/var/run/docker.sock: connect: permission denied
usage: fmriprep-docker [-h] [-v] [-i IMG] [-w WORK_DIR]
[--output-grid-reference OUTPUT_GRID_REFERENCE]
[-f PATH] [-n PATH] [-p PATH] [--shell] [--config PATH]
[bids_dir] [output_dir] [{participant}]
(...)
Image 'poldracklab/fmriprep:0.6.0' is missing
Would you like to download? [Y/n] Y
Downloading. This may take a while...
docker: Got permission denied while trying to connect to the Docker daemon
socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.30/containers/create:
dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
Could not detect memory capacity of Docker container.
Do you have permission to run docker?
lab@lab-ThinkStation-E31:/Desktop/freesurfer/ds001$ sudo fmriprep-docker
and this does not show anything
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/fmriprep/issues/644#issuecomment-320295548,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOkp5FQ8Y_33BuxgWLQP-nWuDa_iB0Dks5sU0kMgaJpZM4Ot6tG
.

Can you check top (or better, htop), and see if AntsRegistration.sh or some freesurfer tool is running? Your command will run recon-all, unless you have a fully run subject in /home/lab/Desktop/freesurfer/ds001/freesurfer.

What version are you running? (Sorry, didn't see last comments when I posted.)

I don't have a fully run subject; my previous recon-all using the script gave some errors in auto segmentation and exited, and I cannot delete that folder because of restrictions.

Regarding sudo fmriprep-docker not showing anything, it can take a few seconds (~5-20s) to display the help. The reason is that it starts up the docker container to get the original help (this keeps us from having to keep the help for the wrapper and the underlying program in sync). How much time are you giving it?
If you are able to get any output at all, can you add --nthreads 1 --debug to your fmriprep-docker call? If something runs, it should tell you the name of the node being executed...

It has been 10 minutes and it still is not showing anything. I will add the debug to my command line but I wasn't able to get anything output. I waited for the script for like half an hour, and usually it would give a good amount of output by that time. I am restarting my system again, maybe this will kill any process related to the previous unfinished subject.
Thank you all for the help

Sorry for keeping this thread busy, I restarted the computer to refresh the environments, and it shows the error now:
docker: Error response from daemon: create 1: volume name is too short, names should be at least two alphanumeric characters.
I think it is about my DICOM conversion.
Thank you!

authors: chrisfilo effigies yidilozdemir


text:
ENH: Switch to the refactored report generation from NiWorkflows

In preparation for #1596 and #1586, this PR fully migrates fMRIPrep's generation of reports to NiWorkflows.
A side work stripping out some sentry tracking of errors from the generation function was necessary. The idea would be to keep cleaning up the run.py script from sentry tracking by moving more functions to fmriprep/utils/sentry.py.

This PR splits some of the changes of #1596, so that one can be reviewed after this is merged to only show changes that pertain to the new --output-spaces argument.

I assume a CircleCI build should show up?

Yep, it should - https://circleci.com/workflow-run/f9a5dfd6-a0c6-4e53-8924-ee81fef969b6

Cool. I'll wait on that to review.

Okay, this seems to be getting closer. Please notice that ds005 is generating a T1w-to-MNI152NLin6Asym that is not supposed to appear. I think it comes from ICA-AROMA? I'll let you know when I find out.

@oesteban I can't restart the failed job because it's under your user in Circle.

I'll try to get back at this. I found out that it is 99% sure an old reportlet perpetuating under work/reportlets. I've cleaned up the cache and now I delete the reportlets folder after the anatomical workflow.
However, the job would not run now. I think in part because of #1602 as the anatomical work dir is not being reused.

Actually, I'm wrong: in the cleanup I mistakenly included the freesurfer dir for deletion. Fixing that now.

Thanks for #1602, this build should be the one.

@effigies green lights! at last!

I agree we will eventually want to get the control over the config file back to fMRIPrep. However, I would keep the fmriprep.yml file as the base exemplar in Niworkflows.
Given that such a config file does not change a lot through history, I'd say to keep it in niworkflows for now and move it over here when necessary.
In theory, generate_report should keep working with user-supplied config files. That is not currently tested. What I'm trying to say is that everything should be in place for us to move the config file here when we want.
I'll go ahead and merge this in.

authors: effigies oesteban


text:
Minimal error in docstring

Solves #780
The function requires that user introduced the air's density in [kg/km3]. However the docstring claimed to be input in [kg/m3]. This pull request solves this minimal issue :relaxed:

Thanks @jorgepiloto ! A small step towards correctness :)

repo: poliastro/poliastro


text:
Draft Data models of No-code policies

Users should specify three components to author a policy: CustomAction, Procedure, and Execution.

CustomAction: ActionType (the GovernableAction it builds upon), a filter code block, and a community name.
Procedure: an abstract class. There are two procedures available now: VotingProcedure and PermissionProcedure.

VotingProcedure: Because the initiate_vote and post_message function interfaces differ across integrations, we added subclasses in each integration, such as SlackVotingProcedure.
PermissionProcedure: for each CustomAction that has a community name, create a new Permission object

Execution: ForeignKey to the Governable Action

Can you clean up the PR and remove all the files where you've made changes to the file permissions? That'll make it easier to see what you did, thanks!

authors: amyxzhang leijie-wang

repo: policykit/policykit