v0.2.5 cannot use next for scholarly.search_pubs_query

i just update to v0.2.5, but after using scholarly.search_pubs_query
I cannot use next(scholarly.search_pubs_query(title)) to get the information

report  StopIteration

Do any other functions work? If not, you may have been rate-limited. If other commands work, could you provide an example snippet of code for me to try locally?

scholarly.search_author can be used. but i find if has the time.sleep setup. if I cannot search many publications at the same time (or use iteration method), why do I need it to search it automatically?
Thank you very much

for example, the code like this,  the "tmp_paper_title"  can be any paper
tmp_paper_title = "Structural analysis of material flows in China based on physical and monetary input-output models"
tmp_search = scholarly.search_pubs_query(tmp_paper_title)
tmp_bib_fill = next(tmp_search).fill()

when I execute "tmp_bib_fill = next(tmp_search).fill()"  , it will report "StopIteration"

I'm not having an issue, so I'm assuming that you've been rate-limited by Google:
>>> import pprint
>>> import scholarly
>>> tmp_paper_title = "Structural analysis of material flows in China based on physical and monetary input-output models"
>>> tmp_search = scholarly.search_pubs_query(tmp_paper_title)
>>> tmp_bib_fill = next(tmp_search).fill()
>>> pprint.pprint(tmp_bib_fill.__dict__)
{'_filled': True,
 'bib': {'ENTRYTYPE': 'article',
         'ID': 'liang2017structural',
         'abstract': 'The physical input-output (PIO) model has different '
                     'product flow scopes from the monetary input-output (MIO) '
                     'model. Using the PIO and MIO models to analyze the '
                     'structure of material flows can identify new hotspots '
                     'for policy decisions over each other. However, PIO '
                     'models are not well-studied in existing studies on the '
                     "structure of China's material flows. This study uses "
                     'both the PIO and MIO models to analyze consumption-based '
                     'material flows of Chinese sectors and critical supply '
                     "chain paths leading to China's material flows. Results "
                     'show that …',
         'author': 'Liang, Sai and Wang, Yafei and Zhang, Tianzhu and Yang, '
                   'Zhifeng',
         'eprint': '/scholar?output=instlink&q=info:XOhzwuduzXsJ:scholar.google.com/&hl=en&as_sdt=0,5&scillfp=2846449214753793698&oi=lle',
         'journal': 'Journal of Cleaner Production',
         'pages': '209--217',
         'publisher': 'Elsevier',
         'title': 'Structural analysis of material flows in China based on '
                  'physical and monetary input-output models',
         'url': 'https://www.sciencedirect.com/science/article/pii/S0959652617309174',
         'volume': '158',
         'year': '2017'},
 'citedby': 12,
 'id_scholarcitedby': '8920908378569697372',
 'source': 'scholar',
 'url_scholarbib': 'https://scholar.googleusercontent.com/scholar.bib?q=info:XOhzwuduzXsJ:scholar.google.com/&output=citation&scisdr=CgUom4nJGAA:AAGBfm0AAAAAXPqQM46Wk5WFkXaXPmRxZejm3v0BeQQ3&scisig=AAGBfm0AAAAAXPqQM-zZGBdKFu8gpbqRF75eKZlS9GY9&scisf=4&ct=citation&cd=0&hl=en'}

Thanks for your reply. If I have hundreds of papers need to be searched, could I banned by the google? If so. how can I solve it? or how can I search hundreds of papers using loops?
can it solve the problem replacing scholarly.scholarly._HEADERS["User-Agent"]
Your client does not have permission to get URL /scholar.enw?q=info:40eUk9hfkSgJ:scholar.google.com/&output=citation&scisdr=CgUFm6SAENGEvB2TGHg:AAGBfm0AAAAAXPqWAHhfTz6ZSbnWCjmvJ-WOs7WkfYHI&scisig=AAGBfm0AAAAAXPqWALp61s9AvPAClcPJNtbtmOCJBoG0&scisf=3&ct=citation&cd=0&hl=zh-CN from this server.
import glob
import scholarly
from bibtexparser.bwriter import BibTexWriter
from bibtexparser.bibdatabase import BibDatabase
import gc
import time
from fake_useragent import UserAgent
pdf_file_path = 'P:\research content\MRIO_land_intensity\biodiversity\'
pdf_file_list = glob.glob(pdf_file_path + "*.pdf")
bib_path = 'E:\download_bib\'
for i in range(len(pdf_file_list)):
ua = UserAgent()
scholarly.scholarly._HEADERS["User-Agent"] = ua.chrome
tmp_pdf_name = pdf_file_list[i].split("\")[-1]
tmp_paper_title = tmp_pdf_name[:-4]
tmp_search = scholarly.scholarly.search_pubs_query(tmp_paper_title)
tmp_bib_fill = next(tmp_search).fill()
tmp_bib = tmp_bib_fill.bib
try:
db = BibDatabase()
db.entries = [tmp_bib]
writer = BibTexWriter()
tmp_bib_writer_name = tmp_paper_title + '.bib'
tmp_bib_writer_file = bib_path + tmp_bib_writer_name
with open(tmp_bib_writer_file, 'w') as bibfile:
bibfile.write(writer.write(db))
except:
print(tmp_bib_writer_name + "  error")
continue
else:
print(tmp_bib_writer_name + "  successfully")
del db, writer
ua.update()
time.sleep(5)
gc.collect()

Thanks for your reply. If I have hundreds of papers need to be searched, could it possible to be banned by the google? If so. how can I solve it? or how can I search hundreds of papers using loops?
can it solve the problem replacing scholarly.scholarly._HEADERS["User-Agent"]
error 403
Your client does not have permission to get URL /scholar.enw?q=info:40eUk9hfkSgJ:scholar.google.com/&output=citation&scisdr=CgUFm6SAENGEvB2TGHg:AAGBfm0AAAAAXPqWAHhfTz6ZSbnWCjmvJ-WOs7WkfYHI&scisig=AAGBfm0AAAAAXPqWALp61s9AvPAClcPJNtbtmOCJBoG0&scisf=3&ct=citation&cd=0&hl=zh-CN from this server.
> import glob
> import scholarly
> from bibtexparser.bwriter import BibTexWriter
> from bibtexparser.bibdatabase import BibDatabase
> import gc
> import time
> from fake_useragent import UserAgent
>
>
> pdf_file_path = 'P:\\research content\\MRIO_land_intensity\\biodiversity\\'
> pdf_file_list = glob.glob(pdf_file_path + "*.pdf")
> bib_path = 'E:\\download_bib\\'
>
> for i in range(len(pdf_file_list)):
>     ua = UserAgent()
>     scholarly.scholarly._HEADERS["User-Agent"] = ua.chrome
>     tmp_pdf_name = pdf_file_list[i].split("\\")[-1]
>     tmp_paper_title = tmp_pdf_name[:-4]
>     tmp_search = scholarly.scholarly.search_pubs_query(tmp_paper_title)
>     tmp_bib_fill = next(tmp_search).fill()
>     tmp_bib = tmp_bib_fill.bib
>     try:
>         db = BibDatabase()
>         db.entries = [tmp_bib]
>         writer = BibTexWriter()
>         tmp_bib_writer_name = tmp_paper_title + '.bib'
>         tmp_bib_writer_file = bib_path + tmp_bib_writer_name
>         with open(tmp_bib_writer_file, 'w') as bibfile:
>             bibfile.write(writer.write(db))
>     except:
>         print(tmp_bib_writer_name + "  error")
>         continue
>     else:
>          print(tmp_bib_writer_name + "  successfully")
>     del db, writer
>     ua.update()
>     time.sleep(5)
>     gc.collect()

Thanks for your reply. If I have hundreds of papers need to be searched, could I banned by the google? If so. how can I solve it? or how can I search hundreds of papers using loops?

Yes, you can and will be temporarily banned if the user agent cannot solve a CAPTCHA. This will happen regardless of the User-Agent because it is tied to your IP address. You should be able to reconnect after a few hours. Unfortunately, there is no way to bypass or solve the CAPTCHA in the current version, but you are welcome to try to find a solution!

One solution is to use a proxy (see the use_proxy command added in https://github.com/OrganicIrradiation/scholarly/pull/26) and potentially proxy through Tor.

One solution is to use a proxy (see the use_proxy command added in #26) and potentially proxy through Tor.

Thanks for your suggestion. I just uninstall scholarly, and then install scholarly. But I did not find scholarly. user_proxy() function
in addition, if it has the function, how can I send a new proxy for each loop?
thanks

Tor will take care of sending the request through a different IP each time. I am not sure if the latest version of scholarly on PyPI has the has_proxy into the build. (@OrganicIrradiation may need to initiate an additional build)

Tor will take care of sending the request through a different IP each time. I am not sure if the latest version of scholarly on PyPI has the has_proxy into the build. (@OrganicIrradiation may need to initiate an additional build)

oh, no, the same computer and the same network, I cannot create different IP. Do you have an idea how to use different IP. Because I have hundreds of papers.
thanks

The latest PyPi version does not currently have that feature; however you can install the latest github version in the meantime with pip install git+https://github.com/OrganicIrradiation/scholarly.git

@YupingBai
If you want to use the latest version with Tor:

pip install -U git+https://github.com/OrganicIrradiation/scholarly.git
pip install -U PySocks

Then install Tor. In a Debian-based Linux system, just run:
sudo apt-get install tor
The tor process starts automatically and listens on port 9050.
To verify that the tor process is running, run:
ps aux | grep '\btor\b'
To verify the port where tor is listening, run:
sudo netstat -l -n -p | grep tor
Then you can use scholarly as follows:
    import scholarly

    proxies = {'http' : 'socks5://<IP_ADDRESS>:9050', 'https': 'socks5://<IP_ADDRESS>:9050'}
    scholarly.scholarly.use_proxy(**proxies)

    print(next(scholarly.search_author('Steven A. Cholewiak')))

@ipeirotis
I'm getting this exception using proxies:
requests.exceptions.ProxyError: HTTPSConnectionPool(host='scholar.google.com', port=443): Max retries exceeded with url: /scholar?q=miguel+holgado+bola%C3%B1os&as_ylo=2018 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 501 Tor is not an HTTP Proxy',)))
Any idea what could be causing this?

@ipeirotis
I'm getting this exception using proxies:
requests.exceptions.ProxyError: HTTPSConnectionPool(host='scholar.google.com', port=443): Max retries exceeded with url: /scholar?q=miguel+holgado+bola%C3%B1os&as_ylo=2018 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 501 Tor is not an HTTP Proxy',)))
Any idea what could be causing this?

Hard to tell without looking at your code.

I've been looking into this issue. As @YupingBai has mentioned, search_author works fine but not search_pubs_query. The problem seems to be that the 'gs_or' div class is not being found here:
def _search_scholar_soup(soup):
    """Generator that returns Publication objects from the search page"""
    while True:
        for row in soup.find_all('div', class_='gs_or'):
            yield Publication(row, 'scholar')
        if soup.find(class_='gs_ico gs_ico_nav_next'):
            url = soup.find(class_='gs_ico gs_ico_nav_next').parent['href']
            soup = _get_soup(_HOST+url)
        else:
            break

Last time I've checked, each row div has the class gs_r gs_or gs_scl, but modyfing the old class with this one gives the same empty result. So I'm thinking maybe that part of the html is now being injected after the request somehow?

@jmlgh I'm not having any issues on my end with the example posted here. Can you provide a code snippet to demonstrate your issue? That being said, I'm not using a proxy, so I can't comment on whether there may be an issue there.

@OrganicIrradiation After looking at the response of the get request, it seems it was returning the recaptcha html, instead of the expected content. I’ve also been using the Tor proxies but get the same result.

@OrganicIrradiation I'm also having the same problem getting StopIteration, even with your example, i.e. with this code:
import scholarly

proxies = {'http' : 'socks5://<IP_ADDRESS>:9050', 'https': 'socks5://<IP_ADDRESS>:9050'}
scholarly.scholarly.use_proxy(**proxies)

tmp_paper_title = "Structural analysis of material flows in China based on physical and monetary input-output models"
tmp_search = scholarly.search_pubs_query(tmp_paper_title)
tmp_bib_fill = next(tmp_search).fill()

print(tmp_bib_fill.__dict__)

Just tried it, and this is what I get back
{'_filled': True,
 'bib': {'ENTRYTYPE': 'article',
         'ID': 'liang2017structural',
         'abstract': 'The physical input-output (PIO) model has different '
                     'product flow scopes from the monetary input-output (MIO) '
                     'model. Using the PIO and MIO models to analyze the '
                     'structure of material flows can identify new hotspots '
                     'for policy decisions over each other. However, PIO '
                     'models are not well-studied in existing studies on the '
                     "structure of China's material flows. This study uses "
                     'both the PIO and MIO models to analyze consumption-based '
                     'material flows of Chinese sectors and critical supply '
                     "chain paths leading to China's material flows. Results "
                     'show that …',
         'author': 'Liang, Sai and Wang, Yafei and Zhang, Tianzhu and Yang, '
                   'Zhifeng',
         'journal': 'Journal of Cleaner Production',
         'pages': '209--217',
         'publisher': 'Elsevier',
         'title': 'Structural analysis of material flows in China based on '
                  'physical and monetary input-output models',
         'url': 'https://www.sciencedirect.com/science/article/pii/S0959652617309174',
         'volume': '158',
         'year': '2017'},
 'citedby': 15,
 'id_scholarcitedby': '8920908378569697372',
 'source': 'scholar',
 'url_scholarbib': 'https://scholar.googleusercontent.com/scholar.bib?q=info:XOhzwuduzXsJ:scholar.google.com/&output=citation&scisdr=CgVGh4t0GAA:AAGBfm0AAAAAXSynfZSB6QjL3E7V-gEnGz2tmyyVR64_&scisig=AAGBfm0AAAAAXSynfRQ8_L5pr72Na9f_TRIxTESQdE74&scisf=4&ct=citation&cd=0&hl=en'}

It seems that you need to install Tor properly.

@ipeirotis Well, when I run Tor, I'm getting the following output. Is it ok? I have no previous experience with it...
Jul 15 18:21:01.462 [notice] Tor <IP_ADDRESS> (git-ca1a436fa8e53a32) running on Linux with Libevent 2.1.8-stable, OpenSSL 1.1.1, Zlib 1.2.11, Liblzma 5.2.2, and Libzstd 1.3.5.
Jul 15 18:21:01.462 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Jul 15 18:21:01.462 [notice] Read configuration file "/etc/tor/torrc".
Jul 15 18:21:01.464 [notice] Scheduler type KIST has been enabled.
Jul 15 18:21:01.464 [notice] Opening Socks listener on <IP_ADDRESS>:9050
Jul 15 18:21:01.465 [warn] Could not bind to <IP_ADDRESS>:9050: Address already in use. Is Tor already running?
Jul 15 18:21:01.465 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Jul 15 18:21:01.465 [err] Reading config failed--see warnings above.

In a Debian-based Linux system, just run:
sudo apt-get install tor
The tor process starts automatically and listens on port 9050.
To verify that the tor process is running, run:
ps aux | grep '\btor\b'
To verify the port where tor is listening, run:
sudo netstat -l -n -p | grep tor

@ipeirotis Thank you! Now, the output seems ok to me...
$ ps aux | grep '\btor\b'
debian-+ 31557  0.2  0.2  58940 39684 ?        Ss   18:02   0:03 /usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 0
$ sudo netstat -l -n -p | grep tor
tcp        0      0 <IP_ADDRESS>:9050          <IP_ADDRESS>:*               LISTEN      31557/tor
unix  2      [ ACC ]     STREAM     LISTENING     474898   31557/tor            /var/run/tor/socks
unix  2      [ ACC ]     STREAM     LISTENING     474899   31557/tor            /var/run/tor/control

@ipeirotis Also, now I'm getting another error, which is, I believe, just caused by many attempts to connect:
Traceback (most recent call last):
  File "test2.py", line 7, in <module>
    tmp_search = scholarly.search_pubs_query(tmp_paper_title)
  File "/home/martin/scholarly/scholarly/scholarly.py", line 320, in search_pubs_query
    soup = _get_soup(_HOST+url)
  File "/home/martin/scholarly/scholarly/scholarly.py", line 99, in _get_soup
    html = _get_page(pagerequest)
  File "/home/martin/scholarly/scholarly/scholarly.py", line 94, in _get_page
    raise Exception('Error: {0} {1}'.format(resp.status_code, resp.reason))
Exception: Error: 429 Too Many Requests

But, if I'm not mistaken, connecting through proxy should also deal with this, shouldn't it?

@jmlgh I'm not having any issues on my end with the example posted here. Can you provide a code snippet to demonstrate your issue? That being said, I'm not using a proxy, so I can't comment on whether there may be an issue there.

Here is my snippet, search_query works
search_query = scholarly.search_pubs_query('Awe virtual reality')
print(next(search_query))
:results:
Out [42]:
output
{'_filled': False,
'bib': {'abstract': 'The emotion of awe is characterized by the perception of '
'vastness and a need for accommodation, which can include '
'a positive and/or negative valence. While a number of '
'studies have successfully manipulated this emotion, the '
'issue of how to elicit particularly …',
'author': 'A Chirico and DB Yaden and G Riva and A Gaggioli',
'eprint': 'https://www.frontiersin.org/articles/10.3389/fpsyg.2016.01766',
'title': 'The potential of virtual reality for the investigation of '
'awe',
'url': 'https://www.frontiersin.org/articles/10.3389/fpsyg.2016.01766'},
'source': 'scholar'}
:end:
but note that there is no 'url_scholarbib' field returned. Then running your example
pub = next(scholarly.search_pubs_query('frequency-domain analysis of haptic gratings cholewiak')).fill()
print(pub)
results in an error,
:results:
AttributeErrorTraceback (most recent call last)
 in
----> 1 pub = next(scholarly.search_pubs_query('frequency-domain analysis of haptic gratings cholewiak')).fill()
2 print(pub)
/usr/local/anaconda3/envs/py373/lib/python3.7/site-packages/scholarly/scholarly.py in fill(self)
200             self._filled = True
201         elif self.source == 'scholar':
--> 202             bibtex = _get_page(self.url_scholarbib)
203             self.bib.update(bibtexparser.loads(bibtex).entries[0])
204             self._filled = True
AttributeError: 'Publication' object has no attribute 'url_scholarbib'
:end:
This is the scholarly 0.2.5 installed by pip. I'll test with latest github.

Hey guys, I'm also having issues, and tried using the tor proxy as @ipeirotis suggested, but can't get the get_proxy work. I did install it through GitHub but i might be doing somthing wrong with pip. I get this error:
AttributeError: module 'scholarly' has no attribute 'use_proxy'

any tips?

@cerkut Hi, I got this same AttributeError. Did you figure out the problem?

hello,
I have start my Tor on Macbook,
 brew services start tor

and use proxy on my proxy:
proxies = {'http' : 'socks5://<IP_ADDRESS>:9050', 'https': 'socks5://<IP_ADDRESS>:9050'}
	scholarly.scholarly.use_proxy(**proxies)

But it lock on my search line of script:
...
search_query = scholarly.search_pubs_query("keyword")
...

Do I need to setup any other thing?
It seems that my script can't connect to tor!

Added examples for using proxies and Tor in the README. I am closing this issue for now.


hostdb: remove latency with cache misses

If hostdb suffers a cache miss, it would schedule a continuation to process the dns lookup.  Unfortunately, at some point in time, this event was scheduled with a delay instead of immediately.  This PR restores that and saves 20ms on a dns lookup.
Also, if the probe request could be fulfilled by parsing an IP or the hostfile, this was also delayed by the same 20ms.  This PR also moves those two checks to probe-time rather than dns lookup time (neither require IO).
coauthored by: @moonchen

[approve ci autest]

bad_chunked_encoding test failed. rescheduling the autests.

[approve ci autest]

slice_prefetch failed.

I did some benchmarking before/after this change:
The test setup is a list of hosts with about 300 different hostnames and then 200 lines of <IP_ADDRESS>
The benchmark will randomize this list for each thread in the test and then perform a HostDB lookup for each line. Ideally, hostdb will perform as few actual DNS lookups as possible and realize the IP address can just be use directly.
Before this PR:
Hosts: 503 lookup count: 14282 thread count: 64
dns min/max: 0.016236/0.028204
imm min/max: 0.000000/0.000031
Total results: 32192 average lookup 0.008421

real    0m4.678s
user    0m0.388s
sys     0m0.471s

After this PR:
Hosts: 503 lookup count: 464 thread count: 64
dns min/max: 0.000011/0.012030
imm min/max: 0.000000/0.000433
Total results: 32192 average lookup 0.000065

real    0m0.408s
user    0m0.342s
sys     0m0.220s

Analysis:
Comparing the DNS min/max time, you can see the drop of about 20ms that comes directly from the unfortunate schedule delay.  You can also see from the lookup count that HostDB could immediately return way more results after this PR.  This is due to the fact that lookups to IP addresses are not considered misses  now (and subsequently aren't subject to the unfortunate delay).
Finally note that the average lookup time and total runtime are an order of magnitude faster.
This host list was picked to show a scenario where less than half of lookups take the IP parse path which will be a fairly bad case for the pre-PR HostDB code.  A list with all resolvable hostnames would not have shown this drastic of a difference.

Cherry-picked to v10.0.x


luarocks make --pack-binary-rock repacks all dependencies

If we need to make dozens of rocks using --pack-binary-rock luarocks packs every dependency for each rock.
Can we use rocks already installed in system to make rocks with --pack-binary-rock

Maybe LR with --pack-binary-rock should not install any dependencies at all. If dependency is not already installed in the system, then fail.
It is not perfect of course, and we'd prefer to be able to point somewhere (not to system-installed rocks) where depencencies are. At the place where we collect all the built rocks? But we'd have to track dependencies manually then, which is not so good.

If dependency is not already installed in the system, then fail.
It feels bit wierd to look for dependecies for rocks we are making in the system, while trying to avoid contaminating system using --pack-binary-rock flag.
So the ability to point to some alternative place where all expected depencencies are installed seems absolutely awesome.

Maybe --pack-binary-rock could set automatically --deps-mode=none
d:\trunk_git>luarocks build --pack-binary-rock --deps-mode=none redis-lua
Warning: skipping dependency checks.
Updating manifest for C:\Users\Ignacio\AppData\Local\Temp/luarocks_luarocks-build-pack-redis-lua-2371/lib/luarocks/rocks
No existing manifest. Attempting to rebuild...
Missing dependency for redis-lua 2.0.4-1: luasocket
Missing dependency for redis-lua 2.0.4-1: luasocket
redis-lua 2.0.4-1 is now built and installed in C:\Users\Ignacio\AppData\Local\Temp/luarocks_luarocks-build-pack-redis-lua-2371 (license: MIT/X11)

So the ability to point to some alternative place where all expected depencencies are installed seems
absolutely awesome.

This can surely be done via configuration file.

Maybe --pack-binary-rock could set automatically --deps-mode=none

Don't know if this is good as a default behavior. Those who need it in custom environments as above can use the flag as you described, but as a default I'd prefer if LuaRocks actually went through the dependencies to make sure they're usable, as a sort of additional Q/A when one is packing a binary rock for redistribution.
Given we have a few alternatives already supported, can we close this one?

Sure.


compiler.hooks.compilation.tap broken setup webpack problem setup bug

Bug or support request summary
I'm following the guide https://storybook.js.org/basics/guide-vue/ for vue. As soon as i try to run the storybook it breaks
Steps to reproduce
Follow all the steps from https://storybook.js.org/basics/guide-vue/ on a Linux/Ubuntu Machine (18 LTS). As soon as you get to "npm run storybook" you get the following:
> start-storybook -p 9001 -c .storybook

info @storybook/vue v3.4.11
info
exec: fatal: No such remote 'origin'

=> Using default webpack setup based on "vue-cli".
/home/travis/Documents/jtlprograms/hellovue/node_modules/webpack/lib/DefinePlugin.js:93
		compiler.hooks.compilation.tap(
		               ^

TypeError: Cannot read property 'compilation' of undefined
    at DefinePlugin.apply (/home/travis/Documents/jtlprograms/hellovue/node_modules/webpack/lib/DefinePlugin.js:93:18)
    at Compiler.apply (/home/travis/Documents/jtlprograms/hellovue/node_modules/@storybook/core/node_modules/tapable/lib/Tapable.js:375:16)
    at webpack (/home/travis/Documents/jtlprograms/hellovue/node_modules/@storybook/core/node_modules/webpack/lib/webpack.js:33:19)
    at exports.default (/home/travis/Documents/jtlprograms/hellovue/node_modules/@storybook/core/dist/server/middleware.js:29:40)
    at buildDev (/home/travis/Documents/jtlprograms/hellovue/node_modules/@storybook/core/dist/server/build-dev.js:163:36)
    at Object.<anonymous> (/home/travis/Documents/jtlprograms/hellovue/node_modules/@storybook/vue/dist/server/index.js:23:22)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
    at Module.require (internal/modules/cjs/loader.js:636:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/home/travis/Documents/jtlprograms/hellovue/node_modules/@storybook/vue/bin/index.js:3:1)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>storybook: `start-storybook -p 9001 -c .storybook`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>storybook script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2018-10-12T20_23_31_894Z-debug.log
$ vue --version
3.0.5

Please specify which version of Storybook and optionally any affected addons that you're running
package.json
{
  "name": "hellovue",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint",
    "storybook": "start-storybook -p 9001 -c .storybook"
  },
  "dependencies": {
    "vue": "^2.5.17"
  },
  "devDependencies": {
    "@storybook/vue": "^3.4.11",
    "@vue/cli-plugin-babel": "^3.0.5",
    "@vue/cli-plugin-eslint": "^3.0.5",
    "@vue/cli-service": "^3.0.5",
    "babel-core": "^6.26.3",
    "vue-template-compiler": "^2.5.17"
  },
  "eslintConfig": {
    "root": true,
    "env": {
      "node": true
    },
    "extends": [
      "plugin:vue/essential",
      "eslint:recommended"
    ],
    "rules": {},
    "parserOptions": {
      "parser": "babel-eslint"
    }
  },
  "postcss": {
    "plugins": {
      "autoprefixer": {}
    }
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 8"
  ]
}

maybe https://github.com/storybooks/storybook/issues/3044 is not fixed?

If you want webpack 4, you should use the alpha version.
It won't be long till we release that as the new major: 4.0.0
Right now working on the release, finishing the documentation, migration guides, last bug fixes and trying to achieve the best compatibility.

The issue is you're using a webpack 4 plugin when storybook 3.x uses webpack 3.
So alternatively you can downgrade the plugin. But honestly the alpha is good, you should be able to use it.

Hey @ndelangen I'm ok with using whatever webpack works so i can start learning storybook. I'm new and trying to use the tutorial to get started. I never specified a version of webpack. To try and get started with vue storybook, I did the following (new project):
npm install -g @vue/cli
vue create hellovue  (tried defaults and tried manual)
cd hellovue

# straight from the tutorial so far (I still haven't manually specified a version of webpack)

npm i --save-dev @storybook/vue
npm i --save vue
npm i --save-dev babel-core

# Followed the rest of the tutorial and when it came time to run I did the following and got error:
npm run storybook

What part of the tutorial did I miss where I was suppose to install webpack (the current must be part of some other npm package.json because you can see from my post its not in mine)?
Where is the part that says how and what version of webpack to use?
How do I actually get vue storybook to work?

I tried npm --save-dev webpack@3 and storybook still not working.
I also tried  npm --save-dev<EMAIL_ADDRESS>and  storybook still not working.

Hey @ndelangen I'm ok with using whatever webpack works so i can start learning storybook. I'm new and trying to use the tutorial to get started. I never specified a version of webpack. To try and get started with vue storybook, I did the following (new project):
npm install -g @vue/cli
vue create hellovue  (tried defaults and tried manual)
cd hellovue

# straight from the tutorial so far (I still haven't manually specified a version of webpack)

npm i --save-dev @storybook/vue
npm i --save vue
npm i --save-dev babel-core

# Followed the rest of the tutorial and when it came time to run I did the following and got error:
npm run storybook

What part of the tutorial did I miss where I was suppose to install webpack (the current must be part of some other npm package.json because you can see from my post its not in mine)?
Where is the part that says how and what version of webpack to use?
How do I actually get vue storybook to work?

I tried npm --save-dev webpack@3 and storybook still not working.
I also tried  npm --save-dev<EMAIL_ADDRESS>and  storybook still not working.

I think the tutorial you're following was likely written when vue-cli was still using webpack 3. It's been changed & upgraded in the mean time.
replace
npm i --save-dev @storybook/vue
with
npm i --save-dev @storybook/vue@alpha
in your tutorial. I think this will resolve the issue.

This is still happening for the react tutorial, I've used the alpha to get it working but I don't want fall into using an alpha just to get this working? Why isn't version 4.0.0 working?

What alpha are you using ? V4 is already stable. Can you elaborate on your usecase a bit ?

Sorry, ignore my previous comment - I just re-installed storybook again, and its running version 4.0.8 fine. :)


Adjusting the BeforeStart () position

BeforeStart () executes too late, so I can't modify s.opts.Handler in it

@asim @vtolstov


Feature Request: Add the ability to load CABundle from cluster in AppBinding

When you do not provide TLS and a CA Bundle and just let KubeVault generate self signed ones for you it's not possible to ship AppBinding at the same time without clientConfig.insecureSkipTLSVerify.
In the documentation that is discouraged, understandably, so you have to do the following steps:

Deploy Vault using a VaultServer config without specifying TLS and CA.
After KubeVault has generated the CA and TLS you have to get the CABundle from the cluster.
Copy that CABundle into the AppBinding.

This is a manual process and not possible with automatic workflow.
I propose that the operator should be able to get this information from the cluster by one of the following methods:

In the source code it is mentioned that the CABundle will be stored in the tls-secret which it does not do. Provided that it does that you could allow clientConfig.caBundle to start with $ to signify that it should be loaded from a secret ($ is not in Base64, so parsing should be as simple as checking if string begins with $ without any risk of breaking the old way).
Example:
clientConfig:
  caBundle: $vault-vault-tls.ca.crt

When the CA Bundle and TLS certificates are generated they are added to the VaultServer config under .spec.tls.caBundle. The AppBinding could get it from there somehow.
Again, $ could be used to signify which VaultServer to get it from.
You could even target a VaultServer instead of a Service in the first place if it is possible for the operator to get the Service from that.

Is there any interest in this?

@arnarg, I am confused why are you manually creating the AppBinding. Vault server operator will create the AppBinding for you. https://github.com/kubevault/operator/blob/85ffd964e2e37d530848d9d58f994fb10c952c21/pkg/controller/appbinding.go#L16
The reason we don't add ca.crt into the TLS secret is because Kubernetes does not allow any key other than tls.crt and tls.key when secret type is set to kubernetes.io/tls . Here I saw that we did not set the secret type, but we should fix that. https://github.com/kubernetes/api/blob/334089439675d2a85c879ed262fc082e20fbcc3d/core/v1/types.go#L5108
Lastly, I suppose this is some sort of Gitops issue. We are interested in solving/helping here. Though the idea of using $ does not sound exciting. AppBinding is supposed to be independent and decoupled from how Vault server is provisioned. So, if you can tell us bit more about your use-case, we can find a solution.

I am confused why are you manually creating the AppBinding. Vault server operator will create the AppBinding for you.
Oh I missed that part :P

Then I have no issue with this and I'll close the issue. Thanks.


Merge Hindi :hi Language File

Hi, I have completed the Hindi translation on Locale, can someone please merge this into the code?

धन्यवाद!


Pretrained model release

Hello! First, thank you for providing the great model. I'm desperately looking for the pretrained model for the HACS dataset, but I can hardly find one. Due to my computational resource, I cannot train it from scratch. When can I get the pretrained weight of your network?

Hi @simcity429,
The pre-trained models (trained on half-precision) on HACS are now available with the latest commit (33bbc7a). More updates to come once I have fully exhausted all options for making the models available for float32 precision -- and being less dependant on apex.
Best,
Alex

Hi @simcity429,
The pre-trained models (trained on half-precision) on HACS are now available with the latest commit (33bbc7a). More updates to come once I have fully exhausted all options for making the models available for float32 precision -- and being less dependant on apex.
Best,
Alex

Thanks a lot. I'm also desperately looking for the pretrained models on HACS !

Thanks a lot. I'm also desperately looking for the pretrained models on HACS !


FormlyConfigProvider content length question

Just a clarification:  If I require lots of different custom formly templates, am I just doing it wrong or is it customary to have a .config function where one makes a bunch of calls to formlyConfigProvider to set wrappers and types?
I recall you mentioning at ng-conf that you yourself almost always use custom templates.  If loads of different types and wrappers are ok, is there a way you would recommending structuring the .config so that it doesn't get out of control?

Good question. In my app, I have probably 20 different types and a handful
of template manipulators. Each gets its own file and therefore its own
config function. This makes things quite manageable. Let me know if you
have questions :-)

Kent C. Dodds

(Sent from my mobile device, please forgive typos or brevity)
On Jul 11, 2015 8:18 PM, "Adam Gordon"<EMAIL_ADDRESS>wrote:

Just a clarification: If I require lots of different custom formly
templates, am I just doing it wrong or is it customary to have a .config
function where one makes a bunch of calls to formlyConfigProvider to set
wrappers and types?
I recall you mentioning at ng-conf that you yourself almost always use
custom templates. If loads of different types and wrappers are ok, is there
a way you would recommending structuring the .config so that it doesn't
get out of control?
—
Reply to this email directly or view it on GitHub
https://github.com/formly-js/angular-formly/issues/387.

I'm going to go ahead and close this because it's not a bug out feature request. But feel free to respond if you have further questions.

That makes absolute sense.  When you say separate file, you mean template HTML file, right?  I like the idea of separate .config calls - I'm going to break mine apart.  And yes, totally cool closing this.  Thanks.

Both separate html files as well as js files and css files and test files.
I consider each type to be its own unit.

Kent C. Dodds

(Sent from my mobile device, please forgive typos or brevity)
On Jul 11, 2015 9:03 PM, "Adam Gordon"<EMAIL_ADDRESS>wrote:

That makes absolute sense. When you say separate file, you mean template
HTML file, right? I like the idea of separate .config calls - I'm going
to break mine apart. And yes, totally cool closing this. Thanks.
—
Reply to this email directly or view it on GitHub
https://github.com/formly-js/angular-formly/issues/387#issuecomment-120682169
.


Moving database from elastic pool to standalone server

Hello,
as in the title. What about copying database in elastic pool to server?

Detalji dokumenta
⚠ Ne uređujte ovu sekciju. Ona je neophodna za povezivanje problema slijedom docs.microsoft.com ➟ GitHub.

ID: 758743c8-5c33-3686-e940-a33026e2e86c
Version Independent ID: d93eb1a1-a4a6-6248-42a9-4ab3f8a4a29f
Content: CLI example-move Azure SQL database-SQL elastic pool - Azure SQL Database
Content Source: articles/sql-database/scripts/sql-database-move-database-between-pools-cli.md
Service: sql-database
Sub-service: elastic-pools
GitHub Login: @stevestein
Microsoft Alias: sstein

@roofiq We are checking this and will get back to you

@roofiq The last step in the PowerShell script takes the pooled database to a single instance: DTU S0.
echo "Upgrade $database tier..." az sql db create --resource-group $resource --server $server --name $database --service-objective S0
The database becomes an S0 instance on the same SQL Server that hosted the pooled instance. To move to a new SQL Server instance, take the PowerShell example from the following: Use PowerShell to copy a SQL database to a new server

@roofiq Please let us know if you need any further help with this.

@roofiq We are going ahead and closing this thread. Please let us know if you have any further question and we will try to resolve it.


FAI-546: ScoreCard Model Setup Test

See: https://issues.redhat.com/browse/FAI-546
PR contains a simple UI test suite which modify basics model attributes.

@manstis @tiagobento @ederign can you review and merge this PR? All checks have passed.

Is this good to merge? I see there are comments unresolved.

@tiagobento Please do not merge at the moment.

@ederign @tiagobento This is OK to merge whenever you like now.


fixed two bugs in stratsys-cli.py

they caused an error putting out material encoding
using the -r keyword or the material list command

Thanks! Sorry for the delay :+1:


labelImg: 1.8.1 -> 1.8.3

Switch to python3 and qt5 libraries also

Motivation for this change
Update package to latest release
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/223

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/258

hmm, can't start it with nix-review, could be because I'm on stable and something with QT changed between stable and unstable:
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Aborted (core dumped)

unfortunately, I can't run nixpkgs-review on my current computer, as is it freezing everything.
but when I run a local nix-build it looks good.
If someone can double check with nixpkgs-review, it will be even better

I was able to make it run with this derivation:
{ stdenv, python3Packages, fetchFromGitHub, qt5 }:
  python3Packages.buildPythonApplication rec {
    pname = "labelImg";
    version = "1.8.3";
    src = fetchFromGitHub {
      owner = "tzutalin";
      repo = "labelImg";
      rev = "v${version}";
      sha256 = "07v106fzlmxrbag4xm06m4mx9m0gckb27vpwsn7sap1bbgc1pap5";
    };
    nativeBuildInputs = with python3Packages; [
      pyqt5
      qt5.wrapQtAppsHook
    ];
    propagatedBuildInputs = with python3Packages; [
      pyqt5
      lxml
      sip
    ];
    preBuild = ''
      make qt5py3
    '';
    postInstall = ''
      cp libs/resources.py $out/${python3Packages.python.sitePackages}/libs
    '';

    dontWrapQtApps = true;

    preFixup = ''
      makeWrapperArgs+=("''${qtWrapperArgs[@]}")
    '';

    meta = with stdenv.lib; {
      description = "LabelImg is a graphical image annotation tool and label object bounding boxes in images";
      homepage = "https://github.com/tzutalin/labelImg";
      license = licenses.mit;
      platforms = platforms.linux;
      maintainers = [ maintainers.cmcdragonkai ];
    };
  }


layout bepo does not seem to remap keys in org-agenda mode

What did you expect to happen?
Using the bepo layout layer, hitting t should go to the next line.
What actually happened?
The function org-agenda-todo is called.

System information:
https://pastebin.com/qADjuSnA

I config everything works now. Thanks!


Finish HTTPManager methods, along with DiscordWebsocket

Finish off methods for HTTP manager, e.g get guild DTO working and ready, so we can start implementing methods for API calls,
get Websocket handshakes and heartbeats done

got websocket methods finished, need to get DTO finished but that's a bit lower priority, so i'm going to make intents for now

Finished up guild DTO, we are all ready to go to implement api calls!!!


in /support-request/{id} also the supporttype is specified as path parameter

in /support-request/{id} also the supporttype is specified as path parameter, but is not in the definition (/support-request/{id}/{supporttype}
(from Vincent Mastenbroek via email)

this is a small issue. I'll fix it!


Features

Can you add the features in this project link to netless.

@cngeru could you list the specific features you want ?

@cngeru could you list the specific features you want ?

Ability to create a custom toolbar with custom icons
Add Slides and pages option
Custom backgrounds
Custom eraser instead of pointer when erasing
Rich Text Selection

Ability to create a custom toolbar with custom icons
Add Slides and pages option
Custom backgrounds
Custom eraser instead of pointer when erasing
Rich Text Selection

Custom ToolBars

Add Slides

Custom background and colors(dark backgrounds)

Rich text

Custom ToolBars

Add Slides

Custom background and colors(dark backgrounds)

Rich text

@dilidili @marcosalles Kudos to everyone
Can you please add the features in this project.
1.Ability to create a custom toolbar item with action
2.Ability to create a custom stickers dropdown
3.Ability to resize (height, width) of canvas
4.Ability to save only draw area (not entire canvas height, width)
5.Ability to crop and resize
6.Ability to save different formats like binary,base64,URL


Update for 2024

@davcsj please take a look at this repo and if you have questions comment in this issue. 🙏

I look at this later, thank you.


Related 89: Function to generate custom UUID for NAC objects

This function will be used to link between NAB and Backup and possibly other parts of the objects within Non-Admin-Backup.
Why the changes were made
Function that will be used to fix #89
How to test the changes made
Run unit tests and ensure many corner cases are handled.

@mateusoliveira43 note this function is separate to currently used one so we can safely move to this new one without breaking working current controller code.

/retest

@mpryc I do not like this approach, we would be merging unused code
We already have integration tests in place, when adding new way of generating NAB name, we should replace old way in same PR (and tests can tell us if new implementation works as expected)

Closing as I am preparing new PR with this change included.


What is this used for?

Is there any information that explaines what this package is used for? I don't know what 'bridge to' means...

Did you actually read the readme?
https://github.com/GrahamCampbell/Laravel-DigitalOcean#usage

Actually yes, but nevermind. Thanks for Your time.


Plugins on prereleases: compatibility warning and blessed plugins

If a Spin user is on canary or HEAD, and runs a plugin, they see a message warning that they are on a prerelease version of Spin and the plugin may not be compatible.
With cloud moving to a plugin, this warning will now occur on every deployment, which will make the command feel less seamless (again, for the subset of canary users).
Should we:

Do nothing - retain the warning for all plugins
Skip the warning for plugins that Spin has special knowledge of (e.g. displays in spin help, autoinstalls, etc.), because those are meant to feel like part of Spin itself
Drop the warning (or reduce its frequency) for all plugins, because canary users already live in a world of things that may not work right

I think the warning should be just a gentle reminder that the user is on canary. Same reasoning for 3. Maybe a prefix print!([canary]) that will always show before any output (before clap parse), since it's not just a plug-in thing.

I like @cardoso's suggestion of something more subtle like a [canary] prefix

+1 to @cardoso's suggestion. Also in favor of @itowlson's suggestion number 3. The warnings are very verbose and hiding the warnings behind a verbose flag feels intuitive to me.


Alexa needs to be asked twice before playing the song

Sometimes, my alexa needs to be asked twice before actually playing the song. I have translated the app to Italian, but I don't thing it has anything to do with it

Please check if this issue still persists. I close this issue if the problem persists feel free to re-open this.


Inconsistent output compared with other JS engines when using sort()

Hello,
The following code behaves strangely (inconsistent with other engines).
a=[3.3,2.2,1];
a.sort(function () { return -1;});

In Edge, output is
[1, 2.2, 3.3]
However, output should be:
[3.3, 2.2, 1]
BT group
2018.6.28

In the example you give, the comparison function itself is not internally consistent as it always returns -1.  I'm not 100% positive but I think that might be undefined behavior?

Yep, from MDN:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort

compareFunction(a, b) must always return the same value when given a specific pair of elements a and b as its two arguments. If inconsistent results are returned then the sort order is undefined.

You are right, it is undefined.

@zenparsing , FYI
Sounds like this is not an issue, then?

FYI with eshost:
## Source
a=[3.3,2.2,1];
a.sort(function () { return -1;});
print(JSON.stringify(a));

#### Chakra, JavaScriptCore
[1,2.2,3.3]

#### SpiderMonkey, V8 --harmony
[3.3,2.2,1]

The output of the sort function in this case is specified to the implementation-dependent. Specifically:

If comparefn is not undefined and is not a consistent comparison function for the elements of this array (see below), the sort order is implementation-defined.

The comparison function here is not "consistent".
https://tc39.github.io/ecma262/#sec-array.prototype.sort


Benchmark troubles

Perhaps I'm just missing where this is documented. How do I turn off any attempt to access Yahoo? I have no interest in their data, and even if I did, I am not able to access it.

x-ref #1812

Going to close this as I believe Eddie has answered this question, and also because we don't use Yahoo for benchmarking anymore.

Getting this issue, seems to be because google is not returning the proper data.  The following code only returns pricing back to 2016-9-15
import pandas_datareader.data as pd_reader
import datetime as dt

pd_reader.DataReader(
        'SPY',
        'google',
        dt.datetime(2009,1,1),
        dt.datetime(2017,1,1),
    )

Would be helpful to have a better error...took awhile to debug this.


Made pseudo gtid event aware of server read_only

This PR makes the pseudo-gtid insertion event aware of the server's read_only flag. This way, the event can be loaded on co-masters without corrupting the GTID.
With the previous version you need to manually make sure that you insert GTID binlog event only on master by running an external process. The event scheduler is disabled on replicas but in a co-master situation both servers are masters and execute events.

Please don't merge this yet. I think I found some problems with this approach regarding the ORIGINATOR filed of the event. Will update the PR.

Thank you!


Ign to Gz migration

Work towards https://github.com/osrf/lrauv/issues/225.
We should apply the necessary changes to cope with the migration from Ign to Gz.
Here is a list of places to look for possible updates:

[x] OSRF lrauv repository .
[x] MBARI software control code.
[x] Dockers and docker hub urls.
[x] Documentation: Wiki and Readme.

Review wiki for MBARI side changes.

Migration completed a while back.


Square root symbol Sqrt not displayed correctly

URL(s) with the issue:
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/sqrt
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/rsqrt
Description of the issue (what needs changing):
The square root symbol is not displayed in the rendered HTML documentation. Although, the source code includes the appropriate code \sqrt{x}. One would expect a square symbol around the x in the following image:

https://github.com/tensorflow/tensorflow/blob/e88293b0d59a237af1e2a299048b783f5331b7fb/tensorflow/core/api_def/base_api/api_def_Rsqrt.pbtxt#L5
https://github.com/tensorflow/tensorflow/blob/e88293b0d59a237af1e2a299048b783f5331b7fb/tensorflow/core/api_def/base_api/api_def_Sqrt.pbtxt#L5

Clear description
The missing square symbol is confusing for someone reading the documentation.
Fix
One could change every occurrence of the sqrt symbol to x^{1/2}. However, this is not a good solution and we should rather fix the display issue itself.

yes i also saw in documentation but we can change it by y=1/sqrt{x}=1/(x^2) ,by this we can correct it

@ScholliYT ,
Thanks for reporting. Created CL's to fix above issues.

@chunduriv is this still issue still open? As I don't see a pull request for the same

@ScholliYT,
This issue fixed now. Please refer updated api_docs for sqrt and rsqrt. Thanks!

@chunduriv looks good to me 👍

@ScholliYT,
Please feel free to close the issue. Thanks!

Are you satisfied with the resolution of your issue?
Yes
No


Bind alt+arrow etc to Pageup, down, home, end

This was done in xbindkeys.  Is there a sway way for this now or how is it best done.  Laptop user here.

Solution...
.Xdefaults has termname and keysym
urxvt.termName:             rxvt-256color

urxvt.keysym.M-Up:          \033[5~
urxvt.keysym.M-Down:        \033[6~
urxvt.keysym.M-Left:        \033[7~
urxvt.keysym.M-Right:       \033[8~


Synchronise Notes instances over a BroadCast channel in the browser

Current dependencies on/for this PR:

master

PR #65

PR #66

PR #67

PR #68

PR #69   👈

This comment was auto-generated by Graphite.

Current dependencies on/for this PR:

master

PR #65

PR #66

PR #67

PR #68

PR #69   👈

This comment was auto-generated by Graphite.


[BUG] Can't check API status on Android after manually adding API in the plugin options

Describe the bug
After manually typing the API in the plugin options, an error comes up: "unexpected token: '<', "<a href = "h"... is not valid JSON"
To Reproduce

In android, go into the Obsidian settings.
Scroll down until the separate settings for each community plugin is seen.
Go into "Syncthing Integration" settings.
Manually type in API key from other device (in my case, Linux Mint laptop).
Click on "Check API Status".
Error is shown.

Expected behavior
I expected to see a "pong" message received from the API check, just like how it does on my Linux system.
Screenshot

Desktop:

OS: Linux Mint
Browser: Firefox
Version: 21.3 Cinnamon

Smartphone:

Device: Poco F5
OS: Android
Browser: Firefox
Version: 14

Hi, thanks for the report !
I think that this should be resolved thanks to #102 . However, I haven't used it in a while on Android..
The plugin is more intended on desktop than mobile and development has been slowing down lately due to other projects/constraints.
I will take a closer look to this issue when I have more free time. Please expect some delay.
Thanks for your understanding

Of course! Take your time.

can confirm the error also exists when using http rather than https

I got it to work by going into the Syncthing GUI and disabling TLS, and then setting the plugin to use http


Delete ORT runs

This PR adds ON DELETE CASCADE constraints to the tables that depend on the ort_runs table to make sure that these entities are deleted automatically together with the associated ORT run. This is a first step to support manual and automatic removal of ORT runs.

This is a first step to support manual and automatic removal of ORT runs.

Relates to https://github.com/eclipse-apoapsis/ort-server/issues/123.


Movies example: Check if there's actually data in the response

… with the data. Fixes a bug in the Movies example.
Motivation:
I couldn't run the Movies example, because the API key for the RottenTomatoes API is invalid and the response from API is not handled, so the application crashes.
Tests:
npm run flow

<EMAIL_ADDRESS>flow *****/react-native
flow

Launching Flow server for *****/react-native
Spawned flow server (pid=3550)
Logs will go to /private/tmp/flow/zSUserszStsgzSPersonalzSreact-native.log
Libraries/Alert/Alert.js:20
 20: /* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during the
     ^ Error suppressing comment.

Thanks for the fix! However, tests are failing. Maybe you need to rebase?

Just checked the test failures, pretty sure they are unrelated.
@facebook-github-bot shipit

@mkonicek I though so too 👍

The movies sample has been removed from the core RN repo. Feel free to publish standalone example apps, and we can curate a list of them for the website.


scram: fix client final message

The client should send r=ServerNonce rather than r=Salt

bump @zmstone

Thank you for your fix. It's work!

Hey, guys! Please merge it ASAP)

sorry for the late response.
thank you for the fix.

published 4.1.3


Feature/add cen odt c poe

Added new occ sensor type

Can you rebase this branch onto the latest development branch? You have conflicts with the refactored EiscApi that's in the latest dev branch.

Closing this as @TrevorPayne is going to re-submit from a new branch to incorporate new features.


Show number of connected users for room

Needs some work in the frontend. @fredericobormann  are you interested?

Closed by #32


Upgrade to cryptography >= 39.0.1 because of CVEs.

Problem Description
The current cryptography package dependency (38.0.4) has two CVEs:

https://github.com/pyca/cryptography/security/advisories/GHSA-x4qr-2fvf-3mr5
https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r

Would it be possible to plan an update on this dependency? cryptography 39.0.0 is backward incompatible so it's maybe hard.
Thanks,
System Information
Mitmproxy: 9.0.1
Python:    3.10.9
OpenSSL:   OpenSSL 3.0.7 1 Nov 2022
Platform:  macOS-12.6-arm64-arm-64bit

The main branch already builds with the latest cryptography release. I don't think either of the posted vulnerabilities affects mitmproxy users in a significant way, so I don't think we will ship a patch release just for that. :)

Ok sorry for the issue, I didn't check the main branch 😓!


Memory Leak: DateRangePickerDialog has several memory leaks.

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
DateRangePickerDialog  has several memory leaks.
Test to reveal the leak:
testWidgetsWithLeakTracking('DateRangePickerDialog leaks', (WidgetTester tester) async {
  const DatePickerThemeData datePickerTheme = DatePickerThemeData(
    backgroundColor: Color(0xfffffff0),
    elevation: 6,
    shadowColor: Color(0xfffffff1),
    surfaceTintColor: Color(0xfffffff2),
    shape: RoundedRectangleBorder(),
    headerBackgroundColor: Color(0xfffffff3),
    headerForegroundColor: Color(0xfffffff4),
    headerHeadlineStyle: TextStyle(fontSize: 10),
    headerHelpStyle: TextStyle(fontSize: 11),
    weekdayStyle: TextStyle(fontSize: 12),
    dayStyle: TextStyle(fontSize: 13),
    dayForegroundColor: MaterialStatePropertyAll<Color>(Color(0xfffffff5)),
    dayBackgroundColor: MaterialStatePropertyAll<Color>(Color(0xfffffff6)),
    dayOverlayColor: MaterialStatePropertyAll<Color>(Color(0xfffffff7)),
    todayForegroundColor: MaterialStatePropertyAll<Color>(Color(0xfffffff8)),
    todayBackgroundColor: MaterialStatePropertyAll<Color>(Color(0xfffffff9)),
    todayBorder: BorderSide(width: 3),
    yearStyle: TextStyle(fontSize: 13),
    yearForegroundColor: MaterialStatePropertyAll<Color>(Color(0xfffffffa)),
    yearBackgroundColor: MaterialStatePropertyAll<Color>(Color(0xfffffffb)),
    yearOverlayColor: MaterialStatePropertyAll<Color>(Color(0xfffffffc)),
    rangePickerBackgroundColor: Color(0xfffffffd),
    rangePickerElevation: 7,
    rangePickerShadowColor: Color(0xfffffffe),
    rangePickerSurfaceTintColor: Color(0xffffffff),
    rangePickerShape: RoundedRectangleBorder(),
    rangePickerHeaderBackgroundColor: Color(0xffffff0f),
    rangePickerHeaderForegroundColor: Color(0xffffff1f),
    rangePickerHeaderHeadlineStyle: TextStyle(fontSize: 14),
    rangePickerHeaderHelpStyle: TextStyle(fontSize: 15),
    rangeSelectionBackgroundColor: Color(0xffffff2f),
    rangeSelectionOverlayColor: MaterialStatePropertyAll<Color>(Color(0xffffff3f)),
    dividerColor: Color(0xffffff4f),
    inputDecorationTheme: InputDecorationTheme(
      fillColor: Color(0xffffff5f),
      border: UnderlineInputBorder(),
    ),
    cancelButtonStyle: ButtonStyle(foregroundColor: MaterialStatePropertyAll<Color>(Color(0xffffff6f))),
    confirmButtonStyle: ButtonStyle(foregroundColor: MaterialStatePropertyAll<Color>(Color(0xffffff7f))),
  );

  await tester.pumpWidget(
      MaterialApp(
        theme: ThemeData(
          datePickerTheme: datePickerTheme,
          useMaterial3: true,
        ),
        home: Directionality(
          textDirection: TextDirection.ltr,
          child: Material(
            child: Center(
              child: DateRangePickerDialog(
                firstDate: DateTime(2023),
                lastDate: DateTime(2023, DateTime.january, 31),
                initialDateRange: DateTimeRange(
                  start: DateTime(2023, DateTime.january, 17),
                  end: DateTime(2023, DateTime.january, 20),
                ),
                currentDate: DateTime(2023, DateTime.january, 23),
              ),
            ),
          ),
        ),
      ),
    );

    final Material material = tester.widget<Material>(
      find.descendant(
        of: find.byType(Dialog),
        matching: find.byType(Material)
      ).first
    );
    expect(material.color, datePickerTheme.backgroundColor); //!!
    expect(tester.widget<Scaffold>(find.byType(Scaffold)).backgroundColor, datePickerTheme.rangePickerBackgroundColor);
    expect(material.elevation, datePickerTheme.rangePickerElevation);
    expect(material.shadowColor, datePickerTheme.rangePickerShadowColor);
    expect(material.surfaceTintColor, datePickerTheme.rangePickerSurfaceTintColor);
    expect(material.shape, datePickerTheme.rangePickerShape);

    final AppBar appBar = tester.widget<AppBar>(find.byType(AppBar));
    expect(appBar.backgroundColor, datePickerTheme.rangePickerHeaderBackgroundColor);

    final Text selectRange = tester.widget<Text>(find.text('Select range'));
    expect(selectRange.style?.color, datePickerTheme.rangePickerHeaderForegroundColor);
    expect(selectRange.style?.fontSize, datePickerTheme.rangePickerHeaderHelpStyle?.fontSize);

    final Text selectedDate = tester.widget<Text>(find.text('Jan 17'));
    expect(selectedDate.style?.color, datePickerTheme.rangePickerHeaderForegroundColor);
    expect(selectedDate.style?.fontSize, datePickerTheme.rangePickerHeaderHeadlineStyle?.fontSize);

    // Test the day overlay color.
    final RenderObject inkFeatures = tester.allRenderObjects.firstWhere((RenderObject object) => object.runtimeType.toString() == '_RenderInkFeatures');
    final TestGesture gesture = await tester.createGesture(
      kind: PointerDeviceKind.mouse,
    );
    await gesture.addPointer();
    await gesture.moveTo(tester.getCenter(find.text('16')));
    await tester.pumpAndSettle();
    expect(inkFeatures, paints..circle(color: datePickerTheme.dayOverlayColor?.resolve(<MaterialState>{})));

    // Test the range selection overlay color.
    await gesture.moveTo(tester.getCenter(find.text('18')));
    await tester.pumpAndSettle();
    expect(inkFeatures, paints..circle(color: datePickerTheme.rangeSelectionOverlayColor?.resolve(<MaterialState>{})));
});

Test output
Expected: leak free
  Actual: <Instance of 'Leaks'>
   Which: contains leaks:
          # The text is generated by leak_tracker.
          # For leak troubleshooting tips open:
          # https://github.com/dart-lang/leak_tracker/blob/main/doc/TROUBLESHOOT.md
          notDisposed:
            total: 37
            objects:
              AnnotatedRegionLayer<SystemUiOverlayStyle>:
                test: DateRangePickerDialog leaks
                identityHashCode:<PHONE_NUMBER>
              AnnotatedRegionLayer<SystemUiOverlayStyle>:
                test: DateRangePickerDialog leaks
                identityHashCode: 413513302
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 200740581
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 961704223
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 589126989
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 7926661
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 926670356
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 180584837
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode:<PHONE_NUMBER>
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 99588732
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 854753638
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 889218310
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 178905952
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 547957622
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 44278579
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 688997814
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode:<PHONE_NUMBER>
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 238955639
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 898730302
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 473834977
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 956769390
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 227652378
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 153087817
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 976148998
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 104292027
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 94237369
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 68343564
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 36922803
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 400546746
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 3882273
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 118097315
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 161471944
              MaterialStatesController:
                test: DateRangePickerDialog leaks
                identityHashCode: 972250262
              RestorableDateTimeN:
                test: DateRangePickerDialog leaks
                identityHashCode: 863531789
              RestorableDateTimeN:
                test: DateRangePickerDialog leaks
                identityHashCode: 475527521
              _RestorableDatePickerEntryMode:
                test: DateRangePickerDialog leaks
                identityHashCode: 473806816
              RestorableBool:
                test: DateRangePickerDialog leaks
                identityHashCode: 81121360

package:matcher                                                  expect
expect
widget_tester.dart:458
_tearDownTestingWithLeakTracking
test_widgets.dart:82
===== asynchronous gap ===========================
dart:async                                                       _CustomZone.registerBinaryCallback
configureLeakTrackingTearDown.<fn>
test_widgets.dart:59

Flutter Doctor output
Doctor output
[✓] Flutter (Channel master, 3.14.0-14.0.pre.655, on macOS 13.0.1 22A400 darwin-arm64, locale en-GB)
    • Flutter version 3.14.0-14.0.pre.655 on channel master at /Users/ksokolovskyi/dev/flutter_master
    • Upstream repository git@github.com:ksokolovskyi/flutter.git
    • FLUTTER_GIT_URL = git@github.com:ksokolovskyi/flutter.git
    • Framework revision fe0275f9d5 (3 hours ago), 2023-10-05 05:57:26 -0400
    • Engine revision f8d53c5fe9
    • Dart version 3.2.0 (build 3.2.0-231.0.dev)
    • DevTools version 2.28.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/ksokolovskyi/Library/Android/sdk
    • Platform android-34, build-tools 33.0.1
    • ANDROID_HOME = /Users/ksokolovskyi/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Community Edition (version 2023.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.83.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.74.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 13.0.1 22A400 darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 117.0.5938.149

[✓] Network resources
    • All expected network resources are available.

• No issues found!

cc @polina-c

Thanks for the report. Using the test snippet provided and by adding required plugins, seeing the same error log as reported.

 stable, master flutter doctor -v
[!] Flutter (Channel stable, 3.13.6, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.13.6 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ead455963c (5 days ago), 2023-09-26 18:28:17 -0700
    • Engine revision a794cf2681
    • Dart version 3.1.3
    • DevTools version 2.25.0
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.16.0-5.0.pre.21, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 3.16.0-5.0.pre.21 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision bf1cdb1596 (6 hours ago), 2023-10-05 19:05:27 -0400
    • Engine revision 6492e1f8c3
    • Dart version 3.2.0 (build 3.2.0-231.0.dev)
    • DevTools version 2.28.1
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/dhs/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13C100
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 65.1.4
    • Dart plugin version 213.7228

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (3 available)
    • Darshan's iphone (mobile) • 21150b119064aecc249dfcfe05e259197461ce23 • ios
      • iOS 15.3.1 19D52
    • macOS (desktop)           • macos                                    •
      darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)              • chrome                                   •
      web-javascript • Google Chrome 109.0.5414.119

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.


Mobile friendly swap widget using Material UI's 'theme.spacing()'

The current code uses hardcoded CSS dimensions which break responsiveness on mobile. They have been replaced by  theme.spacing() for adaptive resizing.
Screenshots
Mobile

Desktop

Travis linting error has been resolved.

Awesome.
The new theme styling makes the component noticeably more cramped in the web ui. Is there a way to make these changes map more closely to the current component styling? For example, make it a little wider, taller, etc.

Awesome.
The new theme styling makes the component noticeably more cramped in the web ui. Is there a way to make these changes map more closely to the current component styling? For example, make it a little wider, taller, etc.

Took some creative liberty haha, so the design deviated a bit. Here's what I plan:

Taller: Add vertical padding
Wider: Add horizontal padding, increase width of swapTokenSelectorContainer.

I like the larger token icons, but should I revert that as well?

Awesome.
The new theme styling makes the component noticeably more cramped in the web ui. Is there a way to make these changes map more closely to the current component styling? For example, make it a little wider, taller, etc.

Took some creative liberty haha, so the design deviated a bit. Here's what I plan:

Taller: Add vertical padding
Wider: Add horizontal padding, increase width of swapTokenSelectorContainer.

I like the larger token icons, but should I revert that as well?

 Just want to make sure that if we change it, we do it with intention. Let's keep the styling the same for now, address the mobile responsiveness here, and we can consider changing sizes in a subsequent PR.

Updated

Awesome.
The new theme styling makes the component noticeably more cramped in the web ui. Is there a way to make these changes map more closely to the current component styling? For example, make it a little wider, taller, etc.

Took some creative liberty haha, so the design deviated a bit. Here's what I plan:

Taller: Add vertical padding
Wider: Add horizontal padding, increase width of swapTokenSelectorContainer.

I like the larger token icons, but should I revert that as well?

 Just want to make sure that if we change it, we do it with intention. Let's keep the styling the same for now, address the mobile responsiveness here, and we can consider changing sizes in a subsequent PR.

Updated to reflect original styling.
The original UI was not in the exact centre. You may notice a rightwards shift in the new UI. Here's what happens when width is increased in the old version.
https://github.com/project-serum/swap-ui/blob/1886a484cba208a64f6d30e43b17e6b7c8a73af4/example/src/App.tsx#L93

Fixed it in the same commit for it was breaking responsiveness on mobile screens.

Rebased on master.

The changes didn't quite restore the original UI dimensions. So I went ahead and used your original spacing parameters.


Remove Implicit/Hybrid Flow Enablement Guidance

Section Configure identity provider for developer portal item 11 is outdated.

Switch back to the B2C app registration. In the left menu, under Manage, select Authentication.

Under Implicit grant and hybrid flows, select both the Access tokens and ID tokens check boxes.
Select Save.

Enabling implicit/hybrid flow token types is no longer necessary and best excluded since https://github.com/Azure/api-management-developer-portal/issues/1142 was resolved with the https://github.com/Azure/api-management-developer-portal/pull/1945 pull request to implement PKCE flow for the developer portal.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 18a8a3ac-153d-90b9-4c66-cc6207eaafac
Version Independent ID: 35488468-4002-093e-1155-00c7fd063d13
Content: Authorize developer accounts by using Azure Active Directory B2C - Azure API Management
Content Source: articles/api-management/api-management-howto-aad-b2c.md
Service: api-management
GitHub Login: @dlepow
Microsoft Alias: danlep

@lsuarez5280
Thanks for your feedback! We will investigate and update as appropriate.

@lsuarez5280 - Thanks for pointing this out. I created a work item for an upcoming doc sprint to review this and make the necessary updates to the article. This appears to be something we missed the last time we updated the article. According to our usual process, I'll now close the issue.
#please-close


[SMALLFIX] Changed thrown exception in Javadoc in 'FileInStreamIntegrationTest'

The thrown exception is TachyonException, not TException.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/6969/
Test PASSed.

@HorizonNet thanks for fix! Is it possible to have a checkstyle rule to check this?

@yupeng9 Sounds good to me. I created a TACHYON-1334 for it.

@HorizonNet  Thanks!


Fix ahub reporting buffer overflow

Changes proposed in this PR:

Add extra safeguard to sum

Self evaluation:

Build test: [X]Passed [ ]Failed [ ]Skipped
Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.4.20191203. Thank you for submitting PR #499. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnsuite.mooo.com/.


fix(esl-panel-group): fix initial reset of panel group leads to incorrect panel selection

:tada: This PR is included in version 4.0.0-beta.18 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Assertion Failed: A helper named 'panels.panel' could not be found

I was trying to embed collapsible display using version ember-collapsible-panel-1.0.
After installing also, I am getting assertion fail issue.
"Error: Assertion Failed: A helper named 'p.toggle' could not be found
at EmberError (http://localhost:4200/assets/vendor.js:25125:21)
at Object._emberMetalCore.default.assert (http://localhost:4200/assets/vendor.js:14755:13)
at Object.lookupHelper [as default] (http://localhost:4200/assets/vendor.js:20038:32)
at Object.lookupHelperHook [as lookupHelper] (http://localhost:4200/assets/vendor.js:17778:55)
at http://localhost:4200/assets/vendor.js:60155:30
at Object.renderAndCleanup (http://localhost:4200/assets/vendor.js:61625:18)
at hostBlock (http://localhost:4200/assets/vendor.js:60162:32)
at continueBlock (http://localhost:4200/assets/vendor.js:60154:5)
at Object.block (http://localhost:4200/assets/vendor.js:60150:5)
at Object.block (http://localhost:4200/assets/vendor.js:59377:17)"
My hbs code is as sample provided in page.
{{#cp-panel open=true as |p|}}
{{#p.toggle}}
Click me!
{{/p.toggle}}
{{#p.body}}

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nemo repellendus nisi asperiores esse aperiam aliquid nulla ad dolor autem neque, nihil inventore temporibus delectus earum facere corporis, quam ipsum maxime.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloribus neque magnam, hic quis beatae repellendus harum modi pariatur minus quidem alias! Eius incidunt impedit eaque, est, illo officiis expedita molestiae.

{{/p.body}}
{{/cp-panel}}

If you're using 1.0 you'll have to use the older (non-contextual components) API:
{{#cp-panel}}
  {{#cp-panel-toggle}}

Click me!

  {{/cp-panel-toggle}}
  {{#cp-panel-body}}

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nemo repellendus nisi asperiores esse aperiam aliquid nulla ad dolor autem neque, nihil inventore temporibus delectus earum facere corporis, quam ipsum maxime.

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloribus neque magnam, hic quis beatae repellendus harum modi pariatur minus quidem alias! Eius incidunt impedit eaque, est, illo officiis expedita molestiae.

  {{/cp-panel-body}}

{{/cp-panel}}

Further examples of the old API are available here


[tensorflow] MirroredStrategy, LossScaledOptimizer - merge_call failed

Hi,
Using the LossScaledOptimizer fails for MirroredStrategy with the following exception:
Exception has occurred: RuntimeError       (note: full exception trace is shown but execution is paused at: _run_module_as_main)
in user code:

    File "/usr/local/lib/python3.10/dist-packages/keras/src/backend/tensorflow/trainer.py", line 105, in one_step_on_data  **
        return self.train_step(data)
    File "/usr/local/lib/python3.10/dist-packages/keras/src/backend/tensorflow/trainer.py", line 72, in train_step
        self.optimizer.apply_gradients(zip(gradients, trainable_weights))
    File "/usr/local/lib/python3.10/dist-packages/keras/src/optimizers/base_optimizer.py", line 206, in apply_gradients
        self.apply(grads, trainable_variables)
    File "/usr/local/lib/python3.10/dist-packages/keras/src/optimizers/loss_scale_optimizer.py", line 183, in apply
        ops.cond(finite, handle_finite_grads, handle_non_finite_grads)
    File "/usr/local/lib/python3.10/dist-packages/keras/src/ops/core.py", line 594, in cond
        return Cond()(pred, true_fn, false_fn)
    File "/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py", line 123, in error_handler
        raise e.with_traceback(filtered_tb) from None
    File "/usr/local/lib/python3.10/dist-packages/keras/src/backend/tensorflow/optimizer.py", line 82, in _internal_apply_gradients
        tf.__internal__.distribute.interim.maybe_merge_call(

    RuntimeError: Exception encountered when calling Cond.call().

    `merge_call` called while defining a new graph or a tf.function. This can often happen if the function `fn` passed to `strategy.run()` contains a nested<EMAIL_ADDRESS>and the nested<EMAIL_ADDRESS>contains a synchronization point, such as aggregating gradients (e.g, optimizer.apply_gradients), or if the function `fn` uses a control flow statement which contains a synchronization point in the body. Such behaviors are not yet supported. Instead, please avoid nested `tf.function`s or control flow statements that may potentially cross a synchronization boundary, for example, wrap the `fn` passed to `strategy.run` or the entire `strategy.run` inside a `tf.function` or move the control flow out of `fn`. If you are subclassing a `tf.keras.Model`, please avoid decorating overridden methods `test_step` and `train_step` in `tf.function`.
    hods `test_step` and `train_step` in `tf.function`.

The reason for the exception is the following tf.cond() call:
https://github.com/keras-team/keras/blob/cb65582ae7dae7ab5bab9a8323b7c7602e33303b/keras/optimizers/loss_scale_optimizer.py#L183
To reproduce change the following line:
https://github.com/keras-team/keras/blob/cb65582ae7dae7ab5bab9a8323b7c7602e33303b/integration_tests/tf_distribute_training_test.py#L44
to
optimizer=optimizers.LossScaleOptimizer(optimizers.SGD(learning_rate=0.001, momentum=0.01)),

Alternatively, you can turn on the GPU and used mixed precision which then automatically uses the optimizer.

Thanks for the report. let me take a look.

I see. It seems that we miss bunch of logic for the tf specific backend when the loss scale optimizer runs with tf.distribute. Will fix that.

Should be addressed by https://github.com/keras-team/keras/pull/18691

the same issue exists with Adam and AdamW optimizers, when setting use_ema=True and using MirroredStrategy

For me, it does not work with Adam even without use_ema=True. It feels like it applies to the base optimizer in general. Opened https://github.com/keras-team/keras/issues/20582.


Can't find Dangerfile on on-prem GitLab anymore

Report
What did you do?
Update from danger 6.0.6 to 6.0.7. It refers to changes introduced in PR https://github.com/danger/danger/pull/1128.
$ git version
git version 2.11.0
$ danger --version
6.0.7
$ danger --fail-on-errors=true
/usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:177:in `initialize':  (Danger::DSLError)
[!] Invalid `Dangerfile` file: No such file or directory @ rb_sysopen - bbc/Dangerfile/Dangerfile
 #  from Dangerfile:6
 #  -------------------------------------------
 #
 >  danger.import_dangerfile(gitlab: "muz/dangerfiles", branch: "master", path: "bbc/Dangerfile")
 #  -------------------------------------------
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:177:in `open'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:177:in `parse'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/plugins/dangerfile_danger_plugin.rb:129:in `import_dangerfile_from_path'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/plugins/dangerfile_danger_plugin.rb:84:in `import_dangerfile'
	from Dangerfile:6:in `eval_file'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:297:in `eval'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:297:in `eval_file'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:200:in `block in parse'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:197:in `instance_eval'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:197:in `parse'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:273:in `run'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/executor.rb:29:in `run'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/commands/runner.rb:72:in `run'
	from /usr/local/bundle/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
	from /usr/local/bundle/gems/danger-6.0.7/bin/danger:5:in `<top (required)>'
	from /usr/local/bundle/bin/danger:23:in `load'
	from /usr/local/bundle/bin/danger:23:in `<main>'
/usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:177:in `initialize': No such file or directory @ rb_sysopen - bbc/Dangerfile/Dangerfile (Errno::ENOENT)
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:177:in `open'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:177:in `parse'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/plugins/dangerfile_danger_plugin.rb:129:in `import_dangerfile_from_path'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/plugins/dangerfile_danger_plugin.rb:84:in `import_dangerfile'
	from Dangerfile:6:in `eval_file'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:297:in `eval'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:297:in `eval_file'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:200:in `block in parse'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:197:in `instance_eval'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:197:in `parse'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/dangerfile.rb:273:in `run'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/danger_core/executor.rb:29:in `run'
	from /usr/local/bundle/gems/danger-6.0.7/lib/danger/commands/runner.rb:72:in `run'
	from /usr/local/bundle/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
	from /usr/local/bundle/gems/danger-6.0.7/bin/danger:5:in `<top (required)>'
	from /usr/local/bundle/bin/danger:23:in `load'
	from /usr/local/bundle/bin/danger:23:in `<main>'

What did you expect to happen?
Running without problems. Find the Dangerfile in our central gitlab repo under bbc/Dangerfile
What happened instead?
It crashed, since it can't retrieve a copy of that bespoke Dangerfile. From the error message it looks like, it searches for that Dangerfile in bbc/Dangerfile/Dangerfile instead of just bbc/Dangerfile. But I can't see that in the source (https://github.com/danger/danger/pull/1128/files#diff-3e7b2d9e0c99848e44d769efe4878d0bR179 and https://github.com/danger/danger/pull/1128/files#diff-ff5843ecf6dcdceece17273c5a5148a6R301).
Is there eventually a problem with Dangerfiles in sub-directories?
Your Environment

Which CI are you running on?

gitlab-ci

Are you running the latest version of Danger?

yes, 6.0.7

What is your Dangerfile?

danger.import_dangerfile(gitlab: "muz/dangerfiles", branch: "master", path: "bbc/Dangerfile")

I was able to retrieve it by doing something similar to this:
danger.import_dangerfile(gitlab_project_id: 1234, branch: "master", path: "bbc")
i.e. remove /Dangerfile from the path, and specify the gitlab project ID (which is strange if it works for you with the project name, the source makes it look like you have to specify the project id)
(I'm not a maintainer or anything, I only suggest this as a workaround)

I can confirm, that
danger.import_dangerfile(gitlab_project_id: 42, branch: "master", path: "bbc/Dangerfile")

works for us.
By the way:
danger.import_dangerfile(gitlab: "muz/dangerfiles", branch: "master", path: "bbc")

does not work.
@manu-d Any news on that issue?


Update complex-example.json

removed agent from the json

@moorage I removed the element agent from the JSON.  In the docs there is a full json that works after updating it. If, the images are good and approved, the best would be to delete the link to the JSON since the one on the main doc page would be complete


gnutls: 3.7.8 -> 3.8.0

https://lists.gnupg.org/pipermail/gnutls-help/2023-February/004816.html
Also fixes a "medium" severity CVE-2023-0361
http://www.gnutls.org/security-new.html#GNUTLS-SA-2020-07-14
nix-ssl-cert-file.patch: upstream's only changed whitespace around here
Things done

Built on platform(s)

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

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

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

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

[x] Fits CONTRIBUTING.md.

The patch for withSecurity = false wouldn't apply anymore

Probably just whitespace, as upstream did an auto-formatting pass, but there are still the other reasons to drop it.


Local object cache viewer

added version of Joe's local object cache viewer to dev tools

will add object expiration date column, but internals of System.Web.Caching.Cache have changed. So I need to dig a bit deeper there. They do not expose "nice"readable model to outside anymore.

CC @joemayberry

Server side paging would be required for sites that can have many million items in the cache. Also serializing something in the cache might affects its state (like triggering lazy loading) so not a big fan of that.

agree, we could provide it as op-in. admin selectively can ask for object size with awareness that it might trigger side effects

That makes sense.

Added "View Object Size" as optional action.
Regarding serverside list rendering and other beauties - think I'll need to unify all lists/tables and think about some nice interactive table implementation. Will do that in other PR.


[DOCS] Fix the Kyuubi JDBC kerberos parameters

Why are the changes needed?

The Kerberos-related parameters in Kyuubi JDBC driver are

kyuubiClientPrincipal
kyuubiClientKeytab
principal. Since 1.7.0, kyuubiServerPrincipal is added as an alias

How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[ ] Run test locally before make a pull request

Codecov Report

Merging #4763 (7400e3a) into master (7b97d2f) will decrease coverage by 0.05%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #4763      +/-   ##
============================================
- Coverage     57.97%   57.93%   -0.05%
  Complexity       13       13
============================================
  Files           581      581
  Lines         32419    32419
  Branches       4308     4308
============================================
- Hits          18796    18781      -15
- Misses        11818    11829      +11
- Partials       1805     1809       +4

see 9 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Thanks, merged to master/1.7