edit Login page

hi i want to make changes in login page

What changes? Describe

I am participant of lgm.
I am interested

I am participant of lgm.
I am interested

This issue was not opened by me.
Describe what you want to do?

I want to change design of login page.
On Sun, 13 Jun, 2021, 8:06 pm Qazi Maaz Arshad, @.***>
wrote:

I am participant of lgm.
I am interested
This issue was not opened by me.
Describe what you want to do?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/QAZIMAAZARSHAD/Movie-Streaming-Website/issues/180#issuecomment-860221170,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATFXPHNVVHH7ZUKOTQOW3KLTSS67LANCNFSM46TRMIBA
.

Your design has to be better than the current one, then only I will accept the changes.

ok
On Sun, 13 Jun, 2021, 10:07 pm Qazi Maaz Arshad, @.***>
wrote:

Your design has to be better than the current one, then only I will accept
the changes.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/QAZIMAAZARSHAD/Movie-Streaming-Website/issues/180#issuecomment-860238690,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATFXPHJHPFPYWQS72GCB4NTTSTNFTANCNFSM46TRMIBA
.

I would like to work on it ,

Done.
On Wed, 16 Jun 2021 at 00:41, Jatin Jain @.***> wrote:

I would like to work on it ,
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/QAZIMAAZARSHAD/Movie-Streaming-Website/issues/180#issuecomment-861763093,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATFXPHNAEGE7EFW6P26INBTTS6QXBANCNFSM46TRMIBA
.

@Anjali1806 resolve conflicts.

I would like to work on it ,

Already resolved,

@Aditya7494 open a new issue and ask me to assign you.

Sure, will do that.
On Wed, 16 Jun 2021 at 14:05, Qazi Maaz Arshad @.***>
wrote:

@Aditya7494 https://github.com/Aditya7494 open a new issue and ask me
to assign you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/QAZIMAAZARSHAD/Movie-Streaming-Website/issues/180#issuecomment-862167664,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATFXPHJGQPJJ4ML5JPIOCZDTTBO4ZANCNFSM46TRMIBA
.

@Aditya7494 no need to create a separate issue, make PR again mentioning this issue.

@Anjali1806 still working on it or should I close this issue?

Yes, it's done.
On Thu, 8 Jul 2021 at 17:10, Qazi Maaz Arshad @.***>
wrote:

@Anjali1806 https://github.com/Anjali1806 still working on it or should
I close this issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/QAZIMAAZARSHAD/Movie-Streaming-Website/issues/180#issuecomment-876367877,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATFXPHKITENJPJGCZAKFAUDTWWFCBANCNFSM46TRMIBA
.

Yes, it's done.
…
On Thu, 8 Jul 2021 at 17:10, Qazi Maaz Arshad @.***> wrote: @Anjali1806 https://github.com/Anjali1806 still working on it or should I close this issue? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#180 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATFXPHKITENJPJGCZAKFAUDTWWFCBANCNFSM46TRMIBA .

Fine, share screenshots and demo link.

@Anjali1806 do you have any other ideas and you want to improve or should I close this issue?

plz check
On Thu, 8 Jul 2021 at 20:28, Qazi Maaz Arshad @.***>
wrote:

Yes, it's done.
… <#m_2239647005783239647_>
On Thu, 8 Jul 2021 at 17:10, Qazi Maaz Arshad @.***> wrote: @Anjali1806
https://github.com/Anjali1806 https://github.com/Anjali1806 still
working on it or should I close this issue? — You are receiving this
because you were mentioned. Reply to this email directly, view it on GitHub
<#180 (comment)
https://github.com/QAZIMAAZARSHAD/Movie-Streaming-Website/issues/180#issuecomment-876367877>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATFXPHKITENJPJGCZAKFAUDTWWFCBANCNFSM46TRMIBA
.
Fine, share screenshots and demo link.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/QAZIMAAZARSHAD/Movie-Streaming-Website/issues/180#issuecomment-876510617,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATFXPHO4Q333O3OCPIWWGATTWW4H5ANCNFSM46TRMIBA
.

close this issue
On Fri, 9 Jul 2021 at 14:37, Qazi Maaz Arshad @.***>
wrote:

@Anjali1806 https://github.com/Anjali1806 do you have any other ideas
and you want to improve or should I close this issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/QAZIMAAZARSHAD/Movie-Streaming-Website/issues/180#issuecomment-877037373,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATFXPHOMVB25PXXSEZMK7DLTW235VANCNFSM46TRMIBA
.


[xhamster] - "No video format found" with pending fix #25804 and possible workaround

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2020.07.28
[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

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-c', '--batch-file=dl.txt', '-v']
[debug] Batch file urls: ['https://de.xhamster.com/videos/sarah-fc-xh6SnVE']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Git HEAD: a4ed50bb8
[debug] Python version 3.7.3 (CPython) - Linux-4.19.118-v7+-armv7l-with-debian-10.4
[debug] exe versions: ffmpeg 4.1.6-1, ffprobe 4.1.6-1
[debug] Proxy map: {}
[XHamster] xh6SnVE: Downloading webpage
ERROR: No video formats found; 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.
Traceback (most recent call last):
  File "/home/apadmin/git/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "/home/apadmin/git/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/home/apadmin/git/youtube-dl/youtube_dl/extractor/xhamster.py", line 242, in _real_extract
    self._sort_formats(formats)
  File "/home/apadmin/git/youtube-dl/youtube_dl/extractor/common.py", line 1350, in _sort_formats
    raise ExtractorError('No video formats found')
youtube_dl.utils.ExtractorError: No video formats found; 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.

Description

I use a testing extractor with the pending fix #25804 [Xhamster] Updated regex to accommodate new video_id with letters .
I noticed a new problem today "No video formats found".
I adjusted line 139 in my test extractor and now it seems to work again for the moment.
r'window.initials\s*=\s*({.+?})\s*;\s*\n', webpage, 'initials',
to
r'window.initials\s*=\s*({.+?})\s*;\s*', webpage, 'initials',
The problem seems to be that on the page the initials no longer end with a new line.
Maybe the information will help someone to provide a fix. I suspect that there will be some further adjustments to be made here, as too much information may end up in the initials variable.

I can confirm this fixes the issue.
--- a/youtube_dl/extractor/xhamster.py	2020-08-05 05:56:48.570145132 -0400
+++ b/youtube_dl/extractor/xhamster.py	2020-08-05 05:59:08.656243722 -0400
@@ -132,7 +132,7 @@ class XHamsterIE(InfoExtractor):

         initials = self._parse_json(
             self._search_regex(
-                r'window\.initials\s*=\s*({.+?})\s*;\s*\n', webpage, 'initials',
+                r'window.initials\s*=\s*({.+?})\s*;\s*', webpage, 'initials',
                 default='{}'),
             video_id, fatal=False)
         if initials:

@TheRealDude2 - Send a pull request so the maintainer can fix it easy.


Version 0.5.3

Added generics to CoreServices (TypeHinting)
Changed workaround to use os.chdir(work_dir) instead of os.environ["calling_root_path"] = calling_root_path

Codecov Report
Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (a292d15) 86.20% compared to head (ddec05c) 86.16%.

Files
Patch %
Lines

py_selenium_auto_core/utilities/file_reader.py
0.00%
2 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
- Coverage   86.20%   86.16%   -0.04%
==========================================
  Files          47       47
  Lines        1529     1532       +3
  Branches      112      111       -1
==========================================
+ Hits         1318     1320       +2
- Misses        181      182       +1
  Partials       30       30

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


TypeScript 1.8.0 errors in starters

From https://github.com/driftyco/ionic/issues/5264, upgrading to TypeScript 1.8.0 breaks non TS starters because of https://github.com/Microsoft/TypeScript/issues/6766.
Looks like this has been fixed in TypeScript nightly, but will leave this open for reference until it's been resolved.

This issue was moved to driftyco/ionic-cli#755


Fix effect counting

Since we're counting effects rather than variants generating effects, we might end up double-counting variants.
This does not appear to impact our bladder analyses.
@arahuja does this change make sense to you?

@tavinathanson for nonsyn=True don't we choose one effect per variant?

See: https://github.com/hammerlab/cohorts/blob/master/cohorts/load.py#L690
But this is true if we are counting all effects, I've run into that.

@arahuja I was scratching my head for a while, thinking that I must have been missing something! Indeed, I missed that we call top_priority_effect_per_variant! That probably explains why this change had no effect.
Given that the only counting functions I'm changing are those that use top_priority_effect_per_variant, this seems like a non-issue/close?

Coverage increased (+0.9%) to 59.6% when pulling f2fd842bc2c39620b0b4934e643ebc2c2268e577 on fix_counting into 41da722d264193ea8c07e48e93393ee1d440bbf0 on master.

Coverage increased (+0.9%) to 59.6% when pulling f2fd842bc2c39620b0b4934e643ebc2c2268e577 on fix_counting into 41da722d264193ea8c07e48e93393ee1d440bbf0 on master.

Yea, it does show that load_effects has some odd behavior. One way it gives all effects and another only nonsyn AND only per variant.

Perhaps a reasonable fix is to add top_priority_effect_per_variant() to all effects, as well as explain the non-bug in the counting functions for clarity?

a reasonable fix is to add top_priority_effect_per_variant()
sounds good!

as well as explain the non-bug in the counting functions for clarity
Maybe? Would be clearer? I think the assumption was always one effect per variant?

That must have been the assumption when writing those functions, though as a reader looking back at the code I was confused about why we didn't have a bug on our hands. Hence wanting to clarify :)

Coverage increased (+0.9%) to 59.6% when pulling 2cc010921fc0530711343a3b640bbb62d7b7b07e on fix_counting into 41da722d264193ea8c07e48e93393ee1d440bbf0 on master.

Yikes, was commiting to master by accident! Here's what I ended up with:
https://github.com/hammerlab/cohorts/commit/71e0082930b1c46dda5744ffdddfe85e19b279c0
Let me know if anything there doesn't look good and I'll make a new PR to fix it.

Note for anyone following this change involves re-generating the effects in the cache, though it shouldn't matter for most of our analyses (which were already taking the top priority effect).


[Enhancement] Code optimization. [EtcdCustomService]

Search before asking

[X] I had searched in the issues and found no similar issues.

Enhancement Request

analysis and explanation:
a. InterruptedExceptions should never be ignored in the code, and simply logging the exception counts in this case as "ignoring". The throwing of the InterruptedException clears the interrupted state of the Thread, so if the exception is not handled properly the information that the thread was interrupted will be lost. Instead, InterruptedExceptions should either be rethrown - immediately or after cleaning up the method’s state - or the thread should be re-interrupted by calling Thread.interrupt() even if this is supposed to be a single-threaded application. Any other course of action risks delaying thread shutdown and loses the information that the thread was interrupted - probably without finishing its task.
b. Declaring a variable only to immediately return or throw it is a bad practice.
Some developers argue that the practice improves code readability, because it enables them to explicitly name what is being returned. However, this variable is an internal implementation detail that is not exposed to the callers of the method. The method name should be sufficient for callers to know exactly what will be returned.
Describe the solution you'd like
a. restore interrupted state

b. inline variable

Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

@xwm1992 Can I work on this issue  ?

sure


Added error messages when empty lists are passed to PyCNN functions.

Errors were previously more cryptic.
@yoavg

Did you verify the speed implications of this?
How much time does it take to create, say, 10,000 esum operations with vs without the assertion?

Yeah, I modified an xor example to perform an explicit concatenate.  With 10 million training iterations, the run time on my laptop went from 461 seconds to 464.
That said, I'm totally fine with rejecting the change since it's definitely not necessary and only marginally useful.


QuantumServerless cannot serialize new Qiskit Nature >= 0.6.0 class, ElectronicStructureProblem

Related to #485
Sibling issue: #483
Steps to reproduce the problem

Install Qiskit Nature >= 0.6.0
Run the below Python script

import numpy as np
from quantum_serverless import QuantumServerless
from qiskit_nature.second_q.problems import ElectronicStructureProblem
from qiskit_nature.second_q.hamiltonians import ElectronicEnergy

@run_qiskit_remote()
def my_remote_func(problem: ElectronicStructureProblem):
        pass

serverless = QuantumServerless()

hamiltonian = ElectronicEnergy.from_raw_integrals(np.zeros((2, 2)), np.zeros((2, 2, 2, 2)))
problem = ElectronicStructureProblem(hamiltonian)

with serverless:
    result_future = my_remote_func(problem)
    results = get(result_future)

What is the current behavior?
The error shown below was generated by a Github Actions workflow. In a local notebook, using the above code, it just hangs and the kernel dies -- presumably from the same error shown below.
---------------------------------------------------------------------------
RayTaskError                              Traceback (most recent call last)
Cell In[17], line 22
     13 with serverless:
     14     forging_result_future = solve_remote(
     15         problem,
     16         ansatz,
   (...)
     20         options_dicts=options_dicts,
     21     )
---> 22     results = get(forging_result_future)

File ~/opt/anaconda3/envs/ckt/lib/python3.8/site-packages/ray/_private/client_mode_hook.py:105, in client_mode_hook.<locals>.wrapper(*args, **kwargs)
    103     if func.__name__ != "init" or is_client_mode_enabled_by_default:
    104         return getattr(ray, func.__name__)(*args, **kwargs)
--> 105 return func(*args, **kwargs)

File ~/opt/anaconda3/envs/ckt/lib/python3.8/site-packages/ray/_private/worker.py:2380, in get(object_refs, timeout)
   2378     worker.core_worker.dump_object_store_memory_usage()
   2379 if isinstance(value, RayTaskError):
-> 2380     raise value.as_instanceof_cause()
   2381 else:
   2382     raise value

RayTaskError: ray::solve_remote() (pid=77961, ip=<IP_ADDRESS>)
  At least one of the input arguments for this task could not be computed:
ray.exceptions.RaySystemError: System error: maximum recursion depth exceeded
traceback: Traceback (most recent call last):
  File "/Users/caleb/opt/anaconda3/envs/ckt/lib/python3.8/site-packages/qiskit_nature/second_q/operators/tensor.py", line 194, in __getattr__
    array = self.__array__()
  File "/Users/caleb/opt/anaconda3/envs/ckt/lib/python3.8/site-packages/qiskit_nature/second_q/operators/tensor.py", line 145, in __array__
    return self._array
  File "/Users/caleb/opt/anaconda3/envs/ckt/lib/python3.8/site-packages/qiskit_nature/second_q/operators/tensor.py", line 194, in __getattr__
    array = self.__array__()
  File "/Users/caleb/opt/anaconda3/envs/ckt/lib/python3.8/site-packages/qiskit_nature/second_q/operators/tensor.py", line 145, in __array__
    return self._array
    ...
    ...
    ...
  File "/Users/caleb/opt/anaconda3/envs/ckt/lib/python3.8/site-packages/qiskit_nature/second_q/operators/tensor.py", line 194, in __getattr__
    array = self.__array__()
  File "/Users/caleb/opt/anaconda3/envs/ckt/lib/python3.8/site-packages/qiskit_nature/second_q/operators/tensor.py", line 145, in __array__
    return self._array
  File "/Users/caleb/opt/anaconda3/envs/ckt/lib/python3.8/site-packages/qiskit_nature/second_q/operators/tensor.py", line 194, in __getattr__
    array = self.__array__()
  File "/Users/caleb/opt/anaconda3/envs/ckt/lib/python3.8/site-packages/qiskit_nature/second_q/operators/tensor.py", line 145, in __array__
    return self._array

    RecursionError: maximum recursion depth exceeded

### What is the expected behavior?
For the above error to not happen and the inputs be properly serialized.

Analyzing the problem could be related with #341 , @IceKhan13 . We can take a look in this next sprint and prioritize things.

Analyzing the problem could be related with #341 , @IceKhan13 . We can take a look in this next sprint and prioritize things.

In my limited experience with serverless last year, we saw very similar errors when Nature objects couldn't be serialized. We may have actually encountered this very thing with the previous ElectronicStructureProblem from qiskit_nature.problems.second_quantization package.

@psschwei updated our serverless usage, I updated the quantum-serverless version in CKT, and I implemented a change in our entanglement forging w quantum serverless tutorial, and this problem is no longer present; however, I'm not sure exactly what fixed it (yay scientific method).
I'm going to look closer and likely recommend this issue be closed, as it seems to be fixed in serverless 0.0.7

I'm going to look closer and likely recommend this issue be closed, as it seems to be fixed in serverless 0.0.7

Actually this is still broken on 0.6.0 but not 0.5.2 hmmm..I'll keep looking

@psschwei @IceKhan13 is this still the correct issue to track for this problem? Is there an issue that encompasses this one? I can close it and track the other issue, if so

I think this is still the canonical issue (there's also #483 but that's for M1 Macs and should probably be subsumed under this one)

I think this is still the canonical issue (there's also #483 but that's for M1 Macs and should probably be subsumed under this one)

Added a note in PR body linking to that issue until we decide what to do. I do believe they are almost assuredly the same issue

FWIW, I was able to run the 06_electronic_structure_problem.ipynb notebook without issue using qiskit-nature==0.6.1

FWIW, I was able to run the 06_electronic_structure_problem.ipynb notebook without issue using qiskit-nature==0.6.1

It looks like the Molecule is passed in and the ElectronicStructureProblem (problematic class) is instantiated inside the function. The issue is that I don't believe serverless can handle ESProblem as a distributed function input

Yeah, your example code fails for me with the same error.
Had to make a couple of tweaks to get it to run on the latest QS updates, posting that here to save you a few next time you test:
import numpy as np
from quantum_serverless import distribute_task, get, QuantumServerless, save_result
from qiskit_nature.second_q.problems import ElectronicStructureProblem
from qiskit_nature.second_q.hamiltonians import ElectronicEnergy

@distribute_task()
def my_remote_func(problem: ElectronicStructureProblem):
        pass

serverless = QuantumServerless()

hamiltonian = ElectronicEnergy.from_raw_integrals(np.zeros((2, 2)), np.zeros((2, 2, 2, 2)))
problem = ElectronicStructureProblem(hamiltonian)

with serverless.context():
    result_future = my_remote_func(problem)
    results = get(result_future)

Closing due to deprecation for now


Check for two hexadecimal digits for percent sign

This is a revision of #4.
I should have looked more carefully and see that regular expression doesn’t take into account that first character after percent sign should also be hexadecimal value instead of only digits. This PR takes care of that and looks for two hexadecimal values after percent sign.
My bad :(

I'm not completely sure what happens here since I don't know the context, but will it work?
new URLSearchParams('a=%F0%A0%AE%B7').get('a') === '𠮷'

Thank You!


#61

Coverage remained the same at 44.784% when pulling 3b15ed9c1fa6564cf73921092fb5c72fcdeaa9b6 on #61 into 1de35a823538600ed15618cbaf046b41a104019a on master.


Best raw mode on Linux (keys)

[x] Keys
[x] Delete
[x] Can't delete the prompt
[x] Arrow up and down (historic)
[ ] Delete Ctrl+C, Ctrl+Z and Ctrl+D to quit

Now, he raw mode is not used by SnabbGET. And I will let Ctrl+C, Ctrl+Z and Ctrl+D.


Added resource section for telugu books

What does this PR do?
Add resource for telugu
Description
Added free telugu C introduction
Checklist:

[X] Read our contributing guidelines.
[X] Search for duplicates.
[X] Include author(s) and platform where appropriate.
[X] Put lists in alphabetical order, correct spacing.
[X] Add needed indications (PDF, access notes, under construction).
[X] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Thanks, and welcome to free-programming-books!


tauri: failed to parse JSON-RPC request

https://github.com/tauri-apps/tauri/pull/5492 which was recently merged into the dev branch has broken the tauri integration. All RPC calls fail with the following error message:
2022-10-30T11:37:47.115378Z ERROR rspc::integrations::tauri: failed to parse JSON-RPC request: invalid type: string "{\"id\":\"b8h6sjydy9l\",\"method\":\"query\",\"params\":{\"path\":\"version\"}}", expected struct Request at line 1 column 83

I tried some hacks to fix the issue on the rust and typescript sides of rspc but wasn't successful. Happy to help PR a fix with a nudge in the right direction.
Versions:
tauri: dev branch
rspc: v1.0.2 (also fails with main)

Might be why the app stopped working after upgrading tauri to v1.2.0.

This should be fixed as part of #84.
Right now upgrading rspc to the version in Git is a little bit challenging as the main branch is using a completly refactored Typescript client and a slightly different format for frontend/backend communication all of which isn't documented yet. I am going to work on getting a release out in December once I am back from travelling so hopefully it's possible for you to wait out until then. If not, feel free to let me know in the Discord and I can give you a hand upgrading.


MultiApi script generates "None" for default ApiVersion

Storage Management. In current state of Storage, should be "2019-06-01"

It's actually a deeper problem:


use compiler.fileTimestamps instead of watcher.getTimes()

compiler.fileTimestamps is more stable than watcher.getTimes() as watcher may be null.

Codecov Report

Merging #25 into master will decrease coverage by 0.2%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #25      +/-   ##
==========================================
- Coverage   33.63%   33.43%   -0.21%
==========================================
  Files           8        8
  Lines         330      329       -1
  Branches       40       39       -1
==========================================
- Hits          111      110       -1
  Misses        219      219

Impacted Files
Coverage Δ

src/TsCheckerWebpackPlugin.ts
96.42% <100%> (-0.07%)
:arrow_down:

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 97d78e2...473aeee. Read the comment docs.


Configure plugins via vernemq conf

To eliminate the vmq_plugin.conf file and make vernemq more containter friendly, I thought about something in this direction. What do you think?
Changes:

removes the dependency on lib/vmq_plugin.conf
makes it possible to configure plugins via the vernemq.conf file. Example:

plugin.3vmq_diversity.plugin = vmq_diversity
plugin.3vmq_diversity.path = /home/lhc/dev/erl.io/vmq_diversity/_build/default

Hi @codeadict an option like that would be interesting. We currently don't have any method to update the vernemq.conf in place - only generate it once when building the vernemq release. So I don't have any good ideas how to do that at the moment, I'm afraid. Suggestions are welcome, of course!

Now depends on erlio/vmq_diversity#25 to be merged.

The part in vmq_webhooks is ready (erlio/vmq_webhooks#16) and should be reviewed and merged before this PR.

Replaced by #270


Add an optional default rendered component for each step

When this feature was first introduced in Amira there was a component collect TourBox that served as a default layout for content that will be rendered in each step of the tour. It was used some way like this:
<TourBox {...RenderProps}  title="This is a header title">
  {contents}
</TourBox

The Tour Box included elements like a header and buttons to go forward or backwards in the steps.
I noticed that something like this is not in this library. While I understand that this is due to the fact that we want to have the most customizable implementation. I think that having a default element to render in each step will help with using the library and understanding it better.
Something I think that instead of having a component called tour box that the user can use, we could add some properties to the TourStep interface for customizing different elements of a default "TourBox" like the styles of the next and back button, style of the title and the contents inside the TourBox and also have a property for the user to have it's own component rendered in each step as we have right now.
This could work like the props in this library: https://github.com/Jacse/react-native-app-intro-slider

Resolved by #19


python>=3.10 ?

Hi,
May I know if torchode only supports python>=3.10?

My Envs:
Ubuntu 20.04
python 3.8
torch 1.11.0
CUDA 11.6
Thanks!

At the moment, torchode requires python 3.10, but I think that is mostly because of the list[...] and tuple[...] type annotations.

I have released version 0.1.2 that is compatible with python 3.8. Let me know if it works for you.


chore(dynamic-plugins) generate dynamic...

What does this PR do?
chore(dynamic-plugins) generate dynamic plugins table - 1.2.x
Signed-off-by: Nick Boldt<EMAIL_ADDRESS>Screenshot/screencast of this PR
N/A
What issues does this PR fix or reference?
RHIDP-2519
How to test this PR?
run the script to see the output. Or look at the changes to modules/dynamic-plugins/rhdh-supported-plugins.adoc in this PR!
./modules/dynamic-plugins/rhdh-supported-plugins.sh -b 1.2.x --clean
./build/scripts/build.sh; google-chrome titles-generated/main/plugin-rhdh/index.html

PR Checklist
As the author of this Pull Request I made sure that:

[x] The Eclipse Contributor Agreement is valid
[x] Code produced is complete
[x] Code builds without errors
[ ] Tests are covering the bugfix
[x] The repository devfile is up to date and works, if one exists
[x] Sections What issues does this PR fix or reference and How to test this PR completed
[x] Relevant user documentation updated
[x] Relevant contributing documentation updated
[x] CI/CD changes implemented, documented and communicated

Reviewers
Reviewers, please comment how you tested the PR when approving it.

This is the cherrypick/regen of https://github.com/redhat-developer/red-hat-developers-documentation-rhdh/pull/300 for the 1.2.x branch.


Off logger

I still cant find way to stop log as #133
seems 2nd property of init bpmnServer require ilogger, so I obtain ilogger from  config setting which as below
Itried define config
{...,
  logger: function (server) {
        const logger = new Logger()
        return logger;
      },
...}

all console disappear but i get this error

I wish to completely off the bpmn server log from .env, is it supported?

Can you please share your project where this happens, I like to debug it for you

thanks! due to your previous repo seems something inside so I created another dummy repo for it here
It is dummy project for  demonstration, the user service been commented due to it rely on sso/keycloak.

i finally solve initiate new illogger class and define at constrctor
class mylogger implements  ILogger{
      setOptions(){}
      clear(){}
      get(){ return [] as any[]}
      debug(){}
      warn(){}
      reportError(){}
      async save(filename:any){}
      log(){}
      error(){}
    }
    this.bpmnServer = new BPMNServer(this.workflowconfig.getConfig(), new mylogger());


Language in the Absolute links section needs to be changed to english

On the Contributing to the Mautic documentation page, the language in the Absolute links section needs to be changed to English.

Well , I feel it's being stated as an example on how to write the links in the markdown

I understand that. But why is the example not provided in the English language? To me, it looks a bit awkward.

Changed to texts into english, as it was easier to change the text instead of explaining why we use latin in the two examples. :)


Documentation: Demo video/GIF for the readme

@idodav : Can you please assign this to me?

@idodav: This has been completed, thank you so much for providing me with opportunity to contribute to the project. :)

@idodav: This has been completed, thank you so much for providing me with opportunity to contribute to the project. :)

You did a great job! i was amazed thank you 😊


Unclosed element when block does nothing but returns something

Note that this is on Phlex 2.0 preview, which I grabbed this morning.
Here's a couple of spec example of the issue I'm seeing...
RSpec.describe 'Phlex Issue' do

  class TestClass < Phlex::HTML
    def view_template
      select(name: 'test') do
        [].each { |i| option_tag(i, i) }
        # nil # uncomment this, and the spec will pass
      end
      input(type: 'text', name: 'other')
    end
  end

  it 'should render the test class' do
    expect(TestClass.call).to eq(%q(<select name="test"></select><input type="text" name="other">))
    # Failure is: "<select name=\"test\"><input type=\"text\" name=\"other\">"
  end

  class OtherTestClass < Phlex::HTML
    def view_template
      ul do
        [].each { |i| li { i } }
        # nil # uncomment this, and the spec will pass
      end
      p { 'hi there' }
    end
  end

  it 'should render the test class' do
    expect(OtherTestClass.call).to eq(%q(

hi there
))
    # Failure is: "

hi there
"
  end
end

I've had a quick look at the Phlex source, but couldn't easily figure out why this is happening.  I'm more than happy to have another look, just let me know if there's a place I should start looking.

Thank you for the excellent bug report. This should be fixed now.


Fix CI WebKit Tests

Runs the browser tests using a macOS runner to ensure that Chromium, Firefox, and WebKit tests can all be executed.

nice - any reason why it is macos-latest?

nice - any reason why it is macos-latest?

Why not?  “latest” for GitHub runners is latest stable.  So macos-latest is macOS 12 and not 13.   And we use ubuntu-latest in every other test so why deviate?

@frankhinek oh it was macos instead of ubuntu that confused me (not latest)


Postgres + Redis included in production image?

Hi - thanks for writing the blog article (https://www.honeybadger.io/blog/rails-docker-aws-fargate/). I had a question about this code though -- for deploying to Fargate where you are using an RDS database, do you actually still need the postgres service section in the docker compose file at all? It seems like the container/image that will be running in Fargate will have it's own postgres database that will never be used, since the app will be connecting to the RDS database instead, right?  (same for Redis if using Elasticache).
It seems like you could reduce the image size and memory consumption by removing postgres + redis from the image that runs in Fargate. WDYT?

Hey @key88sf great to see you enjoyed the article. Sure, you make some good points on postgres and Redis - removing them would cut down build time and image size. To be honest, I didn't structure the tutorial from a point of pure production deployment, more like a learning tool on how you could put some things together.
That said, not everyone is a fan of RDS and other associated services, so the tutorial kinda gives you an idea on how you could include your own service without having to use the AWS ones.


Form doesnt let anything throught when captcha is added

when captcha is added the form doesnt seem to let anything through

i just set it to be an invisible captcha


[1403] Show banner when last degree deleted

Context
https://trello.com/c/izwer1EG/1403-show-banner-when-last-degree-deleted
Changes proposed in this pull request

Creates new degrees confirm details controller which decides whether to render confirmation component or incomplete section component depending whether the trainee has a degree.
Add a degree text to button no longer exists, as now dealt with by incomplete section component
Edit feature test to test that incomplete component renders in user journey
Add view spec for personal details show page

Guidance to review
Delete a trainee's degree so that component renders like below

 Show banner when last degree deleted

All good


Support teams for OAuth applications

Discord introduced a new feature called teams. This new feature changes the owner of the OAuth application. There will very likely be a new endpoint for getting the team members.
The bot owner looks now like this:
{
    "username": "team<ID>",
    "discriminator": "0000",
    "id": "<ID>",
    "avatar": null
}

https://github.com/discordapp/discord-api-docs/commit/18d8912152e8c63ddeab5a7e7d9cc83e7bfda7da


Emit errors if TF or MHLO ops are found during StableHLO conversion.

This replaces https://github.com/openxla/iree/pull/16033. Progress on https://github.com/openxla/iree/issues/10297.
This would have given a better error message on https://github.com/openxla/iree/issues/16021 where the program had an unconverted TensorFlow op:
...
    %85 = stablehlo.multiply %80, %83 : tensor<?x8x8x256xf32>
    %86 = stablehlo.compare  GT, %80, %84,  NOTYPE : (tensor<?x8x8x256xf32>, tensor<?x8x8x256xf32>) -> tensor<?x8x8x256xi1>
    %87 = stablehlo.select %86, %80, %85 : tensor<?x8x8x256xi1>, tensor<?x8x8x256xf32>
    %88 = "tf.ResizeNearestNeighbor"(%87, %3) {align_corners = false, device = "", half_pixel_centers = true} : (tensor<?x8x8x256xf32>, tensor<2xi32>) -> tensor<?x16x16x256xf32>
...

D:\dev\projects\iree (compiler-known-dialects)
(.venv) λ ..\iree-build\tools\iree-compile.exe --compile-to=input D:\dev\projects\iree-tmp\iree_unet_tf.mlir
D:\dev\projects\iree-tmp\iree_unet_tf.mlir:1:1: error: one or more illegal operations were found in the compiler input (are you missing an --iree-input-type= flag, or did you mean to pre-process through an IREE importer frontend?)
module {
^
D:\dev\projects\iree-tmp\iree_unet_tf.mlir:134:11: note: tf.ResizeNearestNeighbor
    %88 = "tf.ResizeNearestNeighbor"(%87, %3) {align_corners = false, device = "", half_pixel_centers = true} : (tensor<?x8x8x256xf32>, tensor<2xi32>) -> tensor<?x16x16x256xf32>
          ^

Note that this will not give error messages if the entire program is TF/MHLO - it must have some StableHLO in it for the StableHLO input plugin code to run. In that example, the input type is "auto" (the default), which selects "stablehlo" based on the presence of stablehlo ops in the module.

A check upstream in TensorFlow that it fully converts to stablehlo could also help here, if that does not already exist. torch-mlir has a similar check already (just via the conversion framework, no special pass needed).
Defense in depth :)

+1 - we shouldn't have to check that the importer did it's job, as we should be a target for many things and we can't add checks for all of them (some we may not even know about).

Okay, sounds like we should redirect issues with TF ops leaking through to the TF repo (or StableHLO). I'll close this PR.


Update documentation

Fixes outstanding doc issues. Don’t think we need to make a new PiPy release for this since it’s just docs and nothing functional.
@projectweekend @vokal/systems

LGTM.

LGTM2.


docker export  fails to export files

docker export should export a tar of all files/folders saved in a data container, right?
I have a simple data container build FROM scratch, with a binary executable named /bin/echo for starting purposes. Let's call it container '0'
Two containers connect to it to share data - one reads, the other writes. Let's call them 'A' and 'B'. A and B both share /var/www/html through 0, but do not access each other directly. Container B can read files generated by A, which means the data must be present in the data container.
Here is the fig file I use to start the application to demonstrate container connectivity:
mrtg:
  image: foo:5000/mrtg
  environment:
    TERM: xterm
  volumes:
   - /etc/localtime:/etc/localtime:ro
  volumes_from:
   - data
apache:
  image: foo:5000/apache-php
  environment:
    TERM: xterm
  ports:
   - "80:80"
  volumes:
   - /etc/localtime:/etc/localtime:ro
  volumes_from:
   - data
data:
  image: foo:5000/data-mrtg

After running the container, causing data to go into container 0, I have this problem:
$ docker export foo_data_1 > foo.tar
$ tar -tf foo.tar
./
.dockerenv
.dockerinit
bin/
bin/echo
dev/
dev/console
dev/pts/
dev/shm/
etc/
etc/hostname
etc/hosts
etc/mtab
etc/resolv.conf
proc/
sys/
var/
var/www/
var/www/html/
# I should be seeing more, something like this:
# var/www/html/index.html
# var/www/html/dirname
# var/www/html/dirname/somefile
# ...

I only put one file in the container - /bin/echo (and the folder /var/www/html); docker must create the rest upon starting the container. Docker export isn't exporting any of the files or folders stored in /var/www/html. Shouldn't it?
Addendum
#2116 looks like it is the same issue, but it was confirmed possible to export stopped containers. Am I misunderstanding something?

Volumes are not part of a container. When you're creating the data-container and marking the /var/www directory as a volume, docker creates a directory on your host and mounts that inside the data-container (and the containers using volumes-from that container).
You can run docker inspect foo_data_1 to see the properties of the data container (in JSON format), somewhere in there you can find where the data is actually stored.
Running docker export will only export files that are inside the filesystem of the container; and because volumes are not part of that, it won't export those files.
If you want to export the data that's stored in a volume, have a look at the https://github.com/cpuguy83/docker-volumes, which allows you to do this (and many other useful stuff)

That makes sense - I remember reading that somewhere now. It would help to explicitly distinguish containers from volumes in the documentation, especially as it relates to the export/import commands. I know there is a section on backing up volumes in the docs, but it doesn't mention NOT using --export. I wonder how many people aren't backing up their data containers?
Right now I understand --export, but it is still completely unclear how --import would work when extracting the tar containing files on a volume. Would it restore to the volume or the container?

There is an entire article on volumes http://docs.docker.com/userguide/dockervolumes/ and documentation on export and import. If you would like to enhance it however we welcome PRs, I think this issue can be closed tho.

docker import (see the example in the documentation) will create a new image based on the exported container's filesystem.
You can then start a new container from that image using docker run.
The idea behind volumes is to make persistent data independent from the container, so that the data is not destroyed when the container is destroyed (unless explicitly doing docker rm -v container).
I agree there's a lot that can be improved in that area, because volumes themselves (especially if the container they belonged to is deleted) are quite "invisible". See https://github.com/docker/docker/pull/8484
(And yes, I agree this should be closed, because this is not a defect in docker)

I agree, this issue can be closed.
It looks like I misunderstood docker import - I thought it was the complement to docker export, and worked on containers instead of images.
I do, however, think there should be some type of option for exporting the volumes attached to a container. That would make backing up data containers dirt-simple and efficient. Maybe something like docker export --volumes <container>, but that's not for issue #10095.

@jbulchergist I added a PR https://github.com/docker/docker/issues/10104 to make the documentation a bit more clear that volume-data is not included when exporting a container.

Thanks! That will be a great help to many people, I suspect.


Run benchmarks in online editor tests

I was pointing a student to benchmarks as described in
https://exercism.org/docs/tracks/go/tests
The student uses the online editor on exercism.org and asked if it was possible to run benchmarks there.
What do you think?

In a previous call, there was talk on how formatting and benchmarks are really important for some languages, but not as much important in others and having this functionality in the online editor would be great.
For formatting there's already ongoing discussion in https://github.com/exercism/exercism/issues/5986 to add this to the editor.
For benchmarks, the first solution that comes to mind would to make this part of the test runner (for Go, running the benchmarks is a go test command) and the button would just call the test runner with specific flags. But I'm not sure this also makes sense for the other languages.
Another thing to consider is that benchmarks tend to take significantly longer to run than tests, so we might want to separate them from tests and not sure if having separate infrastructure for it would be justifiable. Or if we want to run them on our side at all.
@exercism/maintainers-admin Maybe this could be moved to exercism/exercism?


Relax access to internal properties.

Previously, to help developers, we threw errors when trying to set/get
attributes/properties for “internal” properties. Instead of shouting
about internals, we’re going to take a new tact — silence.
Setting/getting property values for internals will now do nothing.
This has the excellent side-effect of freeing up internal properties to
be named anything since they’re safely name-spaced inside
“host.internal”.
E.g., you can now have an internal property called “title”, which
doesn’t interfere at all with the inherited property “title”, nor the
inherited attribute “title”.
Closes #74.

I did a quick pass, mostly for style — lots of deleted code here! I will admit that the developer errors when accessing internals have helped save me some time once or twice before, mostly when refactoring, but I don't know what I will greatly miss them

Ha, yes, I find myself feeling the same way. I made this comment earlier today in a conversation:

I was super hesitant about doing this because I found it useful to have the framework tell me when I’m trying to access an internal property through the host — however, now that we’re through the migration, I think the costs actually outweigh the benefits.


500 Internal Server Error on json post

So I have an nginx proxy set up as a portal that forwards traffic to different web servers based on domain name. On each web server, I've got another nginx proxy that handles https and then forwards traffic onto the actual web server (which may be running on any number of web servers). I have it set up this way primarily to standardize configuration so that I can maintain servers via saltstack.
Anyway, I've only (currently) want authelia to authenticate traffic that comes through my portal (and thus the open web), not internal, so that's where I have authelia set up. But for at least some of my servers (I haven't done a ton of testing yet to see which are affected by this), authelia appears to break json posts. This is from a login attempt to my TeamPass server:
POST https://pass.mydomain.com/sources/identify.php

Request Headers:

Accept
application/json, text/javascript, */*; q=0.01
Accept-Encoding
gzip, deflate, br
Accept-Language
en-US,en;q=0.5
Content-Length
244
Content-Type
application/x-www-form-urlencoded; charset=UTF-8
Cookie
KEY_PHPSESSID=VTSbqvRSAjLK80z8c3r89Es4U5p9aa4YHB%2FYtiGDmWHoVptY8%2Bg73rtXNtQwkXJQGyRAeXo91qnwu228w%2Ff8ZA
%3D%3D; PHPSESSID=g1dg1u0qfgt9jm065t7sobsj8r; 34bc6dbd03c68ab12651a771f86f6f2904d120be5a1ba72f69=5781fce91aa51c314d15117f341f5cc22e57fd2995a59bb343
; connect.sid=s%3A_gFSXcpzwc09m38qsR184o2C0aue83nG.AJjtJUpXhPXeKp9TRaMa0ipbbVIPmxg8%2Bw78R7iO3NI
Host
pass.mydomain.com
Referer
https://pass.mydomain.com/index.php?page=items
User-Agent
Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0
X-Requested-With
XMLHttpRequest

Post:

data	WwNNmrOw2ll/CxZl/i6KBpvEg1OuUD8bywrS6RsOgtksQVBizwMJTe229dXQwUiTaHQKKhwif8PN1hgBB4n/NiRJyGgHmK0zo3EX0kFi13hO/Q5xLXoTthlTdeu54AuXVXCXZTKmO7uycCEZfbgH2XsIR7G2OEyzbuDxq1ta+8ok6kunf2K7n5QsL5GW7PyMrEutlHkPAK6pn2U=
type	identify_user

Response:

<title>500 Internal Server Error</title>

500 Internal Server Error

nginx/1.12.1

Nginx Error log:
2017/10/08 22:29:53 [error] 18540#18540: *10 upstream timed out (110: Connection timed out) while reading response header from upstream, client: <IP_ADDRESS>, server: pass.mydomain.com, request: "POST /sources/identify.php HTTP/1.1", subrequest: "/auth_verify", upstream: "https://<IP_ADDRESS>:443/verify", host: "pass.mydomain.com", referrer: "https://pass.mydomain.com/index.php?page=items"
2017/10/08 22:29:53 [error] 18540#18540: *10 auth request unexpected status: 504 while sending to client, client: <IP_ADDRESS>, server: pass.mydomain.com, request: "POST /sources/identify.php
HTTP/1.1", host: "pass.mydomain.com", referrer: "https://pass.mydomain.com/index.php?page=items"

I get that result if the authelia configuration is placed on either one of the proxies, but it works fine if I move it to the nginx configuration for the teampass server itself.
Proxy (on teampass server) configuration w/ authelia - doesn't work:
server {
  listen 443;
  server_name pass.mydomain.com;

  resolver <IP_ADDRESS>;
  set $backend "http://pass.mydomain.com:8080";

  ssl on;
  ssl_certificate /etc/nginx/certs/pass.mydomain.com/fullchain.pem;
  ssl_certificate_key /etc/nginx/certs/pass.mydomain.com/privkey.pem;
  ssl_session_cache shared:SSL:10m;
  client_max_body_size 1024m;

  ###authelia
  location /auth_verify {
    internal;
    proxy_set_header  X-Original-URI $request_uri;
    proxy_set_header  X-Real-IP $remote_addr;
    proxy_set_header  Host $http_host;

    proxy_pass        https://authelia.mydomain.com/verify;
  }
  ###

  location / {
    ###authelia
    auth_request /auth_verify;

    auth_request_set $redirect $upstream_http_redirect;
    proxy_set_header Redirect $redirect;

    auth_request_set $user $upstream_http_remote_user;
    proxy_set_header X-Forwarded-User $user;

    auth_request_set $groups $upstream_http_remote_groups;
    proxy_set_header Remote-Groups $groups;

    error_page 401 =302 https://authelia.mydomain.com?redirect=$redirect;
    error_page 403 = https://authelia.mydomain.com/error/403;
    ###

    proxy_pass $backend;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Protocol https;
    proxy_set_header X-Forwarded-Ssl on;

    # re-write redirects to http as to https, example: /home
    proxy_redirect http:// https://;
  }
}
server {
  listen 80 default_server;
  server_name _;
  rewrite ^ https://$host$request_uri? permanent;
}

Teampass nginx configuration - works:
server {
  server_name domain.tld www.domain.tld;
  root /usr/share/webapps/teampass;
  listen 8080;

  ###authelia
  location /auth_verify {
    internal;
    proxy_set_header  X-Original-URI $request_uri;
    proxy_set_header  X-Real-IP $remote_addr;
    proxy_set_header  Host $http_host;

    proxy_pass        https://authelia.mydomain.com/verify;
  }
  ###

  location / {
    ###authelia
    auth_request /auth_verify;

    auth_request_set $redirect $upstream_http_redirect;
    proxy_set_header Redirect $redirect;

    auth_request_set $user $upstream_http_remote_user;
    proxy_set_header X-Forwarded-User $user;

    auth_request_set $groups $upstream_http_remote_groups;
    proxy_set_header Remote-Groups $groups;

    error_page 401 =302 https://authelia.mydomain.com?redirect=$redirect;
    error_page 403 = https://authelia.mydomain.com/error/403;
    ###

    # try to serve file directly, fallback to front controller
    try_files $uri /index.php$is_args$args;
  }

  location ~ \.php$ {
    try_files $uri $document_root$fastcgi_script_name =404;
    fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi.conf;
  }

  error_log /var/log/nginx/teampass_error.log;
  access_log /var/log/nginx/teampass_access.log;
}

I'll keep playing around and see if I get a better idea of what's going on

Hello @masau , you tried to post the same JSON data from to the two layers and one is working and the other is not, correct? Can it be a conflict between headers (overridden by apps while going through the layers)? Authelia is writing Remote-User and Remote-Groups for example.
I think Authelia's logs might help a bit, please set the level to debug.

Hi @masau,
Have you tried with proxy_set_header Content-Length ""; in the /auth_verify  Nginx location block?

From Nginx documentation:

As the request body is discarded for authentication subrequests, you will need to set the proxy_pass_request_body directive to off and also set the Content-Length header to a null string

@clems4ever - It was going through both layers in both cases, the only difference was where I included the authelia configuration. When it was directly in the teampass server block it worked, but when it was in either of the proxies it would not. It was the same data. n4kre's suggestion resolved the problem - do you still want me to set authelia's log level to debug and send you logs?
@n4kre - that worked. I'll add it to my salt configuration and verify that it fixes issues on other servers as well. Thanks

@masau, great you solved it! No need to send the logs anymore. Thanks.
And thank you @n4kre.


doesn't match mention when first thing in a string

given:
@abc @foo xyz

returns
[ ' @foo ', 'foo', index: 4, input: '@abc @foo xyz' ]

should be @abc

I think we should only publish regex libs that have sufficient unit tests.

I think we should only publish regex libs that have sufficient unit tests.

:+1: That includes a lot of tests for false positives.

agreed

should be @abc

It will, you should control this through options.

As here
str.match(mentionsRegex({flags: 'g', startSpace: false, endSpace: false}))
//=> ['@first', '@tunnckoCore', '@face', '@al', '@here', '@last']

Sorry, used the github UI incorrectly when opening that the first time :stuck_out_tongue:
@tunnckoCore That option is broken since it makes it match email domains, etc. I made a PR with an option to fix it.

lol, its flexible. You can control it with different regexp through opts.match ;d
Let me add tests, then will discuss? :) And yea, maybe I should fix the default behaviors.


[AVM Question/Feedback]: Add example for ZIP deploy file deployment

Check for previous/existing GitHub issues

[X] I have checked for previous/existing GitHub issues

Description
Looking at the examples, I'm looking for a example deployment and app settings needed to deploy a ZIP deploy file, ideally with a managed identity and Windows function app.
According to the Microsoft Docs, zip deploy is the recommended deployment for code to function apps.
Having this example for any SDK would be helpful, but .NET 8 isolated is what I am selfishly looking for guidance on!

@craigthackerx :
Thank you for providing this feedback. The module is currently going through some refactoring to algin better to resource module specifications, but I will keep this in mind.


Disable camera view.

Hi. I'm wondering is it possible to disable camera view? I want to draw a node to the real position. As far as I understand the camera view will set up position (x,y) 0,0 to center of view.

To draw the node at the 'real' position, you need first to disable autorescale. Then even if the camera starts its coordinates from the center of the view, this is not the case of the renderer who will assume your coordinates start from the top left corner, as with canvas.


the controls are not hidden in full screen

The bar is not hidden by being in full screen, either desktop or mobile

Set autoHide to true in layoutControls config

thanks, I set it up like this:
controlBar: {
autoHide:           true,
autoHideTimeout:    3,
animated:           true
},


Restore spack default for xpmem

#961 introduces a workaround for package xpmem.
Once the concretizer issues with a new MCH software-stack are resolved we should move to spack defaults
for this package

Will be fixed by #1011


Add shortcut to activate/deactivate keyboard manager

Description of the new feature / enhancement
Add an activation shortcut for Keyboard Manager that would toggle between activate and deactivate.
Scenario when this would be used?
I have a wireless keyboard for my laptop that was designed for macs.  I use keyboard manager to swap a couple of keys to make it more usable for windows.   But when I roam with laptop only, I want to deactivate keyboard manager so that my laptop keys behave normally.    This currently requires right click of powertoys, click settings, navigate to keyboard manager and activate/deactivate.     A shortcut to toggle activation would be very welcome!
Supporting information
No response

This would be an option that I would greatly appreciate!  It looks like the framework is there from other powertoys with an ActivationShortcut configured in settings.


Don't start server if versions.js is missing but versioning is enabled

Motivation
This prevents user to start the server when versions.js is missing but versioning is enabled
#betterengineering
Closes #228 based on https://github.com/facebook/Docusaurus/issues/228#issuecomment-368748690
Related to #297 #369
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan

[X] Start server as normal. versions.js exists when versioning is enabled

cd website
yarn start

[X] Delete versions.js when versioning is enabled (versions.json exist)

cd website
yarn start

@yangshun Great idea. PR updated !
I added error property on env.versioning class.
This will simplify adding extra errors in the future as well.

@yangshun done ! feels great to have a better & cleaner code 😂


add Stefan Hojer to list of supporters

Added in https://github.com/opentffoundation/manifesto/pull/830.


Demo page

There is a misplacement of the corner buttons also in the demo page
https://fabiz.github.io/PeakFinder-API/basicexample_canvas.html
the canvas is too big for the frame and the buttons are partially hidden in the corner

Hi Haldo
Thanks for the error report. I just fixed this issue.
best regards
Fabio

Am 27.08.2024 um 14:01 schrieb haldo98 @.***>:
There is a misplacement of the corner buttons also in the demo page
https://fabiz.github.io/PeakFinder-API/basicexample_canvas.html
the canvas is too big for the frame and the buttons are partially hidden in the corner
—
Reply to this email directly, view it on GitHub https://github.com/Fabiz/PeakFinder-API/issues/15, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJJRBVHIKIULURZT7TWVJLZTRTDJAVCNFSM6AAAAABNF7DGOCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4DSMJUGA4DQOA.
You are receiving this because you are subscribed to this thread.

Fixed issue.


Nessie Improvements

As a prep for #2418:

Extract bootstrapping lakeFS to a composite action
Generate only the necessary code to save time in code generation

@arielshaqed, the code generation is now faster - about 2 minutes instead of 4 minutes

@nopcoder changes environment variables in trino catalog to match the ones in the docker-compose in the same directory - so they are not nessie-specific. Does this make more sense?

@nopcoder, I changed the environment variables in trino catalog to match the ones in the docker-compose in the same directory - so they are not Nessie-specific. Does this make more sense?

Perfect! thanks.


small fix redirect on /gallery instead of sql error

Oupsie.

Codecov Report

Merging #467 into master will not change coverage by %.
The diff coverage is n/a.


[SymbolGraphGen] Include explicitly unnamed parameter names in function signature

This updated the "functionSignature" data to include explicitly unnamed parameter names.
For example, consider this Swift function:
func doSomething(_: Int, external _: Int) {}

Today, SymbolGraphGen emits the following signature information:
"functionSignature": {
  "parameters": [
    {
      "name": "",
      "declarationFragments": [ ... ]
    },
    {
      "name": "external",
      "declarationFragments": [ ... ]
    }
  ]
}

The empty string for the first parameter causes issues for DocC when it tries to associate parameter documentation with the parameter. I could imagine other tools that process documentation would face the similar issues with this information.
With the changes in this PR, SymbolGraphGen would instead emit this the following signature information:
"functionSignature": {
  "parameters": [
    {
      "name": "_",
      "declarationFragments": [ ... ]
    },
    {
      "name": "external",
      "internalName": "_",
      "declarationFragments": [ ... ]
    }
  ]
}

I think this is a clear benefit for the first parameter in the example above (_: Int) because it allows developers to write documentation for it like below and allows tools that process the function signature information to associate that documentation with that parameter.
/// - Parameter _: Some documentation for the unnamed (and unused) parameter.

That said, I'm a bit torn about what's there best way to emit the parameter names for the second parameter.
It might make more sense for the developer to reference that parameter by its argument label (external name) rather than its parameter name (internal name).
Parameter names are generally preferred over arguments labels in Swift documentation because they are unique and because Swift's API design guidelines sometime lead to argument labels that serve as a prepositional phrase, for example:

"with" (starts(with possiblePrefix:))
"at" (remove(at index:))
"for" (sleep(for duration:))
"by" (sorted(by areInIncreasingOrder:)

However, it's allowed to use "" for multiple parameters (as shown above) which removes the uniqueness benefit and "" isn't any more descriptive than "with", "at", "for", or "using" would be.
Resolves rdar://138630917

I think the pattern you have in this PR makes sense. It reflects the data in the symbol graph, and tools like Swift-DocC can key off an underscore in the internalName field to instead use the external name if desired.

@swift-ci Please smoke test


ast-grep: 0.19.3 -> 0.19.4

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/ast-grep/ast-grep/releases.
meta.description for ast-grep is: A fast and polyglot tool for code searching, linting, rewriting at large scale
meta.homepage for ast-grep is: https://ast-grep.github.io/
meta.changelog for ast-grep is: https://github.com/ast-grep/ast-grep/blob/0.19.4/CHANGELOG.md
Updates performed

Rust version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.19.4 with grep in /nix/store/r3yw7srg3xk00sk6rfxzn28jqi0cpw6b-ast-grep-0.19.4
found 0.19.4 in filename of file in /nix/store/r3yw7srg3xk00sk6rfxzn28jqi0cpw6b-ast-grep-0.19.4

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
ast-grep

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/r3yw7srg3xk00sk6rfxzn28jqi0cpw6b-ast-grep-0.19.4 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A ast-grep https://github.com/r-ryantm/nixpkgs/archive/b625731bdddab8baf6c630bead29aab4647d233f.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/b625731bdddab8baf6c630bead29aab4647d233f#ast-grep

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/r3yw7srg3xk00sk6rfxzn28jqi0cpw6b-ast-grep-0.19.4
ls -la /nix/store/r3yw7srg3xk00sk6rfxzn28jqi0cpw6b-ast-grep-0.19.4/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package built:

ast-grep

Maintainer pings
cc @montchr @Lord-Valen @cafkafk for testing.

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

1 package built:

ast-grep

@NixOS/nixpkgs-merge-bot merge


Explicitly import index.js

Because in my tests node cries around (heult rum):
  code: 'ERR_UNSUPPORTED_DIR_IMPORT',

Oha, I'm a bit surprised /index.js would be necessary and make a difference, but probably can do. Not how I would expect it to import.

Have to take a look why everything gets resorted. Probably missing in the script to have determinism in the order if icons.

Still looking into this, since fixing it to index.js would exclude index.esm.js. I'm wondering if this could lead to new issues. Or if it is fixed, if it should actually be the index.esm.js version.

Just looking at this. Didn't see the notification, sorry.
--experimental-specifier-resolution=node  is unfortunately already deprecated again.
I think yes, we should try with index.esm.js and I will try that in my branch now.

I don't know anymore:
SyntaxError: Named export 'BsAlarm' not found. The requested module 'react-icons/bs/index.esm.js' is a CommonJS module, which may not support all module.exports as named exports.

And then I get this

So, index.esm.js didn't work? Can you share details about the test runner / setup?
I mean we can go for commonjs. I'm just a bit afraid there is chance it will break regular projects.

I think I'm hitting this:
https://github.com/vercel/next.js/issues/39375


Design a creative logo for this website

Design something like the above image.
Also, add a catchy desi slogan.

@QAZIMAAZARSHAD i think you should increase the level of this issue to level2 at least because getting approval over designed logo is really hectic task i am expecting the designing logo will involve many iterations from contributor side.

@QAZIMAAZARSHAD i think you should increase the level of this issue to level2 at least because getting approval over designed logo is really hectic task i am expecting the designing logo will involve many iterations from contributor side.

I have labeled it as zero because there are many logo maker websites and apps, and it takes just a few minutes to create any design.
And it cannot be determined whether the contributor has used an app or has put in efforts to completely design it using photoshop or illustrator.

Hey, Can I Work On This Issue Under LGMSoC'21?

@skpandey885 GFI 👍

Thanks For Assigning! I Will Soon Make The Changes And Update You!

Hey! Can You Tell Me The Following Things-

What should Be The name of The logo I mean What Should Be Written On it? "Adhaar"? Or Something Related To Vote!!!
I have To Send The Logo Here? Because I Don't See Any Place In the website To fit In The logo!
@QAZIMAAZARSHAD  Help Me Sir!

Name - Voters Registration Portal
You can also add any catchy desi slogan
And show the logo here first.
For PR, create a logo folder in the images folder and just add the logo file there.

@QAZIMAAZARSHAD i think we should only involve the initials of project name to the logo

Okk, try both initials and full name, we'll accept the one which looks good.

@QAZIMAAZARSHAD Sir! How's This?

@skpandey885 it would be good if you can present 2-3 logos so that we can normalise parameters for best logo selection.

@QAZIMAAZARSHAD Sir! How's This?

Cool.

@skpandey885 it would be good if you can present 2-3 logos so that we can normalise parameters for best logo selection.

@skpandey885 if you have any more ideas gon ahead.

@nlok5923 @QAZIMAAZARSHAD  So We Are Finalizing This One Or You Want To See More?

@nlok5923 @QAZIMAAZARSHAD So We Are Finalizing This One Or You Want To See More?

@skpandey885 if you have any more ideas go ahead.

Ok!

So, I Have Made These Logos! Click On The Links:
https://mail.google.com/mail/u/0?ui=2&ik=c74cea5476&attid=0.1&permmsgid=msg-a:r-3885467505317949018&th=17a5ff8dad14f274&view=att&disp=safe&realattid=17a5ff796faccd830e71
https://mail.google.com/mail/u/0?ui=2&ik=c74cea5476&attid=0.3&permmsgid=msg-a:r-3885467505317949018&th=17a5ff8dad14f274&view=att&disp=safe&realattid=17a5ff8c85fb2943dd93
https://mail.google.com/mail/u/0?ui=2&ik=c74cea5476&attid=0.2&permmsgid=msg-a:r-3885467505317949018&th=17a5ff8dad14f274&view=att&disp=safe&realattid=17a5ff7972e8a21481e2

Great work @skpandey885.
Now you can make PR.
Just create a logo folder in the Images folder and these 3 files in the logo folder.

@nlok5923 and @skpandey885 one of these will be used on the website, which one you suggest?

the middle one looks good to me.

I Think the last One Is good!  The One With "Apka Hak Apki Taakat"


1 bits compression

Can we add some numbers of achieved compression to the README?
Also, some estimates on the quality and possible use would be nice; i thought you checked if you could identify an FRB or pulsar in the 1bit data? Can we even add some images?

I've added some notes on the compression and intended data use, as well as an image.
The image shows up rotated on on github, not sure how to fix that.


Refactor {module}/mod.rs to {module}.rs

Since, from rust 2018 mod.rs is no longer required, the file structure can be changed. Pls add your opinion.

{module}/mod.rs encapsulates the module hierarchically, keeping all of it on the same level (directory/folder/package/whatever). {module}.rs smears it across at least two levels. Doesn't matter if the file contains actual code only re-exports.

Yeah my preference is to keep it as-is to keep it all at the same level.
My real preference is to have implicit mod.rs and directly export public symbols from each file in a folder. But sadly rust chose to support every option but my preference 😅

mod.rs is annoying. Spreading the module across two directories without mod.rs is also annoying.  At least VS Code postfixes (and IntelliJ prefixes) file tabs with the parent directory when the file name is the same -- that helps somewhat in the mod.rs case.  Not so long ago I remember just having a sea of bare mod.rs files.
I'd love to see a {module}/{module}.rs option in Rust!  Best of both worlds, IMO.

My real preference is to have implicit mod.rs and directly export public symbols from each file in a folder. But sadly rust chose to support every option but my preference

The following is similar (not implicit though) and is my favorite option for module organization of smaller crates. This is especially nice when a module_name.rs or module_name/mod.rs creates more file clutter than its worth only to export some items.
src/
- lib.rs
- foo/
   - a.rs
   - b.rs
- bar/
  - c.rs
  - d.rs

// lib.rs

// no need for foo.rs or foo/mod.rs
mod foo {
    pub mod a;
    pub mod b;
}

// keep the internal modules private
// and place all public items in bar
mod bar {
    mod c;
    pub use c::*;
    mod d;
    pub use d::*;
}

Whoa hold on that sort of changes everything. I didn't know we could do that :)

Closing this issue since there are many ways to organize files in Rust. Feel free to add your way of organizing files that might be helpfult to others


[Support] Integrate with Material2's autocomplete

I tried to integrate this lib with MdAutocomplete component:
<md-autocomplete #select="mdAutocomplete">
  <virtual-scroll [items]="items$ | async" (update)="viewPortItems = $event">
    <md-option *ngFor="let item of viewPortItems" [value]="item">
      {{item}}
    </md-option>
  </virtual-scroll>
</md-autocomplete>

@ViewChild('select') auto: MdAutocomplete;

items$ | async got resolved properly,  but this.auto.options.length is always 0 and thus the autocomplete panel cannot be opened
Anyone successfully integrated with mdAutocomplet?

Same problem...

If anyone is able to get this working, please submit a pull request & I'll happily merge it.
My guess is you need to give a fixed width/height to virtual-scroll via css or inline style. But I haven't made any attempt to troubleshoot this.

There's a chance this is working now, because virtual-scroll now monitors for resize events. I'm not certain that's the cause of your issue, but it's worth checking. Let me know if you're still having this issue. Thanks.

Closing this since I haven't received a response from the original poster. Please re-open if you continue to experience this issue.

Material2 just released its virtual-repeat. That should be good enough for now.


Review Chapter 1 of Algebra by Artin

Review Chapter 1 of Algebra by Artin

practice inductive and contradicting proofs.
sign of permutation matrices seems to relate to the LHS: sign(P) = det(P) = +/- 1

1.7 is enough for induction

show that x/y + y/x > 2


Connect MQTT with client certificate without URL x509 certificate (IDFGH-7498)

Develop kit: ESP32-CAM
IDE: VScode IDF v4.4
OS: windows
Problem Description
Hi,
I like to reduce the time establish connection to Azure.
I have the URL x509 certificate, client certificate and key.
I configure the structure "esp_mqtt_client_config_t" for setup the connection.
Can I ignore the URL certificate and use only the client certificate? if yes, how I do it?
Azure have also a shared key instead of the certification, how I can use it?
Can you please explain to me what is the key use for?

Hi @Eran125,
The certificate from the broker is necessary for security verification of the broker you are connecting to. If you don't configure it, your application can't verify the connection and your system will be vulnerable.
Regarding client credentials, you can use the password field with the shared key, if I remember correctly, please refer to AWS security documentation.
The client key is to be used together with client certificate for mutual authentication using TLS.


Add pyls-black to README

I recently wrote a Python Language Server plugin for Black. In the README you mentioned you were working on a Atom/Nuclide plugin so this may be of interest. To use it from Atom you'll need to install the atom-ide-ui and ide-python packages.
It would be great if pyls-black could be added to the README so other people can try it out!

Pull Request Test Coverage Report for Build 558

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 96.264%

Totals

Change from base Build 557:
0.0%

Covered Lines:
2577

Relevant Lines:
2677

💛  - Coveralls

Thanks! ✨ 🍰 ✨


Access configuration is too complicated

I want to try to configure some roles, show only the specified some Dashboards, but I found the permission configuration is too complicated. Can provide some simple way to realize configuration? A lot of editing is only need administrator, users need only observe the completely Dashboard, do anyone can help me?

I totally agreed that the security control is too complex to use. There are several problems with the role based permission models.

if you have datasource access of a bunch of tables named Perm_A, it allows you to view dashboard A if its datasource is a subset of Perm_A's datasource. The tricky thing is that if by coincident, dashboard B 's datasource also a subset of Perm_A, then it will cause problem if dashboard B is not supposed to be accessed by anyone.

Datasource access is only controlled over table. Why datasource access control is not available on the level of database, schema or catalog? If you want to control a department's datasource access, you have to list all of the tables that belongs to the specific department. That's unreasonable. If a company has hundreds of departments and thousands of databases, it will require many superset administrator to manage the permission.

The permission models does not support deny. In some use case, if you don't have one permission, you will be denied.

I did some hack things to avoid the complex permission management. I use scripts to automatically add one invisible slice to dashboard. Each slice use different datasource. Then it can solve problem 1.
Scripts will be scheduled once an hour to collect all the dashboard's table permissions and create a grouped roles. The final things for admins to do is add the grouped role to specific user.

Hi All,
I am new to superset and i have this requirement where I have four users with similar role(let's say Alpha) and i want to create dashboards which can be viewed by two alpha user(user1 and user2) but not by other  two(user3 and user4) .
Real use case: users with similar role but one or two attributes different. Suppose i have sales manager for two different geographical region and i want to create two separate dashboards corresponding to each region and each sales manager should be able to see dashboard of his region only not of others.
If anyone has worked on similar requirements, please let me know how can this be achieved ?
Thanks in advance, any leads in this regard will be appreciated.

Hi All,
I am new to superset and i have this requirement where I have four users with similar role(let's say Alpha) and i want to create dashboards which can be viewed by two alpha user(user1 and user2) but not by other two(user3 and user4) .
Real use case: users with similar role but one or two attributes different. Suppose i have sales manager for two different geographical region and i want to create two separate dashboards corresponding to each region and each sales manager should be able to see dashboard of his region only not of others.
If anyone has worked on similar requirements, please let me know how can this be achieved ?
Thanks in advance, any leads in this regard will be appreciated.

https://superset.incubator.apache.org/security.html?highlight=permission#restricting-access-to-a-subset-of-a-particular-table


Refresh indicator

Adds a RefreshIndicator widget that supports the Material "swipe to refresh" idiom.
Added an over-scroll gallery demo that shows this widget and the existing OverscrollIndicator.
This initial version has some limitations:

It always appears at the top and bottom of its scrollable. This should be configurable and it should default to just appearing at the top.
During the drag phase, the refresh indicator should only animate when the drag is moving.
While the refresh callback is running, the refresh indicator's arrowhead shouldn't appear.
It should be possible for the refresh callback to update the indicator with its actual progress.
The refresh indicator should disappear "when the user navigates away from the refreshing content".
Currently the duration of overscrolls is extended because all drags end in a fling. Both OverscrollIndicator and RefreshIndicator need to cause the Scrollable's ScrollBehavior to set overscroll fling velocities to zero.

See https://www.google.com/design/spec/patterns/swipe-to-refresh.html

This needs tests.

LGTM with the above comments addressed.


Vulnerability fixes for kserve and model images

upgrades following dockerfiles to python 3.9:

Aiffairness
Alibiexplainer
Artexplainer
custom model
custom transformer
lgb
paddle
pmml
sklearn
xgb
storage-initializer

Updates ray version to 1.10.0 thereby fixing a log4j issue

What this PR does / why we need it:
Upgrades base image and would fix most security vulnerabilities.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #2190
Type of changes
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)

Special notes for your reviewer:
Release note:

NONE

/lgtm
/approve


Dcl

Looks good but should not appear on RStudio, you should wrap your js in a condition that check if we are on the viewer_pane


new Technique: for device “Synchrotron”

Dear all,
Could you please register relevant technique(s) for the device “Synchrotron” in KG?

@tgbugs @UlrikeS91 we should pick this up again.
@ucbpclw would you support us in registering these techniques for the openMINDS terminology and the InterLex ontology?

Him happy to help, I am a little lost in understanding how the openMINDS and InterLex ontology fit together, and under what context the "Synchrotron" is to be used.
The synchrotron in our context is a method to accelerate electrons in order to produce X-rays, those X-rays are used in a vast number of ways. There are beamlines at the synchrotrons, each of which uses the X-rays produced by the main accelerator in very different ways, each beamline can be considered an "instrument" and there are many techniques which these instruments cover. In the context of the openMINDS the use we have been developing is a type of
X-ray Phase-contrast tomography.
If you give me a little more context I can probably make a better suggestion. I can also point you to the discussion ongoing on BIDS at the moment to incorporate HiP-CT as a form of X-ray Phase-contrast tomography into their meta data ontology... https://github.com/bids-standard/bids-specification/issues/1646


implement automod endpoints

implement automod; https://discord.com/developers/docs/change-log#auto-moderation

implemented in branch: automod


functionCall arguments formated in Json only

Description
I am trying to call a method (deploy_code) on a smart contract (aurora) deployed on Near.
Based on docs : https://github.com/aurora-is-near/aurora-contracts-sdk/blob/main/docs/AuroraFromNear.md
the method takes as input the raw EVM bytecode. The issue is that near-api-js formats the arguments in Json format and there is no way of creating a functionCall with the argument as the raw EVM bytecode of the smart contract that will be deployed on Aurora (I might missunderstood and might be wrong)
@pivortex @Karkunow

My understanding is that you want to interact with an Aurora smart contract from a NEAR smart contract.
You are using near-api-js, which is used to interact with the chain offchain.
When writing smart contract in js you use near-sdk-js
To interact from contract to contract you need to use a [cross contract call](https://docs.near.org/develop/contracts/crosscontract#:~:text=Cross-contract calls work by,contract with the result ( Promise.)

I want to intreact with Aurora smart contract from a Near account (not from a smart contract)

Here is an example.
https://testnet.nearblocks.io/txns/BXXkEMBBomKrGL4PSghtgvPmzukc9sKDzB5Mr2etfxuw#execution
Deploys a simple contract with a 256-bit counter. You can see the argument to deploy_code is exactly the EVM bytecode used to deploy the contract:
608060405234801561000f575f80fd5b506101448061001d5f395ff3fe608060405234801561000f575f80fd5b5060043610610034575f3560e01c806313bdfacd14610038578063371303c014610056575b5f80fd5b610040610060565b60405161004d9190610095565b60405180910390f35b61005e610068565b005b5f8054905090565b60015f5461007691906100db565b5f81905550565b5f819050919050565b61008f8161007d565b82525050565b5f6020820190506100a85f830184610086565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6100e58261007d565b91506100f08361007d565b9250828201905080821115610108576101076100ae565b5b9291505056fea2646970667358221220f45bb480146b501c623aa53ee4dc5aca4a2729317ecb9a45c768185160c1284064736f6c63430008160033

Note the return value is a borsh-encoded struct containing information about the execution (logs, gas used, return value, etc). The definition of this struct is here (https://github.com/aurora-is-near/aurora-engine/blob/develop/engine-types/src/parameters/engine.rs#L232).
The return value included in the SubmitResult contains the address where the contract was deployed. In my case it was deployed to 0x202ef3618820deadca5017cc585d489c585cc2e3.
The contract has two methods: print() and inc(), which return the current value of the counter and increment it by 1, respectively.
You can see I call inc() in https://testnet.nearblocks.io/txns/DqrGbWFZTXFsGoLowXXiyXzBCtNEom76LymD6nZMqrj4#execution
In that transaction, the argument is a borsh-encoded struct that says what contract to call and what input to pass. The definition of that struct is here (https://github.com/aurora-is-near/aurora-engine/blob/develop/engine-types/src/parameters/engine.rs#L277). The return value is a SubmitResult, same as for deploy_code.
Here is a transaction where I call print. This is only for illustration purposes -- since this function does not cause any state change it should be done as a view call instead of an actual transaction. https://testnet.nearblocks.io/txns/DGDu9B4kjoMbx3iSTRD2R4WUyajDH8V4AsLEcfxZCPt6#execution
You can see the value contained in the SubmitResult returned from the call is 0x0000000000000000000000000000000000000000000000000000000000000001 because I called inc one time before the print

Here is source code of the Counter contract:
pragma solidity >=0.6.12 <0.9.0;

contract Counter {
  uint256 value;

  function print() public view returns (uint256) {
    return value;
  }

  function inc() public {
    value = value + 1;
  }
}```

Thank you @Karkunow
I should have clarified, though. An example of the actual call  (to deploy) that is being made would be good (in near-api-js or whatever it is using to make the call)

@PiVortex @stefan-b10
Here is an example of call from near-cli:
near call aurora aurora deploy_code --accountId ikaurora.testnet --base64 --args<PHONE_NUMBER>34801561000f575f80fd5b506101448061001d5f395ff3fe608060405234801561000f575f80fd5b5060043610610034575f3560e01c806313bdfacd14610038578063371303c014610056575b5f80fd5b610040610060565b60405161004d9190610095565b60405180910390f35b61005e610068565b005b5f8054905090565b60015f5461007691906100db565b5f81905550565b5f819050919050565b61008f8161007d565b82525050565b5f6020820190506100a85f830184610086565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6100e58261007d565b91506100f08361007d565b9250828201905080821115610108576101076100ae565b5b9291505056fea2646970667358221220f45bb480146b501c623aa53ee4dc5aca4a2729317ecb9a45c768185160c1284064736f6c63430008160033
@PiVortex, as you can see it has an option of --base64 --args.

Sorry, just checked the transactions and they are all failing, because base64 is ruining the HEX Bytecode from EVM there.
And we just need to pass it as args to the contract method.
So we actually require raw args format to be accesible.

Ok, I've figured it our finally, just needed to re-encode bytecode into base64 format.
The correct CLI command is:
near call aurora deploy_code --accountId ikaurora.testnet --base64 --args YIBgQFI0gBVhAA9XX4D9W1BhAUSAYQAdXzlf8/5ggGBAUjSAFWEAD1dfgP1bUGAENhBhADRXXzVg4ByAYxO9+s0UYQA4V4BjNxMDwBRhAFZXW1+A/VthAEBhAGBWW2BAUWEATZGQYQCVVltgQFGAkQOQ81thAF5hAGhWWwBbX4BUkFCQVltgAV9UYQB2kZBhANtWW1+BkFVQVltfgZBQkZBQVlthAI+BYQB9VluCUlBQVltfYCCCAZBQYQCoX4MBhGEAhlZbkpFQUFZbf05Ie3EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAX1JgEWAEUmAkX/1bX2EA5YJhAH1WW5FQYQDwg2EAfVZbklCCggGQUICCERVhAQhXYQEHYQCuVltbkpFQUFb+omRpcGZzWCISIPRbtIAUa1AcYjqlPuTcWspKJykxfsuaRcdoGFFgwShAZHNvbGNDAAgWADM=```

I get the positive result from it :)
Here is the tx:
https://explorer.testnet.near.org/transactions/Em3MsBtXdznLsCokyFEcAs67Ke3a5xZp5nWqnfwAy7wo

Here is a bit more explanation of what we need (or @stefan-b10 needs).
We have a contract module in near-api-js which uses near-abi module.
And the problem is that it uses only JSON encoded args.
But we want him to be able to also encode them in Base64 or Borsch:
https://github.com/near/near-abi-js/blob/main/src/index.ts#L93

Hm, I realised that Borsh serialization is not correct or good enough, because the schema still enforces us to have an argname and we do not want to have the argument names at all.
We just want to encode them into one big base64 or borsh chunk and send with a call to contract.

Possible to encode EVM bytecode as args_base64 and use RPC? https://docs.near.org/api/rpc/contracts#call-a-contract-function

Possible to encode EVM bytecode as args_base64 and use RPC? https://docs.near.org/api/rpc/contracts#call-a-contract-function

This is for calling a contract function only as view

@PiVortex, yeah, do you know how we can call it with "execution"? :)
I guess the caller key should be attached to it in this case.

@Karkunow You were very close, you could have just looked up near-cli source code and find how it uses near-api-js:
https://github.com/near/near-cli/blob/148d8eae7f4f4f9326825f1e2bf21b21f52783ef/commands/call.js#L53-L63

@frol, oh great, thanks! :)
@stefan-b10, does it make it clear for you?

@stefan-b10 you wanted to use RPC directly or near-api-js?
Here is the docs for borsh serializing in javascript https://github.com/near/borsh-js
I believe this is also base 64

@stefan-b10 have you resolved your issues?

@stefan-b10 have you resolved your issues?

Not yet. Cannot figure out how to Borsh serialize the argumest. Transaction result a error  "ExecutionError": "Smart contract panicked: ERR_BORSH_DESERIALIZE"

@stefan-b10 did you try serializing like in this example?
https://github.com/near/borsh-js?tab=readme-ov-file#examples

@stefan-b10 did you try serializing like in this example? https://github.com/near/borsh-js?tab=readme-ov-file#examples

Have tried a few ways but with no success. For FunctionCallArgsV2 shouldn`t this be the schema?
const schema = {
    struct: {
      contract: "string",
      input: { array: { type: "u8" } },
    },
  };

@frol can you please help me figure out how it should be serialized?

@stefan-b10 where are you seeing the definition for V1? Have you tried adding the value for FunctionCallArgsV2 given by
#[derive(BorshSerialize, BorshDeserialize, Debug, PartialEq, Eq, Clone)]
pub struct FunctionCallArgsV2 {
    pub contract: Address,
    /// Wei compatible Borsh-encoded value field to attach an ETH balance to the transaction
    pub value: WeiU256,
    pub input: Vec<u8>,
}

@stefan-b10 where are you seeing the definition for V1? Have you tried adding the value for FunctionCallArgsV2 given by
#[derive(BorshSerialize, BorshDeserialize, Debug, PartialEq, Eq, Clone)]
pub struct FunctionCallArgsV2 {
    pub contract: Address,
    /// Wei compatible Borsh-encoded value field to attach an ETH balance to the transaction
    pub value: WeiU256,
    pub input: Vec<u8>,
}

Here you can find FunctionCallArgsV1
https://github.com/aurora-is-near/aurora-engine/blob/develop/engine-types/src/parameters/engine.rs#L277
Was trying to call just a view function, but I have tried with FunctionCallArgsV2 as well and got the same result

@stefan-b10 Please, create a StackOverflow question with nearprotocol tag with a clear minimum reproducible example and your expectations communicated there. The original issue is resolved as far as I can tell (please, close it), and the next question is not clear which makes it hard to help you.

@stefan-b10, maybe try doing an issue in the [borsh-js](https://github.com/near/borsh-js) repo?


Desktop Modeler deployment via REST API

Problem you would like to solve
Setting up GRPC/ HTTP2 in company networks through firewalls, load balancers and such sometimes causes problems with customers.
Proposed solution
Use the Deploy Resource endpoint of the new Camunda 8 REST API to deploy process models, forms and DMN.
Alternatives considered
Use Postman to deploy resources or switch to the Webmodeler, but some Devs like the Desktop Modeler for quick testing.
Additional context
SUPPORT-24028
Related to https://github.com/camunda/camunda-modeler/issues/4109

Support issue of one affected customer: https://jira.camunda.com/browse/SUPPORT-24028

I think this one is worth discussing. However, it's not a simple switch because we also want to support Camunda versions with gRPC API only.

@barmac The compatibility depends on the platform version. As each diagram has a platform version, the deployment could be controlled by this:

8.5 => use rest

< 8.6 => use grpc

The Java client seems to transparently choose between REST or GRPC based on what is supported. You can assume it just works. I'd like to understand if the JS client operates in a similar way, as that that would help us to integrate things, and support both pre-REST API and post-GRPC scenarios.
Scenarios

(Camunda >= 8.7) We (Camunda) make it simple for a customer to not expose GRPC, and customer decides to enable REST only
(Camunda <= 8.5) Older Camunda versions support GRPC only

To date the JS SDK does not seem to transparently handle this, we need to choose explicitly between GRPC and REST clients. Going forward this means additional work for anyone working with the SDK in mixed setups, including this application.

Java client does not fully transparently handle the difference, too, so work has to be done by users (ref).


basic react.js app with shared module dependency (as commonjs)

Hello,
This PR would add a React.js application to display one RSS feed (screenshot: media/web.png)
I have done that because I think native JS UI is still more appealing to web developers.
That being said we should be able to benefit from code sharing for business logic, validation rules, data acces, persistency logic and so on ..
I don't know if this would be of interest to you..
It is probably light years from being mergeable but, if you get a chance to review I would love some feedbacks as they would probably teach me things I don't know.
Basically I added a jsMain source set to the module.
Then I added a Kotlin/JS module to the project.
On top of that I used create-react-app to create a simple react.js application (webApp/app).
The shared module is installed with NPM / compiled with webpack (exported as commonjs using Kotlin/JS IR compiler)
Networking in jsMain with Ktor
internal fun jsHttpClient(withLog: Boolean) = HttpClient(Js) // ..

XML parsing is done in the jsMain with DOMParser
internal class JsFeedParser : FeedParser {
    override suspend fun parse(sourceUrl: String, xml: String, isDefault: Boolean): Feed {
        val parser = DOMParser()
        val feed = parser.parseFromString(xml, "text/xml")
        // ...
    }
}

Then I added a function to create the reader for JS as function extensions seem not to be supported yet.
fun createRssReader(withLog: Boolean) = RssReader(
    FeedLoader(
        jsHttpClient(withLog),
        JsFeedParser()
    ),
    FeedStorage(
        JsSettings(),
        Json {
            ignoreUnknownKeys = true
            isLenient = true
            encodeDefaults = false
        }
    )
).also {
    if (withLog) Napier.base(DebugAntilog())
}

Initialize reader and store with Koin (jsMain)
@ExperimentalJsExport
fun initKoin() {
    val deps = module {
        single { createRssReader(true) }
        single { FeedStore(get()) }
    }

    startKoin {
        modules(deps)
    }
}

A view model object in the Kotlin/JS module, mainly because sealed classed representing actions are not exportable to JS. Also used to init the Koin context.
@ExperimentalJsExport
@JsExport
object RssReaderJsViewModel : KoinComponent {
    private val mainScope = MainScope()
    private var store : FeedStore

    init {
        initKoin()
        store = get()
    }

    @Suppress("unused")
    fun cancel() {
        mainScope.cancel()
    }

    @Suppress("unused")
    fun refreshFeeds() {
        store.dispatch(FeedAction.Refresh(true))
    }

    @Suppress("unused")
    fun observeStore(callback: (state: FeedState) -> Unit) {
        mainScope.launch {
            store.observeState().collect {
                callback(it)
            }
        }
    }
}

Import commonjs module in React app
import SharedRssRead from 'RssReader-shared'

Expose the state with React Context API
const RssFeedContext = createContext()
const useRssFeedContext = () => useContext(RssFeedContext)

Bind to component lifecycle
useEffect(() => {
    viewModel.observeStore(onStateUpdate)
    viewModel.refreshFeeds()
    return () => viewModel.cancel()
  }, [viewModel])

Use in UI component
const { loading, posts } = useRssFeedContext();

Thank you for providing this project anyway :)
I am a redux fan !
Kind regards

Oh! Thank you for web part! I will review asap :)

I can't start web project:
yarn run v1.22.17
$ react-scripts start
node:internal/modules/cjs/loader:488
      throw e;
      ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /Users/.../kmm-production-sample/webApp/node_modules/postcss-safe-parser/node_modules/postcss/package.json
    at new NodeError (node:internal/errors:371:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:416:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:669:3)
    at resolveExports (node:internal/modules/cjs/loader:482:36)
    at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/.../kmm-production-sample/webApp/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

Node.js v17.0.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I can't start web project:
yarn run v1.22.17
$ react-scripts start
node:internal/modules/cjs/loader:488
      throw e;
      ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /Users/.../kmm-production-sample/webApp/node_modules/postcss-safe-parser/node_modules/postcss/package.json
    at new NodeError (node:internal/errors:371:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:416:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:669:3)
    at resolveExports (node:internal/modules/cjs/loader:482:36)
    at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/.../kmm-production-sample/webApp/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

Node.js v17.0.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Ouch this seems related to Node version and dependency package
https://github.com/facebook/create-react-app/issues/11565
You might have a very recent version of Node.
It works for me on Node v16.0.0
Would you be able to try that ?
rm -rf node_modules && \
rm yarn.lock && \
yarn && \
yarn start

yarn
install all dependencies from npm registry + compile and install shared module
yarn start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
yarn run compile
Compiles the MPP shared module, install it and start app.
Run this command to appy changes made to the shared module inside the JS app.
More commands in webApp/README.md

Shared code looks OK but I would like to have more shiny Web UI :)

it is RSS feed from here: https://vas3k.ru/rss/
It would be great if you used Compose for Web... 🥳
https://www.jetbrains.com/lp/compose-mpp/

Do you know if there is a spec for RSS ?
It looks like every one of them has its own way of embedding the content.
What do you think about this :

I finish / clean up the React UI
Then I start a new module with Compose for Web (new PR)

This would show even more ways of integrating KMM.
Would that be ok ?
Or you'd rather get rid of the React.js client app ?
I think using JS is still more appealing for a lot of web developers and this could be an enabler for KMM adoption in production projects.

https://www.rssboard.org/rss-specification
Yes, it would be awesome to finish React UI and add Compose variant too 👍
(btw, I think to try create Desktop App)

FYI: https://github.com/Kotlin/kmm-production-sample/tree/shared-compose
just run ./gradlew :desktopApp:run

merged to master!

merged to master!

I have been away for a while, sorry