כל הפעלה הוא מוריד חבילות PIP מחדש

זה היומן
Updating the repository...
Already up to date.
Repository updated.
Installing requirements...
Looking in indexes: https://download.pytorch.org/whl/cu118, https://pypi.ngc.nvidia.com
Requirement already satisfied: torch in c:\zxcv\hebrew_whisper\venv\lib\site-packages (2.2.2+cu118)
Requirement already satisfied: torchvision in c:\zxcv\hebrew_whisper\venv\lib\site-packages (0.17.2+cu118)
Requirement already satisfied: torchaudio in c:\zxcv\hebrew_whisper\venv\lib\site-packages (2.2.2+cu118)
Requirement already satisfied: filelock in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from torch) (3.9.0)
Requirement already satisfied: typing-extensions>=4.8.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from torch) (4.8.0)
Requirement already satisfied: sympy in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from torch) (1.12)
Requirement already satisfied: networkx in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from torch) (3.2.1)
Requirement already satisfied: jinja2 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from torch) (3.1.2)
Requirement already satisfied: fsspec in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from torch) (2024.3.1)
Requirement already satisfied: numpy in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from torchvision) (1.26.3)
Requirement already satisfied: pillow!=8.3.,>=5.3.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from torchvision) (10.2.0)
Requirement already satisfied: MarkupSafe>=2.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from jinja2->torch) (2.1.3)
Requirement already satisfied: mpmath>=0.19 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from sympy->torch) (1.3.0)
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Requirement already satisfied: gradio in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from -r requirements.txt (line 1)) (4.19.1)
Requirement already satisfied: numpy in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from -r requirements.txt (line 2)) (1.26.3)
Requirement already satisfied: transformers in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from -r requirements.txt (line 3)) (4.39.3)
Requirement already satisfied: librosa in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from -r requirements.txt (line 4)) (0.10.1)
Requirement already satisfied: soundfile in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from -r requirements.txt (line 5)) (0.12.1)
Requirement already satisfied: tqdm in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from -r requirements.txt (line 6)) (4.66.2)
Requirement already satisfied: googletrans==4.0.0-rc1 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from -r requirements.txt (line 8)) (4.0.0rc1)
Requirement already satisfied: openai-whisper in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from -r requirements.txt (line 9)) (20231117)
Requirement already satisfied: nltk in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from -r requirements.txt (line 10)) (3.8.1)
Requirement already satisfied: httpx==0.13.3 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from googletrans==4.0.0-rc1->-r requirements.txt (line 8)) (0.13.3)
Requirement already satisfied: certifi in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from httpx==0.13.3->googletrans==4.0.0-rc1->-r requirements.txt (line 8)) (2024.2.2)
Requirement already satisfied: hstspreload in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from httpx==0.13.3->googletrans==4.0.0-rc1->-r requirements.txt (line 8)) (2024.4.1)
Requirement already satisfied: sniffio in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from httpx==0.13.3->googletrans==4.0.0-rc1->-r requirements.txt (line 8)) (1.3.1)
Requirement already satisfied: chardet==3. in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from httpx==0.13.3->googletrans==4.0.0-rc1->-r requirements.txt (line 8)) (3.0.4)
Requirement already satisfied: idna==2.* in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from httpx==0.13.3->googletrans==4.0.0-rc1->-r requirements.txt (line 8)) (2.10)
Requirement already satisfied: rfc3986<2,>=1.3 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from httpx==0.13.3->googletrans==4.0.0-rc1->-r requirements.txt (line 8)) (1.5.0)
Requirement already satisfied: httpcore==0.9.* in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from httpx==0.13.3->googletrans==4.0.0-rc1->-r requirements.txt (line 8)) (0.9.1)
Requirement already satisfied: h11<0.10,>=0.8 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from httpcore==0.9.->httpx==0.13.3->googletrans==4.0.0-rc1->-r requirements.txt (line 8)) (0.9.0)
Requirement already satisfied: h2==3. in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from httpcore==0.9.->httpx==0.13.3->googletrans==4.0.0-rc1->-r requirements.txt (line 8)) (3.2.0)
Requirement already satisfied: hyperframe<6,>=5.2.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from h2==3.->httpcore==0.9.->httpx==0.13.3->googletrans==4.0.0-rc1->-r requirements.txt (line 8)) (5.2.0)
Requirement already satisfied: hpack<4,>=3.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from h2==3.->httpcore==0.9.*->httpx==0.13.3->googletrans==4.0.0-rc1->-r requirements.txt (line 8)) (3.0.0)
Requirement already satisfied: aiofiles<24.0,>=22.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (23.2.1)
Requirement already satisfied: altair<6.0,>=4.2.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (5.3.0)
Requirement already satisfied: fastapi in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (0.110.1)
Requirement already satisfied: ffmpy in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (0.3.2)
Requirement already satisfied: gradio-client==0.10.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (0.10.0)
Requirement already satisfied: huggingface-hub>=0.19.3 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (0.22.2)
Requirement already satisfied: importlib-resources<7.0,>=1.3 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (6.4.0)
Requirement already satisfied: jinja2<4.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (3.1.2)
Requirement already satisfied: markupsafe~=2.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (2.1.3)
Requirement already satisfied: matplotlib~=3.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (3.8.4)
Requirement already satisfied: orjson~=3.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (3.10.0)
Requirement already satisfied: packaging in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (24.0)
Requirement already satisfied: pandas<3.0,>=1.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (2.2.1)
Requirement already satisfied: pillow<11.0,>=8.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (10.2.0)
Requirement already satisfied: pydantic>=2.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (2.6.4)
Requirement already satisfied: pydub in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (0.25.1)
Requirement already satisfied: python-multipart>=0.0.9 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (0.0.9)
Requirement already satisfied: pyyaml<7.0,>=5.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (6.0.1)
Requirement already satisfied: ruff>=0.1.7 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (0.3.5)
Requirement already satisfied: semantic-version~=2.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (2.10.0)
Requirement already satisfied: tomlkit==0.12.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (0.12.0)
Requirement already satisfied: typer[all]<1.0,>=0.9 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (0.12.1)
Requirement already satisfied: typing-extensions~=4.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (4.8.0)
Requirement already satisfied: uvicorn>=0.14.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio->-r requirements.txt (line 1)) (0.29.0)
Requirement already satisfied: fsspec in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio-client==0.10.0->gradio->-r requirements.txt (line 1)) (2024.3.1)
Requirement already satisfied: websockets<12.0,>=10.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from gradio-client==0.10.0->gradio->-r requirements.txt (line 1)) (11.0.3)
Requirement already satisfied: filelock in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from transformers->-r requirements.txt (line 3)) (3.9.0)
Requirement already satisfied: regex!=2019.12.17 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from transformers->-r requirements.txt (line 3)) (2023.12.25)
Requirement already satisfied: requests in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from transformers->-r requirements.txt (line 3)) (2.31.0)
Requirement already satisfied: tokenizers<0.19,>=0.14 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from transformers->-r requirements.txt (line 3)) (0.15.2)
Requirement already satisfied: safetensors>=0.4.1 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from transformers->-r requirements.txt (line 3)) (0.4.2)
Requirement already satisfied: audioread>=2.1.9 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from librosa->-r requirements.txt (line 4)) (3.0.1)
Requirement already satisfied: scipy>=1.2.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from librosa->-r requirements.txt (line 4)) (1.13.0)
Requirement already satisfied: scikit-learn>=0.20.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from librosa->-r requirements.txt (line 4)) (1.4.1.post1)
Requirement already satisfied: joblib>=0.14 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from librosa->-r requirements.txt (line 4)) (1.3.2)
Requirement already satisfied: decorator>=4.3.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from librosa->-r requirements.txt (line 4)) (5.1.1)
Requirement already satisfied: numba>=0.51.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from librosa->-r requirements.txt (line 4)) (0.59.1)
Requirement already satisfied: pooch>=1.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from librosa->-r requirements.txt (line 4)) (1.8.1)
Requirement already satisfied: soxr>=0.3.2 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from librosa->-r requirements.txt (line 4)) (0.3.7)
Requirement already satisfied: lazy-loader>=0.1 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from librosa->-r requirements.txt (line 4)) (0.4)
Requirement already satisfied: msgpack>=1.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from librosa->-r requirements.txt (line 4)) (1.0.8)
Requirement already satisfied: cffi>=1.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from soundfile->-r requirements.txt (line 5)) (1.16.0)
Requirement already satisfied: colorama in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from tqdm->-r requirements.txt (line 6)) (0.4.6)
Requirement already satisfied: torch in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from openai-whisper->-r requirements.txt (line 9)) (2.2.2+cu118)
Requirement already satisfied: more-itertools in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from openai-whisper->-r requirements.txt (line 9)) (10.2.0)
Requirement already satisfied: tiktoken in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from openai-whisper->-r requirements.txt (line 9)) (0.6.0)
Requirement already satisfied: click in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from nltk->-r requirements.txt (line 10)) (8.1.7)
Requirement already satisfied: jsonschema>=3.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from altair<6.0,>=4.2.0->gradio->-r requirements.txt (line 1)) (4.21.1)
Requirement already satisfied: toolz in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from altair<6.0,>=4.2.0->gradio->-r requirements.txt (line 1)) (0.12.1)
Requirement already satisfied: pycparser in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from cffi>=1.0->soundfile->-r requirements.txt (line 5)) (2.22)
Requirement already satisfied: contourpy>=1.0.1 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from matplotlib~=3.0->gradio->-r requirements.txt (line 1)) (1.2.1)
Requirement already satisfied: cycler>=0.10 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from matplotlib~=3.0->gradio->-r requirements.txt (line 1)) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from matplotlib~=3.0->gradio->-r requirements.txt (line 1)) (4.51.0)
Requirement already satisfied: kiwisolver>=1.3.1 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from matplotlib~=3.0->gradio->-r requirements.txt (line 1)) (1.4.5)
Requirement already satisfied: pyparsing>=2.3.1 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from matplotlib~=3.0->gradio->-r requirements.txt (line 1)) (3.1.2)
Requirement already satisfied: python-dateutil>=2.7 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from matplotlib~=3.0->gradio->-r requirements.txt (line 1)) (2.9.0.post0)
Requirement already satisfied: llvmlite<0.43,>=0.42.0dev0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from numba>=0.51.0->librosa->-r requirements.txt (line 4)) (0.42.0)
Requirement already satisfied: pytz>=2020.1 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from pandas<3.0,>=1.0->gradio->-r requirements.txt (line 1)) (2024.1)
Requirement already satisfied: tzdata>=2022.7 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from pandas<3.0,>=1.0->gradio->-r requirements.txt (line 1)) (2024.1)
Requirement already satisfied: platformdirs>=2.5.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from pooch>=1.0->librosa->-r requirements.txt (line 4)) (4.2.0)
Requirement already satisfied: annotated-types>=0.4.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from pydantic>=2.0->gradio->-r requirements.txt (line 1)) (0.6.0)
Requirement already satisfied: pydantic-core==2.16.3 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from pydantic>=2.0->gradio->-r requirements.txt (line 1)) (2.16.3)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from requests->transformers->-r requirements.txt (line 3)) (3.3.2)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from requests->transformers->-r requirements.txt (line 3)) (2.2.1)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from scikit-learn>=0.20.0->librosa->-r requirements.txt (line 4)) (3.4.0)
WARNING: typer 0.12.1 does not provide the extra 'all'
Requirement already satisfied: shellingham>=1.3.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from typer[all]<1.0,>=0.9->gradio->-r requirements.txt (line 1)) (1.5.4)
Requirement already satisfied: rich>=10.11.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from typer[all]<1.0,>=0.9->gradio->-r requirements.txt (line 1)) (13.7.1)
Requirement already satisfied: starlette<0.38.0,>=0.37.2 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from fastapi->gradio->-r requirements.txt (line 1)) (0.37.2)
Requirement already satisfied: sympy in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from torch->openai-whisper->-r requirements.txt (line 9)) (1.12)
Requirement already satisfied: networkx in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from torch->openai-whisper->-r requirements.txt (line 9)) (3.2.1)
Requirement already satisfied: attrs>=22.2.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio->-r requirements.txt (line 1)) (23.2.0)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio->-r requirements.txt (line 1)) (2023.12.1)
Requirement already satisfied: referencing>=0.28.4 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio->-r requirements.txt (line 1)) (0.34.0)
Requirement already satisfied: rpds-py>=0.7.1 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio->-r requirements.txt (line 1)) (0.18.0)
Requirement already satisfied: six>=1.5 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio->-r requirements.txt (line 1)) (1.16.0)
Requirement already satisfied: markdown-it-py>=2.2.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from rich>=10.11.0->typer[all]<1.0,>=0.9->gradio->-r requirements.txt (line 1)) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from rich>=10.11.0->typer[all]<1.0,>=0.9->gradio->-r requirements.txt (line 1)) (2.17.2)
Requirement already satisfied: anyio<5,>=3.4.0 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from starlette<0.38.0,>=0.37.2->fastapi->gradio->-r requirements.txt (line 1)) (4.3.0)
Requirement already satisfied: mpmath>=0.19 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from sympy->torch->openai-whisper->-r requirements.txt (line 9)) (1.3.0)
Requirement already satisfied: mdurl~=0.1 in c:\zxcv\hebrew_whisper\venv\lib\site-packages (from markdown-it-py>=2.2.0->rich>=10.11.0->typer[all]<1.0,>=0.9->gradio->-r requirements.txt (line 1)) (0.1.2)
[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: python.exe -m pip install --upgrade pip
Requirements installed.
Loading checkpoint shards: 100%|█████████████████████████████████████████████████████████| 2/2 [00:06<00:00,  3.35s/it]
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
Running on local URL:  http://<IP_ADDRESS>:7860
To create a public link, set share=True in launch().

Fix packages reload issue


list projects for more > 50

fix #133
also added bunch of extra filters:
Usage: mergin list-projects [OPTIONS]

  List projects on the server.

Options:
  --flag TEXT          What kind of projects (e.g. 'created' for just my
                       projects,'shared' for projects shared with me. No flag
                       means returns all public projects.
  --name TEXT          Filter projects with name like name
  --namespace TEXT     Filter projects with namespace like namespace
  --order_params TEXT  optional attributes for sorting the list.It should be a
                       comma separated attribute nameswith _asc or _desc
                       appended for sorting direction.For example:
                       "namespace_asc,disk_usage_desc".Available attrs:
                       namespace, name, created, updated, disk_usage, creator
  --help               Show this message and exit.

CU-2gbfhjt

fix #133


Error inflating class com.varunest.sparkbutton.SparkButton

Binary XML file line #230: Error inflating class com.varunest.sparkbutton.SparkButton
 <com.varunest.sparkbutton.SparkButton                                         android:id="@+id/star_button1"                                         android:layout_width="25sp"                                         android:layout_height="25sp"                                         android:layout_marginLeft="5sp"                                         android:layout_marginStart="5sp"                                         app:sparkbutton_activeImage="@drawable/ic_liked"                                         app:sparkbutton_animationSpeed=".85"                                         app:sparkbutton_iconSize="25sp"                                         app:sparkbutton_inActiveImage="@drawable/ic_like" />

me too.. how solved?

I have used one of the forks of this library

But you've used sp instead of dp for dimensions... they only apply to fonts.


Wagtail 4.0+ Upgrades

Includes the changes from #169 with merge conflicts resolved.

I think the first option sounds the most reliable to me. I couldn't find any reliable image that installs all versions.

I think the first option sounds the most reliable to me. I couldn't find any reliable image that installs all versions.


Code changes to refactor serialization/deserialization

replay of https://github.com/Azure/autorest/pull/2477

@olydis,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


[DNM] Testing installer script

https://github.com/apple/swift-installer-scripts/pull/272
@swift-ci please build toolchain Windows platform


[question] Run multiple time

Hi there,
I have a 2 question today

Can I run test multiple time due to N or due to they succeeded?
Can I run test on several nodes?

Thanks, In advice

Hi @starostin13 ,

Can I run test multiple time due to N or due to they succeeded?

in his repo there is no support for this, but you could handle this via a custom then snippen.

Can I run test on several nodes?

by default tests run on chrome and firefox browser nodes in parallel.


Feedback from a user

From @neurolabusc via private mail:

Are there any instructions or YouTube videos on using SciView? I entered the SciView address to the Fiji Help->Update and it seemed to download a lot of files, but when I restarted I do not see SciView in the Plugins menu nor anywhere else. The web page suggests there should be a Demo->GameOfLife option, but I do not see any demo menu, and my ImageJ/Fiji menu has a lot more menus than shown on the Github web page.

Followed by:

I did get SciView running. Not sure if there were dialogs that were off screen (I think in low DPI mode, some of the dialogs are off the screen, and this makes it seem like the interface is not responsive), or if I have to run Help->Refresh menus even after restarting.

I do get errors that some JARS are not native, but frustratingly it does not tell me which jar. A web search suggests sometimes a MacOS specific version of input is installed, but mine looks OK (input-2.0.9.jar).
Closing the SciView window appears to lock up ImageJ a lot of errors appear and then ImageJ crashes
Some interactions with SciView seems to change the background for the ImageJ and SciView dialogs to black, which makes it impossible to read text or widgets.
The volume rendering does work. Neither setting the transfer function nor the color influences the volume being rendered.

[INFO] Reading available sites from https://imagej.net/
Started application as PID 26494
imagej-launcher version smaller or equal to non-working version (4.0.5 vs. 4.0.5), disabling Vulkan as rendering backend. Disable check by setting 'scenery.DisableLauncherVersionCheck' system property to 'true'.
NodePublisher listening on tcp://<IP_ADDRESS>:6666
Initializing OpenGL Renderer...
Loaded Deferred Shading (Deferred Shading, with HDR postprocessing and FXAA
ClearGLWindow: GLProfile[GL4/GL4.hw]
OpenGLRenderer: 852 x 662 on GeForce GTX 1070 with Max-Q Design/PCIe/SSE2, 4.5.0 NVIDIA 396.24
Creating render framebuffer GeometryBuffer for pass Scene (852x662)
 + attachment NormalsMaterial, RGBA_Float16
 + attachment DiffuseAlbedo, RGBA_UInt8
 + attachment ZBuffer, Depth32
Creating render framebuffer AOTemp1 for pass AO (852x662)
 + attachment Occlusion, R_UInt8
Creating render framebuffer AOTemp2 for pass AOBlurV (852x662)
 + attachment Occlusion, R_UInt8
Creating render framebuffer AOBuffer for pass AOBlurH (426x331)
 + attachment Occlusion, R_UInt8
Creating render framebuffer ForwardBuffer for pass DeferredLighting (852x662)
 + attachment Color, RGBA_Float16
Creating render framebuffer HDRBuffer for pass ForwardShading (852x662)
 + attachment Color, RGBA_Float16
 + attachment Depth, Depth32
Creating render framebuffer FXAABuffer for pass HDR (852x662)
 + attachment Color, RGBA_UInt8
Creating render framebuffer Viewport for pass FXAA (852x662)
Recreating framebuffers (852x662
Creating render framebuffer GeometryBuffer for pass Scene (852x662)
 + attachment NormalsMaterial, RGBA_Float16
 + attachment DiffuseAlbedo, RGBA_UInt8
 + attachment ZBuffer, Depth32
Creating render framebuffer AOTemp1 for pass AO (852x662)
 + attachment Occlusion, R_UInt8
Creating render framebuffer AOTemp2 for pass AOBlurV (852x662)
 + attachment Occlusion, R_UInt8
Creating render framebuffer AOBuffer for pass AOBlurH (426x331)
 + attachment Occlusion, R_UInt8
Creating render framebuffer ForwardBuffer for pass DeferredLighting (852x662)
 + attachment Color, RGBA_Float16
Creating render framebuffer HDRBuffer for pass ForwardShading (852x662)
 + attachment Color, RGBA_Float16
 + attachment Depth, Depth32
Creating render framebuffer FXAABuffer for pass HDR (852x662)
 + attachment Color, RGBA_UInt8
Creating render framebuffer Viewport for pass FXAA (852x662)
Reflections took 35 ms to scan 1 urls, producing 49 keys and 241 values
Initialized 1 textures
[ERROR] Could not find JAR with native libraries.
[ERROR] Could not find JAR with native libraries.
No custom key configuration found, using default keybindings.
No custom key configuration found, using default keybindings.
Recreating framebuffers (852x662
Creating render framebuffer GeometryBuffer for pass Scene (852x662)
 + attachment NormalsMaterial, RGBA_Float16
 + attachment DiffuseAlbedo, RGBA_UInt8
 + attachment ZBuffer, Depth32
Creating render framebuffer AOTemp1 for pass AO (852x662)
 + attachment Occlusion, R_UInt8
Creating render framebuffer AOTemp2 for pass AOBlurV (852x662)
 + attachment Occlusion, R_UInt8
Creating render framebuffer AOBuffer for pass AOBlurH (426x331)
 + attachment Occlusion, R_UInt8
Creating render framebuffer ForwardBuffer for pass DeferredLighting (852x662)
 + attachment Color, RGBA_Float16
Creating render framebuffer HDRBuffer for pass ForwardShading (852x662)
 + attachment Color, RGBA_Float16
 + attachment Depth, Depth32
Creating render framebuffer FXAABuffer for pass HDR (852x662)
 + attachment Color, RGBA_UInt8
Creating render framebuffer Viewport for pass FXAA (852x662)
Done initializing SciView

The screenshot below shows a SciView volume rendering of the MNI152 image included with MRIcroGL. As I noted, I do not seem to be able to alter the transfer function (e.g. all the air outside the brain has the minimum intensity [0] but appears translucent rather than transparent).
Also note that I have set the Edit>Options>Appearance for my HiDPI mode (“Menu font size” 16 and “GUI scale” 2) to improve readability but these settings do not influence SciView (note tiny font size for SciView relative to ImageJ).

I cannot speak to the transfer function issue (maybe @kephale or @skalarproduktraum can), but regarding the font size: this might be because SciView's UI is built on Swing rather than AWT.
@neurolabusc Are you using Java 9+? Or Java 8?

I downloaded the latest stable Fiji and then updated it from the Fiji GUI. Can I specify different versions of Java at launch, or are there development builds for different versions of Java?
The Plugins>Utilities>ImageJ Properties command reports the following
  java.version: 1.8.0_172
  java.vendor: Oracle Corporation
  os.name: Linux
  os.version: 4.15.0-38-generic
  os.arch: amd64
...
  IJ.getVersion: 2.0.0-rc-71/1.52r
  IJ.getFullVersion: 1.52r06
  IJ.javaVersion: 8
  IJ.isLinux: true
  IJ.isMacintosh: false
  IJ.isMacOSX: false
  IJ.isWindows: false
  IJ.is64Bit: true
....

Can I specify different versions of Java at launch

Yes, see instructions here. Essentially it boils down to using the --java-home command line parameter.

I tried this, but whatever I launch ImageJ wants to look for files in a folder '/amd64'
I can find the file
/usr/lib/jvm/java-11-openjdk-amd64/lib/server/libjvm.so
but not
/usr/lib/jvm/java-11-openjdk-amd64/lib/amd64/server/libjvm.so
When I run
$HOME/Fiji.app/ImageJ-linux64 --java-home /usr/lib/jvm/java-11-openjdk-amd64
It looks like this issue was first noted in June '18 but remains unresolved.
I get
Could not load Java library '/usr/lib/jvm/java-11-openjdk-amd64/lib/amd64/server/libjvm.so': /usr/lib/jvm/java-11-openjdk-amd64/lib/amd64/server/libjvm.so: cannot open shared object file: No such file or directory
Doing a web search I also tried
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
$HOME/Fiji.app/ImageJ-linux64

but this seems to have no effect, as I still get ImageJ running on Java 8.

Inspired by this issue I created a symlink to the library:
 sudo ln -s /usr/lib/jvm/java-11-openjdk-amd64/lib /usr/lib/jvm/java-11-openjdk-amd64/lib/amd64
I was able to launch ImageJ with this command
  $HOME/Fiji.app/ImageJ-linux64 --default-gc --java-home /usr/lib/jvm/java-11-openjdk-amd64
The base ImageJ seems to load fine (though a lot of errors were reported in the Console log, most seem to be related to SciJava) and the Bio-Formats module was able to load a NIfTI volume without problems. However choosing Plugins->SciView caused ImageJ to crash right after the splash screen.
[ERROR]: Cannot locate JRE jar in /usr/lib/jvm/java-11-openjdk-amd64
[ERROR] Cannot create plugin: class='org.scijava.ui.swing.script.languagesupport.JavaLanguageSupportPlugin', priority=0.0, enabled=true, pluginType=LanguageSupportPlugin
java.lang.IllegalArgumentException: info cannot be null
	at org.fife.rsta.ac.java.JarManager.addClassFileSource(JarManager.java:157)
	at org.fife.rsta.ac.java.JarManager.addCurrentJreClassFileSource(JarManager.java:193)
	at org.scijava.ui.swing.script.languagesupport.JavaLanguageSupportPlugin.<init>(JavaLanguageSupportPlugin.java:56)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at java.base/java.lang.Class.newInstance(Class.java:584)
	at org.scijava.plugin.PluginInfo.createInstance(PluginInfo.java:306)
	at org.scijava.plugin.DefaultPluginService.createInstance(DefaultPluginService.java:237)
	at org.scijava.plugin.DefaultPluginService.createInstances(DefaultPluginService.java:226)
	at org.scijava.plugin.DefaultPluginService.createInstancesOfType(DefaultPluginService.java:217)
	at org.scijava.plugin.AbstractSingletonService.initInstances(AbstractSingletonService.java:138)
	at org.scijava.plugin.AbstractSingletonService.getInstances(AbstractSingletonService.java:77)
	at org.scijava.plugin.SingletonService.lambda$initialize$0(SingletonService.java:97)
	at org.scijava.object.ObjectIndex.resolvePending(ObjectIndex.java:388)
	at org.scijava.object.ObjectIndex.get(ObjectIndex.java:133)
	at org.scijava.object.DefaultObjectService.getObjects(DefaultObjectService.java:87)
	at org.scijava.display.DefaultDisplayService.getDisplays(DefaultDisplayService.java:166)
	at org.scijava.ui.DefaultUIService.showUI(DefaultUIService.java:159)
	at org.scijava.ui.DefaultUIService.showUI(DefaultUIService.java:142)
	at org.scijava.AbstractGateway.launch(AbstractGateway.java:104)
	at net.imagej.Main.main(Main.java:55)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at net.imagej.launcher.ClassLauncher.launch(ClassLauncher.java:279)
	at net.imagej.launcher.ClassLauncher.run(ClassLauncher.java:186)
	at net.imagej.launcher.ClassLauncher.main(ClassLauncher.java:77)
[INFO] Reading available sites from https://imagej.net/

@neurolabusc Thanks for the detailed feedback.

java.lang.IllegalArgumentException: info cannot be null
	at org.fife.rsta.ac.java.JarManager.addClassFileSource(JarManager.java:157)
	at org.fife.rsta.ac.java.JarManager.addCurrentJreClassFileSource(JarManager.java:193)
	at org.scijava.ui.swing.script.languagesupport.JavaLanguageSupportPlugin.<init>(JavaLanguageSupportPlugin.java:56)

Fixed with scijava/script-editor@3899427ac930c534911284f7d3cf46d79371fed0.

Inspired by this issue I created a symlink to the library:
sudo ln -s /usr/lib/jvm/java-11-openjdk-amd64/lib /usr/lib/jvm/java-11-openjdk-amd64/lib/amd64

@stelfrich and I believe we fixed this with imagej/imagej-launcher@1049eac6ec9931b1e98bcecc078865a5bca78afd.
It will probably be a few days before these changes propagate to the ImageJ Updater.


The previously connected server address needs to be put at the end of the server adress list

The previously connected server address needs to be put at the end of the server list when reconnecting. Current code puts the address twice and it may put the previous address earlier in the list.

Test FAILed.

verify

Test PASSed.


How to use tab:init  ?

`
HTML:

home

folder

document_text

person

ROUTES.JS:
{
path: '/home/',
componentUrl: './views/home.html',
tabs: [{
path: '/',
id: 'tabFeed',
url: './views/tabFeed.html',
},
{
path: '/tabProjetos/',
id: 'tabProjetos',
url: './views/tabProjetos.html',
},
{
path: '/tabNoticias/',
id: 'tabNoticias',
url: './views/tabNoticias.html',
},
{
path: '/tabPoliticos/',
id: 'tabPoliticos',
url: './views/tabPoliticos.html',
}
],
},
APP.JS
var $$ = Dom7;
$$("#tabNoticias").on("tab:init", function (e) {
app.dialog.alert('tabNoticias-init');
});
`
This is my actually code, but in a nutshell, as you can see, i'm trying to open an alert dialog when tab:init, but it's not working, I don't know why, can someone help ?

Do you want to ask a question? Are you looking for support? The Framework7 forum and Stack Overflow are the best places for getting support

Please, don't use GitHub issues for questions

this is not only a question, as you can see i'm trying to use the tab:init, but it's not working...

Then please create new one and fill issue form correctly, it is there for a reason


DBZ-424 Can't support PostgreSQL 10

We can validate PostgreSQL version first and then use select pg_current_wal_lsn() instead when we use PostgreSQL 10.
https://issues.jboss.org/browse/DBZ-424

@ScofieldXu Thanks, LGTM.
@jpechane, do we have a CI job for PG 10 already? I.e. if merging to master, will it be tested against 10, too?

Verified with http://ci.hibernate.org/view/Debezium/job/debezium-postgresql-10-test/3/

Merged to master and 0.6. Thanks, @ScofieldXu!


SqueezeNet issue

Hi,
I get a following error while trying this code:
local model = squeezenet(2)
print(model:forward(torch.rand(3,224,224))

THNN.lua:109: Wrong number of input channels! Input has 64 channels, expected 128 at /tmp/luarocks_nn-scm-1-4428/nn/lib/THNN/generic/SpatialConvolutionMM.c:92

Try the following: model:forward(torch.rand(1,3,224,224))
In this call, 1 corresponds to a batch of size 1.

Hi, thank you! Didn't think of adding a batch dimension.


Non-deterministic OptionalMessageBodyWriter selection - Dropwizard 1.0, 1.1

Prior to Dropwizard 1.x, to be able to write out Optional's you had to make use of the Java8Bundle (this added an OptionalMessageBodyWriter) since Dropwizard supported Java 7 and hence could not pick up Java 8 Optionals.
As 1.x got released and became Java 8 only, the bundle was deprecated and its behaviour inlined (mostly in DropwizardResourceConfig). The downside to this is that the OptionalMessageBodyWriter selection by the Jersey runtime is non-deterministic if you have more than one i.e. remoting2 and its 204 scheme vs Dropwizard's OptoionalMessageBodyWriter.
This is only potentially remedied with a kick of the server (it can always be stuck on. There are 2 options I think:

Register the OptionalMessageBodyWriter with a priority (this will work with 1.0 and 1.1):

context.register(Java8OptionalMessageBodyWriter.class, 1);

Or somehow provide an ExceptionMapper for the EmptyOptionalException that gets thrown in DW 1.1's OptionalMessageBodyWriter. Upshot is that the mapper can define the behaviour we want in remoting2 and we no longer have to register the Java8OptionalMessageBodyWriter. Downside is that a dropwizard dependency will be added on this library (unless it's a separate project akin to jersey-servers), and also it only supports DW 1.1. Dropwizard 1.0.x cannot work this way without the priority hack. They introduced it in 1.1 dropwizard/dropwizard#1784 due to dropwizard/dropwizard#1727 and @qinfchen.

This came about because we had upgraded to DW 1.0 1.1 and I was trying to show that the Java 8 bundle was no longer necessary, but our tests were failing because of 404s instead of 204s.
Thoughts? I'm biased towards the latter option, and making a hard requirement on DW 1.1, which should be fine, as there shouldn't be any breaks that I'm aware of.
NB: Both of these can be done by the consumer, so even if none of the options above make it through, perhaps some sort of signalling?

@nziebart what did you end up doing here?

@felixdesouza, can you do something like this?

We registered an exception mapper for EmptyOptionalException (the recommended approach by Dropwizard), although we ended up not going with DW1 and instead switched to the internal product.
The gist was adding this line in the run method:
environment.jersey().register(new EmptyOptionalTo204ExceptionMapper());

I suppose I hadn't written what I ended up doing. I did the second option (or exactly the thing you sent @qinfchen) as it was most straightforward/seemed the most elegant. I was merely raising the issue to see what library support could come with remoting.

This seems stale or no longer needed? Closing for now.

Hey guys, I have just spent several hours trying to figure out why my personal project with DW 1.1 returns inconsistent HTTP status for empty optional, before recalling that we're still having this open issue.
This issue effectively makes this library doesn't work out of the box with DW 1.1, which is unpleasant, especially with the fact that Optional<> as return type in API endpoints is common.
I ended up registering the correct exception mapper EmptyOptionalException as what the others have already done, but this is something that should be called out in the readme. Better yet, we should fix this for DW 1.1, potentially by making a hard dependency to it as @felixdesouza explained above.
I am more than happy to submit a PR for mentioning the "workaround" in the readme, at least for the time being, if you guys don't mind? Thoughts?

Sure, happy to add this to the readme. Even better, want to make a PR to get remoting to be DW 1.x compatible?

Hmm, how about making a separate dropwizard1-servers library, which depends on jersey-servers and additionally has HttpRemotingDropwizard1Feature which registers all features of HttpRemotingJerseyFeature plus the correct mapper for empty Optional?
This way 0.x/non-DW users can still depend on jersey-servers.

yes, that works.

I've played around a bit with the implementation, but right now I'm stuck in making the test works. I'm using dropwizard-testing version 1.1.x, but it depends on Jackson and Guava versions that are higher than our versions.props, causing various issues at runtime.
Any idea on how to "fix" this? I'm not super familiar but can testCompile dep versions be different than the compile ones? Or is this even a good idea at all?

we generally generally bump jackson before remoting 4.0.0 (at the earliest). if you bump jackson for tests only (yes, this is possible in gradle), then you likely run into issues with some jars not being available in that version? not sure how to reconcile this.


Minor edits to Readme

Fixes Issue
None
Description of Change
Fixes minor errors in README.md text.
Have test cases been added to cover the new functionality?
no

Can one of the admins verify this patch?


Add health check to mesh

Currently, when the Mesh is running as Gateway, the only way to run a health check is to try and access GET /graphql but after talking with @dotansimha , it will be good to improve that and allow more flexible API .

I had in mind:

GET /healthcheck - status 200 for valid. status 500 for error. (also with a payload with status of the mesh handlers as JSON response).
GET /readiness - status 200 for ready. status 500 for non-ready mesh.

^ The above should be compatible with K8s deployments as well.

Available in<EMAIL_ADDRESS>!

You guys rock!


Support internalParameters

systemParameters was renamed to internalParameters in https://github.com/slsa-framework/slsa/pull/817
We need to update the verifier to use the new field name.

Related #546


Docker support for raspberry pi (arm)

Right now I get the dreaded standard_init_linux.go:228: exec user process caused: exec format error

Yep yep. PR welcome for it, or I'll get to it eventually.


Erroneous behaviour of np.transpose() after two transpositions

On some occasions I have noticed some erratic weird behaviour of numba, when I am performing more than one transposition on a multidimensional numpy array. A minimal code that reproduces this bug (numba 0.45.1, numpy 1.16.4) in my case is the following:
from numba import jit
import numpy as np

@jit(nopython=True, cache=True)
def debug_numba_transpose(M,N):
    r1 = np.reshape(np.arange(M*N*3),(M,3,N))
    r2 = np.reshape(np.arange(N*3),(N,3))
    Rdif = (r1 - r2.T).T
    Rdif = np.transpose(Rdif,(2,0,1))
    Rdif = Rdif + 1
    return Rdif

def debug_transpose(M,N):
    r1 = np.reshape(np.arange(M*N*3),(M,3,N))
    r2 = np.reshape(np.arange(N*3),(N,3))
    Rdif = (r1 - r2.T).T
    Rdif = np.transpose(Rdif,(2,0,1))
    Rdif = Rdif + 1
    return Rdif

Rdif = debug_numba_transpose(3,2)
Rdif0 = debug_transpose(3,2)
print(Rdif-Rdif0)

The expected result should be a zero matrix. On my system it is not the case (I get the following result)
[[[ 0 -3 -1]
  [ 1 3 0]
 [[ 0 -3 -1]
  [ 1 3 0]]
 [[ 0 -3 -1]
  [ 1 3 0]]]

Thanks for the report, I can reproduce. This is a smaller reproducer:
from numba import njit
import numpy as np

@njit
def debug_numba_transpose(M, N):
    r1 = np.reshape(np.arange(M * N * 3), (M, 3, N))
    r2 = np.reshape(np.arange(N * 3), (N, 3))
    Rdif = (r1 - r2.T).T
    Rdif = np.transpose(Rdif, (2, 0, 1))
    z = Rdif + 1  # this line is needed to trigger the problem
    return z

expected = debug_numba_transpose.py_func(3, 2)
got = debug_numba_transpose(3, 2)

print(expected)
print('-' * 80)
print(got)
np.testing.assert_allclose(expected, got)

I've run into what I believe is the same problem, while trying to get around https://github.com/numba/numba/issues/4580.
Here's what I've found:
import numpy as np
from numba import njit

@njit
def debug_numba_transpose(arr):
    return arr.transpose(0,1).copy().reshape(2, -1)

arr = np.arange(2*3).reshape(2,3).astype(float)

print(debug_numba_transpose.py_func(arr))
print('-' * 80)
print(debug_numba_transpose(arr))

Transpose with (0,1) should even be a no-op, and so would reshaping.
If I remove the .copy() call inside the function the result suddenly becomes correct. Is this the same bug? I can imagine the Rdif + 1 step could force a copy for the output array, essentially having the same mechanics.

This indeed seems fixed in master now thanks to @Vdimir. All three code blocks here now give expected results. Should this issue be closed?

This indeed seems fixed in master now thanks to @Vdimir. All three code blocks here now give expected results. Should this issue be closed?

Confirmed against master, thanks. Closing.


Install error on Ubuntu 16.04 with Cuda 8.

I am trying to install tensorflow 0.12.  I am running Ubuntu 16.04 with a GTX 1080.  I get the following error.
./configure
~/Desktop/tensorflow-r0.12 ~/Desktop/tensorflow-r0.12
Please specify the location of python. [Default is /usr/bin/python]: /usr/bin/python3
Do you wish to build TensorFlow with Google Cloud Platform support? [y/N] n
No Google Cloud Platform support will be enabled for TensorFlow
Do you wish to build TensorFlow with Hadoop File System support? [y/N] n
No Hadoop File System support will be enabled for TensorFlow
Found possible Python library paths:
/usr/local/lib/python3.5/dist-packages
/usr/lib/python3/dist-packages
Please input the desired Python library path to use.  Default is [/usr/local/lib/python3.5/dist-packages]
Using python library path: /usr/local/lib/python3.5/dist-packages
Do you wish to build TensorFlow with OpenCL support? [y/N] n
No OpenCL support will be enabled for TensorFlow
Do you wish to build TensorFlow with GPU support? [y/N] y
GPU support will be enabled for TensorFlow
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]:
Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: 8.0
Please specify the location where CUDA 8.0 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:
Please specify the Cudnn version you want to use. [Leave empty to use system default]: 8.0
Please specify the location where cuDNN 8.0 library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:
Invalid path to cuDNN  toolkit. Neither of the following two files can be found:
/usr/local/cuda-8.0/lib64/libcudnn.so.8.0
/usr/local/cuda-8.0/libcudnn.so.8.0
/usr/local/cuda/lib64/libcudnn.so.8.0
Please specify the Cudnn version you want to use. [Leave empty to use system default]: 5
Please specify the location where cuDNN 5 library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:
Please specify a list of comma-separated Cuda compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus.
Please note that each additional compute capability significantly increases your build time and binary size.
[Default is: "3.5,5.2"]: 6.1
.
INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.
.
ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
File "/home/chase/Desktop/tensorflow-r0.12/third_party/gpus/cuda_configure.bzl", line 517
_create_cuda_repository(repository_ctx)
File "/home/chase/Desktop/tensorflow-r0.12/third_party/gpus/cuda_configure.bzl", line 432, in _create_cuda_repository
_cuda_toolkit_path(repository_ctx, cuda_version)
File "/home/chase/Desktop/tensorflow-r0.12/third_party/gpus/cuda_configure.bzl", line 148, in _cuda_toolkit_path
str(repository_ctx.path(cuda_toolkit...)
File "/home/chase/Desktop/tensorflow-r0.12/third_party/gpus/cuda_configure.bzl", line 148, in str
repository_ctx.path(cuda_toolkit_path).realpath
Object of type 'path' has no field "realpath".

Please include all the information requested by the new issue template.  You did not specify the OS, or GPU model.

@chasep255, any reason why you elected to not use the pip package?
Also, what bazel version are you using?

I fixed the issue.  I was using an older bazel.
Sent via the Samsung Galaxy S® 6, an AT&T 4G LTE smartphone
-------- Original message --------From: gunan<EMAIL_ADDRESS>Date: 12/19/16  3:17 AM  (GMT-05:00) To: tensorflow/tensorflow<EMAIL_ADDRESS>Cc: chasep255<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [tensorflow/tensorflow] Install error on Ubuntu 16.04 with Cuda
  8. (#6057)
@chasep255, any reason why you elected to not use the pip package?
Also, what bazel version are you using?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/tensorflow/tensorflow","title":"tensorflow/tensorflow","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/tensorflow/tensorflow"}},"updates":{"snippets":[{"icon":"PERSON","message":"@gunan in #6057: @chasep255, any reason why you elected to not use the pip package?\r\n\r\nAlso, what bazel version are you using?"}],"action":{"name":"View Issue","url":"https://github.com/tensorflow/tensorflow/issues/6057#issuecomment-267905907"}}}


Pass state to getComponents

I rebased it onto current master so you can merge this pull request.

Is there an issue where we can discuss this feature?

I don't think so.... Should I create one or can we discuss here? I think passing state to getComponents is very useful feature and it was already described in the documentation some time ago (It was removed from the docs since then https://github.com/rackt/react-router/commit/59dfba9307b0f6470d75d38e5045b85420d6da51#diff-017f62aaf898282c03aa73024f96403a)
It was not implemented. This pull request is attempt at implementing it.

Not sure what are your thoughts about this feature but for me it helps me to select component for the route based on result of async operation that needs some parts of the state (like query parameters).
I'm using it to automatically wrap my component into component that provides the data for it fetched through ajax.

I said this on #1776,
we discussed this when we first designed the getComponents and getChildRoutes APIs.
We decided against passing anything to getComponents because 1) the component you provide to a route can read params and render something different, and 2) getChildRoutes can return different routes by reading params. So, sending params to getComponents seems redundant. Thoughts?
I think I'd like to pass the nextState in, its not a maintenance burden (its readily available in the code that sends it), its not really "new api" we have to support since we send the location all over the place, and its easy to imagine wanting to send different components depending on the state, its much more convenient here than having to configure two routes.
It's got my :+1:

I said this:

the component you provide to a route can read params and render something different

But the problem there is that while you can render different things based on the location, its way more cumbersome to dynamically load it in a component than in a hook we specifically designed for dynamically loading code :stuck_out_tongue_winking_eye:

Just realized this sends the next state in, lets jsut send in nextLocation and merge.

I took your commit and made some changes to pass location instead of state, thanks : ) 278d078cd89f643d4d59053e3c01a68297917103

Thank you!


Added ExportToCdf PowerShell Script

This script attempts to parse a JSON file in the swccg-card-json repo to the approximate format of a Holotable CDF file.

Nice work!  I really like how we are moving towards having one source of truth for all the card data.

Hello, Ron.
Thank you for this contribution.
Unfortunately, I can not accept the powershell script.
We are moving towards a position of having all repos automatically process themselves using GitHub actions, which means running on Linux. We also need to be mindful of maintainability and ensure that work is done in a common language.
Please rewrite this script using Python3, Ruby, or nodejs. More ideally Python3.
Additionally, as this script is creating CDF files, it belongs in the holotable repo. This repo is exclusively for the source json files.
Thank you for your understanding.


UNit tests fail for zfs when run with make test-unit

ping @mic92
so when I run using a binary from master.dockerproject.com, I have a host with a zfs volume /var/lib/docker on my host
I run make test-unit  in docker, and the unit-tests fail with
+ go test -test.timeout=30m github.com/docker/docker/daemon/graphdriver/zfs
--- FAIL: TestZfsCreateEmpty (0.03s)
	graphtest.go:159: Newly created image doesn't exist
FAIL
coverage: 61.7% of statements

Tests failed: ./daemon/graphdriver/zfs

but all the integration-cli tests pass, so that's good, but I figure this is just something small

Hi!
If you are reporting a new issue, PLEASE make sure that does not have any duplicates already open.
We would like to take this time to remind you of the information we need to debug the problem you are seeing. This is an automated response so if this ticket is not about a bug, do not fret.
If you fail to provide this information within 7 days, we will close this because we cannot debug your issue. We can reopen whenever the information is provided.
Thank you.
Please see:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues
Description of problem:

`docker version`:

`docker info`:

`uname -a`:

Environment details (AWS, VirtualBox, physical, etc.):

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual Results:

Expected Results:

Additional info:

#ENEEDMOREINFO

@jfrazelle see the PR


Port(UDP, UART) does not open on 1.0.0beta2

Hi,
I am testing with 1.0.0beta2 which I recently updated. There is a problem, and when I check it, the Agent can not open the Port(UDP, UART).
For UDP, I checked with wireshark that "destination unreachable" message(ICMP packet) is being returned.
For UART, I created and tested the main code, which does not work if the UART port does not open, but it did not work when running the Agent (version 1.0.0 beta works this way).
Also, if an attempt is made to open the same port with a serial program while the Agent is running, an error should occur. However, the serial program opens the port and communicates!
Do you know anything about this?

I tested with udp port number 2020, 2018.

Hi @OpusK,
I tested the UDP server in Agent with udp 2018 and it works for me with the current version or release/1.0.0beta2 branch. Could you confirm that it works for you?

Hi, @julianbermudez
master version is working well.
But, release/1.0.0beta2 branch version is not working.
I have confirmed that the currently open port is open with loopback ip.

udp        0      0 <IP_ADDRESS>:2018          <IP_ADDRESS>:*                           452/MicroRTPSAgent

I have been trying to connect to remote ip from now on.
In master version, I did not check which ip port is open because it worked well then.
Anyway, is it correct to open in loopback ip?
In this condition, it is correct that remote can not reach this port.

Hi @OpusK,
We have just launch a new release 1.0.0beta2. It should solve your issue. Please give me your feedback.

Hi, @julianbermudez
Now the Agent is opening the port at <IP_ADDRESS>!
Client and Agent are connected normally. Thank you.


Allow dprint.json in definition-parser

https://github.com/DefinitelyTyped/DefinitelyTyped/pull/66235 shows onboarding DefinitelyTyped to dprint, per https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/65993. But rule tests are blocked on unused file detection failure:
<EMAIL_ADDRESS>Node version:  v16.20.1
Using local DefinitelyTyped at .
Parsing definitions...
Found 8651 packages.
Parsing in 2 child process(es)...
Error: Unused file /home/runner/work/DefinitelyTyped/DefinitelyTyped/types/anime-quotes-api/dprint.json (used files: ["index.d.ts","anime-quotes-api-tests.ts","tsconfig.json","tslint.json"])
    at checkAllUsedRecur (/home/runner/work/DefinitelyTyped/DefinitelyTyped/node_modules/@definitelytyped/definitions-parser/src/lib/definition-parser.ts:7[9](https://github.com/DefinitelyTyped/DefinitelyTyped/actions/runs/5719461527/job/15497401718?pr=66235#step:6:10)8:[15](https://github.com/DefinitelyTyped/DefinitelyTyped/actions/runs/5719461527/job/15497401718?pr=66235#step:6:16))

For now we can work around this by just not having dprint.jsons in packages. The PR already uses dprint's root-level "excludes" to exclude the auto-generated types/vscode. But if we do end up wanting nested dprint.jsons, we'd have to make a change here to allow them.

I'll also note that we may want to instead use a filename like .dprint.jsonc or something to very clearly distinguish it as a dotfile and not actual JSON (though, really more the former).
I think we already allow dotfiles? Maybe not and they're in some config somewhere to allow them but I'm assuming not? (I have not checked)


Fix bogus check for EVP_PKEY mandatory digest in check_cert_usable()

In commit 6aca8d1a5 ("Honour mandatory digest on private key in
has_usable_cert()") I added two checks for the capabilities of the
EVP_PKEY being used. One of them was wrong, as it should only be
checking the signature of the X.509 cert (by its issuer) against the
sigalgs given in a TLS v1.3 signature_algorithms_cert extension.

Remove it.

This is the version of PR #9672 for 1.1.1.

Ping @t8m since you approved the master version of this.

Merged


Updates Microservice eBook content to .net 5

This PR updates the following pages :

toc.yml
Index
In module container-docker-introduction

Introduction to Containers and Docker
Docker terminology
Docker containers, images, and registries

In module net-core-net-framework-containers

Choosing Between .NET 5 and .NET Framework for Docker Containers
General guidance
When to choose .NET 5 for Docker containers
Decision table. .NET frameworks to use for Docker
What OS to target with .NET containers
Official .NET Docker images

In module architect-microservice-container-applications

Index
Architecting container and microservice-based applications
The API gateway pattern versus the direct client-to-microservice communication
Creating, evolving, and versioning microservice APIs and contracts
Microservices addressability and the service registry
Creating composite UI based on microservices
Resiliency and high availability in microservices
Orchestrate microservices and multi-container applications for high scalability and availability

In module docker-application-development-process

Index
docker-app-development-workflow

In module multi-container-microservice-net-applications

Designing a microservice-oriented application
Creating a simple data-driven CRUD microservice
Defining your multi-container application with docker-compose.yml
Use a database server running as a container
Implementing event-based communication between microservices (integration events)
Implementing an event bus with RabbitMQ for the development or test environment
Subscribing to events
Testing ASP.NET Core services and web apps
Implement background tasks in microservices with IHostedService and the BackgroundService class

In module microservice-ddd-cqrs-patterns

apply-simplified-microservice-cqrs-ddd-patterns
Applying CQRS and CQS approaches in a DDD microservice in eShopOnContainers
Implementing reads/queries in a CQRS microservice
Designing a DDD-oriented microservice

In module implement-resilient-applications

Implement HTTP call retries with exponential backoff with Polly
Health monitoring
Use IHttpClientFactory to implement resilient HTTP requests

In module secure-net-microservices-web-applications

Securing .NET Microservices and Web Applications
.NET Microservices. Architecture for Containerized .NET Applications

@IEvangelist Can you help us review this content?

@IEvangelist Can you help us review this content?


Linking error with folly

I see the following linking error with folly when I try to compile:
bazel-out/k8-opt/bin/external/facebook_folly/_objs/folly/SafeAssert.o:SafeAssert.cpp:function unsigned long folly::to_ascii_with<10ul, folly::to_ascii_alphabet<false>, 20ul>(char (&) [20ul], unsigned long): error: undefined reference to 'folly::detail::to_ascii_powers<10ul, unsigned long>::data'
bazel-out/k8-opt/bin/external/facebook_folly/_objs/folly/SafeAssert.o:SafeAssert.cpp:function unsigned long folly::to_ascii_with<10ul, folly::to_ascii_alphabet<false>, 20ul>(char (&) [20ul], unsigned long): error: undefined reference to 'folly::detail::to_ascii_table<10ul, folly::to_ascii_alphabet<false> >::data'
bazel-out/k8-opt/bin/external/facebook_folly/_objs/folly/SafeAssert.o:SafeAssert.cpp:function unsigned long folly::to_ascii_with<10ul, folly::to_ascii_alphabet<false>, 20ul>(char (&) [20ul], unsigned long): error: undefined reference to 'folly::detail::to_ascii_powers<10ul, unsigned long>::data'
bazel-out/k8-opt/bin/external/facebook_folly/_objs/folly/SafeAssert.o:SafeAssert.cpp:function unsigned long folly::to_ascii_with<10ul, folly::to_ascii_alphabet<false>, 20ul>(char (&) [20ul], unsigned long): error: undefined reference to 'folly::detail::to_ascii_powers<10ul, unsigned long>::data'
bazel-out/k8-opt/bin/external/facebook_folly/_objs/folly/SafeAssert.o:SafeAssert.cpp:function unsigned long folly::to_ascii_with<10ul, folly::to_ascii_alphabet<false>, 20ul>(char (&) [20ul], unsigned long): error: undefined reference to 'folly::detail::to_ascii_powers<10ul, unsigned long>::data'
bazel-out/k8-opt/bin/external/facebook_folly/_objs/folly/SafeAssert.o:SafeAssert.cpp:function unsigned long folly::to_ascii_with<10ul, folly::to_ascii_alphabet<false>, 20ul>(char (&) [20ul], unsigned long): error: undefined reference to 'folly::detail::to_ascii_table<10ul, folly::to_ascii_alphabet<false> >::data'

I've removed folly in my testing for now. But I thought I would open an issue to see if this is a problem others see due to changes with folly, or if it's an issue with my configuration.
My build command is:
BAZEL_CXXOPTS="-std=c++14:-stdlib=libc++:-isystem${LLVM_HDR}/:-isystem${CLANG_HDR}:-isystem${LLVM_HDR}/ext/" BAZEL_LINKOPTS="-v:-stdlib=libc++:-L${LLVM_LIB}:-lc++:-lm:-Wl,-rpath=${LLVM_LIB}" bazel build -c opt --dynamic_mode=off hashtable_benchmarks

I'm using llvm-9 on Ubuntu 20.04 system.  Everything is pretty standard so the issue would likely be easy to reproduce.

Should be fixed in https://github.com/google/hashtable-benchmarks/commit/85d7a1b00641bf6016e5dc771a4ac68f8de3dc7b


Is there any plan for new version release?

As the latest release is about 2 years ago (<IP_ADDRESS> (2014-10-28)), and there are many changes during this period, so I wonder if there is any plan for the new release? Thanks.

Hi, we are working on it.

@mjhsieh That's good news. You think it would be possible to add some features from iOS and Android versions like word prediction and toneless inputting?
For instance instead of typing ㄊㄞˊㄅㄟˇ for Taipei you could just type ㄊㄅ or ㄊㄞㄅㄟ
Thanks for the hard work! Any ETA?

對注音文還是有很大的抗拒...

@PeterDaveHello Peter57ad65f7a7903b2942b4c3fda757965160cf8b4c now working on the build.

@asoksevil please file an issue for that, but do note that we still need to prioritize the issues. We got too many issue, too much going on in our day jobs. @_@

@mjhsieh Actually I did open a new issue here back in Nov 11, 2015: https://github.com/openvanilla/McBopomofo/issues/95
I mean, I can wait there's no rush it's just that knowing how easy it's on cellphones I just wonder if there was a way to completely change computer typing because it is still quite archaic. You type way less key strokes.

@timdream made an awesome IME: https://timdream.org/jszhuyin/ it might be helpful to merge some of the work tim has done. I wish this was offline or for Mac.

@asoksevil It would be hard to convert McBopomofo (and with memory-consumption implications too) to run a JS-written engine. I don't know Mac programming well enough to know if there are other runner/IM framework that could do this.

Thanks!

Good to see you people continued working on it.


Add docs for few CMake variables

Fixes https://github.com/STEllAR-GROUP/hpx/issues/1258
Proposed Changes
Added documentation for listed CMake variables in the ticket.
Any background context you want to provide?
GSoD'19 applicant.

@tapaswenipathak yeah, going to close this now. If you're still interested in working in this direction I'd happily talk to you on IRC or Slack to decide on something more substantial to work on.


Ability to update a PR branch based on review comments

Currently this repo has code to send new pull requests based on existing issues. I would like to add the ability to update the pull request based on review comments.
The workflow will be

Given the identity of a pull request (based on the numerical id and repo)
Download the information from the original issue or issues associated with the PR (based on pattern matching)
Download all the review comments
For any unsolved comments, make appropriate modifications to the codebase
Check if the comments have been successfully resolved

We should update github_resolver/resolve_issues.py so that we have a flag --issue-type that can be set to pr, in which case PRs are considered instead of issues.

Fixed by #174.


Issue with matching a list of enums

Original issue: https://github.com/pact-foundation/pact-plugins/issues/31
In the matcher do we support list of enums?
  "request": {
    "states": [
      "matching(equalTo, 'ENUM_VAL_1')"
    ]
  },

I’m getting this error --- is it because enum is not added to should_be_packed_type?
Failed to match the request message - BodyMismatches({"$.states": [BodyMismatch { path: "$.states[0]", expected: Some(b"ENUM_VAL_1"), actual: Some(b"0102"), mismatch: "Expected and actual field have different types: 1:(states, Varint, Enum) = ENUM_VAL_1 and 1:(states, LengthDelimited, Unknown) = 0102" }]})

@Yu-Xie are you able to provide the proto file and test code?

Hey folks, I'm running into the same issue. Any way I can help to fix it? Don't have any rust experience tho :(
It is blocking our team from implementing contract tests for several of the services, so I'd be happy to contribute in any way I can.

A reproducible example project will help us diagnose the problem and then work out how to fix it

I'll try to produce something in the coming days

Here's the sample:
https://github.com/stan-is-hate/pact-proto-issue-demo
It requires pact-go and protobuf-plugin both installed, and then you can run a broken test to see the error and the working one to see that otherwise it all works as expected:
gRPC transport running on {59410 <IP_ADDRESS>}
--- FAIL: TestBrokenProto (0.96s)
    /Users/stanislav.vodetskyi/github/pact-proto-issue-demo/pact_consumer_test.go:73: rpc error: code = FailedPrecondition desc = Failed to match the request message - BodyMismatches({"$.type": [BodyMismatch { path: "$.type[0]", expected: Some(b"TYPE1"), actual: Some(b"0101"), mismatch: "Expected and actual field have different types: 1:(type, Varint, Enum) = TYPE1 and 1:(type, LengthDelimited, Unknown) = 0101" }]})
FAIL
FAIL	github.com/stan-is-hate/pact-proto-issue-demo	1.350s
FAIL

I've fixed the encoding of repeated enum fields.
@stan-is-hate the other issue is that this config does not make sense:
               "request": {
			"type": [
				"notEmpty('TYPE1')"
			]
		},

This is configuring the type field to have one item, and whose value must not be empty. But the way Protobuf treats enums, they can not be "empty", as missing values are always substituted with the default value. Also, the notEmpty matcher is meant to be applied to collections (maps and repeated fields in Protobuf).
If you want to state that the type field must not be empty (as in no enum values), that is valid and you can do that with:
sense:
               "request": {
			"type": "notEmpty('TYPE1')"
		},

Thanks @rholshausen ! I've copied the structure of the example from the actual protos we use in our services.
In our case type is a repeated field of type Type, which is enum. From the provider perspective, it currently enforces this field to have a single element only, but this will change in the future to support multiple values.
How do I encode this from the consumer side, so that it should have either one-and-only-one or at-least-one item?

I would just set the test up to accept at least one value. That will work with your current provider and work in the future. You can't do an or.

Yeah, that's what I mean, how do I express "at least one value"?

               "request": {
			"type": "notEmpty('TYPE1')"
		},

should do it.
I'm currently adding two options to specify the min and max length as well.

what if the list contains structured elements (ie other protos), how would you define "at least one" in that case? If at all possible?

I'm currently adding atLest(num) and atMost(num) rules to do that.

Repeated enums seem to work ok in my consumer test, thanks for a quick fix!


Allow disabling Ripples on md-select

Bug, feature request, or proposal:
Feature Request
What is the expected behavior?
<md-select disableRipple> or <md-option disableRipple> should prevent ripples
on select options
What is the current behavior?
Both <md-select disableRipple> or <md-option disableRipple> do not prevent ripples
on select options.
What are the steps to reproduce?
http://plnkr.co/edit/mr95fO8ngrq3MDXNH146
What is the use-case or motivation for changing an existing behavior?
Ripples are very heavy on mobile phones and I'd like to disable ripples only on certain
elements where lag is not preferred. I know that there is an option to disable ripples
globally. I'm not looking for that.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 4+, material beta-2+

Solved with https://github.com/angular/material2/pull/5967


Merge "Allow DH_set0_key with only private key." to 1.1.0

This is a cherry-pick of https://github.com/openssl/openssl/pull/4384 to OpenSSL_1_1_0-stable.

Checklist

[x] documentation is added or updated
[x] tests are added or updated

Merged, thanks!


Icon Request: Darkest Dungeon

APP_ID: 262060
WM_CLASS: "darkest.bin.x86_64"
Icon Pack: Numix Square

Hi, this is already present in the database: https://github.com/BlueManCZ/SIF/blob/6874d8b4c9d3e0162dc65fb99d6349cbc1c707f3/database.json#L34
It should start working as soon as somebody creates the Numix icon. You can create Icon Request here: https://github.com/numixproject/numix-core/issues


Support add new key column for LinkedSchemaChange

Fix 332
In PR 337, I didn't  think about this case:  user add a new key column to base table.
This PR supports add new key column for LinkedSchemaChange.
I'm not sure SegmentGroup include "olap/schema_change.h" is reasonable and the code smell is good.
@chaoyli  Please review this PR. Thanks you.

Update the commit. I wanted to move ColumnMapping to olap_common.h initially, but I found the ColumnMapping relayed wrapper_field. So I moved ColumnMapping to a  single file.


Clamp to positive value when computing latency for an output stream

Diagnosed by<EMAIL_ADDRESS>the same code is also found in Chromium.
@jhlin r? (I'm not sure how to flag you as reviewer on GitHub).

LGTM. r+.

@kinetiknz I uploaded the patch to the try server and got build breaks for 64-bit Android targets while all GitHub checks passed. Are build-android 32-bit targets only?

Fixed in more recent patches, if you can take another look @jhlin ? Commit 2d8568a made it reproduce the failure you saw on Treeherder, and then the two subsequent commits fixed it.


Integration to the Angular 4

Tried the Ppt generation into the angular 4 project by installing through node js like below
npm install pptxgenjs
var pptx = require("pptxgenjs");
but call to the ppt generation function not giving any response
generatePPT() {
var pptx = new pptx();
var slide = pptx.addNewSlide();
var opts = { x: 1.0, y: 1.0, font_size: 42, color: '00FF00' };
slide.addText('Hello World!', opts);
pptx.save();
}

Hi @darsana ,
If Angular is like Node, then you dont need the var pptx = new pptx(); line, maybe that's the issue?
First, try just this:
console.log( pptx.getVersion() )
Then see if removing the new line works:
generatePPT() {
  var slide = pptx.addNewSlide();
  var opts = { x: 1.0, y: 1.0, font_size: 42, color: '00FF00' };
  slide.addText('Hello World!', opts);
  pptx.save();
}

Thank you for the response. I tried as you mentioned
The  version of the pptx  is <IP_ADDRESS>71010 And my Node version is 3.10.10
Now I am getting the error like below
core.es5.js:1020 ERROR Error: Uncaught (in promise): TypeError: fs.writeFile is not a function
TypeError: fs.writeFile is not a function
at pptxgen.js:1624
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:392)
at Object.onInvoke (core.es5.js:3890)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:391)
at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.run (zone.js:142)
at zone.js:844
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:425)
at Object.onInvokeTask (core.es5.js:3881)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:424)
at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runTask (zone.js:192)
at pptxgen.js:1624
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:392)
at Object.onInvoke (core.es5.js:3890)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:391)
at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.run (zone.js:142)
at zone.js:844
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:425)
at Object.onInvokeTask (core.es5.js:3881)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:424)
at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runTask (zone.js:192)
at resolvePromise (zone.js:795)
at zone.js:847
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:425)
at Object.onInvokeTask (core.es5.js:3881)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:424)
at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runTask (zone.js:192)
at drainMicroTaskQueue (zone.js:602)
at

Ah, Angular is being detected as Node and is trying use the Node fs (filesystem) call.
Does anything discussed in Issue 72 help?

I did below 2 changes in library and able to use the library with Angular4

Changed the pptxgen.js from passing singelton object to construtor
//module.exports = new PptxGenJS();
module.exports = PptxGenJS;
Change the code near line 1624
else /if ( NODEJS ) {
if ( gObjPptx.saveCallback ) {
if ( strExportName.indexOf('http') == 0 ) {
zip.generateAsync({type:'nodebuffer'}).then(function(content){ gObjPptx.saveCallback(content); });
}
else {
zip.generateAsync({type:'nodebuffer'}).then(function(content){ fs.writeFile(strExportName, content, gObjPptx.saveCallback(strExportName)); });
}
}
else {
zip.generateAsync({type:'nodebuffer'}).then(function(content){ fs.writeFile(strExportName, content); });
}
}
else {/
zip.generateAsync({type:'blob'}).then(function(content){ writeFileToBrowser(strExportName, content); });
//}
})

After doing these 2 fixed I am able to integrate with my Angular 4.

Thanks for the follow-up @mayurjhanwar !
Issue #83 will change the export to a factory/constructor (target 2.0).

Hi Brent,
I Install PptxGenJS using npm. i cannot able to implement into my project using angular 5. Please proceed the steps ?

@vasanthBR  same here, do you find any solution?

Update: Oct-2018:
Fixes for this issue will be delivered in the upcoming release: Version 2.4.0
Latest Issues:

Issue #407
Issue #415

Use PPtxGenJs in angular2+ like this:
import * as pptGen from 'pptxgenjs';
const pptx = new pptGen();
const slide = pptx.addNewSlide();
slide.addImage({ data: 'image/png;base64, ' + b64Data + '', x: 1, y: 2, w: 3, h: 3 })
slide.addImage({ path: '/assets/mean.jpg', x: 1, y: 2, w: 3, h: 3 })
slide.addText('Image Path!', { x: 1.5, y: 1.5, font_size: 18, color: '363636' });
pptx.save('Sample Presentation');

I have this working in several Angular applications.  Here are the steps to use it in an Angular 6+ app:
The primary assumption is that you have an existing Angular project generated with Angular-CLI (the only sane way to work with Angular!), and you want to be able to generate and download slide decks for your partner.

Go to project root in terminal/powershell/whatever:npm install pptxgenjs

Make sure NODE types are recognized by adding the following to [root]/src/tsconfig.app.json

  "types": [
    "node"
  ]

Add the following to [root]/tsconfig.json to make the bundled jszip component work properly in the browser:

  "paths": {
    "jszip": [
      "node_modules/jszip/dist/jszip.min.js"
    ]
  }

( otherwise you'll get this error: Module not found: Error: Can't resolve 'stream' in '/path/to/project/node_modules/jszip/lib')

Try the sample code in any component where you want the PPTX generation functionalty:

 dlPPT() {
  const PptxGenJS = require('pptxgenjs');

  const pptx = new PptxGenJS();
  const slide = pptx.addNewSlide();
  slide.addText('Hello World!', { x: 1.5, y: 1.5, fontSize: 18, color: '363636' });
  pptx.save('Sample Presentation');
}


[Feature Request] Type Guard for ValidationError

Provide a helper in the library that acts as a type guard for the Exception thrown from .check method.
Recent versions of typescript type all exceptions as unknown, and correct handling requires having a typeguard:

// Would be nice to have this built-in
function isValidationError(ex: unknown): ex is ValidationError {
  return ex instanceof ValidationError
}

try {
  const data = Contract.check(payload);
catch (ex) {
  if(isValidationError(ex)) {
    logger.error(ex.details);
  }
}

I think this is already fully covered by InstanceOf(ValidationError).guard, with more idiomatic fashion than using a dedicated function.
try {
  const data = Contract.check(payload);
catch (ex) {
  if(InstanceOf(ValidationError).guard(ex)) {
    logger.error(ex.details);
  }
}

Doesn't this fulfill your needs?

Yes, this works quite well...


Is there a way to exit?

Awesome tool. But, for the life of me, I can't figure out how to exit, other than killing the tab.

Kinda missed this notifications. Soz. It's Ctrl+Q. All gui.cs based apps are like that.


Questions about current EOG implementation for method bodies / returns

I am currently trying to model the defer statement in Go, which executes code before the function returns.
In order to do that I was looking at the current way the EOG is modelled in a function with multiple return paths, such as this:
func main() {
	do()
	if len(os.Args) == 2 {
		return
	}

	fmt.Println("Still here, yay!")
}

The return at the end of the body is ommited. The graph looks like this:

It seems that the explicit return (green node) in the if is the last EOG node in this branching path and the call expression in the last line (because no explicit return in this path) is connected to the function body (blue node). I would somehow assume that both paths should somehow converge again in the end?
If I add an explicit return, it seems that both paths end in a return and no EOG edge is created to the body; also no "convergence"

I'm surprised that there's no implicit return statement in the first case. Did you filter it out? I quickly checked if this might get lost because the ControlFlowSensitiveDFGPass removes implicit return statements if they are not necessary but it doesn't affect the result (in particular not in this case but even if the print and return were in an else branch).
Of course, we could model such a merging point by additional EOG edges to the body or to the function declaration but I'm not sure if this would affect other analyses/passes/iteration methods which might currently rely on the return being the last node in the EOG.
Finally, if we would model an interprocedural CFG/EOG, I assume that the merging point would probably be the node after the call to this function.

I'm surprised that there's no implicit return statement in the first case. Did you filter it out? I quickly checked if this might get lost because the ControlFlowSensitiveDFGPass removes implicit return statements if they are not necessary but it doesn't affect the result (in particular not in this case but even if the print and return were in an else branch).

It seems that implicit return statements are added by either the parser or the language frontend. I know that the JavaParser adds it directly on the AST level. For Go I now added it in the frontend. Each frontend behaves differently here. Should we harmonise this somehow?
What is the point of removing the statement?

Of course, we could model such a merging point by additional EOG edges to the body or to the function declaration but I'm not sure if this would affect other analyses/passes/iteration methods which might currently rely on the return being the last node in the EOG.
Finally, if we would model an interprocedural CFG/EOG, I assume that the merging point would probably be the node after the call to this function.

What is the point of removing the statement?

I should be more precise: If there's code like if(...) {... return; } else {... return; }, there would be an additional implicit return statement inserted by the frontend after the else branch which is unnecessary and unreachable. The pass removes implicit return statements again if all branches reaching it already contain a return statement.

What is the point of removing the statement?

I should be more precise: If there's code like if(...) {... return; } else {... return; }, there would be an additional implicit return statement inserted by the frontend after the else branch which is unnecessary and unreachable. The pass removes implicit return statements again if all branches reaching it already contain a return statement.

Ah ok, got it.


Need recipe to create a mask for inpainting

I'm working on the code to support inpainting, and I'm trying to create a mask for testing. A mask is a simply a PNG or JPG file in which the area to be painted over is black, and the rest is white (or really any greyscale value < 0.5). The alpha (transparency) channel is irrelevant, as far as I can tell.
I'm on a Linux system and I've got Gimp and Inkscape. I'd like to use a selection tool to outline the area to convert to black, and then erase everything else to white. There are a ton of options, and I'd rather be coding than learning the intricacies of layers, masking, etc. Could someone provide a walkthrough?

I can create these masks for you. What do you need done?
Also I'd recommend that in masks -- black be the area block and white be the area showing. That's how masks work across most things.

Why not use masks along the "\data\inpainting_examples" path for tests?

https://www.photopea.com/

Great. I'll give Photopea a try. I appreciate the offer to make the masks for me, but I want to be able to write up a workflow for the documentation and to do that I need to understand the steps myself. If people have other suggestions, please let me know.

I do not use GIMP or Inkscape but I'm proficient in PS and other stuff. I can create these masks for you. What do you need done?
Also I'd recommend that in masks -- black be the area block and white be the area to process. That's how masks work across most things.

H'mmm. Some other stable diffusion inpainting examples are using the reverse logic, with black areas being those that are inpainted. For example:

https://replicate.com/andreasjansson/stable-diffusion-wip
https://blog.paperspace.com/generating-images-with-stable-diffusion/
https://openaccess.thecvf.com/content/CVPR2022W/NTIRE/papers/Cai_Image_Multi-Inpainting_via_Progressive_Generative_Adversarial_Networks_CVPRW_2022_paper.pdf

The last is a research paper that describes the black pixels as "active" and the white ones as "invalid". I think the ML community has decided that black is where the inpainting occurs. I'm happy to flip the logic if this will drive artists crazy, or maybe provide a switch that toggles back and forth (just to make everybody confused).

The last is a research paper that describes the black pixels as "active" and the white ones as "invalid". I think the ML community has decided that black is where the inpainting occurs. I'm happy to flip the logic if this will drive artists crazy, or maybe provide a switch that toggles back and forth (just to make everybody confused).

Every artistic application does black hide and white show. And most of the people using this script will be using these applications to generate masks. Not to mention, the tons of alphas already in existence are all black hide and white show.
I guess having a switch ain't too bad but I feel the default should be black hide and white show.

G'MIC (for GIMP) have "Inpain [Patch-Based]" filter. Default color for inpaint is RED (ff0000). :)
Well, if no jokes, in "\data\inpainting_examples" black - don't touch , white - change.

Im on Linux too and I would recommend Krita. It's fairly similar to PS and solid enough to be used in some VFX tasks.

Open your image in Krita.
duplicate your layer: rightclick -> duplicate layer or mask (shortcut ctrl + j)
rightclick -> add -> transparency mask
paint away
rightclick -> convert -> convert to paint layer to get a black and white image
select everything else -> rightclick -> remove layer
save

I'll do white==change, black==leave alone. I hope it is as easy as it looks!

In classic film making and photography masks were painted with a light blocking paint on clear film.
Black did block the light leaving the original untouched, white let the light through exposing the new image. That's the way it used to be in the analog world.

Yes. Right "now scripts/inpaint.py" not working
python scripts/inpaint.py --indir data/inpainting_examples/ --outdir outputs/inpainting_results
Found 8 inputs.
Traceback (most recent call last):
  File "scripts/inpaint.py", line 60, in <module>
    model = instantiate_from_config(config.model)
  File "d:\_work\____deepsoft\_conda\stable-diffusion\src\taming-transformers\main.py", line 119, in instantiate_from_config
    return get_obj_from_str(config["target"])(**config.get("params", dict()))
TypeError: __init__() missing 1 required positional argument: 'personalization_config'

I do not use GIMP or Inkscape but I'm proficient in PS and other stuff. I can create these masks for you. What do you need done?
Also I'd recommend that in masks -- black be the area block and white be the area to process. That's how masks work across most things.

H'mmm. Some other stable diffusion inpainting examples are using the reverse logic, with black areas being those that are inpainted. For example:

https://replicate.com/andreasjansson/stable-diffusion-wip
https://blog.paperspace.com/generating-images-with-stable-diffusion/
https://openaccess.thecvf.com/content/CVPR2022W/NTIRE/papers/Cai_Image_Multi-Inpainting_via_Progressive_Generative_Adversarial_Networks_CVPRW_2022_paper.pdf

The last is a research paper that describes the black pixels as "active" and the white ones as "invalid". I think the ML community has decided that black is where the inpainting occurs. I'm happy to flip the logic if this will drive artists crazy, or maybe provide a switch that toggles back and forth (just to make everybody confused).

https://www.photopea.com/ use the eraser tool, or selection tool and delete the selection, export as PNG
from PIL import Image, ImageOps

mask = None

def has_transparency(img):
    if img.info.get("transparency", None) is not None:
        return True
    if img.mode == "P":
        transparent = img.info.get("transparency", -1)
        for _, index in img.getcolors():
            if index == transparent:
                return True
    elif img.mode == "RGBA":
        extrema = img.getextrema()
        if extrema[3][0] < 255:
            return True

    return False

# Determining if the image has an alpha channel tells us if we want to extract a mask
image = Image.open("your/path/here")
if has_transparency(image):
    # Obtain the mask from the transparency channel
    mask = Image.new(mode="L", size=image.size, color=255)

    mask.putdata(image.getdata(band=3))
    mask = ImageOps.invert(mask)

    mask.save("outputs/test_mask.png")

Thank you so much for both the pointer to Photopea and the python code to create the mask. Not having worked with PIL before, it would have taken me ages to figure this out. Works like a charm!

I've just posted an update on the inpainting support in Discussions here: https://github.com/lstein/stable-diffusion/discussions/296


Adjust system to support huge amounts of dogecoins

I have added this as PR so we can discuss it :D

not sure if we have to use biginteger when the library already uses bigi library

The bigi library is used - in the "remove functions" branch where I removed all ECDSA signature functionality - only in derivation of HD Node, I think.
If you think so, we can use biginteger in both, or bigi in both, or we can import both libraries... I just wanted to point that out

the tests are now breaking (I have fixed the current tests in the "remove functions" branch


DOC: No module named 'langchain.tools.render'

Issue with current documentation:
In the tutorial of using agent, link here: https://python.langchain.com/docs/modules/agents/ . The given codes are from langchain.tools.render import format_tool_to_openai_function, which leads to the error ModuleNotFoundError: No module named 'langchain.tools.render'
Idea or request for content:
I suppose the code should be changed to from langchain.tools import format_tool_to_openai_function

I did some testing with the aforementioned issues and got similar results.
url: https://python.langchain.com/docs/modules/agents/ only has that issue where as url: https://python.langchain.com/docs/modules/agents/tools/tools_as_openai_functions the import is done correctly.

okay let me see and get back to you.

please update langchain version. I tried it out and it seems to work on the latest version of langchain.

@keenborder786 Thank you for your reply! I was using version 0.0.302. May I ask which updated version you were referring to?

I updated langchain to v0.0.310 and the error still exists

I met the same problem and I was using Version: 0.0.148, but when I updated to Version: 0.0.312 the issue disappeared

from langchain_experimental.tools.python.tool import PythonREPLTool
from langchain.python import PythonREPL
from langchain.agents import AgentType
from langchain.agents import load_tools, initialize_agen` ``


fixes bug in job result decoding

Fixes #130

Note that this will fail in the case where the result is actually a string:
    res = job_qvm.run(Program(RawInstr("H 0 1")).measure(0, 0), [0], trials=1)
    wait_for_job(res, 0.1)
    print(res.get()['result'])
    print(res.decode())

QVM returned an error: Attempting to apply the 1-qubit gate H to 2 qubits in the instruction: H 0 1
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I would recommend removing the isinstance check. I fixed a couple bugs in the server so that now JSON should always be returned for the result.

To clarify, the result from the server in this case is:
{'jobId': 'DEWOAOHVYP', 'program': {'addresses': [0], 'quil-instructions': 'H 0 1\nMEASURE 0 [0]\n', 'trials': 1, 'type': 'multishot'}, 'result': 'QVM returned an error: Attempting to apply the 1-qubit gate H to 2 qubits in the instruction:\n\n    H 0 1', 'running_time': '0.03 s', 'time_in_queue': '0.06 s'}
result is a string
In a normal result it's an array:
{'jobId': 'XLOPZVYWQX', 'program': {'addresses': [0], 'quil-instructions': 'H 0\nMEASURE 0 [0]\n', 'trials': 1, 'type': 'multishot'}, 'result': [[1]], 'running_time': '0.06 s', 'time_in_queue': '0.04 s'}

@stevenheidel good point.  Before it looked like the expectation and run_and_measure endpoints still were strings, but having them all as json is much better.


Output all CIDRs used in the pools

Hi I noticed we can output these values used here.
https://github.com/aws-ia/terraform-aws-ipam/blob/main/outputs.tf
However, terraform has marked all these values used here as sensitive
output "pool_level_0" {
  description = "Map of all pools at level 0."
  value       = module.level_zero.pool
}

output "pools_level_1" {
  description = "Map of all pools at level 1."
  value       = try({ for k, v in module.level_one : k => v.pool }, null)
}

output "pools_level_2" {
  description = "Map of all pools at level 2."
  value       = try({ for k, v in module.level_two : k => v.pool }, null)
}

output "pools_level_3" {
  description = "Map of all pools at level 3."
  value       = try({ for k, v in module.level_three : k => v.pool }, null)
}

I want call all the CIDRs use  here
So that I can export them in the output module below
https://github.com/aws-ia/terraform-aws-ipam/blob/main/examples/single_scope_ipv4/outputs.tf
How do I accomplish this?

Hi - @ukohae thanks for opening this issue and sorry for the delay responding. Can you explain a little on why you want to output all the CIDRs? It would be helpful to understand the downstream use case before offering a recommendation

Hi! Closing this request as I don't see new stuff for the last 3 weeks. Feel free to open a new issue if the question was not answered.


Add fallback links

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Feature

Please check if the PR fulfills these requirements

[ ] E2E Tests for the changes have been added  via Cypress
[ ] Meaningful rspec tests have been added
[ ] Docs have been added / updated

What is the current behavior? (You can also link to an open issue here)
No copy links displayed

What is the new behavior (if this is a feature change)?

In some mails there are now copyable links

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

no

Other information:

To resolve this, maybe we could just add a sentence in the footnote in the generic mail layout, like "If you have trouble with the links in the above mail, try to copy and paste them directly to your browser.".

We decided to pursue a more defensive strategy as in #183


Links not working when third-party app opens with Safari View Controller

When I open a branch generated link in a third-party app, if that app opens the link using Safari View Controller, the banner that shows up in Safari to open the app if it exists doesn't show up anymore and the link won't auto-open the app (this is all when the app is installed on the phone). However, using another app where opening the link doesn't open SVC, it works as advertised - the app is opened directly when it exists. How can this be worked around? Thanks!

@illonks-- We observed that if you click a Universal Link in an app where it shows a UIWebView or SFSafarViewController, it doesn’t work. It is a limitation by Apple. If the app calls application:OpenURL it will work correctly.
I am not sure though why the smart banner doesn’t show up. Could you please send us steps to reproduce: which app you are using and a link to test with? If you’d rather not share the link or steps to reproduce here, feel free to shoot us a note via<EMAIL_ADDRESS>Thanks!

@illonks Thanks for sending the info.
I reproduced the bug on my end. Unfortunately both problems lie in Apple's hands. We don't control Universal Links routing or displaying the banner. Hope I could help here :(
Hopefully they fix this in the upcoming releases.


Add ability to send non-JSON body, and receive a parsed JSON response

I want a way to send a non-JSON body, but receive a JSON body response.
Is there a better way to do this?
What I'm doing this now is intercepting the data before calling a callback explicitly
var request = require("request");
// callback is some function passed to my code
var callback = function(err, resp, body) {};

var options = {
    json: false, // added for verbosity
    body: "some string"
};
request.post(options, function(err, resp, body) {
    if (typeof body === "string") {
        body = JSON.parse(body);
        resp.body = body;
    }
    callback(err, resp, body);
});

I'd like to be able to do something like this (note the new jsonResponse property)
var request = require("request");
// callback is some function passed to my code
var callback = function(err, resp, body) {};

var options = {
    json: false, // added for verbosity
    jsonResponse: true,
    body: "some string"
};
request.post(options, callback);

You can pass anything you want in the body, and expect JSON response by setting json to true:
request.post('https://...', {body:'whatever', json:true}, function (err, res, body) {})

@simov This is true. I don't want to pass the Content-Type header though

Just set the content-type header to something else. Also using the form or the formData option sets the correct content-type header for you.

Ah this worked! I had to set the content-type to application/x-www-form-urlencoded
Thanks @simov!


Adding generated JavaCC parser code.

I'm not sure why this merged.  I just merged another update to fix the tests and it auto-merged this one as well.

See https://github.com/GoogleCloudPlatform/pgadapter/pull/19


JavaScript is NOT a functional language

In languages section, there are 3 different categories: command line interface (that is strange naming too), imperative and functional. The reason I am writing the issue is that, JavaScript is clearly imperative, not functional language. Like Java or Go. There are no Pattern Matching, Persistent Data Structures (at least yet, there's a ECMAScript proposal) and Algebraic Data Types.
Also in JavaScript if structure is a statement, not expression. That simply must be a imperative programming language. In functional languages if's are expressions.
Only functional features, that Javascript got at the present, are patterns like map or impure lambda expression alternatives called "arrow functions". Java got them too. They have really weak functional paradigmads.
Just move JavaScript to "imperative" section and don't change terms.

Minor changes will prob not be considered