requests and pylab SSL conflict

Installing pylab after requests makes requests fail SSL certificate verification. Wasn't sure if I should report this here or in pylab repo. This was tested with Docker.
$ ls
Dockerfile  test.py
$ cat Dockerfile
FROM python:2.7
ADD test.py .
RUN apt-get install openssl libssl-dev
RUN pip install requests
CMD ["python","test.py"]

$ cat test.py
import requests
print requests.get("https://google.com")

$ sudo su
# docker build --tag bugtest1 . && docker run --rm bugtest1
Sending build context to Docker daemon 3.072 kB
Step 1 : FROM python:2.7
 ---> 8f7cafb9cc63
Step 2 : ADD test.py .
 ---> Using cache
 ---> c5e7e76e36c6
Step 3 : RUN apt-get install openssl libssl-dev
 ---> Using cache
 ---> cecc8e87d049
Step 4 : RUN pip install requests
 ---> Using cache
 ---> 6f309b214a07
Step 5 : CMD python test.py
 ---> Using cache
 ---> 161f61e62da3
Successfully built 161f61e62da3
<Response [200]>

# vim Dockerfile # add pylab line
# cat Dockerfile
FROM python:2.7
ADD test.py .
RUN apt-get install openssl libssl-dev
RUN pip install requests
RUN pip install pylab
CMD ["python","test.py"]

# docker build --tag bugtest1 . && docker run --rm bugtest1
Sending build context to Docker daemon 3.072 kB
Step 1 : FROM python:2.7
 ---> 8f7cafb9cc63
Step 2 : ADD test.py .
 ---> Using cache
 ---> c5e7e76e36c6
Step 3 : RUN apt-get install openssl libssl-dev
 ---> Using cache
 ---> cecc8e87d049
Step 4 : RUN pip install requests
 ---> Using cache
 ---> 6f309b214a07
Step 5 : RUN pip install pylab
 ---> Running in dc7af4eba40b
Collecting pylab
  Downloading pylab-0.1.3-py2.py3-none-any.whl
Collecting networkx (from pylab)
  Downloading networkx-1.11-py2.py3-none-any.whl (1.3MB)
Collecting pytz (from pylab)
  Downloading pytz-2016.4-py2.py3-none-any.whl (480kB)
Collecting tornado (from pylab)
  Downloading tornado-4.3.tar.gz (450kB)
Collecting pandas (from pylab)
  Downloading pandas-0.18.1.tar.gz (7.3MB)
Collecting seaborn (from pylab)
  Downloading seaborn-0.7.0.tar.gz (154kB)
Collecting numpy (from pylab)
  Downloading numpy-1.11.0-cp27-cp27mu-manylinux1_x86_64.whl (15.3MB)
Collecting matplotlib (from pylab)
  Downloading matplotlib-1.5.1.tar.gz (54.0MB)
Collecting jsonschema (from pylab)
  Downloading jsonschema-2.5.1-py2.py3-none-any.whl
Collecting scipy (from pylab)
  Downloading scipy-0.17.1-cp27-cp27mu-manylinux1_x86_64.whl (39.5MB)
Collecting jinja2 (from pylab)
  Downloading Jinja2-2.8-py2.py3-none-any.whl (263kB)
Collecting sympy (from pylab)
  Downloading sympy-1.0.tar.gz (4.3MB)
Collecting ipython (from pylab)
  Downloading ipython-4.2.0-py2-none-any.whl (736kB)
Collecting scikit-image (from pylab)
  Downloading scikit_image-0.12.3-cp27-cp27mu-manylinux1_x86_64.whl (28.0MB)
Collecting scikit-learn (from pylab)
  Downloading scikit_learn-0.17.1-cp27-cp27mu-manylinux1_x86_64.whl (17.6MB)
Collecting pyzmq (from pylab)
  Downloading pyzmq-15.2.0.zip (1.5MB)
Collecting decorator>=3.4.0 (from networkx->pylab)
  Downloading decorator-4.0.9-py2.py3-none-any.whl
Collecting backports.ssl-match-hostname (from tornado->pylab)
  Downloading backports.ssl_match_hostname-<IP_ADDRESS>.tar.gz
Collecting singledispatch (from tornado->pylab)
  Downloading singledispatch-<IP_ADDRESS>-py2.py3-none-any.whl
Collecting certifi (from tornado->pylab)
  Downloading certifi-2016.2.28-py2.py3-none-any.whl (366kB)
Collecting backports-abc>=0.4 (from tornado->pylab)
  Downloading backports_abc-0.4-py2.py3-none-any.whl
Collecting python-dateutil (from pandas->pylab)
  Downloading python_dateutil-2.5.3-py2.py3-none-any.whl (201kB)
Collecting cycler (from matplotlib->pylab)
  Downloading cycler-0.10.0-py2.py3-none-any.whl
Collecting pyparsing!=2.0.0,!=2.0.4,>=1.5.6 (from matplotlib->pylab)
  Downloading pyparsing-2.1.4-py2.py3-none-any.whl (40kB)
Collecting functools32 (from jsonschema->pylab)
  Downloading functools32-3.2.3-2.zip
Collecting MarkupSafe (from jinja2->pylab)
  Downloading MarkupSafe-0.23.tar.gz
Collecting mpmath>=0.19 (from sympy->pylab)
  Downloading mpmath-0.19.tar.gz (498kB)
Collecting traitlets (from ipython->pylab)
  Downloading traitlets-4.2.1-py2.py3-none-any.whl (67kB)
Collecting pickleshare (from ipython->pylab)
  Downloading pickleshare-0.7.2-py2.py3-none-any.whl
Collecting simplegeneric>0.8 (from ipython->pylab)
  Downloading simplegeneric-0.8.1.zip
Collecting backports.shutil-get-terminal-size (from ipython->pylab)
  Downloading backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): setuptools>=18.5 in /usr/local/lib/python2.7/site-packages (from ipython->pylab)
Collecting pexpect (from ipython->pylab)
  Downloading pexpect-4.0.1.tar.gz (143kB)
Collecting dask[array]>=0.5.0 (from scikit-image->pylab)
  Downloading dask-0.9.0-py2.py3-none-any.whl (203kB)
Collecting six>=1.7.3 (from scikit-image->pylab)
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting pillow>=2.1.0 (from scikit-image->pylab)
  Downloading Pillow-3.2.0.zip (10.5MB)
Collecting ipython-genutils (from traitlets->ipython->pylab)
  Downloading ipython_genutils-0.1.0-py2.py3-none-any.whl
Collecting pathlib2 (from pickleshare->ipython->pylab)
  Downloading pathlib2-2.1.0-py2.py3-none-any.whl
Collecting ptyprocess>=0.5 (from pexpect->ipython->pylab)
  Downloading ptyprocess-0.5.1-py2.py3-none-any.whl
Collecting toolz>=0.7.2 (from dask[array]>=0.5.0->scikit-image->pylab)
  Downloading toolz-0.7.4.tar.gz
Building wheels for collected packages: tornado, pandas, seaborn, matplotlib, sympy, pyzmq, backports.ssl-match-hostname, functools32, MarkupSafe, mpmath, simplegeneric, pexpect, pillow, toolz
  Running setup.py bdist_wheel for tornado: started
  Running setup.py bdist_wheel for tornado: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/df/20/c7/38911d3d7ac9ae3c6c1b73f01bc61d8fdb46c7fad1a720d394
  Running setup.py bdist_wheel for pandas: started
  Running setup.py bdist_wheel for pandas: still running...
  Running setup.py bdist_wheel for pandas: still running...
  Running setup.py bdist_wheel for pandas: still running...
  Running setup.py bdist_wheel for pandas: still running...
  Running setup.py bdist_wheel for pandas: still running...
  Running setup.py bdist_wheel for pandas: still running...
  Running setup.py bdist_wheel for pandas: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/9a/8c/95/ceb8f988caf19dd90c4c587eea0ee1665c3bb6af73b3ca8264
  Running setup.py bdist_wheel for seaborn: started
  Running setup.py bdist_wheel for seaborn: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/e0/94/01/731d82dc437e1c8b65130956028f3fe693943c3e499a676dc9
  Running setup.py bdist_wheel for matplotlib: started
  Running setup.py bdist_wheel for matplotlib: still running...
  Running setup.py bdist_wheel for matplotlib: still running...
  Running setup.py bdist_wheel for matplotlib: still running...
  Running setup.py bdist_wheel for matplotlib: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/d8/38/3c/a388e11fd09f9b23f5e4cd74594197394d9fd65f91f64c4aa7
  Running setup.py bdist_wheel for sympy: started
  Running setup.py bdist_wheel for sympy: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/05/93/22/2d0f59d842347b1f38df0d3f7a3870586df60568d2a49d94c5
  Running setup.py bdist_wheel for pyzmq: started
  Running setup.py bdist_wheel for pyzmq: still running...
  Running setup.py bdist_wheel for pyzmq: still running...
  Running setup.py bdist_wheel for pyzmq: still running...
  Running setup.py bdist_wheel for pyzmq: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/a1/2f/b7/8d30910d93816f084b3d29ec38e38ae7cc9f8431a0b44a5864
  Running setup.py bdist_wheel for backports.ssl-match-hostname: started
  Running setup.py bdist_wheel for backports.ssl-match-hostname: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/5d/72/36/b2a31507b613967b728edc33378a5ff2ada0f62855b93c5ae1
  Running setup.py bdist_wheel for functools32: started
  Running setup.py bdist_wheel for functools32: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/3c/d0/09/cd78d0ff4d6cfecfbd730782a7815a4571cd2cd4d2ed6e69d9
  Running setup.py bdist_wheel for MarkupSafe: started
  Running setup.py bdist_wheel for MarkupSafe: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/a3/fa/dc/0198eed9ad95489b8a4f45d14dd5d2aee3f8984e46862c5748
  Running setup.py bdist_wheel for mpmath: started
  Running setup.py bdist_wheel for mpmath: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/02/2b/99/cd867d5da48d951118a8020e86c0c12a65022702426582d4b8
  Running setup.py bdist_wheel for simplegeneric: started
  Running setup.py bdist_wheel for simplegeneric: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/7b/31/08/c85e74c84188cbec6a6827beec4d640f2bd78ae003dc1ec09d
  Running setup.py bdist_wheel for pexpect: started
  Running setup.py bdist_wheel for pexpect: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/f2/65/89/09578bcd0efeabc7e2b0079cd62d3955c1477f2e55aa5031a4
  Running setup.py bdist_wheel for pillow: started
  Running setup.py bdist_wheel for pillow: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/88/2d/ce/3ff4ae4e2b8600d1bde1cbde5dfcc6d8770222c38348fe9139
  Running setup.py bdist_wheel for toolz: started
  Running setup.py bdist_wheel for toolz: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/3e/e9/72/b9e24c6b4c0347670b9a20afeba6b2534655f5dc714b30cb4e
Successfully built tornado pandas seaborn matplotlib sympy pyzmq backports.ssl-match-hostname functools32 MarkupSafe mpmath simplegeneric pexpect pillow toolz
Installing collected packages: decorator, networkx, pytz, backports.ssl-match-hostname, six, singledispatch, certifi, backports-abc, tornado, python-dateutil, numpy, pandas, scipy, cycler, pyparsing, matplotlib, seaborn, functools32, jsonschema, MarkupSafe, jinja2, mpmath, sympy, ipython-genutils, traitlets, pathlib2, pickleshare, simplegeneric, backports.shutil-get-terminal-size, ptyprocess, pexpect, ipython, toolz, dask, pillow, scikit-image, scikit-learn, pyzmq, pylab
Successfully installed MarkupSafe-0.23 backports-abc-0.4 backports.shutil-get-terminal-size-1.0.0 backports.ssl-match-hostname-<IP_ADDRESS> certifi-2016.2.28 cycler-0.10.0 dask-0.9.0 decorator-4.0.9 functools32-3.2.3.post2 ipython-4.2.0 ipython-genutils-0.1.0 jinja2-2.8 jsonschema-2.5.1 matplotlib-1.5.1 mpmath-0.19 networkx-1.11 numpy-1.11.0 pandas-0.18.1 pathlib2-2.1.0 pexpect-4.0.1 pickleshare-0.7.2 pillow-3.2.0 ptyprocess-0.5.1 pylab-0.1.3 pyparsing-2.1.4 python-dateutil-2.5.3 pytz-2016.4 pyzmq-15.2.0 scikit-image-0.12.3 scikit-learn-0.17.1 scipy-0.17.1 seaborn-0.7.0 simplegeneric-0.8.1 singledispatch-<IP_ADDRESS> six-1.10.0 sympy-1.0 toolz-0.7.4 tornado-4.3 traitlets-4.2.1
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
 ---> 3b53dc9ef60f
Removing intermediate container dc7af4eba40b
Step 6 : CMD python test.py
 ---> Running in 243dd6bfbc15
 ---> c977d7831c40
Removing intermediate container 243dd6bfbc15
Successfully built c977d7831c40
Traceback (most recent call last):
  File "test.py", line 2, in <module>
    print requests.get("https://google.com")
  File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 71, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 57, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 585, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 477, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

# docker exec -ti containername bash
root(inside docker container):/# python --version
Python 2.7.11

root(inside docker container):/# pip show requests
---
Metadata-Version: 2.0
Name: requests
Version: 2.10.0
Summary: Python HTTP for Humans.
Home-page: http://python-requests.org
Author: Kenneth Reitz
Author-email<EMAIL_ADDRESS>Installer: pip
License: Apache 2.0
Location: /usr/local/lib/python2.7/site-packages
Requires:
Classifiers:
  Development Status :: 5 - Production/Stable
  Intended Audience :: Developers
  Natural Language :: English
  License :: OSI Approved :: Apache Software License
  Programming Language :: Python
  Programming Language :: Python :: 2.6
  Programming Language :: Python :: 2.7
  Programming Language :: Python :: 3
  Programming Language :: Python :: 3.3
  Programming Language :: Python :: 3.4
  Programming Language :: Python :: 3.5
  Programming Language :: Python :: Implementation :: CPython
  Programming Language :: Python :: Implementation :: PyPy
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

root(inside docker container):/# pip show pylab
---
Metadata-Version: 2.0
Name: pylab
Version: 0.1.3
Summary: Data science meta-package
Home-page: https://github.com/javipalanca/pylab
Author: Javi Palanca
Author-email<EMAIL_ADDRESS>Installer: pip
License: BSD
Location: /usr/local/lib/python2.7/site-packages
Requires: networkx, pytz, tornado, pandas, seaborn, numpy, matplotlib, jsonschema, scipy, jinja2, sympy, ipython, scikit-image, scikit-learn, pyzmq
Classifiers:
  Development Status :: 2 - Pre-Alpha
  Intended Audience :: Developers
  License :: OSI Approved :: BSD License
  Natural Language :: English
  Programming Language :: Python :: 2
  Programming Language :: Python :: 2.6
  Programming Language :: Python :: 2.7
  Programming Language :: Python :: 3
  Programming Language :: Python :: 3.3
  Programming Language :: Python :: 3.4
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Can you please show us what version of openssl is linked against Python in your container? python -c "import ssl; print ssl.OPENSSL_VERSION" should do the trick.

OpenSSL 1.0.1k 8 Jan 2015

Yup, so the problem here is that pylab brings in certifi. Certifi has removed the deprecated and weak 1024-bit trust roots that requests normally ships with, but requests will use it if available. That's fine except that OpenSSL earlier than 1.0.2 will fail to build the cert chain if the site uses a cross-signed root cert.
Try setting the environment variable REQUESTS_CA_BUNDLE to the string returned by python -c "import certifi; print certifi.old_where" and see if that helps.

Thanks! That fixed the issue.
ENV REQUESTS_CA_BUNDLE "/usr/local/lib/python2.7/site-packages/certifi/weak.pem"


Why <#NameOfMapping> does not work with RMLMapper jar?

I'm tryin to merge two different CSV into one single RDF using the RMLMapper jar...looking into the documentation of the RML.io specification I found the section 9. Integrated Mapping, but the examples therein are not working with the RMLMapper....apparently the it doesn't like the '<#AirportMapping>' syntax before the rml:logicalsource...
Do you have any example using :TriplesMap?
This works for me with one single CSV:
:TriplesMap a rr:TriplesMap;
rml:logicalSource [
rml:source [
a csvw:Table;
csvw:url "edw.sl_vw_oper_prod.csv";
csvw:dialect [
a csvw:Dialect;
csvw:delimiter ";"
]
];
rml:referenceFormulation ql:CSV
].

Hi!
It seems that there's a small mistake in the examples:
<#AirportMapping>
  rml:logicalSource [
    rml:source "Airport.csv" ;
    rml:referenceFormulation ql:CSV
  ];

<#AirportMapping> is not specified as a rr:TriplesMap, this can be fixed like this:
<#AirportMapping> a rr:TriplesMap;
  rml:logicalSource [
    rml:source "Airport.csv" ;
    rml:referenceFormulation ql:CSV
  ];

We will update the examples to fix this.

Duplicate of #91

This is now fixed on https://rml.io/rml/spec.
Feel free to try it out!


doc: Apply new org url

Note : There was typo on 1 and 2. Please let me know if this is intended

Thanks for this PR-! We need to update docs/ in the gh-pages branch as well, to get all the links in "https://islet-project.github.io/islet/" right. In other words, changes in doc/*.md are not going to be automatically reflected into github pages (html files).  I'll do make a separate PR to deal with it after this PR gets merged.

Thanks for this PR-! We need to update docs/ in the gh-pages branch as well, to get all the links in "https://islet-project.github.io/islet/" right.

@jinbpark Oh you already point it out.  I just saw this comment :(
I have updated our site and uploaded PR related it https://github.com/islet-project/islet/pull/261.

In other words, changes in doc/*.md are not going to be automatically reflected into github pages (html files). I'll do make a separate PR to deal with it after this PR gets merged.

It sounds great !


mock response for spring boot CRUD

@ravsa Your image is available in the registry: docker pull registry.devshift.net/fabric8-analytics/api-machine-stacks:SNAPSHOT-PR-17


ABC Iview 07/17/2019

Checklist

[ ] I'm reporting a broken site support
[ ] I've verified that I'm running youtube-dl version 2019.07.16
[ ] I've checked that all provided URLs are alive and playable in a browser
[ ] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[ ] I've searched the bugtracker for similar issues including closed ones

Verbose log

# ./youtube-dl https://iview.abc.net.au/show/shaun-micallef-s-mad-as-hell/series/10/video/LE1815V001S00
[abc.net.au:iview] LE1815V001S00: Downloading JSON metadata
[abc.net.au:iview] LE1815V001S00: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
# ./youtube-dl https://iview.abc.net.au/show/shaun-micallef-s-mad-as-hell/series/10/video/LE1815V001S00 --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://iview.abc.net.au/show/shaun-micallef-s-mad-as-hell/series/10/video/LE1815V001S00', u'--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.07.16
[debug] Python version 2.7.15+ (CPython) - Linux-4.9.163-lxpup-32-pae-i686-with-glibc2.15
[debug] exe versions: ffmpeg 3.4.2, ffprobe 3.4.2, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Using fake IP <IP_ADDRESS> (AU) as X-Forwarded-For.
[abc.net.au:iview] LE1815V001S00: Downloading JSON metadata
[abc.net.au:iview] LE1815V001S00: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "./youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "./youtube-dl/youtube_dl/YoutubeDL.py", line 2227, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

#

Description
Using LxPup linux distribution (32bit)
-->
WRITE DESCRIPTION HERE
ERROR: Unable to download webpage: HTTP Error 404: Not Found (caused by HTTPError())
Thank you!

> py -3.7 .\youtube_dl\__main__.py https://iview.abc.net.au/show/shaun-micallef-s-mad-as-hell/series/10/video/LE1815V001S00
[abc.net.au:iview] LE1815V001S00: Downloading JSON metadata
[abc.net.au:iview] LE1815V001S00: Downloading webpage
[abc.net.au:iview] LE1815V001S00: Downloading m3u8 information
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 181
[download] Destination: Series 10 Ep 1-LE1815V001S00.mp4
[download]   2.4% of ~339.47MiB at 10.82MiB/s ETA 00:44
ERROR: Interrupted by user


PdfDocumentViewBuilder

support:
zoom
controller
...more
so, I may code less...

There already PdfViewerController and you can controll zoom programatically.
What do you want?

这是一封自动回复邮件。已经收到您的来信，我会尽快回复。

I want pdfrx to controll the common things. such as zoom, go page.
so I just need to handle render things.

They're already there. Please read README.md.

I want to render Chinese old books which use rtl mode.
So..how could i do.

pdfrx still does not have enough controll for page snapping or such.
But if you want to do horizontal scrolling, see Horizontal Scroll View.
Basically, for R-to-L reading order, you may change the layout logic to run oppsite order.
layoutPages: (pages, params) {
  final height =
      pages.fold(0.0, (prev, page) => max(prev, page.height)) +
          params.margin * 2;
  final width = pages.fold(params.margin * 2, (prev, page) => prev + page.width;
  final pageLayouts = <Rect>[];
  double x = width;
  for (var page in pages) {
    x -= page.width + params.margin;
    pageLayouts.add(
      Rect.fromLTWH(
        x,
        (height - page.height) / 2, // center vertically
        page.width,
        page.height,
      ),
    );
  }
  return PdfPageLayout(
    pageLayouts: pageLayouts,
    documentSize: Size(width, height),
  );
},

Disclaimer: I've not tested the code :(


Link to the PDE

Hi Nandita,
Thank you very much for a great tutorial on PINN. Could you please add a reference to the PDE that you have used in this tutorial :
du/dx=2du/dt+u
with boundary condition: u(x,0)=6e^(-3x)

It can be interpreted as a chemical concentration transport in 1D with convection, and this velocity field has a constant velocity = -1\2. There is a negative source term -1/2u to make the concentration dissipate with time. If we rewrite the PDE as :
du/dt + (-1\2)du/dx= (-1/2)u
you can also check to know the transport equation:
http://www-personal.umd.umich.edu/~remski/java/source/Transport.html


Bot: .set name includes "name"

Noticed it included "name" in the new name, so I tried without "name" (.set 12 Whiskers) and it doesn't return anything.

Oh whoops

Fixed? If it is please close.


labels wrapping + font

I've been trying RAW to produce a treemap, replicating the one that I producer with R for my recent blog post.

Data - dd-stats.csv

The output of RAW looks like this

It would be nice to have labels nicely wrapped within the rectangles.
Also, even a basic choice of fonts would be much appreciated.

Well, as the name says: raw produces... "raw" dataviz as svg, so that they can then be tuned into any tool you like, so not sure it would be appropriate :)

I thought, the whole idea was to provide an easy tool to produce modern types of viz without hardcore coding skills. If so, it makes sense to have a fine output rather then a raw version for further modifications using graphical editors.

in v2 we added more controls on labels.
No plan to add wrapping option as of now


Implementation of functions is not shown correctly in React Storybook

See start of discussion for 1) in https://github.com/ts4nfdi/terminology-service-suite/issues/136

After a bit of research, the support for function parameters in Storybook is not very high. I discovered one possibility though:
Transforms function - see here
In the {...}.stories.tsx file of a widget, you can modify the displayed source code with a transform function, which obtains the current code string and the StoryContext object providing information of the current story, e.g. the current args values. Sadly, as functions are not greatly supported under Storybook, the values for the onNavigate-functions are missing in the args object.

EntityRelationsWidget.stories.tsx
ArgType mapping - see here
However, there could be a workaround for this: Story argTypes support a mapping option with which simple strings could be mapped to specific function implementations. This leads to these string values now appearing in the args object. These string values can now be used by the transform function to be mapped to a string of the function implementation and be embedded in the code string:

EntityRelationsWidget.stories.tsx
This has the following result in Storybook:

@jusa3 what do you think if this?

Pushed a commit on feat/on-navigate-entity-info-relations implementing this approach. Here's how it looks like:

figure 1

figure 2


Support PyPy

Right now, uv does not officially support PyPy. It might work, and we've done a few things to enable it, like:

https://github.com/astral-sh/uv/pull/1028
https://github.com/astral-sh/uv/pull/1785
https://github.com/astral-sh/uv/pull/2094

But we're likely missing a bunch of stuff, like:

https://github.com/astral-sh/uv/issues/2095
https://github.com/astral-sh/uv/issues/2092
https://github.com/astral-sh/uv/issues/2490

Not prioritizing this immediately, but it should happen, and I'd welcome contributors and PRs around it.

Might be a helpful data-point here - uv seems to select a wheel which it shouldn't when running with PyPy.
$ uv --version
uv 0.1.21 (e9c12c52f 2024-03-14)
$ python3 -VV
Python 3.10.13 (fc59e61cfbff, Jan 15 2024, 14:31:34)
[PyPy 7.3.15 with GCC Apple LLVM 15.0.0 (clang-15<IP_ADDRESS>.5)]

Example reproducer:
$ cat reqs.in
psycopg2-binary; implementation_name == 'cpython'
psycopg2; implementation_name != 'cpython'
$ uv pip compile reqs.in -v
DEBUG Starting interpreter discovery for active Python
DEBUG Found a virtualenv through VIRTUAL_ENV at: /private/tmp/p/.venv
DEBUG Probing interpreter info for: /private/tmp/p/.venv/bin/python
DEBUG Found Python 3.10.13 for: /private/tmp/p/.venv/bin/python
DEBUG Using Python 3.10.13 interpreter at /private/tmp/p/.venv/bin/python for builds
DEBUG Using registry request timeout of 300s
DEBUG Solving with target Python version 3.10.13
DEBUG Adding direct dependency: psycopg2*
DEBUG No cache entry for: https://pypi.org/simple/psycopg2/
DEBUG No credentials found for: https://pypi.org/simple/psycopg2/
DEBUG Searching for a compatible version of psycopg2 (*)
DEBUG Selecting: psycopg2==2.9.9 (psycopg2-2.9.9-cp310-cp310-win32.whl)
DEBUG No cache entry for: https://files.pythonhosted.org/packages/a2/14/2767d963915f957c07f5d4c3d9c5c9a407415289f5cde90b82cb3e8c2a12/psycopg2-2.9.9-cp310-cp310-win32.whl.metadata
DEBUG No credentials found for: https://files.pythonhosted.org/packages/a2/14/2767d963915f957c07f5d4c3d9c5c9a407415289f5cde90b82cb3e8c2a12/psycopg2-2.9.9-cp310-cp310-win32.whl.metadata
Resolved 1 package in 370ms
# This file was autogenerated by uv via the following command:
#    uv pip compile reqs.in
psycopg2==2.9.9

This wheel is unsupported (CPython, windows) and pip (pypy, macOS) would not consider it:
$ pip install https://files.pythonhosted.org/packages/a2/14/2767d963915f957c07f5d4c3d9c5c9a407415289f5cde90b82cb3e8c2a12/psycopg2-2.9.9-cp310-cp310-win32.whl
ERROR: psycopg2-2.9.9-cp310-cp310-win32.whl is not a supported wheel on this platform.

Can you just confirm that the Python in your virtualenv there is PyPy too?

Thanks!

Oh sorry, to be clear, we let the resolver use incompatible wheels during resolution for the purpose of fetching metadata. So this is fine and intended. The only problem would be if we then installed that wheel with pip sync or pip install.

Hmm, is that really fine? As far as I'm aware, there's no promise that the dependencies specified in the wheel metadata are correct for other environments. It should possible, at least in theory, for mypkg-1.2.3-cp310-cp310-win32.whl to have different dependencies than a pp310-none-any tagged wheel, or even a mypkg-1.2.3.tar.gz.

It's an assumption we make in dependency resolution. Poetry and other tools make the same assumption. It's not standardized or guaranteed. There's discussion around it here: https://discuss.python.org/t/lock-files-again-but-this-time-w-sdists/46593/274. There's also some data on it here: https://discuss.python.org/t/insights-into-how-poetry-lock-works-cross-platform/17846/23. At least on PyPI, there are about 700 (out of 523,405) that ship with wheels with different metadata.

Would it be sufficiently complex to assume that each wheel has different metadata?

Not really. It's just an optimization.

Those discuss links are very informative, thanks.

(If anyone's looking to continue discussing the wheel metadata usage, I humbly request that we do so in a new issue.)

I noticed that this seems to work pretty well now - what's left to do on this front? Or is it mostly about battle testing various edge cases (e.g. the metadata mismatch)?

We might be missing some edge cases around the exact virtualenv executables that are created on various platforms, but I think this is good enough that we can close it, and follow-up on any remaining issues separately as they come up.

(I consider PyPy supported.)


doesn't steal passwords

it's 50/50 on most computers
even tho i know a pc has passwords saved in firefox but it doesn't steal anything and only shows the history
maybe there is a problem in the grabbing file directory of firefox saved password
i've manually checked the directory and firefox has logins.json file in \AppData\Roaming\Mozilla\Firefox\Profiles\mx8gkqxi.default-release
but it doesn't grab it or send anything about it

If you have direct access to the PC, can you check if the passwords stored in firefox are visible in this software

yes both chrome and firefox are visible
On Sun, 26 Mar 2023 at 22:42, Blank @.***> wrote:

If you have direct access to the PC, can you check if the passwords stored
in firefox are visible in this software
https://www.nirsoft.net/utils/web_browser_password.html
—
Reply to this email directly, view it on GitHub
https://github.com/Blank-c/Blank-Grabber/issues/158#issuecomment-1484217458,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQRGDFHK7UMAVC222NZA5GTW6CS2RANCNFSM6AAAAAAWIMHZYQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

Then I am not sure why this happened, does the zip file has an error logs file?

Most of them doesn't have any error log file but I've got one now that it
contains error file
This is the error:
Line 1588 : captureBrowserPasswords : PermissionError : [WinError 5] Access
is denied: 'C:\Users\mahya\AppData\Local\Temp\_MEI78642\getPass.exe'
Line 19 : encode : UnicodeEncodeError : 'charmap' codec can't encode
characters in position<PHONE_NUMBER>48: character maps to
I've even tried with run as administrator and still the same thing.
On Mon, Mar 27, 2023, 2:04 PM Blank @.***> wrote:

Then I am not sure why this happened, does the zip file has an error logs
file?
—
Reply to this email directly, view it on GitHub
https://github.com/Blank-c/Blank-Grabber/issues/158#issuecomment-1484905212,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQRGDFDHN3V3ZVDQHXNTDRLW6FUMXANCNFSM6AAAAAAWIMHZYQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

I dismantled the anti virus and now there is no error log file, but
everything else is the same, there is only history but cookies and
passwords are empty
Tried it on a few other computers and still the same thing,
I think maybe it's getting caused by enabled screenshot, but it also was
like this before except before was 50/50 but now all of computers have
empty password file
On Tue, Mar 28, 2023, 12:12 AM Blank @.***> wrote:

You sure the antivirus is off? I see permission errors.
—
Reply to this email directly, view it on GitHub
https://github.com/Blank-c/Blank-Grabber/issues/158#issuecomment-1485835387,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQRGDFDNVOSUVLPD2J2GGHLW6H3TBANCNFSM6AAAAAAWIMHZYQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

I hate to say this but would you mind trying out each older versions (last two or three versions) of the grabber. This problem might become a huge one if not treated properly.

yes i tried the version with webcam off
this time it shows that pc has passwords correctly in the message in the discord but it in the passwords file it's empty
also doesn't grab the cookies
and also tired a few versions before it's the same thing, it shows the pc has passwords but doesn't send them, it's weird because i tried it on the same pc which before it sent me passwords but this time it doesn't work even the older versions, i'm thinking maybe if there is any link in the source code, it might have problem with that or something similar
i will try to build with another python version and also another pc and i will let you know

If the passwords file is empty. Then it means, that the grabber did grab the passwords, but was unable to save them to a file (permission error or some other process blocking) or it (password file contents) could have been removed by the antivirus.

there is no anti virus installed on the device
if it is the permission error can you just add the get administrator code to the source?

It already has the code. But for some reason it is getting permission error. I don't think I can do anything about this.

I can't help without any type of crucial information. If there is something else, you can open a new issue.


Default suggestion keymaps blocks LazyVim flash searching

Prerequsities

[x] I'm on the latest version of the plugin
[x] I've installed the required dependencies
[x] I've run :h gitlab.nvim.troubleshooting and followed the steps there

Setup Configuration and Environment
I'm trying to use the default config, so I deleted my keymaps.
Bug Description
Not a bug, as you can change the keymaps but it's very common for s to be the flash.nvim trigger key which means the suggestion keymap breaks your ability to move around diffs and sometimes even opened files which is very jarring (I think there's a bug in diffview where buffer local settings can leak into opened files but I don't know how it's triggered). Although I'm not totally sure what keymap to suggest as an alternative to be honest I think it would be nice if it didn't clash. Maybe just use cs only and drop the top level  s keymap?

Hey Brian, thanks for filing the feedback. We just added these default keymaps and this didn't come up during that MR review... I'm not inclined to change them again. The easiest fix here is just to change the mapping to something else if you use that particular plugin!

Hi, as for "the suggestion keymap breaks your ability to move around diffs and sometimes even opened file" - this may be caused by the del_reviewer_keymaps not to be called properly within the callback for leaving the reviewer. It would help debug if you @brian could find a way to reproduce this.
Vim does not allpw setting a window-local keymap so that if you set a buffer-local mapping it is available in that buffer in any window/tab. I thought I fixed this by adding that callback that deletes the keymaps when leaving the reviewer, but appafently the autocommand does not fire always...

I've never really understood why this happens when using diffview but I'm used to it by now, see this issue https://github.com/sindrets/diffview.nvim/issues/330 which leaves me with absolute line numbers instead of relative. You appear to be relying on diffview so that explains why deleting the keymaps is randomly not triggering when you open a file from a diff. I'll try and see if I can recreate it consistently but I don't consider this a bug with gitlab.nvim. I think it's probably a diffview or Neovim bug so I'd be fine with closing this.


[Functional demand]Like iOS's IMSSAGE, you can hide the Subject column

Not

I don’t know if I can realize this demand. If the update was realized that day, I was willing to donate

Settings -> Private API -> Uncheck the subject option

Time to close this issue, that's exactly the solution.


Update Play parsePlayURL script for RSI tv guide by channel

Issue type
Feature request
Handle https://www.rsi.ch/play/tv/guidatv-per-canale/* urls.
Description of the problem

The parsePlayUrl.js can't parse tv guide by channel urls.

Need to return a deeplink to access tvGuide.

We could add an optional query parameter with the channelUrn but it's an other story, as Android and iOS application to deal with as well.
Examples with the second channel:

RSI: https://www.rsi.ch/play/tv/guidatv-per-canale/la-2/2024-05-06?channelUrn=urn%3Arsi%3Achannel%3Atv%3Ala2
RTS: https://www.rts.ch/play/tv/programme-par-chaine/rts-2/2024-05-11?channelUrn=urn%3Arts%3Achannel%3Atv%3Ad7dfff28deee44e1d3c49a3d37d36d492b29671b
SRF: https://www.srf.ch/play/tv/programm-nach-sender/srf-zwei/2024-05-11?channelUrn=urn%3Asrf%3Achannel%3Atv%3AE4D5AD08-C1E8-46A3-BB58-4875051D60D2
RTR: https://www.rtr.ch/play/tv/tenor-program-tv/srf-zwei/2024-05-14?channelUrn=urn%3Asrf%3Achannel%3Atv%3AE4D5AD08-C1E8-46A3-BB58-4875051D60D2


new api key after reboot

Hi, i use the adapter under iobroker Windows 10.
After i reboot my intel nuc, the deconz adapter needs always a new api key to connect.
the old key is not valid and i get only 403 errors.
After i delete the key and request i new one, all is runing fine again.
i use the default password on the conbee 2 stick.
How can i request an automatic update of the api key, if the adapter is unable to work with the old key?

How can i request an automatic update of the api key, if the adapter is unable to work with the old key?

There is no feature to do this. Normaly the key is stored on both sides.
After restarting the adapter is there a message in log with rhe API Key?

there is a 403 error

Have you solved your problem?


mixin not found

Hi,
I am not able to find this function breakpoint in any of the mixin file.
The jekyll is throwing error -
 Undefined mixin 'breakpoint
Am I doing something wrong?

Not sure what you're doing wrong but the breakpoint mixin is in /styelsheets/vendor/breakpoint.

Oh.. My apologies.. Just noticed the folder.
Looks like the situation when I desperately searches for spectacles, only to realize in the end -- I was already wearing it
Thanks


@conda-forge-admin, add noarch: python

Issue:

Environment (conda list):

$ conda list

Details about  conda and system ( conda info ):

$ conda info

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I made the recipe noarch: python in conda-forge/pycparser-feedstock#12.


enable dma for USART in stm32f302. fix hal! implementation for USART3, 4 for stm32f3

it can build, but failed to run dma serial transfer on my stm32f302r8 device. I think it should not be caused by changes here. I pushed it for reviewing first

Thanks for your work!

it can build, but failed to run dma serial transfer on my stm32f302r8 device ( transferring garbage data). I think it should not be caused by changes here. I pushed it for reviewing first

I don't really get how one can help you here. Do you want a review on the working code or help making the DMA work?

I also think you'll have an easier time finding people willing to review if you made sure all the CI checks pass first. At least speaking for myself, when I see those failing checks I automatically assume this PR is not worth reviewing yet since I would only find the same issues the CI has already found.
If you have any specific problems we can help you out with, let us know. But as @strom-und-spiele implied, nobody is going to be able to help you much with figuring out what breaks DMA on your F302, since nobody owns that hardware AFAIK.

Looks like you accidentally duplicated this one.

They are different PRs, Should I merge them into one with some text?

No, just remove the second entry for #132 from the changelog. It's already there (two lines above).

I have dropped my last commit and forcely pushed

Hm, now the diff contains changes from other PRs too, that are actually already in master. Not sure what went wrong here. Let me try if I can fix it once I'm back at a PC.

Hm, now the diff contains changes from other PRs too, that are actually already in master. Not sure what went wrong here. Let me try if I can fix it once I'm back at a PC.

Because I merge from the upstream, or else, github will not allow merge.

Sorry, I meant to push my fixup changes to your branch but pushed my master branch instead. This caused an empty diff on this PR, which lead Github to automatically close it. As long as the PR is closed I cannot push to your branch to fix my mistake and as long as the diff is empty I cannot re-open the PR. I took the simple solution of opening a new PR with these changes. Please check out #139. If it looks good to you, I will merge it.

Sorry, I meant to push my fixup changes to your branch but pushed my master branch instead. This caused an empty diff on this PR, which lead Github to automatically close it. As long as the PR is closed I cannot push to your branch to fix my mistake and as long as the diff is empty I cannot re-open the PR. I took the simple solution of opening a new PR with these changes. Please check out #139. If it looks good to you, I will merge it.

I think it is fine to me


Added question in git Quiz

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)

Closes #XXXXX

Changes are done. Kindly review


Make a local clone of kaleidoscope functional

I've assigned myself. How do i "make local clone"

@huntereby https://argoshare.is.ed.ac.uk/healthyr_book/clone-an-existing-github-project-to-new-rstudio-project.html
This should help you do that.


Add helper for logit attribution

Closes #109
Hi @neelnanda-io - I took at stab at this (basically just lifted the exploratory demo code).  Let me know if this is what you had in mind
I made residual_stack a parameter since it's doing the same thing for logit lens, per layer and per head attributions in the exploratory demo.  The code expects residual_stack to have a batch dimension since I apply layer norm inside.
The code supports int and str values for tokens and input_tokens since that seems to be an idiom but you'll have to pass in residual_stack[:,i,:].unsqueeze(dim=1) to get the shapes right.  Not sure how important this is.
It should also support tokens and input_tokens with shapes like [batch, position] (as opposed to just [batch]), but I'm not sure what that would be used for?
The code takes the average over the batch, not sure if this should be configurable
Re: testing - I can try adding some unit tests but it doesn't seem trivial to set up and might be better as a separate PR for #99
Example usage:
# logit lens attributions
accumulated_residual, labels = cache.accumulated_resid(layer=-1, incl_mid=True, pos_slice=-1, return_labels=True)
logit_lens_logit_diffs = cache.logit_attrs(residual_stack=accumulated_residual, tokens=tokens, incorrect_tokens=incorrect_tokens, layer=-1, pos_slice=-1)

# per head attributions
per_head_residual, labels = cache.stack_head_results(layer=-1, pos_slice=-1, return_labels=True)
per_head_logit_diffs = cache.logit_attrs(residual_stack=per_head_residual, tokens=tokens, incorrect_tokens=incorrect_tokens, layer=-1, pos_slice=-1)
per_head_logit_diffs = einops.rearrange(per_head_logit_diffs, "(layer head_index) -> layer head_index", layer=model.cfg.n_layers, head_index=model.cfg.n_heads)

# single token attribution (batch size = 1)
accumulated_residual_single = accumulated_residual[:,0,:].unsqueeze(dim=1)
logit_lens_logit_diff_single = cache.logit_attrs(residual_stack=accumulated_residual_single, tokens=tokens[0], incorrect_tokens=incorrect_tokens[0], layer=-1, pos_slice=-1)

Thanks for your patience and thorough comments!  I've made the changes and added my replies
Here's the script I used to test

# Janky code to do different setup when run in a Colab notebook vs VSCode
DEBUG_MODE = False
try:
    import google.colab
    IN_COLAB = True
    print("Running as a Colab notebook")
    %pip install git+https://github.com/neelnanda-io/TransformerLens.git
    # Install another version of node that makes PySvelte work way faster
    !curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -; sudo apt-get install -y nodejs
    %pip install git+https://github.com/neelnanda-io/PySvelte.git
except:
    IN_COLAB = False
    print("Running as a Jupyter notebook - intended for development only!")
    from IPython import get_ipython

    ipython = get_ipython()
    # Code to automatically update the HookedTransformer code as its edited without restarting the kernel
    ipython.magic("load_ext autoreload")
    ipython.magic("autoreload 2")

# Import stuff
import torch
from fancy_einsum import einsum
from transformer_lens import HookedTransformer, HookedTransformerConfig, FactoredMatrix, ActivationCache
from torchtyping import TensorType as TT

# Turn off auto diff to save memory since only doing inference
torch.set_grad_enabled(False)

# Load gpt2-small
model = HookedTransformer.from_pretrained(
    "gpt2-small",
    center_unembed=True,
    center_writing_weights=True,
    fold_ln=True,
    refactor_factored_attn_matrices=True,
)

# Create IOI prompts
prompt_format = [
    "When John and Mary went to the shops,{} gave the bag to",
    "When Tom and James went to the park,{} gave the ball to",
    "When Dan and Sid went to the shops,{} gave an apple to",
    "After Martin and Amy went to the park,{} gave a drink to",
]
names = [
    (" Mary", " John"),
    (" Tom", " James"),
    (" Dan", " Sid"),
    (" Martin", " Amy"),
]
# List of prompts
prompts = []
# List of answers, in the format (correct, incorrect)
answers = []
# List of the token (ie an integer) corresponding to each answer, in the format (correct_token, incorrect_token)
answer_tokens = []
for i in range(len(prompt_format)):
    for j in range(2):
        answers.append((names[i][j], names[i][1 - j]))
        answer_tokens.append(
            (
                model.to_single_token(answers[-1][0]),
                model.to_single_token(answers[-1][1]),
            )
        )
        # Insert the *incorrect* answer to the prompt, making the correct answer the indirect object.
        prompts.append(prompt_format[i].format(answers[-1][1]))
answer_tokens = torch.tensor(answer_tokens)

tokens = model.to_tokens(prompts, prepend_bos=True)

# Run the model and cache all activations
original_logits, cache = model.run_with_cache(tokens)

# Reference notebook code
answer_residual_directions = model.tokens_to_residual_directions(answer_tokens)
logit_diff_directions = answer_residual_directions[:, 0] - answer_residual_directions[:, 1]

def residual_stack_to_logit_diff(residual_stack: TT["components", "batch", "d_model"], cache: ActivationCache) -> float:
    scaled_residual_stack = cache.apply_ln_to_stack(residual_stack, layer = -1, pos_slice=-1)
    return einsum("... batch d_model, batch d_model -> ...", scaled_residual_stack, logit_diff_directions)/len(prompts)

# Get accumulated resid
accumulated_residual, labels = cache.accumulated_resid(layer=-1, incl_mid=True, pos_slice=-1, return_labels=True)

# Get reference logit diffs
ref_ave_logit_diffs = residual_stack_to_logit_diff(accumulated_residual, cache)

# Get our logit diffs
logit_diffs = cache.logit_attrs(accumulated_residual, pos_slice=-1, tokens=answer_tokens[:,0], incorrect_tokens=answer_tokens[:,1])
ave_logit_diffs = logit_diffs.mean(dim=-1)

# Print difference between ref and ours
print("Ref vs ours difference: ", (ref_ave_logit_diffs - ave_logit_diffs).abs().sum())

# Ref vs ours difference:  tensor(2.5898e-06)

Thanks for the changes! Other than my comment about the len(scale.shape)>1 step, this LGTM

And can you add your test script as a test? It'd be better to have actual ActivationCache tests, but this seems better than nothing!

Ideally on eg solu-2l, or some other tiny model, to make tests faster

Sure, I'll add the script! Think it makes sense to work on #99 next lol

@neelnanda-io this should be ready now 🤞 sorry for all the back and forth!
Added another test which revealed some bugs, which are now fixed
I also ran into a CI failure but couldn't reproduce on my machine- bumping the atol to 1e-7 got rid of it which I think is ok
Also please squash this when merging 😭


Added fix and unit test for queryContentRegexAssertion() method

Solves issue for #32.

@weierophinney
I added another test case to handle unexpected false positives and added for solution. I had to tweak it a little otherwise the exception message had to actual content to output. I hope that tweak is ok.

Thanks, @RalfEggert! Cherry-picked to master, for release with 3.0.2.


Add Babel scenario

Thank you very much for your work on the benchmark!
Babel seems to be a good scenario, a lot of typescript code, and widely used.
BTW: Babel has the incremental option enabled, I'm not sure if I need to do anything extra.

Thanks for the PR; the repo is in flux and benchmarking resources are limited, so I'm not sure I'm going to take this quite yet.
Is there something special about Babel that warrants its addition besides it just being a popular library? All of the current benchmarks are "special" in that they test codebases that are slow or often become slow for one reason or another. It's likely that the list from https://github.com/microsoft/TypeScript/issues/44033 will come first.

Because there are all JS/TS/FLOW AST type definitions in @babel/types and @babel/traverse, and we support the form NodePath.get("body[0].expression"), It's very slow.
And there have been times in the past where their behavior became extremely slow either in the Babel repo or downstream.
https://github.com/microsoft/TypeScript/issues/50290#issuecomment-1221331939
https://github.com/microsoft/TypeScript/issues/50515
So personally it seems to me that Babel might be a suitable typical example to measure this kind of usage. :)
By the way, at least last year we tested tsc would OOM with 6GB when strictNullChecks was enabled in Babel. :)
Of course, if you think Babel is not suitable for adding to this repository, I completely understand. The project itself is amazing, and it’s great to see it coming!

I've done a bunch of refactoring and so this PR is no longer up to date with how to add a benchmark; a better example is #7, if you wanted to update this PR.

I didn't add it to scripts/src/generateMatrix.ts because it seemed like it would require some knowledge of CI.

It shouldn't, other than picking an agent for the baseline to run on long term, and knowing roughly how long it takes to do a single compile (which I could measure for you).

The speed problem may be solved by skipLibCheck: false.
fail fast is indeed a problem, luckily Babel automatically generates tsconfig, the worst case scenario may be that we keep an old script.
cc  @nicolo-ribaudo You may have better ideas!


BelongsToMany relation does not use pivot table's timestamps

Laravel Version: v8.73.1
PHP Version: 8.0.12
Database Driver & Version: mysqlnd 8.0.7

Description:
When a table's updated_by or created_by columns are customized on a table, and a belongsToMany relation is setup with timestamps, a request via the relation generates an exception as it requests the timestamp columns of the source table, and not of the pivot table.
Steps To Reproduce:

GitHub repository demonstrating the issue: https://github.com/kassah/belongsToManyTimeStampIssue
Steps:

Create a new project
Create a source table & model (i.e. Article)
Create a pivot table & model (i.e. Review)
Create a target table & model (i.e. User) [I re-used the existing User model]
Add a relation with belongs to many and withTimestamps in the source model.
Change the timestamp columns of the source table (with appropriate constant updates in the Model class)
Call the relation on Article and get() the results, this will result in an exception.

What was expected:

The relation would continue to work, without the pivot timestamp columns having to match.

Inside the repository I created a test that does step 7. I added a GitHub Action that runs the failing test: https://github.com/kassah/belongsToManyTimeStampIssue/runs/4296023048?check_suite_focus=true
I also set it to run the tests just prior to changing the source tables to demonstrate the test works just prior to updating the column names.
https://github.com/kassah/belongsToManyTimeStampIssue/runs/4296017471?check_suite_focus=true

I believe the code is clear on this one, you should be using withTimestamps('created_at', 'updated_at')


Bump dependencies

Bumped all of the test and development dependencies. Also bumped some of
the production dependencies, but left the ones where there were major
changes or the changelog couldn't be easily found.

If you like, we can enable Dependabot?

That would be good, as long as it doesn't start opening PRs too often - maybe we could set it to open monthly PRs.

@issyl0 are you happy for me to merge this for now since I've checked these changelogs, then look into Dependabot after?

Sure. Do whatever! 😄


flutter plantform error

my console error log
Users/pengyun/Desktop/bitbucket/flutter/aerifai/android/app/src/main/java/com/example/flutter/MainActivity.java:39: 错误: 找不到符号
private FlutterView.MessageResponse _response;
^
符号:   类 MessageResponse
位置: 类 FlutterView
/Users/pengyun/Desktop/bitbucket/flutter/aerifai/android/app/src/main/java/com/example/flutter/MainActivity.java:80: 错误: 找不到符号
new FlutterView.OnMessageListenerAsync() {
^
符号:   类 OnMessageListenerAsync
位置: 类 FlutterView
/Users/pengyun/Desktop/bitbucket/flutter/aerifai/android/app/src/main/java/com/example/flutter/MainActivity.java:90: 错误: 找不到符号
new FlutterView.OnMessageListenerAsync() {
^
符号:   类 OnMessageListenerAsync
位置: 类 FlutterView
/Users/pengyun/Desktop/bitbucket/flutter/aerifai/android/app/src/main/java/com/example/flutter/MainActivity.java:99: 错误: 找不到符号
new FlutterView.OnMessageListenerAsync() {
^
符号:   类 OnMessageListenerAsync
位置: 类 FlutterView
/Users/pengyun/Desktop/bitbucket/flutter/aerifai/android/app/src/main/java/com/example/flutter/MainActivity.java:129: 错误: 找不到符号
new FlutterView.OnMessageListenerAsync() {
^
符号:   类 OnMessageListenerAsync
位置: 类 FlutterView
5 个错误
:app:compileDebugJavaWithJavac FAILED
I updated the flutter SDK in today morning, after compiling the following error, as a result of version update problem?If yes, how can I solve this problem

@collinjackson @jakobr-google might know if something at the java layer changed recently to cause this.

There were some recent changes to the java side in https://groups.google.com/forum/#!topic/flutter-dev/ZQMnAIikneY but I'm not sure if that's what you're hitting?  If you only have dart components to your app, you can flutter create a new copy of your app and just move the lib/ directory over.

I think the wiki linked in the post you mentioned should help: https://github.com/flutter/flutter/wiki/Upgrading-Flutter-projects-from-using-PlatformMessages-to-using-channels

Thank you, I now through PlatformMessageChannel and binding in the Java code to monitor can replace the error code before college

Grateful to provide API changes details, now college code can work


Documentation request: CTA & AA integrations

Would be great to have some documentation on how you recommend setting up AA and CTA to work together

is that Active Auras or Automated Animations ?

Active auras, but if there are ways to integrate it with automated animations that would be super helpful too!

I need to update CTA for 0.8.6, but I'll add some functions to help hopefully

I need to update CTA for 0.8.6, but I'll add some functions to help hopefully

That would be awesome. I really do like this module and my cleric player wants his Spirit Guardians animations again. :)

The macros exported by CTA now act as toggles, so you can call them directly through DAE and it should work.
Also me an tim have been talking and hopefully with have direct DAE-CTA integration soon


Cannot read property 'length' of null

I'm getting this error showing up in our logs. As far as I can tell it's not actually causing a problem but I'm not certain of this.
This error is getting thrown in shaka.player.StreamVideoSource.prototype.onKeyStatusesChange() at this point:
for (var i = 0; i < streamInfos.length; ++i) {
var streamInfo = streamInfos[i];
var originalAllowed = streamInfo.allowedByKeySystem;
...
StreamInfos is null and keyStatusByKeyId is Object {2b62f97d718c460f8b64a2c20fd9b26c: "usable"}
I only get this error when using the malformed content that I sent you guys a while back to debug a different issue. When I use good content I don't get this error, but it's also the case that the onKeyStatusesChange() handler never fires in these cases.
Do you know why this bad content could be triggering a keystatuseschange event and why when it does trigger this event, streamInfos would be null? I will continue to look into this for more information but I thought you might have useful input.

The if at https://github.com/google/shaka-player/blob/4cc4e96dbd5d2fd1b47e622eb8505d3ab4848cc0/lib/player/stream_video_source.js#L922 should not include !COMPILED.
Does your good content have cenc:default_KID in the MPD? Or is it unencrypted?

The good content is encrypted but it does not have the default_KID. The presence of this property triggers the keystatuseschange event?

The browser (specifically the EME layer) fires the keystatuseschange event. The player uses the MPD's cenc:default_KID attributes to correlate key statuses to Representations (the player could not accomplish this without cenc:default_KID attributes as there's no key-system-agnostic mechanism to extract key IDs from actual content).
The browser should fire a keystatuseschange event when it begins playback of any encrypted content. So, I would expect StreamVideoSource to encounter Uncaught TypeError: Cannot read property 'length' of null for any encrypted content without @cenc:default_KID in compiled mode before d0b8c68b04288bc879943dc84db16e85144f775e.
If you run in debug mode (with debug logging) do you see onKeyStatusesChange_ reported in the console for both your good and bad content? Or, perhaps your good content has an (unencrypted) clear-lead?

We will land fixes for #170 and #182 for v1.5.0. After those land, let me know if you're seeing any different behavior here.

Closing... Please reopen if you still see this issue.


Pass along server express app

Also in the user data make sure to send the minecraft.js express app and spin it up.

This is also closed because we're doing it a different way.


corrected doc: jupyter installation

This PR corrects outdated section about Jupyter-lab installation and adds a small note in contributing section regarding how to solve the bdist_wheel missing error. This partially addresses #682.

Hmm wheels_universal failure unrelated, investigating. @epassaro what do you think?

Hmm wheels_universal failure unrelated, investigating. @epassaro what do you think?

Seems Azure (the OA template to be precise) is installing and running Python 3.9 but poliastro is set <3.9. See this line.

Thanks a lot @tomaszmrugalski, merged!
Also, with JupyterLab 3.0, which is around the corner, we won't need Node.js anymore :heart_eyes:


Add support for Date32 and Time64 types.

I noticed Date32 and Time64 weren't support so I tried to add them.
I'm not very familiar with this crate so I mostly followed the compiler to make this work, please have a look if it makes sense.

I added some first tests which just cover the basic types (i32 for Date32 and i64 for Time64). Now for the actual chrono types, is the idea to add tests that can do NaiveDate for the Date32 type and NaiveTime for Time64? And to support this I likely also have to add a NaiveStrAsDate32 and NaiveStrAsTime64 strategy?

Sorry for the somewhat belated reply. Re what features (and tests) to cover: Maybe it's a better idea to stick to the basics (timestamps being simply serialized and deserialized as integers) and leave the rest for a second iteration. There will be some interaction with #148 and in particular whether (and how) to include a specialized strategy.

I added some first tests which just cover the basic types (i32 for Date32 and i64 for Time64). Now for the actual chrono types, is the idea to add tests that can do NaiveDate for the Date32 type and NaiveTime for Time64? And to support this I likely also have to add a NaiveStrAsDate32 and NaiveStrAsTime64 strategy?

I think it makes sense to skip string (de)serialization for now. In its current state you're right and we would need to add additional strategies. The reason is, that currently the deserializer has no way to know whether it should emit a string or an integer. However, once #148  is implemented then the Deserialize impl of the field can control whether a string is emitted or an int (e.g., field: String would request a string, field: i64 an integer without any change in configuration).
Thanks for highlightning this issue. I only now realize that we can deprecate either Naive...AsStr or Utc...AsStr and make it the default with #148. Making it simpler to use serde_arrow.

@gz Thanks a lot! I change some small details:

Reformat the code
Rework the #[should_panic] tests to only include the failing behavior
Comment out the string serialization logic for a later PR
Add tests for the data types
Add support to convert from arrow-rs schemas to the new data types


Init r53-ddns at 1.0.1

Description of changes

A small tool to update a DynDNS hostname in your own AWS Route53 domain.
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

Separate package and module into two commits

r53-ddns: init at 1.0.1
nixos/r53-ddns: init

Thanks for the feedback. Fixed :)

(Module addition) Added a release notes entry if adding a new NixOS module

And finally we need a release note for newly added modules. https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#generating-2205-release-notes

I assumed that this should be part of the commit that introduces the new module? Or should the docs also be split?

Both solutions would be fine.


data:rghdrizzle

Fixes Issue

Changes proposed

Check List (Check all the applicable boxes)

[ ] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[ ] All new and existing tests passed.
[ ] This PR does not contain plagiarized content.
[ ] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

If I have to update later in the future do I have to open a pr?

If I have to update later in the future do I have to open a pr?

Exactly Luqmaan, You can always create a PR if you wanted to change anything in your Profile.
You can follow this guide on How to edit and add more to your profile: https://linkfree.eddiehub.io/docs/how-to-guides/editing


Change the cli samples argument number

fixes #2716
Saw this as I was going through the tracker and figured I'd submit a PR real quick.

No problem! Thanks for taking the time to review. :smiley:


Diamond: Cleaned up tests expected data

[Diamond - Test]

Replaced heredocs with String concatenation:

Able to remove \s while retaining trimming whitespace editor fix
No newline added at the end, as heredocs do

Removed leading whitespace for the middle rows

@Xehanort94 Thanks for the contribution! One thing that we try and do when possible is to try and make non-breaking changes to test suites. Because the behavior in the test suite is now different (by removing the tailing newline), that means anyone who has completed this exercise in the past will no longer have a functional implementation.
In general, if we're updating a test suite, we shouldn't have to update the example implementation or else that's probably a sign that we're making a breaking change...
What exactly prompted this pull request? Did the existing test suite seem incorrect to you? I'm not sure I see a need for the change, but I might be missing something.
Thanks again!

No need to merge my PR if it doesn't conform to your updating rules.
I think the test suite is not reflecting the exercises description given in the readme:

The readme doesn't list a linebreak at the end of the returned string
There should not be a whitespace before the first character in the middle row

As there is no canonical data for diamond, I took a look at the other implementations and tests and these are my observations:

C#: Tests are completely agnostic to surrounding whitespace as I read them, also there is no trainling newline generated. But I'm not quite sure if I read the tests correctly. I will ignore this track in summary
ecmascript: Tests the trailing newline
elixir: Currently tests trailing newline, but has a PR which removes that
F#: I'm totally unable to read the tests :) But example seems NOT to generate trailing newline. But I'm really not sure how F#s List.reduce works, since there is no “starting value” given
go: I'm not sure about the tests, but the example does emit the trailing newline
java: circumvents the problem by expecting a list of strings. One element per line.
javascript: tests trailing newline
lua: tests trailing newline
python: tests trailing newline
ruby: tests trailing newline

expect trailing
expect no trailing
list of rows
unsure

6
0
1
2

The F# solution doesn't produce a trailing newline. The reduce function works the same as Elixirs Enum.reduce/2, taking the first element of the enumerable as the initial accumulator value.
Also i did a bit of testing, and it turns out, that the leading whitespace for the middle row is cut, if the heredocs ending """ is indented by one or more spaces. Interestingly enough this would also truncate the leading whitespace for the other rows (up until the indentation level of the ending """, but not truncating actual characters), but that is circumvented by using \s instead of a simple space for the first character.
So if you guys decide that the trailing newline is fine you can close the PR, since my second adressed point is actually fine.
Well, tbh i think that the heredoc is even more confusing now since it uses the indentation and the escaped whitespace tricks that are nowhere documented.

To illustrate my point, type the two versions into iex and observe the difference (I run Elixir 1.4 with OTP19):
Closing triple quotes not indented
"""
\s A \s
\sB B\s
C   C
\sB B\s
\s A \s
"""
Closing triple quotes indented
"""
\s A \s
\sB B\s
C   C
\sB B\s
\s A \s
"""
The first one will add the leading whitespace to the resulting string, while the second one won't. Data is taken directly from the test case.

@Xehanort94 So first off, thanks for pointing out the way to strip leading whitespace from a heredoc! That is indeed sadly undocumented from what I can see (and that could be a good opportunity to contribute some documentation there if you like?)
Given that there isn't yet cannonical data for this exercise, and that our implementation is mostly in line with other languages, I think we'll keep the exercise as is for now.
Thanks again, though, and if you wanted to create the cannonical data for this exercise, I'm sure that would be a very welcome contribution!


Add env:path after installation of az cli.

Prerequisites

[X] Write a descriptive title.
[X] Search the existing issues.
[X] I am reporting the documentation problem for the current version of Azure CLI.

Azure CLI version being used
2.46.0
Link to affected document
https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=powershell
Description of the documentation error
When customers install az cli as described :
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; Remove-Item .\AzureCLI.msi
It will miss the path from the environmental variables on windows core os like Azure Stack HCI OS. Therefore customers cannot run az commands and open support cases.
Suggested fix
Add the az cli's installation path to the environmental variables.:
$env:Path += ";C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin"

@Mihaly7
Since we have not heard back from you, we will now proceed to close this thread.
If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

Please see the explanation at https://github.com/MicrosoftDocs/azure-docs-cli/issues/4625#issuecomment-2410655449.


Fix Watchdog Timeouts - duplicate multiplication of time.Second

Removed duplicate multiplication of time.Second in main.go.
Resolves #97

Description
Times are already parsed as ints and multiplied by seconds before they are stored in the config struct as Durations.
They do not need further calculation when being passed to the httpServer, so the code has been removed.
Motivation and Context

Functions should terminate within a timely fashion.
Currently, the timeout is much much much longer than expected.
How Has This Been Tested?

sleeper function using functions/alpine:health with the default timeout of 5s:
λ curl localhost:8080/function/func_sleeper -XPOST -d7   # does not timeout
hi, sleeping for: 7
done

sleeper function using a fresh functions/watchdog:build with the deafult timeout:
λ curl localhost:8080/function/func_sleeper -XPOST -d2
hi, sleeping for: 2
done

λ curl localhost:8080/function/func_sleeper -XPOST -d5   # times out
Can't reach service: func_sleeper

λ curl localhost:8080/function/func_sleeper -XPOST -d4
hi, sleeping for: 4
done

Types of changes

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

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[x] I have signed-off my commits with git commit -s
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

PS:
I've also added --no-cache to the dockerfile for when there is no $http_proxy.
This may or may not be desireable.

Please test via #100 - which includes your change and also hard timeouts for the exec/forked process.


Possible to load an external library?

Hello,
My apologies if this is not the right place; I didn't see a mailing list and the main hit I get is the intro blog post which didn't seem the best, either.
To try and keep it brief, there's a desire to export image files from plotly without having to go through their servers. The functionality exists in their library, but one has to open the .html in a browser to trigger the downloadImage() function.
Due to this, solutions are somewhat hokey, relying on selenium and phantomjs to fake a browser session and either screenshot the page or trigger the download. I'm wondering if py_mini_racer would allow for calling the js code directly without having to do this.
I'm a python noob, and even more so for js. I think what I'm asking is, "Can I do the equivalent of this with py_mini_racer"?
<head>
  <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>

Then, I could do something like this, replicating what would normally be inside of <script>:
ctx.eval("""
Plotly.plot( "div_name", [{
	x: [1, 2, 3, 4, 5],
	y: [1, 2, 4, 8, 16] }], {
	margin: { t: 0 } } );
"""

Am I understanding this library correctly?

In some digging, I just found the R package for V8, including a reference to ct$source() which will load an external library. I looked up that function, and to my surprise they're just reading the file and doing eval() on the contents!
I could reproduce their crossfilter example, but not plotly. I thinks it's due to this:

plotly.js is browser package, with no intention of working in vanilla node.js.

Maybe this should have been obvious... for any others wondering how to do this, I think it's as simple as just running the file:
cf_url = 'https://cdnjs.cloudflare.com/ajax/libs/crossfilter/1.3.11/crossfilter.min.js'
cf_js = urllib.request.urlopen(cf_url).read().decode('utf-8')

### or read locally
# with open('/path/to/crossfilter.min.js') as f:
#     cf_js = f.read()

ctx = py_mini_racer.MiniRacer()
ctx.eval(cf_js)

Glad to know it worked, thanks for the heads up @jwhendy.

I have basically the same question, but how to load an npm module
I will try downloading it manually and eval the contents 👍

A note to help anyone else in the same boat...
I'm not sure if generally npm modules will work. But fortunately the one I wanted to use also provided a minified version for use in browser.
The module was supposed to export a type RandExp, looking at the minified source I could see this at the end:
"function"==typeof define&&"object"==typeof define.amd?define("RandExp",function(){return e}):"undefined"!=typeof window&&(window.RandExp=e)}();

Just eval-ing the minified source did not make the code usable in mini racer.
It seems that in v8 we have neither define nor window. I guess define.amd is for node.js usage (and is probably why npm modules won't work) and window is expected in browser environment but is "undefined" for us.
This was easily worked around though:
from py_mini_racer import py_mini_racer

ctx = py_mini_racer.MiniRacer()

with open("src/randexp.min.js") as f:
    randexp_src = f.read()

ctx.eval("const window = new Object()")
ctx.eval(randexp_src)
ctx.eval("const RandExp = window.RandExp")

ctx.eval("RandExp")
<py_mini_racer.py_mini_racer.JSFunction at 0x10c4ca810>


KCFG node storage in separate files

This PR integrates with https://github.com/runtimeverification/pyk/pull/532/ to provide a different KCFG storage structure where each node is a separate file.

Closing this as the functionality was included in #5168.


picture tag support

please add picture tag support and opportunity to use it with lazy load

that wold be great to use the new WEBP format

Yes,  tag support would be great. How can we implement that?  :-)

<picture> tag support is a good option, but it has no lazy loading
It would be great, if we somehow had an ability to specify WebP URLs for large images when using thumbnails at the same time.
For example, now I use Fotorama like this:

		<picture>
			<source srcset="/file-1_thumb.webp" type="image/webp" />

		</picture>

		<picture>
			<source srcset="/file-2_thumb.webp" type="image/webp" />

		</picture>

So, I’m using WebPs for thumbnails, but have no ability to use it for large images, as they are specified bu href attribute and I got different URLs for JPGs and WebPs.
This can be solved server-wise by providing one URL for different versions of the image (web server checks for Accept: image/webp header and output WebP image instead of JPG one), then it works fine. But Fotorama could provide functionality to specify different URLs.


Add diversity not visible

I was very tempted to rephrase "When your whole lineup is white men, there's a clear problem." to something along the lines of "When your whole lineup is visible homogeneous, there's a clear problem." as it fits a bit more with the rest of the rewording.
Any thoughts?

I think I'm fine with that phrase as-is - feels more like an example now, and I'm cautious about going to much for general statements everywhere, rather than concrete examples.
This change all looks great to me though. Merged! Thanks Hereward :+1:

Great suggestions, thank you Hereward!!


ip_updateFooter - Allows replacing a footerview's content after creation

Adds a method for dynamically updating a UITableViews footer after it has been initially created.
This comes in handy when using a custom view within a table's footer that needs to change after creation.

I know we use this in Monet, but not sure it's useful for everyone. Someone from outside the project should probably give this another 👀
👍

Waiting until the Swift 3 migration is complete before coming back to this.

@alexpersian What's the status here? I'm leaning towards closing this -- I'm not sure the use case merits being in swift wisdom.

@paulrolfe I can concede that it's not a general enough use case to be included here. Close away.


[BugFix] Persist LoadStatistic in EtlStatus

What type of PR is this：

[x] bug
[ ] feature
[ ] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #3555
Problem Summary(Required) ：

The main reason is that LoadJob did not persist LoadStatistic in the process of either replaying or snapshot. Unfortunately, there is no obvious way to add new metadata since we persist the LoadJob class in a hard-coded way. After due consideration, we serialized LoadStatics in JSON for the convenience of adding/deleting fields in the future and hide this JSON in a deprecated map in EtlStatus.

[FE PR Coverage Check]
:disappointed: fail : 15 / 60 (25.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/load/loadv2/SparkLoadJob.java
0
3
00.00%
[325, 328, 329]

:large_blue_circle:
com/starrocks/load/loadv2/LoadJob.java
0
4
00.00%
[219, 223, 227, 708]

:large_blue_circle:
com/starrocks/load/loadv2/BulkLoadJob.java
0
1
00.00%
[228]

:large_blue_circle:
com/starrocks/load/EtlStatus.java
15
52
28.85%
[103, 251, 252, 253, 327, 328, 329, 330, 331, 332, 335, 336, 339, 340, 341, 342, 343, 347, 348, 349, 350, 352, 353, 355, 359, 360, 361, 362, 364, 365, 366, 367, 368, 369, 370, 371, 372]

[FE PR Coverage Check]
:disappointed: fail : 49 / 62 (79.03%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/load/loadv2/SparkLoadJob.java
0
3
00.00%
[325, 328, 329]

:large_blue_circle:
com/starrocks/load/loadv2/LoadJob.java
0
4
00.00%
[219, 223, 227, 708]

:large_blue_circle:
com/starrocks/load/loadv2/BulkLoadJob.java
0
1
00.00%
[228]

:large_blue_circle:
com/starrocks/load/EtlStatus.java
49
54
90.74%
[338, 339, 340, 341, 342]

run starrocks_admit_test

run starrocks_admit_test

run all

[FE PR Coverage Check]
:disappointed: fail : 49 / 62 (79.03%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/load/loadv2/SparkLoadJob.java
0
3
00.00%
[325, 328, 329]

:large_blue_circle:
com/starrocks/load/loadv2/LoadJob.java
0
4
00.00%
[219, 223, 227, 708]

:large_blue_circle:
com/starrocks/load/loadv2/BulkLoadJob.java
0
1
00.00%
[228]

:large_blue_circle:
com/starrocks/load/EtlStatus.java
49
54
90.74%
[338, 339, 340, 341, 342]

run starrocks_admit_test

@Mergifyio backport branch-2.3 branch-2.2 branch-2.1 branch-2.0
Gracias~ ¡Tenga un buen día!


Add POST request functionality

Backend: support POST request in Flask
Frontend: serialize plaquettes and qubits into JSON, add to request payload

Although structurally im a little hesitant to put the post request in the index.js,

Can you elaborate on where it should be?

Additionally to my comments, I have issues with #40 that introduced non-library files into the tqec library folder. Another PR might be the best place to discuss this, I do not know.
As a side note, it would be nice if I was a required reviewer for anything backend-related. I didn't have the time to comment on #40 before it was merged, and I had a few comments.

Additionally to my comments, I have issues with #40 that introduced non-library files into the tqec library folder. Another PR might be the best place to discuss this, I do not know. As a side note, it would be nice if I was a required reviewer for anything backend-related. I didn't have the time to comment on #40 before it was merged, and I had a few comments.

In any future PR that modifies the backend, I will request your review.

Although structurally im a little hesitant to put the post request in the index.js, it's a good start and the buttons etc can be moved alter.

I believe I have addressed this concern by refactoring the buttons.

I have issues with https://github.com/QCHackers/tqec/pull/40 that introduced non-library files into the tqec library folder.

We can easily move non-library file like this outside the tqec directory.

it would be nice if I was a required reviewer for anything backend-related

Ideally, the server setup should be independent of the back-end stuff you implement and thus shouldn't strictly need your review. Let's setup a process that makes this possible.

Ideally, the server setup should be independent of the back-end stuff you implement and thus shouldn't strictly need your review. Let's setup a process that makes this possible.

Perhaps we could each be assigned to one or more teams (eg, frontend, web, lib)? Since there are only a few of us working on this codebase, I have just been requesting @vtomole , @rryoung98 , @nelimee on PR’s, but I’m open to adding more structure, especially as more people join. I know we have teams already for the tasks, but I don’t know if the status of that has changed since our last discussion in the Group.

Ideally, the server setup should be independent of the back-end stuff you implement and thus shouldn't strictly need your review. Let's setup a process that makes this possible.

Perhaps we could each be assigned to one or more teams (eg, frontend, web, lib)? Since there are only a few of us working on this codebase, I have just been requesting @vtomole , @rryoung98 , @nelimee on PR’s, but I’m open to adding more structure, especially as more people join. I know we have teams already for the tasks, but I don’t know if the status of that has changed since our last discussion in the Group.

I guess that we can still wait and see who is willing to help with the code before assigning teams. And maybe speak about the current state of the code next Wednesday (I can do that for the library part).
Also, I think that the backend server files should be moved in this PR (per its description). Once this is done, I am happy to validate the changes :)

@smburdick My suggestion to add a web directory was more for repo organization not team organization.

@smburdick My suggestion to add a web directory was more for repo organization not team organization.

Understood. I agree with the directory name changes -- I'll rename tqec-backend to web to disambiguate.

Also, I think that the backend server files should be moved in this PR (per its description). Once this is done, I am happy to validate the changes :)

Merging with main re-created some of the server files in src, so I'll go ahead and delete those and add that to this PR.
I asked about teams since @nelimee wanted to be included in a previous PR and wanted to suggest a system for making sure people are assigned the PRs that they are interested in participating in.

I asked about teams since @nelimee wanted to be included in a previous PR

@nelimee wouldn't have been needed in the previous PR if I had suggested we put that code in the web directory. My bad. I don't think teams are needed at the moment since it's only 4 of us. After moving the server files to web anything in src will need @nelimee as a reviewer.

Now that i think about it, maybe we want to rename  web to server because tqecjs would also qualify as web.

Now that i think about it, maybe we want to rename web to server because tqecjs would also qualify as web.

To make it even more descriptive, how about flask-server?
I was thinking about tqecjs/ as well. It'd make sense to keep that name if there were more multiple frontends (for example, if we decided to write a tkinter GUI that could run the whole nine yards locally).

server is fine. I don't think we are going to be writing other servers in the future. Likewise for tqecjs. We are already short-staffed with respect to creating one frontend. We probably won't be writing others. Maybe we can rename it to frontend for now.

@smburdick Thanks. Let's move the discussion renaming of tqecjs elsewhere.

Although structurally im a little hesitant to put the post request in the index.js,

Can you elaborate on where it should be? Would it make more sense to create a downloadButton class and invoke it from the workspace?

yes I figured given the number of calls we'll make, that it might be good to dedicate a file to api calls, like a "templateActions.js"

Although structurally im a little hesitant to put the post request in the index.js,

Can you elaborate on where it should be? Would it make more sense to create a downloadButton class and invoke it from the workspace?

yes I figured given the number of calls we'll make, that it might be good to dedicate a file to api calls, like a "templateActions.js". not a big deal at the moment :)

@rryoung98 Are there any changes you'd like me to make to the current revision?

The PR needs to wait a bit because it still works in the plaquette first then tile interface and there have been a decent amount of changes made on my PR #69 that is intended to fix these.
Could we merge my branch then check for merge conflicts on this branch? In particular with the TileClass (now TemplateClass).
Otherwise, changes look good.

@rryoung98 ,
Thanks. I'm taking a look at #69 right now. We can merge that one first.
I will admit I went a little out of scope in this PR -- I did a lot of refactoring on Saturday and wanted to push it out. It probably should have been in its own PR, but I was already making some changes to the frontend in this PR anyway, so I added it on anyway.
I think once these are merged, we should follow up on this morning's ask of creating more tasks for the frontend and assigning those, so no work is duplicated. I didn't really lose any time myself -- it was good practice for me anyway :) @vtomole are you interested in helping with the frontend task breakdown too?

@vtomole are you interested in helping with the frontend task breakdown too?

Sure. Is there an existing issue that we can take this discussion to?

I created #74 for planning purposes.

Hey @smburdick  i think this is safe to commit after fixing the conflicts, let me know if you have any questions on how things should be merged

Sorry about that, and i can be more diligent about writing issues

Had to close this PR as I have moved my work to another branch.


rpi info: error: SHELL (110): getState: script not found

I'm running Homebridge on a RaspberryPI 4 in a docker container and want to get access to the GPIO-pins.
I followed the instructions for "Remote Raspberry Pi Configuration" with success except...
The step "pigs shell getState" returns 32512 iso 0; The file getState.json is however created in /tmp and has all data it should have.
The final check (I've run "RPI -H xxx.xxx.xxx.xxx info" from within the terminal of Homebridge) however fails with the message "rpi info: error: SHELL (110): getState: script not found"
In the log of homebridge I also get the message "My RaspberryPi: warning: heartbeat error: SHELL (110): getState: script not found"
I did the same on a second raspberry pi, with the same result.
Any idea where to look for a solution?
Thx.

You probably didn't create the getState script correctly.  Make sure its contents match https://github.com/ebaauw/homebridge-rpi/blob/main/opt/pigpio/cgi/getState exactly, in particular, that there's no +++ on the last line.

Yes! Those +++ made the difference. Deleting them solved the problem for both pi’s. Thx for this rapid answer and solution.

Yes! Those +++ made the difference. Deleting them solved the problem for both pi’s. Thx for this rapid answer and solution.


virtcontainers: set private propagation in rootfs

When overlay is used as storage driver, kata runtime creates a new bind mount
point to the merged directory, that way this directory can be shared with the
VM through 9p. By default the mount propagation is shared, that means mount
events are propagated, but umount events not, to deal with this problem and to
avoid left mount points in the host once container finishes, the mount
propagation of bind mounts should be set to private.
fixes #794
Signed-off-by: Julio Montes<EMAIL_ADDRESS>

/test

Nice. So this means we do not strictly need to create a new mount namespace anymore @devimc .

@amshinde

Nice. So this means we do not strictly need to create a new mount namespace anymore @devimc .

it depends, if we want to improve the isolation/security we have to, because currently host's rootfs is available/visible for qemu,shim and proxy, this change is just to fix the issues with docker cp

@devimc by using this private mount, are we sure we're not breaking the mount propagation?

@kata-containers/runtime  please take a look

Why umount events are not propagated? For mount propagation, mount and umount events should be same.

@caoruidong

Why umount events are not propagated?

It depends of the propagation type: shared, private or slave, see http://man7.org/linux/man-pages/man2/mount.2.html
please take a look to https://github.com/kata-containers/tests/pull/971

I see shared is “Mount and unmount events
immediately under this mount point will propagate to the other
mount points that are members of this mount's peer group.”

@devimc any updates in this PR?


collapsible's programmatic 'open' behaves like a toggle

Expected Behavior

For a collapsible, the programmatic open
$('.collapsible').collapsible('open', 0);
should just open it. I.e., if the collapsible was originally closed, it should be open after the call; if it was already open, it should stay open after the call.

Current Behavior

The call currently behaves like a toggle, i.e., open -> closed, closed -> open. Here's a codepen link:
https://codepen.io/anon/pen/RZwWeW
Notice that the 'close' call
$('.collapsible').collapsible('close', 0);
Behaves as expected (i.e., does not toggle).

Agreed, this is currently being fixed / is fixed over on 85daa7c2e1e108c45540c65b9dc6c863731a9e06


Chore/benefit issue default advance and content update

Closes various issues and makes a few content updates. Closes #349 #351 #353 #354 #360 #361 #362

Updated content on html of benefits page
Updated future or past html to not auto check a box
Added domain to make sure option is selected
Added validators for the options submitted and added it to URL validator
Updated car journey to have a displayname for prisons
Updated claim summary expense helper to use displayname for cars to journey to prisons
Updated redirect on view claim post
Updated forEdit to look for an updated argument
Updated content on expenses html and dob html

Checklist

[x] Unit tests
[x] Code coverage checked
[x] Coding standards
[x] Error Handling

Add test in test-field-validator to make sure an error is returned when  calling isValidBenefit and fromDomain is false


Enable animation outputs to be playable on stock Windows media player

IceNet version: v0.2.8
Python version: 3.11
Operating System: Linux x64

Description
Relates to icenet-ai/icenet-pipeline#42.
Update plotting animation output args to allow playing on stock Windows Media Player without third party install (useful on systems with restricted access).
Relevant snippet:
https://github.com/icenet-ai/icenet/blob/f1285368eb731ed473c6b574b1d48ae574a8c01e/icenet/plotting/forecast.py#L1201

Hm... turns out issue is just on the ffmpeg video outputs from icenet-pipeline repo.
The video outputs in this library seem to be working as is on Windows, hence, close as won't fix.


onkeydown event not working

For context, I try to port the elm-playground library to OCaml using ocaml-vdom. I manage to get a few examples working
but I am currently stuck with the way the keyboard is handled in ocaml-vdom vs Elm.
I would like to generate a msg `Keydown each time the user press a key anyway in the page, but it does not work.
Here is the smallest program showing the problem:
open Vdom

type model = string

let update _ = function
  | `Click ->
      "Click:"
  | `Keydown s ->
      "Keydown:" ^ s

let init = "EMPTY"

let view s =
  div
    ~a:[
    onkeydown (fun evt -> `Keydown (Printf.sprintf "%d" evt.which));
    autofocus;
  ]
    [
      div [text (Printf.sprintf "Content: %s" s)];
      div [input [] ~a:[onclick (fun _ -> `Click); type_button; value "Update"]]
    ]

let app = simple_app ~init ~view ~update ()

open Js_browser

let run () = Vdom_blit.run app |> Vdom_blit.dom |> Element.append_child (Document.body document)
let () = Window.set_onload window run

If I type a key in the page, nothing changes.
However, if I click on the button, and then I type a key anywhere, then the event gets triggered.

Note that Elm provides not only an event for keydown but also for keyup (which are useful to implememt games with elm-playground).

Any help? Is this project dead? Should I switch to another OCaml library (e.g., Brr by daniel buenzli?)

If no element under the div has the focus, the KeyDown event won't trigger.  You might want to use a Custom elements to attach a global handler.

Is there any code doing that I could imitate? I'm not very familiar with those custom elements.

Is this issue fixed in the vdom 0.3 version?
https://discuss.ocaml.org/t/ann-vdom-0-3-functional-ui-applications-now-with-custom-event-handlers/13298


Changing the footer styling

As a GSSOC' 23 contributor, I would like to change the designing of the footer style as it looks so boring  . Please assign this issue to me.

Hey @Abhirup-02 @Soumyajit2825 @ronitblenz
Improving the footer to the application can provide various benefits for functionality and user experience. Consider including navigation links, social media icons, copyright information, terms of service, privacy policy, and contact information. These elements enhance navigation, brand visibility, legal compliance, and user trust. Customize the footer based on your application's goals and target audience will be beneficial.
I have already contributed to similar task which makes it easier to successfully complete the task
Please assign me this task under GSSoC'23
Thank you

hello sir can you assign this task to me I would like to make this footer more attractive it will be my pleasure if i work on it

Please assign me this issue as GSSOC 23

Already assigned to somebody else.


parseHelper and other test helpers that use it can cause non-deterministic test failures

If no URI is provided to the parseHelper function, it generates one using a random number and the first registered file extension of the DSL. With many tests, however, collisions become increasingly noticeable, causing some tests to fail non-deterministically with the following error:
Error: A document with the URI 'file:///6821462.sdspipe' is already present.
    at DefaultLangiumDocuments.addDocument (...\node_modules\langium\src\workspace\documents.ts:328:19)
    at ...\node_modules\langium\src\test\langium-test.ts:33:52
    at parseDocument (...\node_modules\langium\src\test\langium-test.ts:356:52)
    at ...\node_modules\langium\src\test\langium-test.ts:336:32
    at ...\tests\formatting\testFormatter.test.ts:15:40
    at file://.../node_modules/@vitest/runner/dist/index.js:357:140
    at file://.../node_modules/@vitest/runner/dist/index.js:242:72
    at file:///.../node_modules/@vitest/runner/dist/index.js:41:26
    at runTest (file:///.../node_modules/@vitest/runner/dist/index.js:599:17)
    at runSuite (file:///.../node_modules/@vitest/runner/dist/index.js:708:15)

There are $10^7$ possibilities for the random number, so at 100 tests the probability of any collision is 0.05%, at 200 tests 0.2%, at 500 tests 1.24%, and at 1000 tests already 4.87%.
While this can be mitigated by specifying a URI when using parseHelper directly, other functions like validationHelper or expectFormatting call parseHelper internally but do not allow specifying the URI manually.
Langium version: 1.2.1
Package name: langium
Steps To Reproduce
Since the bug is non-deterministic, I cannot provide exact steps for reproduction. But I reckon the description above suffices.
The current behavior
More tests increase the probability of collisions to levels that are no longer tolerable.
The expected behavior
Even with many tests, the generated URIs should not collide. Maybe UUIDs could be used instead of the random numbers.

Hm, it make might sense to just use a continuous id for the tests (or uuid). In any case, you can also just call clearDocuments on the services in between tests to clear the documents list.

That's a nice workaround as well, thanks.


Tool does not work in Confluence if Page Layouts are activated

This page crated in Confluence has Page Layouts applied on. Links are generated for all the page name and headings but the icon is displayed and usable only for the page name.

That's odd. I can't figure out why it's happening there, but it probably happens on other sites too.
I moved the icon so it appears on the right side of the image instead of the left, which should always show. 🤞
Try updating the extension (the version is 1.2.5.. you might have to enable developer mode so you can see the update button), and see if the links appear. It's working for me now, but let me know if you run into any other problems.

Works well, thanks!


[Bug Report] search cancel button

Mint UI version
2.2.7
OS/Browsers version
win10,chorme
Vue version
2.2.6
Reproduction Link
https://jsfiddle.net/pj71jkyw/
Steps to reproduce
input something，and then click cancel button,there is nothing happen. I read the open source and found out there is no call func (地址一直验证不通过，放在下面了:http://www.loveinwall.com/#/)
What is Expected?
click the cancle button,and return a call func
What is actually happening?
there is no call func

我看了一下，最近的issue都没有回复，这个项目是没维护了吗