Using Drupal VM for React Admin project developement

Issue Type

Support Request

Your Environment
Vagrant = 2.1.2
VirtualBox = 5.1.16r123759
Don't show Ansible as installed? am running Windows.

Your OS
**Windows 10
Full console output
Drupal development server started: http://<IP_ADDRESS>:8888
This server is not meant for production use.
One time login url: http://<IP_ADDRESS>:8888/user/reset/1/1533687024/iExckzgQEwZouRUrex5lBMFmzfMv8RRdG0RvV6jWTbg/login
Press Ctrl-C to quit the Drupal development server.
Summary
I am trying to get setup to work on the new Drupal React Admin interface, https://github.com/jsdrupal/drupal-admin-ui.   I am able to follow their instructions for installing, using composer and then running 'composer devify' to set up the environment for development.  Then running "composer start" gives the output show above, which indicates that the React app should be available at <IP_ADDRESS>:8888, but instead I get "This site can not be reached".  I tried adding 8888 to the list of ports in firewall_allowed_tcp_ports, and also just turning off the firewall.  Also turned off my Windows firewall. Would you have any idea why this would not work?
Others on the React Admin team use Docker, would it make sense to switch to that?

Others on the React Admin team use Docker, would it make sense to switch to that?

Maybe. If everyone else is using it, it might be the easiest way to make sure you're not the cog that doesn't fit!

Would you have any idea why this would not work?

Not quite sure, but can you do a curl --head <IP_ADDRESS>:8888 inside the VM (vagrant ssh to get inside) and see if that gives a 200 OK response? If so it's running, it's just not running on a publicly-available interface (e.g. <IP_ADDRESS> or the ethernet bridge). It might just be available inside the VM only. You'd have to see if there are any config options that tell it 'run anywhere'...

The curl fails....
$curl --head <IP_ADDRESS>:8888
curl: (7) Failed to connect to <IP_ADDRESS> port 8888: Connection refused


Accessing kubernetes secret for building a container

Hello,
I'm trying to pass secrets GITHUB_TOKENand GITHUB_USER to the container building step within a task. I checked that the launched container has the two environment variables correctly set. In the building process however, if I print out the variables within the dockerfile via RUN echo $GITHUB_TOKEN, the actual value of the envrionment variable is also $GITHUB_TOKEN, i.e. it is only set as a string and I don't understand why. The Taskis defined as follows:
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
  name: build
  namespace: tekton-pipelines
spec:
  params:
    - name: contextDir
    - name: GITHUB_FULL_CREDS
    - name: varlibcPath
  steps:
    - name: build-image
      image: quay.io/buildah/stable:v1.11.6
      workingDir: "/workspace/output/$(inputs.params.contextDir)"
      command:
        - "buildah"
      args:
        - "bud"
        - "--layers"
        - "--build-arg"
        - "GITHUB_TOKEN=$GITHUB_TOKEN"
        - "--build-arg"
        - "GITHUB_USER=$GITHUB_USER"
        - "-f"
        - "$(inputs.params.dockerFile)"
        - "-t"
        - "$(inputs.params.destinationImage)"
        - "."
      securityContext:
        privileged: true
        runAsUser: 0
      volumeMounts:
        - name: varlibc
          mountPath: "$(params.varlibcPath)"
      env:
        - name: GITHUB_TOKEN
          valueFrom:
            secretKeyRef:
              name: $(params.GITHUB_FULL_CREDS)
              key: github_token
        - name: GITHUB_USER
          valueFrom:
            secretKeyRef:
              name: $(params.GITHUB_FULL_CREDS)
              key: github_user

I cannot set the variable via GITHUB_USER=${GITHUB_USER} as Terraform will then complain about not knowing the variable. Not sure if this would help, though. Can anyone see what I'm doing wrong and is there any other way to get the environment variable into the building process? Is there perhaps another way to access the secret within the args? Thanks a lot!

Hey @v1nc3nt27, using environment variable  with ${} is a feature of bash (or most shells). As it is written, your task doesn’t use bash at all as the command is ‘buildah’, and thus the variable is never « resolved ».
To fix that you could switch to the script feature in your task as it executes a shell script. The other way would be to use /bin/bash -c as command and the rest as args.

Hey @vdemeester, makes absolute sense, thanks for clarifying this. I just overlooked this and wasted hours. I replaced it with script and it works like a charm now. Thanks a lot!


Got “\nodes.py", line 1405, in execute if Hold.HOLD_DB[_key_id]["mode"] == "save":”

When executing hold node, got following error message:
File "E:\DEV\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-0246\nodes.py", line 1405, in execute
if Hold.HOLD_DB[_key_id]["mode"] == "save":
what is valid setting for mode?

Actually, I'm getting the same issue & I was using the embedded workflow in the example image you posted for the demo. Here's the full error:
`got prompt
ERROR:root:Failed to validate prompt for output 37:
ERROR:root:* (prompt):
ERROR:root:  - Required input is missing: data
ERROR:root:* 0246.Beautify 37:
ERROR:root:  - Required input is missing: data
ERROR:root:Output will be ignored
ERROR:root:Failed to validate prompt for output 41:
ERROR:root:* (prompt):
ERROR:root:  - Required input is missing: data
ERROR:root:* 0246.Beautify 41:
ERROR:root:  - Required input is missing: data
ERROR:root:Output will be ignored
Prompt executor has been patched by Job Iterator!
ERROR:root:!!! Exception during processing !!!
ERROR:root:Traceback (most recent call last):
File "C:\ai\ComfyUI_windows_portable\ComfyUI\execution.py", line 154, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ai\ComfyUI_windows_portable\ComfyUI\execution.py", line 84, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ai\ComfyUI_windows_portable\ComfyUI\execution.py", line 68, in map_node_over_list
results.append(getattr(obj, func)(**input_data_all))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-0246\nodes.py", line 933, in execute
Hold.HOLD_DB[_key_id[0]]["data"] = []
~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: '44'
Prompt executed in 0.06 seconds`

Hm looks like I changed something again. Will take further look.

I think the latest version did changed something. Update to latest version and probably try again.

I'll move back to my original request issue with further issues/updates on this if that's ok! As you mentioned sounds like my issue may not be directly related to @ultimatech-cn. Sorry for the added noise here!

Pinging @ultimatech-cn

Thanks!  I am trying other method for loop method. I will try this solution later.

Gonna close this since it feels like there's no longer issues. Feels free to reopen.


cht10_node: 0.0.1-1 in 'kinetic/distribution.yaml' [bloom]

Increasing version of package(s) in repository cht10_node to 0.0.1-1:

upstream repository: https://github.com/Playfish/cht10_node.git
release repository: https://github.com/Playfish/cht10_node_release.git
distro file: kinetic/distribution.yaml
bloom version: 0.6.4
previous version for package: null

cht10_node
* Catkinized
* Contributor: Carl

Hi @dirk-thomas .
I had add @ros-pull-request-builder to cht10_node just now.
Should I do another thing?
Thanks.

With push access granted I assume you have setup the webhooks manually. That should be all.


"Executing cell" indicator is now gone

After the July 2021 update to VScode, it's no longer possible to tell what VScode is doing since the executing cell indicator in the bottom left is now gone. Unless I uncollapse the code every time in the interactive window, I have no idea if the Vscode interactive window is running anything or not.

I second this issue; After the July 2021 update the new interface for the Interactive Python has received a temendous blow.

The "executing cell" indicator in the lower-left corner (in VSCode bar) is gone
The "(busy)/(idle)" indicator that was in the upper-right corner next to the interactive window interpreter is gone
The indicator next to each cell, that would go from an asterisx (*) during execution, to the cell number ( [n] ) after execution is also gone, and replaced by a weird-looking symbol I fail to understand what it represents.

The above 3 points make it impossible to know if the code is still running, or it has completed.
Additionally, it is now more cumbersome to delete executed cells, since one needs to expand the content of the cell before seeing the "x" to delete it. Moreover, when clicking on the "expand" symbol next to the cell, one is brought down at the end of the output, so to reach the "x" to delete the cell one has to scroll all the way back up. The same would happen for the "copy" or "go to code" buttons that are similarly hidden together with the "delete cell" until one exapands the code.
These changes severely impact the usability and friendliness of the interactive python window.

I am also having problems knowing whether my code is running.
There is a timer when you write in the console, but this indicator does not appear when using "Send Selection To Interactive Window".

This is a dupe of #6990. In the meantime you can expand all cells in the interactive window.
Alternatively you can temporarily opt out of the new experience by setting
    "jupyter.enableNativeInteractiveWindow":false


Is it possible to extend XO opcodes with buzzer remaining value?

v0 := delay works, but v0 := buzzer does not :(

Well, anything is possible. :)
In the original Chip-8 instruction set, buzzer is write-only. I've tried to design the XO-Chip extensions to provide as much power with as few modifications as possible to basic system. Since delay and buzzer count down in lockstep at 60hz, it seems to me that you can use the delay timer in most situations where you might want to read from the buzzer timer. Would that work for the application you have in mind?

Yes, thank you! :)


Fix mypy errors (visualization)

Summary
Following discussion, I'm splitting https://github.com/Qiskit/qiskit-terra/pull/8187 by module.
Details and comments
The are ~240 errors left:

 All error list
qiskit/visualization/gate_map.py:667: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
qiskit/visualization/gate_map.py:670: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
qiskit/visualization/gate_map.py:673: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
qiskit/visualization/gate_map.py:674: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
qiskit/visualization/pulse/interpolation.py:73: error: Argument 1 to "concatenate" has incompatible type "Tuple[List[Any], ndarray[Any, Any], List[Any]]"; expected "Union[_SupportsArray[dtype[Any]], Sequence[_SupportsArray[dtype[Any]]], Sequence[Sequence[_SupportsArray[dtype[Any]]]], Sequence[Sequence[Sequence[_SupportsArray[dtype[Any]]]]], Sequence[Sequence[Sequence[Sequence[_SupportsArray[dtype[Any]]]]]]]"  [arg-type]
qiskit/visualization/pulse/matplotlib.py:84: error: Incompatible types in assignment (expression has type "Instruction", variable has type "Pulse")  [assignment]
qiskit/visualization/pulse/matplotlib.py:88: error: Incompatible types in assignment (expression has type "List[Pulse]", target has type "Instruction")  [assignment]
qiskit/visualization/pulse/matplotlib.py:189: error: Incompatible types in string interpolation (expression has type "ShiftPhase", placeholder has type "Union[int, float, SupportsFloat]")  [str-format]
qiskit/visualization/pulse/matplotlib.py:192: error: Incompatible types in string interpolation (expression has type "SetPhase", placeholder has type "Union[int, float, SupportsFloat]")  [str-format]
qiskit/visualization/pulse/matplotlib.py:201: error: Incompatible types in string interpolation (expression has type "SetFrequency", placeholder has type "Union[int, float, SupportsFloat]")  [str-format]
qiskit/visualization/pulse/matplotlib.py:462: error: Argument 1 to "update" of "MutableMapping" has incompatible type "OrderedDict[MeasureChannel, EventsOutputChannels]"; expected "SupportsKeysAndGetItem[DriveChannel, EventsOutputChannels]"  [arg-type]
qiskit/visualization/pulse/matplotlib.py:463: error: Argument 1 to "update" of "MutableMapping" has incompatible type "OrderedDict[ControlChannel, EventsOutputChannels]"; expected "SupportsKeysAndGetItem[DriveChannel, EventsOutputChannels]"  [arg-type]
qiskit/visualization/pulse/matplotlib.py:464: error: Argument 1 to "update" of "MutableMapping" has incompatible type "OrderedDict[AcquireChannel, EventsOutputChannels]"; expected "SupportsKeysAndGetItem[DriveChannel, EventsOutputChannels]"  [arg-type]
qiskit/visualization/pulse/matplotlib.py:466: error: Argument 1 to "update" of "MutableMapping" has incompatible type "OrderedDict[SnapshotChannel, EventsOutputChannels]"; expected "SupportsKeysAndGetItem[DriveChannel, EventsOutputChannels]"  [arg-type]
qiskit/visualization/pulse/matplotlib.py:478: error: Invalid index type "Channel" for "OrderedDict[DriveChannel, EventsOutputChannels]"; expected type "DriveChannel"  [index]
qiskit/visualization/pulse/matplotlib.py:480: error: Invalid index type "Channel" for "OrderedDict[SnapshotChannel, EventsOutputChannels]"; expected type "SnapshotChannel"  [index]
qiskit/visualization/pulse/matplotlib.py:481: error: Incompatible return value type (got "Tuple[OrderedDict[DriveChannel, EventsOutputChannels], OrderedDict[DriveChannel, EventsOutputChannels], OrderedDict[SnapshotChannel, EventsOutputChannels]]", expected "Tuple[Dict[Channel, EventsOutputChannels], Dict[Channel, EventsOutputChannels], Dict[Channel, EventsOutputChannels]]")  [return-value]
qiskit/visualization/pulse/matplotlib.py:580: error: No overload variant of "unravel_index" matches argument types "int", "Tuple[int, int]", "str"  [call-overload]
qiskit/visualization/pulse/matplotlib.py:580: note: Possible overload variants:
qiskit/visualization/pulse/matplotlib.py:580: note:     def unravel_index(indices: Union[Union[bool, bool_], int, integer[Any]], shape: Union[SupportsIndex, Sequence[SupportsIndex]], order: Optional[Literal['C', 'F']] = ...) -> Tuple[signedinteger[Any], ...]
qiskit/visualization/pulse/matplotlib.py:580: note:     def unravel_index(indices: Union[_SupportsArray[dtype[Union[bool_, integer[Any]]]], _NestedSequence[_SupportsArray[dtype[Union[bool_, integer[Any]]]]], bool, int, _NestedSequence[Union[bool, int]]], shape: Union[SupportsIndex, Sequence[SupportsIndex]], order: Optional[Literal['C', 'F']] = ...) -> Tuple[ndarray[Any, dtype[signedinteger[Any]]], ...]
qiskit/visualization/pulse/matplotlib.py:584: error: Unsupported operand types for * ("str" and "float")  [operator]
qiskit/visualization/pulse/matplotlib.py:626: error: Missing return statement  [return]
qiskit/visualization/pulse/matplotlib.py:645: error: Missing return statement  [return]
qiskit/visualization/pulse/matplotlib.py:684: error: Incompatible types in assignment (expression has type "str", variable has type "ComplexColors")  [assignment]
qiskit/visualization/pulse/matplotlib.py:685: error: Incompatible return value type (got "ComplexColors", expected "str")  [return-value]
qiskit/visualization/pulse/matplotlib.py:701: error: "Waveform" object is not iterable  [misc]
qiskit/visualization/pulse/matplotlib.py:701: error: "Acquire" object is not iterable  [misc]
qiskit/visualization/pulse/matplotlib.py:721: error: "Waveform" object is not iterable  [misc]
qiskit/visualization/pulse/matplotlib.py:721: error: "Acquire" object is not iterable  [misc]
qiskit/visualization/pulse/matplotlib.py:927: error: Argument 1 to "ch_duration" of "Instruction" has incompatible type "*List[Channel]"; expected "List[Channel]"  [arg-type]
qiskit/visualization/pulse/matplotlib.py:927: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
qiskit/visualization/pulse/matplotlib.py:927: note: Consider using "Sequence" instead, which is covariant
qiskit/visualization/pulse_v2/core.py:232: error: Argument 2 to "set_time_range" of "DrawerCanvas" has incompatible type "Union[int, ParameterExpression, Any]"; expected "float"  [arg-type]
qiskit/visualization/pulse_v2/core.py:288: error: Invalid index type "Channel" for "Dict[Union[DriveChannel, MeasureChannel, ControlChannel, AcquireChannel], Dict[Any, Any]]"; expected type "Union[DriveChannel, MeasureChannel, ControlChannel, AcquireChannel]"  [index]
qiskit/visualization/pulse_v2/core.py:288: error: Incompatible types in assignment (expression has type "float", target has type "Dict[Any, Any]")  [assignment]
qiskit/visualization/pulse_v2/core.py:325: error: Too many arguments for "SnapshotInstruction"  [call-arg]
qiskit/visualization/pulse_v2/core.py:325: error: Incompatible types in assignment (expression has type "SnapshotInstruction", variable has type "BarrierInstruction")  [assignment]
qiskit/visualization/pulse_v2/core.py:325: error: "Instruction" has no attribute "label"  [attr-defined]
qiskit/visualization/pulse_v2/core.py:382: error: Incompatible types in assignment (expression has type "Tuple[float, float]", variable has type "Tuple[int, int]")  [assignment]
qiskit/visualization/pulse_v2/core.py:633: error: Argument 1 to "_bind_coordinate" of "Chart" has incompatible type "ndarray[Any, dtype[Any]]"; expected "Iterator[Coordinate]"  [arg-type]
qiskit/visualization/pulse_v2/core.py:633: note: "ndarray" is missing following "Iterator" protocol member:
qiskit/visualization/pulse_v2/core.py:633: note:     __next__
qiskit/visualization/pulse_v2/core.py:634: error: Argument 1 to "_bind_coordinate" of "Chart" has incompatible type "ndarray[Any, dtype[Any]]"; expected "Iterator[Coordinate]"  [arg-type]
qiskit/visualization/pulse_v2/core.py:634: note: "ndarray" is missing following "Iterator" protocol member:
qiskit/visualization/pulse_v2/core.py:634: note:     __next__
qiskit/visualization/pulse_v2/device_info.py:89: error: Incompatible return value type (got "Union[int, ParameterExpression]", expected "Optional[int]")  [return-value]
qiskit/visualization/pulse_v2/device_info.py:109: error: "Backend" has no attribute "configuration"  [attr-defined]
qiskit/visualization/pulse_v2/device_info.py:110: error: "Backend" has no attribute "defaults"  [attr-defined]
qiskit/visualization/pulse_v2/device_info.py:113: error: "Backend" has no attribute "name"  [attr-defined]
qiskit/visualization/pulse_v2/device_info.py:125: error: Key expression in dictionary comprehension has incompatible type "MeasureChannel"; expected type "DriveChannel"  [misc]
qiskit/visualization/pulse_v2/device_info.py:131: error: Invalid index type "ControlChannel" for "Dict[DriveChannel, Any]"; expected type "DriveChannel"  [index]
qiskit/visualization/pulse_v2/device_info.py:145: error: Argument "channel_frequency_map" to "OpenPulseBackendInfo" has incompatible type "Dict[DriveChannel, Any]"; expected "Optional[Dict[Channel, float]]"  [arg-type]
qiskit/visualization/pulse_v2/drawings.py:104: error: Incompatible types in assignment (expression has type "Union[Channel, List[Channel]]", variable has type "List[Channel]")  [assignment]
qiskit/visualization/pulse_v2/drawings.py:156: error: Argument "xvals" to "__init__" of "ElementaryData" has incompatible type "Union[ndarray[Any, Any], List[Coordinate]]"; expected "ndarray[Any, Any]"  [arg-type]
qiskit/visualization/pulse_v2/drawings.py:157: error: Argument "yvals" to "__init__" of "ElementaryData" has incompatible type "Union[ndarray[Any, Any], List[Coordinate]]"; expected "ndarray[Any, Any]"  [arg-type]
qiskit/visualization/pulse_v2/drawings.py:201: error: Argument "xvals" to "__init__" of "ElementaryData" has incompatible type "Union[ndarray[Any, Any], List[Coordinate]]"; expected "ndarray[Any, Any]"  [arg-type]
qiskit/visualization/pulse_v2/drawings.py:202: error: Argument "yvals" to "__init__" of "ElementaryData" has incompatible type "Union[ndarray[Any, Any], List[Coordinate]]"; expected "ndarray[Any, Any]"  [arg-type]
qiskit/visualization/pulse_v2/drawings.py:245: error: Argument "xvals" to "__init__" of "ElementaryData" has incompatible type "Union[ndarray[Any, Any], List[Coordinate]]"; expected "ndarray[Any, Any]"  [arg-type]
qiskit/visualization/pulse_v2/drawings.py:246: error: Argument "yvals" to "__init__" of "ElementaryData" has incompatible type "Union[ndarray[Any, Any], List[Coordinate]]"; expected "ndarray[Any, Any]"  [arg-type]
qiskit/visualization/pulse_v2/events.py:162: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
qiskit/visualization/pulse_v2/events.py:163: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
qiskit/visualization/pulse_v2/events.py:164: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
qiskit/visualization/pulse_v2/events.py:179: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
qiskit/visualization/pulse_v2/events.py:210: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
qiskit/visualization/pulse_v2/events.py:246: error: Incompatible types in assignment (expression has type "Union[float, ParameterExpression]", variable has type "float")  [assignment]
qiskit/visualization/pulse_v2/events.py:250: error: Incompatible types in assignment (expression has type "Union[complex, ParameterExpression]", variable has type "float")  [assignment]
qiskit/visualization/pulse_v2/events.py:252: error: Incompatible types in assignment (expression has type "Union[complex, Any]", variable has type "float")  [assignment]
qiskit/visualization/pulse_v2/generators/barrier.py:71: error: List item 0 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/barrier.py:71: error: List item 1 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/barrier.py:72: error: List item 0 has incompatible type "AbstractCoordinate"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/barrier.py:72: error: List item 1 has incompatible type "AbstractCoordinate"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/chart.py:72: error: List item 0 has incompatible type "AbstractCoordinate"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/chart.py:72: error: List item 1 has incompatible type "AbstractCoordinate"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/chart.py:73: error: List item 0 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/chart.py:73: error: List item 1 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/chart.py:108: error: List item 0 has incompatible type "AbstractCoordinate"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/chart.py:109: error: List item 0 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/chart.py:148: error: List item 0 has incompatible type "AbstractCoordinate"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/chart.py:201: error: List item 0 has incompatible type "AbstractCoordinate"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/frame.py:94: error: Value of type "Union[Instruction, List[Instruction]]" is not indexable  [index]
qiskit/visualization/pulse_v2/generators/frame.py:94: error: Item "Instruction" of "Union[Any, Instruction]" has no attribute "channel"  [union-attr]
qiskit/visualization/pulse_v2/generators/frame.py:95: error: List item 0 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/frame.py:142: error: Value of type "Union[Instruction, List[Instruction]]" is not indexable  [index]
qiskit/visualization/pulse_v2/generators/frame.py:142: error: Item "Instruction" of "Union[Any, Instruction]" has no attribute "channel"  [union-attr]
qiskit/visualization/pulse_v2/generators/frame.py:143: error: List item 0 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/frame.py:197: error: Value of type "Union[Instruction, List[Instruction]]" is not indexable  [index]
qiskit/visualization/pulse_v2/generators/frame.py:197: error: Item "Instruction" of "Union[Any, Instruction]" has no attribute "channel"  [union-attr]
qiskit/visualization/pulse_v2/generators/frame.py:198: error: List item 0 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/frame.py:217: error: Value of type "Union[Instruction, List[Instruction]]" is not indexable  [index]
qiskit/visualization/pulse_v2/generators/frame.py:217: error: Item "Instruction" of "Union[Any, Instruction]" has no attribute "channel"  [union-attr]
qiskit/visualization/pulse_v2/generators/frame.py:218: error: List item 0 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/frame.py:275: error: Value of type "Union[Instruction, List[Instruction]]" is not indexable  [index]
qiskit/visualization/pulse_v2/generators/frame.py:275: error: Item "Instruction" of "Union[Any, Instruction]" has no attribute "channel"  [union-attr]
qiskit/visualization/pulse_v2/generators/frame.py:276: error: List item 0 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/frame.py:316: error: Item "Instruction" of "Union[Instruction, List[Instruction]]" has no attribute "__iter__" (not iterable)  [union-attr]
qiskit/visualization/pulse_v2/generators/frame.py:340: error: Value of type "Union[Instruction, List[Instruction]]" is not indexable  [index]
qiskit/visualization/pulse_v2/generators/frame.py:340: error: Item "Instruction" of "Union[Any, Instruction]" has no attribute "channel"  [union-attr]
qiskit/visualization/pulse_v2/generators/frame.py:341: error: List item 0 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/frame.py:342: error: List item 0 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/snapshot.py:75: error: List item 0 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/snapshot.py:124: error: List item 0 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/snapshot.py:125: error: List item 0 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/waveform.py:76: error: Item "Instruction" of "Union[Instruction, List[Instruction]]" has no attribute "channel"  [union-attr]
qiskit/visualization/pulse_v2/generators/waveform.py:76: error: Item "List[Instruction]" of "Union[Instruction, List[Instruction]]" has no attribute "channel"  [union-attr]
qiskit/visualization/pulse_v2/generators/waveform.py:104: error: Item "Instruction" of "Union[Instruction, List[Instruction]]" has no attribute "pulse"  [union-attr]
qiskit/visualization/pulse_v2/generators/waveform.py:104: error: Item "List[Instruction]" of "Union[Instruction, List[Instruction]]" has no attribute "pulse"  [union-attr]
qiskit/visualization/pulse_v2/generators/waveform.py:108: error: Item "Instruction" of "Union[Instruction, List[Instruction]]" has no attribute "pulse"  [union-attr]
qiskit/visualization/pulse_v2/generators/waveform.py:108: error: Item "List[Instruction]" of "Union[Instruction, List[Instruction]]" has no attribute "pulse"  [union-attr]
qiskit/visualization/pulse_v2/generators/waveform.py:109: error: Item "Instruction" of "Union[Instruction, List[Instruction]]" has no attribute "pulse"  [union-attr]
qiskit/visualization/pulse_v2/generators/waveform.py:109: error: Item "List[Instruction]" of "Union[Instruction, List[Instruction]]" has no attribute "pulse"  [union-attr]
qiskit/visualization/pulse_v2/generators/waveform.py:111: error: Item "Instruction" of "Union[Instruction, List[Instruction]]" has no attribute "pulse"  [union-attr]
qiskit/visualization/pulse_v2/generators/waveform.py:111: error: Item "List[Instruction]" of "Union[Instruction, List[Instruction]]" has no attribute "pulse"  [union-attr]
qiskit/visualization/pulse_v2/generators/waveform.py:115: error: Argument "duration" to "_draw_opaque_waveform" has incompatible type "ndarray[Any, Any]"; expected "int"  [arg-type]
qiskit/visualization/pulse_v2/generators/waveform.py:177: error: Item "Instruction" of "Union[Instruction, List[Instruction]]" has no attribute "pulse"  [union-attr]
qiskit/visualization/pulse_v2/generators/waveform.py:177: error: Item "List[Instruction]" of "Union[Instruction, List[Instruction]]" has no attribute "pulse"  [union-attr]
qiskit/visualization/pulse_v2/generators/waveform.py:219: error: Item "Instruction" of "Union[Instruction, List[Instruction]]" has no attribute "channel"  [union-attr]
qiskit/visualization/pulse_v2/generators/waveform.py:219: error: Item "List[Instruction]" of "Union[Instruction, List[Instruction]]" has no attribute "channel"  [union-attr]
qiskit/visualization/pulse_v2/generators/waveform.py:220: error: List item 0 has incompatible type "Union[float, Any]"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/waveform.py:220: error: Item "List[Instruction]" of "Union[Instruction, List[Instruction]]" has no attribute "duration"  [union-attr]
qiskit/visualization/pulse_v2/generators/waveform.py:267: error: Incompatible types in assignment (expression has type "Pulse", variable has type "Waveform")  [assignment]
qiskit/visualization/pulse_v2/generators/waveform.py:268: error: Argument 1 to "arange" has incompatible type "Union[int, ParameterExpression]"; expected "Union[Union[bool, bool_], int, integer[Any]]"  [arg-type]
qiskit/visualization/pulse_v2/generators/waveform.py:353: error: Argument 1 to "concatenate" has incompatible type "Tuple[ndarray[Any, Any], List[Any]]"; expected "Union[_SupportsArray[dtype[Any]], Sequence[_SupportsArray[dtype[Any]]], Sequence[Sequence[_SupportsArray[dtype[Any]]]], Sequence[Sequence[Sequence[_SupportsArray[dtype[Any]]]]], Sequence[Sequence[Sequence[Sequence[_SupportsArray[dtype[Any]]]]]]]"  [arg-type]
qiskit/visualization/pulse_v2/generators/waveform.py:357: error: Argument 1 to "concatenate" has incompatible type "Tuple[List[Any], ndarray[Any, Any], List[Any]]"; expected "Union[_SupportsArray[dtype[Any]], Sequence[_SupportsArray[dtype[Any]]], Sequence[Sequence[_SupportsArray[dtype[Any]]]], Sequence[Sequence[Sequence[_SupportsArray[dtype[Any]]]]], Sequence[Sequence[Sequence[Sequence[_SupportsArray[dtype[Any]]]]]]]"  [arg-type]
qiskit/visualization/pulse_v2/generators/waveform.py:426: error: Incompatible return value type (got "List[LineData]", expected "List[Union[LineData, BoxData, TextData]]")  [return-value]
qiskit/visualization/pulse_v2/generators/waveform.py:426: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
qiskit/visualization/pulse_v2/generators/waveform.py:426: note: Consider using "Sequence" instead, which is covariant
qiskit/visualization/pulse_v2/generators/waveform.py:426: note: Perhaps you need a type annotation for "fill_objs"? Suggestion: "List[Union[LineData, BoxData, TextData]]"
qiskit/visualization/pulse_v2/generators/waveform.py:471: error: List item 0 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/waveform.py:471: error: List item 1 has incompatible type "int"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/waveform.py:496: error: List item 0 has incompatible type "float"; expected "Coordinate"  [list-item]
qiskit/visualization/pulse_v2/generators/waveform.py:503: error: Argument 1 to "append" of "list" has incompatible type "TextData"; expected "BoxData"  [arg-type]
qiskit/visualization/pulse_v2/generators/waveform.py:505: error: Incompatible return value type (got "List[BoxData]", expected "List[Union[LineData, BoxData, TextData]]")  [return-value]
qiskit/visualization/pulse_v2/generators/waveform.py:505: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
qiskit/visualization/pulse_v2/generators/waveform.py:505: note: Consider using "Sequence" instead, which is covariant
qiskit/visualization/pulse_v2/generators/waveform.py:505: note: Perhaps you need a type annotation for "fill_objs"?
I'm not sure why those errors appear:
qiskit/visualization/pulse_v2/interface.py:411: error: Argument 1 to "set_disable_type" of "DrawerCanvas" has incompatible type "SymbolType"; expected "DataTypes"  [arg-type]
qiskit/visualization/pulse_v2/interface.py:412: error: Argument 1 to "set_disable_type" of "DrawerCanvas" has incompatible type "LabelType"; expected "DataTypes"  [arg-type]
qiskit/visualization/pulse_v2/interface.py:416: error: Argument 1 to "set_disable_type" of "DrawerCanvas" has incompatible type "SymbolType"; expected "DataTypes"  [arg-type]
qiskit/visualization/pulse_v2/interface.py:417: error: Argument 1 to "set_disable_type" of "DrawerCanvas" has incompatible type "LabelType"; expected "DataTypes"  [arg-type]
qiskit/visualization/pulse_v2/interface.py:421: error: Argument 1 to "set_disable_type" of "DrawerCanvas" has incompatible type "LabelType"; expected "DataTypes"  [arg-type]
qiskit/visualization/pulse_v2/interface.py:422: error: Argument 1 to "set_disable_type" of "DrawerCanvas" has incompatible type "LabelType"; expected "DataTypes"  [arg-type]
qiskit/visualization/pulse_v2/interface.py:426: error: Argument 1 to "set_disable_type" of "DrawerCanvas" has incompatible type "LineType"; expected "DataTypes"  [arg-type]

if DataTypes is the union of all those.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

26 of 34 (76.47%)  changed or added relevant lines in 7 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.003%) to 85.274%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit/visualization/pulse/interpolation.py
0
1
0.0%

qiskit/visualization/pulse/matplotlib.py
0
7
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.003%

Covered Lines:
67251

Relevant Lines:
78865

💛  - Coveralls

@1ucian0 anything else required from me here?

@1ucian0 done


Test fixture base class uses SqlServer-specific code

InheritanceRelationalFixture sets ColumnType to nvarchar, which is SqlServer-specific and should happen in a provider-independent project.
https://github.com/aspnet/EntityFramework/blob/fb465491355f09f7f0fafdd2013043acb670d87e/src/Microsoft.EntityFrameworkCore.Relational.Specification.Tests/InheritanceRelationalFixture.cs#L22

@roji feel free to send a PR with some refactoring to allow this to be done in the provider tests

OK @rowanmiller, will do

@AndriySvyryd I've tried to get around the specification of nvarchar by replacing .HasColumnType("nvarchar(100)") with .HasMaxLength(100); in InheritanceRelationalFixture, and oddly this generates the error "Column 'Animal.Species' is not the same length or scale as referencing column 'Animal.EagleId' in foreign key 'FK_Animal_Animal_EagleId'. Columns participating in a foreign key relationship must be defined with the same length and scale.". The same error happens if I don't configure the properties at all.
I know #2455 is still open and am not sure about things here, but it seems problematic to have to specify the full column type here, any input?

@roji - 🐛 filed #5379
The same error happens for no configuration since, one of them is PK and its length will be limited for it and then it becomes same issue as the former.
You can override OnModelCreating method in derived classes like InheritanceSqlServerFixture and set provider-specific types there.

Thanks!


[BEAM-5643] fix broken python it test

A quick fix on user_score_it_test.
Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.
Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Samza
Spark

Go

---
---
---
---
---
---

Java

Python

---

---
---
---

Run Python PostCommit

Run Python PostCommit

Run Python PostCommit

+R: @aaltay

LGTM

Thanks


how to build on cuda10.2?

cuda10.2 doesnt support gpu arch 80

Correct, CUDA 10.2 doesn't support Ampere, you'll need a newer version of CTK for that. Is there a CUB issue here?

@allisonvacanti I cloned cub and build it got this error.

The current development branch of CUB only supports CUDA 11.0+. The 1.8.0 version of CUB should work on 10.2.


library attendence data

Do we have data for the library attended draft recipes?

Query: what makes library attendance special? What about computer suites, or workshop facilities?
Could this be re-cast as accessing an open-access physical study resource?
(btw the draft recipe includes the words "reading list")

Ignoring for the 'reading list' issue, in terms of data, the thing that makes library attendance is many libraries have turnstyle systems such as Sentry.  This means they record the time a user enters and leaves the Library which in turn allows the duration of visit to be calculated.  Other areas tend to use swipe card or keypad door access which is inacurate due to tailgating.
Does this scenario fit with login/logout?


Adds workaround for building against stable VS.

This will keep us building with the current version of VS while we figure out how to deal with the brokenness in the next update.
We'll just have to ignore the failed tests for now until we can get all the build machines upgraded properly (which they probably won't do for us, so we're back to maintaining our own build infrastructure...)

I've already updated the build definitions to use a working build pool, so feel free to merge this whenever and we'll get tests going again.

What do you mean by working build pool?  Is it machines that we manage ourselves that are currently on 15.2 and that we'll update to 15.3 shortly?

No, we switched to the one that is managed by the build team a while back, but they won't update to 15.3 until after it releases. I upgraded our own one and switched back to that briefly, but it won't build for a variety of other reasons and I don't want to spend the time debugging that when we could (and should) just be getting the editor team to fix their API breakage.


Drop/replace array_decode_utf8 from benchmark_vlen.ipynb

In PR ( https://github.com/dask/fastparquet/pull/580 ) included in fastparquet release 0.6.0, array_decode_utf8 was dropped from fastparquet.speedups. We should either drop or replace this benchmark from notebook/benchmark_vlen.ipynb.

cc @martindurant (in case you have any thoughts here; no worries if not 🙂)

I had no idea that this existed!

The function or the benchmark? In either case think it was totally reasonable to drop that code from fastparquet (it looked kind of like an internal function). Just didn't know if there was something else we should be using here or if we should just drop it.

The encode part was rolled into pack_byte_array, so note reachable from outside, definitely an internal thing.


Primitives support the dynamic circuits with control flow

Summary
Primitives support the dynamic circuits with control flow.
If backend supports it, users can run the circuits using BackendSampler
and BackendEstimator.
Details and comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

9 of 9 (100.0%)  changed or added relevant lines in 1 file are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.04%) to 84.548%

Files with Coverage Reduction
New Missed Lines
%

qiskit/pulse/library/waveform.py
3
91.49%

Totals

Change from base Build<PHONE_NUMBER>:
-0.04%

Covered Lines:
62904

Relevant Lines:
74400

💛  - Coveralls

I made _circuit_key public since this function has been already used from external (i.e. qiskit/algorithms/gradients).

I'm not a fan of making _circuit_key public, because of the concerns I've expressed about the management of circuits internally to enable the primitives' API and circuit_key's part in that, but that's not my call to make.
If you're going to do that, though, I'd much rather it was in a separate PR, which would now need to be targetted to Terra 0.24, rather than 0.23 whose release candidate is due on Thursday.

@ikkoham: by the way, we tagged this as a release blocker for 0.23rc1, because I think it's something you need very strongly?  Let us know if it's not the case and we can downgrade it.

This PR is needed in 0.23. I understand that private testing is not good, so I will create a separate PR and make it public with deprecation in 0.24.


Bring back environment.ts to new projects

Command
new
Description
Not generating environment.ts in new ng 15 projects is a big breaking change. So you are so proud of stand alone components and single file components and you do everything to please React developers. They will still prefere React.
Describe the solution you'd like
I want environment.ts and envrionment.prod.ts generated when creating a new project. Or at least have a flag to indicate that I want this to be done
Describe alternatives you've considered
Create manually or change to React

Agree with @alan-agius4 that we don't need environment.ts files created by default. There should be some mechanism to update content at runtime (like updating backend API from QA to Prod) but that should be coped separately

After the release of Angular CLI 15.1, a generation schematic will be available to add environment files for all existing build configurations within a project.
Example usage: ng generate environments

Great job … For simpler apps environment.ts and *.prod.ts was a good & simple solution to provide global vars like api url, … thanks a lot 👍
I also want to mention that in my opinion and there should be a default simple solution for config and global vars. With the experience of having thought more than 50 Angular classes I can definitely say that „the many boilerplate files“ is not what is confusing people that want to learn Angular. If you want to make it easier for newbie’s take out Observables  and their operators 😜😝😉

environment.ts is very necessary for novices. The interface addresses of many project development environments and production environments are different.
Too unfriendly for novices.
Articles on the Internet are written according to the default existence of the environment.ts file.
The absence of environment.ts creates doubts for newcomers, who don't know what to do.

I think the generation of the environments file should be more appropriate to ask when ng new creates the project (just like choosing css scss).

After the release of Angular CLI 15.1, a generation schematic will be available to add environment files for all existing build configurations within a project. Example usage: ng generate environments

But I've an error with this command:
Error: A collection and schematic is required during execution.

After the release of Angular CLI 15.1 and you are using Angular CLI: 15.0.*;


Max retries exceeded fapi/v1

Im retrienving my open positions in a given symbol, BTCBUSD for example, using futures_position_information(symbol='BTCBUSD')
then i get back
Error: HTTPSConnectionPool(host='fapi.binance.com', port=443): Max retries exceeded with url: /fapi/v1/positionRisk?
In my client(api_key, api_secret) im using timeout=20 ok.
My issue or question (idk) is:
Why its using v1 if we got a v2 for this function?

i saw its broken:
⚠ Probably broken, python code below is implemented on v1 endpoint.
Any tips when it will be fixed/updated?

Since the error cannot be reproduced stably without specifying a longer timeout, futures_position_information could be considered fine.
Back to other questions:
It's just nobody has enough motivation to make a pull request since the old v1 API still working.
A fix is very simple and easy, however, there have been too many unmerged pull requests and I wonder whether the author has enough time to continue this project.

@halfelf i did it myself changing to it request via GET directly from Binance in v2 API.
Its the second or third time i got error from futures_position_information, i just dont remember others.

client._request('get', 'https://fapi.binance.com/fapi/v2/positionRisk', signed=True, force_params=True, data={})  works as expected. Programming bugs are not for github issue tracking. Please try stackoverflow or binance official forum.


outline on switches (improve base CSS or documentation)

When implementing a Switch (http://foundation.zurb.com/sites/docs/v/5.5.3/components/switch.html) or similar, Chrome will render a blue outline on ay clicked element.  This is undesirable not merely because it doesn't fit the default Foundation styling, but also because the outline can become misaligned with the label's shadow.
This is easily fixed with: label {outline:0;}
This CSS could be added to Foundation's base, or simply mentioned on the documentation page for the relevant components.

From an accessibility standpoint, the outline is helpful for keyboard users. However, I'm not seeing this behavior in Foundation 5. Can you post the HTML used to create this switch?

Closing this out. This was address with what-input.

@JeremyEnglert does this mean the outline will automatically not show when using mouse clicks?

Correct.
Mouse clicks = no outline.
Keyword actions = visible outline.

Awesome.  Thx.


Fix(Demo-Sidebar): Updated Open and Close Sidebar text for controlled…

… sidebar
Updated Text for controlled sidebar for open issue.
https://github.com/shadcn-ui/ui/issues/5443#issue-2599158194

Hi @Dipendra-creator we fixed this in https://github.com/shadcn-ui/ui/pull/5428


Add IgnoreConflict option for paket push

In some situations you don't care that nuget returned a 409 conflict.
This gives the option to just ignore that.

is that a green build i see before me 😝

Please remove that option.
Chris Blyth<EMAIL_ADDRESS>schrieb am Do., 5. Dez. 2019, 10:54:

@BlythMeister commented on this pull request.
In src/Paket/Commands.fs
https://github.com/fsprojects/Paket/pull/3741#discussion_r354205571:

@@ -608,6 +611,9 @@ with
| Endpoint() -> "API endpoint to push to (default: /api/v2/package)"
| Endpoint_Legacy() -> "[obsolete]"

       | Ignore_Conflicts -> "Ignore any HTTP409 (Conflict) errors and treat as success"

       | Ignore_Conflicts_Legacy(_) -> "[obsolete]"

i copied the others....wasn't sure it it was needed
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/fsprojects/Paket/pull/3741?email_source=notifications&email_token=AAAOANCDV3UBRBHJKN4RMNDQXDFVJA5CNFSM4JU2W2B2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCOCBVXY#discussion_r354205571,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAOANHUJF5TNRKWG4IHQD3QXDFVJANCNFSM4JU2W2BQ
.


I suddenly can't make testNoMediaInTray Pass

Wasn't there supposed to be a message that appears here when I remove all media from the device?

I've run this test this morning and all were fine. This afternoon, I can't seem to make this specific test pass. I've been using the same device to run the test so I'm sure that my setup is the same. Also, I can see these messages:

Did something change with the servers? Do you think there is something wrong with my device?
Thanks.

Just now I tried it again and it's passing. I don't know what just happened! I did not touch my setup.

Please attach logs next time this happens again. It could be a case of the printer being in a state with multiple errors so the expected error wasn't detected.

This issue hasn't happen in a while. Closing this issue and will reopen if ever the problem is seen again.
Thanks.


Handy ways to implement uniqueness for markers

As per title, I’d like to have a version of ClusterManager.addItem(T) and ClusterManager.addItems(Collection<T>) where item is not added if already present.
Would this be interesting to anyone?
Do you have any pointers to how this could be achieved?
Collections seem to be always backed up by ArrayList. I could have a wrapper and keep a second copy of markers in a Set, but that does not seem ideal.
It would be nice if we had something (Algorithm? I’m not confident with the source right now) already backed up by Set.
Hints or thoughts?
(If you are wondering, this is the use case:
For performance reasons, I query the database for only 100 items (that will become markers).
query.near(centerOfMap);
query.limit(100);
items = query.find();
manager.addItems(items);

When the map is panned beyond a certain threshold, a new query is triggered, with a new centerOfMap. But it might be that some of the fetched items was already present in the previous query, thus the need of a uniqueness check).

FWIW, I've implemented this concept outside of the android-maps-utils library, specifically for showing bus stops on a map:
https://github.com/OneBusAway/onebusaway-android/blob/master/onebusaway-android/src/google/java/org/onebusaway/android/map/googlemapsv2/StopOverlay.java#L668
Use case is very similar to what you say - we have a server-side API to get bus stops within a geographic bounds, and we hit the API when the user pans the map with the new geographic bounds.  The set of stops we get back may or may not already exist on the map depending on where the user has previously scrolled.  HashMaps are used to track what's already been added.  When the number of markers on the map exceeds a fixed threshold, the map is wiped clean and you start over.


More intelligent immutability update handling.

Using tcomb types and their immutability helpers I get the following result:
const Person = t.struct({ name: t.String,  surname: t.String });
const bob = Person({ name: `Bob`, surname: `Builder` });
const stillBob = Person.update(bob, { $merge: { name: `Bob`, surname: `Builder` } });
console.log(bob === stillBob); // false

"bob" is no longer considered "bob" even though I technically didn't update any of his values. It would be great if the immutability helpers would have higher intelligence in this regard; i.e. reference check the props and simply spit out the original object if none have changed.
If so this greatly simplifies my workflow as I don't need to do manually checking pre updates in order to avoid any state update propagation through my React app.  One example benefit, I am sure there are many more.
I have used a previous immutability helper library by the name of timm which does have the behaviour I am requesting, an example:
const mary = { name: `Mary`, surname: `Fairy` };
const stillMary = timm.merge(mary, { name: `Mary`, surname: `Fairy` });
console.log(mary === stillMary); // true

http://guigrpa.github.io/timm/

FYI, I tried the following, which actually works:
const Person = t.struct({ name: t.String,  surname: t.String });
const bob = Person({ name: `Bob`, surname: `Builder` });
const anotherBob = timm.merge(bob, { name: `Bob`, surname: `Builder` });
console.log(bob === anotherBob); // true

Useful alternative for those in the need.

Adding other commands
You can add your custom commands updating the t.update.commands hash.

I shall try this and post anything useful. :)

Ouch, not going to have much luck with providing a custom update command it seems:
const fred = Person({ name: `Fred`, surname: `Flintstone` });
const stillFred = Person.update(
  fred, { $noop:  { /* won't even be used */ } }
);
console.log(fred); // { name: `Fred`, surname: `Flintstone` }
console.log(stillFred); // { name: `Fred`, surname: `Flintstone` }
console.log(fred === stillFred); // false

I checked update.js and the following is called with the instance pre patch:
function getShallowCopy(x) {
  if (isArray(x)) {
    return x.concat();
  }
  if (x instanceof Date || x instanceof RegExp) {
    return x;
  }
  if (isObject(x)) {
    return mixin({}, x);
  }
  return x;
}

So a new object is always created. :cry:

Current workaround:
const fred = Person({ name: `Fred`, surname: `Flintstone` });
const stillFred = Person(timm.merge(fred, { name: `Fred`, surname: `Flintstone` });
console.log(fred); // { name: `Fred`, surname: `Flintstone` }
console.log(stillFred); // { name: `Fred`, surname: `Flintstone` }
console.log(fred === stillFred); // true

Definitely it's a flaw in the update design, thanks for pointing out and for the link to timm.   Wow man, epic turnaround time as always.  Thank you for this.  I'll update my project to point to the github instance and will give it a run through over the next few days.  Writing tons of code and unit tests asserting all these things so should be a good test for it.
Thanks. :)


ESM in node.

Why does the new version only support the ESM and how do I use it in the node environment

https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c


Can we transfer learning?

Can we use a pre-trained model or do transfer learning?

I think yes, if you can write advanced application code.
What do you want to do more concretely?

I can train a simple model about solubility with reference to train_own_dataset.py and saved the model to pickle.
Then, how do I try to train another model, for example, tox, lipophilicity, or whatever, with transfer learning from a model about solubility?
I know the way of transfer learning with Keras, freeze, but not familiar with chainer.

It just depends on how you want to run transfer learning.
One example is following:

Instantiate and load pre-trained model --> get predictor.
Define new predictor with
new_predictor = GraphConvPredictor(predictor.conv, MLP(out_dim=class_num, hidden_dim=n_unit))
It keeps the Graph Conv layer to be same with pretrained model, but uses new MLP layer for new label prediction.
Train new predictor

Thanks! I will try it.

You said 1. get predictor
However. following train_own_dataset.py, I got the pickle of regressor not predictor.
def parse_arguments():
    ./// omission
    return parser.parse_args()

def main():
    ./// omission
    # Set up the predictor.
    predictor = set_up_predictor(
        args.method, args.unit_num,
        args.conv_layers, class_num, label_scaler=scaler)
    metrics_fun = {'mae': F.mean_absolute_error, 'rmse': rmse}
    regressor = Regressor(predictor, lossfun=F.mean_squared_error,
                          metrics_fun=metrics_fun, device=device)
     run_train(regressor,  .///)

    regressor.save_pickle(model_path, protocol=args.protocol)

if __name__ == '__main__':
    main()

As also, in predict_own_dataset.py, we load the pickle of regressor.
regressor = Regressor.load_pickle(model_path, device=device)

How can I get the predictor ?

You can get by predictor = regressor.predictor
Another way is to save predictor in the first pre-training step using serializer, like serializers.save_npz('predictor.npz', predictor)
Please refer chainer document for details.

Great thanks.
As you said, I tried that
predictor = regressor.predictor
new_predictor = GraphConvPredictor(predictor.conv, MLP(out_dim=class_num, hidden_dim=n_unit))

However,
AttributeError: 'GraphConvPredictor' object has no attribute 'conv'

occured.
So I changed from predictor.conv to predictor.
predictor = regressor.predictor
new_predictor = GraphConvPredictor(predictor, MLP(out_dim=class_num, hidden_dim=n_unit))

I don' know why, but it works well.

https://github.com/pfnet-research/chainer-chemistry/blob/master/chainer_chemistry/models/prediction/graph_conv_predictor.py#L33
Please refer code. You can use predictor.graph_conv to extract only graph convolution network part.

I understood why my last code was not good (GraphConvPredictor(predictor,...)
I changed the code and will evaluate the performance w/o pre-trained model.
new_predictor = GraphConvPredictor(predictor.graph_conv, MLP(out_dim=class_num, hidden_dim=n_unit))

Thanks.

Seems ok! Can we close the issue then?


Line pointStyle

Which class is this unit test associated with?
作者您好，请问有没有设置折线图pointStyle的属性

@zhangjiechina001 帮你找一下

@zhangjiechina001 发布新版本 7.5.4

收到，非常感谢！
---Original---
From: "Argo @.>
Date: Fri, Jun 16, 2023 21:29 PM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [dotnetcore/BootstrapBlazor] Line pointStyle (Issue #1397)
@zhangjiechina001 发布新版本 7.5.4
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


Story/iexp 324

i made the call to the db anyway... the elasticsearch result was kindof chaotic. maybe you have a way around that that you could enlighten me about, but there was no way to predict what the elasticsearch document was going to contain. all of the authority names and ids were separated out into different fields, so to get the name for the authority and to be sure that the id and name matched, i had to call the db authority model with the authority id to get the name. also, elasticsearch was returning seemingly random amounts of each value, sometimes as single values sometimes as lists with 20 values for the datum. for the authors, to take an example, if the citation had one author, the authors field might be a list of that author's name 3 times, or if the citation had 3 authors, the citation might just display each authors name only once in the list -- this was forcing me to check each field for uniqueness and reduce each field to unique values. it just seemed a lot simpler to call the db for the citations and seemed like it would probably result in fewer or only marginally more calls to the db per page load.
if you know a solution to this that doesn't involve calling the db please let me know because i have been known to be a dumbass on many occasions

You can add fields to the the ES documents. In search_indexes.py you can see how the different fields are indexed. If there are multiple entries for a value then that has probably something to do with what we want to find. But you can add new not-indexed fields. Those fields can just hold the data that you want to display. E.g.  look at the title field: title = indexes.CharField(null=True, indexed=False, stored=True) and prepare_title method. You can even generate the author string you want to display there instead of adding individual authors and then just read that out when displaying. Does that make sense?

The following exception was thrown. There seems to be a variable declaration missing.
UnboundLocalError at /isis/citation/CBB001022814/
local variable 'bookGoogleId' referenced before assignment
...

Users/jdamerow/UpConsulting/isiscb/IsisCB/isiscb/isisdata/views.py in get_google_books_image
url2 = settings.GOOGLE_BOOKS_ITEM_GET_PATH.format(bookGoogleId=bookGoogleId, apiKey=apiKey)

I found another two more bugs:
Internal Server Error: /isis/citation/CBB000500987/
Traceback (most recent call last):
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/Users/jdamerow/UpConsulting/isiscb/IsisCB/isiscb/isisdata/views.py", line 742, in citation
    googleBooksImage = get_google_books_image(citation)
  File "/Users/jdamerow/UpConsulting/isiscb/IsisCB/isiscb/isisdata/views.py", line 902, in get_google_books_image
    items = books["items"]
KeyError: 'items'

Internal Server Error: /isis/citation/CBB000070392/
Traceback (most recent call last):
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/Users/jdamerow/UpConsulting/isiscb/IsisCB/isiscb/isisdata/views.py", line 860, in citation
    return render(request, 'isisdata/citation.html', context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/base.py", line 171, in render
    return self._render(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/base.py", line 163, in _render
    return self.nodelist.render(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/base.py", line 936, in render
    bit = node.render_annotated(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/base.py", line 903, in render_annotated
    return self.render(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/base.py", line 163, in _render
    return self.nodelist.render(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/base.py", line 936, in render
    bit = node.render_annotated(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/base.py", line 903, in render_annotated
    return self.render(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/loader_tags.py", line 62, in render
    result = block.nodelist.render(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/base.py", line 936, in render
    bit = node.render_annotated(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/base.py", line 903, in render_annotated
    return self.render(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/defaulttags.py", line 209, in render
    nodelist.append(node.render_annotated(context))
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/base.py", line 903, in render_annotated
    return self.render(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/defaulttags.py", line 309, in render
    return nodelist.render(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/base.py", line 936, in render
    bit = node.render_annotated(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/base.py", line 903, in render_annotated
    return self.render(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/defaulttags.py", line 309, in render
    return nodelist.render(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/base.py", line 936, in render
    bit = node.render_annotated(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/base.py", line 903, in render_annotated
    return self.render(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/defaulttags.py", line 209, in render
    nodelist.append(node.render_annotated(context))
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/base.py", line 903, in render_annotated
    return self.render(context)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/template/defaulttags.py", line 443, in render
    url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/urls/base.py", line 87, in reverse
    return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))
  File "/Users/jdamerow/UpConsulting/venv-p3-rsa/lib/python3.9/site-packages/django/urls/resolvers.py", line 677, in _reverse_with_prefix
    raise NoReverseMatch(msg)
django.urls.exceptions.NoReverseMatch: Reverse for 'authority' with arguments '('NONE',)' not found. 1 pattern(s) tried: ['isis/authority/(?P<authority_id>[A-Z]+[0-9]+)/$']


Relative links for images in RSS output

Ho,
I have an issue generating a proper RSS.
I am using org-mode version 9.2.6 and org-static-blog 1.3.0 and my configuration includes
(setq org-static-blog-publish-url "https://example.com/subfolder/")
(setq org-static-blog-publish-directory "~/blog/"))

If the blog post contains an image which for example is originally included as [[file:assets/image.jpg]] in the org file, I obtain

in both the HTML and the RSS output. But in the latter case this seems to be an issue, because I cannot see the images of the post in any RSS reader. Furthermore similar issues apply to the footnote links.
Reading the pages from the browser is fine since relative links are fine there. I am afraid that producing the RSS export just by cutting and pasting the HTML export is not the correct way.
Best,

My horrible solution so far had been to add "fix" the rss file using this ugly workaround,
which I run on the rss.xml file before deploying it.
(defun fixrss ()
  "Fix broken  links in rss.
org-static-blog naturally produces the RSS feed joining together
the html code from the blog webpages. This causes image links to
be realtive instead of aboslute, which makes the blog impossible
to read via RSS readers.

This is a hackish workaround..."
  (interactive)
  (goto-char (point-min))
  (let ((imgsrc-pattern "src=\\\"\\([^\"]*\\)\\\"")
        (replace-pattern (concat "src=\"" org-static-blog-publish-url "\\1" "\""))
        (tmpstr))
    (while (search-forward-regexp imgsrc-pattern nil t)
      (setq oldstr (match-string 1))
      (cond
       ((string-match "^http" oldstr) (message (concat "Nothig to do for " oldstr)))
       ((string-match "^/"    oldstr) (message (concat "Nothig to do for " oldstr)))
       (t (message (concat "Convert " oldstr))
          (replace-match replace-pattern))))
    (save-buffer)))

I believe links are simply copied verbatim.
The simplest solution is to use absolute links instead of relative links, i.e. [[http://yourdomain.com/assets/image.jpg]]. That's what I am doing currently (and it is not a pretty solution).
A much better solution would modify org-static-blog-post-bare so relative links and image links are automatically translated, much like org-static-blog-get-absolute-url does for page links. And if that's not possible, modify org-static-blog-render-post-content much like you did in your "ugly workaround".
Would you like to try your hand at a pull request to this effect?

I honestly would not like to but absolute links in the HTML output, because it would be a pain to work on draft/posts offline. I believe that the "right solution" is to use two different exporter for HTML and RSS. Indeed Ogbe.net uses the `org-publish' mechanism and does that. In this way he has a completely relocatable HTML output (all links are relative) and a well formatted RSS (all links are absolute).
I don't think I want to change the current status of org-static-blog'. I'd rather use this hack for the time being... and well feel free to integrate it with org-static-blog-assemble-rss'. For now I've messed with your tool more than enough.

OK, no problem.


Issue573 impute time gaps

Fixes #573
Additionally, when reading ActiGraph csv files in previous versions, some lines of the csv's were ignored. This was because in data.table::fread, the argument header was set to TRUE (default), making that in each iteration, the first row of acceleration values was considered a header (and then skipped in the resulting data frame).
Also, g.imputeTimegaps is now extended to consider potential time gaps at the begining of the file, time gaps at the end of the file, and potential time gaps that start in one iteration and finish in the next one.

Checklist before merging:

[x] Existing tests still work (check by running the test suite, e.g. from RStudio).
[x] Added tests (if you added functionality) or fixed existing test (if you fixed a bug).
[x] Updated or expanded the documentation.
[x] Updated release notes in inst/NEWS.Rd with a user-readable summary. Please, include references to relevant issues or PR discussions.
[x] Added your name to the contributors lists in the DESCRIPTION and CITATION.cff files.

Codecov Report

Merging #612 (e72b59f) into master (5391578) will decrease coverage by 0.07%.
The diff coverage is 47.64%.

@@            Coverage Diff             @@
##           master     #612      +/-   ##
==========================================
- Coverage   72.25%   72.18%   -0.08%
==========================================
  Files          94       94
  Lines       10882    10915      +33
==========================================
+ Hits         7863     7879      +16
- Misses       3019     3036      +17

Impacted Files
Coverage Δ

R/g.part1.R
55.58% <0.00%> (-0.28%)
:arrow_down:

R/g.readaccfile.R
39.30% <24.39%> (+0.12%)
:arrow_up:

R/g.getmeta.R
67.70% <40.00%> (-0.94%)
:arrow_down:

R/read.myacc.csv.R
54.90% <52.94%> (-4.27%)
:arrow_down:

R/g.calibrate.R
67.19% <100.00%> (+0.26%)
:arrow_up:

R/g.imputeTimegaps.R
96.55% <100.00%> (-3.45%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Remove test dependency on Apache HTTP client

Now that we have a HTTP client in Java proper refactor the tests to use it where applicable

FYI you might have seen me assign the issue to myself after it being merged. This is for me to remember that I reviewed the issue after you did all the work. Thanks for all you do!


1.7.3 fails sporadically while decorating a unittest which uses boto for S3

It happens more often than it doesn't happen but I haven't spotted a pattern: I hoped that I could vcr a test for my new ugly duckling (entire notebook is at http://nbviewer.ipython.org/url/www.onerussian.com/tmp/demo_vcr_boto_failure.ipynb -- just plug in your credentials)
where @vcr.use_cassete() fails with
CannotOverwriteExistingCassetteException: No match for the request (<Request (HEAD) https://openfmri.s3.amazonaws.com/>) was found. Can't overwrite existing cassette ('test_version_url') in your current record mode ('once').

First time I saw it I guessed that something in request has changed, but then when I reran (and cassette file was still there) -- it succeeded which made me puzzled.
FWIW boto 2.38.0

@yarikoptic Did you figure out anything more about this?

@yarikoptic looks like your link to the failure isn't working:

You want to make 100% sure that the request you are sending matches the previous request recorded in the cassette - there might be some kind of timestamp header in there that is changing, for example.  Take a look at the request you are sending and the request that is in the cassette.
Closing for now but please reopen if you have more info!


Update README

Things to update

Each task as it is closed
Add contributors list to README

All tasks now completed


Support animated data reloading

I'd love to be able to update the collectionView's data on the go. I found this code does the job:
let range = Range(uncheckedBounds: (0, collectionView.numberOfSections))
let indexSet = IndexSet(integersIn: range)
collectionView.reloadSections(indexSet)

However, running this, makes the app crash at line 112 because of an unexpected nil:
override open func layoutAttributesForItem(at indexPath: IndexPath) -> UICollectionViewLayoutAttributes? {
    return dynamicAnimator.layoutAttributesForCell(at: indexPath)!
}

I tried removing the ! to prevent the force-unwrapping of a nil variable, but that resulted in a generic terminating with uncaught exception of type NSException.
Any way we can update the data at runtime while viewing the collectionView?
I'm thinking of some cool animation: the cell that's to be removed scales down, then the cells below move up smoothly w/ a .easeOut curve. Would be awesome. Thanks!

@AppliKey, any chance for you to implement this? Thanks!

Any solution?


Production size: requiring next.config.js forces to bundle dev dependencies

[x] I have searched the issues of this repository and believe that this is not a duplicate.

This is an issue for v5, I didn't test v6 yet, but I believe from some other ticket that it is still happening (e.g. requiring call to app.prepare())
Expected Behavior
When shipping an app bundled for production, we shouldn't require development/build dependencies with the whole app.
Current Behavior
Right now this is required because the server always tries to load next.config.js in production mode and the config decorator approach (withSourceMaps = require('@zeit/next-source-maps')) makes it inconvenient to exclude webpack plugins from production bundle.
Context
Having small bundles helps save server and storage space - and is a requirement to run on serverless environment.
Your Environment

Tech
Version

next
5

node
8

OS
docker (ubuntu), serverless

For the record, AWS Lambda allows only 50Mo of disk space, if the generated bundled zip is bigger than that, we can't deploy the function.
I've reached 30Mo on my last Next.js app and I'm particularly careful about this.

https://github.com/zeit/next.js#custom-configuration
Specifically the part about phase:
const {PHASE_DEVELOPMENT_SERVER, PHASE_PRODUCTION_BUILD} = require('next/constants')
module.exports = (phase, {defaultConfig}) => {
  if(phase === PHASE_DEVELOPMENT_SERVER || phase === PHASE_PRODUCTION_BUILD) {
	const withCSS = require('@zeit/next-css')
    return withCSS({
      /* development only config options here */
    })
  }

  return {
    /* config options for all phases except development here */
  }
}

@timneutkens Would it be appropriate for me to change the examples to use phases like this?  Is there any reason a new user would NOT want next-css not done like this?


errors happened with optimizer

I have tried 2 different configs with diferent backbones, but all occurs exception of one thing, that is weight_decay is NoneType in optimizer SGD and ADAMW. It seems the configs of WEIGHT_DECAY is not imported correctly?

the same problem

The problem is due to the missing parameter: WEIGHT_DECAY_BIAS.
To fix it, I added that parameter in the config file with the same value as WEIGHT DECAY.


repository-branches.md Uses Incorrect Sidebar Section Name

Code of Conduct

[X] I have read and agree to the GitHub Docs project's Code of Conduct

What article on docs.github.com is affected?
Specifically: Managing a branch protection rule
Generally: Any article that uses the repository-branches.md reusable.
What part(s) of the article would you like to see updated?
Currently the repository-branches.md reusable instructs the reader to locate the "Code & operations" section of the sidebar. However, this instruction is outdated, as the section is now "Code and automation" and should read as such.

Additional information
No response

Can you translate 'github' website to language malayalam


python310Packages.life360: 5.1.1 -> 5.2.0

Description of changes
https://github.com/pnbruckner/life360/releases/tag/v5.2.0

Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 197037 run on x86_64-linux 1

3 packages built:

home-assistant-component-tests.life360
python310Packages.life360
python39Packages.life360


fix problem of images displaying teeny-tiny

Need to have two colons after "image" in the reference syntax (this rule applies for block images only - not inline images)
Note that this incorrect syntax isn't causing a problem with the existing documentation. It's currently only visible in the preview of the newer style I've been working on with the designers.

😅


feat: Hogwarts Ghosts confessional channels

Looks like a cool feature. Like we talked about on discord, I think this would make more sense as its own bot, which would have just the archive cog and this new feature. But tagging @TheOriginalSoni to see what he thinks, if this ticketing feature would be relevant for Team Arithmancy and other puzzle-solving team.

Agreed. Ticketing will likely not be useful for TA, but a separate ticketing and archive bot would be better here


node api - see issue #101

mocha failed on my windows machine so before anything else i did these edits to make tests green:

windows doesnt have command 'sleep' - created one at './test/support/sleep.js'
'Skipping SIGINT/SIGTERM propagation tests ...' is writen to console only once

main changes:

extracted most of code to lib.js (main.js contains ony cli arguments parsing and calling run method from lib)
moved 'exit' function in 'lib.js' to 'config' object - otherwise it would kill process, who uses api (api is overriding it)
modified 'lib.js' 'handleClose' method so it returns exits codes in correct order
added api.js with single exported function - 'run(commands, options)' - see 'typings.d.ts' for details
added typings.d.ts for typescript support

PS: most of original of code was moved from main.js to lib.js => diff is little funky - try diff between old main.js and new lib.js if u wanna see changes in lib.js
PSS: i didnt write any usage to documentation, because english is not my first language ...

just found a bug :( ... starting investigation...

Heya, just wanted to say that I had started on something a few months ago, but never really progressed much with it. If there's anything you can use from https://github.com/filipesilva/concurrently/tree/node-api (just the one commit), feel free to take it.
Also nice work on the typings!


(fix) reword salary range hint to not include (£)

Partially addresses this trello card 34-using-in-salary-range-does-not-work
The purpose for rewording the salary range hint is to help the user avoid errors.
There is a long discussion on the card and asking the user not to put the '£' is a first small step in improving the form.

 Using £ in salary range does not work


fix(sidebar): remove duplicate Albums label in sidebar

Fix duplicate Albums label in sidebar.
Decided to remove label under Menu in order to have equal 4 sub-menu each.
Screenshot:

Thank you as well. :smiley:


Mobile Navbar

Merged (finally) https://github.com/stamford-syntax-club/stamfordcenter-frontend/pull/24


I can't join in a team, and I can't see the scoreboard

@Jair07mx We need logs.

@twizmwazin  I'm sorry but this error is due to an un-update or invalid sportbukkit, mybe hes ussing 1.7.10 Sport.

@AngelCasillas01 How can you be so sure without error logs, plus if he was using 1.7.10 then the plugin would not load

@CaptainElliott I may be mistaken, but I'm pretty sure we don't have any check for the version of SportBukkit/CraftBukkit, so it would load, just then have a lot of issues.

@CaptainElliott Because i got the same error by using 1.7.10 Sport, when i change to 1.8 the error disapear

@twizmwazin There was a pull request from @Aaron1011 , #406 , but it was closed by Aaron because the check for Bukkit flavour (SportBukkit, CraftBukkit, Spigot etc.) was not implemented.

@SungMatt it was @ryanwarsar


Apply Babel to main process

I'm really liking this boilerplate but I'd like to suggest applying the transpilation to the main process files as well, including the Electron entry point. This would keep things consistent by allowing not only import / export syntax just like in renderer files but also any other presets or plugins.
Along with this, it seems like it would benefit from a slightly more clear structure in terms of renderer & main processes. Say, within app/src you'd have /renderer as well as /main. For this I might suggest adding a second main process file to call from electron.js.. It doesn't have to really be very functional - just a simple starting point for this structure.
So my proposal is basically - transpile main process along with the renderer, and consider structuring the src directory something like this.
/app
|  /src
|  |  /main
|  |  |- electron.js
|  |  |- util.js
|  |  /renderer
|  |  |  /components
|  |  |  /vuex
|  |  |- App.vue
|  |  |- main.js
|  |  |- routes.js

I've actually had this into consideration lately and I love your proposal for the file structure. As of now I can't devote my time on this but will probably happen in the near future.

 Webpack defated me hard. I couldn't figure out how to restructure things without them breaking pretty much irreparably heh... I've been using gulp for a while and have only used Vue as a basic, more modern jquery ( as in, script tags :open_mouth: ) so this is a very cool setup.
Totally get the lack of time though. If you have any advice on how I could go about this I'd be willing to give it a shot myself.

One big difference is that the webpack target would need to be electron for the main process. Since you can't have multiple targets you'd have to create another webpack configuration. I believe you can export an array of configs from the webpack.config.js and the npm run dev should run both. Nobody has really supported this in the past so it would take a little pioneering to perfect this setup.
Thinking about all this makes me want to get started 😁. So maybe I can get something ready tonight or by this weekend.

It is exciting isn't it :wink: ES2019 all the things.
I've actually come across a few that do something similar, but again I don't know a lot about webpack so they might differ in ways I'm not seeing. I'll throw them here as references since they should be helpful:
React / Electron / Webpack boilerplate by jogleasonjr - this one is the most accurate in terms of what I'd want for directory structure
Tc by mccxiv - this one has what seems like a more desirable webpack configuration.

Amazing what sleeping on an issue will do... I came back for round 2 against Webpack and was able to get it. @SimulatedGREG let me know your thoughts.


asv_runner 0.2.1

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Depends on https://github.com/airspeed-velocity/asv_runner/issues/40

Just added the source distribution, a re-run should fix the build. Thanks @xhochy

When you update the version, you need to update the sha256, it should be 945dd301a06fa9102f221b1e9ddd048f5ecd863796d4c8cd487f5577fe0db66d here

Import is failing with
asv-runner 0.2.1 requires importlib-metadata, which is not installed.

Looking at the pyproject.toml, the only hard dependency seems to be importlib-metadata


Can't get page's url in SPA

My project is SPA project,  I found that umami get url always is /

How do you change the url in your app? Are you using history state push?

I using a workaround solution
in umami.js
m,w=""+a+c+i.hash,
in my react SPA project
const Umami = (props) => {
  let children = props.children;
  let _hmt = _hmt || [];
  (function() {
    var hm = document.createElement("script");
    hm.src = "http://xxxx/umami.js";
    hm.dataWebsiteId = "f2ef3237-764a-4f2f-99a3-5245f661fe89";
    hm.async = true;
    hm.defer = true;
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
  })();
  return children;
};
    <Router>
      <Switch>
        <Umami>
          <Route path="/xxx" component={xxx} />
                 ...```

The umami script needs to be in the head section of the document, not inside your react app. You can use react-helmet to do this.


Switch from kotlin-react-table to kotlin-tanstack-react-table (i.e. v7 -> v8)

As stated at https://github.com/JetBrains/kotlin-wrappers/tree/master/kotlin-react-table, this library is archived (i.e. fixed at react-table v7?) and should be replaced with kotlin-tanstack-react-table, which is a wrapper around react-table v8.
Migration guide for JS/TS: https://github.com/TanStack/table#migrating-from-react-table-v7

need to remove exclusion from renovate.json after migration


[OFFICIAL] Generated Issue: BadMethodCallException

Status: 500
Summary: Unhandled Exception after requesting upcoming season's anime
Steps to reproduce:
$curl https://api.jikan.moe/v4/seasons/upcoming
Additional Details
Jikan Parser Version: 3.0.0.x-dev@d82323e4588b755c0090cd71d0420d514218668a
PHP: 8.0.14
Redis: Connected
Exception: BadMethodCallException
Code: 0
Message: Method Illuminate\Database\Eloquent\Collection::lastPage does not exist.
Trace: /var/www/jikan-rest/vendor/illuminate/macroable/Traits/Macroable.php on line 113
Request: GET /v4/seasons/upcoming

Fixed:
https://api.jikan.moe/v4/seasons/upcoming


Issue with missing buttons in game. About aspect ratio

The problem is very old (from the release), it seems to be somehow related to the language that is used in the system. I noticed that it manifests itself if you start using, for example, the Russian language, the Taiwanese language, perhaps some other. The buttons disappear completely, although I use the English version, they are not there when the context menu appears.
Screenshots are attached.
And also, is it possible to correct aspect ratio for 4:3, 5:4, and for other non-standard resolutions? The old permissions even at that time were greatly curtailed by cinematic black bars.
Launched a game with Russian in the system:

Launched a game with English in the system:

Launched a game with Russian in the system:

Launched a game with English in the system:

Hmm that is weird - I remember something about C functions like printf relying on locale, causing stuff like %f to show as eg. 3.1415 in one locale while 3,1415 in others - wonder if overriding C locale on startup might help at all.

If I run the game with MSAA, I can see that the game is rendered behind the black bars during both gameplay and cutscenes while playing on 4:3 aspect ratio.
That means if we can somehow remove the black bars from top and bottom on 4:3, it should work. Although it might show non-animated stuff during cutscenes behind those black bar areas, but gameplay should be fine.

E: tried using a hook to call games setlocale func before running WinMain, setlocale(LC_ALL, "ru-RU") didn't seem to have any effect unfortunately.

Might be because you actually need to have that language installed on windows, no? (not sure about how locale works on Windows, but that is how it works on Linux at least).

That means if we can somehow remove the black bars from top and bottom on 4:3, it should work. Although it might show non-animated stuff during cutscenes behind those black bar areas, but gameplay should be fine.

Yeah, removing the black bars causes weird effects like that.
Also, IIRC, some of the game post processing effects is hardcoded to not go over the black bars, so you'd end up with some of those effects not reaching the top/bottom of the screen.
I've also tried just cutting the sides of the screen and adjusting the HUD's position. It does work fine, but the menus have been designed for 16:9, so we end up cutting some necessary stuff from them.
We could make it so that only gameplay has the zooming + cutting the sides, while the interface itself reverts to the usual black bars behavior. Haven't tested that yet.

Yeah, shaving off horizontal view and zooming in during only gameplay segments and leaving the menus intact in 16:9 seems to be the best solution in this case.
Although it would be interesting to see how those post process effects look with black bars removed. If you try it out, do share some screenshots, I'd love to see those.

Might be because you actually need to have that language installed on windows, no? (not sure about how locale works on Windows, but that is how it works on Linux at least).

Oh good point, well installing Russian locale + switching to it does make buttons disappear for me, but if I switch back to English & try setlocale again it still has no effect, too bad.

If anyone knows the file that contains button images inside that might help to track down what code is using it.

07000000.pack.lfs
Texture number 0332 inside that pack.
Many things are stored inside 07000000.pack.lfs though, so I'm not sure how helpful that is going to be :/

Oh I'm using Russian keyboard too, didn't think of that... looking at game it seems to use GetKeyboardLayout in a few different places, maybe keys actually chance on certain layouts, but they didn't handle some properly? Does anyone know if there's a layout that does change the key images shown?

Also @nipkownix does re4_tweaks have anything for IAT hooking? Could be easiest to hook the GetKeyboardLayout IAT itself instead of all the calls to it (10+)

Hmm, not really, but I've used the code from this PR recently and is seems to work pretty nicely:
https://github.com/ThirteenAG/WidescreenFixesPack/pull/1045/files#diff-45b7d371439728c02c91a7336f47a4c2e580d78cc0e840ba12838c485849237e

Seems it is GetKeyboardLayout related, at least I tried hooking the ToAsciiEx calls that are used after it and made them call ToUnicodeEx instead, which gave some kind of result:

Unfortunately 0 doesn't seem to be the correct key for russian KB, should be У or у - guess they might not have a font to display russian text?
We could probably just override GetKeyboardLayout to return a normal english layout, but if there are layouts that can actually display fine we might need to check for those, or make it switch to english layout on certain unsupported ones.

These are all the available textures for prompts:
https://i.imgur.com/M55KZ7i.jpg
Doesn't look like there's anything available for Russian.

Yes, the decision to set English buttons by default will be correct in this situation. English and Russian letters are on the keyboards.

@M1sh2 could you check whether https://github.com/nipkownix/re4_tweaks/pull/64 fixes it for you when using Russian layout?


Glridb 510 form submit breaks if no image

This looks really good. Feel free to merge if you have good cause or address the minor comments.

@duselmann - is this ready to be merged?

I think it will be merged with #248 but if not then yes it can be merged


Malformed JSON response

This popped out on first run.
Malformed JSON response from server. HTTP-Code: 0. Response:
I presume that's a bounce.

It's hard to debug this without more information. In my tests I never got it to return a `HTTP-Code: 0', I guess it can't connect to the server for some reason.
I'll add a debug option as soon as possible so you can get more information and see exactly when and why it fails to connect.

I finally got around to updating the code. Sorry for the long wait. I hope you found a solution to your problem.
I changed the way the plugin fetches the files, fixed a bug and added verbose logging with kirby content:sync -v.
Maybe you can see what the problem is now, if you want to try again.


wireguard will fail after reinstallation after uninstallation  in Debian12

Do you want to continue? [Y/n] y
Installing WireGuard, please wait...

apt-get -yqq update
apt-get -yqq install wireguard qrencode
Error: 'apt-get install' failed.

@limitwhy Hello! This error is usually caused by a temporary issue with the apt-get repositories, and can be resolved by trying the install again.
To see detailed error messages, edit the script and change "-yqq" to "-y" in "apt-get -yqq install wireguard qrencode", then run the script to install.

this is not fixed, output without quiet
Installing WireGuard, please wait...
+ apt-get -y update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Reading package lists... Done
+ apt-get -y install wireguard qrencode
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  qrencode wireguard
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/50.8 kB of archives.
After this operation, 98.3 kB of additional disk space will be used.
Selecting previously unselected package qrencode.
(Reading database ... 44237 files and directories currently installed.)
Preparing to unpack .../qrencode_4.1.1-1_amd64.deb ...
Unpacking qrencode (4.1.1-1) ...
Selecting previously unselected package wireguard.
Preparing to unpack .../wireguard_1.0.20210914-1_all.deb ...
Unpacking wireguard (1.0.20210914-1) ...
Setting up qrencode (4.1.1-1) ...
Setting up wireguard (1.0.20210914-1) ...
Processing triggers for man-db (2.11.2-2) ...
Error: 'apt-get install' failed.

@phant Hello! I could not reproduce this issue on a new Debian 12 server. This issue is usually caused by temporary issues with your server's package repositories. Try running the script again, or use a different server.

@phant Hello! I could not reproduce this issue on a new Debian 12 server.
manual execution of apt-get -y install wireguard qrencode show no errors.

Maybe me and topic starter run your l2tp+ipsec script and afrer that wireguard script.
try to install setup-ipsec-vpn
after that wireguard-install
after - remove wireguard-install
and install again


No such module 'ICONVApi'

When I add the dependency https://github.com/PerfectlySoft/Perfect-LDAP.git in the Swift Packages tab when selecting the project it gives me no problems. But when I compile later it generates the following error.

There are dependencies that hard-code the path to Xcode as /Applications/Xcode.app/...  you can add a sym link to your real Xcode app name.

There are dependencies that hard-code the path to Xcode as /Applications/Xcode.app/... you can add a sym link to your real Xcode app name.

Thanks for answering. My Xcode application is called exactly Xcode.app

Ah, this is not for iOS. The hard-coded paths reference macOS SDKs.

@vicajilau
Hello, I've made some modifications to make it work on iOS. You can use my solution by visiting this GitHub repository: https://github.com/bacem86/BFLDAP


Bluetooth: controller: conformance test instability

Describe the bug
When running conformance tests a few tests are not stable. These  tests will pass conformance tests when running stand-alone, but fail when running as part of the complete set of tests to be run.
This behaviour is mainly observed on the Nordic nrf5340 chip

[ ] LL/CON/CEN/BV-121-C
[ ] LL/CON/CEN/BV-57-C
[ ] LL/CON/PER/BV-61-C
[ ] LL/CON/PER/BV-71-C
[ ] LL/CON/PER/BV-73-C
[ ] LL/CON/PER/BV-74-C
[ ] LL/CON/PER/BV-127-C
[ ] LL/DDI/SCN/BV-29-C
[ ] LL/DDI/SCN/BV-48-C

On latests runs none of these tests failed; we can re-open if the problems occur again


integrations: Netlify

https://github.com/zulip/zulip/issues/10169

@eeshangarg I've updated this PR to address your comments. Please let me know if there are any other changes I should make.

@eeshangarg Pushed the changes you requested. Let me know if everything looks good, thanks!

Merged, thanks @ljagielski2 and @eeshangarg!  Sorry for the delay merging this; I've been sick.


Improve resolveModule for loading TypeScript 2.2 Plugin

TypeScript 2.2 Plugin must be stored in the same node_modules folder than the parent directory of the tsconfig.json .  There are 2 limitations with that:

if you have several tsconfig.json in your project, it means that you must have a node_modules/$ts-plugin per tsconfig.json

node_modules

ts-plugin

tsconfig.json
src

node_modules

ts-plugin

tsconfig.json

if you have several project, you cannnot share your ts-plugin

IMHO, I think resolveModule  should be improved to search ts-plugin inside node_modules:

of the root of the project (the working directory of the tsserver)

node_modules

ts-plugin

tsconfig.json
src

tsconfig.json

of the TypeScript (tsserver)

node_modules

typescript (bin/tsserver)
ts-plugin

This doesn't seem to have affected anyone else