cmdline has issues when the keys are mapped

Did you check docs and existing issues?

[X] I have read all the noice.nvim docs
[X] I have searched the existing issues of noice.nvim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
0.9
Operating system/version
Linux
Describe the bug
Seems like when there's a mapping in the "c" mode (command mappings), throws an error in noice, for example if you try to add this mapping:
  c = {
    -- allow to use :w!! to "sudo" the writting command, useful when you are editing files like in /etc/ from user and forgot to sudo neovim
    ["w!!"] = { 'w !sudo tee % >/dev/null', 'save using sudo', opts = { noremap = true } },
  },

Then you type :w in your cmdline (noice), it throws an error
Looking in detail, seems like the text is sent to the which-key plugin instead of the cmdline noice, you can notice that because if you type the "!" char later (which is the continuation to this mapping), it appears to which-key added (also, which-key should not display what you are typing)
Finally, if you type "enter" to just save your file as you normally do with :w, it throws the error
There's some screenshots:
typing :w

typing then !

cmdline is not showing these characters....
then finally, when pressing Enter (which actually saves), noice shows this error:

Steps To Reproduce
detailed previously
Expected Behavior
detailed previously
Repro
No response

oh right, you are also the author of this other amazing and so useful plugin :)
mmh reading the previous link i think its more related about how sudo works, in my case it always work but the issue is not about how sudo works (in fact i think its offtopic to the real issue) but about how the ! is interpreted in the mappings.
Just for the record, I did another test with:
c = {
    ["m"] = { "test", "test" },
}

Which perfectly works, you type "m" in cmdline and it inserts the test word, but if you add the ! char as:
c = {
    ["m!"] = { "test", "test" },
}

Then it fails (note that it fails when the noice plugin is enabled, only using which-key it works, at least with the original report mapping)
Note: this fails in "c" mode but it works in "v" mode

I just tried using which-key and noice for that mapping and it all seems to work fine for me

Mmmh, it is strange, I have researched deeper and the problem doesn't seems to be with the ! key but with any "extra" key in the "c" mappings, so it also fails with this one:
    ["mm"] = { "test", "test" },

when I press :, the popup opens, then I press m and nothing is printed, one-two seconds later the which-key menu displays showing the 'm' character (just like the first screenshot of this report where is the 'w' char)
I have tried to disable all my other plugins to see if the issue is caused by any of them but it still happening anyways 🤔, then I disabled entirely the conf for which-key and also for noice, but still happens 🤔🤔🤔

That delay is normal of course. Is that what this is about?
When you press m, Neovim waits to see if you want to trigger the mm keymap. When timeoutlen expires, you will see m appear in the cmdline and which-key will open.

ok my bad, I was confused with this delayed window and the bug, but I think I have seen an easy way to reproduce the issue and it seems to happen only with the w key, let's try it simple:
Add this mapping to your setup:
c = {
    ["wx"] = { "test", "test" },
}

The ! is not needed, it happens with any extra char, so in this case:
If you type :wx it will work as expected (runs or prints the command 'test', which doesn't exist), but if you type only :w, it triggers the bug (first is shows the delayed popup, but nothing is printed and there's an error message after you press Enter), on the other hand the file is correctly saved but:

noice shows an error message
the cmdline popup is left opened on the interface


Export individual segmented time points

Hey @maarzt,
I'm working with a 4GB timelapse dataset. Annotation workes nicely. If I wanted to export just a single time point 3D stack to ImageJ, e.g. to test another plugin, would that be possible with labkit?
Thanks!
Cheers,
Robert

No not yet.


Ordinalize should use the full month name

%b (little b) renders the abbreviated month name, %B (big B) renders the full month.
BIG B, Little b, what begins with B?
Barber baby bubbles and a bumblebee.

Some justification:

The documentation (in the README and the source code) say things like this

      # Returns an ordidinal date eg July 22 2007 -> July 22nd 2007

and
date_format: 'ordinal'     # July 3rd, 2014

The full month name reads better than abbreviation.
Why would you want to abbreviate the month and then ordinalize the date?


Unable to deploy simple web.

Running this course: https://docs.microsoft.com/en-us/learn/modules/develop-app-that-queries-azure-sql/5-exercise-connect-aspnet-to-azure-sql
Command Name
az webapp up
Errors:
HTTPSConnectionPool(host='educationapp-24409.scm.azurewebsites.net', port=443): Max retries exceeded with url: /api/zipdeploy?isAsync=true (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7ff5136b5ac8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Traceback (most recent call last):
python3.6/site-packages/urllib3/connection.py, ln 160, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
...
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='educationapp-24409.scm.azurewebsites.net', port=443): Max retries exceeded with url: /api/zipdeploy?isAsync=true (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7ff5136b5ac8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

To Reproduce:
WEBAPPNAME=educationapp-$RANDOM
az webapp up
--resource-group learn-*****************************************
--location centralus
--sku F1
--name $WEBAPPNAME
Expected Behavior
Environment Summary
Linux-4.15.0-1082-azure-x86_64-with-debian-stretch-sid
Python 3.6.5
Installer: DEB

azure-cli 2.5.1 *

Additional Context

webapp


largest-series-product corner cases

As part of the work to have consistency between tracks as in https://github.com/exercism/todo/issues/104 and https://github.com/exercism/todo/issues/13. Comments are in individual commit messages.

:+1: nice clean commits. Thank you.


Some logs don't have carParams in the first segment

Was looking at some hyundai logs (1ad763dd22ef1a0e|2020-10-10--10-18-45) and they all didn't seem to have the carParams in the first log. Is loggerd not starting fast enough if the params are cached? There still should be 2 in every segment.

That routes contains carParams in the first segment. Think I wasn't interpreting the results correctly because it fingerprinted as mock car.


Double headings when using labels

Using labels, results in duplicated headings as shown in the picture below.
Looks like the cause for this is that the theme only removes the first child h1, but in this example the first child is an empty span.

.. _connections:

===========
Connections
===========

Connection objects implement :class:`ITargetConnection <boofuzz.ITargetConnection>`. Available options include
:class:`SocketConnection <boofuzz.SocketConnection>` and :class:`SerialConnection <boofuzz.SerialConnection>`.

Examples::

    tcp_connection = SocketConnection(host='<IP_ADDRESS>', port=17971)
    udp_connection = SocketConnection(host='<IP_ADDRESS>', port=17971, proto='udp')
    udp_connection_2_way = SocketConnection(host='<IP_ADDRESS>', port=17971, proto='udp', bind=('<IP_ADDRESS>', 17972)
    udp_broadcast = SocketConnection(host='<IP_ADDRESS>', port=17971, proto='udp', bind=('<IP_ADDRESS>', 17972),
                                     udp_broadcast=True)
    raw_layer_2 = (host='lo', proto='raw-l2')
    raw_layer_2 = (host='lo', proto='raw-l2',
                   l2_dst='\\xFF\\xFF\\xFF\\xFF\\xFF\\xFF', ethernet_proto=socket_connection.ETH_P_IP)
    raw_layer_3 = (host='lo', proto='raw-l3')

@tomaarsen Firstly, thank you for the complement! I had never intended for others to really use this (hence my self-indulgent naming of 'docs' as 'seonu' and stuff :sweat_smile:) but its awesome you were able to get some use out of it! I have been keeping an eye on your PR for NTLK and was about to reach out to you to ask whether you'd be comfortable with me cherrypicking/adapting some improvements from your fork :smile:
If you have any painpoints regarding developing on Insegel, let me know! I would like to improve the developer docs (as in, add any at all) and maybe remove the whole SCSS -> CSS build cycle since its a bit dated. But let me know if any issues you ran into that might improve the dev experience!

Sounds great! Let me know if there's any issues, etc.


Add fadeInfadeOut stuff

Ideally what I'd like is fade in/fade out animations.  Right now I can only get it to fade in, and then it abruptly flashes out when it leaves.

Hi @nateGeorge, have you tried giving https://github.com/MrSaints/Morphist a shot? It's essentially the same thing, but with the described fade out animations as well.

Hmm, I see, thanks.  The only problem is that after fadeout of one text and fade in of another, morphist is changing the height of something and the page awkwardly jumps a bit.  Maybe I'll open an issue on morphist for it.

@nateGeorge If you can set up a quick demo for me to have a look, I might be able to propose a quick fix (or address it if it is a bug) 😄 Thanks!

Ok, making the demo and an issue on morphist now

Hmm, well it seems with display:inline-block; for the  and  before and after the , the problem is gone.  Here's the demo I made for it though:  https://github.com/nateGeorge/morphist_bug_demo


Add a period.

I'd like to trigger a new build so as to view the logs. The existing logs have expired.

Hello?

hey sir!
this has really gone a lot further than this can you tell me what you'd like to do?

I was trying to see this.  Looks like it failed. https://github.com/faddat/device-image-test/runs/6620506626?check_suite_focus=true

Can this be fixed?   This is used as an example on two sites.


Impl only use

Would close https://github.com/rust-lang-nursery/rustfmt/issues/2887

This is the only meaningful change
Is this too hacky? I can't find a type of the relevant '_' Symbol or anything more than its name to match on. Its span is Span { lo: BytePos(0), hi: BytePos(0), ctxt: #0 }
Would there have been a more focused way to test this rather than the system test? The existing unit tests do no rewriting - they don't access a Context object (which I didn't easily see how to create)
I cleaned up some other bits when working my way through the code. LMK if you want to retain

The integration tests have a couple of failures; I think unrelated. For example:
Diff in /Users/maximilian/workspace/rustfmt/rand/src/rngs/entropy.rs at line 290:
         all(target_arch = "wasm32", feature = "stdweb"),
         all(target_arch = "wasm32", feature = "wasm-bindgen"),
     ),
-),))]
+)))]
 type Os = NoSource;

 type Custom = NoSource;

...which I think is https://github.com/rust-random/rand/blob/master/src/rngs/entropy.rs?utf8=✓#L261 (although not exactly the same file...)

Thank you for the PR!
I think that this is good enough. The compiler does not always provide enough information for rustfmt.


Add docs for public headers

The public headers need some doxygen (or other) comments.

I'm going to suggest doxyen-style comments because because whether or not you use them it is pretty easy to write a parser to extract them. And if you don't want to write such a parser "straight away" you already have a toolchain in place that can give you docs.

Also, haven't done proper research, but it looks like SWIG does support some Python autodoc features -http://www.swig.org/Doc2.0/SWIGDocumentation.html#Python_nn67
It may be that we can work "better" with this if we choose the right C++ docs syntax.


[x] Enable user to filter events by their frequency. This addresses this issue-357
[x] As a way of improving query performance, incorporates more default time periods (one month gaps) in cases where they are not provided.

WHAT JIRA STORY/TASK IS RELATED TO THIS PR?

The one for GET Events
And query using the frequency parameter. Frequency can be any of the following:

minutes
hourly
daily

Sample: http://localhost:3000/api/v1/devices/events?tenant=airqo&frequency=minutes
IS THERE ANY JENKINS CONSOLE LINK FOR CODE COVERAGE AND BUILD INFO?
N/A
ARE THERE ANY RELATED PRs?
N/A

@Baalmart Works as expected but did not get any results for the daily frequency.

Cool, I guess the job that is calculating daily is not yet deployed? cc: @NoahNsimbe

@Baalmart Works as expected but did not get any results for the daily frequency.

Cool, I guess the job that is calculating daily is not yet deployed? cc: @NoahNsimbe

Yes @Baalmart, still under review  #378

Thanks @Baalmart, works as expected, just a few coments
I am getting diffrerent responses for minute and minutes

Thanks @Baalmart, works as expected, just a few coments
I am getting diffrerent responses for minute and minutes

I'm experiencing this behaviour too @Baalmart

Working well as expected, just a few issues left in the comment (minute or minutes ?)

Hi @danielogen , thanks for the review, much appreciated. It looks like the results just reflect what is present in the database. So I guess we are storing values using minute and not minutes which is very fine. We just need to update the PR description accordingly ---on it now. cc: @NoahNsimbe


replicating this PR: https://github.com/projecttacoma/bonnie/pull/693…

…. this makes bonnie point to the latest ecqm profile for vsac. it also adjusts the rake task for querying vsac.

To test the profile change
Upload CMS169 from 2016 publication year.
In the value set list on the measure details page, check the list for 2.16.840.1.113883.3.1257.1.972 and confirm that these value sets are listed:
  RXNORM 1738483 (2017-01)
  RXNORM 1738495 (2017-01)
  RXNORM 1738503 (2017-01)
  RXNORM 1738511 (2017-01)
  RXNORM 1738515 (2017-01)
  RXNORM 1738519 (2017-01)
  RXNORM 1738523 (2017-01)
  RXNORM 1738527 (2017-01)

To test the rake task:
Run:
bundle exec rake bonnie:vsac:lookup_oid OID=2.16.840.1.113883.3.1257.1.972 DRAFT=true PROFILE='Latest eCQM' USERNAME=<username>PASSWORD=<password>

You should expect to see these values as part of the output:
  RXNORM 1738483 (2017-01)
  RXNORM 1738495 (2017-01)
  RXNORM 1738503 (2017-01)
  RXNORM 1738511 (2017-01)
  RXNORM 1738515 (2017-01)
  RXNORM 1738519 (2017-01)
  RXNORM 1738523 (2017-01)
  RXNORM 1738527 (2017-01)


[REQ] Add usage documentation to Wiki

Really love this extension. I and I'm sure a lot of other people could benefit from proper documentation with examples/tutorials if possible. I know this is a lot to ask, but maybe a few people can contribute. I've gone through a lot of trial and error to get what I want and still some seemingly obvious entries don't work. Having said that, I'm no regex guru. Anyway, just thought I would put this out there. Thanks again for creating this.

Absolutely agree. Thank you for your great work but documentation would be helpful!

Absolutely agree. Thank you for your great work but documentation would be helpful!


Optional auto-sort when adding songs

Give the user the option to automatically apply sorting to the list when new songs are added

[ ] Update Add songs dialog with checkbox for auto-sorting (default off - no auto-sort)
[ ] If checkbox is selected, re-apply current sorting rules to the dataset after the new songs are added

Is there really a reason to make this an option? When would the user have the data sorted and then want to add rows without dropping them into the sort order? It seems like the most common workflow would be:

Open file
Add new songs
See new data at the top, and then sort however you want to save the data

At this point, I don't think it's really necessary to implement this as an option. Just automatically apply sorting when new songs are added to the main list and call it a day for now.


Flaky-test: LedgerOffloaderMetricsTest.cleanup

LedgerOffloaderMetricsTest.cleanup is flaky. It fails sporadically.
Failure CI
https://github.com/apache/pulsar/runs/7562071273?check_suite_focus=true
StackTrace
Error:  Tests run: 6, Failures: 2, Errors: 0, Skipped: 3, Time elapsed: 10.064 s <<< FAILURE! - in org.apache.pulsar.broker.stats.LedgerOffloaderMetricsTest
  Error:  cleanup(org.apache.pulsar.broker.stats.LedgerOffloaderMetricsTest)  Time elapsed: 3.515 s  <<< FAILURE!
  org.mockito.exceptions.misusing.WrongTypeOfReturnValue:

  BrokerService cannot be returned by getBrokerServiceUrl()
  getBrokerServiceUrl() should return String
  ***
  If you're unsure why you're getting above error read on.
  Due to the nature of the syntax above problem might occur because:
  1. This exception *might* occur in wrongly written multi-threaded tests.
     Please refer to Mockito FAQ on limitations of concurrency testing.
  2. A spy is stubbed using when(spy.foo()).then() syntax. It is safer to stub spies -
     - with doReturn|Throw() family of methods. More in javadocs for Mockito.spy() method.

  	at org.apache.pulsar.broker.PulsarService.getBrokerServiceUrl(PulsarService.java:227)
  	at org.apache.pulsar.broker.auth.MockedPulsarServiceBaseTest.stopBroker(MockedPulsarServiceBaseTest.java:296)
  	at org.apache.pulsar.broker.auth.MockedPulsarServiceBaseTest.internalCleanup(MockedPulsarServiceBaseTest.java:239)
  	at org.apache.pulsar.broker.stats.LedgerOffloaderMetricsTest.cleanup(LedgerOffloaderMetricsTest.java:57)

assign to me


prevent linebreak in form

while browser users are not particulary affected by this, curl users are.
was this:

hello todo!
<\li>

is now this:

hello todo!<\li>

I don't understand how inline CSS affects anything in curl. That does not make any sense to me. Could you please elaborate?

it's about inconsistent formatting
if you made a post request like this
curl -d "todo=hello world" -X POST localhost:6969
you would get this result

hello todo!<\li>
however form without inline css puts a linebreak like this

hello todo!
<\li>

its not a problem if you only use the browser to interact with todo
but if you wanted to use the browser and curl you would get something like this

hello<\li>

asdf
<\li>

asdf<\li>

which is fine in a browser but a pain elsewhere for example outputing the todo list as plain text:
To-Do

* hello
* asdf

* asdf

Weirdly enough it always behaves for like that regardless of whether I add the display: inline or not... What is your browser?

qutebrowser but i got the same behavior with brave

tested on brave but display: inline did not work

Interesting! In any case, I had to add the display: inline to the form as part of restyling of the page ef73c9321cff8d74e9d539e9e5fa0a5b1c47febf But I think it became even more unusable from curl due to the delete buttons and stuff.
After all, supporting this style of interaction is outside of the scope of this project, sorry.

wait its not working any more on qutebrowser either

Maybe it was a bug of todo.asm that got accidentally fixed or something. Happens.

the culprit was enctype='text/plain'


Migrating to termbox2 with Zigler bindings

Hi!
This is my initial stab at refreshing the library a little by updating to Termbox2 and moving from C to Zig.
This  PR is still in draft, as I need to address:

[ ] package installation
[ ] code cleanup - I think there might be some things that are not used anymore
[ ] review the use of mutexes - are they needed?

FWIW  I am able to run the examples with new bindings.
Not great at low-level programming, so if you have suggestions - shoot them my way.
Zigler is a great piece of technology and makes NIFs very accessible!!!

I just wonder if, with such big changes, it should not become a separate project (ex_termbox2 or something). Probably it would also be faster to get it out.

It is a fair question - I was thinking of re-publishing it as ex_termbox2 and provide details how to use it from Ratatouile with simple deps adjustment.
Will make sure to give proper attribution to OG library as well.
Please note that I don’t have a clear timeline as to when this would happen, as I do this mostly for my “fun” project :)


interface examples don't work with formatted urls

If I have a templated url like /objects/{id} it's impossible to build examples demonstrating the usage of it without query parameters.
I think it would be a simple case of another isinstance and unpacking example dictionaries or something in the doc generator. Can try for a PR if that is useful.
hug.interface.HTTP#documentation

Actually, not 'impossible' ... one can do examples=[True] or some other thing that isn't a str to force inclusion of an example url. Bit dodgy though, would be good to be able to provide it generically with example kwargs dicts and have it figure it out for itself. Guess there's diminishing returns without building an entire OpenAPI spec.
Without the example url, the self-documenting API doesn't provide valid paths as it excludes API versions. Maybe this is worth a separate ticket but perhaps the code from the interface docs
"{0}{1}{2}".format(base_url, '/v{0}'.format(version) if version else '', url)

could be reused here when describing the full path of an endpoint: hug/api.py:225
(this is all on hug 2.2.0, for reference)


Corrupted job file?

Hello:
We found a Repack job failing when trying to unpack the job file [1]. It only happened for this job, but it raises the question of how should we recover from this problem if we see it happening again. This job is paused on vocms0314 in case you need to check it [2].
[1]
WMAgent bootstrap : Mon Mar 27 11:09:53 UTC 2017 : starting...
WMAgent bootstrap : Mon Mar 27 11:09:53 UTC 2017 : arguments validated...
WMAgent bootstrap : Mon Mar 27 11:09:53 UTC 2017 : WMAgent thinks it found the correct CMSSW setup script
WMAgent bootstrap : Mon Mar 27 11:09:53 UTC 2017 : found python2 at..
/cvmfs/cms.cern.ch/COMP/slc6_amd64_gcc493/external/python/2.7.6/bin/python2
WMAgent bootstrap : Mon Mar 27 11:09:53 UTC 2017 : is unpacking the job...
Unable to create job area for bootstrap
compressed file ended before the logical end-of-stream was detectedTraceback (most recent call last):
File "Unpacker.py", line 124, in runUnpacker
jobArea = createWorkArea(sandbox)
File "Unpacker.py", line 80, in createWorkArea
tfile.extractall(jobDir)
File "/cvmfs/cms.cern.ch/COMP/slc6_amd64_gcc493/external/python/2.7.6/lib/python2.7/tarfile.py", line 2047, in extractall
self.extract(tarinfo, path)
File "/cvmfs/cms.cern.ch/COMP/slc6_amd64_gcc493/external/python/2.7.6/lib/python2.7/tarfile.py", line 2084, in extract
self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
File "/cvmfs/cms.cern.ch/COMP/slc6_amd64_gcc493/external/python/2.7.6/lib/python2.7/tarfile.py", line 2160, in _extract_member
self.makefile(tarinfo, targetpath)
File "/cvmfs/cms.cern.ch/COMP/slc6_amd64_gcc493/external/python/2.7.6/lib/python2.7/tarfile.py", line 2201, in makefile
copyfileobj(source, target)
File "/cvmfs/cms.cern.ch/COMP/slc6_amd64_gcc493/external/python/2.7.6/lib/python2.7/tarfile.py", line 266, in copyfileobj
shutil.copyfileobj(src, dst)
File "/cvmfs/cms.cern.ch/COMP/slc6_amd64_gcc493/external/python/2.7.6/lib/python2.7/shutil.py", line 49, in copyfileobj
buf = fsrc.read(length)
File "/cvmfs/cms.cern.ch/COMP/slc6_amd64_gcc493/external/python/2.7.6/lib/python2.7/tarfile.py", line 819, in read
buf += self.fileobj.read(size - len(buf))
File "/cvmfs/cms.cern.ch/COMP/slc6_amd64_gcc493/external/python/2.7.6/lib/python2.7/tarfile.py", line 737, in read
return self.readnormal(size)
File "/cvmfs/cms.cern.ch/COMP/slc6_amd64_gcc493/external/python/2.7.6/lib/python2.7/tarfile.py", line 746, in readnormal
return self.fileobj.read(size)
EOFError: compressed file ended before the logical end-of-stream was detected
[2]
/data/tier0/srv/wmagent/2.0.5/install/tier0/JobCreator/JobCache/Repack_Run288593_StreamPhysics/Repack/JobCollection_971608_0/job_3557741

I could reproduce the same untar issue. Actually, one can open the spec tarball
/data/tier0/admin/Specs/Repack_Run288593_StreamPhysics/Repack_Run288593_StreamPhysics-Sandbox.tar.bz2
with vim and it reports the file is corrupted.
What puzzles me is how come the other jobs - for the same request - managed to untar and run?!? @johnhcasallasl can you confirm whether this workflow had other jobs injected and running without any issues please?

We seem to see this happening every once in a while, that the workflow sandbox tar produces a corrupted tarball without the system noticing except when a job wants to use it.
I simplified the tarball creation logic in JobCreator a while ago to possibly help with this. Since it seems to continue to happen, how about adding an explicit check that the produced tarball is ok (by reading and expanding it after creation) ?

That's the approach I was thinking of as well. However, John said other jobs within this same workflow succeeded(?) How come if it use exactly the same tarball? @johnhcasallasl please clarify

@johnhcasallasl I remade that tarball based on another Repack sandbox. Can you please replace:
/data/tier0/admin/Specs/Repack_Run288593_StreamPhysics/Repack_Run288593_StreamPhysics-Sandbox.tar.bz2
by
/data/srv/alan/remake/Repack_Run288593_StreamPhysics-Sandbox.tar.bz2
?
Make sure to keep the correct permissions/owner.

and of course, un-pause that job :)

@amaltaro, we copied the file generated by you to the required location and resumed the paused job. Thanks!

how was it, did the job succeed?

We didn't observe issues with the tarball when we resumed the job, but at the end it was not able to succeed given its input streamer file was already deleted from EOS :/ We failed the job.

 Corrupted job file?


Duplicate prevention, check both regular URL and shortened version

For Youtube links, the duplicate protection doesn't know to also check the "other" form of the URL.

To use youtu.be manually, simply take a URL like http://www.youtube.com/watch?v=FdeioVndUhs and replace the "http://www.youtube.com/watch?v=" with "http://youtu.be/" to get: http://youtu.be/FdeioVndUhs

Make Way for youtu.be Links
https://blog.youtube/news-and-events/make-way-for-youtube-links/
This happened again today, a dup was (mis-)reported here:
https://stacker.news/items/9528
So the dup detection code should, for Youtube links, try both.  i.e., if youtu.be/{}, then also check for a youtube.com/watch?v={}   and if youtube.com/watch= also check for a youtu.be/{}

Some one reported this on the board @camari I think, but thanks for creating the issue!

Done locally.

Appears there's an issue yet.
The duplicates detection does not see this shortened URL as a duplicate:
https://youtu.be/4w8qXX0u-y0
That URL gets an HTTP 303 which redirects to:
https://www.youtube.com/watch?v=4w8qXX0u-y0&feature=youtu.be
Now if I try to post that URL, SN will show two posts that already are duplicates:
https://www.youtube.com/watch?v=4w8qXX0u-y0 (https://stacker.news/items/24997)
and
https://youtu.be/4w8qXX0u-y0 (https://stacker.news/items/25336)
So the issue is: there is logic occurring for dup detection that occurs after posting a URL, and that same logic isn't alco occurring after a shortened URL (youtu.be) is decoded / expanded.
If no fix is at-the-ready, can this issue be re-opened? Or should I create a new, separate issue for this?


Possible misformatting for set_mode messages

Attempts to set modelines on channels fail; pydle merely gets a banlist in return, probably indicating the message is misformatted.
Code:
await bot.set_mode("#test", "+b<EMAIL_ADDRESS>Debug output:
DEBUG:XX:yy:>> MODE #test :+b<EMAIL_ADDRESS>DEBUG:XX:yy:<< :irc.fuelrats.dev 368 XX #test :End of Channel Ban List
WARNING:FIDO:fuelrats:Unknown command: [irc.local] 368 ['XX', '#test', 'End of Channel Ban List']

I do not think MODE messages can take a : before the modeline being set.
Edit:
await bot.set_mode("#test", "+b"<EMAIL_ADDRESS>does work. This is poorly documented, and not really a sane way to handle modelines, IMO.

The code
await bot.set_mode("#test", "+b<EMAIL_ADDRESS>
results in the ill-formed message MODE #test :+b<EMAIL_ADDRESS>because of the way that set_mode calls rawmsg.
The call chain ultimately lands in RFC1459Message.construct, and because of the logic in the for loop it interprets the argument "+b<EMAIL_ADDRESS>as a trailing parameter, which prepends a : and produces an erroneous message.
I feel that the signature that @kenneaal attempted to use is more intuitive than the current one. At the very least, the documentation could be a bit clearer on usage.


AMBARI-23805 - HBase deployment failed in Namenode Federated Environment

What changes were proposed in this pull request?
If hdfs-site configuration does not contains dfs.namenode.https-address.* properties starting NameNodes fails in a federated cluster even if https is turned of. This is also affects HBase start.
Cause: both dfs.namenode.https-address.* and dfs.namenode.http-address.* properties are queried and after then only one of them were used based on https is turned on or off.
Fix: Check https is turned on first and pull the necessary properties only
How was this patch tested?
Manually: on 4 node federated cluster remove dfs.namenode.https-address.* properties and restart services.
Please review:
@swagle @adoroszlai @aonishuk

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2220/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2223/
Test PASSed.


log backup: fix the race of on events and do flush

What is changed and how it works?

Issue Number: Close https://github.com/tikv/tikv/issues/15602
What's Changed:
add uuid for temporary files to avoid race as describe in above issue.

Related changes

PR to update pingcap/docs/pingcap/docs-cn:
Need to cherry-pick to the release branch

Check List
Tests

Unit test

Side effects

Performance regression

Consumes more CPU
Consumes more MEM

Breaking backward compatibility

Release note
Fix the issue that log backup may get stuck when flush too frequently.

/merge


Strange CPU bars behaviour

I'm a noob but i heve seen that after the v2 update CPU bars behave strangely

What's the issue?

When lemonbuddy is loaded up it uses quite a large amount of CPU.  This is with the process running.

And without.

Only happened very recently, tried on multiple systems and the same issue appears.

I wasn't referring to the performance issues but on the rendering one; CPU bars config here:
[module/cpu]
type = internal/cpu
interval = 0.5
format = <label> <ramp-coreload>
label = CPU

ramp-coreload-0 = ▁
ramp-coreload-0-font = 3
ramp-coreload-0-foreground = #aaff77
ramp-coreload-1 = ▂
ramp-coreload-1-font = 3
ramp-coreload-1-foreground = #aaff77
ramp-coreload-2 = ▃
ramp-coreload-2-font = 3
ramp-coreload-2-foreground = #aaff77
ramp-coreload-3 = ▄
ramp-coreload-3-font = 3
ramp-coreload-3-foreground = #aaff77
ramp-coreload-4 = ▅
ramp-coreload-4-font = 3
ramp-coreload-4-foreground = #fba922
ramp-coreload-5 = ▆
ramp-coreload-5-font = 3
ramp-coreload-5-foreground = #2aaff77
ramp-coreload-6 = ▇
ramp-coreload-6-font = 3
ramp-coreload-6-foreground = #ff555
ramp-coreload-7 = █
ramp-coreload-7-font = 3
ramp-coreload-7-foreground = #ff555

https://github.com/platipo/dotfiles/blob/master/config/lemonbuddy/config
In fact often the bars don't render the right colors: the appears randomly white/black. I don't know if I'm mistaking something

@z1lt0id could you show me your configuration because with my config it is using between 0.0-1.3%.. and what compiler did you build the project with? i've noticed some undefined behavior when built with gcc and optimizations turned on..

@platipo it looks like the colors are incorrect in your setup.. #ff555 is not a valid rgba value

@platipo this is the module config I use myself..
[module/cpu]
type = internal/cpu
interval = 0.5

format = <label> <ramp-coreload>

label = CPU
label-font = 3
label-foreground = #99

ramp-coreload-0 = ▁
ramp-coreload-0-font = 2
ramp-coreload-0-foreground = #aaff77
ramp-coreload-1 = ▂
ramp-coreload-1-font = 2
ramp-coreload-1-foreground = #aaff77
ramp-coreload-2 = ▃
ramp-coreload-2-font = 2
ramp-coreload-2-foreground = #aaff77
ramp-coreload-3 = ▄
ramp-coreload-3-font = 2
ramp-coreload-3-foreground = #aaff77
ramp-coreload-4 = ▅
ramp-coreload-4-font = 2
ramp-coreload-4-foreground = #fba922
ramp-coreload-5 = ▆
ramp-coreload-5-font = 2
ramp-coreload-5-foreground = #fba922
ramp-coreload-6 = ▇
ramp-coreload-6-font = 2
ramp-coreload-6-foreground = #ff5555
ramp-coreload-7 = █
ramp-coreload-7-font = 2
ramp-coreload-7-foreground = #ff5555

And the font I'm using for the bar's is font-1 = Unifont:size=5;-3

Here is the config :)  I just compiled it with aur but I'll check to see if that uses clang or not.
https://bin.fsociety.info/ducunuxote

Never mind it was my scripts that were doing it

@z1lt0id ok cool, so you got it fixed?

Thanks for your support @jaagr


When changing organization name, the links for the generated code do not update to reflect new name

Pushing a new version of the api.json resolves this.


Radio button example

Hey there,
I'm trying to figure out how to use this library with a form that has radio buttons. I'm noticing there's no examples in this repository or the react-redux-universal-hot-example repo.
An examples folder that has examples for text fields, radio buttons, checkboxes, and selects would be really really useful to work off of.
Thanks!

Good idea. I'll come up with one.

I'm also looking some examples how to use select and checkboxes.

The Widgets page uses a select.

Radio buttons and a checkbox can be seen working here.

Is there any working example where one of radio buttons is default? cannot make it work with initialValues.

@Fedcomp
I've also been struggling to get radio buttons to work with initialValues.
There seems to be some kind of collision going on if you include code like in the forms example:
<input type="radio" {...sex} value="male" checked={sex.value === 'male'}/>
The inclusion of the {...sex} spread attribute seems to be conflicting with the checked prop (as each field has a checked prop too which is initially undefined.
To work around it I'm trying to add the redux-form attributes i'm interested in explicitly
e.g.
<input type="radio" value="male" onChange={sex.onChange} checked={sex.value === 'male'}/> Male

This is definitely a bug, value doesn't get set when an initialValue is provided. Not a great solution but I managed to get it to work by manually setting the value just prior to rendering:
if (!frequency.value && frequency.initialValue) {
      frequency.value = frequency.initialValue
    }
I would love to see a fix for this though!

@mdgbayly worked well. But it's probably should be fixed in redux-form is possible.

@mdgbayly's solution doesn't seem to work for me since field.value is undefined until a radio button has been selected by a user. What am I missing?
initialValues: {frequency: "14"}

<Row>
  <Col xs={12}>

      <Input
        type="radio"
        value="0"
        label="One Time"
        bsStyle={ frequency.touched && frequency.error ? 'error' : null }
        checked={ frequency.value == "0"}
        onChange={ frequency.onChange }
      />

      <Input
        type="radio"
        value="7"
        label="Weekly"
        bsStyle={ frequency.touched && frequency.error ? 'error' : null }
        checked={ frequency.value == "7"}
        onChange={ frequency.onChange }
      />

      <Input
        type="radio"
        value="14"
        label="Fortnightly"
        bsStyle={ frequency.touched && frequency.error ? 'error' : null }
        checked={ frequency.value == "14"}
        onChange={ frequency.onChange }
      />

  </Col>
</Row>

Frequency has the following properties:
active: false
defaultChecked: false
defaultValue: "14"
dirty: false
error: "Required"
initialValue: "14"
invalid: true
name: "frequency"
onBlur: (event)
onChange: (event)
onDragStart: (event)
onDrop: (event)
onFocus: ()
onUpdate: (event)
pristine: true
touched: false
valid: false
visited: false
__proto__: Object

You should not pass all props, only pass onChanged and checked props to radio buttons, and add initial state. Worked for me.

That's exactly what I am doing. I only send checked and onChange. No luck...

So the proper way to handle this is to add checked={inputProps && option.value === inputProps.value} or similar to each radio input? I was expecting this to be automatically handled when populating the form. Not a big deal, but wondering if @erikras could chime in?

That's correct, @tomduncalf. <input {...fields.<model>} /> automatically adds certain properties, but since it can't know whether the input is a text, radio, checkbox, etc., it omits the checked prop, so you have to supply that yourself.

I see, I was wondering if there was a way for it to know what kind of field
it is, but that makes sense if it can't. Thanks!
On 24 February 2016 at 18:53, David Khourshid<EMAIL_ADDRESS>wrote:

That's correct, @tomduncalf https://github.com/tomduncalf. <input
{...fields.} /> automatically adds certain properties, but since
it can't know whether the input is a text, radio, checkbox, etc., it omits
the checked prop, so you have to supply that yourself.
—
Reply to this email directly or view it on GitHub
https://github.com/erikras/redux-form/issues/124#issuecomment-188404142.

I think there's another use case for radio buttons that isn't supported by this: Binding each radio button to a separate boolean field, such that at most one field should have the value true and the rest false. For example, you have a "deep form" containing an array of objects, and you want to use a radio button to select one as default/preferred. You can override name on each button to a common value to get them to act as a group, but obviously the default onChange handler won't work right.
I could diverge from my server-side data model to instead have a top-level field indicating which object in the array is selected (in which case I could use the radio buttons as described above), but I couldn't just use the array index because objects can be deleted anywhere in the array. My best idea so far is to introduce a hidden/unbound, client-only, unique ID for each object (probably set using a counter maintained as part of the form state) and use that as the radio button value. Still, that's pretty complicated, so I'm wondering if there's a simpler solution I'm overlooking. @erikras?

@trevorr That sounds like something that could be handled by a custom input component. Sort of like this idea to use checkboxes to control array membership. You could also manage it at the reducer level, with the plugin() interface, turning the set of booleans into a single virtual field. It seems like too rare a case for the library to handle for you, though.

@erikras Thanks, that link is very helpful. I'm new to redux-form, so I had been wondering the right way to do simple things like programmatically change the value of fields. (For some reason, I hadn't thought of calling their onChange method. I was using the change action creator directly, but that's more difficult, as you don't get the autobinding to the form and field, and if it's just called "change", it seems to get filtered out of the props by reduxForm().) Anyway, agreed that the use case doesn't need to be handled by the library if there's a straightforward way to accomplish it with the techniques you mention.

In case it helps anyone else, here is a one-hot reducer plugin:
import { actionTypes } from 'redux-form'
import write from 'redux-form/lib/write'

const onehotReducer = (fieldName: string) =>
  (state: Object = {}, action: { type: string }): Object => {
    switch (action.type) {
      case actionTypes.CHANGE: {
        const { field } = action
        const suffix = '].' + fieldName
        if (field.endsWith(suffix)) {
          const openIndex = field.lastIndexOf('[')
          if (openIndex >= 0) {
            const arrayField = field.substring(0, openIndex)
            const value = !!action.value
            if (value) {
              state = write(arrayField + '[].' + fieldName + '.value', false, state)
            }
            state = write(field + '.value', value, state)
          }
        }
        return state
      }
    }
    return state
  }

It plugs in to the form reducer like this:
const store = createStore(
  combineReducers({
    // ...
    form: formReducer.plugin({
      contact: onehotReducer('preferred')
    })
  })
)

Given an array field with a "preferred" property, such as things[].preferred, it can be used in JSX like this:
{this.props.fields.things.map(thing =>
  // ...
  <Input type="radio" label="Preferred"
      name="preferredThing"
      checked={thing.preferred.value}
      onChange={thing.preferred.onChange} />
)}

How about this thing will work, with  ? How to set the radio values to this. The website documentation is not helping me with this. Can someone help?

@mkny Yes, actual answer for this thread is http://redux-form.com/6.7.0/examples/simple/

@strobox that link doesn't show how to set a default value for a single radio who share the same name with others. I'm still facing the same situation.

@dmmarmol, initialize the value of the name you have assigned to all the radio buttons in the group, to the value that of your desired radio button to be checked, using initialValues.

@danielrob I see what you mean, and you're right. Unfortunately due to the fact that I'm wrapping a custom radio component with a High Order Component that outputs the redux-form <Field> with my component as the value of the prop component={} I'm strugglin on make it work, but I've tested without my HOC and it works.
Thanks!

I make it this way:
`
const RadioButtons = ({ name, options }) => (

<Field
component={({input, options}) => (
options.map(option =>
<input
id={option.id}
type='radio'
{...input}
value={option.value}
checked={option.value === input.value}
/>
{option.label}
)
)}
name={name}
options={options}
/>

);
RadioButtons.propTypes = {
options: PropTypes.arrayOf(PropTypes.shape({
id: PropTypes.string.isRequired,
label: PropTypes.string.isRequired,
value: PropTypes.string.isRequired
})),
name: PropTypes.string.isRequired
};
<RadioButtons name={inputsNames.gender} options={[
{
id: 'gender-male',
label: 'Male',
value: 'M'
},
{
id: 'gender-female',
label: 'Female',
value: 'F'
}
]}/>
`

I make it this way:
const RadioButtons = ({ name, options }) => (

        <Field
            component={({input, options}) => (
                options.map(option =>

                    <input
                        id={option.id}
                        type='radio'
                        {...input}
                        value={option.value}
                        checked={option.value === input.value}
                    />
                    {option.label}

)
            )}
            name={name}
            options={options}
        />

);

RadioButtons.propTypes = {
    options: PropTypes.arrayOf(PropTypes.shape({
        id: PropTypes.string.isRequired,
        label: PropTypes.string.isRequired,
        value: PropTypes.string.isRequired
    })),
    name: PropTypes.string.isRequired
};

<RadioButtons name='gender' options={[
    {
        id: 'gender-male',
        label: 'Male',
        value: 'M'
    },
    {
         id: 'gender-female',
         label: 'Female',
          value: 'F'
     }
]}/>
```

And then I can select the value with selector(state, 'gender').


Flashloan attack - FN

Hi there,
for this recent attack (Dualpools), I have not seen any FLASHLOAN-ATTACK alert.

Fixed in https://github.com/NethermindEth/forta-starter-kits/pull/96.


Fix issue #169

Coverage remained the same at 90.713% when pulling f49132535d23bc6c5c7371354296fa3aaae8b40e on issue_169 into fad1b362ae3459321f3b5bf9f63e27f01a16b118 on master.


Week 3: Add image uploads to the comments with Blobstore

Choose Blobstore to add to my portfolio.
Now a user can upload one image when commenting, and the comment list can display images included in the comments.

My portfolio is here.


Revert ""browser" to replace "bowser" in the disable SMB1 via GPP section"

Reverts MicrosoftDocs/windowsserverdocs#4927
"bowser" is the actual name of the SMB1 service.

@illfated : Thanks for your contribution! The author(s) have been notified to review your proposed change. @Deland-Han

#sign-off

@illfated: I'm sorry - only the author of this article, @Deland-Han, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

@illfated  I'll revert, thank you for the quick catch.


⚠ Bofrost.be has degraded performance

In 5c90e4a, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1185 ms

Resolved: Bofrost.be performance has improved in 3f5effa.


Search input field barely visible

VSCode Version: 1.16.1
OS Version: macOS Sierra 10.12.6

Steps to Reproduce:

Open a new document
Press cmd + f

Reproduces without extensions: Yes
When searching in file the input field is too small, and the input text can't be seen.

Looks similar to #33349.

Yes, thanks


Tells me GitLab merge request is not mergeable, even when it merges successfully

Bug Description

I'm tracking this here simply so it's acknowledged, and so I don't forget about it.

When trying to merge a merge request on GitLab, we receive a The merge request is not mergeable message no matter what, even if the merge request merges.
$ git merge-code-request
Merge Request ID?
27
Merging merge request: 27

Could not merge merge request:
  The merge request is not mergeable

Doing some digging, the reason the git_helper code is returning this is because the GitLab API itself is running an error message:
=> #<OpenStruct message="405 Method Not Allowed">

Therefore, the git_helper code has no way to infer that the merge request was actually merged. I'm not exactly sure what the solution is, since this issue is stemming straight from bugs in the GitLab API. The only thing I can say is that the GitLab API has so many changes happening at once, it's almost not reliable, since there's constantly new changes and new bugs, which is super unfortunate.
Worst case scenario, it merges in the background, and you can check via the GitLab web to make sure it did indeed merge. Or, you can always click the big green (or blue) Merge button in the GitLab web.
To Reproduce

Make a test merge request that is mergeable via the GitLab web (but don't merge it)
Run git-helper merge-code-request
Watch it merge the merge request from the GitLab web, but return the error message from the terminal window

Expected Behavior
It tells me the merge request merged and provides me with a commit SHA.
Desktop

OS: macOS Ventura 13.1
Browser: N/A
Version: 3.62.2
Ruby: 3.1.3

Closing due to upcoming archival.


Update doc-ja branch with upstream/master

This pull request updates the traffic server source codes and japanese translations to match upstream/master.
I merged master to doc-ja branch with following methods.
http://stackoverflow.com/a/27338013/1391518
And I recreated the Japanese po files with:
sphinx-build -b gettext . _build/locale
sphinx-intl update -p _build/locale -l ja

Then I copied msgstr values from po files with old filenames to po files with new filenames using my tool https://github.com/hnakamur/gopo
Also I copied and modified msgstr values manually whose msgid were changed.

Great work! This PR will fix https://github.com/trafficserver-doc-ja/trafficserver-doc-ja/issues/24 and https://github.com/trafficserver-doc-ja/trafficserver-doc-ja/issues/23
Basically looks good to me, but there are few little issues. Could you fix these issues please?

All your commit messages should start with "Doc:" except merge commit. All our commits are going to be backported to upstream repository, so we have to follow commit message styles of Apache Traffic Server repository.
Please format texts in 78-wide lines. msgcat will help you.

find . -name "*.po" -exec msgcat -w 78 -o {} {} \;

@masaori335 Thanks for your review and comment!
I fixed the commit messages so that they start with "Doc:".
And I formatted texts in 78-wide lines.
Could you have another look?
Thanks!


DR/- doesn't stack

Even with "Damage Reduction Rework" disabled and the game restarted, I still get multiple instances of DR/-

9vanilla changed this behavior. The Dr rework now actually allows more dr
to stack than vanilla
On Mon, Dec 2, 2024, 06:38 JBoP @.***> wrote:

Even with "Damage Reduction Rework" disabled and the game restarted, I
still get multiple instances of DR/-
—
Reply to this email directly, view it on GitHub
https://github.com/Vek17/TabletopTweaks-Base/issues/752, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAWSQPH6OEOUEVMLLS4AK432DRIGHAVCNFSM6AAAAABS3J5UUKVHI2DSMVQWIX3LMV43ASLTON2WKOZSG4YTCNZYHA3TOOA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Feature Request

please Update Wordpress plugin
Can You add More Site to support the player Like Vk.com, funnyordie.com,ok.ru,facebook,and google drive yandex drive onedrive basically Support all Oembed provider (if Possible)
Add  advertisment Support Like Popup,baaner ,pre roll ,mid roll (by the way found this https://github.com/ferdiemmen/plyr-ads)
Also Give Option to upload Your own subtitle through own computer or mobile from local storage
completly Hide Youtube Logo if it possible
add Option to share video but not youtube or vimeo share link insted post link where it embedded
add lazy load (load only a splash Image first when click then load the whole player )
Add own Logo with Link support

[ ] Issue observed on https://plyr.io
Sometime The Play button doesn't  work in mobile device(need to click At least 3 to 4 times )'
Hide Play Button When Click on  it (youtube)

Players affected:

[ ] HTML5 Video
[ ] HTML5 Audio
[ ] YouTube
[ ] Vimeo

I'll try and make sense of that:

The WordPress plugin I don't manage or look after. Get in touch with the author for that
In regards to "more support" - this will come later. I'm not going to go down that road but instead make Plyr work with plugins that would allow this
Advertisements has been raised already - not a huge amount of incentive for me to do this as I don't like ads really. Only advertisers do! :)
Subtitles is already supported - have a read of the docs - doing something like you want has a low use case so I'd not really incorporate that but you can build it yourself pretty easily
YouTube branding is already reduced to the minimum it can be - unfortunately they still show their logo and loader
Custom sharing you can build yourself
Logo can be added with CSS fairly easily

Thanks for the feedback but most of what you suggested has such low general appeal that I wouldn't want to bloat Plyr even further for features that wouldn't get much use.

Well Thanks For the player and reply but what you think about these problems
Sometime The Play button doesn't work in mobile device(need to click At least 3 to 4 times )'
Hide Play Button When Click on it (youtube)

And Advertisement is the only way to survive for publisher so I think its Important

Not sure on those issues as I've not experienced them myself.

And Advertisement is the only way to survive for publisher so I think its Important

I'm sure it is for you but this is a project for me to build in my spare time. It's meant to be fun for me. The prospect of others making money off my hard work has little appeal. Do you work for free?

Ok Thanks For the reply
Well Plugin Author on wordpress doesn't reply on support forum
and He's also not active on the forum from at least 7 months so
Need to find another way for update
I'll try myself LOL!


[BUG] YoutubePlayerIFrame scrolling issue (flutter Web)

Describe the bug
If you put YoutubePlayerIFrame inside the listview, hover over the widget and try to scroll - it doesn't work.
To Reproduce
Steps to reproduce the behavior:

Create a flutter app
Add youtube_player_iframe package
Create a listview, add some test elements and YoutubePlayerIFrame widget.
Scrolling does not work when a mouse is over the YoutubePlayerIFrame widget. Looks like it intercepts all the gestures.

Expected behavior
ListView should be scrollable like in the native apps.
Technical Details:

Device: [Flutter Web]

Try adding this code to prevent that the webview into the component try to handle the scroll events
YoutubePlayerIFrame(
      gestureRecognizers: <Factory<OneSequenceGestureRecognizer>>{},
      controller: _controller,
),

In mobile works fine 🔥, regards!

      gestureRecognizers: <Factory<OneSequenceGestureRecognizer>>{},

This solution doesn't work on web.
I have the same issue.

I have the same issue, is there anyone who can have the solution for this?

I have the same issue, is there anyone who can have the solution for this?

@quangvtvp my solution was to change to the package youtube_plyr_iframe.

I have the same issue, is there anyone who can have the solution for this?

@quangvtvp my solution was to change to the package youtube_plyr_iframe.

@FerBueroTrebino its also not working on web, have you used any specific configuration

@deepakrana0011 Did you try to add the Scrollbar widget?
Here is the code of my implementation:
class YoutubePlayer extends StatefulWidget {
  final String videoID;
  YoutubePlayer(this.videoID);
  @override
  _YoutubePlayerState createState() => _YoutubePlayerState();
}

class _YoutubePlayerState extends State<YoutubePlayer> {
  @override
  Widget build(BuildContext context) {
    return Material(
      color: Colors.transparent,
      child: InkWell(
        onTap: () {
          _showDialog(
            context,
            widget.videoID,
          );
        },
        child: Stack(
          alignment: Alignment.center,
          children: <Widget>[
            Stack(
              children: <Widget>[
                LayoutBuilder(
                  builder: (context, constraints) {
                    if (kIsWeb && constraints.maxWidth > 800) {
                      return Container(
                        color: Colors.transparent,
                        padding: EdgeInsets.all(5),
                        width: MediaQuery.of(context).size.width / 2,
                        child: ClipRRect(
                          borderRadius: BorderRadius.circular(10.0),
                          child: new Image.network(
                            YoutubePlayerController.getThumbnail(
                                videoId: widget.videoID,
                                // todo: get thumbnail quality from list
                                quality: ThumbnailQuality.max),
                            fit: BoxFit.fill,
                          ),
                        ),
                      );
                    } else {
                      return Container(
                        color: Colors.transparent,
                        padding: EdgeInsets.all(5),
                        width: MediaQuery.of(context).size.width * 2,
                        child: ClipRRect(
                          borderRadius: BorderRadius.circular(10.0),
                          child: new Image.network(
                            YoutubePlayerController.getThumbnail(
                                videoId: widget.videoID,
                                // todo: get thumbnail quality from list
                                quality: ThumbnailQuality.max,
                                webp: false),
                            fit: BoxFit.fill,
                          ),
                        ),
                      );
                    }
                  },
                ),
              ],
            ),
            Icon(
              Icons.play_circle_filled,
              color: Colors.white,
              size: 55.0,
            ),
          ],
        ),
      ),
    );
  }

@

@deepakrana0011 Did you try to add the Scrollbar widget?
Here is the code of my implementation:
class YoutubePlayer extends StatefulWidget {
  final String videoID;
  YoutubePlayer(this.videoID);
  @override
  _YoutubePlayerState createState() => _YoutubePlayerState();
}

class _YoutubePlayerState extends State<YoutubePlayer> {
  @override
  Widget build(BuildContext context) {
    return Material(
      color: Colors.transparent,
      child: InkWell(
        onTap: () {
          _showDialog(
            context,
            widget.videoID,
          );
        },
        child: Stack(
          alignment: Alignment.center,
          children: <Widget>[
            Stack(
              children: <Widget>[
                LayoutBuilder(
                  builder: (context, constraints) {
                    if (kIsWeb && constraints.maxWidth > 800) {
                      return Container(
                        color: Colors.transparent,
                        padding: EdgeInsets.all(5),
                        width: MediaQuery.of(context).size.width / 2,
                        child: ClipRRect(
                          borderRadius: BorderRadius.circular(10.0),
                          child: new Image.network(
                            YoutubePlayerController.getThumbnail(
                                videoId: widget.videoID,
                                // todo: get thumbnail quality from list
                                quality: ThumbnailQuality.max),
                            fit: BoxFit.fill,
                          ),
                        ),
                      );
                    } else {
                      return Container(
                        color: Colors.transparent,
                        padding: EdgeInsets.all(5),
                        width: MediaQuery.of(context).size.width * 2,
                        child: ClipRRect(
                          borderRadius: BorderRadius.circular(10.0),
                          child: new Image.network(
                            YoutubePlayerController.getThumbnail(
                                videoId: widget.videoID,
                                // todo: get thumbnail quality from list
                                quality: ThumbnailQuality.max,
                                webp: false),
                            fit: BoxFit.fill,
                          ),
                        ),
                      );
                    }
                  },
                ),
              ],
            ),
            Icon(
              Icons.play_circle_filled,
              color: Colors.white,
              size: 55.0,
            ),
          ],
        ),
      ),
    );
  }

as per code you are showing only thumbnail of the youtube video where you are playing the youtube video

Same here, I really don't know what to do....
Iv made a player from scratch to VIMEO and works fine, using video player from flutter itself, but all the players from youtube all have to much issues that nobody can answer how to fix

anyUpdate on scroll issue ?  or aything else works web?
i tried something like
 this : StackOverflow

Any update on this I am facing the same issue on the web.?

same issue

any fix? I have same problem on production...

Same issue still on most recent version

https://github.com/sarbagyastha/youtube_player_flutter/issues/585#issuecomment-1377707071

The suggested methods above don't work for web and the scrolling is blocked by the video frame. Does anyone have a solution?

A solution here would be very valuable from the community. Having to choose between scroll functionality and interacting with the iFrame is a bit of a deal breaker for this package. A fix like this will greatly contribute!

Any luck on this?

I used thumbnails on list and played video on dialog 😅. You can check this

The fundamental problem here is nothing to do with the widget per se. The issue is that an embedded iFrame in Flutter Web steals all the events and so the scroll event is not registered.
"Due to security restrictions with cross-origin iframe elements, Flutter cannot dispatch pointer events to an HTML view. If an iframe is the target of an event, the window containing the is not notified of the event. In particular, this means that any pointer events which land on an iframe will not be seen by Flutter, and so the HTML view cannot participate in gesture detection with other widgets."
This widget happens to use an html embedded iFrame because that is the standard way youTube videos are played (some people have tried to circumvent this, but it is a nightmare to support as they rely on a custom api to get the source url from the embed code and this is dependent upon too many factors that may change over time).
So the options are:

Stuck with scroll not working, but other events being OK in the iFrame/player
Overlay in a Stack with a widget using PointerInterceptor to stop any events going to the iFrame. This enables the scolling but stops all other events like click events.

The same is true of all schemes that use the flutter_inappwebview package, as the most recent beta version 6.0.0-beta.25 of this package - which now supports Flutter Web - uses an iFrame at its base.
It's a real pain. Hopefully sometime this will be fixed in the future, but in the meantime it looks like the earlier suggestions of using a thumbnail of the video and opening a popup window to play the video look like the best bet.

I used thumbnails on list and played video on dialog 😅. You can check this

I ended up doing the same

I'm using a hack that is good enough for my needs:
Stack(
  children: [
    YoutubePlayer(
      enableFullScreenOnVerticalDrag: false,
      controller: controller,
      aspectRatio: 16 / 9,
    ),
    if (showOverlay)
      Positioned.fill(
        child: PointerInterceptor(
          child: GestureDetector(
            onTap: () {
              setState(() {
                showOverlay = false;
              });
              controller.playVideo();
            },
            child: Container(
              color: Colors.transparent,
            ),
          ),
        ),
      ),
  ],
)

Basically it needs one tap to dismiss the overlay and start playing the video. After the first tap we end up in the same issue, but at least like this we can scroll the list before the first click.

any updates? I still have that issue

any update ?


Added 106. Construct Binary Tree from Inorder and Postorder Traversal

Simple clean and time efficient(USES MAP) code for building a Binary Tree given its Inorder and Postorder Traversal.

Accepted Leetcode solution with 16ms faster than 94.36% of online C++ submissions.


Update codeowners

Closes #1168

Single location of maintainers
Enables #1145
Directs users to auto-generated documentation when possible

@seanpmorgan could we merge the bot before? It will then check your CODEOWNERS and  report if it is valid (typos can happen)

I think my bot doesn't like tabs. It should handle multiple spaces without problem.


[@azure/arm-appplatform] SDK missing some REST API operations (Gateway)

I've been working with @azure/arm-applatform SDK for the last couple of weeks on a plugin for Backstage. From what I understand this SDK is autogenerated to mirror the the API to interact with azure services. However, I noticed the SDK is missing some parts of the REST API related to the Gateways operations
-Gateway
-Gateway Route Configs
I don't see them in the top level interfaces of AppPlatformManagementClient.
are these maybe some place else?

Hi @ch-enfuse ,what's your @azure/arm-appplatform version? if it is not<EMAIL_ADDRESS>,you can try to use this latest version and create gateway with beginCreateOrUpdateAndWait()


setupDB shell bug fix

PR Fixes:

setupDB.sh shell bug fix
Initially, when we use this script, it throws a unique constraint error as we are running the seed twice. Fixed that by checking if it already ran by the output.

Resolves #406

Addition bug fix:

wrong statement changed from 'Enter your db password' to 'Enter your db username'

Additional feature:

lower case are accepted now for the DB script

sorry there seem to be some conflicts here

@hkirat Hey merged main and resolved conflicts.

/bounty $10


refactor(HummockManager):  replace VarTransaction model with state-machine for better batch process

Problem

When there are a large number of worker threads, executing an ETCD transaction for each task can be very expensive. In fact, it is easy to merge results of multiple compact tasks.

Solution
At first, we define a trait and every component which hope to persist on meta-storage shall implement it.
pub trait MetaStateMachine<S: MetaStore>: Clone {
    type Msg: Sized;
    type Response: Sized;
    fn step(&mut self, msg: Self::Msg) -> Result<(Vec<Operation>, Vec<Self::Response>)>;
    fn apply(&mut self, ops: Vec<Operation>) -> Result<()>;
    async fn recover(&mut self, store: S) -> Result<()>;
}

Every time we can step the state-machine by some message and get outputs (The message can also generate from time tick). The outputs include state update and the message which need to notify other component (it may be a rpc message sent to compute-node or compactor-node). And then we can store the operations to meta-storage (ETCD or in-memory).

pub struct HummockManager {
     compaction: spin::Mutex<Compaction>,
}

impl HummockManager {
    async fn report_compact_task(&self, compact_task: CompactTask) -> Result<()>  {
        let new_state = self.compaction.lock().clone();
        let (ops, _) = new_state.step(compact_task)?;
        self.commit_trx(ops)?;
        *self.compaction.lock() = new_state;
        Ok(())
    }
    async fn batch_report_compact_task(&self, compact_task: Vec<CompactTask>) -> Result<()>  {
        let new_state = self.compaction.lock().clone();
        let mut ops = vec![];
        for task in compact_task {
            let (ret, _) = new_state.step(task)?;
            ops.append(&mut ret);
        }
        self.commit_trx(ops)?;
        *self.compaction.lock() = new_state;
        Ok(())
    }
}

Additional context
This design also allow one StateMachine also has anothor member which implements StateMachine. So we can rewrite this code with OOP. For example:
impl MetaStateMachine for Compaction {
    fn step(&mut self, msg: Self::Msg) -> Result<(Vec<Operation>, Vec<Self::Response>)> {
         let (mut ops, mut resp) = self.compact_state.step(msg.clone())?;
         let (ops2, resp2) = self.compact_task_assignment.step(msg)?;
         ops.append(&mut ops2);
        resp.append(&mut resp2);
         (ops, resp)
    }
}

Another problem in main code is that every request may be blocked by other thread even if it only want to get a old version. Because the read operation on RwLock would also be blocked by write operation in other thread.
So I want to replace it by a light lock spin::Mutex. And we will send all update operation to a channel to avoid multiple thread updating HummockManager.

The next step we will split pin_snapshot and unpin_snapshot to independent  etcd-transaction and we will not batch them with get_compact_task or commit_epoch.
See more details in  https://github.com/singularity-data/risingwave/issues/3551


Memory leaks

So, we're using Quantum v1.9.2 but finding it's leaking processes.  We see a crash in our logs from Quantum and then
{{case_clause,
                   {error,
                    {{badmatch,
                      {error,
                       {‘EXIT’,
                        {system_limit,
                         [{erlang,spawn_link,
                           [proc_lib,init_p,
                            [quantum_tasks_sup,
                             [‘Elixir.Quantum.Supervisor’,<0.29364.75>],

Once Quantum has crashed, the process count drops from around 260k to 22k.
Thoughts?

Thanks for reporting this!
Would it be possible to provide a minimal app that reproduces this problem?

With an absolute minimum setup I can't reproduce the issue. The process count doesn't increase over time. Therefore we'll need the minimal app that @c-rack requested.
Used Code / Config:
config :quantum, :my_app,
  cron: [
    {"* * * * *", &QuantumTest.heartbeat/0}
  ]

defmodule QuantumTest do
  def heartbeat do
    IO.puts "heartbeat"
  end
end

So, what seems to be happening is;  Our cron just is set to very
frequent.  One of those cron jobs crashes and, because the Quantum
v1.9.2 dep has restarts set to permanent, it recreates the worker
repetitively without the previous process cleaning up.  Eventually (and
we're talking days), we hit our process ceiling.
We're investigating to find out why the processes aren't cleaning up and
will notify when we figure it out.
Thanks
On 07/07/17 00:09, Jonatan Männchen wrote:

With an absolute minimum setup I can't reproduce the issue. The
process count doesn't increase over time. Therefore we'll need the
minimal app that @c-rack https://github.com/c-rack requested.
Used Code / Config:
config:quantum,:my_app,
cron:  [
{"* * * * *", &QuantumTest.heartbeat/0}
]
defmodule  QuantumTest  do
def  heartbeat  do
IO.puts"heartbeat"
end
end
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/c-rack/quantum-elixir/issues/211#issuecomment-313377927,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AATGTA34WL2BEOQsVv9GKkUDSOagLPGpks5sLM5pgaJpZM4OPiGd.

@Lazarus404
I tried it with this config:
use Mix.Config

config :quantum, :my_app,
  cron: [
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
    "@secondly": {QuantumGlobalTest, :heartbeat},
  ]

defmodule QuantumGlobalTest do
  def heartbeat do
    raise "fail"
  end
end

The process count stays stable at 124 for the three hours I let it run.

(Same result with 1.9.2 and 2.0.0)

I can find no errors in the library. Closing until new evidence is found.


JDK install on Ubuntu fails with HTTP 403

Please provide a brief summary of the bug
Something is wrong with SAS keys, maybe they expired?
Please provide steps to reproduce where possible
On Ubuntu 20.04, following instructions from here: https://blog.adoptium.net/2021/12/eclipse-temurin-linux-installers-available/
apt-get install -y wget apt-transport-https gnupg

wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add -

echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list

apt-get update # update if you haven't already

apt-get install temurin-17-jdk

Expected Results
Obviously expecting the install to work :)
Actual Results
Result:
Err:28 https://packages.adoptium.net/artifactory/deb focal/main arm64 temurin-17-jdk arm64 <IP_ADDRESS>.0+8
  403  Forbidden [IP: <IP_ADDRESS> 443]

E: Failed to fetch https://d3d227kvr2djy5.cloudfront.net/filestore/3e/3e51e8df20fe00a8b7f9e775a99594e20297b93e?response-content-type=application/x-debian-package&x-jf-traceId=960916e5c561db0a&X-Artifactory-repositoryKey=deb&X-Artifactory-projectKey=temurin&X-Artifactory-artifactPath=pool/main/t/temurin-17/temurin-17-jdk_<IP_ADDRESS>.0+8_arm64.deb&X-Artifactory-username=anonymous&Expires=1659354254&Signature=REDACTED

403  Forbidden [IP: <IP_ADDRESS> 443]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

What Java Version are you using?
11
What is your operating system and platform?
Ubuntu 20.04: both x64 and ARM
How did you install Java?
No response
Did it work before?
Yes it did.

Did you test with other Java versions?
Yes, 11 and 17. Both broken. Both on ARM and x64.

On various machines too with different connectivity.

Relevant log output
No response

@gdams is looking into this and is going to see if there is any problem on the JFrog side (JFrog host our installers)

can confirm this issue on bionic arm64 as well. seems to be the entire repo

Is the version specified in the repo even deployed yet? The release of these versions is still open.

@vn09917 can you please try to perform an apt install with a bit lower version of the package and send us the output? I can't prove my guess rn cause my issue is related to an ansible role that uses the hardcoded latest version of the apt package.

I believe this is fixed now. The issue was caused by us enabling the CDN on artificatory which doesn't seem to be working properly. For now, I've disabled the CDN and I'll raise a bug asking the jfrog team to look into why the CDN is giving us problems.

@gdams Thank you so much!

I have the same issue on a docker build on several clients and VMs.
But we have also some clients / vms where the same docker build works.
`
Get:15 http://deb.debian.org/debian buster/main amd64 libxtst6 amd64 2:1.2.3-1 [27.8 kB]
Get:16 https://packages.adoptium.net/artifactory/deb buster/main amd64 temurin-11-jdk amd64 <IP_ADDRESS>.0+8 [167 MB]
Err:17 https://packages.adoptium.net/artifactory/deb buster/main amd64 temurin-17-jdk amd64 <IP_ADDRESS>.0+8
403  Forbidden [IP: <IP_ADDRESS> 443]
Err:18 https://packages.adoptium.net/artifactory/deb buster/main amd64 temurin-8-jdk amd64 8.0.352.0.0+8-1
403  Forbidden [IP: <IP_ADDRESS> 443]
Fetched 172 MB in 4min 26s (646 kB/s)
E: Failed to fetch https://jfrog-prod-usw2-shared-oregon-main.s3.amazonaws.com/aol-adoptium/filestore/09/097d73e62006a695c21cd374fb0c1119f13c07af?X-Artifactory-username=anonymous&X-Artifactory-repositoryKey=deb&X-Artifactory-artifactPath=pool/main/t/temurin-17/temurin-17-jdk_<IP_ADDRESS>.0+8_amd64.deb&X-Artifactory-projectKey=temurin&x-jf-traceId=773d524acd2d1fe5&response-content-type=application/x-debian-package&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20221111T092354Z&X-Amz-SignedHeaders=host&X-Amz-Expires=60&X-Amz-Credential=AKIASG3IHPL6RZALTNGC/20221111/us-west-2/s3/aws4_request&X-Amz-Signature=012d69c2d59706fa13acf7c9d1cb3a10bd8b9913f4ccb569eb92861d05b18339  403  Forbidden [IP: <IP_ADDRESS> 443]
E: Failed to fetch https://jfrog-prod-usw2-shared-oregon-main.s3.amazonaws.com/aol-adoptium/filestore/f8/f8e30de36e704eafa3fe4615c32200171e5a44ae?X-Artifactory-username=anonymous&X-Artifactory-repositoryKey=deb&X-Artifactory-artifactPath=pool/main/t/temurin-8/temurin-8-jdk_8.0.352.0.0+8-1_amd64.deb&X-Artifactory-projectKey=temurin&x-jf-traceId=f77e6638819329de&response-content-type=application/x-debian-package&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20221111T092354Z&X-Amz-SignedHeaders=host&X-Amz-Expires=60&X-Amz-Credential=AKIASG3IHPL6RZALTNGC/20221111/us-west-2/s3/aws4_request&X-Amz-Signature=90fe933c199be8c014d97a980db03d097f85b8d1b7344278e5f28532f2bfe0de  403  Forbidden [IP: <IP_ADDRESS> 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
`
It seems it depends where the clients are located.
Can it be that there is an issue with jfrog-prod-usw2-shared-oregon-main.s3.amazonaws.com,
and on the clients, where it works, the pckages are delivered from other amazon locataions ?

This is still happening. Is there a fix?

@rylectro we rolled out a fix (https://github.com/adoptium/adoptium-support/issues/632#issuecomment-1677128906) and @nathan818fr confirmed it was working for him! Can you provide a log showing the issue?

I'm having this issue also.  My log looks the same as @Ercolino's does

@Stiverton I've just tried it in an Ubuntu 20.04 docker container and it looks ok for me with both temurin-17-jdk and temurin-8-jdk

I'm getting the same problem for Ubuntu 22.04 - while building packer image in AWS. Locally I can download the package manually without the issue.

I'm getting the same problem for Ubuntu 22.04 - while building packer image in AWS. Locally I can download the package manually without the issue.
While executing ping in AWS packages.adoptium.net resolves for me to <IP_ADDRESS> and locally to s.sni.global.fastly.net (<IP_ADDRESS>) what probably makes the difference.

Please note that we made a change yesterday to wrap Fastly around the JFrog instance. You might be experiencing DNS cache issues here. Can you try clearing cache?

Is there a rate limit that could be causing 403s?

@Stiverton No 403 errors in your logs.
The problems you're experiencing have nothing to do with this issue (which has been fixed).
You're experiencing a different problem, so maybe you should create a new issue.

$ ping packages.adoptium.net
PING s.sni.global.fastly.net (<IP_ADDRESS>) 56(84) bytes of data.

Err:5 https://packages.adoptium.net/artifactory/deb buster/main amd64 temurin-8-jdk amd64 8.0.382.0.0+5
   403  Forbidden [IP: <IP_ADDRESS> 443]

Same here, did work before without any problems.
#16 6.247 Err:3 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-11-jdk amd64 <IP_ADDRESS>.0+1 #16 6.247   Error reading from server. Remote end closed connection [IP: <IP_ADDRESS> 443]

@kalpaitch can you provide the full set of install commands that you're running?

I have this problem a well. I'm trying to build a Docker container with Ubuntu 20 and Temurin 11:
apt-get install temurin-11-jdk
Err:2 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 <IP_ADDRESS>.0+1
  403  Forbidden [IP: <IP_ADDRESS> 443]

However, when I try the version before that, it works:
apt-get install temurin-11-jdk=<IP_ADDRESS>.0+8
Get:1 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 <IP_ADDRESS>.0+8 [168 MB]
Fetched 168 MB in 5s (37.0 MB/s)

For now, this works for me, but at some point I would like to be able to just use the first call and get the latest version of Temurin...

I have this problem a well. I'm trying to build a Docker container with Ubuntu 20 and Temurin 11:
apt-get install temurin-11-jdk
Err:2 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 <IP_ADDRESS>.0+1
  403  Forbidden [IP: <IP_ADDRESS> 443]

However, when I try the version before that, it works:
apt-get install temurin-11-jdk=<IP_ADDRESS>.0+8
Get:1 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 <IP_ADDRESS>.0+8 [168 MB]
Fetched 168 MB in 5s (37.0 MB/s)

For now, this works for me, but at some point I would like to be able to just use the first call and get the latest version of Temurin...

Encounter the same issues.

@BillyLiou can you please try updating ca-certificates before running the install?

Hi @gdams , can you provide some methods?
Because I am not familiar with this part.
Btw I use ubuntu 20.04.
Thanks.

Sure! Just run this command first:
apt-get install ca-certificates

@BillyLiou did the above command fix your issue?

Weird... I had decided to use one of your docker images instead, but I wanted to test mentioned workaround -- I can't reproduce the error anymore: installing either curl or wget to get the repository key, also installs/updates ca-certs after which everything works as expected... Not sure what I did differently before...

Hi @gdams,
it worked.
But I will still observe it's stability.
Thanks.

I still see the issue after updating my ca-certs on Ubuntu 22.04 with error 400:
Err:1 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-17-jdk amd64 <IP_ADDRESS>+9
  400  Bad Request [IP: <IP_ADDRESS> 443]
E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-${VERSION}/temurin-17-jdk_<IP_ADDRESS>%2b9_amd64.deb  400  Bad Request [IP: <IP_ADDRESS> 443]

Seeing the same thing.  Following the URL (https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-17/temurin-17-jdk_<IP_ADDRESS>+9_amd64.deb) fails with a 501.

I tried below option. Firstly I download the deb package and installed manually. Its working fine for me.
$sudo wget https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-17/temurin-17-jdk_<IP_ADDRESS>+9_amd64.deb
$sudo dpkg -i temurin-17-jdk_<IP_ADDRESS>+9_amd64.deb

Try this.

Happening today:

Err:7 https://packages.adoptium.net/artifactory/deb bookworm/main amd64 temurin-17-jdk amd64 <IP_ADDRESS>.0+9
Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-17/temurin-17-jdk_<IP_ADDRESS>.0%2B9_amd64.deb
403  Forbidden [IP: <IP_ADDRESS> 443]
Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

This had been working for my build automation until now.

Same thing on my side. It's been on and off for a while... Is there anyway to switch to something more stable ?

Experiencing the same issue. We install the JDK as part of an init script for Jenkins Azure VM agents (Ubuntu 20.4).
Err:13 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 <IP_ADDRESS>.0+9   403  Forbidden [IP: <IP_ADDRESS> 443]
We're using the installation instructions from https://adoptium.net/en-GB/installation/linux/ for Ubuntu.
sudo apt-get install -y wget apt-transport-https
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null
echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
sudo apt-get update -y
sudo apt-get install -y temurin-11-jdk

Getting the same issue when building AWS AMI using Packer.
 amazon-ebs: Get:1 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 p11-kit-modules amd64 0.23.20-1ubuntu0.1 [231 kB]
    amazon-ebs: Get:2 https://packages.adoptium.net/artifactory/deb focal/main amd64 adoptium-ca-certificates all 1.0.2-1 [2304 B]
    amazon-ebs: Get:3 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-8-jdk amd64 8.0.392.0.0+8 [84.8 MB]
    amazon-ebs: Get:4 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 p11-kit amd64 0.23.20-1ubuntu0.1 [93.8 kB]
    amazon-ebs: Get:5 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 fonts-dejavu-extra all 2.37-1 [1953 kB]
    amazon-ebs: Get:6 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 fonts-dejavu all 2.37-1 [3130 B]
    amazon-ebs: Get:7 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 java-common all 0.72 [6816 B]
    amazon-ebs: Get:8 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libxtst6 amd64 2:1.2.3-1 [12.8 kB]
    amazon-ebs: Err:3 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-8-jdk amd64 8.0.392.0.0+8
    amazon-ebs:   403  Forbidden [IP: <IP_ADDRESS> 443]
    amazon-ebs: Fetched 2303 kB in 1s (1659 kB/s)
==> amazon-ebs: E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-8/temurin-8-jdk_8.0.392.0.0+8_amd64.deb  403  Forbidden [IP: <IP_ADDRESS> 443]
==> amazon-ebs: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

+1 when building https://github.com/actions/runner-images/blob/main/images/ubuntu/templates/ubuntu-20.04.pkr.hcl. Seems to be intermittent. It only fails for version17:
azure-arm.build_image: Get:1 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-21-jdk amd64 <IP_ADDRESS>.0+12 [177 MB]
==> azure-arm.build_image: E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-21/temurin-21-jdk_<IP_ADDRESS>.0+12_amd64.deb  403  Forbidden [IP: <IP_ADDRESS> 443]
The installations of version 11 (and 8) work fine.
azure-arm.build_image: Get:1 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-11-jdk amd64 <IP_ADDRESS>.0+7 [168 MB]
azure-arm.build_image: Fetched 168 MB in 2s (80.7 MB/s)
Any way to improve availability of this repository?

Not sure if this will help with the debugging but we've setup a job to download and install temurin-11-jdk. This job ran every hour for the past 2 days. You can see from the logs below that it's always the same 403 error. I was curious if there were certain times this was happening but there doesn't seem to be any consistency between the time the error occurred.

I can confirm this issue as well.
105.4 Get:523 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-8-jdk amd64 8.0.402.0.0+6 [84.8 MB]
121.2 Err:523 https://packages.adoptium.net/artifactory/deb focal/main amd64 temurin-8-jdk amd64 8.0.402.0.0+6
121.2   403  Forbidden [IP: <IP_ADDRESS> 443]

I'm coming from a Central European IP (mobile network and office did not work). Switching to a Californian IP it works.

Failed when trying to make an arm docker image (base image is ubuntu 20.04), the client is spawn with Github Actions
9.281 Err:3 https://packages.adoptium.net/artifactory/deb focal/main arm64 temurin-21-jdk arm64 <IP_ADDRESS>.0+13-2
9.281   403  Forbidden [IP: <IP_ADDRESS> 443]
9.291 Fetched 4066 kB in 3s (1281 kB/s)
9.291 E: Failed to fetch https://packages.adoptium.net/artifactory/deb/pool/main/t/temurin-21/temurin-21-jdk_<IP_ADDRESS>.0+13-2_arm64.deb  403  Forbidden [IP: <IP_ADDRESS> 443]
9.292 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Same issue for me on Debian

Getting 403 when using apt for installing temurin packages from ASN: AS24940.
Workaround:
Package download works fine when using wget, I just moved packages manually into the /var/cache/apt/

I had this issue after a couple of failed attempts to build a docker container and assumed I triggered some sort of rate limiting. I waited a couple of hours and tried again. Then it worked. Still no proof, but rate limiting seems plausible.


Add early stopping feature

Adding Early Stopping Feature

This commits adds early stopping feature, early stopping class is created by Bjarten/early-stopping-pytorch [link below]
Added several variables in config.yml:
1. early_stopping_flag: wether to enable early_stopping feature or not
2. early_stopping_patience: How many epochs of val_loss is changing only within the delta
3. early_stopping_delta: toolerance in val_loss where code will decide to EarlyStop!

link to pytorchtools.py:
https://github.com/Bjarten/early-stopping-pytorch/blob/master/pytorchtools.py

This pull request will be merged after #27, #29, #32


Quasiquoter for Field

This eliminates, by construction, a whole host of errors (and possible exception cases) around people building Fields with empty names (or types, for that matter). I've left the Field constructor exposed in a new module, but clearly indicated that it's both unsafe and unstable.
On a related question: how do empty table names get handled?

Empty table names are impossible to construct when using Deriving Via but I don't think I can enforce them in manual instance declarations

Table names have an extra level of protection through DerivingVia, but also if someone puts an empty table name in their Entity instance, this is probably going to be done willingly

@kozross Can you bust the cache of Github Actions by changing this line to something else? https://github.com/tchoutri/pg-entity/blob/main/.github/workflows/ci.yml#L68

Awesome, it worked.
Good job with this PR, I'm impressed as usual.


sublime-music: 0.11.11 -> 0.11.12

Motivation for this change
https://gitlab.com/sublime-music/sublime-music/-/releases/v0.11.12
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

[x] 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/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 121820 at 145ca475 run on aarch64-linux 1

1 package built successfully:

sublime-music

1 suggestion:

warning: unused-argument
Unused argument: fetchpatch.
Near pkgs/applications/audio/sublime-music/default.nix:2:3:
  |
2 | , fetchpatch
  |   ^

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

1 package built:

sublime-music


Connexion doesn't declare setuptools dep

Description
Connexion doesn't declare setuptools as a dep, but it uses it
Expected behaviour
connexion can successfully be imported
Actual behaviour
ImportError: No module named pkg_resources
Steps to reproduce
Build a pex with connexion as a dep and try to import it
Additional info:
Output of the commands:

python --version
Python 3.7.9
pip show connexion | grep "^Version\:"
2.7.0

Hi @jmcrawford45
Thanks for the report. setuptools is usually installed by default, but since we depend on pkg_resources, it would be good to add it explicitly.
An even better solution would be to replace pkg_resources with importlib though.


Small typo: packge instead of package

Small typo: packge instead of package

I reported this in the wrong repository


Fix some spelling errors in chapter 'Introduction'

No new content. Just fixing spelling errors in the introduction.

sorry, for the confusion.... the introduction for the paper on competencies is currently happening at #114


The property "mint" does not exist on the type "BaseContract".

  const demo = await ethers.getContract(
    "Demo"
  );

After upgrading to ethers v6 and using the recommended version of the hardhat-ethers library from this repository, when I call getContract and try to invoke the mint method on the returned contract, it shows an error message saying "The property "mint" does not exist on the type "BaseContract"."
1.Why is the returned type now BaseContract instead of Contract?
2.Apart from using the 'any' type, how should I fix it?

This issue should be moved to https://github.com/wighawag/hardhat-deploy-ethers/
hardhat-deploy does not care what library you are using: viem, ethers, web3 ....