text:
Unable to install GPU version of Pennylane-Qulacs

Hi, I am trying to install Pennylane-Qulacs GPU with python3.11 and Pennylane.
My Pennylane info is as follows:
Name: PennyLane
Version: 0.35.0
Summary: PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Train a quantum computer the same way as a neural network.
Home-page: https://github.com/PennyLaneAI/pennylane
Author:
Author-email:
License: Apache License 2.0
Location: /usr/local/lib/python3.11/dist-packages
Requires: appdirs, autograd, autoray, cachetools, networkx, numpy, pennylane-lightning, requests, rustworkx, scipy, semantic-version, toml, typing-extensions
Required-by: pennylane-qulacs, PennyLane_Lightning, PennyLane_Lightning_GPU

Platform info:           Linux-6.5.0-25-generic-x86_64-with-glibc2.35
Python version:          3.11.0
Numpy version:           1.26.3
Scipy version:           1.12.0
Installed devices:
- lightning.qubit (PennyLane_Lightning-0.35.1)
- qulacs.simulator (pennylane-qulacs-0.32.0)
- default.clifford (PennyLane-0.35.0)
- default.gaussian (PennyLane-0.35.0)
- default.mixed (PennyLane-0.35.0)
- default.qubit (PennyLane-0.35.0)
- default.qubit.autograd (PennyLane-0.35.0)
- default.qubit.jax (PennyLane-0.35.0)
- default.qubit.legacy (PennyLane-0.35.0)
- default.qubit.tf (PennyLane-0.35.0)
- default.qubit.torch (PennyLane-0.35.0)
- default.qutrit (PennyLane-0.35.0)
- null.qubit (PennyLane-0.35.0)
- lightning.gpu (PennyLane_Lightning_GPU-0.35.1)

When I enter
sudo pip3.11 install --upgrade qulacs-gpu
I get the following error:
Collecting qulacs-gpu
  Using cached Qulacs-GPU-0.3.1.tar.gz (209 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: qulacs-gpu
  Building wheel for qulacs-gpu (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [173 lines of output]
      running bdist_wheel
      running build
      running build_ext
      /tmp/pip-install-8o8kjk9r/qulacs-gpu_dc39012c072548388f98f5526c10dac2/setup.py:48: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
        cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', out.decode()).group(1))
      /tmp/pip-install-8o8kjk9r/qulacs-gpu_dc39012c072548388f98f5526c10dac2/setup.py:18: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
        version = LooseVersion(out)
      /tmp/pip-install-8o8kjk9r/qulacs-gpu_dc39012c072548388f98f5526c10dac2/setup.py:19: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
        return version >= LooseVersion('7.0.0')
      /tmp/pip-install-8o8kjk9r/qulacs-gpu_dc39012c072548388f98f5526c10dac2/setup.py:18: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
        version = LooseVersion(out)
      /tmp/pip-install-8o8kjk9r/qulacs-gpu_dc39012c072548388f98f5526c10dac2/setup.py:19: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
        return version >= LooseVersion('7.0.0')
      CMake Warning (dev) in CMakeLists.txt:
        No project() command is present.  The top-level CMakeLists.txt file must
        contain a literal, direct call to the project() command.  Add a line of
        code such as

          project(ProjectName)

        near the top of the file, but after cmake_minimum_required().

        CMake is pretending there is a "project(Project)" command on the first
        line.
      This warning is for project developers.  Use -Wno-dev to suppress it.

      -- The C compiler identification is GNU 11.4.0
      -- The CXX compiler identification is GNU 11.4.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/gcc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/g++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required):
        Compatibility with CMake < 2.8.12 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.

      -- SIMD SUPPORT: Yes
      -- CMAKE_HOST_SYSTEM_PROCESSOR = x86_64
      -- USE_SIMD = Yes
      -- USE_OMP = Yes
      -- USE_GPU = Yes
      -- USE_TEST = Yes
      -- USE_PYTHON = Yes
      -- OPT_FLAGS = -mtune=native -march=native -mfpmath=both
      -- Fetch googletest for C++ testing
      CMake Deprecation Warning at build/temp.linux-x86_64-cpython-311/_deps/googletest_fetch-src/CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 2.8.12 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.

      CMake Deprecation Warning at build/temp.linux-x86_64-cpython-311/_deps/googletest_fetch-src/googlemock/CMakeLists.txt:42 (cmake_minimum_required):
        Compatibility with CMake < 2.8.12 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.

      CMake Deprecation Warning at build/temp.linux-x86_64-cpython-311/_deps/googletest_fetch-src/googletest/CMakeLists.txt:49 (cmake_minimum_required):
        Compatibility with CMake < 2.8.12 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.

      -- Found PythonInterp: /usr/bin/python3.11 (found version "3.11")
      -- Looking for pthread.h
      -- Looking for pthread.h - found
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
      -- Found Threads: TRUE
      -- Fetch pybind11 for python-binding
      -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.11.so
      -- Performing Test HAS_CPP14_FLAG
      -- Performing Test HAS_CPP14_FLAG - Success
      -- pybind11 v2.5.0
      -- Install from pip
      -- OUTDIR = /tmp/pip-install-8o8kjk9r/qulacs-gpu_dc39012c072548388f98f5526c10dac2/build/lib.linux-x86_64-cpython-311
      -- CMAKE_SYSTEM_NAME = Linux
      -- CMAKE_C_COMPILER = /usr/bin/gcc
      -- CMAKE_CXX_COMPILER = /usr/bin/g++
      -- CMAKE_BUILD_TYPE = Release
      -- CMAKE_CXX_FLAGS = -DVERSION_INFO=\"0.3.1\" -std=gnu++14 -pthread -fext-numeric-literals -fopenmp -fPIC
      -- CMAKE_CXX_FLAGS_DEBUG = -g
      -- CMAKE_CXX_FLAGS_RELEASE = -O3 -DNDEBUG -mtune=native -march=native -mfpmath=both
      CMake Deprecation Warning at src/CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 2.8.12 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.

      CMake Deprecation Warning at src/csim/CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 2.8.12 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.

      CMake Deprecation Warning at src/gpusim/CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 2.8.12 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.

      CMake Error at /usr/share/cmake-3.22/Modules/FindCUDA.cmake:859 (message):
        Specify CUDA_TOOLKIT_ROOT_DIR
      Call Stack (most recent call first):
        src/gpusim/CMakeLists.txt:3 (find_package)

      -- Configuring incomplete, errors occurred!
      See also "/tmp/pip-install-8o8kjk9r/qulacs-gpu_dc39012c072548388f98f5526c10dac2/build/temp.linux-x86_64-cpython-311/CMakeFiles/CMakeOutput.log".
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-8o8kjk9r/qulacs-gpu_dc39012c072548388f98f5526c10dac2/setup.py", line 111, in <module>
          setup(
        File "/usr/local/lib/python3.11/dist-packages/setuptools/__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/usr/local/lib/python3.11/dist-packages/setuptools/dist.py", line 963, in run_command
          super().run_command(command)
        File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/usr/local/lib/python3.11/dist-packages/wheel/bdist_wheel.py", line 368, in run
          self.run_command("build")
        File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/usr/local/lib/python3.11/dist-packages/setuptools/dist.py", line 963, in run_command
          super().run_command(command)
        File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/usr/local/lib/python3.11/dist-packages/setuptools/dist.py", line 963, in run_command
          super().run_command(command)
        File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-install-8o8kjk9r/qulacs-gpu_dc39012c072548388f98f5526c10dac2/setup.py", line 50, in run
          self.build_extension(ext)
        File "/tmp/pip-install-8o8kjk9r/qulacs-gpu_dc39012c072548388f98f5526c10dac2/setup.py", line 108, in build_extension
          subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
        File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-8o8kjk9r/qulacs-gpu_dc39012c072548388f98f5526c10dac2', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-8o8kjk9r/qulacs-gpu_dc39012c072548388f98f5526c10dac2/build/lib.linux-x86_64-cpython-311', '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/tmp/pip-install-8o8kjk9r/qulacs-gpu_dc39012c072548388f98f5526c10dac2/build/lib.linux-x86_64-cpython-311', '-DPYTHON_EXECUTABLE=/usr/bin/python3.11', '-DPYTHON_SETUP_FLAG:STR=Yes', '-DCMAKE_C_COMPILER=gcc', '-DCMAKE_CXX_COMPILER=g++', '-DCMAKE_BUILD_TYPE=Release', '-DUSE_GPU:STR=Yes']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for qulacs-gpu
  Running setup.py clean for qulacs-gpu
Failed to build qulacs-gpu
ERROR: Could not build wheels for qulacs-gpu, which is required to install pyproject.toml-based project

I am wondering what this means, and how I can fix it. Thank you very much for your help.

Hi @JustinS6626! This looks like an error compiling Qulacs for GPUs on your system; unfortunately, we'll likely be unable to help you out here, as this looks to be an issue with Qulacs. I suggest opening an issue in the Qulacs GitHub here: https://github.com/qulacs/qulacs

Thank you very much for getting back to me! I actually succeeded in overcoming the issue for Qulacs-GPU using the command
USE_GPU=Yes sudo pip3.11 install --no-build-isolation .

Could it work for pennylane-qulacs-gpu as well?

repo: PennyLaneAI/pennylane-qulacs


text:
Similar project but for sponsors

I was browsing through and found your repository and it makes me happy that someone is making something for streamers to avoid ToS videos.
Have you seen SponsorBlock for browsers? https://sponsor.ajay.app
I was wondering if someone could take this codebase and make it work for streamer TOS. It supports tagging certain time frames, setting their sponsor type (self,ad,intro) and submitting them to a DB (and a voting system to weed out the incorrect ones).
It only has skipping supported right now but it would be cool (if it was possible to cater it for twitch) to support blanking a video segment or muting an audio segment so a video could still be watched without it being skipped all together.
The dev is pretty active on Discord so I'm curious if maybe he even would be interested.

Hey. First of all: I'm glad this project is getting recognized!
Unfortunately I'm just a 16 year old kid that made this thing within 2 weeks for my streamer friends. I don't have the expertise yet to make something like that by myself, let alone try to work off someone else's codebase. Maybe with a smaller project, but this seems like a huge learning curve and a lot of work and it would take me a lot of time to do this.  The level is just too high.
I don't have the time or skills to do something like this for free, I'm sorry.
Hope you have a nice day!

Reopened if you have any questions/concerns.

Closed due to inactivity.

source: gharchive/issue

repo: Pentalex/TwitchTOS

license: MIT

license_type: permissive

license_source: github-api


text:
Feature/local config notice

This look alright to you?
Resolves #399

I was so close to just porting over an entire ASCII Art library just to do this - would be a fun little addition, but this was super quick.

The consensus from the team was that we're looking for something more like:
******************************************************
************* Using Local config file *****************
******************************************************

Agreed, something simpler like this, but including the path the the actual file that is loaded

Updated - Client name redacted with a lovely red squiggle!

New Example
Client name redacted by lovely red squiggles.

source: gharchive/pull-request

authors: TrevorPayne ndorin

repo: PepperDash/Essentials


text:
INFO[0000] cannot get table 'service1' struct: cannot read indexes: sql: expected 14 destination arguments in Scan, not 13

Probably a similar issue with #27
MariaDB 10.6.5 Centos 7
[root@rafael-dagandan-node3 ~]# ./mysql_random_data_load --host=127.0.0.1 --port=3306 --user=test --password=test test service1 200 --debug
INFO[0000] cannot get table service1 struct: cannot read indexes: sql: expected 14 destination arguments in Scan, not 13
+----------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+
| Table    | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | Ignored |
+----------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+
| service1 |          0 | PRIMARY  |            1 | ID          | A         |           0 |     NULL | NULL   |      | BTREE      |         |               | NO      |
+----------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+
1 row in set (0.001 sec)```

This issue is still open, so I'll pile on:
mysql_random_data_load_0.1.12_Linux_x86_64
10.6.18-MariaDB debian-linux-gnu
./mysql_random_data_load c94dev avisos 5 --user root --password ''
INFO[0000] cannot get table avisos struct: cannot read indexes: sql: expected 14 destination arguments in Scan, not 13
MariaDB [c94dev]> show indexes from avisos;
+--------+------------+---------------------+--------------+---------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+
| Table  | Non_unique | Key_name            | Seq_in_index | Column_name         | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | Ignored |
+--------+------------+---------------------+--------------+---------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+
| avisos |          0 | PRIMARY             |            1 | id                  | A         |           0 |     NULL | NULL   |      | BTREE      |         |               | NO      |
| avisos |          1 | id_operacion        |            1 | id_operacion        | A         |           0 |     NULL | NULL   |      | BTREE      |         |               | NO      |
| avisos |          1 | id_empleado_destino |            1 | id_empleado_destino | A         |           0 |     NULL | NULL   |      | BTREE      |         |               | NO      |
+--------+------------+---------------------+--------------+---------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+

authors: dagsydags pablowako


text:
Refactor deobfuscate Method for Easier Customization and Module Replacement

Description:
Hello, I've been using your excellent JavaScript deobfuscation library one day and found it to be extremely useful. While the deobfuscate method is comprehensive, it performs several steps like determineObfuscationType and _loopSafeAndUnsafeDeobfuscationMethods which essentially determine which processors and modules to use. However, this design doesn't easily allow for the replacement or augmentation of specific modules.
For example, if I want to add a filter to resolveLocalCalls, I have to override the function and include a lot of boilerplate code, such as:
restringer._unsafeDeobfuscationMethods= () => {
  return [
    // ... other modules
    (n) => resolveLocalCalls(n, n => !(n.callee?.name?.includes('rand')|| n.callee?.name?.includes('Rand'))),
    // ... other modules
  ];
}

This makes it hard to replace or customize specific processors or deobfuscation methods.
Suggestion:
If the exported class could allow configuring all the methods used in the deobfuscate function during its construction, users could easily replace or extend specific modules or processors.
Example:
class REstringer {
  constructor() {
    this.determineObfuscationType(); // determine default processors.
    this.unsafeDeobfuscationMethods = [/* default methods */];
    // ...
  }
}
...
// my code
const restringer = new REstringer(code);
let index = restringer.unsafeDeobfuscationMethods.indexOf(resolveLocalCalls);
if (index !== -1) {
  restringer._preprocessors.splice(index, 1, (n) => resolveLocalCalls(n, n => !(n.callee?.name?.includes('rand') || n.callee?.name?.includes('Rand'))));
}
// customize processors or modules needed
restringer.deobfuscate();

This way, we can maintain the benefits of the existing class architecture while enabling users to make minimal necessary modifications.
If you agree with this proposal but don't have the time to implement it, I'd be happy to contribute a PR. Thank you for considering this improvement.

#93 externalizes the deob methods as requested. There's a usage example in the README.md file.
I added a disable option for the obfuscation type detection, meaning the pre and post processors won't run if turned off.
I hope this solves this issue

Thank you for your latest commit! It looks like it will fulfill my need. Great work!

authors: BenBaryoPX lanvent

repo: PerimeterX/restringer


text:
Document upload

Write documentation for the upload function in the SDK. Note the mention of the encoding problem - in my testing, removing the {encoding: 'utf8'} line in the call to createReadStream made it possible to upload videos. This is true even though that's the default. I don't know why this would matter but I did include it in the notes for uploadFile. Maybe one of you has some insight?
Initially I thought that I would be documenting multipart upload as well, but it doesn't look like the SDK actually has multipart upload (yet). We limit files to 5GB or less over SFTP.

Thank you for the comments @liam-lloyd! Made some adjustments.

Thanks @liam-lloyd ! After reading #307 I see what you're going for. I prefer a more conversational approach, but it's absolutely valuable to have the exact model in the documentation! I'll rebase once 307 is merged and just add the detail from this version.

repo: PermanentOrg/permanent-sdk


text:
Upgrading helia to v4.2.5

This PR upgrades helia from v2.x to v4.2.5. This solves a significant memory leak that was causing excessive memory and CPU usage.

:tada: This PR is included in version 3.3.0 :tada:
Your semantic-release bot :package::rocket:


text:
Set up build automation and add some unit tests

This pull request doesn't change any logic. It adds the required configuration to verify, test and minify the BarcodeParser source code using Grunt + NPM. The idea is to pave the way for future improvements.

Hey @hprange, nice work ! As @PeterBrockfeld seem to be off from Github (have a look at his activity map), what about releasing your fork on npmjs and open a PR here to deprecate this repo?

@zedtux Sounds good to me. I'll work on that.

@zedtux I've deployed a package to NPM including the changes of all pull requests.
https://www.npmjs.com/package/gs1-barcode-parser

That's awesome ! Thank you @hprange ! 👍

authors: hprange zedtux

repo: PeterBrockfeld/BarcodeParser

license: mit

license_source: bigquery


text:
End session support in authentication service

Ensure that when logout is called in the authentication service that it carries out an end session call to the IdP.

Done and pushed into latest, closing.

repo: PhilipSkinner/elemental-lowcode


text:
Add notification

Value Proposition
As a user, I want to get a notifications for my games so that don't miss them anymore.
Description

Acceptance Criteria

[ ] Display an overlay that show the game(s) of the current day

Tasks

[ ] Create new branch
[ ] Create new component for the notification
[ ] Add basic styling for the overlay
[ ] Create function for popup date === game.date

Looks convenient!
When will the pop-up open? Every time, the user opens the app on the respective day or only once at that day?


text:
🛑 OnlySheps is down

In c3564ba, OnlySheps ($GAG_URL) was down:

HTTP code: 403
Response time: 117 ms

Resolved: OnlySheps is back up in e446437.

repo: Phoenix-Net/PhoenixNet-Status-Page


text:
add dynamic fork settings

notes:

the basic docker action has no build arg support so i had to run the docker cmds manually
when you don't set a branch with the qmk setup cmd it defaults to master, which won't work with zsa/qmk_firmware
that's why I'm cloning forks manually with git, because it always clones the latest default branch.
that way you don't have to hardcode the firmware version, which was already outdated

@5andr0 sorry decided to revert the main branch after some hours of trying to fix it. I planned other things for today, I'd rather have you try this a second time, and please properly test this time!

@5andr0 sorry decided to revert the main branch after some hours of trying to fix it. I planned other things for today, I'd rather have you try this a second time, and please properly test this time!

I am soo sorry! I thought I tested all possible config settings, but I just figured out that my push to change the ergodox-macro-hax workflow to use my fork didn't go through. So i've been testing against your repo all the time and my local tests didn't include the compose file. Sorry for the trouble! Will do proper testing later and fix everything. Have a nice weekend

Thank you, I will keep supporting you with #2, sadly it was not just a few simple bugs, check the develop branch! @5andr0
Here is another idea that came up:
Do we want oryx download as a separate/sibling or derived GA?

repo: Phoscur/QMK-compile


text:
[Feature] Chinese Mainland region Can't use this extension , can there be a built-in proxy?

这个功能与现有的问题有关吗？
yes

你想要什么功能或者有什么建议？
Hello Author, The China Mainland can't use this extension due to THE GREAT FIREWALL, can you add an proxy inside?
I don't know if you know exactly about China's THE GREAT FIREWALL. Chinese government block people from contacting foreigner
有没有可以参考的同类竞品？
No response
其他信息
No response

这是你的运行环境的问题，非网络墙，估计你使用的是云服务提供的webui吧。打开服务后，等待1分钟，刷新再看看。

repo: Physton/sd-webui-prompt-all-in-one


text:
[Lecture9][0619] Quick questions about convolution, etc.

Here's just some quick questions!
Question 1

Does "Channelwise Conv" here mean point-wise convolution (1x1 convolution)?

Question 2

Does "Channel-wise Avg and Max filtering" mean that the pooling operation is done per channel?
Then, what does the horizontal red line imply in the right figure of the slide?

Question 3

Just to check the calculation results, Is the following answer correct?:

O is of shape (128, 16, 16)
Number of parameters = 3×128×3×3×4 bytes = 13,824 bytes ≈ 0.0132 MiB
Number of FP operations

# Multiplications per output element = 3×3×3 = 27
# Additions per output element (w/o bias) = 26 (For adding the 27 products from above)
# Output elements = 128×16×16 = 32,768
# Total FP operations = (27+26)×32,768 = 1,736,704

Sorry for the late issue, Thank you!
JongHan Leem

@jleem99 Thank you for the comment!

Yes, a 1x1 convolution is commonly referred to as pointwise or channelwise convolution.
Yes, as you understand, the pooling operation is executed per channel, similar to depthwise convolution. (The red line indicates that the pooling operation does not have parameters—apologies for the confusion.)
Yes, your answer is correct. It shows that expanding the kernel size, such as to 11x11, or using a large number of channels requires a huge number of parameters, which can be ineffective. In terms of floating-point (FP) operations, it is worth noting that using high-resolution input increases the number of FP operations.

Have a nice vacation:)


text:
使用体验

作为一个Android新手，感觉不太会用，我就希望用它来加载一张本地图片，但我不得不把图片存储到文件夹中从而取得URI，同时这个URI会自动缓存，我还需要一直更换名字，否则不管如何图片都不会改变。暂时还没有找到禁用缓存的办法。另外这个填充方式，我发现也不是很好理解，当显示一张比较大的图片时，不管如何它都只显示一部分，需要放大之后才能通过滚动的方式显示其它。

填充方式经过我的测试发现没有问题，是生成的图片有问题，抱歉。

close

repo: Piasy/BigImageViewer


text:
ros-foxy-generate-parameter-library

lx@LXOS:~$ sudo apt install ros-foxy-generate-parameter-library
[sudo] lx's password:
Reading package list... finish
The dependency tree of the package is being analyzed
Reading status information... finish
E: Unable to locate package ros-foxy-generate-parameter-library
This installation package always fails to be installed successfully. git clone, there are all kinds of errors
CMake Error at /home/lx/generate_parameter_library-main/install/generate_parameter_library/share/generate_parameter_library/cmake/generate_parameter_library.cmake:115 (ament_get_python_install_dir):
Unknown CMake command "ament_get_python_install_dir".
Call Stack (most recent call first):
CMakeLists.txt:8 (generate_parameter_module)

If you look at the ROS Package Index (https://index.ros.org/search/?term=generate_parameter_library), you'll see there is no Foxy release. This package came out in Humble.
Anyways, Foxy's been end of life for about a year, so I don't think new packages are even possible to release at this time. I suggest you upgrade to a currently supported ROS distro, or build this package from source in your Foxy workspace if absolutely needed.

authors: SPoof-oss sea-bass


text:
Upgrade org.slf4j:slf4j-api 2.0.4 -> 2.0.5

This PR contains the following updates:

Package
Type
Update
Change

org.slf4j:slf4j-api (source)
compile
patch
2.0.4 -> 2.0.5

[ ] If you want to rebase/retry this PR, click this checkbox.

Suggested commit message:
Upgrade SLF4J API 2.0.4 -> 2.0.5

See:
- https://www.slf4j.org/news.html
- https://github.com/qos-ch/slf4j/compare/v_2.0.4...v_2.0.5

Indeed. @rickie was the default branch briefly changed? I have no other explanation :thinking:

Yes this is my mistake, I left it on the wrong branch for some time 😅.

authors: Picnic-Bot Stephan202 rickie

repo: PicnicSupermarket/error-prone-support


text:
Quests not syncing with parties

Not sure why this isn't working, but quest progress does not sync up with other party members. I submitted the issue on the party plugin just in case as well.

What are your Quests and Parties version numbers? Do you have a quest to share from quests.yml for testing (post to a site like Pastebin/Hastebin)?

https://pastebin.com/xib1JmVH
Quests: 3.87-b72
Parties: 2.6.14

Did you test a different sharing level? Like 2 or 3?
Maybe there is a problem with delivery sharing + level 1 :)

I just tried all four just now to double-check and still nothing.

Oh and I'm having this issue with any kind of quest, not just the delivery ones. Just wanted to make that clear.

I'm having trouble replicating this. The quest you shared has require-same-quest: true. Are you certain the other player(s) have accepted the quest first? They must be on the same stage as well.

I'm having trouble replicating this. The quest you shared has require-same-quest: true. Are you certain the other player(s) have accepted the quest first? They must be on the same stage as well.

Yes I've made sure that they're all on the same quest and stage, but nothing else happens. Nothing gets shared.

We're having issues with Party quests too, it seems quest progress Is only shared when people have freshly joined the party.
We're using the party plugin as more of an ongoing guild system, when you've been part of a guild for a while, for some reason the multiplayer quests stop working for you.
We have tried all combinations of multiplayer quest settings and config. The only thing that seems to have an effect is joining a new party.

A list of applicable party members is retrieved by ...
https://github.com/PikaMug/Quests/blob/da24ff2bd0535641db697be4dec6bdb7c7681d97/main/src/main/java/me/blackvein/quests/Quester.java#L3705
... which is called whenever progress is due to be shared.
@AlessioDP Is there any reason a Party might not persist a server restart? Or that Party#getMembers might not return a fully populated list?

That is a strange behaviour, the API uses the same approach of the internal Parties system to get a party list.
I would like to see a debug log of Parties when this bug is happening, is it possible? @SimonKertonegoro
You can find how to enable it here: https://alessiodp.com/docs/parties/howtoreportabug

log.txt
Okay, thanks for the help! Here is the log file.
We played 3 shared quests. All three times it wasn't synchronizing our kills 100% of the time, we did notice that some kills were shared, but not all of them.

Oh and it is Esscay and Masuca who were testing the quests. The other players in the log were just hanging around on the server.

The log seems okay, I will add some new debug lines for API users with the next update.
When there is a "Got party" request, "Got player" requests are handled correctly
PS. Maybe changing Parties#getMembers() into Parties#getOnlineMembers(boolean) changes something?
getMembers returns the entire list of members (offline too), can this be a problem with Quests#getQuester(uuid)?

https://gyazo.com/d9d2ce587d802308229a9796d5ef9a14
Players are showing up twice in guild info, could this be causing problems with quests?
I think this is also causing players to have access to GriefPrevention claims even after they leave the guild.

It seems to be a Parties only problem, are you using the latest version? I will investigate on it.
About GP, that is normal. Parties gives to party members the GP permission, there isn't a "temporary" permission so its just permanent.

Wondering if this may be related to #1172
Please see if latest dev version resolves issue: https://ci.codemc.io/job/PikaMug/job/Quests/

Closing. Feel free to test if issue still persists in Quests 3.9.3 and request re-open.

Requesting to re-open
Using Quests 3.9.3
I have the same issue on a very annoying occasion. I have some quests that require killing a boss, which may or may not be done in a party. I tried the plugin in a smaller quest, where we have to kill some monsters (zombies, skeletons, spiders). I have noticed that kills can be shared, except from the last one, which means that if we were to kill 20 zombies, 19 one them would be shared and the last one would not. So imagine the frustartion of going through a 10-man boss, only to not get the progress because it's the last thing the stage requires.
One other test, showed me that if I add an extra objective in the game (like talking to an NPC), along with the boss kill, just makes a vert cheap workaround for now. If players kill the boss, they get the kill, but if one talks to the NPC, then no one goes through the next stage. In other words: players can't go to next stages together, no matter the objective. That's why we could kill the 19 zombies, but only the one who got the last hit on the 20th zombie went through the next stage.
Same thing happens for all quest types. Some more examples:

Deliver progress is not shared
Talking to NPCs is not shared (although I am not sure if it would be right to do so)

I get the exception when quest sharing with party. I using quests 3.9.2/Parties 2.6.14
https://pastebin.com/xLeyBgaR my quests.yml
https://pastebin.com/QWmLEiSk exception

Firstly, you are not using the latest version of Quests!
Secondly, currently latest version of Parties and Quests are broken and they won't work together, I am currently working on a big update of Parties so we are waiting for that update to come out before release a fix :)
I am not sure about that but if you downgrade (not recommended) Quests to 3.9.1 or maybe a lower one, it should work.
I definitely recommend to wait for the new version of Parties instead of downgrade Quests!

With the release of Quests 4.0.0-rc.1, I'm confident most issues with Parties integration have been resolved. That said, there is little more I can release officially until the new version of Parties is released some time in the future. Feel free to continue reporting issues with the mentality that there may not be an immediate fix.

authors: AlessioDP Moomay PikaMug SauROnmiKE SimonKertonegoro evanpurl

repo: PikaMug/Quests


text:
Hardcoded values disallow customization

Where else have you looked for answers to this question?
The internet but with own debugging I figured out the issue.
Share your question with as much detail as possible?
When starting a question I would like to change the style of messages therefore I styled it and saw there was still a hardcoded yes/no behind.

I tried changing it in the language yesWord and noWord to empty what left us with only the hardcoded /. This also created a issue with the Yes and No message in the chat so I changed it to this:

Coloring the answers should not effect the choice.

You've submitted this under "Ask a question" but there isn't one? Feel free to resubmit using either "Suggest a feature" or "Report a bug"

authors: PikaMug xJoeyv


text:
Sync Quest Files

PikaMug#312
I´ll start helping to sync the Data of the Quest Files. Please take a look at it if you would accept that way.
It is the simplest way to do that.

ToDo:

push Updates when changes are made to one of these files via the editor
command to manually push it when changes are made to the file directly
pullig the files with the existing plugin reload
pulling the files at server startup

If you would accept that, id need your help to add the methods at the right place. im not sure at which places changes are made through the editor

Thanks for the PR. Supporting quests/actions/conditions via MySQL is something that would benefit the project, but is of low urgency at this time. There are a few changes I would like to the YAML implementation first, and QuestsConverter would need to be updated for both that and your submission. I'll leave this open should you like to finish the work for consideration at a later date, but that would be several weeks away at best.

The big advantage is that any changes to yaml are irrelevant, because the file is saved in mysql as it is. So you can change everything with yml and it does not matter.
For our network it is important to have this feature :D We just waited over a year that someone is adding multiserver support (also other quest plugins). but no one got an working version. we will stay at quests bc it is better than all the other quest plugins.
i will definetly finish this, but i need your help with adding the methods everywhere where changes are made to this files.

I dont know if i did the merge in the right way ._.  Was the first time.
Im sorry if it was wrong

I dont know if i did the merge in the right way ._.  Was the first time.
Im sorry if it was wrong

@Cerexus The plugin is now ready to undertake syncing of quests. Due to changes made, you may wish to close this PR and create a new one to avoid conflict resolution. I'll leave this open pending your decision.

@Cerexus The plugin is now ready to undertake syncing of quests. Due to changes made, you may wish to close this PR and create a new one to avoid conflict resolution. I'll leave this open pending your decision.

Closing due to unresolved conflicts.

authors: Cerexus PikaMug


text:
max. recursion depth reached in automations?

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/psutil/_common.py", line 447, in wrapper
    ret = self._cache[fun]
AttributeError: _cache

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/pioreactor-21.5.0-py3.7.egg/pioreactor/utils/timing.py", line 64, in _target
    self.function(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/dist-packages/pioreactor-21.5.0-py3.7.egg/pioreactor/background_jobs/subjobs/led_automation.py", line 98, in run
    return self.run()
  File "/usr/local/lib/python3.7/dist-packages/pioreactor-21.5.0-py3.7.egg/pioreactor/background_jobs/subjobs/led_automation.py", line 98, in run
    return self.run()
  File "/usr/local/lib/python3.7/dist-packages/pioreactor-21.5.0-py3.7.egg/pioreactor/background_jobs/subjobs/led_automation.py", line 98, in run
    return self.run()
  [Previous line repeated 972 more times]
  File "/usr/local/lib/python3.7/dist-packages/pioreactor-21.5.0-py3.7.egg/pioreactor/background_jobs/subjobs/led_automation.py", line 90, in run
    if not ("od_reading" in pio_jobs_running()) and (
  File "/usr/local/lib/python3.7/dist-packages/pioreactor-21.5.0-py3.7.egg/pioreactor/utils/__init__.py", line 8, in pio_jobs_running
    for proc in psutil.process_iter(attrs=["pid", "name", "cmdline"]):
  File "/usr/local/lib/python3.7/dist-packages/psutil/__init__.py", line 1443, in process_iter
    if proc.is_running():
  File "/usr/local/lib/python3.7/dist-packages/psutil/__init__.py", line 581, in is_running
    return self == Process(self.pid)
  File "/usr/local/lib/python3.7/dist-packages/psutil/__init__.py", line 326, in __init__
    self._init(pid)
  File "/usr/local/lib/python3.7/dist-packages/psutil/__init__.py", line 354, in _init
    self.create_time()
  File "/usr/local/lib/python3.7/dist-packages/psutil/__init__.py", line 710, in create_time
    self._create_time = self._proc.create_time()
  File "/usr/local/lib/python3.7/dist-packages/psutil/_pslinux.py", line 1576, in wrapper
    return fun(self, *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/psutil/_pslinux.py", line 1788, in create_time
    ctime = float(self._parse_stat_file()['create_time'])
  File "/usr/local/lib/python3.7/dist-packages/psutil/_pslinux.py", line 1576, in wrapper
    return fun(self, *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/psutil/_common.py", line 450, in wrapper
    return fun(self)
  File "/usr/local/lib/python3.7/dist-packages/psutil/_pslinux.py", line 1619, in _parse_stat_file
    data = f.read()
RecursionError: maximum recursion depth exceeded while calling a Python object|

This should be fixed

repo: Pioreactor/pioreactor


text:
The animation::Frames struct now loads gif frames one at a time.

This implements a solution to #823.

@bvssvni this is the new PR as discussed in #831.

I ended up using the ? operator as I didn't find a nice way to avoid it in the try_encode_frames function so I just used that in both function to remain consistent.
Also I kept the collect_frames function but I changed the implementation. However I'm not sure if it's good to have that function.

The CI builds seem they failed at installing the nightly toolchain. I will close and reopen this pull request in an attempt to trigger a travis rebuild.

Looks good. I think we can keep collect_frames. Any more changes before merging?

Merging.

Thanks!

authors: ArturKovacs bvssvni

repo: PistonDevelopers/image


text:
IdentityServer4 RC1 update

Hi
can you update the project with new IdentityServer4 RC1 version?
regards,
Mitja

I'll take a look soon. Been busy.

thank you

It's breaking a lot of things. I think Identity Server 4 team has made major changes to the stores.

I am working on upgrading. However, a lot has changed. Because of this I have decided to re-base the code based on the more official IdentityServer4.EntityFramework repository. I will commit something soon but it still may need more work before it is ready.

PivotalAnimal perfect!

Hi.. some kind of news?

Hi @eduardoluizm - I haven't worked on this project in months. As I mentioned earlier in this post, I still think the best option is to pretty much start from scratch using the official ef release as a starting point. What features in particular are you looking for?

Hi thanks, just because i'm working with it.. no problemas!
Yestarday i've started a new project using identityserver4 + aspnetidentity

is4.entityframework. I hope it works!

Thanks!
2017-02-16 21:40 GMT-02:00 Kai Langlie notifications@github.com:

Hi @eduardoluizm https://github.com/eduardoluizm - I haven't worked on
this project in months. As I mentioned earlier in this post, I still think
the best option is to pretty much start from scratch using the official ef
release as a starting point. What features in particular are you looking
for?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/PivotalAnimal/BlueConcord.IdentityServer.EntityFrameworkCore/issues/25#issuecomment-280501037,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADOp7F121dTuJFzM9yqerzHAdfe5aUHWks5rdN6DgaJpZM4J3Nz6
.

--
Eduardo Luiz
popovisk@gmail.com

Could you please update Readme.md, that you recommend to use  https://github.com/IdentityServer/IdentityServer4.EntityFramework Now? It will help people who try to find what are the differences between your project and IdentityServer4.EntityFramework.

authors: MNF PivotalAnimal eduardoluizm prabhakarreddy1234 senzacionale


text:
google云盘+长音频 step3.5报错

同问，解决了吗，想问问方法

repo: Plachtaa/VITS-fast-fine-tuning


text:
chore: bump deps

Describe your changes
BUMP THE DEPS

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

authors: AnthonyJWalsh radum

repo: Planning-Inspectorate/back-office


text:
Add leaflet length, width and area

Title: leaflet length Def: A compound leaf anatomy and morphology trait (TO:TBA) which is associated with the length of a leaflet (PO:0020049) of a compound leaf (PO:0020043).  Child of: compound leaf anatomy and morphology trait (TO:TBA).
Title: leaflet width Def: A compound leaf anatomy and morphology trait (TO:TBA) which is associated with the width of a leaflet (PO:0020049) of a compound leaf (PO:0020043).  Child of: compound leaf anatomy and morphology trait (TO:TBA).
Title: leaflet area Def: A compound leaf anatomy and morphology trait (TO:TBA) which is associated with the area of a leaflet (PO:0020049) of a compound leaf (PO:0020043).  Child of: compound leaf anatomy and morphology trait (TO:TBA).
Reported by: maxglycine
Original Ticket: obo/plant-trait-ontology-to-requests/215

These have been created:
TO:0001115- leaflet length
def: A leaflet morphology trait (TO:0001113) which is the length (PATO:0000122 ) of a leaflet (PO:0020049).
xref: TO_GIT:216
'part of' some 'leaflet size'
TO:0001118- leaflet width
def:  A leaflet morphology trait (TO:0001113) which is the width (PATO:0000921) of a leaflet (PO:0020049).
xref: TO_GIT:216
'part of' some 'leaflet size'
TO:0001114- leaflet area
def: A leaflet morphology trait (TO:0001113) which is the area (PATO:0001323) of a leaflet (PO:0020049).
xref: TO_GIT:216
'part of' some 'leaflet size'

repo: Planteome/plant-trait-ontology


text:
Refactor routes to use camelCase for all url references

Currently there's an odd mix, they should be redone as camelCase across the board.

Resolved.

repo: PlayWithMagic/PlayWithMagic


text:
tombstone soulbound compatibility on wearable

could it be possible to have support to apply the enchant from this mod
https://www.curseforge.com/minecraft/mc-mods/corail-tombstone
to apply to pokemon wearable so they dont go to the pc on death, mainly the watch and the backpack

Hmm, their mod is not open source, so I cannot easily see how they are actually applying that enchantment. this may need to be an issue made on their side to support mine

there are a few things I can try regarding how the stuff is sent to PC, but I cannot guarentee it will work, given their lack of being open source.

repo: Pokecube-Development/Compat


text:
error when the responses is empty

Expected Behavior
Actual Behavior
  File ".../PokemonGo-Bot-dev/pokemongo_bot/stepper.py", line 89, in _work_at_position
    json.dump({'lat': lat, 'lng': lng,'cells':response_dict['responses']['GET_MAP_OBJECTS']['map_cells']}, outfile)
KeyError: 'GET_MAP_OBJECTS'

  File ".../PokemonGo-Bot/pokemongo_bot/__init__.py", line 310, in pokeball_inventory
    inventory_dict = inventory_req['responses']['GET_INVENTORY'][
KeyError: 'GET_INVENTORY'

[2016-07-24 21:10:43] [#] Finished walking
[2016-07-24 21:10:43] [#] Arrived at Pokestop
2016-07-24 21:10:47 [#] Now at Pokestop: Unknown - Spinning...

Steps to Reproduce
Other Information
I wonder is there a systematic way to solve the issue when the http response is empty.
I think all the error above come from an empty responses. And I have noticed you add some ifcondition  to see whether the key exist. but it would be painful to add if condition everywhere. Sometime the return is empty just because unstable network and you can try resend and get the result. but sometimes it might because your account is offline.

Perhaps one could just catch this behavior and restart the bot at current position automatically?

Please confirm if issue persists with commit ec1ba9b8c914ddb914e4901b632556ad840ccf42 as changes was made to code related to this issue

I got the issue today. Same as OP

Got issue today

authors: LuyiTian iggut kriswong sakulstra surfaace

repo: PokemonGoF/PokemonGo-Bot


text:
Polkadot/qr-code scanner has lots of issues

When I tried to add an address from Nova wallet, this happened!

Its scanning capabilities are limited.
We need to delve into how popular wallets handle QR code information transmission.

@AMIRKHANEF  isn't it fixed?

yes, I guess all related issues has been fixed!

repo: PolkaGate/extension


text:
[ Issue ] Safari project hover outline

Sur Safari, l'apparence des "cards" dans la section Projects n'est pas super harmonieuse avec l'attribut hover (bordure carrée).

essayer :
https://tailwindcss.com/docs/ring-width

commit: 1f0eafddf904a2c604801316357e58947ffbf894

box-shadow: inset 0 0 0 3px var(--clr-sfr2);

authors: Polo-Wolo vincentchoqueuse

repo: Polo-Wolo/hugo-enib


text:
Release v14.1.0

Description
Release new version
Breaking Changes
JIRA Link
Checklist

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

This version won't be released yet

repo: PolymathNetwork/polymesh-sdk


text:
Is possible to invoke a method of child element made with lit element?

Is possible to invoke a method of child element made with lit element?  I see that with polymer elements is possible but i don t find examples with lit element... I would like to trigger a method from the parent element.

If you have access to a custom element, then you have access to any of the public API of that custom element, so yes.

child-element.js

import { LitElement, html } from 'lit-element';

class ChildElement extends LitElement {
  render(){
    return html`

A paragraph

    `;
  }
methodToTrigger(){
alert("method triggered");
}
}

customElements.define('child-element', ChildElement );

parent-element.js
import { LitElement, html } from 'lit-element';
import 'child-element'

class ParentElement extends LitElement {

  render(){
      return html`
   <child-element id="cld"></child-element>
<button @click="${()=>{this.triggerChild()}}></button>
    `;
  }
triggerChild(){
let elementChild=this.shadowroot.getElementById("cld")
elementChild.methodToTrigger()
}

}
// Register the new element with the browser.
customElements.define('parent-element', ParentElement);

How i made a public API?
something like this code?

That looks good!
Tweaked a couple of points to make sure it's working:
https://stackblitz.com/edit/yeeunw?file=my-element.js
Enjoy!

works !!!
tnx

Thanks for your example @ianes1978, this is (now?) this.shadowRoot instead of this.shadowroot can you update your example?

authors: Westbrook ianes1978 remmel

repo: Polymer/lit-element


text:
Run all browsers when testing on travis

So that #851 doesn't happen again.

Isn't this not running at the moment due to sauce credentials?

Looks like it, which is unfortunate.

Yeah, we can't do this, though we would love to.

authors: jridgewell jsilvermist justinfagnani

repo: Polymer/lit-html


text:
Computed properties with the same names as methods

Polymer(
...
	properties:
		pagination_options	:
			type		: String
			computed	: 'pagination_options(users_count, search_limit, search_page)'
...
	pagination_options		: (users_count, search_limit, search_page) ->
		# whatever
)

%dom-module(id="cs-system-admin-users-list")
	%ul.uk-pagination(on-click="page_click" data-uk-pagination$="[[pagination_options]]")

From binding syntax it should be clear and everything should work as expected, however I'm getting:

[cs-system-admin-users-list::_computeEffect]: compute method pagination_options not defined

Firefox Nightly 43 & Chromium 44
I think it is quite natural case and should be supported. When method and property are different everything works fine.

Thanks for the suggestions, but we're opting not to do this because we think it will be more confusing than helpful.

authors: azakus nazar-pc

repo: Polymer/polymer


text:
Get integration tests working locally; convert all tests to typescript

This is a rebased version of #327 that's also now targeting master.

LGTM with some nits

authors: justinfagnani rictic

repo: Polymer/web-component-tester


text:
Remove reliance on document.currentScript

Removing recently added dependency on document.currentScript which is unavailable in IE11
Fixes https://github.com/Polymer/web-component-tester/issues/602
[x] CHANGELOG.md has been updated

So, this is a change in behavior though, yeah?

Instead of loading wct's browser.js with an npm query param, now the toplevel page needs to be loaded with the npm query param. Is this documented somewhere? I think it should definitely be in the changelog.

@rictic I added behavior that checked for "npm mode" by incorrectly choosing to use document.currentScript -- That check itself breaks in IE11 and people that could care less about npm mode are effected.

The top-level page is loaded with the npm query param by wct.  That behavior already happened.

I'll put the note in the changelog, but we havent really covered anything wrt npm testing with wct yet... That is forthcoming

So previously you would both load the toplevel page with ?npm=true and you would load browser.js as browser.js?npm=true?

Ah ok, yeah a line in the changelog is enough then. I'm not sure I 100% get the change, but I'm not blocking this PR from landing.

authors: rictic usergenic


text:
Uncaught Element name could not be inferred. (polymer.concat.js: 9342)

I ran polyup on this code:
<polymer-element name="svg-graphics" attributes="width height">
 <template>
   <style>
     :host { display:block; }
     .slice { }
   </style>

   <svg id="svg" width="{{width}}" height="{{height}}">
      <template repeat="{{shape in shapes}}">
        <ellipse cx="{{shape.cx}}" cy="{{shape.cy}}"
                 rx="{{shape.rx}}" ry="{{shape.ry}}"
                 style="fill:{{shape.fill}}"/>
      </template>
    </svg>
  </template>

  <script>
     (function() {
       var mainColors = ["#f00", "#ff0", "#00f"];

       Polymer('svg-graphics',{
         colors : null,
         shapes : null,
         observe : {
           width : 'render'
         },
         getShapes : function() {
           var basePointX  = 250, basePointY = 250;
           var currentX    = 0, currentY     = 0;
           var offsetX     = 0, offsetY      = 0;
           var radius      = 0, spiralCount  = 4;
           var Constant    = 0.25, angle     = 0;
           var deltaAngle  = 1, maxAngle     = 721;

           var offsetX=0, offsetY=0, index=0;
           var majorAxis=40, minorAxis=60;
           var shapes=[], color="", colors = ["#f00", "#ff0"];

           for(angle=0; angle<maxAngle; angle+=deltaAngle) {
             radius   = Constant*angle;
             offsetX  = radius*Math.cos(angle*Math.PI/180);
             offsetY  = radius*Math.sin(angle*Math.PI/180);
             currentX = basePointX+offsetX;
             currentY = basePointY-offsetY;

             // an index into the array of colors
             index = Math.floor(angle/deltaAngle);

             // append an (x,y) pair of values that
             // represent the upper-left vertex
             shapes.push({cx:currentX,  cy:currentY,
                          rx:majorAxis, ry:minorAxis,
                          fill:colors[index%colors.length]});
           }

           return shapes;
         },
         render : function() {
           this.shapes = this.getShapes();
         }
     })
   })();
  </script>
</polymer-element>

The output was wrong because: ==> see error message in the title of this bug <==
NOTE: I saved the converted code in PolyArchOvals1.html and then launched this HTML Web page:
<!doctype html>
<html>
 <head>
  <meta name="viewport"
    content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
  <title>Archimedean Graphics</title>

  <script src="bower_components/platform/platform.js"></script>
  <link rel="import" href="bower_components/polymer/polymer.html">
  <link rel="import" href="PolyArchOvals1.html">
 </head>

 <body unresolved>
   <svg-graphics width="800" height="600"></svg-graphics>
 </body>
</html>

Hm, I'm having trouble reproducing this error. When I go to the online demo at http://polymerlabs.github.io/polyup/ and paste in your code it seems to work fine.
What version of polyup are you using?

Hello Peter,
Thanks for the speedy reply, and I'm using the online version of polyup, and then launch a local web server, and then open the short HTML Web page that imports the polymer-specific code.
Here's my bower.json file, which I'm thinking might be the culprit:{  "name": "angular_polymer",  "dependencies": {    "angular": "~1.4",    "core-elements": "Polymer/core-elements",    "paper-elements": "Polymer/paper-elements",    "polymer": "Polymer/polymer#^1.1.0"  },  "resolutions": {    "polymer": "~0.4.0",    "core-component-page": "^0.5",    "core-ajax": "^0.5",    "core-animated-pages": "^0.5",    "core-animation": "^0.5",    "web-animations-js": "1.0.6",    "core-collapse": "^0.5",    "core-doc-viewer": "^0.5",    "context-free-parser": "^0.5"  }}
Oswald
 On Thursday, September 24, 2015 8:37 PM, Peter Burns <notifications@github.com> wrote:

Hm, I'm having trouble reproducing this error. When I go to the online demo at http://polymerlabs.github.io/polyup/ and paste in your code it seems to work fine.What version of polyup are you using?—
Reply to this email directly or view it on GitHub.

I'm not sure I follow, bu the intended use of polyup is as a node binary, as follows:
  npm install -g polyup
  polyup PolyArchOvals1.html --overwrite

That will overwrite your code on disk with the upgrade (make sure you're using source control!).
Then you want to upgrade your bower file to point to Polymer 1.0, and the elements as well. Check out the AfterUseGuide.md file in this repo.

Hello Peter,
I followed your instructions and still get the same error;(
The attached zip file contains a screenshot of the error, the two HTML Web pages, and bower.json.
Would you be so kind as to let me know if the version numbers in 'resolutions' are correct, and if not, how I can specify the correct version numbers? Thanks!
Oswald
 On Thursday, September 24, 2015 8:59 PM, Peter Burns <notifications@github.com> wrote:

I'm not sure I follow, bu the intended use of polyup is as a node binary, as follows:  npm install -g polyup
polyup PolyArchOvals1.html --overwrite
That will overwrite your code on disk with the upgrade (make sure you're using source control!).Then you want to upgrade your bower file to point to Polymer 1.0, and the elements as well. Check out the AfterUseGuide.md file in this repo.—
Reply to this email directly or view it on GitHub.

Sorry, I don't see the attached zip file and I can't work out where exactly this is going wrong.
Can you clarify how you're using polyup?

Hello Peter,
I've attached a zip file and hopefully this time it will show up:)
I'm using the online Web page for polyup, and I just copy/pasted the contents of the polymer version 0.5 file PolyArchOvals1.html and generated a polymer version 1.0 of this file that is imported into ArchOvals1.html, both of which are shown below, as well as bower.json.
===> bower.json:{  "name": "angular_polymer",  "dependencies": {    "angular": "~1.4",    "core-elements": "Polymer/core-elements",    "paper-elements": "Polymer/paper-elements",    "polymer": "Polymer/polymer#^1.1.0"  },  "resolutions": {    "polymer": "~0.4.0",    "core-component-page": "^0.5",    "core-ajax": "^0.5",    "core-animated-pages": "^0.5",    "core-animation": "^0.5",    "web-animations-js": "1.0.6",    "core-collapse": "^0.5",    "core-doc-viewer": "^0.5",    "context-free-parser": "^0.5"  }}
===> ArchOvals1.html:<!doctype html>     Archimedean Graphics

===> PolyArchOvals1.html:

 On Tuesday, September 29, 2015 3:13 PM, Peter Burns <notifications@github.com> wrote:

Sorry, I don't see the attached zip file and I can't work out where exactly this is going wrong.Can you clarify how you're using polyup?—
Reply to this email directly or view it on GitHub.

I don't think github comments support zip attachments.
What generates polymer.concat.js?

Peter,
I don't have a file called polymer.concat.js - is that generated by the online version of polyup?
I've also included inline copies of ArchOvals1.html, PolyArchOvals1.html, and bower.json. Can you check if you can launch ArchOvals1.html and see the graphics (after running bower install)?
Oswald
 On Tuesday, September 29, 2015 6:14 PM, Peter Burns <notifications@github.com> wrote:

I don't think github comments support zip attachments.What generates polymer.concat.js?—
Reply to this email directly or view it on GitHub.

authors: ocampesato rictic

repo: PolymerLabs/polyup


text:
feat: 🎸 Add getAsset method to Assets namespace

Description
Add type Asset as union of FungibleAsset and NftCollection. getAsset method added for use cases where the type doesn't matter, e.g. adding documents.
Breaking Changes
NftCollection.collectionMetadata renamed to collectionKeys for consistency with storage (alpha only method)
JIRA Link
DA-878
Checklist

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

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

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: polymath-eric prashantasdeveloper

repo: PolymeshAssociation/polymesh-sdk


text:
[Enhancement] Way to only enable with resolutions > 1080p

Right now, as I saw from the "stats for nerds", VP9 is toggled globally. I think it would be ideal for jailed devices if there was an additional toggle to enable VP9 only when 2/4K are selected, not sure if it's feasible but this way one could keep 1080p (h264) as default to reduce battery usage, and select a higher resolution only when needed (e.g. when watching something in full screen).

Adding to this issue, when vp9 is enabled it’s impossible to fetch the video to download in mp4 with uyou. Also it looks like my device is using cpu decoding when vp9 is enabled even it supporting (the entitlement restriction).

Done in version 1.4.0

Thanks, works perfectly

Thanks Poom, you’re helping me deal with my unjb phone

authors: AuroraWright PoomSmart augustobob

repo: PoomSmart/YTUHD


text:
TypeError when hovering over a cluster

drawtree.js:241 Uncaught TypeError: mutations is not iterable
    at mutations_to_string (drawtree.js:241)
    at mouseover (drawtree.js:271)
    at SVGTextElement.<anonymous> (drawtree.js:352)
    at SVGTextElement.<anonymous> (d3.js:1526)

Is this on the main page?
Are you using a current set of JSON data files?

@GopiGugan I can't reproduce this error on the main page

That makes sense. I didn't download the new set of JSON files. Sorry!

authors: ArtPoon GopiGugan

repo: PoonLab/covizu


text:
Error during matching: KeyError: 'neutralized_charge_inchi'

The below code in MeMoModel crashes when sum(mask) is <= 0. If that happens neutralized_charge_inchi does not get set as a key and subsequently the code in the loop that tries to access this key crashes the program
MRE
from src.MeMoModel import MeMoModel
from src.MeMoMetabolite  import MeMoMetabolite
from pathlib import Path
#model = MeMoModel.fromPath(Path("/home/td/Projects/MeMoMe/tests/manually_merged_models/gapseq_recon3D/M2_bacterial_model.xml"))
#model

b = MeMoModel()

metabolite: MeMoMetabolite = MeMoMetabolite()
metabolite.set_id("A")
metabolite.set_inchi_string("")
metabolite.set_names(["Peter"])

metaboliteB: MeMoMetabolite = MeMoMetabolite()
metaboliteB.set_id("B")
metaboliteB.set_inchi_string("")
metaboliteB.set_names(["Peter"])

model1 = MeMoModel([metabolite])
model2 = MeMoModel([metaboliteB])

model1.annotate()
model2.annotate()

model1.match(model2)

        mask1 = ~pd.isna(mod1_inchis.Mol)
        print("MASK", mask1)
        if sum(mask1) > 0:
            mod1_inchis.loc[mask1,'charge'] = mod1_inchis.loc[mask1,'Mol'].apply(Chem.GetFormalCharge)
            mod1_inchis.loc[mask1,'neutralized_charge_inchi'] = mod1_inchis.loc[mask1,'Mol'].apply(NeutraliseCharges2Inchi)
        else:
            mod1_inchis["neutralized_charge_inchi"] = None
            mod1_inchis["charge"] = None

        mask2 = ~pd.isna(mod2_inchis.Mol)
        if sum(mask2) > 0:
            mod2_inchis.loc[mask2,'charge'] = mod2_inchis.loc[mask2,'Mol'].apply(Chem.GetFormalCharge)
            mod2_inchis.loc[mask2,'neutralized_charge_inchi'] = mod2_inchis.loc[mask2,'Mol'].apply(NeutraliseCharges2Inchi)
        else:
            mod2_inchis["neutralized_charge_mol"] = None
            mod2_inchis["charge"] = None

        # go through the inchis of the second model and find the corresponding inchi in self
        matches = {"met_id1" : [],
                "met_id2" : [],
                "inchi_score":[],
                "inchi_string":[],
                "charge_diff" : []}

        # loop over the first models metabolites
        for i in range(len(mod1_inchis)):
            # get the first inchi
            inchi1 = mod1_inchis.loc[i, "inchis"]
            # check if there is acutally an inchi, or whether the metabolite has none
            if inchi1 != None:
                # assign the precalculated values for the inchi
                mol1   = mod1_inchis.loc[i, "Mol"]
                nminchi1 = mod1_inchis.loc[i, "normalized_inchi"]
                ntchrinchi1 = mod1_inchis.loc[i, "neutralized_charge_inchi"]
                charge1 = mod1_inchis.loc[i,"charge"]
                id1 = mod1_inchis.loc[i,"met_id"]

@Unaimend we did fix that in some branch, was that merged already?

Did we? Did you try the tests?

Just tried it and checked the code. If inchi_string="" we set it to None, which will than be removed in the masking. Should be fine for that special case. However, we need to handle invalid inchis. Is there a validator of some kind?

Added a feature for that. Incorrect Inchis will now be turned into None. This is added in #178

Can be closes. At least the example test above was implemented and works

authors: Porthmeus Unaimend

repo: Porthmeus/MeMoMe


text:
"Apply Changes" silently fails if browser doesn't send referrer

For privacy reasons, I have my browser configured to never send a referrer.
Login to PowerDNS-Admin works, I can also do changes in a zone - but when I click "Apply Changes" and confirm that with "Apply", the changes do not get saved. To make things even worse, there is no error message. The only difference is that the green "Success" box doesn't get displayed - but that's something you'll only notice if you know that it should be there.
Please improve this behaviour - options would be

allow applying changes if no referrer is sent (only block "wrong" referrers, but not empty/missing ones) or
display an error message (maybe already on login) so that the user knows what's going on, and can change to a different browser profile with referrer enabled

Hello,
Thank you for the feedback. We will look into this once we will have reduced the ticket queue.
Regards

The logs contain the following message when this occurs:
[flask_seasurf.py:307] WARNING - Forbidden (Referer checking failed: no referer.): /domain/example.com/apply

Flask-SeaSurf allows to configure an app option to disable this behavior with the CSRF_CHECK_REFERER option (defaults to True)
As such, you can entirely disable the checking of the Referer header by setting
CSRF_CHECK_REFERER = False

in your FLASK_CONF configuration file. This resolved the issue for me.
In the docker environment, this is not easily possible today, however, as the option is not an allowed environment variable in the docker_config.py file. The option (along with the others could be easily added there though.

authors: cboltz jbe-dw meineerde

repo: PowerDNS-Admin/PowerDNS-Admin


text:
Discussion: Add Optional files for Autodocumentation Wiki Repos

Just a discussion at this point: Can we add placeholder files for repos that implement autodocumentation files? E.g. there are the following differences:

README.MD in each resource folder
Different main README.MD file with much less info an point to Wiki.
Different AppVeyor.yml files

I think we should change the template to use auto-documentation as the default, especially now when the auto-documentation no longer need to have a different AppVeyor.yml.

authors: PlagueHO johlju


text:
Attempt fix save script without -includexml (#1609)

PR Summary
Attempt fix to save script without -includexml, #1609.
Fixes #1609
Test added in PR #1613.
PR Context

PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[x] None
OR
[ ] Documentation needed

[ ] Issue filed:

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[ ] N/A or can only be tested interactively
OR
[x] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[ ] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary.

Thanks so much @o-l-a-v  could you please add the tests to this PR so they can all be tested together before merge...thanks!

@SydneyhSmith Done. :)

I made the requested changes @anamnavi.

/azp run PowerShell.PSResourceGet

authors: SydneyhSmith adityapatwardhan o-l-a-v

repo: PowerShell/PSResourceGet


text:
Improve object initialization for feedback provider

Summary of the new feature / enhancement
Framework should do some of the main initialization on a separate thread to speed up time for first run of feedback providers to reduce difficulty meeting the timeout period.
cc @daxian-dbw
Proposed technical implementation details (optional)
No response

Thinking about this more, I am leaning towards having the pipeline thread be the default but having the option for users to use a separate thread if they choose.

repo: PowerShell/PowerShell


text:
Modules like PowerShell Get need the version bumped up when modified

https://github.com/PowerShell/PowerShell/blob/master/src/Modules/Shared/PowerShellGet/PowerShellGet.psd1 - This still shows 1.0.0.1 for the module version (same version as the module that was bundled with Win10 10586) even though there have been a number of changes to this module since July 2015
This follows on from the request in #1979 to decouple any included modules like PowerShell Get so that with these modules we can have a build & release process that we have confidence in and this is becoming more and more important to get right as the number of changes to this Repository grows.

If you are a user, is there any way to determine which version of powershell you are running?
powershell help and powershell help version reveal nothing.   powershell --version and powershell -ver reveal nothing.   There is no menu select for "About" or anything related.  And why isn't such a command available by an observer starting at powershell help ?
Why the big secret?   Is the version level such a big secret, or am I just doing this wrong?

@zipzit you would have to start powershell and then run
$PSVersionTable.PSVersion

that is the correct way to find the version of PowerShell that you are running.
If you are new to using powershell then take a look at the following learning powershell page at https://github.com/PowerShell/PowerShell/blob/master/docs/learning-powershell

Fixed in #2372

@bmanikm It may be fixed for PowerShellGet however this needs to be enforced on all inbox shipped modules until #1979 has been completed and each module has decoupled and has a reliable and robust build process that all users can trust in which is especially truthful of all MS released modules
Currently I haven't got that level of trust that any change in any of the modules shipped inside of this repository, regardless of the size of the change, couldn't end up bringing an unforeseen breaking change somewhere else down the line.
Don't get me wrong as now PowerShell has been Open Sourced the direction is going the right way to being able to actually have that level of trust however there is still work to be done to get us there so could you re-open this until #1979 has been completed

Thanks @kilasuit!, I have updated my above comment.

@zipzit getting the powershell version using -version without argument makes sense, can you open as a new issue?

We should do this, but I think it's probably more in line with whenever we do the module refactoring.

Bumping this to get a review - is this something that the internal modules to PSCore that aren't being decoupled in #1979 are getting their versions updated when there are updates to them?

I think this can be closed now as many modules got decoupled and they now have proper versioning

authors: SteveL-MSFT bmanikm joeyaiello kilasuit zipzit


text:
Pasted UTF-8 characters into PowerShell shell are interpreted incorrectly.

Prerequisites

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

Expected behaviour
Originally, this issue was going to be about how PowerShell can't handle certain legal UTF-8 characters in inode paths. However, after creating a test script:
#!/usr/bin/env -S powershell

#```PS1
#Requires -PSEdition 'Core'
#Requires -Version 7
#```

Set-Location -LiteralPath "$HOME"

##### Example Directory
#Creates an example directory.

$DirectoryPath = 'TabPrefixed	ExampleDirectory.dir'
$PrintPath = "$DirectoryPath"
Write-Output (Show-Markdown -InputObject "The path is ``$PrintPath``.")

New-Item `
	-Path "$HOME" `
	-Name "$DirectoryPath" `
	-ItemType 'directory'

##### Example File
#Creates an example file.

$FilePath = 'TabPrefixed	ExampleFile.txt'
$PrintPath = "$FilePath"
Write-Output (Show-Markdown -InputObject "The path is ``$PrintPath``.")

New-Item `
	-Path ("$HOME" + [IO.Path]::DirectorySeparatorChar + "$DirectoryPath") `
	-Name "$FilePath" `
	-ItemType 'file' `
	-Value 'Example text.'

##### Path Acquisition
#Lists both.

$FullFilePath = (`
Get-ChildItem `
	-LiteralPath (
		"$HOME"          + [IO.Path]::DirectorySeparatorChar +
		"$DirectoryPath" + [IO.Path]::DirectorySeparatorChar +
		"$FilePath")
	)[0] | Select-Object -ExpandProperty 'FullName'

##### File Content Acquisition
#This should fail.

$PrintPath = "$FullFilePath"
Write-Output (Show-Markdown -InputObject "The path is ``$PrintPath``.")

Get-Content -LiteralPath "$FullFilePath"
Write-Output "$?"

I realized that it could. Instead, I've narrowed it to a fault in how PowerShell, via Konsole and VSCode's terminals, interprets certain characters (like   - tabs) as control codes.
Steps to reproduce
Try pasting your equivalent to:
Get-Content -LiteralPath '/home/RokeJulianLockhart/TabPrefixed    ExampleDirectory.dir/TabPrefixed        ExampleFile.txt'

into the shell after successfully running that command.
You can get this value from
(Get-ChildItem -LiteralPath "$DirectoryPath")[0].FullName

Actual behavior
See the "prefix^Iexample" in:

Get-Content -LiteralPath "/home/RokeJulianLockhart/Documents/pyside6/prefix^Iexample.txt/example.txt"

Alternatively, sometimes, it appears to paste the path correctly, but doesn't recognise the value unless passed in a script:

PS /home/RokeJulianLockhart> (Get-ChildItem -LiteralPath "$DirectoryPath")[0].FullName
/home/RokeJulianLockhart/TabPrefixed    ExampleDirectory.dir/TabPrefixed        ExampleFile.txt
PS /home/RokeJulianLockhart> Get-Content -LiteralPath '/home/RokeJulianLockhart/TabPrefixed    ExampleDirectory.dir/TabPrefixed        ExampleFile.txt'
Get-Content: Cannot find path '/home/RokeJulianLockhart/TabPrefixed    ExampleDirectory.dir/TabPrefixed        ExampleFile.txt' because it does not exist.
PS /home/RokeJulianLockhart> Get-Content -LiteralPath "$FullFilePath"
Example text.
PS /home/RokeJulianLockhart> Write-Output "$FullFilePath"
/home/RokeJulianLockhart/TabPrefixed    ExampleDirectory.dir/TabPrefixed        ExampleFile.txt

I've put the script section first, instead of the description of the issue, because my examples aforementioned utilize values from this script to demonstrate the problem.
Error details

Exception             :
    Type                 : System.Management.Automation.ItemNotFoundException
    ErrorRecord          :
        Exception             :
            Type    : System.Management.Automation.ParentContainsErrorRecordException
            Message : Cannot find path '/home/RokeJulianLockhart/TabPrefixed    ExampleDirectory.dir/TabPrefixed        ExampleFile.txt' because it does not exist.
            HResult : -2146233087
        TargetObject          : /home/RokeJulianLockhart/TabPrefixed    ExampleDirectory.dir/TabPrefixed        ExampleFile.txt
        CategoryInfo          : ObjectNotFound: (/home/RokeJulianLoc…    ExampleFile.txt:String) [], ParentContainsErrorRecordException
        FullyQualifiedErrorId : PathNotFound
    ItemName             : /home/RokeJulianLockhart/TabPrefixed    ExampleDirectory.dir/TabPrefixed        ExampleFile.txt
    SessionStateCategory : Drive
    TargetSite           :
        Name          : ResolveDriveQualifiedPath
        DeclaringType : [System.Management.Automation.LocationGlobber]
        MemberType    : Method
        Module        : System.Management.Automation.dll
    Message              : Cannot find path '/home/RokeJulianLockhart/TabPrefixed    ExampleDirectory.dir/TabPrefixed        ExampleFile.txt' because it does not exist.
    Source               : System.Management.Automation
    HResult              : -2146233087
    StackTrace           :
   at System.Management.Automation.LocationGlobber.ResolveDriveQualifiedPath(String path, CmdletProviderContext context, Boolean allowNonexistingPaths, CmdletProvider& providerInstance)
   at System.Management.Automation.LocationGlobber.GetGlobbedMonadPathsFromMonadPath(String path, Boolean allowNonexistingPaths, CmdletProviderContext context, CmdletProvider& providerInstance)
   at System.Management.Automation.PathIntrinsics.GetResolvedPSPathFromPSPath(String path, CmdletProviderContext context)
   at Microsoft.PowerShell.Commands.ContentCommandBase.ResolvePaths(String[] pathsToResolve, Boolean allowNonexistingPaths, Boolean allowEmptyResult, CmdletProviderContext currentCommandContext)
TargetObject          : /home/RokeJulianLockhart/TabPrefixed    ExampleDirectory.dir/TabPrefixed        ExampleFile.txt
CategoryInfo          : ObjectNotFound: (/home/RokeJulianLoc…    ExampleFile.txt:String) [Get-Content], ItemNotFoundException
FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
InvocationInfo        :
    MyCommand        : Get-Content
    ScriptLineNumber : 1
    OffsetInLine     : 1
    HistoryId        : 12
    Line             : Get-Content -LiteralPath '/home/RokeJulianLockhart/TabPrefixed    ExampleDirectory.dir/TabPrefixed        ExampleFile.txt'
    Statement        : Get-Content -LiteralPath '/home/RokeJulianLockhart/TabPrefixed    ExampleDirectory.dir/TabPrefixed        ExampleFile.txt'
    PositionMessage  : At line:1 char:1
                       + Get-Content -LiteralPath '/home/RokeJulianLockhart/TabPrefixed    Exa …
                       + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    InvocationName   : Get-Content
    CommandOrigin    : Internal
ScriptStackTrace      : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo :
      0
      1

Apologies - can't convert this to HTML due to circular reference.
Environment data

JSON

"$PSVersionTable" | ConvertTo-Json

{
  "OS": "Fedora Linux 40 (KDE Plasma)",
  "SerializationVersion": {
    "Major": 1,
    "Minor": 1,
    "Build": 0,
    "Revision": 1,
    "MajorRevision": 0,
    "MinorRevision": 1
  },
  "PSCompatibleVersions": [
    {
      "Major": 1,
      "Minor": 0,
      "Build": -1,
      "Revision": -1,
      "MajorRevision": -1,
      "MinorRevision": -1
    },
    {
      "Major": 2,
      "Minor": 0,
      "Build": -1,
      "Revision": -1,
      "MajorRevision": -1,
      "MinorRevision": -1
    },
    {
      "Major": 3,
      "Minor": 0,
      "Build": -1,
      "Revision": -1,
      "MajorRevision": -1,
      "MinorRevision": -1
    },
    {
      "Major": 4,
      "Minor": 0,
      "Build": -1,
      "Revision": -1,
      "MajorRevision": -1,
      "MinorRevision": -1
    },
    {
      "Major": 5,
      "Minor": 0,
      "Build": -1,
      "Revision": -1,
      "MajorRevision": -1,
      "MinorRevision": -1
    },
    {
      "Major": 5,
      "Minor": 1,
      "Build": -1,
      "Revision": -1,
      "MajorRevision": -1,
      "MinorRevision": -1
    },
    {
      "Major": 6,
      "Minor": 0,
      "Build": -1,
      "Revision": -1,
      "MajorRevision": -1,
      "MinorRevision": -1
    },
    {
      "Major": 7,
      "Minor": 0,
      "Build": -1,
      "Revision": -1,
      "MajorRevision": -1,
      "MinorRevision": -1
    }
  ],
  "PSRemotingProtocolVersion": {
    "Major": 2,
    "Minor": 3,
    "Build": -1,
    "Revision": -1,
    "MajorRevision": -1,
    "MinorRevision": -1
  },
  "Platform": "Unix",
  "WSManStackVersion": {
    "Major": 3,
    "Minor": 0,
    "Build": -1,
    "Revision": -1,
    "MajorRevision": -1,
    "MinorRevision": -1
  },
  "GitCommitId": "7.4.3",
  "PSEdition": "Core",
  "PSVersion": {
    "Major": 7,
    "Minor": 4,
    "Patch": 3,
    "PreReleaseLabel": null,
    "BuildLabel": null
  }
}

HTML

    OS  Fedora Linux 40 (KDE Plasma)    SerializationVersion      Major  1    Minor  1    Build  0    Revision  1    MajorRevision  0    MinorRevision  1         PSCompatibleVersions           Major  1    Minor  0    Build  -1    Revision  -1    MajorRevision  -1    MinorRevision  -1              Major  2    Minor  0    Build  -1    Revision  -1    MajorRevision  -1    MinorRevision  -1              Major  3    Minor  0    Build  -1    Revision  -1    MajorRevision  -1    MinorRevision  -1              Major  4    Minor  0    Build  -1    Revision  -1    MajorRevision  -1    MinorRevision  -1              Major  5    Minor  0    Build  -1    Revision  -1    MajorRevision  -1    MinorRevision  -1              Major  5    Minor  1    Build  -1    Revision  -1    MajorRevision  -1    MinorRevision  -1              Major  6    Minor  0    Build  -1    Revision  -1    MajorRevision  -1    MinorRevision  -1              Major  7    Minor  0    Build  -1    Revision  -1    MajorRevision  -1    MinorRevision  -1              PSRemotingProtocolVersion      Major  2    Minor  3    Build  -1    Revision  -1    MajorRevision  -1    MinorRevision  -1         Platform  Unix    WSManStackVersion      Major  3    Minor  0    Build  -1    Revision  -1    MajorRevision  -1    MinorRevision  -1         GitCommitId  7.4.3    PSEdition  Core    PSVersion      Major  7    Minor  4    Patch  3    PreReleaseLabel       BuildLabel

Visuals
Screencast_20240710_125007.webm

How it could be represented? As in bash?

https://github.com/PowerShell/PowerShell/issues/24037#issuecomment-2220837124

@237dmitry, I've asked about that at SE SuperUser, and the answer is such that it does appear feasible. Especially, for PowerShell, these utilities don't even need to be able to detect other shells' syntaxes (like ls does). Certainly, I can't think of any other solution this, else I would have filed this as an FR (rather than the BR it is).

should actually accept verbatim the characters

Yes, I think so. Maybe with `t or \t replacement.

https://github.com/PowerShell/PowerShell/issues/24037#issuecomment-2220984801

@237dmitry, my point is merely that the user shouldn't need to manually modify the path before pasting it.

1 Usually, saving the script as UTF8 encoding with BOM header can solve the problem of file names with special encoding in the script. But this is not compatible with “#!"
2 I usually use mkdir - p 'directory name with utf8 encoding'

Are you saying that pasting into a session where PowerShell is running should be context sensitive in how it interprets tab characters?
For instance if you paste a tab as part of a filename, how is PowerShell to know you want that as part of the file name rather than tab-expansion to cycle through available files?
If you want this to be context sensitive then is this part of PReadLine rather than PowerShell?

For context:

The concept of a character-encoding such as UTF-8 doesn't apply to in-memory strings getting pasted.

Scripts and files without a BOM default to UTF-8 in PowerShell Core; the only reason to use a BOM is for cross-edition scripts that Windows PowerShell too must interpret correctly.

Technically, a tab character is in the ASCII subrange of the Unicode "alphabet", and is a so-called C0 control character.

Pasting into a terminal in most environments is done by simulated typing, unfortunately. In such environments pasting something with a tab causes that tab char. to be interpreted as a request for tab-completion, thereby effectively discarding the tab while possibly altering what is pasted.

Overcoming this limitation is discussed in the following PSReadLine issues:

https://github.com/PowerShell/PSReadLine/issues/579
For Unix: https://github.com/PowerShell/PSReadLine/issues/1471

While the old-style conhost.exe console windows on Windows do support direct pasting, they seemingly discard tab characters.

macOS terminals either quietly convert a pasted tab to a space (Terminal.app) or prompt for whether the tabs should be pasted (iTerm.app), but the pasting then again happens via simulated typing.

I'm unclear on whether PSReadLine even has the option to override these behaviors.

As for tab-completing a filename with embedded tabs (not supported on Windows), as observed on macOS:

bash completes with a literal tab char., properly escaped
PowerShell completes with the tab char. too, but it is rendered as ^I and not escaped, which could be considered a bug (to make it work, the ^I must either be `-escaped, or the whole argument must be quoted).

https://github.com/PowerShell/PowerShell/issues/24037#issuecomment-2223724193

@mklement0, that's a brilliantly comprehensive explanation. Would you consider this issue a duplicate of https://github.com/PowerShell/PSReadLine/issues/1471#issue-600646593, or should I file a separate issue at that repository?

Thanks, @RokeJulianLockhart.
https://github.com/PowerShell/PSReadLine/issues/1471#issue-600646593 may be a duplicate - I'm not certain if tabs would be retained as-is as part of a bracketed past.
I see that you opened a new PSReadLine issue: I suggest updating it with the above information.
It looks like the Windows Terminal PR you linked to was merged quite a while ago, so I assume the feature is already in place.

The concept of a character-encoding such as UTF-8 doesn't apply to in-memory strings getting pasted

When using Get-Clipboard, tab characters are not replaced with spaces.:
$ [int[]][char[]] "a    b"    # pasted from clipboard with Ctrl+V
97
32
32
32
32
98

$ [int[]][char[]]  (Get-Clipboard)
97
9
98

@RokeJulianLockhart As shown in the screenshot below, you copied the text from the terminal output before pasting to Get-Content -LiteralPath. I believe when you copy the terminal output, you already lost the tab characters \t. Can you please double check if that's the case? You can check by pasting to VSCode editor after copying from the terminal output, and see if the tab has been replaced with spaces already.

@daxian-dbw, while it is true that tab chars. are lost when copying output from VSCode's integrated terminal (they become spaces), the problem exists even if you paste a string with bona fide tab characters.

Yes, I understand. Tab is intentionally replaced with 4 space characters (see the code), and it was a by design change: https://github.com/PowerShell/PSReadLine/issues/144.
I just want to point out that the scenario described by this issue -- copy the terminal output and paste in your command -- won't work even if PSReadLine doesn't alter the Tab character. And I don't think it's worth breaking the current behavior.

@daxian-dbw:
Good to know about PSReadLine's tabs-to-spaces conversion.

copy the terminal output and paste in your command -- won't work even if PSReadLine doesn't alter the Tab character.

That may be true for VSCode, but it isn't true for other terminal emulators, such as on macOS - on copying, they do preserve literal tab chars. in the selection.

Let me try to summarize:

PSReadLine converts each literal tab char. pasted into 4 spaces by design; Bash's readline library appears to do a similar thing (1 space). Additionally, terminal applications such as iTerm.app on macOS themselves offer modifying the pasted text if it contains tab chars., before passing it to the target shell.

For pasting code this makes sense, but it prevents pasting file paths that contain embedded tab chars. - though that is definitely an edge case.

PowerShell's tab-completion completes file names with embedded tab chars. as such, but renders them as ^I (which is just a display problem). However, it neglects to quote such file names, which is arguably a bug (but, again, an edge case).

bueno señores. solo quiero comentarles, yo en realidad solo es que no së, todo esto es nuevo para mi, nunca fui a la escuela, nunca tuve un profesor que me enseñara, nunca estudie mi maximo grado de estudios es la secundaria concluida. eso es todo que en estos ultimos tiempor he hecho muchas cosas desde armar esta chatarra del basurero, pero para cualquiera de ustedes hubiera sido una tarea sencilla, para mi fue una tormenta en la que me meti. pues no sabia ni como ni por donde. ni nada, ni terminos cientificos ni terminos de ninguno. solo hago las cosas, estudio lo que veo, practico lo que puedo, pero no culpo a nadie si soy yo, y saben mucho de lo que hago es solo causarle problemas a microsoft. por que soy necio. pero aprendo, y creo que aprendo bien, si bien no eh hecho tal vez para todos ustedes algo bien, pues es normal, no estudie nada. pero a mi punto de vista, yo se mucho mas que muchos que estudian, yo aprendo solo, con tutoriales, con practica aun que luego me pierdo, pero como sea regreso.  y todo esto lo aprendo por gusto. por que me gusta, por que quiero aprender, por que ademas lo necesito, necesito generar dinero sin necesidad de tener que acudir a una empresa negrera que solo ocupa a la gente por horas y horas y nunca se llenan y como consegui esos empleos, pues para mi fue simple, examenes y examenes, y examenes, y creo que hasta suerte tenia, por que donde me pare me quede. sin saber absolutamente nada, pero no soy de las personas que se queda esperando, si observo, y aprendo. y jamas me corrieron por malo. al contrario. tengo muchos reconocimientos  de donde trabaje, en cada uno de mis trabajos siempre sobresali de alguna manera, perjo jamas me dijeron que yo fuera malo. al contrario, siermpre en poco tiempo siempre me mantenia en los primeros lugares de las empresas. y de igual manera si me sali de todas fue por alguna razon, y tambien se que a la que quiera regresar puedo hacerlo.  pero una no kiero, y dos no puedo. vivo con una persona de mas de 80 años que por cierto, yo no tube hijos, y no se lo que es cuidar niños chiquito. dicen que es lo mismo. y honestamente yo no hubiera sido buen padre, no tengo la pasciencia de poder tolerar tantas grocerias. y a mi madre le aguanto mucho. pero hasta el dia de hoy con todo esto que estoy medio aprendiendo y con mi madre, voy a terminar loco.  es pero que no. pero si lo eh pensado. señores, yo no soy para estar aqui, solo se que voy a seguir haciendo barbaridades con sus sistemas, y  al final almenos yo me doy cuenta que ahorita para mi es muy sencillo hacer muchas cosas que antes no tenia ninguna idea de para que diablos eran sus codificaciones,  solo aqui estoy aqui voy a seguir, tal vez no en lo que ustedes pensaban, pero voy a crear, voy a generar paginas, aplicaicones, y no me importa si es java. si es phyton, no mie importa el programa, ami lo que me importa es llegar a la meta, y la meta es llegar con la gente y que le guste lo que yo hago. solo eso.  y perdon, si la eh cajeteado de mas, pero aveces me desesperan tantos candados. yo seria mas practico. y solo por no haber estudiado. pero con la edad que yo tengo y si hubiera estudiado,, que creen que todos ustedes los podria haber tenido babeando de lo que podria hacer. pero no estarde. y me quedan unos cuantos años para hacer algo. asi que les agradezco sus criticas que poco entendi. pero al final entendi algo por que si me daba cuenta de lo que decian solo que con mis terminos, osea mas burocrata. pero al final , gracias. por que gracias a ustedes existe esta y muchas paginas para burros como yo. y perdon los tengo que dejar, me tengo que poner a generar algo.  me urge dinero, por que como dicen esta panza no es de salario minimo.
cualquier cosa aqui me tendran, que yo jamas bloqueo a nadie que no me hace nada. y menos a ustedes que lo unico que quicieran, es que yo de verdad supiera lo que tal vez pensaban que se.

https://github.com/PowerShell/PowerShell/issues/24037#issuecomment-2227127337

@AngelRazo68, what...?

https://github.com/PowerShell/PowerShell/issues/24037#issuecomment-2224029814

@daxian-dbw, my sincere apologies for the wait to respond. I've been spending some time diagnosing some related problems, like https://github.com/microsoft/debugpy/issues/1671#issuecomment-2379927310, and then migrating wholesale away from tabs in file names. ^1
Irrespective, it certainly does appear to be replaced, and solely by pwsh - not bash:

https://github.com/PowerShell/PowerShell/issues/24037#issuecomment-2224000265

@237dmitry, I'd try Get-Clipboard, but I'm blocked by https://github.com/Pscx/Pscx/issues/103#issue-2601956172. Consequently, are you using Windows? If so, I'm surprised you can use tabs in filenames, considering that they're explicitly illegal in filenames created via the Win32 API (as all early UTF-8/ASCII whitespace characters are).

https://github.com/PowerShell/PowerShell/issues/24037#issuecomment-2223850547

@mklement0, thanks for the advice, especially per https://github.com/PowerShell/PSReadLine/issues/4072#issuecomment-2224037550. Do you suggest that I merely duplicate the content of https://github.com/PowerShell/PowerShell/issues/24037#issuecomment-2223724193 into the technical implementation section?

I suggest opening a new PSReadLine issue that succinctly describes the problem; feel free to adapt / copy the text from my comment in the process.


text:
Pre-Pull Request Testing Needed for New Bash Installer

I am an intermediate-noob at bash so I would love to have some testing of the new installer before doing a pull request.
The goals and overall idea is described in #3547
Features (and fixes of download.sh):

Bare minimum requirements to get going (wget & sed) (attempts to install curl if not present)
defaults to only install PowerShell core (using repos where they are available)
For non-repo based installs - detects latest version from git tags
Optional -includeide switch installs VS Code and PowerShell Extension (using repos where they are available)
Fix/Cleanup: Installs on OpenSUSE using download from regular github releases page (until repo is established)
Removed restriction to OpenSUSE 42.1, should install 42.1 and later.
Removed restriction to CentOS only - should install on Redhat as well.

I have it working and tested under:

Ubuntu Desktop 16.04
CentOS 7.2 with GNOME Desktop
OpenSUSE 42.2 with KDE Desktop

Known Issues (and Help Needed):

The -appimage switch just calls the pre-existing appimage.sh which did not work on any of the above test cases
The OSX install was pieced together from various sources and is untested.

Here is the readme: https://github.com/DarwinJS/PowerShell/blob/feature/install-powershell.sh/tools/install-powershell.readme.md
Here are the commands to kick off the install (also covered in readme):
Only Install PowerShell Core:
bash <(wget -O - https://raw.githubusercontent.com/DarwinJS/PowerShell/feature/install-powershell.sh/tools/install-powershell.sh)

Install PowerShell Core with IDE:
bash <(wget -O - https://raw.githubusercontent.com/DarwinJS/PowerShell/feature/install-powershell.sh/tools/install-powershell.sh) -includeide

Install PowerShell Core with IDE and do tests that require a human to interact with the install process:
bash <(wget -O - https://raw.githubusercontent.com/DarwinJS/PowerShell/feature/install-powershell.sh/tools/install-powershell.sh) -includeide -interactivetesting

Hey @DarwinJS,
Please help understand. What does it means "PowerShell Core with IDE"?
I'm also a noob in Linux.
:)

@MaximoTrinidad - IDE = Integrated Development Environment.  In this case it means adding Visual Studio Code and the PowerShell Language Plug-in for vs code.
I'm a bash noob, but I've been doing hands on Linux LAMP administration for my own servers for over 15 years - just have not done a lot of bash for automation ;)

Ah! That's what I was trying to understand IDE with VS Code. So, you'll be using a VS Code Extension to perform the PowerShell upgrade. I think that a good thought!
:)

@MaximoTrinidad - the IDE is optional and does not have anything to do with the initial install of PowerShell.  If and only if you give the -includeide switch, the script installs vs code and powershell vs code extension so you can edit and debug powershell on the linux machine similar to how you do in PowerShell ISE on a Windows machine.

This is done and integrated.

authors: DarwinJS MaximoTrinidad