GetCifar10Data operation (in CIFAR10 example) fails with GME storage

There are really two issues here. One is that the following error occurs when using GME storage:

The second issue is that this error isn't handled well when running the pipeline and it just seems to stop. Errors thrown when uploading the resulting data should report the operation as failed and show the error.

For me using GMEStorage with server execution, somehow, the file results.json is never written and this causes the LocalExecutor to fail because it cannot find the file.

This appears to be an issue with the BlobClient's putFile method failing silently when uploading a stream. Generally, when the job shows up as a success but results.json is not written, it means that something failed when uploading the results to their corresponding storage backends.

As this is caused by a dependency, I am going to remove this from the milestone so it doesn't block the other bug fixes marked for v2.4.1

This is failing for me even using the sciserver-files service.

Is this resolved?

Unfortunately not. The first portion of it (error handling) was fixed in the referenced PR from webgme-engine but the CONNRESET errors still happen for me.
I had deprioritized this since it wasn't an issue for the deployment and was specific to the GME storage backend but I will make an issue on webgme-engine now.

Just opened an issue: https://github.com/webgme/webgme-engine/issues/240


Clean deps

Link to https://github.com/wechaty/python-wechaty/issues/163

@wj-Mcat I'll merge it for testing.


Is it possible to name a lock based on configuration item only available at runtime?

I have a problem with my current system and I have one idea about solving it - maybe you have another.
I have two different software installations in different locations. They share the same (Mongo) database but each connects to a different replicas - at most, syncing takes 5 minutes guaranteed. The shedlock collection is one of the shared collections.
Now what I think is happening is when a job starts, both installations claim the same lock - neither knows about the other because of the replication delay. In itself that’s ok (each job has a regionId parameter when deciding what work to do). However at some point conflicting updates will occur, which causes some issues.
One resolution I thought of is to have the lock name based on the regionId - then different locks will be created, hence no issue. However the lock name is part of the annotation, which means it can’t be calculated based on this regionId.
What would be the best way to do this, assuming I can’t change the database configuration? Am I missing something regarding specifying the lock name at runtime?
Thanks,
Ian

Hi, thanks for feedback. In Spring you can use SpEL in the annotations so the lock name can be configured or even generated in the runtime.

SpEL looks like it will solve my problem - thanks for the suggestion.


[Task]: Fix available balance reactivity in SendFormPopup

Task description
If user initiates new send flow and opens SendFormPopup while there is a pending transaction in progress, when that transaction gets confirmed the available balance is not updated in the popup. User can than input the value that is greater than the new available balance, because the old available balance is still displayed and used in validation, and proceed to SendConfirmationPopup where an error notification will be thrown.
Make available balance reactive in SendFormPopup so it reflects the correct state of the balance.

Requirements
in SendFormPopup

[ ] display correct value of available balance
[ ] user cannot input and pass validation with incorrect amount

Creation checklist

[X] I have assigned this task to the correct people
[X] I have added the most appropriate labels
[X] I have linked the correct milestone and/or project

@brancoder blocked by the refactor, once thats done we can get into improving this


Add Schema in all the examples

Hi,
First of all I would like to thankyou for your wonderful contribution towards AMP,
Even though all the amp validators will pass your page, but you will get the errors like this in webmaster tool

Please add schemas in all the examples. Or else people will make mistakes who will follow you blindly.

Metadata is only required for articles that should appear in the Top Stories News Carousel (and this is what the search console error is about). Metadata is not required for AMPs to appear in the search results.
We don't include metadata in the samples as the article markup doesn't fit the samples + some samples define their own metadata markup which makes things even more confusing.


MST / PrivBayes fail when a (categorical) value does not appear in the data.

The post-processing step with the following message (log from my machine, with a run from prive). This is probably a mst specific bug rather than reprosyn, but I haven't had the time to check.
Traceback (most recent call last):
  File "/Users/fhoussiau/workspace/privacy-sdg-toolbox/own-research/paper/experiment_mia.py", line 121, in <module>
    threat_model._generate_samples(num_samples=num_training, training=True)
  File "/Users/fhoussiau/workspace/privacy-sdg-toolbox/prive/threat_models/attacker_knowledge.py", line 385, in _generate_samples
    gen_datasets = [
  File "/Users/fhoussiau/workspace/privacy-sdg-toolbox/prive/threat_models/attacker_knowledge.py", line 386, in <listcomp>
    self.atk_know_gen(ds) for ds in self.iterator_tracker(training_datasets)
  File "/Users/fhoussiau/workspace/privacy-sdg-toolbox/prive/threat_models/attacker_knowledge.py", line 234, in __call__
    return self.generate(training_dataset)
  File "/Users/fhoussiau/workspace/privacy-sdg-toolbox/prive/threat_models/attacker_knowledge.py", line 258, in generate
    return self.generator(training_dataset, self.num_synthetic_records)
  File "/Users/fhoussiau/workspace/privacy-sdg-toolbox/prive/generators/generator.py", line 30, in __call__
    return self.generate(num_samples)
  File "/Users/fhoussiau/workspace/privacy-sdg-toolbox/own-research/paper/experiment_mia.py", line 34, in generate
    model.run()
  File "/Users/fhoussiau/Library/Caches/pypoetry/virtualenvs/prive-Lu1J6cTh-py3.9/lib/python3.9/site-packages/reprosyn/generator.py", line 82, in run
    self.postprocess()
  File "/Users/fhoussiau/Library/Caches/pypoetry/virtualenvs/prive-Lu1J6cTh-py3.9/lib/python3.9/site-packages/reprosyn/methods/mbi/privbayes.py", line 140, in postprocess
    self.output = recode_as_original(self.output.df, self.mapping)
  File "/Users/fhoussiau/Library/Caches/pypoetry/virtualenvs/prive-Lu1J6cTh-py3.9/lib/python3.9/site-packages/reprosyn/generator.py", line 165, in recode_as_original
    data[col] = data[col].apply(lambda x: mapping[col][x])
  File "/Users/fhoussiau/Library/Caches/pypoetry/virtualenvs/prive-Lu1J6cTh-py3.9/lib/python3.9/site-packages/pandas/core/series.py", line 4433, in apply
    return SeriesApply(self, func, convert_dtype, args, kwargs).apply()
  File "/Users/fhoussiau/Library/Caches/pypoetry/virtualenvs/prive-Lu1J6cTh-py3.9/lib/python3.9/site-packages/pandas/core/apply.py", line 1088, in apply
    return self.apply_standard()
  File "/Users/fhoussiau/Library/Caches/pypoetry/virtualenvs/prive-Lu1J6cTh-py3.9/lib/python3.9/site-packages/pandas/core/apply.py", line 1143, in apply_standard
    mapped = lib.map_infer(
  File "pandas/_libs/lib.pyx", line 2870, in pandas._libs.lib.map_infer
  File "/Users/fhoussiau/Library/Caches/pypoetry/virtualenvs/prive-Lu1J6cTh-py3.9/lib/python3.9/site-packages/reprosyn/generator.py", line 165, in <lambda>
    data[col] = data[col].apply(lambda x: mapping[col][x])
KeyError: 2

Actually this error occurs in the test notebook at https://github.com/alan-turing-institute/reprosyn/blob/main/examples/reprosyn_as_package.ipynb

I have produced a simple example (using prive to load the data) that produces this error.
from reprosyn.methods import MST
import prive.datasets

data = prive.datasets.TabularDataset.read("path/to/census_and_json")
data = data.sample(5)
model = MST(dataset=data.data, metadata=data.description, size=100)
model.run()


No documentation available to learn about the various functions and the parameters required for them.

i am a newbie to pykinect2, and there are no reliable sources available to get to know about the functions included in the library. also the example included in the library, doesn't help much and there is no help available when we want to utilise the Depth and IR stream. Moreover, there also are significant changes in the library when compared to pykinect, and hence the examples available for it dont help either.
i would be grateful for any help!

+1

+1. Please any help understading how to connect to Kinect's depth sensor ?

+1

+1
@chriss2401 Take the Infrared Example and replace infrared with depth. Do it case sensitive.
Start with self._kinect = PyKinectRuntime.PyKinectRuntime(PyKinectV2.FrameSourceTypes_Depth)  ...
I'd like to have documentation, too. I managed to convert the depth image to a 3D Pointcloud (with the mapper), but now I have a memory leak I can't pinpoint/fix.
        depth_frame = kinect.get_last_depth_frame()
        # size must be what the kinect offers as depth frame
        assert L == depth_frame.size
        # create C-style Type
        TYPE_CameraSpacePoint_Array = PyKinectV2._CameraSpacePoint * L
        # instance of that type
        csps = TYPE_CameraSpacePoint_Array()
        # cstyle pointer to our 1d depth_frame data
        ptr_depth = np.ctypeslib.as_ctypes(depth_frame.flatten())
        # calculate cameraspace coordinates
        error_state = self._kinect._mapper.MapDepthFrameToCameraSpace(
                                                                L, ptr_depth,
                                                                L, csps)
        # 0 means everythings ok, otherwise failed!
        if error_state:
            raise "Could not map depth frame to camera space! "
            + str(error_state)

        # convert back from ctype to numpy.ndarray
        pf_csps = ctypes.cast(csps, ctypes.POINTER(ctypes.c_float))
        data = np.copy(np.ctypeslib.as_array(pf_csps, shape=(self.HEIGHT, self.WIDTH,
                                                     3)))
        del pf_csps, csps, ptr_depth, TYPE_CameraSpacePoint_Array
        return data

+1

+1

+1

+1

+1


update-xcode-project-provisioning 1.1.0

New Pull Request Checklist
Please mark the points which you did / accept.

[x] I will not move an already shared step version's tag to another commit
[x] I read the Step Development Guideline
[x] I have a test for my Step, which can be run with bitrise run test (in the step's repository)
[x] I did run bitrise run audit-this-step (in the step's repository - note, if you don't have this workflow in your bitrise.yml, you can copy it from the step template.)
[x] I read and accept the Abandoned Step policy

Hi @cupojoe ,
great step, thanks for the new version!


Python version issue

Have done install, and it only installed version 0.1.0
I tried to install version 1.1.0-rc8 however it won't install as it requires python version 3.9 but my python is more advanced at version 3.11
Does it specifically need python 3.9 or does it need to check for 3.9 or later
With version 0.1.0, --list-device-reg does not work, I assume this is in later versions?

I have a restriction from >=3.9, <3.11 as I was building for Home Assistant which uses 3.9 and 3.10 for supported versions.  I will try to update to allow also 3.11 will have to test it but my target will always be 3.10 until home assistant moves to the next python version.
Please would you put some detail on your setup, there are so many setups its confusing, for example I have a single heatpump with no connected thermostats (separate heating controls which were already there).  Also I have two optional circuits installed HC1 and HC2 for domestic hot water
Pump was installed in  2019 (there are two API versions now).
At the moment I only have 3 use cases and 2 are very similar so there is a lot of guess work going on :)

I'm only using python to test this out so I have downgraded to python 3.10
I have now installed version 1.1.0-rc8
--list-device-reg is now working for me
I'll pop my setup details on here later. Just wanted to quickly reply so you didn't waste your time checking python 3.11

Is there a command for looking at a particular register value? For example, can I make it show me just "I_12" rather than trawling through all the raw data each time?

No worries I need to bump it to version 3.10 anyway as HASS is now min version of 3.10, I supposed I can put an option, I was thinking of putting a value after the display reg to show that as its a pain for me too.

Is there a command for looking at a particular register value? For example, can I make it show me just "I_12" rather than trawling through all the raw data each time?

Added this feature to issue #40


[IMPROVEMENT] Update PSP validation in the Longhorn upstream chart

Update PSP Helm validation so that it prevents user from enabling PSP in Kuberentes >= 1.25. The validation file should be like this:
#{{- if gt (len (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "")) 0 -}}
#{{- if .Values.enablePSP }}
#{{- if not (.Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy") }}
#{{- fail "The target cluster does not have the PodSecurityPolicy API resource. Please disable PSPs in this chart before proceeding." -}}
#{{- end }}
#{{- end }}
#{{- end }}

Ref: https://github.com/rancher/rancher/issues/40342

Also, need to update the readme as well. The change in the Rancher chart PR looks general, so suggest updating as well.

Test plan:

Create 2 downstream clusters: One 1.24 and one 1.25 Kubernetes version
Install Longhorn helm chart with enablePSP set to true. Verify that:

On K8s 1.24 cluster, it is installed fine
On K8s 1.25 cluster, it failed to be installed with the PSP error message

For the 1.25 cluster,

Try to remove the Helm secrete and reinstall  Longhorn helm chart with enablePSP set to false.
Verify that it is installed ok

For the 1.24 cluster:

Perform the in-place upgrade of the same chart but with enablePSP set to false
Upgrade K8s to 1.25
Verify that the Longhorn system is healthy

Verified passed on master-head (longhorn 1deb512) by following the test steps.


Environment variables are incorrect

Environment data

VS Code version: 1.36
Extension version (available under the Extensions sidebar): Python 2019.9.34911; Remote SSH 0.45.6
OS and version: macOS Mojave 10.14.6
Python version (& distribution if applicable, e.g. Anaconda): 3.6.3 64 bit
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
Relevant/affected Python packages and their versions:
Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info #3977): none

Expected behaviour
Expecting to be able to use my environment variables when running debug mode
Actual behaviour
environment variables are incorrect and do not match what I would normally get in the bash terminal
Steps to reproduce:
I'm trying to run debug via remote ssh extension.
Using this launch configuration:
{
    "name": "mia",
    "type": "python",
    "request": "launch",
    "sudo": true,
    "program": "/home/tdeng/a/bin/program.py",
    "env": { "USER" : "tdeng"},
}

When I click debug "mia", this statement returns the wrong value:
user = os.environ.get("USER")
as well as a variety of other environment variables. On my env, it user should equal "tdeng" my username, but instead, it returns "root". I've set the "env" in launch.json but it doesn't affect this (& I also would like to not use that since I want to keep my env variables in one place).
I've also set "terminal.integrated.inheritEnv": false, but this did not affect this call either. When I run echo $USER in the integrated terminal, i get "tdeng" for example.
In addition, if I were to run "/home/tdeng/a/bin/program.py" by clicking the "Run python file in terminal" button, it does work properly.
Posted here originally without it being resolved ):
https://stackoverflow.com/questions/58115595/getting-incorrect-environment-variables-in-vs-code-debug-mode

Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
XXX

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
XXX

If you put something like "TESTENV": "1234" in the debug config. Is that being picked up?

tried adding "env": { "TESTENV" : "1234"}, to the launch config & removed the older env config. tried this in the debug console os.environ.get("TESTENV") & got None. seems like it's not picking it up.

Can you try setting "logToFile": true in your debug configuration? and try running. This should create a log file in some location like this: ~/.vscode-server/extensions/ms-python.python-2019.9.34911/debug<pid>.log . If there is no log file that means it is not using that debug configuration. If there is a log file please share it, redact any personal info from the logs before sharing.

the log file does exist, here it is:
2019-10-4, 20:39:44.888 UTC
[20:39:44.888 UTC] Started @ Fri Oct 04 2019 20:39:44 GMT+0000 (Coordinated Universal Time)
[20:39:44.888 UTC] From Client:
[20:39:44.888 UTC] Content-Length: 313

{"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"python","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us"},"type":"request","seq":1}
[20:39:44.889 UTC] To Client:
[20:39:44.889 UTC] Content-Length: 761

{"seq":1,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"supportsExceptionInfoRequest":true,"supportsConfigurationDoneRequest":true,"supportsDelayedStackTraceLoading":true,"supportsConditionalBreakpoints":true,"supportsSetVariable":true,"supportsExceptionOptions":true,"supportsGotoTargetsRequest":true,"supportsEvaluateForHovers":true,"supportsModulesRequest":true,"supportsValueFormattingOptions":true,"supportsHitConditionalBreakpoints":true,"supportsSetExpression":true,"supportsLogPoints":true,"supportTerminateDebuggee":true,"supportsCompletionsRequest":true,"exceptionBreakpointFilters":[{"filter":"raised","label":"Raised Exceptions","default":false},{"filter":"uncaught","label":"Uncaught Exceptions","default":true}]}}
[20:39:44.889 UTC] From Client:
[20:39:44.889 UTC] Content-Length: 680

{"command":"launch","arguments":{"name":"mia","type":"python","request":"launch","sudo":true,"program":"/home/tdeng/ans/bin/redacted.py","env":{"TESTENV":"1234","PYTHONIOENCODING":"UTF-8","PYTHONUNBUFFERED":"1"},"console":"integratedTerminal","logToFile":true,"pythonPath":"/home/tdeng/ans/venv/bin/python","cwd":"/home/tdeng/ans/web/lib/a","envFile":"/home/tdeng/ans/web/lib/a/.env","stopOnEntry":false,"showReturnValue":true,"internalConsoleOptions":"neverOpen","debugOptions":["ShowReturnValue","RedirectOutput","Sudo"],"justMyCode":true,"workspaceFolder":"/home/tdeng/ans/web/lib/a","__sessionId":"42019a1a-a890-4d42-bc2e-f9c1988a70b7"},"type":"request","seq":2}
[20:39:44.889 UTC] To Client:
[20:39:44.889 UTC] Content-Length: 485

{"command":"runInTerminal","arguments":{"kind":"integrated","title":"Python Debug Console","cwd":"/home/tdeng/ans/web/lib/a","args":["sudo","/home/tdeng/ans/venv/bin/python","/home/tdeng/.vscode-server/extensions/ms-python.python-2019.9.34911/pythonFiles/ptvsd_launcher.py","--default","--client","--host","localhost","--port","30968","/home/tdeng/ans/bin/redacted.py"],"env":{"TESTENV":"1234","PYTHONIOENCODING":"UTF-8","PYTHONUNBUFFERED":"1"}},"type":"request","seq":2}
[20:39:45.478 UTC] From Client:
[20:39:45.478 UTC] Content-Length: 116

{"type":"response","seq":3,"command":"runInTerminal","request_seq":2,"success":true,"body":{"shellProcessId":97555}}
[20:39:50.236 UTC] To Client:
[20:39:50.236 UTC] Content-Length: 680

[20:39:50.236 UTC] To Client:
[20:39:50.236 UTC] {"command":"launch","arguments":{"name":"mia","type":"python","request":"launch","sudo":true,"program":"/home/tdeng/ans/bin/redacted.py","env":{"TESTENV":"1234","PYTHONIOENCODING":"UTF-8","PYTHONUNBUFFERED":"1"},"console":"integratedTerminal","logToFile":true,"pythonPath":"/home/tdeng/ans/venv/bin/python","cwd":"/home/tdeng/ans/web/lib/a","envFile":"/home/tdeng/ans/web/lib/a/.env","stopOnEntry":false,"showReturnValue":true,"internalConsoleOptions":"neverOpen","debugOptions":["ShowReturnValue","RedirectOutput","Sudo"],"justMyCode":true,"workspaceFolder":"/home/tdeng/ans/web/lib/a","__sessionId":"42019a1a-a890-4d42-bc2e-f9c1988a70b7"},"type":"request","seq":2}
[20:39:50.236 UTC] To Client:
[20:39:50.236 UTC] Content-Length: 313

[20:39:50.236 UTC] To Client:
[20:39:50.236 UTC] {"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"python","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us"},"type":"request","seq":1}
[20:39:50.237 UTC] To Client:
[20:39:50.237 UTC] Content-Length: 130

{"type": "event", "seq": 0, "event": "output", "body": {"category": "telemetry", "output": "ptvsd", "data": {"version": "4.3.2"}}}
[20:39:50.238 UTC] To Client:
[20:39:50.238 UTC] Content-Length: 113

{"type": "response", "seq": 1, "request_seq": 2, "success": true, "command": "launch", "message": "", "body": {}}
[20:39:50.238 UTC] To Client:
[20:39:50.238 UTC] Content-Length: 865

{"type": "response", "seq": 2, "request_seq": 1, "success": true, "command": "initialize", "message": "", "body": {"supportsCompletionsRequest": true, "supportsConditionalBreakpoints": true, "supportsConfigurationDoneRequest": true, "supportsDebuggerProperties": true, "supportsDelayedStackTraceLoading": true, "supportsEvaluateForHovers": true, "supportsExceptionInfoRequest": true, "supportsExceptionOptions": true, "supportsHitConditionalBreakpoints": true, "supportsLogPoints": true, "supportsModulesRequest": true, "supportsSetExpression": true, "supportsSetVariable": true, "supportsValueFormattingOptions": true, "supportTerminateDebuggee": true, "supportsGotoTargetsRequest": true, "exceptionBreakpointFilters": [{"filter": "raised", "label": "Raised Exceptions", "default": false}, {"filter": "uncaught", "label": "Uncaught Exceptions", "default": true}]}}Content-Length: 63

{"type": "event", "seq": 3, "event": "initialized", "body": {}}
[20:39:50.243 UTC] To Client:
[20:39:50.243 UTC] Content-Length: 189

{"type": "event", "seq": 4, "event": "process", "body": {"name": "/home/tdeng/ans/bin/redacted.py", "systemProcessId": 97639, "isLocalProcess": true, "startMethod": "launch"}}
[20:39:50.322 UTC] From Client:
[20:39:50.322 UTC] Content-Length: 89

{"command":"setExceptionBreakpoints","arguments":{"filters":[]},"type":"request","seq":4}
[20:39:50.323 UTC] To Client:
[20:39:50.323 UTC] Content-Length: 130

[20:39:50.323 UTC] To Client:
[20:39:50.323 UTC] {"type": "response", "seq": 5, "request_seq": 4, "success": true, "command": "setExceptionBreakpoints", "message": "", "body": {}}
[20:39:50.359 UTC] From Client:
[20:39:50.359 UTC] Content-Length: 56

{"command":"configurationDone","type":"request","seq":5}
[20:39:50.360 UTC] To Client:
[20:39:50.360 UTC] Content-Length: 124

[20:39:50.398 UTC] To Client:
[20:39:50.398 UTC] {"type": "response", "seq": 6, "request_seq": 5, "success": true, "command": "configurationDone", "message": "", "body": {}}
[20:39:50.408 UTC] From Client:
[20:39:50.408 UTC] Content-Length: 46

{"command":"threads","type":"request","seq":6}
[20:39:50.409 UTC] To Client:
[20:39:50.409 UTC] Content-Length: 92

[20:39:50.446 UTC] To Client:
[20:39:50.446 UTC] {"type": "event", "seq": 7, "event": "thread", "body": {"reason": "started", "threadId": 1}}Content-Length: 158

{"type": "response", "seq": 8, "request_seq": 6, "success": true, "command": "threads", "message": "", "body": {"threads": [{"id": 1, "name": "MainThread"}]}}
[20:39:50.556 UTC] From Client:
[20:39:50.556 UTC] Content-Length: 46

{"command":"threads","type":"request","seq":7}
[20:39:50.583 UTC] To Client:
[20:39:50.583 UTC] Content-Length: 158

[20:39:50.583 UTC] To Client:
[20:39:50.583 UTC] {"type": "response", "seq": 9, "request_seq": 7, "success": true, "command": "threads", "message": "", "body": {"threads": [{"id": 1, "name": "MainThread"}]}}
[20:39:52.503 UTC] To Client:
[20:39:52.503 UTC] Content-Length: 1902

// redacted some code
[20:39:52.504 UTC] To Client:
[20:39:52.504 UTC] Content-Length: 92

{"type": "event", "seq": 11, "event": "thread", "body": {"reason": "exited", "threadId": 1}}
[20:39:52.860 UTC] To Client:
[20:39:52.860 UTC] Content-Length: 72

{"type": "event", "seq": 12, "event": "exited", "body": {"exitCode": 0}}
[20:39:52.860 UTC] onEventTerminated
[20:39:52.860 UTC] To Client:
[20:39:52.860 UTC] Content-Length: 63

{"type": "event", "seq": 13, "event": "terminated", "body": {}}
[20:39:52.876 UTC] From Client:
[20:39:52.876 UTC] Content-Length: 79

{"command":"disconnect","arguments":{"restart":false},"type":"request","seq":8}
[20:39:52.877 UTC] To Client:
[20:39:52.877 UTC] Content-Length: 118

[20:39:52.914 UTC] onResponseDisconnect
[20:39:52.914 UTC] To Client:
[20:39:52.914 UTC] {"type": "response", "seq": 14, "request_seq": 8, "success": true, "command": "disconnect", "message": "", "body": {}}
[20:39:52.930 UTC] check and shutdown

@karthiknadig following up on this! is there any more info i can provide?

@timdeng2324 Looks like we have a bug when using "sudo": true . We are not passing the environment variables correctly when using sudo.

@int19h I think this scenario is handled correctly in the new debug adapter. But we need a test for this in the debugger repo.

Hi @karthiknadig , we can not get env value when debug a python file with root privilege https://github.com/microsoft/vscode/issues/82544

Sudo doesn't inherit environment variables automatically. There is an option for that security concern (-E), if it's allowed in the server sudoer configuration. You may want to try with this option.

We do use sudo -E to spawn the launcher now, so this should be fixed.


Pyside6 App Builds and Runs Ok With Nuitka 1.86 But Builds and Fails To run On Nuitka 1.9 through to 2.01 - Now has MRE

Nuitka version, full Python version, flavor, OS, etc. as output by this exact command.
1.9
Commercial: None
Python: 3.11.7 (main, Feb  4 2024, 09:52:17) [GCC 11.4.0]
Flavor: Unknown
Executable: /home/david/PycharmProjects/pydev3117_noshare/bin/python
OS: Linux
Arch: x86_64
Distribution: Linuxmint (based on Ubuntu) 21.3
Version C compiler: /usr/bin/gcc (gcc 11).

How did you install Nuitka and Python
I use the Pycharm Python Package Tools To Install Nuitka And Python into a virtual environment setup with venv

The specific PyPI names and versions
Note this is the the freeze from the Nuitka 1.9 install. For The Nutika 1.86 build I delete Nuitka 1.9 and install Nuitka 1.86 - This is the only difference in the freeze list

appdirs==1.4.4 asyncio~=3.4.3 attrs==23.2.0 certifi==2024.2.2 charset-normalizer==3.3.2 fs==2.4.16 idna==3.6 netifaces==0.11.0 **Nuitka==1.9** numpy==1.26.3 ordered-set==4.1.0 pathvalidate==3.2.0 platformdirs==4.1.0 psutil==5.9.8 pycryptodome==3.20.0 PySide6==6.6.1 PySide6-Addons==6.6.1 PySide6-Essentials==6.6.1 python-dateutil==2.8.2 pytz==2023.3 PyYAML==6.0.1 regex==2023.8.8 requests==2.31.0 shellescape==3.8.1 shiboken6==6.6.1 six==1.16.0 titlecase==2.4.1 typing==<IP_ADDRESS> tzlocal==5.2 urllib3==2.2.0 xmltodict==0.13.0 zstandard==0.22.0

Many times when you get an error from Nuitka, your setup may be special

When compiled with Nuitka 1.86 the program installed on a minimal, clean install of Mx Linux  produces this output as it launches the program:
Note the programs runs correctly and passes all tests
$ ./black-dvd-archiver_1_86
qt.multimedia.ffmpeg.libsymbolsresolver: Couldn't load VAAPI library

When compiled with Nuitka 1.9 and above the program installed on a minimal, clean install of Mx Linux produces this output and the program never starts:
Note the programs never starts after the below error

$ ./black-dvd-archiver_1_9
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: vkkhrdisplay, wayland, eglfs, minimal, offscreen, xcb, minimalegl, wayland-egl, vnc, linuxfb.

Also supply a Short, Self Contained, Correct, Example

import sys

from PySide6.QtCore import QPoint, QTimer, QTime, Qt
from PySide6.QtGui import (QGuiApplication, QPainter, QPalette, QPolygon, QRasterWindow)

class AnalogClockWindow(QRasterWindow):

    def __init__(self):
        super().__init__()
        self.setTitle("Analog Clock")
        self.resize(200, 200)

        self._timer = QTimer(self)
        self._timer.timeout.connect(self.update)
        self._timer.start(1000)

        self._hour_hand = QPolygon([QPoint(5, 14), QPoint(-5, 14),
                                    QPoint(-4, -71), QPoint(4, -71)])
        self._minute_hand = QPolygon([QPoint(4, 14), QPoint(-4, 14),
                                      QPoint(-3, -89), QPoint(3, -89)])
        self._seconds_hand = QPolygon([QPoint(1, 14), QPoint(-1, 14),
                                       QPoint(-1, -89), QPoint(1, -89)])

        palette = qApp.palette()
        self._background_color = palette.color(QPalette.Window)
        self._hour_color = palette.color(QPalette.Text)
        self._minute_color = palette.color(QPalette.Text)
        self._seconds_color = palette.color(QPalette.Accent)

    def paintEvent(self, e):
        with QPainter(self) as painter:
            self.render(painter)

    def render(self, painter):
        width = self.width()
        height = self.height()

        side = min(width, height)

        painter.fillRect(0, 0, width, height, self._background_color)
        painter.setRenderHint(QPainter.Antialiasing)
        painter.translate(width / 2, height / 2)
        painter.scale(side / 200.0, side / 200.0)

        time = QTime.currentTime()

        painter.setPen(Qt.NoPen)
        painter.setBrush(self._hour_color)

        painter.save()
        painter.rotate(30.0 * ((time.hour() + time.minute() / 60.0)))
        painter.drawConvexPolygon(self._hour_hand)
        painter.restore()

        for i in range(0, 12):
            painter.drawRect(73, -3, 16, 6)
            painter.rotate(30.0)

        painter.setBrush(self._minute_color)

        painter.save()
        painter.rotate(6.0 * time.minute())
        painter.drawConvexPolygon(self._minute_hand)
        painter.restore()

        painter.setBrush(self._seconds_color)

        painter.save()
        painter.rotate(6.0 * time.second())
        painter.drawConvexPolygon(self._seconds_hand)
        painter.drawEllipse(-3, -3, 6, 6)
        painter.drawEllipse(-5, -68, 10, 10)
        painter.restore()

        painter.setPen(self._minute_color)

        for j in range(0, 60):
            painter.drawLine(92, 0, 96, 0)
            painter.rotate(6.0)

if __name__ == "__main__":
    app = QGuiApplication(sys.argv)
    clock = AnalogClockWindow()
    clock.show()
    sys.exit(app.exec())

Freeze
Nuitka==1.8.6
ordered-set==4.1.0
PySide6==6.6.1
PySide6-Addons==6.6.1
PySide6-Essentials==6.6.1
shiboken6==6.6.1
zstandard==0.22.0

Compile Command - Nuitka==1.8.6 works on a clean Mx install, Nuitka==1.9 and above fails
python -m nuitka                                                                            \
--report=build_report                                                                       \
--show-anti-bloat-changes                                                                   \
--assume-yes-for-downloads                                                                  \
--follow-imports                                                                            \
--lto=yes                                                                                \
--python-flag=-OO                                                                           \
--python-flag=no_warnings                                                                   \
--python-flag=isolated                                                                      \
--verbose                                                                                \
--verbose-output=./release/verbose.txt                                                      \
--disable-console                                                                           \
--static-libpython=yes                                                                      \
--standalone                                                                                \
--onefile                                                                                \
--prefer-source-code                                                                        \
--include-qt-plugins=sensible,multimedia                                                    \
--enable-plugin=pyside6                                                                     \
--output-filename=ana_clock                                                        \
--output-dir=./release                                                                      \
 main.py

On a clean minimal Mx install the results are
Result - Nuitka 1.9 and above
$ ./ana_clock
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: vkkhrdisplay, wayland, eglfs, minimal, offscreen, xcb, minimalegl, wayland-egl, vnc, linuxfb.

 Nuitka 1.9 and above compiles but does not run on a minimal, clean install of Mx Linux
Note in the Nuitka 1.8 series I had to add the following to get a successful compile
--include-module=dbm.gnu                                                                    \
--include-module=dbm.ndbm                                                                   \
--include-module=dbm.dumb                                                                   \

Consider getting commercial support

The files might help
build_report_1_9.xml.txt
build_report_1_86.xml.txt

*The problem is not with the -package.config.yml files as I copied the Nuitka 1.9 versions to Nuitka 1.86 and Nuitka 1.86 still compiled and ran correctly on a minimal, clean install of Mx Linux
I will note that the Nuikta 1.9 build is missing 149  lfiles compared to Nuitaka 1.86

it's hard to test regressions with MWE / MRE,  can you please provide one?

The attached build_report files might be the most useful in determining the regression cause - I am still studying them

There were regressions long fixed with later 1.9 hotfix releases, and 2.0 is the current release, so this is probably just not following what the template was asking for.

Ok, Included a minimal example in my original post - I can get this problem on all versions of Nuitka from 1.9 to latest 2.01.  I would expect this minimal example to work on any clean Linux install but it certainly does not on Mx

And the results from a 2.01 with my minimal example on a clean Mx install is the same as with 1.9. Nuitka 1.86 works
./ana_clock_2_01
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: vkkhrdisplay, wayland, eglfs, minimal, offscreen, xcb, minimalegl, wayland-egl, vnc, linuxfb

Kay I think this is a live issue and should be re-opened

qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.

So this will be a DLL issue purely, your code is probably irrelevant, since you got a kind of hello Qt world issue going on. I am assuming that e.g. tests/standalone/PySide6Using.py is not going to work for you either. A report from 2.0.x would be great, since it's going to include details which PySide6 installation method you are attempting to distribute, and an improved picture on DLLs.
As of 1.9 the Linux standalone got a lot better by not including system DLLs as much. Your inability to run it though, seems to imply that those DLls may either have to be installed for Qt programs to work, or were failed to include.

Your wish is my command Kay, a 2.01 build report for the minimal example is attached:
build_report.xml.txt
I was kind of wondering if this was related to anti-bloat as  I noted in my original post that the Nuikta 1.9 build is missing 149 files compared with Nuitaka 1.86. 2.01 is kind of similar.

The portability of builds on Linux is limited, which is described in the user manual. Same machine ought to work. I understand you are having issues with same machine.

Your report doesn't contain any references to any DLL names "cursor", so if the expectation of Qt as expressed need to be met, then we need to find out where it should come from.

  <distributions>
    <distribution name="PySide6" version="6.6.1" installer="pip" />
    <distribution name="PySide6-Addons" version="6.6.1" installer="pip" />
    <distribution name="PySide6-Essentials" version="6.6.1" installer="pip" />
    <distribution name="shiboken6" version="6.6.1" installer="pip" />
  </distributions>

So indeed, pip installed, and not Debian installed, that ought to be pretty portable by itself.

I can confirm, comparing 1.86 and 1.9 that the cursor files are missing  in 1.9 and - therefore - likely  missing in 2.01
From my missing file list:
/home/david/PycharmProjects/dvdarch/pycode/1_9_Missing/libXcursor.so.1
/home/david/PycharmProjects/dvdarch/pycode/1_9_Missing/libwayland-cursor.so.0
/home/david/PycharmProjects/dvdarch/pycode/1_9_Missing/libxcb-cursor.so.0

So, Qt programs can only run if a few OS dependencies are installed. X11 or wayland seem to be among them. Nuitka no longer includes OS dependencies like these ones, the reason is simply that they conflict easily with other OS parts from the native system. I seem to remember the list of things required for PySide6 to be able to run is listed on their site somewhere, but I didn't immediately find it.
This was previously discussed in other issues, and other solutions were attempted, like making this optional.
-  Linux: Standalone builds with PyPI packages no longer include system
   DLLs unless a new Yaml configuration for DLLs called
   ``package-system-dlls`` is configured, which will be necessary for
   GTK bindings probably. With this the included DLLs will more often be
   only ones suitable for use on other OSes. This should make Linux
   standalone somewhat easier, but still need to compile on old OS.

You would have to add for PySide6 and/or shiboken6 these settings, if you you desire to do it. Currently GTK is not done like that yet, so there is no example yet, and the docs are also not updated.
For PyPI packages however, this is not the default. If you used Ubuntu PySide6, it will gladly create a dist folder that will work with that specific OS version of Ubuntu, if that is what you want. These are not too portable. Your OS libraries however are no more portable than that. With GTK there is an exception needed, because they do not contain anything GTK at all unless you provide it youself, so it has to be bad. Luckily for Qt bindings, we have a better situation.
One previous issue linked the list of requirements, but I am not looking it up now.

At this point, it's mainly a documentation issue to add these things. I will probably do it once I deal with the other issues that occured with using system libraries, that are probably lingering or closed already, not sure now.

Thank you the update Key. and providing the details of your investigation.
I will try and get 2.01 working after my next release and let you know if I do.
As an aside,  I aim to have my Linux builds work out of the box on the Distrowatch top 3 and  Unbuntu . Hopefully they work on more than that!

Just in case it helps anyone,
Adding these 3 files manually gets my python (3.11.7) Qt (6.6.3) app compiled with Nutika 2.05 working on a minimal Mx Linux install:
libwayland-cursor.so.0
libxcb-cursor.so.0
libXcursor.so.1
I put them in a folder called add_lib and added them via this line in my compile script
--include-data-files=/home/david/PycharmProjects/dvdarch/pycode/add_lib/.=./              \

The OS would have to bring these files, it's not for applications to include them though @David-Worboys so it's a bit of an extreme case, esp. as these DLLs can easily conflict with the system DLLs they need.

I guess I am not on my own as Nuitka prior to 1.9 copied these files into the build. In fact the versions I am using came from a Nuitka 1.86 (IIRC) build just in case you did patchelf magic! Given they are unpacked into the app tmp folder when the app starts and deleted when the app closes there is little to no risk these files will bother anything else.

Yes, you can use the version with the old behaviour for as long as you want, or you can make yaml configuration that will make the new one do it. I am considering it a grave bug to include these DLLs into a distribution that is intended to run on different OSes, esp. ones with these DLLs available.

I agree with you Kay, it got me over the hump but it is not the long term solution as libraries that use the cursor so files might change their API and cause a crash. I will look at the yaml configuration and see if I can make it work with that.
I notice on web searches more than a few Qt users have met these problem e.g https://forum.qt.io/topic/145196/could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found/6

Well, yes, Qt has requirements for systems supported, and Nuitka's task cannot be to fulfil them, although it may have appeared to work in the past.

I have been bitten by this a number of times, and I always wondered why pyinstaller worked while nuitka would not. Turns out, they have had exactly the observations and discussions, the only difference being that they have not (yed) decided to not include system DLLs.
https://github.com/pyinstaller/pyinstaller/issues/6993
This is just an fyi for other people coming across this issue via Google, not meant to start a discussion how nuitka should behave.


Fix issue 589

only the first item in the following list actually applies :)
Pull Request Check List

[x ] Added tests for changed code.
[x ] New features have been added to our Hypothesis testing strategy.
[x ] Changes or additions to public APIs are reflected in our type stubs (files ending in .pyi).

[x ] ...and used in the stub test file tests/typing_example.py.

[x ] Updated documentation for changed code.

[x ] New functions/classes have to be added to docs/api.rst by hand.
[x ] Changes to the signature of @attr.s() have to be added by hand too.
[x ] Changed/added classes/methods/functions have appropriate versionadded, versionchanged, or deprecated directives.

[x ] Documentation in .rst files is written using semantic newlines.
[x ] Changes (and possible deprecations) have news fragments in changelog.d.

If you have any questions to any of the points above, just submit and ask!  This checklist is here to help you, not to deter you from contributing!

hum it seems that some very old mods leaked in the rst file. It should not be part of the PR. I'm trying to remove it right now

rather closing and re-creating a proper one: the tree seems quite full of dirt here, sorry.

The diff seems ok now.
Sorry for the bad tree (commits from 2017 mentioned above), if that is a problem I can delete my attrs fork and start from a fresh one.

Could you please add a changelog entry? You've checked it in the checklist but I can't find it. ;)
Please run Black (or just tox -e lint), it's failing the CI.

Thanks!

Oh sorry - sure, I'll do.
Actually I'll close this PR and open another one with cleaner history.

Don't worry about the history, we squash on merge anyways.

The tox lint config does not seem to take into account proxy environment variables. I am located behind a corporate proxy so it fails with  fatal: unable to access 'https://github.com/psf/black/': Failed to connect to github.com port 443: Timed out
I'll try later or when back home. Alternately if you have the opportunity to see the issue in test_slots.py, do not hesitate to propose a review comment
Thanks again hynek

Feel free to add an passenv to tox.ini

Should be fine now. Do not hesitate to change the test description if that does not suit you - I was rather verbose :)

Line 559 is too long 🙈

That's what happens when I try to complete a PR while doing other things in parallel :) sorry hynek. This is now ok.

Thanks!


Other views

Hey, i see u have only some of the homepage and devices pages. Could u add other pages also? Or a full copy of your install. I am not the best with codes but i could edit all devices what i do mostly.
This dashboard is working really nice on mobile for my wife 🙏

Hi Holewijn, I didn’t see your message but by coincidence I just added two pages 😁 About to add the last one now.
Great to hear the dash is working for you!


[TextField] Support padding for helperText

Resolves: #13646

[x] I have followed (at least) the PR section of the contributing guide.

@hiteshkundal Thank you


Update InteractionContext to be able to assert the label of an element

extension InteractionContext {
  func label(of element: Element, is expectedLabel: String) {
    XCTAssertTrue(element.underlyingXCUIElement.wait(for: element.label == expectedLabel), "Element did not have the right label before timing out! Expected: \(expectedLabel), actual: \(element.label)")
  }
}

See Sam's comment on the PR.


Type definition file not included in package

I'm using this package with TypeScript. When I install the package, the  index.d.ts is not included in the bundle. See https://snipboard.io/OUVaKF.jpg. I think it's because the types reference in package.json is set to "lib/types/index.d.ts", while the lib/ folder is being ignored.
I'm using the latest version: 0.10.0

@matthewhudson Anyway we could get a release that includes these types? Looks like it was merged in September, but it's not in any releases yet.

@matthewhudson Anyway we could get a release that includes these types? Looks like it was merged in September, but it's not in any releases yet.

@bparish628 Thank you for reporting! I just published the fix in<EMAIL_ADDRESS>

@bparish628 Thank you for reporting! I just published the fix in<EMAIL_ADDRESS>


Support Camunda 8 secret syntax in FEEL expression

Problem you would like to solve
Secrets syntax is not detected in the Modeler:

I am forced to switch tabs and google for it (or search for an example where I used it)

In case I make a mistake, I find out about it in runtime only.
Proposed solution
Extend the FEEL syntax with Camunda 8 secrets syntax. Possibly provide suggestions. In Web Modeler, specific secret names could even be provided.

Alternatives considered
Leave it as is.
Additional context
Reported by @berndruecker via https://camunda.slack.com/archives/C0693F1NFK5/p1728541633050579

Challenge to overcome here: Secrets are only supported in some places, i.e. only in connectors or potentially other workers that support them. We could decide to always recognize the pattern and ignore this matter.
However, I think the real user problem to solve here is that you cannot easily use secrets, and that "known secrets" are not suggested? There, as mentioned, this is much better tackled via auto completion and/or some sort of inline help, cf. https://github.com/bpmn-io/bpmn-js-properties-panel/issues/708, or this mock-up:

I propose to rewrite the issue to capture the user problem more broadly. This allows us to consider the right set of changes for "enabling users to better work with secrets in Camunda".

I am not planning to work on this in the near time.


Tye vs Azure Dev Space

Hi
I watched the Asp.net Standup show where Tye was presented. It looks interesting. How does Tye positioning itself compared to Azure Dev Spaces? They seem to try and solve the same thing.
Regard
Per

Hi, Thanks for your question.
We're experimenting with lots of options and ideas to try and improve developer productivity. The remote development demo we showed is actually a collaboration with the dev spaces team. Part of this experiment would be see a remote development workflow could be integrated with a CLI like Tye.
In terms of positioning:

Azure Dev Spaces is a product that you can use, with documentation and support. Tye is not 😆 - Azure Dev Spaces is a full-featured offering focused on doing development and testing with a k8s cluster. Tye is trying to solve a variety of productivity problems. We might decide that remote/attached development fits in to Tye, or it might never go further than the demo you saw.

I hope this clears things up.


add simple straight park encoder code

Before issuing a pull request, please see the contributing page.

feat


Use safe area layout guides for AVCaptureScannerView

The AVCaptureScannerView view does not use the safe area layout guide that's available in iOS 11. This is needed to properly support the new iPhone X. Now the cancel button is too close to the rounded corner of the screen and the home indicator area.

Thanks for reporting this issue!  Unforunately it took me way too long to respond 😭.  Sorry, I apologize!  Recently the source code for this project was completely refactored to modernize it.  Many PR's were included in this effort, and many bugs were hopefully fixed.  Please try out the latest 3.x series of NuGet packages (currently in prerelease).  To try and make the project more maintainable in my spare time going forward, I've decided to close all existing issues to start with a clean slate.  If you're still experiencing this issue on the newest version, please open a new issue with as much detail as possible.  Thank you for your patience and understanding!  Happy scanning!


Provide relevant proof generation inputs to nightfall browser

Deployer generates keys in zokrates worker along with the out file from compiling the circuits which is required for proof generation. This out file is not similar to the out file that zokrates-js generates in the browser. This inconsistency needs to be solved
zokrates js requires an abi file for proof generation which needs to be provided to nightfall browser.
Definition of done: Solving these inconsistencies and defining an automated workflow to share this material between deployer and nightfall browser for multiple deployments.
Comments with more information from this discussion

I have “mild” reservations about the interplay between zokrates-js and the binary. There seems to be a couple of teething issues: here and here recently. They seem to stem from the difference in rust vs wasm - hopefully they can sort it out. A last resort could be to use zokrates-js in the containers as well.
A quick look also seems to indicate that the output of compile differs between the two (admittedly i’ve naively verified this by hashing each binary output). Not sure if @Hari or @liju jose have any idea if this is the case when they were working on it or im just doing something dumb.  In either case, zokrates-js does not work using the _out file from the zokrates binary.
Finally, interacting programmatically (i.e. with zokrate-js) requires passing witness inputs and the corresponding abispec. This abi does not seem available as an output when using the cli.
In summary, i was hoping we would be able to get everything we need from zokrates-worker - but i think we will need a separate script  (which we kinda already have) that compiles the circuits with zokrates-js and then copies these into S3.

Edit the issue how to cache the keys inside the server


Add github web page

Explain how it works, link to download,
maybe a page where you can input your api key and have it pull in embeds of all your tweets

This can all be achieved via README, api key stuff is no longer valid with current implementation


Add error handling for signal registration

https://github.com/eleme/corvus/issues/38

Code related to backtrace are involved in https://github.com/eleme/corvus/pull/43 and will not be altered in this PR.


Block out Rough Diamond Trade Groups

GitHub Issues in the facebook/react-native repository are used exclusively for tracking bugs in React Native.
Please take a look at the issue templates at https://github.com/facebook/react-native/issues/new/choose before submitting a new issue. Following one of the issue templates will ensure maintainers can route your request efficiently. Thanks!

Facebook allows non USKPA licensee to by pass USKPA DEV


Fixed the authentication done when using build to a private repository API version 1.20

AuthRegistryConfig looked like:
{"configs":{"myrepository":{
"username":"myusername",
"password":"mypassword",
"auth":"",
"email":"myemail",
"serveraddress":"myserverAddress"}}}
But needs to look like:
{"myrepository":{
"username":"myusername",
"password":"mypassword",
"auth":"",
"email":"myemail",
"serveraddress":"myserverAddress"}}
Added the fix to AuthRegistryConfig.
Added a test to make sure the test works

This fix is for Docker API version 1.20

We're still using docker API 1.18.

Sure.
I will see if I can make a nice solution that will make it easy to take future changes into account.
Somehow I have to check for the version and then decide depending on that.

I ran tests on a machine using api-version 1.18, 1.19, 1.20, and 1.21. It should work now.

@walbus Thanks. Can you cleanup the git history a bit to make it easier for us to review?

@davidxia I tried, but git is not working as I expected it too.
That is definitely my fault, since I am new to git. I tried to look at different sources about how to fix the history in git, but it keeps doing strange things when I try to rebase or merge.

@davidxia What I tried to do here is:
I first made a branch of your master to fix the authentication.
I then added code to make it backwards compatible.
Since your master had moved forward. I merged from your master.
Somehow this was understood by git as being my own new commits?

I have no idea why I can't just make git understand I only made changes to three files and added a third.
I removed the Jackson JSON annotations from AuthRegistryConfig.java and added
@JsonAnyGetter
public Map<String, Map<String, String>> getConfigs() {
    return configs;
}

In DefaultDockerClient.java authRegistryHeader method I added
String apiVersion = version().apiVersion();
int versionComparison = versionCompare(apiVersion, "1.19");

// Version below 1.19
if (versionComparison < 0) {
    authRegistryJson = "{\"configs\":" + authRegistryJson + "}";
}
// Version equal 1.19
else if (versionComparison == 0) {
    authRegistryJson = "{\"auths\":" + authRegistryJson + "}";
}

In DefaultDockerClientTest,java I added a test:
@Test
public void testBuildPrivateRepoWithAuth() throws Exception {
final String dockerDirectory = Resources.getResource("dockerDirectoryNeedsAuth").getPath();
AuthConfig authConfig = AuthConfig.builder().email(AUTH_EMAIL2).username(AUTH_USERNAME2)
        .password(AUTH_PASSWORD2).build();

final DefaultDockerClient sut2 = DefaultDockerClient.builder()
        .uri(dockerEndpoint)
        .authConfig(authConfig)
        .build();

sut2.build(Paths.get(dockerDirectory),
        "testauth",
        DockerClient.BuildParameter.PULL_NEWER_IMAGE);
}

Lastly I created a Dockerfile in a new folder resources/dockerDirectoryNeedsAuth/Dockerfile that contains:
FROM dxia2/scratch-private:latest

But for some reason I can't get git to not have conflicts that I have to solve multiple times...

@davidxia Now it should look right.

@walbus Thanks. I'm going to review this https://github.com/spotify/docker-client/pull/266 and then get back to you.

@davidxia
I moved the version compare into its own class, and I made the two assignments in authRegistryHeader final.

@walbus Hey, sorry to make you do this again. But you'll need to rebase :(

@davidxia I think I made it work this time :)

@walbus awesome thanks!


Use fsspec and/or pathy to provide a unified interface to GCP, AWS, and local filesystems

At the moment, our code implements different functions to interact with data on GCP vs the local filesystem.  This is exactly the problem that fsspec solves:  fsspec provides a unified interface to cloud and local storage.  If we use fsspec then we can probably throw away quite a lot of our filesystem functions :)
Pathy also looks very useful.
Before starting work on this issue, we should wait for #152 to be merged into main.
We can probably remove the cloud field in the yaml config after making this change.

I'm making a start on this in #152 (only where necessary to make it easy to write to local filesystem).  I'll leave it to a later PR to complete this task.

With num_workers=4, the script took 11hrs and 38 minutes to output 3,400 batches, which is 12.3 seconds per batch, and iotop reports that the total read speed rarely exceeds 50 MB/sec.
Withnum_workers=1, the script took 230 seconds to do 12 batches (19 secs per batch); and total read speeds hover around 30 - 70 MB/sec.  But I should leave this running today and see how long it takes to do more batches, as it is a bit bursty.

A word of warning:  Pathy.exists() seems buggy to me:  Path('gs://bucket/foo/bar.txt').exists() sometimes hangs.  Pathy('/local/file.txt').exists() sometimes returns the wrong answer (although maybe we're supposed to include a protocol prefix like 'file://local/file.txt'?)  We should explore this more and, if this really does turn out to be a bug, we should report it to the Pathy project.
That said, using Pathy as a prettier way to join paths works really well.  e.g. Pathy('gs://bucket') / 'foo' / 'bar.txt'


npm symlink missing

When node is installed using the binary method, it automatically creates a symlink /usr/local/bin/npm to the embedded npm.
However when using the source method to install npm, no symlink will be created and/or updated.
I'm not sure if this is caused by a change of the npm Makefile with recent versions or just an inconsistency of the cookbook.

+1

+1

The tests for the source install are chancy too.  Those tests should be repaired as part of fixing this issue.

Added test for /usr/local/bin/npm and /usr/local/bin/npx.  Initial testing of #222 shows those files exist.

The #222 shows the files are installed and available in /usr/local/bin during a source build


Exception on dispose

Description
When you dispose channels you received an NULL exception due to look up into controllers has using wrong value for key.

[ ] Improvement (non-breaking change that improves a feature, code or algorithm)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Signed-off-by: adrian soundy<EMAIL_ADDRESS>

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Use port

See also https://github.com/ManuelHentschel/VSCode-R-Debugger/pull/49
Adds support to send responses and events via tcp socket.

It looks like eval in debug console is somehow broken:

Thanks for finding that issue!

It works now. Thanks!


Lambda extension example script instructions

Issue #, if available:
Description of changes:
Instructions for using the example script secrets-manager-agent-extension.sh to install the agent as a Lambda extension.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

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

Project coverage is 0.09%. Comparing base (2ea0449) to head (4f882a0).

:exclamation:  There is a different number of reports uploaded between BASE (2ea0449) and HEAD (4f882a0). Click for more details.
HEAD has 2 uploads less than BASE

Flag
BASE (2ea0449)
HEAD (4f882a0)

3
1

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #21       +/-   ##
==========================================
- Coverage   69.03%   0.09%   -68.94%
==========================================
  Files          13      13
  Lines        2842    2037      -805
  Branches       10       0       -10
==========================================
- Hits         1962       2     -1960
- Misses        880    2035     +1155

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


docs(examples): design and bootstrap carbon accounting app

Description
Parent issue is here: https://github.com/hyperledger/cactus/issues/540
Acceptance Criteria

A shell of the example is created (folder structure, packages, etc.)
Some documentation (the parts that make sense as design) are added
Parent issue is broken down into smaller issues like this (but for implementation tasks) that are easier to estimate individually because their scope is much smaller.

cc: @opentaps @takeutak @sfuji822 @hartm @jonathan-m-hamilton @AzaharaC @jordigiam @kikoncuo

Completed by an earlier PR


Batches++

Pain Point? Please describe.
Current design of batches will supersede existing recipes when a previous batch is re-processed.
Desired Solution
The user should be able to utilize the supersedes flag of the batch definition to choose if the re-process of the previous batch recipes should supersede existing recipes, or if "new" non-superseded recipes should be created from that batch run.
Alternative / Workaround
Create a new batch using the same dataset used in the previous batch.

This has been addressed with the batches re-work


Attempting to use a component class as a mixin?

I'm using webpack and installed material-ui with npm. I have already replaced text inputs in my forms with the material-ui text-field and it works great.
But.
Then I tried adding a button. Simple enough right? Suddenly, I get this error:
Invariant Violation: ReactClass: You're attempting to use a component class as a mixin. Instead, just use a regular object
I have tested and this error gets thrown even if I just load in an otherwise empty Javascript file with this line:
require('material-ui/lib/raised-button');
If I remove that line, everything works fine. It's weird because the text-field works, so I know my setup is correct. I suspect there is a Mixin being used inside the button code?
Has anyone experienced this? Information on this is sparse, any help is appreciated.

We'll try to look into this. thanks for reporting.

Mm, that's bizarre. The only mixin being used in the raised button is StylePropable, and that's a regular json object.

Yes I know. :-/ It's giving this error on all elements I've tried so far, except the textfield. It may be something to do with my setup but I'm not sure what.


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/113519

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/113739


Async (Event) Function Invocation Emulation?

Hello there!   First off, thank you for making this emulator, it is really helpful for testing and development.
My question:  is there a way to run the function invocation asynchronously?   As far as I can tell, right now the HTTP request to the emulator results in a blocking call (i.e. no HTTP response until the function completes).   This is helpful for testing the RequestResponse invocations, but causes issues with code using Event invocations (https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html#API_Invoke_RequestSyntax).
In other words, I would expect the follow curl command to return almost immediately even if the "lambda" started takes a few minutes to complete.
curl -v -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -H "X-Amz-Invocation-Type: Event" -d '{}'

Not having this unfortunately breaks code that relies on the Event (async) behavior.  We can of course thread/async those calls in our code, but it breaks the emulation we were hoping for.
Am I missing something, or is this indeed currently not covered by the emulator?   If not covered, would a pull request to add it be welcome?
Thanks.

I have exactly the same issue.
@doransmestad have you found a solution?

@valerena Sorry for directly tagging you into this but I saw you as the most active contributor. I'm also facing the same issue of not being able to use InvocationType Event and I saw this issue kind of inactive. Is there a way to have this working?


Builder: Bash and openssh-client missing

Bash and openssh-client APK packages are not in config file: https://github.com/jekyll/docker/blob/master/opts.yml#L14
but is is not in generated Dockerfile: https://github.com/jekyll/docker/blob/master/tags/builder/Dockerfile#L13
Result is:
$ docker run -it jekyll/jekyll:builder /bin/bash
/usr/local/bin/startup: line 67: /bin/bash: not found

I believe there has been a regression of this bug. I am using jekyll/jekyll:builder with gitlab-ci and I am seeing the following today. The previous build, on December 7, did not exhibit this behavior. I see the same output when manually executing docker run -it jekyll/jekyll:builder /bin/bash.
/usr/local/bin/startup: line 67: bash: not found
ok: down: /etc/startup3.d/nginx: 0s, normally up

Please file a new ticket, commenting in old tickets is not considered a report.  Thanks.

I've repushed a fixed version @deedoubledub, I forgot that alias builders weren't completed on the beta-version of Docker Template when I kicked on Alias building so it was never actually getting built with the alias merging it was simply being aliased literally to 3.0.1, now it's own it's own build chain again until that feature is finished upstream.  Sorry for the mistake.


More testing found a bug in kml_iss implementation, herewith fixed

Hotfix for the previous commit -- more usage of the KML transition path found that certain getters and setters seemed to have no effect, which is fixed with this MR. The expected impact of this bug is expected minimal, as there has been minimal time passed while the bug was present in the stable branch.

Review OK, manual testing OK. Waiting approval from @alberto-scolari and CI


[Performance] Add advanced request options fields GraphQL

Description
This PR fixes #4364
Notes for Reviewers

Signed commits

[ ] Yes, I signed my commits.

The failing UI tests... I think they are unrelated to the changes at hand, right @bariqhibat? 🤔

No, they're not. These UI tests has been failing quite often. We should take a look
cc @sudo-NithishKarthik

@DelusionalOptimist oh that's good, thanks for the correction. I will add it real quick. Do keep them coming!

@DelusionalOptimist last commit should do the job


Add an introductory tour of the app

The tour should demonstrate:

How to record a trip
What information is submitted with a trip
How to view saved trips
How to edit the profile and settings

This could be implemented using the ion-slide-box component.

The tour should appear automatically when the app is first started. There should also be a way to replay the tour (probably an option in the settings menu).


Update Eclipse.java: plugin url needed

eclipse plugins need plugin_url.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
Details

0 of 0   changed or added relevant lines in 0 files are covered.
12 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.03%) to 66.8%

Files with Coverage Reduction
New Missed Lines
%

com/devonfw/tools/ide/tool/eclipse/Eclipse.java
12
63.38%

Totals

Change from base Build<PHONE_NUMBER>3:
0.03%

Covered Lines:
6268

Relevant Lines:
9039

💛  - Coveralls


DevOps Center Support

cli needs a few enhancements to be fully compatible with DevOps Center (DOC) deployments

init should be able to accept DOC environment parameters instead of a Deployment Framework (DF) export as a configuration source (solved by #41)
must specify target layers for deployment packages, when necessary

these will be ignored by DF

the Release template must support DOC deployments

ideally we should ship 2 releases, a DF one and a DOC one, so that projects can test both scenarios

init should accept a base path used for all the package repository shares in GlobalVariables

this would remove the dependency on the vmHostname variable in the template, as this now refers only to the environment address (we could rename this variable accordingly)

This was finally closed by #93


Utilize bitflags in Coprocessor ctx

Feature Request
In https://github.com/tikv/tikv/blob/56c1b44b32e3d8ee59729e4343219d1a1fc96086/src/coprocessor/dag/expr/ctx.rs#L57 we store each flag in a bool, which is not necessary. Instead we can just store a u64 (but which is a bitflag). In this way we can greatly simplify the bootstrap code.
A sample similar change: https://github.com/tikv/tikv/pull/4494

Implemented in #4536.


Suggestion: Ability to set our own formula/value for item values

As the title suggests, an amazing feature would be to be able to set a specific formula or value for how to calculate the value of some items (specially the ones which have no store/merch value).
For example, volatile magic has an intrinsic value as it can be changed for trophy shipments.
While I do not believe the values, such as the ones found in "fast farming community" , can be updated easily, even if only defined by us it could be incredibly powerful.
Other possibility is for us to use a formula where I could say something like 0.2*[id] and it would make the value of the item as 0.2 times the market/merch price of a certain item id.
Let me know if this is in anyway possible. I'm also a software developer so if there is anything I can do to help let me know.

I dont understand the 0.2*[id] part. Why would the real value of something being less than vendor/tp value?

Hello. Thanks for replying
Yes, the 0.2*[id] example was indeed from a different item.
One good example of this would be the eternal ice shards.
Those can be traded at a rate of 75 for 10 items which in turn turn into an average of 20 volatile each so, the value ehre would be something along the lines of 1/75 * 10 * 20 * [value of volatile]
and in turn the value of the volatile magic is something like 45 copper each.
this value of course changes overtime depending on the trophy shipment items value so I believe it is better to either get that value from "fast farming community" if possible or if not (which  I believe it's the case) we could ahve a textbox where we cna set the value ourselves.

I add that to my backlog. I will probably add the ability to set a fixed value for an item/currency and not the formula approach.

setting a custom profit value will be part of release 4.0.0.


named pipe creation

@valkeh thanks! i've integrated this a little bit more with how we do stuff in the sshagent in a branch 57-windows.  I suggest you base your continued work on that. https://github.com/tillitis/tillitis-key1-apps/tree/57-windows


curl: upgrade to v7.51.0

This version closes 11 critical bugs, along with other bugs.
Signed-off-by: Johannes Schindelin<EMAIL_ADDRESS>

Woops. i just saw that there is already #737. However, that PR sneaks in a comment on the PGP key of Daniel Stenberg (the cURL maintainer) that should be logically separated from that PR.


[1.0]Upgrade arquillian to address ARQ-1992 & and update to .Final version…

… of WF
https://issues.jboss.org/browse/ARQ-1992

Oops, sorry I didn't see this one and did the same thing in https://github.com/wildfly/wildfly-arquillian/pull/50


Add API logging capabilities

Add request log if your debuglevel is info.
:eyeglasses: @curioussavage
(Sorry for the mess, also cleaned up a little whitespace.)

is there a pr for restcache too?

Correct. It may also make sense to log cache hits/misses as well, so maybe I'll follow up with one in restcache eventually too.

:fish:


How should Arabic numeric ranges with numeric count be supported?

I recently tried using Locize.io with Gengo. I seem to have run into a limitation with the I18Next ecosystem.
**Arabic Intervals**

(0){دقيقة};
(1){دقيقة};
(2){دقيقتان};
(3-11){{{count}} دقائق};
(11-Inf){{{count}} دقيقة};

**English Intervals**

(0){0 minutes};
(1){1 minute};
(2-Inf){{{count}} minutes};

Is it expected that I expand English intervals in an unnatural way?
**English Intervals**

(0){0 minutes};
(1){1 minute};
(2){2 minutes};
(3-11){{{count}} minutes};
(11-Inf){{{count}} minutes};

I'm not too concerned with the extension of the English intervals above, but I am curious about whether or not this becomes problematic if there is a language that counts intervals 2-100 differently than Arabic when I am using English as my reference language.

I might also add that it would be nice if the recommended in this issue could be added to the I18Next plural documentation for others, or it could be a console warning when users like myself only add intervals for 0 or 1.

hm...not sure but for the case described above why not just using the regular plural?
https://www.i18next.com/plurals.html#languages-with-multiple-plurals
interval plurals fallback to regular plural if not having a value in the defined ranges. Basically the interval plurals are more to specify plural texts in form of "we got a few items" and "we have a lot of items"
regular plurals:
**Arabic**

"key_0" : "دقيقة"
"key_1": "دقيقة"
"key_2": "دقيقتان"
"key_3": "{{count}} دقائق"
"key_4": "{{count}} دقائق"
"key_5": "{{count}} دقيقة"

// -> not sure if the forms are are correct...but rules are here: https://www.i18next.com/plurals.html#how-to-find-the-correct-plural-suffix

**English**

"key": "{{count}} minute"
"key_plural": "count minutes"

the regular plural will also be automatically generated for other languages in locize - while we can't guess which intervals makes sense in other languages

I might be mistaken about anything I say, so correct me if I am wrong.
I think you're saying that, my reference language being English, I only require the following.
**English**

"key": "{{count}} minute"
"key_plural": "count minutes"

If an when I run into languages with more plurals forms than English, I have to manually maintain each of their various plural individually as a superset to the plurals my reference language supports like this?
**Arabic**

"key_0" : "دقيقة"
"key_1": "دقيقة"
"key_2": "دقيقتان"
"key_3": "{{count}} دقائق"
"key_4": "{{count}} دقائق"
"key_5": "{{count}} دقيقة"

"key": "{{count}} دقيقة"
"key_plural": "{{count}} دقيقة"

Or are you saying that I would intentionally not popular the plural and implicit singular and have disparate keys depending on the language like this:
**Arabic**

"key_0" : "دقيقة"
"key_1": "دقيقة"
"key_2": "دقيقتان"
"key_3": "{{count}} دقائق"
"key_4": "{{count}} دقائق"
"key_5": "{{count}} دقيقة"

the or:
en: key, key_plural will be automatically toggled to key_0, key_1,...key_5 in arabic:

Wow, I see.
It seems that I have misused the intended purpose of the interval post processor, and I was unaware that adding a language on Locize.io would add the plurals automatically.
Since the concept of "zero" in English is discussed inconsistently depending on the context, I utilized a count of "0 Minutes" to instead be represented as "< 1 Minute".
Unfortunately, that means the _interval key is added to Arabic where the concept of zero is handled perhaps more consistently, not that I would know.
I think the answer is that in languages with multiple plurals the interval keys are usually expected to only be represented in languages with only limited plural forms, like English.

honestly i got no idea...i can speak a few languages...but all come from roman or germanic language roots (german, english, french, italian)...so i really can't express what the multiple plurals in eg. arabic or russian express...neither why most asiatic languages not even have plural forms...all rather strange...;)

but yeah...interval might be more for the english, and similar languages to express zero, few, that might or not might be handled already in the other languages having multiple plurals...


⚠ Bofrost.be has degraded performance

In e74ad0b, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1708 ms

Resolved: Bofrost.be performance has improved in 11cb5c4.


cannot unpack non-iterable NoneType object

I got this error when I try to run the 17h report, I guess I have to run something else first.  I'm now using PostgreSQL so I can use ArrayField.
TypeError at /17h/
cannot unpack non-iterable NoneType object
Request Method:	GET
Request URL:	http://<IP_ADDRESS>:8000/17h/
Django Version:	4.1.4
Exception Type:	TypeError
Exception Value:
cannot unpack non-iterable NoneType object
Exception Location:	/home/usr/trading-bot/trading-bot/core/btP.py, line 55, in init
Raised during:	reporting.views.trigger_17h
Python Executable:	/home/usr/trading-bot/trading-bot/.vbt/bin/python
Python Version:	3.8.10
Python Path:
['/home/usr/trading-bot/trading-bot',
'/home/usr/trading-bot/trading-bot',
'/home/usr/.vscode-server/extensions/ms-python.python-2022.20.1/pythonFiles/lib/python/debugpy/_vendored/pydevd',
'/usr/lib/python38.zip',
'/usr/lib/python3.8',
'/usr/lib/python3.8/lib-dynload',
'/home/usr/trading-bot/trading-bot/.vbt/lib/python3.8/site-packages']
Server time:	Thu, 15 Dec 2022 12:35:45 +0000
Traceback Switch to copy-and-paste view
/home/usr/trading-bot/trading-bot/.vbt/lib/python3.8/site-packages/django/core/handlers/exception.py, line 55, in inner
response = get_response(request) …
Local vars
/home/usr/trading-bot/trading-bot/.vbt/lib/python3.8/site-packages/django/core/handlers/base.py, line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs) …
Local vars
/home/usr/trading-bot/trading-bot/reporting/views.py, line 56, in trigger_17h
report1.presel(st,"Paris") …
Local vars
/home/usr/trading-bot/trading-bot/reporting/models.py, line 250, in presel
self.presel_sub(l,st,exchange,**kwargs) …
Local vars
/home/usr/trading-bot/trading-bot/reporting/models.py, line 187, in presel_sub
presel=btP.Presel(st=st,exchange=exchange) …
Local vars
/home/usr/trading-bot/trading-bot/core/btP.py, line 55, in init
self.high, self.low, self.close, self.open,self.volume,\ …

Hi, no normally it should run right away. Do you have something in your database? retrieve_data makes a for loop on the symbols, so if there is no symbol, it will send you this error (I should catch this error better obviously).

I did migrate and loaddata so there are data in the db.
The major problem I see is I'm not using VectorBT Pro, so the error may be due to that.  For example, there are differences in the naming of the functions that I find so far.
1/ IndicatorFactory is now called IF
2/ from_apply_func is now called with_apply_func
3/ vbt.YFData.download_symbol is now called  vbt.YFData.fetch??
the .download_symbol has similar syntax to .fetch, although that is when the code fails somewhere there.  I don't have the documentation to confirm that. lol

Your assumptions 1, 2 and 3 are correct. Are you sure that "st" is not None?

Thanks for your quick reply.
I use download instead of download_symbol and it seems to work fine.  Now I get into an error
at line 189 of orders/models.py
cours_action=cours.select(symbols)
cours_open =cours_action.get('Open')
'YFData' object has no attribute 'select'

Yes, select() is only in the pro version.
def select(self: DataT, symbols: tp.Union[tp.Symbol, tp.Symbols], **kwargs) -> DataT:
    """Create a new `Data` instance with one or more symbols from this instance."""
    if isinstance(symbols, list):
        single_symbol = False
    else:
        single_symbol = True
        symbols = [symbols]
    return self.replace(
        data=symbol_dict({k: v for k, v in self.data.items() if k in symbols}),
        single_symbol=single_symbol,
        symbol_classes=symbol_dict({k: v for k, v in self.symbol_classes.items() if k in symbols}),
        fetch_kwargs=symbol_dict({k: v for k, v in self.fetch_kwargs.items() if k in symbols}),
        returned_kwargs=symbol_dict(
            {k: v for k, v in self.returned_kwargs.items() if k in symbols},
        ),
        last_index=symbol_dict({k: v for k, v in self.last_index.items() if k in symbols}),
        **kwargs,
    )

it is missing DataT and symbol_dict, so there may be few more changes.
May need to create my own function to work around this.

This select is quite useful. We could use download the data directly separately, but then there is a, huge, risk that the days are not aligned anymore between index and corresponding action prices. You need it only, if like me you make some calculation on the index and some other on the stock prices.

Okay, instead of trying to add functions that are not available in Vectorbt, the simple answer is just to get a copy of VectorBt Pro.
How often is the update in  the Pro version?
It looks like it is not just a simple addon and enhancement in the pro version.  I am hoping that you can spend some of your valuable time in getting trading-bot better.  Lots to learn for me.
Please don't spend any time in getting this working for Vectorbt, it is just not worth your time.

I also think that vbtpro is worth getting it. And yes, there are many improvement in it (and more to come!). But I also understand that it is an investment in the beginning in the unknown, as basically you cannot know if it will fullfil your needs. I am by the way also interested in alternative to IB, as to me it is very powerfull, but also quite constraining...

That is the main reason why I try to use the vectorbt community version and sqlite first.  However, as soon as I see it working somewhat and see the potential of it, I get the pro version.


VSCode Jupyter does not render mathematical symbols correctly.

Environment

VS Code version: 1.57
Jupyter Extension version (available under the Extensions sidebar): v2021.6.832593372 (and later)
Python Extension version (available under the Extensions sidebar): v2021.5.926500501 (and later)
OS Windows : 20H2
Python and/or Anaconda version: 3.8.7

Expected behavior
Expected to see the 4/3 fraction displayed as a fraction (just as it displays on github. Expected similarly for r^cubed.
Actual behavior
Saw 4/3 displayed incorrectly. Same for r^cubed.
Steps to reproduce:

Clone the Pierian-Data Python3 Bootcamp Locally
Open the lesson #08 in the browser: https://github.com/Pierian-Data/Complete-Python-3-Bootcamp/blob/master/03-Methods and Functions/08-Functions and Methods Homework.ipynb
Open the same notebook in VSCode.
You will see that the characters for 4/3 and r cubed are not rendered correctly (as $$\frac{4}{3} πr^3$$)

What can be done to fix this? All math notebooks with formula symbols have this issue.

I can confirm the repro here:

Looking at the code there are unknown characters for that pi symbol which seems to causing the issue. I tried the following formula using /pi for the pi representation:

$$\frac 4 3 \pi r^3$$
Is this what you are trying to render?

Yes, that is what I am trying to rendor. It doesnt appear like that in VSCode for some reason.

Yup I repro the π symbol as working in jupyter notebook and having to be replaced with /pi in vscode. Thanks for the reply I think that we've got the issue understood on our side now.

Dupe of microsoft/vscode#119536

In the original notebook example, the equation is inside of an html element:

The volume of a sphere is given as $$\frac{4}{3} πr^3$$

It seems to render fine if you don't use an html element
Closing as a duplicate of https://github.com/microsoft/vscode/issues/130149


Issue while showering NLO events with NLO

I tried to shower events for the NLO process  p p > t t~ [QCD].
But I am getting the following error.
INFO: Generating events
INFO: Idle: 0, Running: 3, Completed: 2 [ current time: 10h38 ]
INFO: Idle: 0, Running: 2, Completed: 3 [ current time: 10h38 ]
INFO: Idle: 0, Running: 1, Completed: 4 [ 3.8s ]
INFO: Idle: 0, Running: 0, Completed: 5 [ 3.9s ]
sum of cpu time of last step: 0 second
INFO: Doing reweight
INFO: Idle: 0, Running: 2, Completed: 3 [ current time: 10h39 ]
INFO: Idle: 0, Running: 1, Completed: 4 [ 0.16s ]
INFO: Idle: 0, Running: 0, Completed: 5 [ 0.17s ]
INFO: Collecting events
INFO:
  Summary:
  Process p p > t t~ [QCD]
  Run at p-p collider (6500.0 + 6500.0 GeV)
  Number of events generated: 10000
  Total cross section: 6.808e+02 +- 4.8e+00 pb

  Scale variation (computed from LHE events):
      Dynamical_scale_choice -1 (envelope of 9 values):
          6.939e+02 pb +10.5% -12.1%

INFO: The /home/shilpa/projects/MG5_aMC_v3_5_4/my_ttbar_nlo/Events/run_02/events.lhe.gz file has been generated.
INFO: Events generated
reweight -from_cards
decay_events -from_cards
INFO: Preparing MCatNLO run
INFO: Using LHAPDF v6.5.4 interface for PDFs
INFO: Compiling MCatNLO for PYTHIA8...
USING PYTHIA 8.3xy
g++ -std=c++11 -O -I/home/shilpa/projects/MG5_aMC_v3_5_4/HEPTools/pythia8/include
-I/home/shilpa/projects/MG5_aMC_v3_5_4/my_ttbar_nlo/MCatNLO/include Pythia83.cc -o Pythia8.exe
-L/home/shilpa/projects/MG5_aMC_v3_5_4/HEPTools/pythia8/lib -lpythia8
Error: cannot find valid configuration for Pythia 8 -L../lib -Lror: -Lnnot -Lnd -Llid -Lnfiguration -Lr -Lthia \
In file included from Pythia83.cc:4:
/home/shilpa/projects/MG5_aMC_v3_5_4/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:23:10: fatal error: HepMC/IO_BaseClass.h: No such file or directory
23 | #include "HepMC/IO_BaseClass.h"
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:56: Pythia83] Error 1
Pythia8 compilation did not succeed, exiting
Error detected in "launch"
write debug file /home/shilpa/projects/MG5_aMC_v3_5_4/my_ttbar_nlo/run_02_tag_1_debug.log
If you need help with this issue, please, contact us on https://answers.launchpad.net/mg5amcnlo
str : Compilation failed, check /home/shilpa/projects/MG5_aMC_v3_5_4/my_ttbar_nlo/mcatnlo.log for details
Does anyone know what could be happening?
Thanks

Hi aMC@NLO team, same problem here!  Pythia8 showering works just fine when I do LO generation using the same model files.

Hii,
The issue was solved for me. The problem was not with linking of pythia8
with Hepmc, the actual issue was the path in the shower card as:
*EXTRAPATHS   = ../lib
/home/shilpa/dellnewlaptop/Projects/MG5_aMC_v3_5_4/HEPTools/hepmc/lib
/home/shilpa/dellnewlaptop/Projects/MG5_aMC_v3_5_4/HEPTools/pythia8/lib
l,-rpath,/home/shilpa/dellnewlaptop/Projects/MG5_aMC_v3_5_4/HEPTools/pythia8/lib
/home/shilpa/dellnewlaptop/Projects/MG5_aMC_v3_5_4/HEPTools/zlib/lib
l,-rpath,/home/shilpa/dellnewlaptop/Projects/MG5_aMC_v3_5_4/HEPTools/zlib/lib
Path to the extra-libraries*
You can check if it works for you as well.
Thanks
Shilpa Jangid
APCTP Researcher
On Wed, Jul 24, 2024 at 12:29 AM rmahbubani @.***>
wrote:

Hi @.*** team, same problem here! Pythia8 showering works just fine
when I do LO generation using the same model files.
—
Reply to this email directly, view it on GitHub
https://github.com/EleutherAI/pythia/issues/165#issuecomment-2245563851,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BJF5NACQJZ3UDRV53JYNVL3ZNZZEFAVCNFSM6AAAAABJJVZFLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBVGU3DGOBVGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Thanks for the tip Shilpa, but I do have all the extrapaths set, but still pythia8 doesn't compile in with aMCaNLO :*


Expose the confirm component to plugin developers

yazi --debug output
N/A

Please describe the problem you're trying to solve
The confirm component has been implemented since Yazi v0.3.1, so I think it's a good time to expose it to plugin developers.
Would you be willing to contribute this feature?

[X] Yes, I'll give it a shot

Describe the solution you'd like
Just a Lua API to show the confirm component.
Additional context
It seems like the API is marked with a TODO for a redesign. Maybe now that the component has somewhat stabilised, it may be easier to design the API for it.
Checklist

[X] I have searched the existing issues/discussions
[X] The latest nightly build doesn't already have this feature

Please try https://github.com/sxyazi/yazi/pull/2095

Awesome, thank you!
I'll add it to the documentation once I figure out how to use it.

Hmmm the confirm component doesn't appear when I use the API like this:
local confirmation = ya.confirm({
    pos = { "center", y = 2, w = 50 },
    title = "test",
    content = "test content",
})

The confirm component is still there, but there's no UI for some reason.


Too many emails. Inability to unsubscribe.

You send me an email like every week saying Code Triage misses you. I can't unsubscribe. The only thing I can do is remove my account which I don't want to.

The only thing this app does is send emails. Unsubscribing would be the same thing as deleting your account.

I think it's not clear from that deletion page, so I suggest to add those lines https://github.com/codetriage/CodeTriage/pull/1506

Great idea. Done.


add zeppelin.livy.share_existing_session option

If you want to share livy session between multiple zeppelin user, There is no option now.
After this commit, setting zeppelin.livy.share_existing_session to true
make LivyInterpreter use an existing livy session
(first session returned by /sessions)
What is this PR for?
add zeppelin.livy.share_existing_session option.
zeppelin.livy.share_existing_session is true, list exsiting livy session and select first session.
by doing so, we can share livy session between zeppelin livy interpreters.
What type of PR is it?
Feature
Todos
What is the Jira issue?
How should this be tested?

setup livy server
run zeppelin server
setup zeppelin livy interpreter(change zeppelin.livy.share_existing_session to true)
make new note
make another note
audit logs/zeppelin-interpreter-*.log

Screenshots (if appropriate)
Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? Yes

@jerryshao may I ask you to review this PR?

@ruseel @swkimme livy session is shared across notes, What kind of scenarios here do you mean ?

I am trying to use livy as shown in https://youtu.be/gtql7z_kj3Y Zeppelin and livy bring multi tenancy to interactive data analysis 20:02.
Share livy session between multiple user.

What I want to accomplish eventually is providing a single spark cluster to four people and interactive query they issued  is run under a single pool, with a fair scheduler.

livy session is shared across notes, What kind of scenarios here do you mean?

I guessed that "Livy session is not shared across notes in zeppelin:master/BaseLivyIntepreter.java" after inspecting source code and exploratory session with my laptop setup. If I opened two notes in zeppelin, LivyServer shows there is two session in their web UI.
Did I missed something? Is it true livy session is shared across notes. Or Did @zjffdu wanted to know about rationale of PR. :)

@ruseel Livy session is shared across notes, as long as the notes belong to one user. Livy interpreter is designed for isolated across users. That means each user own one livy session, and he can share this session across his notes.  The multi-tenancy means users share the same hadoop cluster.

Right, one major reason is security. Sharing SparkContext across users may introduce potential security issue.

well, I think that is the "design" of the open source implementation ;)

A goal of PR is sharing already created livy session, now I see 'there is a concern about security'.
so I am closing this PR.


add() function error

Please confirm the SSL module of python3.10 is installed ok?

import ssl normal, But it's still wrong

@gyd-a does this problem solved?


[Intel MKL] set build 2.0 as default in Dockerfile.devel-mkl

We use three file to build the TF docker images in the derectory tensorflow/tools/ci_build/linux/mkl/.
We set build 2.0 as default in both set-build-env.py and build-dev-container.sh.
But set disable 2.0 as default in Dockerfile.devel-mkl.
In this situation, we always disable 2.0 build.
This PR fix this bug that we can build the right TF 2.0 image.

@angersson Can you help to take time to review this? thanks you.

Can one of the admins verify this patch?

@penpornk thanks for for comments, I have update it, please help to check.
thanks.


[Bug] az devops logout is not working

Describe the bug
az devops logout is not terminating my PAT established session (using az devops login)
To Reproduce
Azure Cli Version:
azure-cli                         2.0.67 *
Azure-Devops extension version:
azure-devops                      0.11.0
Steps to reproduce the behavior:

login using az devops login --org <myOrganizationsURL>
Run command az devops project list to obtain the projects under my organization
Logout using az devops logout to terminate any active sessions.
Receive a message indicating all sessions have been terminated.
Run command az devops project list to obtain the projects under my organization. I can still retrieve the list of projects even after the logout.

Expected behavior
After executing az devops logout any other az devops command should fail indicating there are no active sessions.
Screenshots
N/A
Debug logs
N/A
Additional context
I'm running Azure CLI within WSL, Ubuntu 18.04

HI @hjlarrea  ,
If you want to log out of particular account you can try using  same command with -org param
az devops logout --org <ORG_URL>
This should explicitly log you out of that organization.
Meanwhile, i'll check why the az devops logout  command is not logging you out of all accounts
Can you share the debugs logs for the same [az devops logout --debug] ?

I was collecting the evidence and just noticed the issue is not happening anymore. Thanks for checking!


API docs don't generate on release 1.54

Error log:
ERROR: Unable to parse a tag's type expression for source file /Users/stevenyau/Dev/engine/src/framework/app-options.js in line 85 with tag title "type" and text "{typeof Lightmapper}": Invalid type expression "typeof Lightmapper": Expected "|" but "L" found.
ERROR: Unable to parse a tag's type expression for source file /Users/stevenyau/Dev/engine/src/framework/app-options.js in line 90 with tag title "type" and text "{typeof Lightmapper}": Invalid type expression "typeof Lightmapper": Expected "|" but "L" found.
ERROR: Unable to parse a tag's type expression for source file /Users/stevenyau/Dev/engine/src/framework/app-options.js in line 92 with tag title "type" and text "{typeof BatchManager}": Invalid type expression "typeof BatchManager": Expected "|" but "B" found.
ERROR: Unable to parse a tag's type expression for source file /Users/stevenyau/Dev/engine/src/framework/app-options.js in line 97 with tag title "type" and text "{typeof BatchManager}": Invalid type expression "typeof BatchManager": Expected "|" but "B" found.
ERROR: Unable to parse a tag's type expression for source file /Users/stevenyau/Dev/engine/src/framework/app-options.js in line 99 with tag title "type" and text "{typeof XrManager}": Invalid type expression "typeof XrManager": Expected "|" but "X" found.
ERROR: Unable to parse a tag's type expression for source file /Users/stevenyau/Dev/engine/src/framework/app-options.js in line 104 with tag title "type" and text "{typeof XrManager}": Invalid type expression "typeof XrManager": Expected "|" but "X" found.

The docs generate OK. But the AppOptions docs don't generate. This is from some JSDoc blocks written by @mvaligursky.

On our build system, this stops the whole upload process unfortunately

Oh wow, OK! We should definitely fix this then. And when I say 'we', I, of course, mean @mvaligursky. 🤣


Update stratum1 instructions to latest recommendations

Could you rebase and rewrite the commit message?  "update stratum1 instructions to latest recommendations" doesn't provide much context about why changes were made or any summary of the changes.

@bbockelm is the new commit message sufficient?

No, both lines need to be in both places.

I made some formatting changes to your last commit. I'll merge it if the CI passes.


[temp fix] add dev branch to the timestamp build

Purpose
$subject
Examples
Checklist

[ ] Linked to an issue
[ ] Updated the specification
[ ] Updated the changelog
[ ] Added tests

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Danesh Kuruppu seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Add more EDPM deploy options for HCI

This patch adds new options to used for HCI deployment. With these options it is possible to configure dataplane network only on EDPM nodes, before deploying Ceph. Adds options to deploy nova with ceph as backend and to configure storage management network.

/test install-yamls-deploy

recheck

recheck

recheck

/hold