HAL Module Request: hal_hpmicro

Origin
Zephyr HAL HPMicro project.
Sources to be added:
https://github.com/hpmicro/zephyr_hal_hpmicro.git
Purpose
This software provides Hardware Abstraction Layer drivers support for HPMicro HPM6400_6700 family SoCs.
Mode of integration
Please integrate this project as a module according to the generic Zephyr HAL modules structure.
Pull Request
#46329
Description
This project provides HPM6700_6400 family peripheral drivers support (such as CLOCK,PINCTRL, GPIO, UART, PWM, I2C, SPI etc..), and it is going to be used by HPM6750 SoC and HPM6750EVKMINI board in Zephyr.
No other projects available, no better options.
Dependencies
None.
Revision
83806f293cf2709e84f4649423c9729b2f507766
License
BSD-3-Clause

https://github.com/hpmicro/zephyr_hal_hpmicro.git does not seem to be accessible. If it is a private repository, please make it public since we have no way of viewing it.
Also there needs to be a Zephyr pull request using this module before this module repository can be created (the west.yml in the pull request can point to the provided URL until the upstream repository is created).

Done, please review.

We will review this at the next TSC meeting (next Wednesday).

Hi @willChuai!
To be honest, arch/, soc/, boards/ and 'driver/ directories content look as if it should be merged into the main Zephyr tree and not kept separate in a HAL module. There is also a FreeRTOS (?) directory in middleware/ - why is that the case?

hpm_sdk is a development environment provided by hpmicro to complete development work on the hpmicro family of chips, so FreeRTOS and other middleware will be available in hpm_sdk.
By introducing it as a whole into zephyr, we are mainly concerned with maintainability, so that when hpmicro releases a version, all new changes can be easily synchronised and updated into zephyr.
The structure of hpm_sdk refers to zephyr, but the contents of arch/, soc/, boards/ and driver/ do not match zephyr, so it cannot simply be integrated into the main zephyr tree.
When the first version of zephyr is complete and the development process is fixed, we plan to put more staff into improving driver/ and boards/.

Hi @willChuai!
To be honest, arch/, soc/, boards/ and driver/ directories content look as if it should be merged into the main Zephyr tree and not kept separate in a HAL module. There is also a FreeRTOS (?) directory in middleware/ - why is that the case?

hpm_sdk is a development environment provided by hpmicro to complete development work on the hpmicro family of chips, so FreeRTOS and other middleware will be available in hpm_sdk.
By introducing it as a whole into zephyr, we are mainly concerned with maintainability, so that when hpmicro releases a version, all new changes can be easily synchronised and updated into zephyr.
The structure of hpm_sdk refers to zephyr, but the contents of arch/, soc/, boards/ and driver/ do not match zephyr, so it cannot simply be integrated into the main zephyr tree.
When the first version of zephyr is complete and the development process is fixed, we plan to put more staff into improving driver/ and boards/.

hpm_sdk is a development environment provided by hpmicro to complete development work on the hpmicro family of chips, so FreeRTOS and other middleware will be available in hpm_sdk.
By introducing it as a whole into zephyr, we are mainly concerned with maintainability, so that when hpmicro releases a version, all new changes can be easily synchronised and updated into zephyr.

On the other hand, having Zephyr-specific code in an imported HAL module introduces the burden of maintaining this on anybody doing changes in the main Zephyr tree (e.g. if changing a Zephyr API, which is being used in your HAL, the author now needs to perform changes in two places, within Zephyr and within your HAL).
Note that the approach taken here is different to all the other vendor HALs included in Zephyr.

The structure of hpm_sdk refers to zephyr, but the contents of arch/, soc/, boards/ and driver/ do not match zephyr, so it cannot simply be integrated into the main zephyr tree.

Is the current structure of the code a requirement from HP Micro or could it be changed to match that of Zephyr, so that the code can be included directly?

When the first version of zephyr is complete and the development process is fixed, we plan to put more staff into improving driver/ and boards/.

Sounds good.

On the other hand, having Zephyr-specific code in an imported HAL module introduces the burden of maintaining this on anybody doing changes in the main Zephyr tree (e.g. if changing a Zephyr API, which is being used in your HAL, the author now needs to perform changes in two places, within Zephyr and within your HAL).
Note that the approach taken here is different to all the other vendor HALs included in Zephyr.

My previous description was unclear, hal_hpmicro does not contain the zephyr code and API. So zephyr related changes will only be done in zephyr. Although the entire hpm_sdk is added to zephyr, the only files that are compiled into zephyr are the chip-related content.  To remove the extra content from hpm_sdk would affect the speed of the release.

Is the current structure of the code a requirement from HP Micro or could it be changed to match that of Zephyr, so that the code can be included directly?

We hope to keep the current form, but if zephyr insists we can delete the middleware/ , samples/ and other unused directories.

I have looked at the proposed HAL and I do not see anything there that is particularly troublesome personally. As @willChuai explains, this is an SDK which contains more than just the HAL, but the actual contents used by Zephyr will be a subset. We have two options here:

Ask HPMicro to pull only the files actually needed by Zephyr into hal_hpmicro
Use their SDK repo as-is, but Zephyr will not use all of it

AFAIK Zephyr doesn't currently have a policy regarding whether we should pull only portions of existing SDKs, but it is true that most vendors do pull only the files that are needed.

@willChuai can you and/or HPMicro commit to maintaining the integration of this HAL with Zephyr for the foreseeable future?

Of course, HPMicro and I will keep the integration of hal_hpmicro and zephyr.

I have looked at the proposed HAL and I do not see anything there that is particularly troublesome personally. As @willChuai explains, this is an SDK which contains more than just the HAL, but the actual contents used by Zephyr will be a subset. We have two options here:

Ask HPMicro to pull only the files actually needed by Zephyr into hal_hpmicro
Use their SDK repo as-is, but Zephyr will not use all of it

AFAIK Zephyr doesn't currently have a policy regarding whether we should pull only portions of existing SDKs, but it is true that most vendors do pull only the files that are needed.

The HAL contains Zephyr-specific files, e.g. Zephyr board YAML files (https://github.com/hpmicro/zephyr_hal_hpmicro/blob/manifest-rev/hpm_sdk/boards/hpm6360evk/hpm6360evk.yaml), Zephyr-dependent CMake function calls (https://github.com/hpmicro/zephyr_hal_hpmicro/blob/d652edd06e71286be560b9a918c0db9d47962521/CMakeLists.txt#L14), a lot of sample code unrelated to Zephyr (https://github.com/hpmicro/zephyr_hal_hpmicro/tree/manifest-rev/hpm_sdk/samples), and quite a lot of middleware unused by Zephyr (https://github.com/hpmicro/zephyr_hal_hpmicro/tree/manifest-rev/hpm_sdk/middleware).
Personally, I think this is too much overhead to accept as a Zephyr HAL module.

@willChuai In the TSC there was an issue raised with your HAL: It contains too much beyond the actual HAL, especially the middleware. Can you try an approach similar to what STM does, with an importer script that filters out the parts that are not needed for Zephyr? https://github.com/zephyrproject-rtos/hal_stm32/blob/main/scripts/update_stm32_package.py
A script of some sort that takes the latest SDK release and pulls the files that you are interested in.

@willChuai In the TSC there was an issue raised with your HAL: It contains too much beyond the actual HAL, especially the middleware. Can you try an approach similar to what STM does, with an importer script that filters out the parts that are not needed for Zephyr? https://github.com/zephyrproject-rtos/hal_stm32/blob/main/scripts/update_stm32_package.py
A script of some sort that takes the latest SDK release and pulls the files that you are interested in.

OK, we'll remove the unused content.This will take some time.

I have looked at the proposed HAL and I do not see anything there that is particularly troublesome personally. As @willChuai explains, this is an SDK which contains more than just the HAL, but the actual contents used by Zephyr will be a subset. We have two options here:

Ask HPMicro to pull only the files actually needed by Zephyr into hal_hpmicro
Use their SDK repo as-is, but Zephyr will not use all of it

AFAIK Zephyr doesn't currently have a policy regarding whether we should pull only portions of existing SDKs, but it is true that most vendors do pull only the files that are needed.

The HAL contains Zephyr-specific files, e.g. Zephyr board YAML files (https://github.com/hpmicro/zephyr_hal_hpmicro/blob/manifest-rev/hpm_sdk/boards/hpm6360evk/hpm6360evk.yaml), Zephyr-dependent CMake function calls (https://github.com/hpmicro/zephyr_hal_hpmicro/blob/d652edd06e71286be560b9a918c0db9d47962521/CMakeLists.txt#L14), a lot of sample code unrelated to Zephyr (https://github.com/hpmicro/zephyr_hal_hpmicro/tree/manifest-rev/hpm_sdk/samples), and quite a lot of middleware unused by Zephyr (https://github.com/hpmicro/zephyr_hal_hpmicro/tree/manifest-rev/hpm_sdk/middleware).
Personally, I think this is too much overhead to accept as a Zephyr HAL module.

Okay, revising now.

Revision completed, please review, thanks.

Thanks, it looks much better without e.g. the middleware directory.
I'm wondering - why can't much of the HAL be moved and merged directly into the main Zephyr tree? Some parts, i.e. files in hpm_sdk/drivers look like they should be moved to drivers directly, instead of being in a HAL that is stored in a separate repo. That would make e.g. bisecting much easier in the future.
I know that you've responded to this suggestion before with:

By introducing it as a whole into zephyr, we are mainly concerned with maintainability, so that when hpmicro releases a version, all new changes can be easily synchronised and updated into zephyr.

But that's generally how open source works: you want to update something that you had contributed in the past, you just contribute again. If you only have Zephyr-related stuff in your HAL, I don't really see how synchronizing your work would be made more difficult (if you follow Zephyr's coding guidelines etc.) if hpmicro-related drivers would be directly in Zephyr.

Thanks, it looks much better without e.g. the middleware directory.
I'm wondering - why can't much of the HAL be moved and merged directly into the main Zephyr tree? Some parts, i.e. files in hpm_sdk/drivers look like they should be moved to drivers directly, instead of being in a HAL that is stored in a separate repo. That would make e.g. bisecting much easier in the future.

The hpm_sdk/drivers package is already very thin, it corresponds directly to the mcu registers, without this layer it would do the register operations directly, which should be consistent with most vendors. So the final structure is that zephyr/drivers calls the hpm_sdk/drivers interface.

I know that you've responded to this suggestion before with:

By introducing it as a whole into zephyr, we are mainly concerned with maintainability, so that when hpmicro releases a version, all new changes can be easily synchronised and updated into zephyr.

But that's generally how open source works: you want to update something that you had contributed in the past, you just contribute again. If you only have Zephyr-related stuff in your HAL, I don't really see how synchronizing your work would be made more difficult (if you follow Zephyr's coding guidelines etc.) if hpmicro-related drivers would be directly in Zephyr.

We are active in the open source community and hpm_sdk itself is open source. HPMicro does not support many zephyr drivers and we plan to first complete an initial version and then invest more staff in adding drivers, as without a proper version we think we may have ineffective work. Within the next two months we will be adding adc, pwm, spi, i2c and other basic drivers.

Hi all, any new progress on this issue?

Can you add TSC tags?

@fkokosinski
The reason why hpmicro needs an independent repository is because hpmicro has already produced multiple models and series of MCUs, not only HPM6300 and HPM6750.

Can you add TSC tags?

Hi, I took a look at TSC meeting notes from 2022 and it looks like the motion passed (page 124) on 3 August 2022, and that's why the TSC label was removed:
HAL Module Request: hal_hpmicro
Cleaned up from before
Vote to approve HAL Module Request: hal_hpmicro #46301
Motion: Carles
Second: Keith
No objections raised. Motion passes.

Can you add TSC tags?

Hi, I took a look at TSC meeting notes from 2022 and it looks like the motion passed (page 124) on 3 August 2022, and that's why the TSC label was removed:
HAL Module Request: hal_hpmicro
Cleaned up from before
Vote to approve HAL Module Request: hal_hpmicro #46301
Motion: Carles
Second: Keith
No objections raised. Motion passes.

what`s the next?

@willChuai Can you confirm that the content of https://github.com/hpmicro/zephyr_hal_hpmicro should be used to create the Zephyr hal_hpmicro module repository?
Once you confirm, I will go ahead and create the repository for it.

@willChuai Can you confirm that the content of https://github.com/hpmicro/zephyr_hal_hpmicro should be used to create the Zephyr hal_hpmicro module repository?
Once you confirm, I will go ahead and create the repository for it.

Thanks, I confirm.

https://github.com/zephyrproject-rtos/hal_hpmicro has been created.


Url Encode returnUrl, and redirect upon login success.

This is a fix for https://github.com/IdentityServer/IdentityServer4/issues/217, which was reported in the wrong repo, IMO. The return url was not being used, presumably because the value of the returnUrl was wrong after signing in. This is because the return url was not being url-encoded, which caused the query parameters of the redirectUrl to flatten in to the query parameters of the uri containing the redirectUrl.
The net effect of this issue was that Identity Server Clients which depended on OpenID Connect were only being redirected back to the Client application if the user has previously authenticated with the Identity Server. i.e: the user would need to click "login" on the Client application, authenticate with an external provider, manually redirect back to the client application, and click "login" again to see the Identity Server consent page.
I'm url-encoding the return url before appending it to the redirect uri. I'm also taking the liberty to redirect to said return url upon successful login.

Hi @cwharris, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, DNFBOT;

Thanks. I just fixed this in the main repo earlier today :)

I must be unfamiliar with the main repo. Does the IdentityServer repo have samples?

The main repo has a pseudo-sample MVC host that we use while doing our development.


motherless.com HTTP Error 403: Forbidden

Checklist

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

youtube-dl --version
2021.12.17

Verbose log
youtube-dl -vF --no-check-certificate https://motherless.com/02FB80C
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-vF', u'--no-check-certificate', u'https://motherless.com/02FB80C']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python 2.7.18 (CPython x86_64 64bit) - Darwin-22.5.0-x86_64-i386-64bit - OpenSSL 1.0.2u  20 Dec 2019
[debug] exe versions: ffmpeg 6.0, ffprobe 6.0, rtmpdump 2.4
[debug] Proxy map: {}
[Motherless] 02FB80C: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 403: Forbidden (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl-2021.12.17-py2.7.egg/youtube_dl/extractor/common.py", line 678, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl-2021.12.17-py2.7.egg/youtube_dl/YoutubeDL.py", line 2461, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Description

get this error: HTTP Error 403: Forbidden
this was working yesterday so I suspect something changed on the site
able to play videos on browser

See https://github.com/yt-dlp/yt-dlp/issues/9248 and the linked advice, except that yt-dl doesn't have --cookies-from-browser ....

Follow the FAQ instructions for exporting cookies to a file and then use --cookies ... with the name of the cookie file as argument.

Try using the same UA that acquired the cookies, as per the yt-dlp instructions (or making your browser use Mozilla/5.0).

Unmatched quotes:
---user-agent "Mozilla/5.0'(Macintosh; Intel Mac OS X 10.15; rv:123.0) Gecko/20100101 Firefox/123.0"
+--user-agent 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:123.0) Gecko/20100101 Firefox/123.0'

Although it's not the problem here, definitely 'quote' your URLs for macOS.

Regarding yt-dl vs yt-dlp, the differences are well documented at the yt-dlp project GitHub site. tldr; yt-dlp gets more development but requires a new-ish Python, while people are able to and do run yt-dl with Py2.6; new stuff in yt-dl is normally pulled into yt-dlp, whereas yt-dl has a backlog of not-yet-back-ported changes and also won't incorporate certain too-difficult yt-dlp features.
While your shell is bash, quoting is mainly to prevent the shell from seeing the & that separates URL query parameters; in newer macOS people get zsh as shell, for which ? is significant too. My advice: save thought and effort by always quoting for 'POSIX' or "Windows cmd". You can find many examples in the tracker of people who have fallen foul of unquoted URLs, often without realising.

Maintainers don't have to watch the content that's supported by the programme, at least not unless it's very compelling.
As to quoting, a non-default IFS would break my decades-old intuition of how the shell splits words and wouldn't be helpful for less experienced users.


Research for finding the best way to transfer Token and handle our wallet(history, balance, withdrawal)

what is the problem precisely ?


Run application on Apache webserver

All standalone builds tied to webpack.
How to prepare builds for apache webserver. Their is no .angular-cli.json.

Why would you need a .angular-cli.json. Just go into any app folder you want and buld the app. I.e. if you want to build the app "app2Angular" you do:

cd app2Angular
npm run build:portal

The output files are in the release folder. Now grab them and upload them to any webserver you want.

Thank you,
Will this mode support globaleventdispatcher?

Sure.


HBASE-27097 SimpleRpcServer is broken

Applied https://issues.apache.org/jira/secure/attachment/13044874/MultiByteBuff.patch from Lijin Bin on JIRA.

Fix confirmed with integration test that found the issue reported on HBASE-27097.

Thanks @apurtell and @binlijin !!

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+1 :green_heart:
hbaseanti
0m  0s
Patch does not have any anti-patterns.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ master Compile Tests _

+1 :green_heart:
mvninstall
3m 33s
master passed

+1 :green_heart:
compile
0m 39s
master passed

+1 :green_heart:
checkstyle
0m 15s
master passed

+1 :green_heart:
spotless
0m 47s
branch has no errors when running spotless:check.

+1 :green_heart:
spotbugs
0m 34s
master passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
3m  3s
the patch passed

+1 :green_heart:
compile
0m 34s
the patch passed

+1 :green_heart:
javac
0m 34s
the patch passed

+1 :green_heart:
checkstyle
0m 14s
the patch passed

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

+1 :green_heart:
hadoopcheck
15m 43s
Patch does not cause any errors with Hadoop 3.1.2 3.2.2 3.3.1.

+1 :green_heart:
spotless
0m 45s
patch has no errors when running spotless:check.

+1 :green_heart:
spotbugs
0m 37s
the patch passed

_ Other Tests _

+1 :green_heart:
asflicense
0m 10s
The patch does not generate ASF License warnings.

34m 38s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-4521/1/artifact/yetus-general-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/4521

Optional Tests
dupname asflicense javac spotbugs hadoopcheck hbaseanti spotless checkstyle compile

uname
Linux aee15ed2b2e1 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
master / ed7e15dc91

Default Java
AdoptOpenJDK-1.8.0_282-b08

Max. process+thread count
74 (vs. ulimit of 30000)

modules
C: hbase-common U: hbase-common

Console output
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-4521/1/console

versions
git=2.17.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

+1, thanks [apurtell] for the confirm.


Using Debian for separate tags for Dusk tests.

Closes #48

Updated this stuff with the build-test-publish method. You need some help? 😄

Hi @rennokki I'll look into this in this weekend


How do I pass local variable to nested-field partial?

<%= render  'question_fields', f: builder, counter: counter %>
I use counter in partial to make a label number.  Doesn't work.  Says counter is undefined?
Confused because this is how I have always passed variables to partials?
Any help greatly appreciated. Thx

You are giving very little context, for a question that seems to be related to a pure ruby/rails question. Yes this is the correct form to pass local variables to a partial. Maybe the variable counter is undefined on this line? (as you give no clue on which line the error occurs, it could also be this line?)

Here the code:
The _form partial

Task Name
			</tr>
	</thead>

  <tbody class="tasks">
	<%= f.simple_fields_for :tasks do |builder| %>
			<%= render 'task_fields', f: builder, dummy: "ww" %>
	<% end %>
  </tbody>
</table>

the _task_fields partial

    	 <%=dummy%><%= link_to_remove_association "remove task", f, class: "btn btn-primary btn-xs" %>

<%= f.input :name, label: false %>

throws--
undefined local variable or method `dummy' for #<#Class:0x007fe35f91ed40:0x007fe35e419288>    I'm stuck on why I can't pass in dummy variable?
Thanks for getting back to me!

This is weird, because it does not give the same error for the f right? (if you omit the dummy in the render line?). Is this actual code or an example to clarify?
The render has two forms, either you write (compact form, available since rails 3+)
render 'partial_name', f: builder, dummy: "ww"

and then all extra parameters (f/dummy) are considered locals. But you can also make this more explicit, using
render partial: 'partial_name', locals: {f: builder, dummy: "ww"}

(which should work in all rails versions).
See documentation: https://api.rubyonrails.org/classes/ActionView/PartialRenderer.html

Correct.  This is actual code. the local f: works fine when I remove local "dummy". I wanted to just insert a counter in front of the list item so the nested items would have a number.  I'm using rails 5.2.3 and simple_form gem. Strange.

Very weird. It makes no sense that one works and one not. Probably we are looking at this problem in the wrong way. Do you have a github repository for me to check, or a github repository with a minimal example reproducing the error so I can check?

jrmcchesney/mac_tutor is the public repository where I've been trialing this.  Go to
todo_lists.  Remove the <%=counter %> in the task_fields partial and every thing works.
Thanks for all the help!   ruby 2.4.0 is the version i'm using and I believe Rails 5.2.3

Aaarrgggghhh it took me a while to realise: the link_to_add_association also renders the partial, and it has not defined a value for counter. There are two possible solutions, either you fix the link_to_add_association:
<%= link_to_add_association 'Add Task', f, :tasks, class: 'btn btn-primary', data: {
    	association_insertion_node: '.tasks', association_insertion_method: :append}, render_options: {locals: {counter: 'WW'}} %>

or you make your partial a little more robust, by adding this at the top:
<%- counter = "XX" unless local_assigns.has_key?(:counter) %>

Now if you just want to add a "row"-counter, which is not stored in the database, you could also just use css for that. Otherwise you will have to resort to using the cocoon callbacks to set the counter value correctly.  Also see here: https://github.com/nathanvda/cocoon/issues/321#issuecomment-147346836

Thank You!! I went with your first suggestion and changed the link_to_add_association.  I had viewed the docs and came close to your solution.  I appreciate your time and wonderful gem.  I am building a online High School Math quiz generator and cocoon has added some really nice-looking functionality.
Thanks again.

Great you found a solution :+1: :+1:


Repository for themes?

I have experimented a little bit but can't seem to make any of my changes work. I am looking for a dark theme with a little bit better contrast than the original dark theme.  Is there any repository for themes where you can download other themes?

There is no current repository for downloading other themes. This will become that place.
New themes will appear here over time.
I know that Mitch Muenster has been working on a Dark theme with Extra Contrast.
Hopefully he'll submit a PR soon!
Watch out for it. :-)

Yes I am working on getting a high contrast dark theme working I have not had the time to get my code integrated. Below are some screenshots with comparing the old dark theme (on right) and the new dark theme (on the left) that I am working on.

Looking good! I played around a bit more with the tool and managed to find the correct options to change. In my opinion, the text editor colors should be shown on  the "quickview" and not hidden. :)
I basically just made the existing colors a bit lighter, makes them alot easier to see when in an light enviroment! :D

Thanks Baxter.
Can you export your theme and upload it to a new branch so we can check out the editor colors you used?

Let's get a branch started, then we can add work together on making an awesome Dark High Contrast theme.

Yeah, sure. It's definatly not perfect, but it's a start. :D

I have created a new branch for the Dark theme with Extra Contrast:
https://github.com/Microsoft/VS-ColorThemes/tree/DarkExtraContrast
The initial draft is the DarkExtraContrast theme developed by Mitch Muenster.
Please download it and play with it.
If you can make some improvements to it, please submit PRs to the DarkExtraContrast branch.
Thanks for your contributions!

Those watching this thread, I have added my Theme and it got merged into the main branch https://github.com/Microsoft/VS-ColorThemes/pull/9

@Baxtex , Now that Mitch's Dark theme with Extra Contrast has been uploaded and merged to master, did you want to improve it with your changes?


Changing nTotalAmount of CCoinsStats to uint256 from int64_t

Fix for Issue 1203 (Currently existing coins exceed int64_t)
https://github.com/dogecoin/dogecoin/issues/1203
overzealous size, but uint256 has tests and is commonly used elsewhere in the code

Thanks for this! If you would like, could you please resubmit this to the 1.10-dev branch, then we can probably make this available in the next release (after giving is a try of course).
The master branch is exclusively mutable by release and not pull requests (see the readme).

I see , will do

We may want to give up on master not being current, BTW, I think it causes more confusion than it saves :-/


Added further Saarland Univ. tools

Added BoSy, SafetySynth as synthesis tools, CAQE as QBF solver

Thank you for the additions, merged as 21ffe5775a3477cdb066129cf2ee116d02ea0397.


fix: Prevent click on label of the group #1408

With this code we made :group-select="false" work

@shentao Please, can you verify this code, it should be workring, and merge it to new version of vue-multiselect


Image baseurl, homepage resolve

Summary
How to make editor to resolve image defined like ![20210419213629.png](20210419213629.png)
from /mybaseurl/20210419213629.png, not /20210419213629.png
Additional context
I have a markdown like this
# Test Case 0
This is plain text
![/api/read/20210419213629.png](/api/read/20210419213629.png)
![20210419213629.png](20210419213629.png)

I can serve my images only from /api/read/:filename, therefore first image discoverable, second does not. I want to be able to markdown images like ![20210419213629.png](20210419213629.png) not ![/api/read/20210419213629.png](/api/read/20210419213629.png). What is a proper way to make TUIEditor to resolve my own baseurl for relative urls?
Good to know how to do this for every link-like node.

Discovered solution while scrolling through all relevant issues: #1344
I use react-editor and Typescript so this is the solution:
import { Editor as TUIEditor } from '@toast-ui/react-editor';
...
<TUIEditor
    initialValue={text}
    previewStyle="vertical"
    height="600px"
    initialEditType="wysiwyg"
    useCommandShortcut={true}
    ref={editor}
    customHTMLRenderer={{
        "image": (node, context) => {
            const { destination } = node as object as { destination: string};
            const { getChildrenText, skipChildren } = context;
            skipChildren()
            console.log(node, destination)
            return {
                type: "openTag",
                tagName: "img",
                selfClose: false,
                attributes: {
                    src: `/api/read/${destination}`, // <-- url substitution take place here
                    alt: getChildrenText(node),
                }
            }
        }
    }}
/>

Looks clear enough for me.

Cool


token issue with more than one tv

Hello
There is a problem with token.txt file,
With this code You can control only one tv at once, when trying to control another TV token needs to be changed and You need to allow that remote on TV again.
Fix for this is simple, I just added string from --id into filename and started to use that switch, now I can easily control more tvs just using different token files.

I am aware of the issues with the token file. and the fact that it only allows for storage of a single token.
There is a test solution that fixes issues like this one located here https://github.com/kdschlosser/samsungctl/issues/2#issuecomment-441993696
there have been some reported issues with linux and osx if you are running one of the 2 the problem may not occur. it would be nice to know if that is the case. if running on windows it works without issue. it is a test version so there is bound to be bugs. I added 3000+ lines of code so problems will arise and I will get them sorted.

this problem has been fixed and it is now available in the master branch


Please add a license

Could you add license information please?

Added MIT license, thanks 👍

Thanks!


Adding interface for setting kernel filter

Adding a function for the Bus object which makes it possible to activate a kernel side filtering for CAN frames. The function takes an array of unix.CanFilter objects.
The kernel side filtering reduces the load for the application if only a subset of received CAN frames are interesting.

Any feedback? Please tell me if there is something wrong with the pull request.

Thanks for the pull request.
Not sure why you removed parts of the readme.
You changed the module name to github.com/sitec-systems/can – but it should actually be github.com/brutella/can.

Oh sorry for that. That's my first pull request and I didn't know that further commits are landing here as well. I reverted the changes on the README. Again sorry for that.


Add Address Sanitizer support to MSVC and CMake

Also added a release variant for MSVC.
Linux builds will now use clang

Pull Request Test Coverage Report for Build 462485769

0 of 0   changed or added relevant lines in 0 files are covered.
39 unchanged lines in 15 files lost coverage.
Overall coverage increased (+0.1%) to 81.427%

Files with Coverage Reduction
New Missed Lines
%

common/goos/Object.cpp
1
64.71%

common/goos/ParseHelpers.cpp
1
82.35%

game/kernel/kmachine.cpp
1
45.16%

game/overlord/iso_api.cpp
1
60.47%

game/overlord/stream.cpp
1
40.0%

goalc/compiler/CodeGenerator.cpp
1
82.07%

goalc/compiler/Compiler.cpp
1
57.43%

goalc/compiler/IR.cpp
1
96.15%

goalc/regalloc/allocate.cpp
1
25.34%

goalc/compiler/compilation/Static.cpp
2
81.16%

Totals

Change from base Build 459871818:
0.1%

Covered Lines:
19395

Relevant Lines:
23819

💛  - Coveralls

Pull Request Test Coverage Report for Build 462485769

0 of 0   changed or added relevant lines in 0 files are covered.
39 unchanged lines in 15 files lost coverage.
Overall coverage increased (+0.1%) to 81.427%

Files with Coverage Reduction
New Missed Lines
%

common/goos/Object.cpp
1
64.71%

common/goos/ParseHelpers.cpp
1
82.35%

game/kernel/kmachine.cpp
1
45.16%

game/overlord/iso_api.cpp
1
60.47%

game/overlord/stream.cpp
1
40.0%

goalc/compiler/CodeGenerator.cpp
1
82.07%

goalc/compiler/Compiler.cpp
1
57.43%

goalc/compiler/IR.cpp
1
96.15%

goalc/regalloc/allocate.cpp
1
25.34%

goalc/compiler/compilation/Static.cpp
2
81.16%

Totals

Change from base Build 459871818:
0.1%

Covered Lines:
19395

Relevant Lines:
23819

💛  - Coveralls


LLVM codegen compiles with failing assertions

Hi
I'm on Ubuntu 16.04, LLVM 6.0, gcc 5.4, Python 3.6 Anaconda
Reproducing example:
import mxnet as mx
import tvm  # 0.2.0
import nnvm  # 0.8.0
from mxnet.gluon.model_zoo import vision

resnet18 = vision.get_resnet(version=2, num_layers=18, pretrained=True, ctx=mx.cpu())
resnet18.hybridize()  # with or without hybridize fails!

sym, params = nnvm.frontend.from_mxnet(resnet18)
sym = nnvm.sym.softmax(sym)
target = 'llvm -target=arm64-linux-android'
shape_dict = {'data': (1, 3, 224, 224)}
with nnvm.compiler.build_config(opt_level=0):
    graph, lib, param = nnvm.compiler.build(sym, target, shape=shape_dict,  params=params, target_host=None, dtype='float32')

print(lib.get_source())

outputs
........
@__TVMAPISetLastError = linkonce dllexport local_unnamed_addr global void (i8*)* null, align 8\n@__TVMBackendParallelLaunch = linkonce dllexport local_unnamed_addr global i32 (i32 (i32, %0*, i8*)*, i8*, i32)* null, align<EMAIL_ADDRESS>= private constant [72 x i8] c"Assert fail: (num_args == 2), fuse___add_scalar__: num_args should be 2\\00", align<EMAIL_ADDRESS>= private constant [87 x i8] c"Assert fail: (1 == int32(arg0.strides[0])), arg0.strides: expected to be compact array\\00", align<EMAIL_ADDRESS>= private constant [87 x i8] c"Assert fail: (1 == int32(arg1.strides[0])), arg1.strides: expected to be compact array\\00", align<EMAIL_ADDRESS>= private constant [124 x i8] c"Assert fail: (((arg0.code == 3) || (arg0.code == 7)) || (arg0.code == 4)), fuse___add_scalar__: Expect arg[0] to be pointer\\00", align<EMAIL_ADDRESS>= private constant [124 x i8] c"Assert fail: (((arg1.code == 3) || (arg1.code == 7)) || (arg1.code == 4)), fuse___add_scalar__: Expect arg[1] to be pointer\\00", align<EMAIL_ADDRESS>= private constant [55 x i8] c"Assert fail: (dev_type == 1), device_type need to be 1\\00", align<EMAIL_ADDRESS>= private constant [81 x i8] c"Assert fail: (1 == tvm_struct_get(arg0, 0, 4)), arg0.ndim is expected to equal 1\\00", align<EMAIL_ADDRESS>= private constant [186 x i8] c"Assert fail: (((tvm_struct_get(arg0, 0, 5) == (uint8)2) && (tvm_struct_get(arg0, 0, 6) == (uint8)32)) && (tvm_struct_get(arg0, 0, 7) == (uint16)1)), arg0.dtype is expected to be float32\\00", align<EMAIL_ADDRESS>= private constant [95 x i8] c"Assert fail: (int32(arg0.shape[0]) == 3), Argument arg0.shape[0] has an unsatisfied constraint\\00", align<EMAIL_ADDRESS>= private constant [112 x i8] c"Assert fail: (tvm_struct_get(arg0, 0, 8) == (uint64)0), Argument arg0.byte_offset has an unsatisfied constraint\\00", align<EMAIL_ADDRESS>= private constant [81 x i8] c"Assert fail: (1 == tvm_struct_get(arg1, 0, 4)), arg1.ndim is expected to equal 1\\00", align<EMAIL_ADDRESS>= private constant [186 x i8] c"Assert fail: (((tvm_struct_get(arg1, 0, 5) == (uint8)2) && (tvm_struct_get(arg1, 0, 6) == (uint8)32)) && (tvm_struct_get(arg1, 0, 7) == (uint16)1)), arg1.dtype is expected to be float3
....

with a lot of fails though. Any idea?

these asserts are runtime asserts that do not indicate compilation failure, but is the error message that the code will raise when these asserts are not met during runtime

I see! thanks for the clarification. However, I suspect that batchNorm (used in ResNetV2) is not yet supported in tvm? that's why the android app crashes when loading the model!

it is supported, and will get optimized away by translating that to scale and shift, but you need to set opt_level to be bigger than 1 to enable that

Right! thanks, it works now. I mistakenly added softmax which caused the crash.


tt

Describe the bug
Include a clear and concise description of what the problem is, including what
you expected to happen, and what actually happened.
Steps to reproduce the bug
It's important that we are able to reproduce the problem that you are
experiencing. Please provide all code and relevant steps to reproduce the
problem, including your BUILD/CMakeLists.txt file and build commands. Links
to a GitHub branch or godbolt.org that demonstrate the
problem are also helpful.
What version of Abseil are you using?
What operating system and version are you using
If you are using a Linux distribution please include the name and version of the
distribution as well.
What compiler and version are you using?
Please include the output of gcc -v or clang -v, or the equivalent for your
compiler.
What build system are you using?
Please include the output of bazel --version or cmake --version, or the
equivalent for your build system.
Additional context
Add any other context about the problem here.

نعم
في الثلاثاء، ٨ سبتمبر، ٢٠٢٠ ٢:٣٦ ص sj5505<EMAIL_ADDRESS>كتب:

Closed #777 https://github.com/abseil/abseil-cpp/issues/777.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/abseil/abseil-cpp/issues/777#event-3738567246, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AOFUR22F7LUX2NXJEGITVDTSEVU67ANCNFSM4Q7BXPVQ
.


[Chore] Update fork

Overview
This updates the fork from upstream.
Testing
Verified that the demo loads the SQLite core extension correctly.

Superseded by https://github.com/powersync-ja/wa-sqlite/pull/19


[feature-request] Azure support

Do you have any plan to support Azure?

Hello, @kulmam92
Digdag support third-party plugin system.
I saw Digdag user is planning to develop an Azure plugin in the Twitter. But It's not released yet.
What operator do you want for Azure?

Hi Hiroyuki
Thank you for replying my request.
I’m looking for below operators.
Azure blob storage
Azure data lake
Azure data warehouse
Best regards,
Yong
On Tue, Sep 4, 2018 at 5:37 PM Hiroyuki Sato<EMAIL_ADDRESS>wrote:

Hello, @kulmam92 https://github.com/kulmam92
Digdag support third-party plugin system.
I saw Digdag user is planning to develop an Azure plugin in the Twitter.
But It's not released yet.
What operator do you want for Azure?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/treasure-data/digdag/issues/855#issuecomment-418561344,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEZvBmhpdp7_TObrhnKgg4_InUQLFIrfks5uXxzYgaJpZM4WZNlI
.

Hello, @kulmam92
Thank you for replying.
I'll let you know if I find those plugins or operators.
Best regards.

There is no activity. So close.


Different rpc cert for each voting wallet

At the moment the same cert is used for each wallet

wallethost = <IP_ADDRESS>:20111,<IP_ADDRESS>:20112
walletuser = user1,user2
walletpass = pass1,pass2
walletcert = rpc1.cert,rpc2.cert

@jholdstock re #163, four manually synchronized lists is a room for error, esp. for operators having 5+ voting wallets. Would it be possible to use JSON-based config to accomodate the need to store lists of objects?
Alternatively (if that is too big of a change), INI sections would still be better than these manually synced lists, e.g. see how it works in Firefox profiles.ini file:
[Wallet1]
wallethost = <IP_ADDRESS>:20111
walletuser = user1
walletpass = pass1
walletcert = rpc1.cert

[Wallet2]
wallethost = <IP_ADDRESS>:20112
walletuser = user2
walletpass = pass2
walletcert = rpc2.cert

One of the main reasons I implemented this approach is that dcrstakepool worked in this way, so it should be something which is already familiar to VSP operators. I'm keen to keep the upgrade from dcrstakepool to vspd as straightforward and familiar as possible.
I like the .ini sections idea, but as mentioned, that would be a new thing for VSP operators to learn. And besides, we don't have anything to detect sections dynamically atm - the section names are hard-coded.

I see, minimizing transition barriers is reasonable.
How about this. In the initial vspd release: accept old-style configs, mark it as deprecated, add new-style section-based configs. And then remove the old-style configs in a few releases? This will start the transition sooner. Same keys under different sections should not conflict with each others.
What do you think, would the cleaner config syntax and reduced room for error outweigh writing new code and maintaining both styles during the transition?


Tibetan translations of some labels

it would be good to translate some of these into Tibetan:

"missing page" (or just "missing" ?)
"Xa" / "Xb" (where X can by any folio number, for instance "2a" / "2b")
"image number X" (in English we have "img. X")
"Xa / Xb missing"

@ngawangtrinley @jeehuajian ?

"missing page" (or just "missing" ?) =  "ཆད།"
"Xa" / "Xb" (where X can by any folio number, for instance "2a" / "2b") = "Xན་" / "Xབ་"
"image number X" (in English we have "img. X") = "པར་གྲངས་ 25"
"Xa / Xb missing" = "Xན་ / Xབ་ ཆད།"

excellent thanks! final question: how would you express an interval, for instance "Xa to Ya missing"? (for instance "12a to 15b missing")

"Xa to Ya missing" = "Xན་ ནས་ Yན་ བར་ཆད།"


fix: workload

Codecov Report

Merging #3 (f17208a) into main (3f32ca9) will increase coverage by 4.68%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main       #3      +/-   ##
==========================================
+ Coverage   50.38%   55.06%   +4.68%
==========================================
  Files          13       12       -1
  Lines         647      592      -55
==========================================
  Hits          326      326
+ Misses        269      214      -55
  Partials       52       52

Flag
Coverage Δ

unittests
55.06% <ø> (+4.68%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

workload.go

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3f32ca9...f17208a. Read the comment docs.


Errors with contructor method attributes when use entityNamespace.

When I use the $mapper->entityNamespace = '\\MyApplication\\Entities'; in entities with constructor method attributes is generated php errors. You have a solution for this?

What kind of errors do you get?

docs Entity Classes

No mandatory params on the constructor please.

If it's, you can extend and override the method which create the instance.
Mapper:436-442

@henriquemoody are warnings and notices errors. Is caused by limitation cited by @felipecwb .
I solved this with ReflectionClass::newInstanceWithoutConstructor.
What do you think about it?


Activity Runtime API modified to include page URLs if available.

(The PR needs 1 more commit before a review)
Show links to LARA pages in teacher reports so teacher can quickly show the question in context of the page it came from.
[#112613409]
https://www.pivotaltracker.com/story/show/112613409

@knowuh there is one failing test here that has to do with the report version: https://travis-ci.org/concord-consortium/rigse/jobs/186220835#L1286

@scytacki -- Fixed that test.
There was a cuke failure, but I don't think it's interesting. In this step /^I paste the embeddable "([^"]*)"$/ )

👍


data scaling issue

Describe the bug
Solving Ax=b without constraints is sensitive to scaling of A and b by a small constant, i.e., solving (aA)x=(ab) is not a-invariant. Specifically, for small values the solver fails or, worse, gives wrong answers without any warnings,  e.g., a = 1e-5 and smaller, although works fine for very large values, up to a = 1e14.
Related to https://github.com/cvxgrp/cvxpy/issues/681 and possibly to https://github.com/cvxgrp/cvxpy/issues/261 and https://groups.google.com/forum/#!searchin/cvxpy/scale|sort:date/cvxpy/BOq4SF_zUh4/FNjuev2nDgAJ
To Reproduce
Vary the value of a below:
from cvxpy import *
import numpy

# Problem data.
m = 20
a = 1e-5
numpy.random.seed(1)
A = a*numpy.random.randn(m, m)
b = a*numpy.random.randn(m)

# Construct the problem.
x = Variable(m)
objective = Minimize(sum_squares(A*x - b))
prob = Problem(objective)
prob.solve(solver='OSQP')
sol_linear = numpy.linalg.solve(A, b)
print(sol_linear)

# The optimal objective is returned by prob.solve().
result = prob.solve()
# The optimal value for x is stored in x.value.
print(x.value)

Expected behavior
The exact solution x is mathematically a-invariant, as well as the approximate solution by numpy.linalg.solve. The CVXPY/OSQP solution x should not be also  a-invariant within a reasonable range of a? When the solution is wrong, it would be nice to have a warning.
Why the code works for large a, but not for small a? I guess at some point OSQP computes A.T*A - is that why it stops working for small a?
I see in comments that there is some auto-scaling in OSQP - what does it do in this example?
Output
The first vector is the numpy.linalg.solve solution.
The second vector is the CVXPY/OSQP solution, may be no warnings.
from a = 1e-3 to  a = 1e14
[13.81646443  3.66409028  2.79760942  4.81443112  8.0037291  -1.08660789
6.16723623 -4.74334805  4.59619346 15.25835196 -3.99358756  9.86669114
0.02746706  0.11107449 -5.08887493 -8.30233997  7.13619748  8.58846973
-1.65658374 -7.94297172]
[13.81646443  3.66409028  2.79760942  4.81443112  8.0037291  -1.08660789
6.16723623 -4.74334805  4.59619346 15.25835196 -3.99358756  9.86669114
0.02746706  0.11107449 -5.08887493 -8.30233997  7.13619748  8.58846973
-1.65658374 -7.94297172]
a = 1e-5
[13.81646443  3.66409028  2.79760942  4.81443112  8.0037291  -1.08660789
6.16723623 -4.74334805  4.59619346 15.25835196 -3.99358756  9.86669114
0.02746706  0.11107449 -5.08887493 -8.30233997  7.13619748  8.58846973
-1.65658374 -7.94297172]
[-0.04452038  0.08184306  0.03497562 -0.02511087 -0.0189713   0.01615144
-0.02238397  0.0031936   0.09219216 -0.05708515  0.00187308  0.01655366
-0.00348326  0.06954215 -0.04984316 -0.05965816  0.0438942   0.01421084
0.01033337 -0.00563548]
Version

OS: Python 3.7.0 64bit for Win 10
CVXPY Version: cvxpy-1.0.19 with OSQP built-in

Additional context
I have intentionally chosen a rather trivial example. The trouble may get worse for practically interesting cases.
I am new to CVXPY/OSQP, so apologize in advance if I miss something trivial here...

As @rileyjmurray replied https://github.com/cvxgrp/cvxpy/issues/681#issuecomment-468959088 unfortunately all numerical solvers can only "try" to be scale invariant but numerical operations carry some error by construction.
Having said that, OSQP internally rescales the problem so that it is easier to solve numerically. a = 1e-05 values are definitely not in the range of "common problems" and OSQP is not tuned for that. In those cases you can try lowering the tolerance values (eps_rel, eps_abs) or increasing the number of scaling iterations (scaling parameter). In your case the second option works well, if you execute
prob.solve(solver='OSQP', verbose=True, scaling=20)

you should get the solution you expect. In general I suggest to formulate problems so that they contain values between 1e-03 and 1e03 to expect good numerical solvers performance.

Thanks for your prompt and detailed reply!
Is there some description of what the implemented scaling actually does?
I am still curious, why the code works for large a, but not for small a, when the scaling is off?

@bstellato is right! OSQP does not have any fancy preprocessing routines, but just a simple scaling of the problem data as described in this paper (Section 5).
I don't necessarily agree that OSQP gives wrong answers without warnings. Interpretation of OSQP status solved is that the primal and dual residuals are below some well defined numerical tolerances; see here for more details.
You can control these tolerances via parameters eps_rel and eps_abs. For small a it is probably the case that the residuals become smaller than eps_abs very quickly.
Alternatively, you can help the solver a bit by not passing data that are very ill-conditioned.

Thanks for the reference!
In my example, the data are not ill-conditioned, just small. And 1e-5 is not really that small in double-precision. So the issue appears to be due to the absolute stopping criteria, rather than round-off errors.
It may be worth implementing, as an option, stopping criteria based on some relative residuals, rather than the absolute? E.g., for linear Ax=b solvers, norm(Ax-b) would be the absolute one, cf. http://www.netlib.org/linalg/html_templates/node83.html

Stopping criteria used by OSQP are combinations of both absolute and relative residuals. You can always set eps_abs to a very small number (I think zero is not allowed). The default value for eps_abs is 1e-3 so 1e-5 is indeed small relative to this default value.


No longer connecting

Hi,
Has anything changed with the logictech connection. I had this working and now I am getting a connection error.
It successfully get this the User Token
DEBUG n.w.harmony.protocol.AuthService - auth token request returned: {"GetUserAuthTokenResult":{"AccountId":0,"UserAuthToken":"XXX"}}
but can't login into the device with this error.
Exception in thread "main" java.lang.RuntimeException: Failed communicating with Harmony Hub
at net.whistlingfish.harmony.HarmonyClient.connect(HarmonyClient.java:182)
at com.bwssystems.restfulharmony.HarmonyRestServer.execute(HarmonyRestServer.java:66)
at com.bwssystems.restfulharmony.HarmonyRestServer.main(HarmonyRestServer.java:49)
Caused by: org.jivesoftware.smack.sasl.SASLErrorException: SASLError using PLAIN: not-authorized
at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:348)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.login(XMPPTCPConnection.java:244)
at net.whistlingfish.harmony.HarmonyClient.connect(HarmonyClient.java:119)
I can successfully ping the device and connect to it from the logitech app with the same user name and password. And can ping from the server running the ha-bridge. I have tried both the ha-bridge and the Harmony rest server.
Any ideas on how to further debug.

Stupid question but have you checked to make sure the Harmony IP in the Bridge Control tab is correct?

 But yes I have.
I have also tried using other restful-harmony java app passing IP via the command line with the same result.
It was just working and then it wasn't.
I can still control via the harmony app though.

Interesting, when did this so working and also the version of the Harmony
hub software.
 But yes I have.
I have also tried using other restful-harmony java app passing IP via the
command line with the same result.
It was just working and then it wasn't.
I can still control via the harmony app though.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/bwssytems/ha-bridge/issues/133#issuecomment-229793901,
or mute the thread
https://github.com/notifications/unsubscribe/AM5s-opnyTYiLL31mLoRAlDH49GZcCDBks5qRDSbgaJpZM4JCk-f
.

4.1.3

Sorry it is 4.10.30. it started happening. A day ago.

Just so you can compare, I am running ha-bridge Ver 2.0.7 on a Raspberry Pi, with a Harmony Hub running version 4.10.30 without issue.

Thanks. Exactly what I am. What version of Java? Who knows what is causing it then.

Java build 1.8.0_65-b17, best of luck!

Also my RPi is hard wired, not wireless with a static IP- just trying to think of all possible differences.

Is this working now or still an issue?

Hi,
Thanks for all your help. When all of your versions and everything matched mine thought it must have been something else.
I rebuilt my entire Pi. This didn't work.
I ended up factory resetting my Harmony Hub and setting it up with a completely separate account. This didn't work.
I then moved the device to a new fixed IP on the network and it started working again. I am not sure why it stopped but it is up and running again.
Thanks for providing all the details of what you had. It gave me hope that I could get it working again and that Harmony hadn't broken something.

Home networking is such a fun thing. Glad it is working again.


Add ViLT to HuggingFace Transformers

Hi,
I've been reading the ViLT paper and was impressed by the simplicity, as it only adds text embeddings to a ViT.
As ViT is already available in HuggingFace Transformers, adding ViLT should be relatively easy.
I've currently implemented the model (see here for my current implementation). It includes a conversion script (convert_vilt_original_to_pytorch.py) to convert the weights from this repository (the PyTorch Lightning module) to its HuggingFace counterpart, for all models (base one + the ones with a head on top).
However, I'm facing some issues when performing a forward pass with the original implementation in Google Colab (when just doing pip install -r requirements.txt and running the demo_vqa.py script, you get the following):
Traceback (most recent call last):
  File "demo_vqa.py", line 17, in <module>
    from vilt.modules import ViLTransformerSS
  File "/content/ViLT/vilt/modules/__init__.py", line 1, in <module>
    from .vilt_module import ViLTransformerSS
  File "/content/ViLT/vilt/modules/vilt_module.py", line 3, in <module>
    import pytorch_lightning as pl
  File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/__init__.py", line 62, in <module>
    from pytorch_lightning import metrics
  File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/metrics/__init__.py", line 14, in <module>
    from pytorch_lightning.metrics.metric import Metric
  File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/metrics/metric.py", line 23, in <module>
    from pytorch_lightning.metrics.utils import _flatten, dim_zero_cat, dim_zero_mean, dim_zero_sum
  File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/metrics/utils.py", line 18, in <module>
    from pytorch_lightning.utilities import rank_zero_warn
  File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/utilities/__init__.py", line 24, in <module>
    from pytorch_lightning.utilities.apply_func import move_data_to_device
  File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/utilities/apply_func.py", line 25, in <module>
    from torchtext.data import Batch
ImportError: cannot import name 'Batch' from 'torchtext.data' (/usr/local/lib/python3.7/dist-packages/torchtext/data/__init__.py)

If you suspect this is an IPython bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at<EMAIL_ADDRESS>
You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    %config Application.verbose_crash=True

Upgrading PyTorch Lightning to the latest version also returns an error:
Traceback (most recent call last):
  File "demo_vqa.py", line 17, in <module>
    from vilt.modules import ViLTransformerSS
  File "/content/ViLT/vilt/modules/__init__.py", line 1, in <module>
    from .vilt_module import ViLTransformerSS
  File "/content/ViLT/vilt/modules/vilt_module.py", line 7, in <module>
    from vilt.modules import heads, objectives, vilt_utils
  File "/content/ViLT/vilt/modules/vilt_utils.py", line 11, in <module>
    from vilt.gadgets.my_metrics import Accuracy, VQAScore, Scalar
  File "/content/ViLT/vilt/gadgets/my_metrics.py", line 2, in <module>
    from pytorch_lightning.metrics import Metric
ModuleNotFoundError: No module named 'pytorch_lightning.metrics'

As PL deprecated the metrics module.
Are you able to provide a simple Colab notebook to perform inference on an image+text pair?
Thanks!

Update:
seems to work when doing pip install pytorch_lightning==1.4.8

Thank you for your efforts @NielsRogge
I would be grateful if ViLT is implemented in Huggingface Transformers as it is a widely used library among the community.
Please keep me in the loop and use this issue for any question that pops up.

Hi,
I've got an inference notebook working: https://colab.research.google.com/drive/1bFekGSb4bvN1fJToo-EiQZi-jefE8HSU?usp=sharing
The VQAv2 checkpoint is on the hub: https://huggingface.co/nielsr/vilt-base-finetuned-vqa. As you can see, currently the model card needs to be filled in. Also, I've stored the model under my personal name, but maybe it makes more sense for you to host them under either your personal account on the hub, or an organization (like NAVER AI Labs). People can then load the checkpoint using .from_pretrained("naver/vilt-base-finetuned-vqa").
Note that you can choose the naming of the models to whatever you like.
Are you interested in creating an user/organization on the hub? This will also give you write access to all these models, allowing you to easily edit them, have versioning, etc.

Hi @NielsRogge
It will be my pleasure if you allow me to host the model you converted.
I just got signed up on the hub (https://huggingface.co/dandelin).
Since I never used the hub, could you guide me on how to host the model by myself?
Maybe clone your model and re-upload it?

Hi,
Awesome! So adding a model can be done by clicking on the top right (when you're signed in) => new model, and then you can choose to either host it under your own name or an organization (so if you have multiple members in your team, it might make sense to create an organization).
Are you part of Naver Labs? https://huggingface.co/naver Then it might make sense to add you to that organization, and host the model weights under that organization (whatever you prefer).
I can transfer the weights for you.

@NielsRogge
This project is done while I was at Kakao corporation, so the ownership is kind of in the gray zone.
So I would like to host it under my account (dandelin).
Thank you so much!

Ok :) can you create a new model on the hub? Then I'll upload the weights to your repo.

Ok the weights are transferred :)
So you would like to work on this further? Great! I could assist you if you want, the modeling is mostly done, however I still need to add the possibility for training all models. Most models in Transformers just take a labels argument for computing a loss, however I saw that for VQAv2 one needs both labels and scores, and a binary cross-entropy is used, I wonder why? Haven't looked into that dataset before, but it would be great to get a single example (because we will also need that for the tests).
If you're interested, I can set up a Slack channel to discuss this further.

Hi @dandelin,
I'm actually finished with most models, however it seems like the image embeddings are not deterministic, even when setting max_image_length = -1. It seems that a multinomial distribution is used to sample, as seen here.
Can you clarify this? Is it possible to get deterministic image embeddings?
Thank you!

Hi @NielsRogge
Sorry for the late reply.
Sure, you can get deterministic embeddings. The purpose of these lines is to batch variously-sized images by padding them. The whole lines from L602 to L648 can simply be ignored.
Though in that case, you should pass the model equally-sized images or a single image.
Thank you for your efforts.

Hi,
I've got an inference notebook working: https://colab.research.google.com/drive/1bFekGSb4bvN1fJToo-EiQZi-jefE8HSU?usp=sharing

Thank you for you contribution @NielsRogge , but the demo doesn't seem to be working in my case.
`ImportError                               Traceback (most recent call last)
 in ()
----> 1 from transformers import ViltForVisualQuestionAnswering
2
3 model = ViltForVisualQuestionAnswering.from_pretrained("nielsr/vilt-base-finetuned-vqa")
ImportError: cannot import name 'ViltForVisualQuestionAnswering' from 'transformers' (/usr/local/lib/python3.7/dist-packages/transformers/init.py)`
Your help would be much appreciated, I am new in deep learning :)

Hi,
ViLT has been added some time ago to Huggingface Transformers! 🥳
Docs can be found here: https://huggingface.co/docs/transformers/main/en/model_doc/vilt#transformers.ViltForVisualQuestionAnswering
Demo notebooks can be found here, also created 2 Gradio demo's as 🤗 Spaces here.
All models van be found on the hub.


Provide a way to replicate Ansible/Python environment of Docker image

Feature Request
Describe the problem you need a feature to resolve.
In order to run the ansible-operator locally for development purposes (with make run), one has to setup an Ansible / Python (virtual) environment.
Ideally, it would have to be identical to the one found in the Docker image quay.io/operator-framework/ansible-operator which is then deployed on production.
However, due to how the Python dependencies are declared in the Dockerfile, it is difficult to do so accurately.
See https://github.com/operator-framework/operator-sdk/blob/master/images/ansible-operator/Dockerfile#L19:
RUN yum clean all && rm -rf /var/cache/yum/* \
  && yum -y update \
  && yum install -y libffi-devel openssl-devel python36-devel gcc python3-pip python3-setuptools \
  && pip3 install --no-cache-dir \
    ipaddress \
    ansible-runner==1.3.4 \
    ansible-runner-http==1.0.0 \
    openshift~=0.10.0 \
    ansible~=2.9 \
    jmespath \
  && yum remove -y gcc libffi-devel openssl-devel python36-devel \
  && yum clean all \
  && rm -rf /var/cache/yum

The first solution is of course to track down the Dockerfile on Github and copy/paste the pip3 install ... command locally.
It works, but it's not very elegant and requires manual work which would be tricky to automate reliably.
Then I thought that I could simply extract the list of installed Python packages with pip install $(docker run --rm -ti --entrypoint bash quay.io/operator-framework/ansible-operator:v1.2.0 -c 'pip3 freeze').
But I ran into the problem of system packages: the freeze list also contains Python packages installed system-wide via YUM.
Which means I ended up getting gpg==1.13.1 in the freeze list, for example, because the RPM package gpg is present on the system. And gpg==1.13.1 is not a package available on PyPI...
So the pip freeze command becomes a bit more complicated (and still depending on the content of the Dockerfile!):
$ pip3 freeze | grep -E '^ipaddress|ansible-runner|openshift|ansible|jmespath'

This solution works quite well, even though it's not perfect: there's always the possibility of locally installing a different version of some dependencies of those packages, should a new release be made since the Docker image has been built for example.
Describe the solution you'd like.
My suggestion would be to have a requirements.txt file available in the Docker image at a documented location.
And that the packages mentioned inside would have to be pinned to specific versions for reproducibility purposes.
So one can easily set up a local environment with:
pip install $(docker run --rm -ti --entrypoint cat quay.io/operator-framework/ansible-operator:v1.2.0 /path/to/requirements.txt)

Any other idea?
/language ansible

Steps to install these deps need to be documented.
/kind documentation
/assign @asmacdo

👍 for the suggestion of transparent local dependency installation. A couple of thoughts. There's a lot of potential for dependency hell here, pip3 install-ing in the global site-packages, I'd much rather see a solution that uses virtualenvs and deterministic builds through the Makefile. We've been using pipenv successfully for quite some time now, and it would be a welcome addition for managing python dependencies in custom ansible modules as well.

Adding release blocker since this blocks #4202

This no longer blocks #4202, but this turned out to be a little more involved than I realized. I dont want this to block the release, so I'm bumping to 1.4
I think I agree with @reinvantveer. What I have in mind is creating a virtualenv in the image, and installing the top-level deps via a pinned requirements.txt.
TODO:

Base image:

pull the top level Python dependencies out of Dockerfile and into a requirements.txt.

Local development:

Add a requirements.txt to the Ansible scaffolding with the same top level dependencies
Add a test-requirements.txt to the Ansible scaffolding that installs molecule
Add a make target that creates a virtualenv and installs both prod and dev requirements
update make run to use the venv
update the installation docs

CI:

Install from requirements.txt and test-requirements.txt

Update Script should allow all references to be maintained in a single place

Agreed that having a *requirements.txt for a virtual environment is a huge improvement. However, this leaves one thing still in limbo: the Python version itself - a requirements.txt file doesn't allow you to specify this, while pipenv can (I'm unsure whether poetry can). In a nutshell: I don't quite feel that a requirements.txt file is a substitute for proper dependency management.
On this note on dependency management: it's becoming harder to keep Python 3.6 for local development - I switched to Ubunto Focal recently and now you need something like the deadsnakes repo to get a hold of mothballed Python versions. 3.6 now only gets security fixes: see https://www.python.org/downloads/release/python-3612/. It's time to move on to a more recent version.

I'm having a first go at an attempt to contribute here: upgrading Python in the ansibe operator Docker image.
https://github.com/operator-framework/operator-sdk/pull/4413

I'm having a first go at an attempt to contribute here: upgrading Python in the ansibe operator Docker image.
https://github.com/operator-framework/operator-sdk/pull/4413

@reinvantveer thanks! I can assign you to this issue in that case.
/assign @reinvantveer

@reinvantveer thanks! I can assign you to this issue in that case.
/assign @reinvantveer

Following comments https://github.com/operator-framework/operator-sdk/pull/4413#issuecomment-763954279 and https://github.com/operator-framework/operator-sdk/pull/4413#issuecomment-764811597 now the PR for pinning the base images for Ansible and Helm operators

Following comments https://github.com/operator-framework/operator-sdk/pull/4413#issuecomment-763954279 and https://github.com/operator-framework/operator-sdk/pull/4413#issuecomment-764811597 now the PR for pinning the base images for Ansible and Helm operators

Another component which probably needs to have its version pinned: the Ansible Galaxy collections.
https://github.com/operator-framework/operator-sdk/blob/master/internal/plugins/ansible/v1/scaffolds/internal/templates/requirements.go#L35

I agree

Now #4417  and #4413 have been merged, here the PR to use a dependency resolution system for the main Python dependencies

Fixed a few things in #4477 so that the checks now pass

Something went horribly wrong in #4477 so I'm retrying in #4494

The reproducibility issue just got a little hairier: I've just become aware of https://github.com/pyca/cryptography/issues/5753. Seems like a lot of dependents are pinning cryptography to version 3.3.2 due to breaking builds. Cryptography v 3.4 requires a Rust compiler to be present to build. The ansible package requires ansible-build, which in turn depends on cryptography, but fortunately no specific version is required.

Hm, maybe the cryptography storm will blow over again, now cryptography v3.4.3 was released just a couple of hours ago.

Another component which probably needs to have its version pinned: the Ansible Galaxy collections.
https://github.com/operator-framework/operator-sdk/blob/master/internal/plugins/ansible/v1/scaffolds/internal/templates/requirements.go#L35

https://github.com/operator-framework/operator-sdk/pull/4529


rewrite each does not require equality

I was surprised by this second test succeeding, since it is just replacing i by j in the context and proving the equality between the resources (so foo i == foo j). But I would have expected that we check i == j. Doing that could also make the implementation of rewrite each more efficient, as it would involve a single query (instead of one per resource pair).
assume val foo : int -> vprop

```pulse
fn test1 (i j : int)
requires foo i ** pure (foo i == foo j)
ensures  foo j
{
  rewrite foo i as foo j;
}
```

```pulse
fn test2 (i j : int)
requires foo i ** pure (foo i == foo j)
ensures  foo j
{
  rewrite each i as j;
}
```

Calling this a bug, even though according to the documentation this is expected behavior (paraphrasing: "rewrite each e1 as e1' is equivalent to rewrite goal as goal' where goal' is computed by rewriting, in parallel, every occurrence of ei as ei' in goal.").

We agreed this is a quirk and should be changed. We may consider a construct to retain the old behavior, but the usual intention is that the equality is proven once and then substituted.


[BUG] When a user has a resource directory tree, update the user's tenant to report an error

Which version of Dolphin Scheduler:
-[dev_1.3.0]
Additional context
Add any other context about the problem here.
**Requirement or improvement

Please describe about your requirements or improvement suggestions.

because user's tenant has a resource directory tree  ,so java preject package org.apache.dolphinscheduler.api.service 's UsersService.java code updateUser method 's code:HadoopUtils.getInstance().copy(oldResourcePath + "/" + resource.getName(), newResourcePath, false, true);  will cause this Exception.

I will start to fix it

@597365581  Hi,I have finished it and tesing now,Could you please choose other issues?Thanks.


Time parser raises if timezone is missing

Reviewing the changes from #5317 I noticed that the time parser does not raise if it expects a time zone but there is none. Until now it only raised if the format was detected as invalid, but not if it was entirely missing.
There might be similar issues in the time parser, but most other fields are at least somewhat tested while %z is not (#5324 will add some tests for %z).
/cc @bcardiff

From your commit message it's very hard to tell if you mean

Time parser raises if timezone is missing [and it's a bug, which this commit fixes]

or

[Ensure] Time parser raises if timezone is missing

Please use the latter style for commit messages. If it helps, imagine telling someone what to do.

Fixed. Thanks @RX14
Now this has brought forward an additional issue: The formats by HTTP.parse_date expect %z to match GMT and interpret it as UTC. In fact, it doesn't but it was silently ignored and the output still worked so nobody noticed.
The only time zone identifiers %z matches beside numerical offsets are Z and UTC both representing Time::Kind::UTC (or Time::Location::UTC in #5324).
To solve this, we could either let the parser accept GMT as a timezone string or add additional patterns to HTTP::DATE_FORMATS which include GMT instead of %z. I don't think we should change the semantics of %z just to accomodate this single use case. GMT can be used as a time zone identifier and it shouldn't cause to much trouble if it is accepted, but one should not expect that.
The implementation of HTTP.parse_date is very primitive anyway so it shouldn't matter to put some more formats to try into HTTP::DATE_FORMATS as a quick intermediary solution.
A proper overhaul  is proposed in #5123 which implements a customized parser for http date strings in Time::Format::HTTP_DATE (and also adds a time_zone_gmt method to the parser).

@straight-shoota what is the status of this PR?

It's waiting for a review.

I don't see the downsize in %z parsing GMT?

I'm not sure about it. IMHO it doesn't make sense to change the semantics of date format parsing just because HTTP dates use GMT as UTC. We can certainly discuss if %z should be extended, but I don't see a real reason for this.
#5123 has a proper implementation of date parses for HTTP and other protocol purposes which will eliminate the need for using %z for this anyway. I'm pretty much in favour of merging that instead of this PR which was only intended as a quick fix (six months ago...).

%z is meant to parse a zone,GMT is a zone, why not parse it?

No, it parses a time zone offset. Time zone abbreviations in general are ambiguous.

Closed in favor of #5123

@bcardiff #5123 lacked the spec to ensure the time format parser raises if the time zone is missing. Thanks for stepping in, but I'd have liked to finialize that PR myself before it gets merged.
Now I've rebased this one, please reopen.

Somehow the reopen button is disabled.
I understood from the rights to edit the PR you were ok to jump in (and you did already lots) but i will don’t do it again on your PRs.
Please creat another PR.

Maybe because I deleted the branch in between? dunno.
I allow maintainers to edit my PRs, but I see this mostly as a means to step in if the original author doesn't respond, needs help or have the time to address changes. Apart from such situations, I don't think it is really useful to edit someone else's PRs without coordination.
You should now I'm not offended or anything. I just think it's not very effective.
#6174


Can't see last option in Gallery, Components list

The "Text Fields" option is hidden underneath the Android system buttons. I am on a Nexus 6P.
I can scroll up to see "Text Fields" but then the list animates back down. The last item I can see is "Tooltips".

cc @HansMuller

Interesting. Now the bottom 5 options are hidden/bounce back underneath the android toolbar.

Thanks for the quick fix!


[MINOR] Beautify navbar logo and favicon.ico

What is the purpose of the pull request
Beautify navbar logo and favicon.ico.

Brief change log
Compare
https://hudi.apache.org
https://lamber-ken.github.io
Committer checklist

[x] Has a corresponding JIRA in PR title & commit

[x] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

hi @vinothchandar, the size of logo is controlled by background-size: 160px

Thanks @smarthi @smarthi, have a final pass @vinothchandar : )


Missing "off" method

Expected behaviour
Since there is a "on" method to listen events there should be a "off" method to stop listening its.
Actual behaviour
There is no "off" method.
I don't see it used in the "destroy" method neither so there are some memory leaks for sure. Even if it is not a big deal with regular pages because they are often reloaded, it is really important with SPAs.
Players affected:

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

I stumbled upon this today and is an issue at the moment.
@sampotts I see that there's an _off function in the code that's commented out. Is there any chance to get this?

It's coming back in v3...

I also stumbled apon this in 2.0.17 in Firefox when destroying then recreating the same instance. It would be good if you could simply pass an instance.off('eventname') to unbind each event. Or if I could assign the event to a variable then dispose the variable - https://stackoverflow.com/a/45086170 is a neat example of this.

Closing this one as I think it's fixed but feel free to re-open if not solved in v3 👍


feat: add natecraddock/zf

natecraddock/zf: a commandline fuzzy finder designed for filtering filepaths

Thank you!

v4.52.0 is out 🎉
https://github.com/aquaproj/aqua-registry/releases/tag/v4.52.0


Complete translation of the index file

Complete translation of the index file

@Theviajerock this is great, but one change:
#Haskell-beginners should be #haskell-beginners

@bitemyapp You are right, changed.

Thank you :+1: :bear: :ice_cream: !


Shaka stalls when we either seek or trigger play/pause slightly before the start of the second period.

I'm not entirely sure if this is an issue with shaka-player itself, but I'll post it here just to be sure. I'm out of idea's about what exactly causes the endless stall.
Have you read the FAQ and checked for duplicate open issues?
Yes.
What version of Shaka Player are you using?
3.0.5
Can you reproduce the issue with our latest release version?
Yes.
Can you reproduce the issue with the latest code from master?
Yes.
Are you using the demo app or your own custom app?
An own custom app.
If custom app, can you reproduce the issue using our demo app?
Reproduced in the demo app, and I've made a sample to illustrate what is going on. The sample is shared with<EMAIL_ADDRESS>due to the fact that the stream is not publicly available.
I can reproduce the issue with shaka-player 2.3.0, but when I test the same code in the sample with 2.2.10, the player behaves correctly.
What browser and OS are you using?
I've reproduced this with Chrome 75 + Ubuntu 18, although we have customer care reports with the latest Chrome version.
What are the manifest and license server URIs?
I've sent a mail.
What did you do?
Click "play" in the sample I've sent over mail to reproduce the issue.
What did you expect to happen?

When toggling pause / play (which is the behavior of our CSAI SDK) near the end of a given period, the asset resumes playback.
Seeking to an offset that is near the end of the period puts the player in a stalled state.

What actually happened?

Toggling pause / play near the end of a given period would make the promise (returned from the video element's play func) resolve properly.
Seeking to an offset near the end of a period would not halt the player but continues to play.

I am able to reproduce this 8 out of 10 tries. I ran the same test on macOS + Chrome, and there it didn't happen.
I ran the uncompiled version of shaka and added logs to the getGapIndex function, which in a successful try returns a proper index, but keeps trying when the asset is stalled.
const threshold = useLargeThreshold ? 0.5 : 0.1;
console.log('getBufferedInfo', TimeRangesUtils.getBufferedInfo(b));
console.log('time', time);
const idx = TimeRangesUtils.getBufferedInfo(b).findIndex((item, i, arr) => {
  return (
    item.start > time && (i == 0 || arr[i - 1].end - time <= threshold)
  );
});

if (idx >= 0) console.log('--- idx >= 0');
return idx >= 0 ? idx : null;

A successful attempt properly jumps the gap, as seen in the logs:

And with an unsuccessful attempt, the time argument does not increase:

The second period starts with a gap, is this a case that shaka supports?

We do our best to tolerate gaps and play over them by seeking, but we're second-guessing browser behavior in doing so.  Some will behave a little differently, and some thresholds may need adjustment.
I tried the demo you sent, and I can't reproduce the issue on Chrome 88 stable.  I tried many times.
Is this still an issue?  I note that the original description mentioned Chrome 75 on Ubuntu, but given how out of date that is, I don't think we can directly support it or debug with it.

The issue was definitely on the encoding side and we had it fixed there. I kinda forgot about the status of this issue and should have closed it a while ago, my bad!

Hey, no worries.  Thanks for letting us know!


regression test for #368

Fixes #368
@davidszotten the fix required a change to a test which seemed to explicitly expect a socket.error to take down the container (called test_other_error). What was the intent of that test?

For a regression test that we don't expect to live very long, I'm not sure it's that helpful

the eventlet release cadence is very jerky. and even if they release a version with this fix, are we going to set that as the minimum required version for nameko?

Good point. We wouldn't want to do that until the release has proved itself to be stable.
Do you have something in mind?

not yet. but given the bug, i think what we need is a socket with closed (or is_closed, don't recall now) False, but that raises an error with one of the error codes considered SOCKET_CLOSED https://github.com/davidszotten/eventlet/blob/_recv_loop_socket_closed/eventlet/greenio/base.py#L71


[X] WSL 2
[ ] WSL 1

Kernel Version
<IP_ADDRESS>
Distro Version
Debian 12
Other Software
No response
Repro Steps

Install a fresh Debian instance:wsl --install -d debian

Create default user (its name does not matter, let's take admin).
From WSL terminal, open Windows Notepad as root:sudo -u root $(command -v notepad.exe)

Within Notepad GUI, type some random text and save it to a new file (for example, test.txt) located at \\wsl$\debian\home\admin\.
Close the Notepad window.
Again from WSL terminal, check the owner of the newly-created file:$ ls -l ~/test.txt

Expected Behavior
-rw-r--r-- 1 root root 9 Sep  4 19:52 /home/admin/test.txt

Actual Behavior
-rw-r--r-- 1 admin admin 9 Sep  4 19:52 /home/admin/test.txt

Diagnostic Logs
No response

I'm not sure it's defined behavior to be able store native Windows "administrator" owned files when launching "outside-WSL" native Windows-binaries from sudo, from inside a unix-like environment like WSL.
It's not defined inside sudo itself (which is a project separate from WSL) and it's not defined in WSL, AFAIK.
I would start with the basic question: where did get that assumption from, that it is supposed to be like that?

I don't know if this is a feature we will ever want to implement. You can try running wsl.exe, using interop, and seeing if that meets your needs. I tried using net.exe session from an admin, and a non-admin, wsl console and seemed to get the desired results.


Show the total amount invested

It would be great to be able to see how much money I put in alongside how much my Bitcoin is worth.

Welp I'm an idiot; excuse me.


Search and Replace keep losing the selection

VSCode Version: 1.18.1
OS Version: Windows 10
Steps to Reproduce:

Select a block of text (you want to replace occurrences of a word only in that block, not in the entire file)
Press Ctrl + H (Edit > Replace in files)
Insert a word to be replaces, and the replacement in the next input box
Click the "In selection" toggle (if not toggled already), eventually click it again

Expected behavior: if you toggle/untoggle the "in selection", the selection should stay. Now it's not the case.
Also if you keep the search and replace dialog open, and try to select other portions of texts to apply the same replacement, it doesn't work.
Other major editors works well for this case, but Visual Studio Code doesn't work.
See a video demo here, comparing other editors to Visual Studio Code:
https://www.youtube.com/watch?v=0MRqXJQb0Yc

Reproduces without extensions: Yes

Dup of https://github.com/Microsoft/vscode/issues/17563 and https://github.com/Microsoft/vscode/issues/34679


Introduce moons effecting angular acceleration of ring particles.

Investigating effect of moons on angular acceleration of ring particles and better way of treating angular dependence of the acceleration.

(1) is a tweak and shouldn’t take much time;


shared/config/database.yml does not exist when deploying

When running bundle exec cap staging deploy:check, I get the following error:
ERROR linked file ~/apps/mcac_staging/shared/config/database.yml does not exist on XXX.XXX.XXX.XXX
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as<EMAIL_ADDRESS>exit

Who is responsible for copying the configuration file into the shared directory? Capistrano? Chef?
As a side note, I also needed to change my deploy directory to be located inside my home directory. Deploying to /u/ was giving me errors. Am I missing a step?

What is your Capistrano deploy.rb for this server or stage?
The ~ seems wrong to me.
Amos Chan<EMAIL_ADDRESS>schreef op 23 december 2015 22:23:45 CET:

When running bundle exec cap staging deploy:check, I get the
following error:
ERROR linked file ~/apps/mcac_staging/shared/config/database.yml does
not exist on XXX.XXX.XXX.XXX
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as
<EMAIL_ADDRESS>exit

Who is responsible for copying the configuration file into the shared
directory? Capistrano? Chef?
As a side note, I also needed to change my deploy directory to be
located inside my home directory. Deploying to /u/ was giving me
errors. Am I missing a step?

Reply to this email directly or view it on GitHub:
https://github.com/intercity/chef-repo/issues/210

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

My deploy rb:
https://github.com/openmcac/basechurch/blob/deploy/config/deploy.rb
My staging deploy:
https://github.com/openmcac/basechurch/blob/deploy/config/deploy/staging.rb

Things are working now. If anyone else runs into this with similar questions, chef-repo's rails recipe will generate the database.yml based on your node and copy it over to your server's shared directory. Captistrano will then link the file into your application's config folder.


fixing yum

Invoking "yum" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying name: "{{ item }}", please use name: '{{ nrpe_extra_rpms }}'
and remove the loop.

travis test failed, I restarted the tests.

travis test failed, I restarted the tests.
Travis is failing with some py related packets, not with the fix...

I think I fixed the devel-centos7 tests here https://github.com/CSCfi/ansible-role-nrpe/pull/13 so after that have been squash merged. This can be rebased and merged.

@Kallio I think the tests should work now if you rebase against master.


Refactor reconciler and ingress_test.go to use context for ingress class name

Currently the ingress class name is read from the environment which makes testing different ingresses sloppy.
This refactor would decouple the reconciler from config details.

/kind enhancement

Freezing the async issues to preserve the "what's next"
/lifecycle frozen


UI bug with very long URL Links

Thank you for your bug report. It will be fixed with UI overhaul, in the next release.


Add option to ignore SSL errors

I tried using these plugins for Dev -> Test -> Prod process flow. They fail if the OSE cluster has self signed certs. It would be fixed eg. by having checkbox to pass "--insecure-skip-tls-verify" option to oc command in each plugin.
"As a user, I would like to have option to ignore SSL errors in each plugin."
ERROR: Build step failed with exception
com.openshift.restclient.OpenShiftException: javax.net.ssl.SSLHandshakeException while trying to get an authorization context for server https://xxx.ose-demo.xxxxdemo.com:8443

I got pointed to this README file https://github.com/jenkinsci/openshift-pipeline-plugin/blob/master/README.md#certificates-and-encrpytion , which seems to have a way around this. I'll try.

I was just about to point you that link :-)
Let us know what happens.
On Thursday, May 19, 2016, Ilkka Tengvall<EMAIL_ADDRESS>wrote:

I got pointed to this README file
https://github.com/jenkinsci/openshift-pipeline-plugin/blob/master/README.md#certificates-and-encrpytion
, which seems to have a way around this. I'll try.
—
You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub
https://github.com/openshift/jenkins-plugin/issues/39#issuecomment-220323677

SKIP_TLS=true fixes it. I just wonder why, as I verified that the cert in jenkins container: /run/secrets/kubernetes.io/serviceaccount/ca.crt and ose master:/etc/origin/master/ca.crt are the same.

ok cool @ikke-t
On your cert question, it is a function of how your OpenShift is set up and how it mounts secrets into any Pod (including the one Jenkins is running in), independent of the plugin.
See https://docs.openshift.com/enterprise/3.0/dev_guide/service_accounts.html#managing-service-account-credentials
@bparees please keep my honest / correct as needed.


Slow SQL update when delayed_job table gets large

I've been noticing my delayed_job workers going incredibly slowly (1 job per second), and looked at the logs to see what might be up. It seems like about 90%+ of the time per job is spent doing delayed_job bookkeeping, which seems like something must be amiss.
Here's the line in question:
SQL (811.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2014-04-17 22:32:20', `locked_by` = 'host:b38f770a-f3f3-4b2a-8c66-7c8eebdb7fea pid:2' WHERE ((run_at <= '2014-04-17 22:32:20' AND (locked_at IS NULL OR locked_at < '2014-04-17 18:32:20') OR locked_by = 'host:b38f770a-f3f3-4b2a-8c66-7c8eebdb7fea pid:2') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1

Am I somehow missing a db index or something? I'm guessing that this command isn't supposed to take 800ms!

Duplicated here: https://github.com/collectiveidea/delayed_job/issues/581
Still not solved :/

@mumoshu Unfortunately, two years later I have not resolved this issue.
@fguillen My best guess is just that it’s a complicated query, using constraints on run_at, locked_at, locked_by, and failed_at, and then sorting by priority and run_at. That’s a lot! Perhaps some kind of composite index would do the job here.

SO thread: http://stackoverflow.com/q/40360455/316700

I had the same problem with mongoid, turned out i was missing some of the indexes. With them it is a lot faster.

For MySQL 5.6, adding an index on the failed_at column helped considerably.


Use panic_with_error instead of panic in the token spec

Related to https://github.com/stellar/soroban-examples/issues/199.
The token spec is meant to be use to generate a token client to call into token contract that implements the token spec. If a user uploads the token spec and tries to call into it, the contract will panic! with an error message, but that message won't propagate up because it isn't using panic_with_error!, making a simple bug difficult to debug.

We deprecated the token spec crate, so I think we can close this now.


Opacity with Text issue in Android

If set some opacity to text and some backgroundColor to the View containing the Text component, the Text component renders buggy (as shown in screenshots) in Android only (working fine on Android).
Code example:

<View style={{ height: 27, backgroundColor: "red" }}>
    <Text numberOfLines={1} style={{ fontSize: 12, color: "rgba(255,255,255,0)", textAlign: "center", padding: 2 }}>
        {percentage}
    </Text>
</View>

React Native version: 0.57.4
Steps To Reproduce

Create the View (with a backgroundColor) containing a Text component setting opacity of Text color to 0. (as shown in code above)
Run both iOS and Android emulators to see the difference

Describe what you expected to happen: Expected behavior of Text as it happens in iOS.
Snack, code example, screenshot, or link to a repository:
See the percentage text inside the bar on both platforms.
Android:

iOS:

Have you tried setting the opacity as a style property and not along with text color? For example:
<View style={{ height: 27, backgroundColor: "red" }}>
    <Text numberOfLines={1} style={{ fontSize: 12, color: "rgba(255,255,255)", textAlign: "center", padding: 2, opacity: 0 }}>
        {percentage}
    </Text>
</View>

Have you tried setting the opacity as a style property and not along with text color? For example:
<View style={{ height: 27, backgroundColor: "red" }}>
    <Text numberOfLines={1} style={{ fontSize: 12, color: "rgba(255,255,255)", textAlign: "center", padding: 2, opacity: 0 }}>
        {percentage}
    </Text>
</View>

Yes I tried that too, leads to same result.


Add webUI version in left-nav footer

fixes https://github.com/ipfs-shipyard/ipfs-webui/issues/1649
My first Javascript fix.
Couldn't test due to https://github.com/ipfs-shipyard/ipfs-webui/issues/1650
Waiting for feedback.

Thanks @bertrandfalguiere! Got a little sidetracked on something else but will go over ASAP 😊

Hi @bertrandfalguiere -- https://github.com/ipfs-shipyard/ipfs-webui/pull/1654 should tighten the left nav enough to solve your visibility problem. Do you mind taking a look at that PR to confirm?
In the meantime, added a few commits to this PR for the following:

Added version info to the Status page underneath "Agent" as we'd also discussed
In the left nav, moved version above revision
Adjusted i18n keys accordingly (making version a member of terms in app.json

Screenshot for your feedback/thoughts/ideas - and would also appreciate a review from @lidel and @rafaelramalho19 as they're able. Thank you so much!

Mm... I git cloned my branch, installed npm, npm installed, npm started, and now I see that on my screen:

So the left nav is tighter, but I still don't see revisions.
Confirmed on Brave, Firefox, and Chrome.
I'm on Ubuntu 20.04

That's really strange, because that style of nav (text next to icons instead of under) is a much older revision; hasn't been in master for at least a few weeks now. Are you sure you don't have an extra old copy of the project floating around your local machine?

I see what happened. I probably forked a while ago and updated this out-of-sync version. I'll fix that this evening.

Hey @bertrandfalguiere -- your commits from yesterday actually brought us out of sync with master 🤣 , so I'll just bring the changes into https://github.com/ipfs-shipyard/ipfs-webui/pull/1654. The work is all closely related enough to make sense as one PR, and will be a little more foolproof to test/review. Closing this PR in the meantime ... thanks again!

Yep, i saw that. I tried to work directly from Github. Will not do that ever again 🙄...


Remove support of pulling CAPAS image from private ecr regi

Issue #, if available:
Description of changes:
Testing (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/retest


v3.2.0-arm64 release

There doesn't seem to be any arm64 release of v3.2.0 in either github or quay.io.  PR https://github.com/coreos/etcd/pull/7714 (add multi-arch support in release binaries) should have made that possible.
rkt's TestFetchAny functional test uses etcd images, so to fix that for arm64 I need arm64 releases of etcd to at least the github downloads.  See https://github.com/rkt/rkt/blob/master/tests/rkt_fetch_test.go#L93.

@glevand We will include those builds from 3.2.1+.
I should have communicated earlier.
Thanks!

@gyuho OK.    Just to mention it here, the v3.2.0-rc.1 release was missing the pgp signature file for the arm64 aci image, so please include it in 3.2.1.  The rkt tests will fail without that.
Thanks.


[Question] Will this work with many users?

Hi, thanks for the plugin, I was wondering if each jellyfin user would be able to set their own channels to follow, or if all channels would be available for all users
Thanks

Hi, is not possible at the moment because each cahnnel has a unique folder (library) to save strm files. I'm working with c# in order to deploy this as real Jellyfin plugin with config interface. I put your request in my to do list.


Giflib: use updated submodule (4.1.6 -> 5.1.4)

LGTM --- given that 5.x has thread safety fixes, and we already support it, seems like a good idea to me.