[FEATURE REQUEST] authentication methods

hi, nice work on this, but can we add authentication to it?
please tell me if it is possible using the other frameworks such as flask.
thanks

Can we add authentication to it?

Basic authentication is simple in PyWebIO:
from pywebio.input import *
from pywebio.output import *
import pywebio

def main():
    password = input("Password", type=PASSWORD)
    if password != 'secret':
        toast('Wrong password!', color='error')
        return

    # Only verified users can reach here
    put_text('Some privileged operations.')

if __name__ == '__main__':
    pywebio.start_server(main, port=8080)

One drawback of the above code is that the user needs to enter a password each time when visits the page. If you want the user to be able to log in directly for a period of time after a successful authentication, you can use a mechanism similar to cookie to generate a token:
from tornado.web import create_signed_value, decode_signed_value

import pywebio
from pywebio.input import *
from pywebio.output import *
from pywebio.session import *

SECRET = "encryption salt value"

def main():
    token = eval_js("localStorage.getItem(key)", key='token')  # get token from user's web browser
    if not token or not decode_signed_value(SECRET, 'token', token, max_age_days=7):  # no token or token validation failed
        password = input("Password", type=PASSWORD)
        if password == 'secret':
            signed = create_signed_value(SECRET, 'token', 'user_id').decode("utf-8")
            run_js("localStorage.setItem(key, value)", key='token', value=signed)  # set token to user's web browser
        else:
            toast('Wrong password!', color='error')
            return

    # Only verified users can reach here
    put_text('Some privileged operations.')

if __name__ == '__main__':
    pywebio.start_server(main, port=8080)

The above code implements a persistent login solution that only supports single account.

If it is possible using the other frameworks such as flask?

Yes, you can.
On the one hand, you can use other web frameworks as the backend server of PyWebIO applications. On the other hand, you can integrate a PyWebIO application into an existing web project written using a web framework.
PyWebIO currently supports Flask, Django, Tornado, aiohttp framework.
For more content, please refer to:

https://pywebio.readthedocs.io/en/latest/guide.html#integration-with-web-framework
https://pywebio.readthedocs.io/en/latest/platform.html

how would i go about adding multi-user auth?
I tried looking up tutorials and docs but am still hella confused
really appreciate your help :)

Here is an example for multi-user auth:
from tornado.web import create_signed_value, decode_signed_value

import pywebio
from pywebio.input import *
from pywebio.output import *
from pywebio.session import *

def check_user(username, password):
    # Implement your user verification mechanism
    # You can verify users by querying the database
    ...
    return True or False

def basic_auth():
    """Basic auth

    The user needs to enter a password each time when visits the page.
    """
    user = input_group('Login', [
        input("Username", name='username'),
        input("Password", type=PASSWORD, name='password'),
    ])
    if not check_user(user['username'], user['password']):
        toast('Wrong password!', color='error')
        return

    # Only verified users can reach here
    put_text('hello: %s' % user['username'])

SECRET = "encryption salt value"

def remember_me():
    """Persistence auth

    Use a to signed token mechanism to generate a token store in user's web browser
    """
    token = eval_js("localStorage.getItem(key)", key='token')  # get token from user's web browser
    username = decode_signed_value(SECRET, 'token', token, max_age_days=7)  # try to decrypt the username from the token
    if not token or not username:  # no token or token validation failed
        user = input_group('Login', [
            input("Username", name='username'),
            input("Password", type=PASSWORD, name='password'),
        ])
        username = user['username']
        if check_user(username, user['password']):
            signed = create_signed_value(SECRET, 'token', user['username']).decode("utf-8")  # encrypt username to token
            run_js("localStorage.setItem(key, value)", key='token', value=signed)  # set token to user's web browser
        else:
            toast('Wrong password!', color='error')
            return

    # Only verified users can reach here
    put_text('hello: %s' % username)

if __name__ == '__main__':
    pywebio.start_server([basic_auth, remember_me], port=8080)

You need implement your user verification function check_user

Thanks alot! This made the entire concept really easy to understand!

@wang0618 authentication examples above are awesome, could you put these examples into the official documentation?


Rewards

I'd love to give this code a test spin for at least a day but before I - or anyone else - do that, we need to define the numbers (see this) comment, to test it on real values and approve those values for deployment. We don't want to come up with them when working on deployment scripts.

Looked at the 4 last commits made by @pdyraga Lgtm

@benlongstaff Thanks for the review, we'll address all your comments in a separate PR.


Issues with -zero-initialize when compiling to GLSL

I've been testing the new -zero-initialize feature in Slang (2024.9.1) and I have a couple findings that it believe are erroneous.
Here are the slang.c flags used in my experiments:
-entry main -target glsl -matrix-layout-column-major -line-directive-mode none -Wno-30081 -zero-initialize
Group shared memory is also being zero initialized, and unsafely.
Consider the following compute shader in slang:
groupshared uint samplePixel[16 * 8];
[shader("compute")]
[numthreads(16, 8, 1)]
void main(uint2 thread_id : SV_DispatchThreadID, uint2 localIndex : SV_GroupThreadID)
{
  samplePixel[localIndex.y * 16 + localIndex.x] = 0xffffffff;
  GroupMemoryBarrierWithGroupSync();
  ...
}

This is being translated to the following GLSL:
shared uint  samplePixel_0[128];
layout(local_size_x = 16, local_size_y = 8, local_size_z = 1) in;
void main()
{
    uint  _S43[128];
    _S12(_S43);
    samplePixel_0 = _S43;
    uvec2 _S44 = gl_GlobalInvocationID.xy;
    uvec2 _S45 = gl_LocalInvocationID.xy;
    samplePixel_0[_S45.y * 16U + _S45.x] =<PHONE_NUMBER>U;
    controlBarrier(gl_ScopeWorkgroup, gl_ScopeWorkgroup, gl_StorageSemanticsShared, gl_SemanticsAcquireRelease);
    ...
}

It's generally undesirable to initialize shared memory like this, the function _S12 is writing 0 to every element in the shared memory array.  This happens on each thread and so it's a data race.  I would prefer my shared memory to stay uninitialized.  Or worst case, would prefer the inclusion of a memory barrier to make those writes somewhat safe...
When compiling to GLSL, the zero initialize feature seems to incorrectly initialize RayQuery
Consider the following line in a slang shader:
RayQuery<0> foo;

With -zero-initialize this is being translated to:
rayQueryEXT _S313;
rayQueryEXT rayQuery_0 = _S313;
...
rayQueryInitializeEXT((rayQuery_0), (TLAS_0), (64U), (maxSortOrder_0), (rayDesc_0.Origin_0), (rayDesc_0.TMin_0), (rayDesc_0.Direction_0), (rayDesc_0.TMax_0));

Which produces the following error when trying to compile the generated GLSL: ray queries can only be initialized by using the rayQueryInitializeEXT intrinsic: rayQuery_0

@ArielG-NV let's patch this up by not initializing groupshared and RayQuery.


Unclear sentence in "Criticism"

In a "Criticism" section there's this part of a sentence:

a server must not send more than three times the size of the request in response without receiving a packet from the client in response.

I don't understand this. It sounds like if a client sends an initial request of size x, then the server may send a response up to size 3*x. And there's an exception where the server may send a bigger response, which is when the client sends a packet in response to the response? How is the security mechanism supposed to know whether there will be a response by the client in order to allow a larger response by the server?
Maybe the part of the sentence can be rephrased or expanded on to make it easier to understand.

In section 8 of RFC 9000 the following is stated:

The primary defense against amplification attacks is verifying that a
peer is able to receive packets at the transport address that it
claims.  Therefore, after receiving packets from an address that is
not yet validated, an endpoint MUST limit the amount of data it sends
to the unvalidated address to three times the amount of data received
from that address.  This limit on the size of responses is known as
the anti-amplification limit.

So I think "without receiving a packet from the client in response" means before the client address is validated.  Here's a proposal for new formulation:
Also, in section 8.1:

Prior to validating the client address, servers MUST NOT send more
than three times as many bytes as the number of bytes they have
received.  This limits the magnitude of any amplification attack that
can be mounted using spoofed source addresses.

So the cited sentence could be slightly changed as:

a server must not send more than three times the size of the request in response before having validated the client address (ie completed connection establishment).


I couldn't find Charts.xcodeproj

I'm trying to use ios-charts in my app written in Objective-C.
First, I downloaded ios-charts from GitHub and read the README.md and found I could use cocoapods to install as it says "pod 'Charts'".
So I added this to my Podfile like
platform :ios, "9.0"
use_frameworks!
target 'chartTest' do
pod 'FMDB', '~> 2.0'
pod 'Charts', '~> 2.1'
end
And I did pod install, and get Charts in my Pods folder.
But I couldn't find Charts.xcodeproj.
Do I need to add it from ios-charts-master which I downloaded from GitHub manually?

http://stackoverflow.com/questions/34970326/how-can-i-import-charts-xcodeproj-using-cocoapods


[Task] Fix /Templates path removal

Fix /Templates path removal was causing the build to break. We will need to remove all dependencies/try a different approach

fixed and merged in release. Hence closing the ticket


modify ldap filter

Coverage remained the same at 46.048% when pulling 1c09e1fc1c24d26dc5b5ba27d1d3f61820bac60c on wemeya:api into e43b1bdf0eeca0a9c09f09bd8e0b7a5f9f978f93 on vmware:dev.


GROOVY-7873 - Regression performance issue in string methods

In order to implement CharSequence the GString implementation must call toString each time a CharSequence method is invoked.  This is expensive, so GStrings should be converted toString if methods such as charAt are going to be called from a loop.

+1


Test get_oeis_values response for nonexistent sequence

Current pull request
Add a test to make sure that get_oeis_values gives the expected error response when you ask for a sequence that's not in the OEIS, rather than hanging or crashing.
Right now, the error response is text rather than JSON, so I extended AbstractEndpointTest to accommodate this. The parameter expected_response_json has been replaced with expected_response, which must be a dictionary or a string. If it's a dictionary, it's compared against response.json. If it's a string, it's compared against response.text.
Future directions
I think tests for the other lookup errors will have to wait for the mock OEIS, because they can't be triggered at will.
To streamline error handling in the front end, maybe we should make the error signal more convenient to detect. For example, we could use HTTP status codes to indicate whether there was an error, or we could make both normal and error responses JSON with an error flag key.

I tried pulling and running, and it seems to have succeded, I got:
.s..
----------------------------------------------------------------------
Ran 4 tests in 0.759s

OK (skipped=1)

Nice! I can't think of any further way to check this PR. @gwhitney, is there anything else you'd recommend?


USHIFT-2346: Revert "[release-4.15] USHIFT-2346: Work around broken osbuild dependency on RHEL 9.3"

Reverts openshift/microshift#2990

/lgtm

/label backport-risk-assessed
/label cherry-pick-approved
/label jira/valid-bug


Handle dates other than due date

Should I consider supporting things like start, scheduled, do (whatever these are) dates?
Adding other date concepts has implications: which date should determine the column on date boards, which date should be displayed on cards, which date should change on (not yet implemented) drag-and-drop on date boards?

For the Tasks plugin, there are due, scheduled, and start dates.
Looks like the most appropriate interpretation would be to use the scheduled date to determine the column on dated boards if present.  If not,  use the due date.  I don't think Start dates are relevant for CardBoard.

would also like this scheduled date support as to be able to use cardboard view for scheduling

There is also the Reminder plugin which has reminder dates as well as some compatibility with the Tasks plugin.

@ItsFullOfCode kicked off a discussion (#110) on excluding part of task's description from task text - mentioning Reminders timestamps in particular.  Once I support parsing other types of dates, I need to think about how to display them on a card as they do not belong in the displayed title.

See: https://github.com/roovo/obsidian-card-board/issues/93#issuecomment-1415232770
[@DerNamenlose]
I'd like to add my 2 cents and propose to use the Start date from the Tasks plugin to hide tasks from the board. I at least use the Start date as a kind of "don't bother me until then" marker.

I second the comment #93 , I too use a start date or hide until date a lot for things that I just cannot start with until date X and for that don't want to be bothered with. This would help alot!

Yes i Need this! I just wanted to ask for this, I normally order my tasks after scheduled and not after due dates. So I will need this
best would if if i can use due or the scheduled date for each individual column i set up and also a the "recurring" column would be nice
working with the Task plugin!

My attempt at a summary to check my understanding on this area:
There are 3 date types which seem to be particularly relevant (definitions as per Tasks plugin):

Due (date by when a task must be done)
Scheduled (when you plan to work on it)
Start (date before which you can't start)

Some other date types are:

Cancelled date - this would be looked at as part of dealing with custom status's (alternative checkboxes) - see #171.
Created Date
Reminder date/time (reminder plugin)

Proposed behaviour:

If a  task has a start date then exclude it from columns if the date is prior to the start date.
Allow the definition of a column for tasks which have not yet reached their start date -> so they can be accessed.
The date used to determine which column a task should appear in will be: scheduled date (if present), due date (if there is no scheduled date), start date (if neither due or scheduled date is given).
The task will be considered undated if it has none of these 3 dates, so would be shown in the Undated column if present.
The file date (where use of file dates is enabled) will be considered as if it is a scheduled date.
None of these dates (or cancelled, created, reminder dates) will appear in the title of the card.

Not yet thought about: which date(s) should be shown on the card and where should they go?

Hi, I love the plugin! It has been so helpful for my workflow. I was just wondering if there is any update on allowing for scheduled dates as mentioned here. I imagine you have a lot going on so no worries just a friendly inquiry. Thanks!!


ValueError：array  must not contain infs or NaNs.

Hi，
Recently,I use  Brainprint  to process my data.Some outputs of Brainprint have problems.There is no csv file in the eigenvectors folder.The result is that brainprint.csv and brainprint.asymmetry.csv are missing from the output.Please let me know how to resolve such issue?
ValueError：array  must not contain infs or NaNs.

Hello,
thanks for your report. Kindly let me know which command / options you are using, and which FreeSurfer version.
If you can share one example case where the processing fails, it would be very helpful to replicate the issue - I can send an upload link.
Best regards, Kersten

Hi, thanks for the upload.
I found for both cases some issues with the cortical surface. The construction of this surface can be a bit error-prone, so if the cortex is not your primary interest, then you can always use the --skipcortex option to leave out these structures. The script should run through successfully when using this option.
If you prefer to analyze the cortical surfaces:

One issue was related to surface elements (triangles) being oriented in part clockwise, in part counter-clockwise. This does not affect surface properties such as area, volume, or thickness, but could impact some computations within the brainprint/shapeDNA script, which would cause the script to fail, i.e. produce an error message. This has been fixed so that surfaces are oriented consistently now.
The other issue was related to surface normalization, which required computation of the surface area. This could not be computed for one specific cortical surface; I speculate due to a problem with mesh quality such as degenerate surface elements. I can't tell the exact reason, but have "fixed" the script in such a way that for this particular structure a warning message is produced and the output will contain a NaN (not a number value) instead of e.g. a numerical asymmetry value for this particular structure. That is, the script should run through even in cases with potential mesh quality issues, and produce NaN output in such a situation.

Hope this helps, Kersten

Thank you for your help，Kersten.


Delete cookies when a user remove consent

 Remove GA cookies if consent for 'usage' cookies is withdrawn


Add new server-level unit test

Added this as part of working on issue #3603.

New test code only, merging on green.


Dracula Theme

kinda based on the ant dracula kde theme but yea its a theme that i like

Cool! Thanks for the PR.


I cant open the bot javascript file via command prompt so i can npm install it doesnt open

@Khush2589 what?

@Khush2589 what?

hey it aint a issue but can u add a nuke command?

@konrad777888 Ok.


[Facebook Adapters] Add Facebook functional test

Description
This pull request add a functional test for Facebook.
Changes made
We added the class FacebookChatTests.cs with the functional test for Facebook.
Also we edited the templates template-with-new-rg.json and template-with-preexisting-rg.json from the PrimaryTestBot to include the required variables to deploy it to Azure.
Testing

Pull Request Test Coverage Report for Build 99471

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

Files with Coverage Reduction
New Missed Lines
%

/libraries/Adapters/Microsoft.Bot.Builder.Adapters.Facebook/FacebookAdapterOptions.cs
1
86.67%

/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.Core/ApplicationBuilderExtensions.cs
1
71.43%

/libraries/Microsoft.Bot.Builder.AI.LUIS/LuisApplication.cs
1
96.36%

/libraries/Microsoft.Bot.Builder.AI.LUIS/V3/LuisApplication.cs
1
96.43%

/libraries/Microsoft.Bot.Builder.AI.LUIS/V3/LuisUtil.cs
1
96.35%

/libraries/Microsoft.Bot.Builder/BotStateSet.cs
1
85.0%

/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Actions/BaseInvokeDialog.cs
1
90.0%

/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Actions/Case.cs
1
87.5%

/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/ActionState.cs
1
50.0%

/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/EntityEvents.cs
1
75.0%

Totals

Change from base Build 99442:
0.0%

Covered Lines:
20896

Relevant Lines:
26760

💛  - Coveralls

:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Integration.AspNet.Core.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Testing.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Configuration.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Connector.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Schema.dll compared against version 4.6.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Streaming.dll compared against version 4.6.3


fix saveAs for extended mimetypes

fixes #553

Coverage decreased (-0.06%) to 75.408% when pulling fa6d40c15b2b01e29807755428501e75e80d67c9 on file-ext-553 into 6700f0db7f406a4b08b2134896df0ffa5be1ea73 on master.


Plugin Error

Hello!
Plugin Error noticed. Crash homebridge

.

@Semir333 In the error its stated that your bluetooth is off. "not poweredOn" Please check how to enable bluetooth on your Raspberry.

Still same message. I think the problem is something else.

@Semir333 could run sudo hciconfig hci0 version ?

@Semir333 finally found some time to update. It may be fixed as I updated some libraries also the bluetooth one.

Hi, the Homebridge now not blocked in totally, but the plugin have error. I've also not seen my Brewer still. (Config are okay)

Now have some BT issue? :S BT is activated.

@Semir333 really weird, did you try the v.2.1.0?

Yes installed.

@Semir333 did you try these steps? https://github.com/noble/noble/issues/35, https://github.com/noble/node-bluetooth-hci-socket/issues/110 I use a plugin called noble, the problem is that I don't control that stack. The errors seem all to come from noble, so you could do some research upon that. Otherwise when you don't understand all technical details it may be an option to use a freshly installed raspberry pi which has bluetooth on board?

I'm not understand the writings very well there. I'm use internal BT, not external (so it's on board) but the freshly installing is not an option because my whole house using the pie ^^


diffgraph: ensure we don't crash if a node get's deleted twice

:+1:
Do we want to emit a warning?
I think this PR was triggered by a recent codescience crash, where the double-deletion was indicative of a logical / pipeline-config bug (and that only led to much later NPE crashes far removed from the source of the problem).
OTOH, there is no a-priori reason to forbid double-deletion in batched updates, so maybe a warning would be overly restrictive.

Michael already merged, but since I've typed this already my 2cts:

Do we want to emit a warning?

IMO either this is a supported use-case, or not. A warning would be a weird in-between. The way that (non-buggy) passes deal with the current restriction is by doing the same thing as here: keep a hash-set in order to not queue the same thing for deletion twice. So in the end, a warning would just force us to do this same book-keeping in two places instead of one.

OK, supported use-case it is :+1:


Find boundary psi without original

The find_psi_boundary function was updated to take the original_psi_boundary as an input. What should I do if I don't know the original boundary flux? In my case, I'm not starting from a dd and just want to find the boundary flux from a gridded psi.

Per discussion with @orso82, the routine currently assumes that if the minimum/maximum psi on the domain boundary corresponds to a closed flux surface, the user has probably provided a CHEASE equilibrium with concentric surfaces outside the plasma boundary. Thus, the routine returns the original boundary. This fails if a free-boundary solution is given where the  domain boundary is the limiter. Commenting out the lines above fixes the problem.
We should think about how to fix/refactor this. Likely we want a flag for whether to perform this "CHEASE" check. Also, the original psi boundary may not be known, so it would be good if there was a way to specify


fix(styleguide): add new version of styleguide v3 :)

Starts the work on the next version of the styleguide based on 11ty
@mindy This blows away everything and starts from scratch. The main things to look at there as that you can get this up and running by following these steps:

Clone repo and fetch this branch
Run yarn to install all dependencies
Run yarn serve
Open http://localhost:8080

There you should see a completely bare-bones page with one link to SCSS and CSS Authoring Guidelines
Click the link and have a read over the documentation.
This is all super plain but, it works and is styled using Minimalist.
Let me know your thoughts. Thank you!
fix #130

This looks great Schalk! Added a suggestion.


Go panics

@ostcar Can you please have a look? The project compiles but then Go panics ...
I restructured a lot and changed the type of the event. Maybe you find the problem easily.

It works for the platform/example, but I can not build the main code.
Please tell me, what I have to do

Checkout current main branch, run git submodules update --init and thentask build -f. This runs format and check and then builds the binary. Then ./webserver crashes ...


added BernoulliNB_Scale.ipynb

For Scaling description instead of method initialization description, provide detail about actual what it does to dataset. and remove the return tag section for it.

Done, check it please.


Language fetching in Internet Explorer

Current behavior

Expected behavior

How do you think that we should fix this?

Minimal reproduction of the problem with instructions

Environment

ngx-translate version: X.Y.Z
Angular version: X.Y.Z

Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:
- Node version: XX
- Platform:

Others:

I am using NGX Translate for implementing internationlization in my project.
Working fine in Chrome, it is fetching browser language.
Not working fine in Chrome, it is not fetching browsers language but fetching systems language.
I tried GetBrowserLanguage and Window.Navigators.Language both are not working in IE.
How to get browser's language of internet explorer, any code snippets please.

Did you try getBrowserLang() method, already exposed by ngx-translate? https://github.com/ngx-translate/core/blob/master/projects/ngx-translate/core/src/lib/translate.service.ts#L492
What it does:

getBrowserLang(): string | undefined: Returns the current browser lang if available, or undefined otherwise


chore: Release v1.9.35

Release v1.9.35

/build-deploy-preview

/ok-to-test

/ok-to-test

/ok-to-test


Implement validation on network address registration related models

TODO:

Implement:

    def validate(self, blockchain, block_number: Optional[int] = None):
        # TODO(dmu) CRIRICAL: Implement
        return

Validate that the provided addresses are non-empty and valid URIs (providing empty list is fine because it is the away we unregister a node from the network - unittest it)

Note: no need to check availability of the network addresses as it may change with time anyway

to be done after https://github.com/thenewboston-developers/thenewboston-node/issues/162

@dmugtasimov What is valid network address?

Just hostname identified by ipv4/ipv6/domain name?
Can it be CIDR like <IP_ADDRESS>/24?
Can it contain a port number like <IP_ADDRESS>:80?
Can it contain protocol like http://mydomain

@dmugtasimov Please review https://github.com/thenewboston-developers/thenewboston-node/pull/230

it must be a valid URI
no
yes
yes

@andbortnik see above ^^^
Also there is a question in the PR

@andbortnik Let's remove FQDN validation. 1) it does not support localhost 2) we may need other /etc/hosts aliases for testing. After all it is signer responsibility to provide resolvable hostname. At first I did not want to have any validation of address at all, but decided to validate for being URI to explicitly declare what we expect as an address.

@andbortnik please, also address comments from PR

@dmugtasimov Please take another look

@andbortnik merged, thank you. Please, address an extra comment in some other PR


Holding keys only enters a single character

This is pretty easy to reproduce, just open and a shell and press a key. I expect pressing and holding to continue to insert characters.

All repositories in the atom-archive organization are unmaintained and deprecated. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions!


Shutdown most of Jenkins PostCommit

All but the following Jenkins PostCommits are now shutdown. The remaining are those shown at least one failed run on the dashboard http://metrics.beam.apache.org/d/CTYdoxP4z/ga-post-commits-status?orgId=1 (except for Sickbay suites)

Workflow name
Matrix
Jenkins status
GHA Status

 PostCommit Java InfluxDbIO Integration Test
N/A

 PostCommit Java Dataflow V2
N/A

 PostCommit Java ValidatesRunner Dataflow
N/A

 PostCommit Java ValidatesRunner Dataflow Streaming
N/A

 PostCommit Java ValidatesRunner Dataflow JavaVersions
['11','17']

 PostCommit Java ValidatesRunner Dataflow V2
N/A

 PostCommit Java ValidatesRunner Dataflow V2 Streaming
N/A

 PostCommit XVR GoUsingJava Dataflow
N/A

 PostCommit XVR PythonUsingJava Dataflow
N/A

 PostCommit Java ValidatesRunner Flink
N/A

 PostCommit Java ValidatesRunner Flink Java11
N/A

 PostCommit Python
['3.8','3.9','3.10','3.11']

 PostCommit Python Examples Direct
['3.8','3.9','3.10','3.11']

 PostCommit Python Examples Flink
['3.8','3.11']

 PostCommit Python ValidatesRunner Dataflow
['3.8','3.11']

 PostCommit Python ValidatesRunner Flink
['3.8','3.11']

 PostCommit Python ValidatesRunner Spark
['3.8','3.9','3.11']

 PostCommit Python Xlang IO Dataflow
N/A

 PostCommit XVR Direct
N/A

The following flaky/permared GHA postcommit never had Jenkins counterpart, also listed below

Workflow name
Matrix
GHA Status

 PostCommit Java IO Performance Tests
N/A

 PostCommit Python Arm
['3.8','3.9','3.10','3.11']

 PostCommit Python ValidatesContainer Dataflow With RC
['3.8','3.9','3.10','3.11']

 PostCommit TransformService Direct
N/A

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

Also made changes to release process

No longer prepare and run mass_comment.py. It now queued automatically by the file trigger

No longer create a PR to run Gradle Build, as the Jenkins job has already been shutdown. Instead, guide to trigger the GHA workflow


Tested Chrome and in Firefox and failed

Tested plugin as described on page and in demo. It loads all images and after they are loaded requests them again or does something strange, but it doesn't load them after page is loaded and they come into view.

Version 1.5 provided alternative where you must alter HTML and store image url in original attribute. I renamed it recently to data-originalto be HTML5 friendly. I also updated documentation for 1.6. to better explain how to use it:
http://www.appelsiini.net/projects/lazyload
Bottom line is. Times when you could just drop in one line of JavaScript and have automatic Lazy Loading won't come back. Because of the changes to modern browsers you now must alter your HTML.


GRPCChannel trips the shorten-64-to-32 warning

What version of gRPC and what language are you using?
master, Objective-C
What operating system (Linux, Windows,...) and version?
macOS / iOS 13
What runtime / compiler are you using (e.g. python version or version of gcc)
Xcode 11 / Apple clang version 11.0.0 (clang-1<IP_ADDRESS>)
What did you do?
If possible, provide a recipe for reproducing the error. Try being specific and include code snippets if helpful.
Build GRPCClient with -Werror and -Wshorten-64-to-32
What did you expect to see?
Successful build
What did you see instead?
https://github.com/grpc/grpc/blob/21cf17aacf79e635fe81a0a629d2588eda0441cc/src/objective-c/GRPCClient/private/GRPCChannel.m#L106
This line passes a GRPCCompressionAlgorithm (NSUInteger-based enum) to NSNumber.numberWithInt:, which takes as a parameter an int.
On 64-bit systems NSUInteger is 64-bit, but int is 32-bit, and therefore triggers the -Wshorten-64-to-32 warning, which is elevated to an error via -Werror.
Simply changing this line to call NSNumber.numberWithInt*eger*: should fix this problem.
Anything else we should know about your project / environment?
No

I believe this should be closed now as fixed.


Sorry, cant figure out where else to post:

Just want to know what the latest forge sponge version PEX 2.0 will work on and where can I find it? (I have the one from the sponge site that is marked for 1.9+..)
thanks

PEX itself is independent of forge version -- it just uses Sponge (and sponge's plugin compatibility versioning, currently requiring API 5). That means that you'll want to get the matching Sponge forge mod, which lists its compatible forge version on the Sponge download page.

So it will work with the latest version of Sponge (ver. 1.10.2026) then?

When you download Sponge, the jar you are given will have both the api version and forge version listed, as described in the documentation. Since PEX works with API 5, it'll work with whatever the latest 1.10 build of Sponge is.

Awesome! thanks!


Small typo in full text search docs

Describe this PR
Quick typo fix
Changes
Replaced 'cat' with 'dog' in the full text search table to align with its respective example
What issue does this fix?
Nothing too important - a minor typo
Any other relevant information
None

Thank you thank you @jjwilly16 we appreciate this logic correction!! :-)


linux icmp6 is error

c, e := icmp.ListenPacket("udp6", "")
error is
socket: protocol not supported

2023/10/27 10:55:44 ping err,err=[socket: protocol not supported]


exporter/stackdriver/trace with grpc-web produce no traces

I'm using grpc-web  from my angular webapp.
On client side i'm using this header to trace my gRPC request with gRPC-web :
 'X-Cloud-Trace-Context': `${uuid().replace(/-/g, '')}/0;o=1`

It was working very well, on stackdriver there was traces like that :

If i use a go client it works as expected.
But for few days (around 1/2 march 2018)  it's stop working with grpc-web, no traces on stackdriver, any ideas ?

I am not familiar with grpc-web. Can you give us a small reproducible case so we can debug?

Ok, i will provide a sample code tonight or tomorrow.

Ok, you can use the example provided by grpc-web.
To add tracing on request just add the right metadata after line 13 of index.ts :
    request: getBookRequest,
    host: host,
    metadata: {'X-Cloud-Trace-Context': `${uuid().replace(/-/g, '')}/0;o=1`},

It seems like you are provisioning your trace IDs yourself in the Google Cloud format, right? gRPC plugin uses a gRPC-specific propagation metadata key. It expects IDs to be generated in the binary format.
Look at https://godoc.org/go.opencensus.io/trace/propagation#Binary for a reference implementation of the binary format.

Thks, it works now with grpc-trace-bin metadata in binary format.
I did not see that there was a lot of rework on plugins

Glad that it is working. We moved to the binary format a while ago for better performance and consistency across Google.


Refactor string normalization function and test it.

Description
This package normalizes certain strings in the intermediate representation.
It strips any whitespace and quotations/commas from each container's environment variables.
Two things need to be done:

The package is not written in the most idiomatic way.
The package needs unit tests.

Some examples of code that needs to be refactored:

This should be for _, scObj := range ir.Services {
https://github.com/konveyor/move2kube/blob/master/internal/optimizer/normalizecharactersoptimizer.go#L34-L35
This should use TrimSpace https://golang.org/pkg/strings/#TrimSpace
https://github.com/konveyor/move2kube/blob/master/internal/optimizer/normalizecharactersoptimizer.go#L40-L41
This function shouldn't return an error since it isn't supposed to fail:
https://github.com/konveyor/move2kube/blob/master/internal/optimizer/normalizecharactersoptimizer.go#L60-L64

How to get started
For this issue you should start with some simple tests that creates simple IR objects and calls the function on them.
Next step would be to make slight changes to the IR objects and create a separate subtest for each scenario.
Some scenarios that are good to test:

Function called on an IR with no services.
An IR containing services that have no containers.
An IR containing services and containers but the containers have no environment variables.
An IR containing services and containers and all the environment variables are valid.
An IR containing services and containers and some of the environment variables are invalid (containing spaces and quotes).
An IR containing services and containers and some of the environment variables are invalid but their names contain the string affinity.

How to add unit tests
Some guidelines:

Look at the other tests in the package/project and write similar tests.
Use subtests to test different paths through the function.
Don't worry about testing every single path through the function. Focus on common use cases and failure modes.

Some helpful resources on how to write unit tests in Go:

https://blog.golang.org/subtests
https://youtu.be/hVFEV-ieeew

Code to be tested
https://github.com/konveyor/move2kube/blob/c9b5d0f8497ccf1dc61dd90879da9ad8b427967a/internal/optimizer/normalizecharactersoptimizer.go#L32-L64

@HarikrishnanBalagopal Would like to get working on this!
Thanks for the great head start and background on the issue! 🚀

@HarikrishnanBalagopal @ashokponkumar @suramrit Actually I have addressed this issue and ready to raise a PR,Forgot to sign-up. Apologies.
Let me know if I can go ahead and raise a PR.

@ShajithaMohammed You can raise a PR and together with @suramrit based on his changes, we can together refine it and merge.


Allow client_addr to be passed in as a param to run-consul

Currently, the config file that the run-consul script generates has the client_addr hard-coded to <IP_ADDRESS>. I would like to set my client_addr to <IP_ADDRESS> to restrict access to the UI to localhost only (and have an nginx reverse proxy running on the same host that can handle authentication and presenting a client certificate). Can we update the script to have a --client-addr param that defaults to <IP_ADDRESS>?

Could you override the generated config?

Ah, looks like I missed that in the documentation :/ We'll just do that. Thanks!


update i18n dependency

I want you to merge these.
Without this fix, you will not be able to use stripe-i18n in rails 6.1


Adding Elixir, made changes to Readme

Description of changes

Adding a few elixir scripts

CalculatePi.ex --> Approximate a value of pi
FactorialIterative.ex --> Returns a factorial for a given n, in an iterative manner.
FactorialRecursive.ex --> Returns a factorial for a given n, in an recursive manner.
FibonacciIterative.ex --> Returns a Fibonacci value for a given n, in an iterative manner.
FibonacciRecursive.ex --> Returns a Fibonacci value for a given n, in a recursive manner.
MaxRecursive.ex --> Find largest value in a list.

Added elixir logo

uploaded elixir logo in an svg format. Image credit: https://images.app.goo.gl/hXetArnAXmAZsDW18

Updated README.md

Added a column for Elixir in each table.
Mapped the scripts.
Replaced references to multiple online compilers with one singular compiler.
Added instructions on how to access compiler sites for each language.
Centered the title.
Added the Back to top button.
Finally, linked each topic/item to its specific site.

Need to add more things.


Notifications don't display if Streamus is open in a tab

Currently the Chrome desktop notifications won't appear if Streamus is open in a tab, even if that tab doesn't have focus. In my opinion the notifications should only be suppressed if the Streamus tab is currently active - otherwise the information is still very useful for the user!

You're right. This will need to use the chrome.windows API to check and see if the window is active and also the tabs API to check if the tab is highlighted in the active window.
https://developer.chrome.com/extensions/windows
One concern is that we'll have to ping these APIs every time a notification is shown, but I don't think that it's very costly to do so. The other option is to try and keep track of which window is active and tab is highlighted, but I don't think there's a very good way to do that. So, checking every time is probably the right call.
 Maybe that's better, but it'd be different than how Streamus works in the popup.

This seems to be working now? I ran it through a series of tests. Maybe I fixed it without remembering, but it looks good!


"fatal error: sox.h: No such file or directory" during installation

When I try to install the module on " CentOS Linux release 7.2.1511 (Core)", I get the above error. I've done yum install sox and yum install sox-devel. I'm not sure what else I'm missing...

I could resolve the issue using include_dirs=['/usr/include/sox"] as part of CppExtension in the setup.py file, but I'm obtaining a segmentation fault - as I raised in https://github.com/pytorch/audio/issues/54 - when I run torchaudio.load()

by changing #include <sox.h> to #include <sox/sox.h> in torchaudio/torch_sox.cpp, I could install and run without error. But it's just a workaround and we need some general solution for this issue.

Try installing packages sox libcurl4-openssl-dev clang libopencv-dev libsox-dev, it helped me. However, they require about 650M of disk space.

Here is my solution, referencing this
sudo  ln -s /usr/include/sox/sox.h /usr/include/sox.h

I am having this issue on OSX. I installed sox with  brew install sox , and the sox installation is located in directory ~/Homebrew/bin/sox.
I managed to get pass the first error fatal error: sox.h: No such file or directory, by adding include_dirs=['~/Homebrew/opt/sox/include/] to the CppExtension . However, now i am getting:
ld: library not found for -lsox clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'clang++' failed with exit status 1
Does anyone have any ideas?

We now have binaries that can be install directly from pip and conda, see here.
Since the original author has not expressed further issue, I will close this. Please feel free to re-open and provide the information given here if this is still happening.
@rfalcon100 -- Please feel free to open a separate issue for your installation with MacOS. This will allow us to collect more information about your particular environment. The installation instructions are given here. Please also consider using the binaries via pip and conda instead of compiling from source.

I am having this issue on OSX. I installed sox with brew install sox , and the sox installation is located in directory ~/Homebrew/bin/sox.
I managed to get pass the first error fatal error: sox.h: No such file or directory, by adding include_dirs=['~/Homebrew/opt/sox/include/] to the CppExtension . However, now i am getting:
ld: library not found for -lsox clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'clang++' failed with exit status 1
Does anyone have any ideas?

I had the same issue and solved it by manually creating symlinks in the search directory linking to the libsox.a and libsox.dylib for the clang++ linker.

I am having this issue on OSX. I installed sox with brew install sox , and the sox installation is located in directory ~/Homebrew/bin/sox.
I managed to get pass the first error fatal error: sox.h: No such file or directory, by adding include_dirs=['~/Homebrew/opt/sox/include/] to the CppExtension . However, now i am getting:
ld: library not found for -lsox clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'clang++' failed with exit status 1
Does anyone have any ideas?

I had the same issue and solved it by manually creating symlinks in the search directory linking to the libsox.a and libsox.dylib for the clang++ linker.

Both of this work for me. Thanks!
In my case files where actually on /opt/homebrew/opt/sox/lib so I add
include_dirs=['opt/homebrew/opt/sox/include/] to the CppExtension
And for making the symlinks:
ln -s /opt/homebrew/Cellar/sox/14.4.2_5/lib/libsox.a /usr/local/lib/libsox.a
ln -s /opt/homebrew/Cellar/sox/14.4.2_5/lib/libsox.dylib /usr/local/lib/libsox.dylib


Let the UART accept a whole buffer of u8, instead of single bytes only

At the moment, the output is sent byte-by-byte: https://github.com/hermitcore/libhermit-rs/blob/master/src/arch/x86_64/kernel/serial.rs#L25-L29
We could instead send the whole buffer at once and reduce the number of KVM exits this way.

Do you want to do this in an additive fashion by adding another hypercall and then migrating slowly? Removing/Replacing a hypercall in a non-backwards-compatible manner requires a uhyve-abi version change and might best be done together with other changes.

No, we can simply add a new call.

Hi Jonathan,
I'm a Computer Science student at UT Austin and I'm taking a virtualization course. We've been assigned to contribute to open-source virtualization projects, so could I take a shot at resolving this issue?

Sure, go ahead! PRs are always welcome :slightly_smiling_face:

@mkroening @jounathaen
A few questions:
Which of the functions causes the KVM exit?
Is it send() in serial.rs or is it the call to send within that, which calls write() from the x86_64 crate's port module?
How should I approach the change?
I noticed that the send/write functions being used currently only accept u8, not a buffer of u8, so I'm not sure how to go about sending a buffer.

Which of the functions causes the KVM exit?

A KVM exit (context switch from guest to hypervisor) may happen due to different guest actions. In this case, x86_64 port I/O to a specific address triggers the KVM exit. This is done using assembly in the x86_64 crate port abstraction.

How should I approach the change?

While the action that triggers the KVM exit may not carry data of arbitrary length, it may point to a struct describing such data. So instead of a byte for output, it may point to a struct containing address and length of a byte sequence (imitating a slice).
While I am no expert in Uhyve hypercalls myself, the other hypercalls might be a good reference on passing more complex structs.
The technical details of how to integrate the new hypercall in the end depend on whether we can land https://github.com/hermitcore/uhyve/pull/452 before. That PR of @jounathaen reworks the hypercall definitions and might also be a good starting point or source of information (though that PR is subject to change, as it is not merged yet).

Implemented in https://github.com/hermit-os/uhyve/pull/515


Update basic.md and basic.html to take into account showcase feature

basic.md and basic.html need to be updated to incorporate the new 'showcase' feature. These files suggest the user add the following:
{
    "name": "your_name_or_alias",
    "course_start": "year_of_course_start",
    "course_stage": "student_alum_staff_mentor",
    "favorite_language": "favorite_language",
    "currently_learning": "latest_learning"
}

However, the text should include the showcase:
"showcase": true key/value pair
and should read more like:
{
    "name": "your_name_or_alias",
    "course_start": "year_of_course_start",
    "course_stage": "student_alum_staff_mentor",
    "favorite_language": "favorite_language",
    "currently_learning": "latest_learning",
    "showcase": true
}

The relevant screenshots should be updated also

Hello,
If this issue is still open, can I work on it?

@MuzhdaN we actually might not need this Issue 😄 I'm working on something currently to sort this automatically 😉 Thanks for contributing to the project, and the overall conversation of it too. Why don't you create a custom creation following along to the intermediate.md guide?

@auxfuse thank you.
Yes, I want to work on that as well. Somehow the first PR for basic.md should be accepted to be able to continue working with the intermediate.md guide.


fix some security issues

The event struct in examples need to be updated.

The event structs in examples need to be updated.

Fixed


Spatial heat map

Is your feature request related to a problem? Please describe.
Would like to generate a heatmap.
Describe the solution you'd like
Being able to have DBeaver color geometry based on a counter.
Describe alternatives you've considered
Additional context

Hello @Defman
Please provide more info about your idea. Pictures also will be very beneficial.

Could be nice to color geometry object based on some counter

row
geo
cnt

1
...
4

2
...
2

Then cnt determines the color based on some gradient between max and min.
So in other words, add a way to show a third dimension based on color.

Ok, thanks for the idea.


⚠ Bofrost.at has degraded performance

In 4c06d1d, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 856 ms

Resolved: Bofrost.at performance has improved in df0291d.


feat: add rococo support and to the registry

This adds rococo support to the registry
closes: https://github.com/paritytech/asset-transfer-api/issues/290

Hello folks,
Seems the release is missing changes in src/registry/findRelayChain.ts.
There is no way to create an api instance for Rococo.
https://github.com/paritytech/asset-transfer-api/blob/main/src/registry/findRelayChain.ts#L11

@nikita-andrejevs Thanks for reporting this, I am going to get this fixed a make a small patch release. Thanks again!

@nikita-andrejevs Added in this release: https://github.com/paritytech/asset-transfer-api/releases/tag/v0.1.2
Please read the release notes as there is an important nuance to using rococo.


It still doesn't work when I used "electron-rebuild -f -w realm"

ERROR in ./~/realm/lib/browser/index.js

Module not found: Error: Can't resolve 'react-native' in
'/Users/H/Documents/MyApp/node_modules/realm/lib/browser'

@ ./~/realm/lib/browser/index.js 21:0-45

@ ./~/realm/lib/index.js

@ ./render/routes/tools/Network.js

@ ./render/router.js

@ ./render/index.js

@ multi (webpack)-dev-server/client?http://localhost:9527 webpack/hot/dev-server react-hot-loader/patch webpack-dev-server/client?http://localhost:9527/ webpack/hot/only-dev-server ./render/index.js

Not rewriting GET /dist/bundle.js because the path includes a dot (.) character.

I want to use realm in an electron app, and I just used the code below but it still doesn't work, and the error imformation is above, even though I used electron-rebuild -f -w realm
const Realm = require('realm')

This isn't anything to do with native modules or electron-rebuild.  For some reason that module is trying to require react-native which doesn't seem right for a module you want to use in Electron.  I'd reccomend asking upstream in Realm how you are supposed to use it.

Thanks so much.


Blog app: add devise

General requirements

Make sure that there are no linter errors.
Make sure that you used correct Gitflow.
Make sure that you documented your work in a professional way.

Ruby requirements

Follow our list of best practices for Ruby.

Project requirements

Remove current_user method in ApplicationController, devise will provide us with one.
Install and setup devise.

Can register a new user.
User logs in with a combination of email and password.
Hashed password should be stored in the database.
Ask for confirmation of email.
Can reset password.

Modify the views in devise for registration and login to match the wireframes from the Sneak Peek.

@ahmetbozaci thanks a lot for the thorough review and the optional changes you mentioned, I'll make sure to implement them!


EEG gradient artefact correction pre-processing function

Describe the new feature or enhancement
A preprocessing function able to correct the gradient artefact on EEG data recorded simultaneously as fMRI.
Describe your proposed implementation
Code implementation of the moving average filter described in Ferreira, José L et al. (2016).
Ref:
Ferreira, José L et al. “Gradient Artefact Correction and Evaluation of the EEG Recorded Simultaneously with fMRI Data Using Optimised Moving-Average.” Journal of medical engineering vol. 2016 (2016): 9614323. doi:10.1155/2016/9614323
Describe possible alternatives
Possibly translating the FASTR function from the fMRIB matlab package that already performs this preprocessing would be a viable option.
Ref:
Improved FMRI Artifact Reduction from Simultaneously Acquired EEG Data using Slice Dependant Template Matching, Rami K. Niazy, Giandomenico Iannetti, Christian Beckmann, Michael Brady, Stephen Smith. Proc. 12th ISMRM (2004), Kyoto, Japan
Additional context
No response

If FASTR is better then it would be nice to have that. Is the code under a BSD compatible license?

I think in theory, the OMA filter is better as it has less finicky parameters to set. However, we're currently trying to deal with filter ringing artifacts at the boundaries of the data.
FASTR is good because there's a reference implementation for it. The bad thing about it is that it has a lot of parameters that the user must get exactly right.

Okay I am naive on this front, happy to let you decide @wmvanvliet !

We wrote a function for doing essentially this, although my memory fails me if it was FASTR or not.
https://github.com/nimh-sfim/gradient_remover
The main hiccup for us was that some of the import functions (looking at EGI in particular) don't give exact timing and so building the template for removal of these artifacts was difficult. Our function takes the exported EGI event timing to pull this off, but the ideal would be to make sure that every importer either 1) correctly imports timing exactly or 2) keeps a copy of the accessory times to try and sort this out.

There is also an online implementation on neuxus: here (seems a bit less advanced than @pmolfese code)
I could be able to provide EO/EC recordings with scan on/off if needed.


Unfamiliar with retrieving a specific province's report

Hello,
In your API docs, it shows that when getting https://api.covid19tracker.ca/reports?fill_dates&stat=&date&after&before, it returns data from ALL provinces. Is there a way to specify a province?
Cheers,

Hi there,
The report for a specific province can be called using the following format:
https://api.covid19tracker.ca/reports/province/sk
Note that 'sk' can be replaced with any province code to return the data for that specific province.
All the best!


Create Tiles for specific country

How to create tiles for offline use for any specific country.Can anyone please let me know. Thanks
NOTE :: Same tiles as are showing in demo.

Questions should go in the forum


Org journal doesn't cause Org-Roam data base syncs for some reason

Describe the bug
I have my org-journal inside a sub-directory in org-roam. I use dailies for this.
When I create a new org-journal file the org-roam-db-sync does not occur. Even after saving the file.
I have a potential fix below but it is kind of a hack.
To Reproduce

Have org-journal directory inside an org-roam directory.
Create a new org-journal. Save the file.
Try to find the file with org-roam-node-find. It won't be there.
Manually fun org-roam-db-sync, now you can repeat step 3. This should be automatically synced when the file is saved, but it's not.

Expected behavior
When I save the org file inside the org-roam directory it should trigger the default behavior of my automatic org-roam-db-sync.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS:  Archlinux and Ubuntu (Tested on 2 separate machines)
Emacs Version 27.1

Your Emacs Configuration
(add-hook 'org-journal-after-header-create-hook 'org-create-new-id-journal) (defun org-create-new-id-journal () (goto-char (point-min)) (org-id-get-create) (save-buffer) (org-roam-db-sync) (goto-char (point-max)))
Side note: The point min/max and org-id-get-create is used to make this a "Roam" file by adding an org-ID at the top of the file. It's kind of a hack, but it has worked up to this point. For this discussion I recently added the (save-buffer) and (org-roam-db-sync) to force the org-roam-db-sync to occur. This should automatically happen though when I save the file and it never does. I either have to manually run org-roam-db-sync, or add this hook.

Thank you for reporting your issue. I've run into a similar issue with org-roam. An alternative workaround is to create new journal files through roam. It's tantalizing how close the roam-dailies are to org-journal, yet they are not quite compatible.
Would you like to contribute a pull request that optionally hooks org-journal into org-roam dailies properly?

Thank you for reporting your issue. I've run into a similar issue with org-roam. An alternative workaround is to create new journal files through roam. It's tantalizing how close the roam-dailies are to org-journal, yet they are not quite compatible.
Do you have any recommendations for that?

At the moment I use both org-roam "journals" and the org-journal for both of their sets of functionality, and just point them to the dame directory/files.
I started a discussion on the Vulpea discussion pages as that is where I initially found the problem. @d12frosted found some interesting things he reported here https://github.com/d12frosted/vulpea/discussions/133#discussioncomment-2115889. If this gives you any immediate ideas @bastibe for fixes let me know.
What d12frosted said:
The only hiccup that I faced - after-save-hook and before-save-hook are messed when org-journal creates a new entry. They are fixed by re-visiting file though (e.g. save buffer, kill buffer, find file again). And this is why synchronization doesn't work.
So TL;DR - the problem is with messed up hooks. Trying to patch them by manually saving file, updating db is not going to lead you anywhere. You are fixing symptoms instead of the real issue.
Attempt to debug
I tried to debug it a little bit, but could not understand at what point it becomes corrupted. For example, I see that org-roam-db-autosync--setup-file-h is being called and that it modifies after-save-hook from (1) to (2) by appending org-roam-db-autosync--try-update-on-save-h:
(1): (vino-db-update-file flycheck-handle-save diff-hl-update org-journal-after-save-hook t ws-butler-after-save) (2): (org-roam-db-autosync--try-update-on-save-h vino-db-update-file flycheck-handle-save diff-hl-update org-journal-after-save-hook t ws-butler-after-save)
But then somehow after-save-hook gets the following value (e.g. org-roam-db-autosync--try-update-on-save-h and vino-db-update-file are dropped):
(flycheck-handle-save diff-hl-update org-journal-after-save-hook t ws-butler-after-save)
Workaround
Obviously, you can restore these hooks in org-journal-after-entry-create-hook:
(add-hook 'org-journal-after-entry-create-hook #'org-roam-db-autosync--setup-file-h)
(add-hook 'org-journal-after-entry-create-hook #'org-journal-restore-hooks)

(defun org-journal-restore-hooks ()
  (add-hook 'find-file-hook #'vulpea-project-update-tag)
  (add-hook 'before-save-hook #'vulpea-project-update-tag))

(Note the vulpea-project-uppdate-tag is for a different feature independent of this issue.
But overall, it's a bad workaround, because it fixes only stuff that I noticed to be broken. Other things might be affected by this 'corruption'.
What a possible fix looks like
(add-hook 'org-journal-after-header-create-hook #'org-id-get-create)
(add-hook 'org-journal-after-entry-create-hook #'org-roam-db-autosync--setup-file-h)
(add-hook 'org-journal-after-entry-create-hook #'org-journal-restore-hooks)

(defun org-journal-restore-hooks ()
  (add-hook 'find-file-hook #'vulpea-project-update-tag)
  (add-hook 'before-save-hook #'vulpea-project-update-tag))

(Note the vulpea-project-uppdate-tag is for a different feature independent of this issue.
And then once you save the buffer, everything should be synced.
For full details of what he said please see the link https://github.com/d12frosted/vulpea/discussions/133#discussioncomment-2115889.

If this turns out to work reliably, I'd be grateful for a pull request that documents it in the readme.

@bastibe while it works, it's just a lousy workaround. First of all, it doesn't cover full value of those hooks, so users have to figure that out. And secondly, we don't know which hooks are affected. I found 3 - find-file-hook, before-save-hook and after-save-hook. It's tricky. Though the following lines should be kind of OK for most of the users as at least it restores automatic db sync. Ideally users should check if auto sync mode is enabled, but that's prose.
(add-hook 'org-journal-after-header-create-hook #'org-id-get-create)
(add-hook 'org-journal-after-entry-create-hook #'org-roam-db-autosync--setup-file-h)

Even though I don't use org-journal nowadays (as don't do journaling anymore), I am still curious why these hooks are corrupted.

not perfectly sure, but I think the org-journal files need the IDs?

org-journal does not require IDs. It needs the date tags for weekly and monthly journals (though not dailies), but nothing else.


Update Composer dependencies (2023-07-15-00-10)

Visual regression test passed!
View the visual regression test report


what is the purpose of the index parameter in the finished callback?

// file: /client/init.js
Meteor.startup(function() {
  Uploader.finished = function(index, file) {
    Uploads.insert(file);
  }
});

seems to be 0 all the time...

It just tells you what file from the selected list was the one finished. In case you want to store the results in some kind of array.

Please reopen if needed.


nullable query parameters

Hello Narve,
I am not 100% sure but I think all query parameters should be marked as "nullable": true no ?

@cdmNSIDE Sorry, I merged this PR a bit quickly, then reverted it. I believe "nullable" is not legal where you put it, at least I get validation errors. Can you check the spec and re-open this PR if is actually correct?


Helper to typecheck serialized form of Enum

Problem
In plain Ruby, finite sets of symbols and strings are often used as informal enum "types". Sorbet implements enums via its special T::Enum class, but has no direct support for enums composed of literals. This makes it hard to implement enum type-checking on older code that exposes an interface where a symbol/string belonging to an implicit "enum" is expected as an argument. This limits Sorbet's effectiveness as a gradual type-checking system.
Proposed solution
I assume there is some specific technical reason Sorbet doesn't implement literal types generally. However, it already does something close for T::Enum with ::serialize/::deserialize methods on the enum classes. Seems like a helper function (T.serialized?) could be defined to type-check the serialized form of an enum:
class Foo < T::Enum
  enums do
    Bar = new(:bar)
    Baz = new(:baz)
  end
end

sig { params(x: Foo).void }
def bing(x); end

sig { void }
def ding; bing(:bar); end  # error

sig { params(x: T.serialized(Foo)).void }
def bing(x); end

sig { void }
def ding; bing(:bar); end  # now it works

This seems like a duplicate of #4035
Thanks for the report, but building up the machinery to do this properly is not easy (we should do it eventually though).


PowerToys Run currency converter

Greetings!
It would be nice to have an integrated currency converter in PowerToys, right?
If you'd like to see this feature implemented, add a 👍 reaction to this post.
Thanks for your hard work.

Duplicate of #3248


feature: cargo-shuttle commands should work from subdirectory of project root

Certain cargo-shuttle commands (like deploy) don't work if your PWD is not the project root.
We would want commands like cargo shuttle deploy to work from arbitrary subdirectories of the project root.

Taking this one.


Implement Wireworld

Hello and thanks for your contribution! Sorry for not replying for so much time. There are some warnings and errors in the build, would you mind to fix them?

I've rebased to master and rustupped the wireworld implementation, though there's still a few other issues in other parts of the project.
Perhaps somewhat off-topic, is there a good way to ask Cargo to build/run only a specific binary, or should I just keep using bare rustc?

You can use cargo test/run --bin NAME (see cargo run -h and cargo test -h for more details)

Ahah, I was trying to cargo build --bin NAME which doesn't work.  Thanks!

Awesome! Thanks!


[WIP] Alembic support #11

This PR aims to bring alembic to YDB
I'm not sure what are the changes needed to make that happen, I'm basically fixing the issues I encounter as I go with my project.
If you could provide a list of the changes required I can handle them in advance.

Hi!
Thanks for the contribution and interest!
I'll be back a little later.

Can you please have yet another look?


Serializing Date parameters does not support allow_None

Param: 1.12.0
I'm trying to help a user that wants to implement the Pydantic getting started example using Param. https://discourse.holoviz.org/t/creating-an-optional-datetime-parameter-using-param/3147.
He asks how to implement signup_ts: Optional[datetime] = None. I think its not possible with the existing parameters as I get the below error.
$ python 'script.py'
Traceback (most recent call last):
  File "script.py", line 12, in <module>
    deserialized_data = User.param.deserialize_parameters(json_data)
  File "C:\repos\private\panel-ai\.venv\lib\site-packages\param\parameterized.py", line 2100, in deserialize_parameters
    return serializer.deserialize_parameters(self_or_cls, serialization, subset=subset)
  File "C:\repos\private\panel-ai\.venv\lib\site-packages\param\serializer.py", line 113, in deserialize_parameters
    deserialized = pobj.param[name].deserialize(value)
  File "C:\repos\private\panel-ai\.venv\lib\site-packages\param\__init__.py", line 1928, in deserialize
    return dt.datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f")
TypeError: strptime() argument 1 must be str, not None

import param
import json

class User(param.Parameterized):
    signup_ts = param.Date(allow_None=True, doc="""The sign up time of the user""")

external_data = {
    'signup_ts': None,
}
json_data = json.dumps(external_data)
deserialized_data = User.param.deserialize_parameters(json_data)
User(**deserialized_data)

Additional Context
If you look at the Pydantic getting started example you will realize that its deserializing is much more flexible/ forgiving as it will be able to converts string to ints for integer parameters, not care so much about the date time format for datetime parameters etc.

I've changed the title, because Date parameters do support allow_None:
>>> import param, json
>>> class User(param.Parameterized):
        signup_ts = param.Date(allow_None=True, doc="""The sign up time of the user""")
>>> u = User()
>>> print(u.signup_ts)
None

The example above is specifically about serializing Date Parameters whose value is None, and it does look like there is an issue there. @jlstevens?

If you look at the Pydantic getting started example you will realize that its deserializing is much more flexible/ forgiving as it will be able to converts string to ints for integer parameters, not care so much about the date time format for datetime parameters etc.

Right. As https://github.com/samuelcolvin/pydantic/issues/578 says, Pydantic is a parsing library, not a validation library like Param. Pydantic is designed to ensure that usable values are extracted from what is provided by the user, while Param tries to give feedback to the user that what they provided is not suitable. E.g. sure, the user might have meant 3 when they put in the string " 3" or the float 3.14 for an integer, but are we sure? Should it also be 3 for "3..."? or "3 feet" or "three"? At some point you have to give up and stop making assumptions. Param gives up quickly, rejecting anything that's not clearly the right object, while Pydantic will bend over backwards to make it fit. At a downstream level, code with either approach can rest assured that only the indicated type will be provided, but Param takes the position that users need feedback when they do crazy things, not for the program to blindly go forward with potentially undetected issues.
Param offers a separate mechanism set_in_bounds() that is more forgiving, and we could expand that to be even more forgiving if that's useful, as long as we still catch errors when that's not used.

I've not yet investigated deeply but the scheme should be fine as it is implemented like this which means the fix should be trivial None skip when serializing and deserializing dates. I'll make a PR shortly.

BTW, I think the serialization support is a red herring for the specific task of comparison with Pydantic. I've added an equivalent to the Pydantic getting started example to https://discourse.holoviz.org/t/creating-an-optional-datetime-parameter-using-param/3147/10, which does not depend on serialization and does support None.

Based on the merged PR, I think so...


Update README.md to address changes made in #1, #4 & #5

Update README.md to address changes made in #1, #4 & #5. These are major changes and might change how this tool/library is consumed.

[ ] Update README.md for #1
[ ] Update README.md for #4
[ ] Update README.md for #5

This issue is obsolete now, and has been superseded by #19

This issue is obsolete now, and has been superseded by https://github.com/jayasuryat/mendable/issues/19


🐛 [Firebase_Core] 6.26.0 - [Firebase/Core][I-COR000005] No app has been configured yet after following guide setup

I migrated my existing app to FlutterFire it worked smoothly on Android but on iOS I am getting 'No app has been configured yet' from Firebase/Core. And Crashlytics isn't listened to in Firebase Console even though I have it set and crashed the app plenty of times.
Steps to reproduce
Steps to reproduce the behavior:

Add GoogleService-Info.plist to Runner using Xcode.
Add Script from Crashlytics setup.
Remove the old Script and Firebase initialization from AppDelegate.swift.
Initialize Firebase in main method in Dart code.
Add a test crash on a button.
Run the app from Xcode.
Console output:

Click To Expand
2020-10-19 11:19:09.932530+0200 Runner[1425:302385] 6.26.0 - [Firebase/Core][I-COR000005] No app has been configured yet.
2020-10-19 11:19:10.014187+0200 Runner[1425:301983] [Firebase/Crashlytics] Version 4.1.1
2020-10-19 11:19:10.304571+0200 Runner[1425:302412] 6.26.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
2020-10-19 11:19:10.806977+0200 Runner[1425:302398] flutter: Observatory listening on http://<IP_ADDRESS>:58947/-VIDQlw7ZXs=/
2020-10-19 11:19:10.842518+0200 Runner[1425:302420] 6.26.0 - [Firebase/Analytics][I-ACS031025] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
2020-10-19 11:19:10.844579+0200 Runner[1425:302420] 6.26.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-10-19 11:19:10.844990+0200 Runner[1425:302420] 6.26.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60600000 started
2020-10-19 11:19:10.845454+0200 Runner[1425:302420] 6.26.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2020-10-19 11:19:11.422297+0200 Runner[1425:302349] 6.26.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
2020-10-19 11:19:12.357186+0200 Runner[1425:302391] flutter: [DEFAULT]
2020-10-19 11:19:12.359525+0200 Runner[1425:302391] flutter: true
2020-10-19 11:19:12.396776+0200 Runner[1425:302391] flutter: is crashlytics collection enabled: true
2020-10-19 11:19:12.507358+0200 Runner[1425:301983] User granted permissions
2020-10-19 11:19:56.058202+0200 Runner[1425:301983] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2020-10-19 11:19:56.062773+0200 Runner[1425:301983] [MC] Reading from public effective user settings.
2020-10-19 11:20:04.879266+0200 Runner[1425:302557] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C5.1:2][0x125547f30] get output frames failed, state 8196
2020-10-19 11:20:04.880180+0200 Runner[1425:302557] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C5.1:2][0x125547f30] get output frames failed, state 8196
2020-10-19 11:20:04.881107+0200 Runner[1425:302557] TIC Read Status [5:0x0]: 1:57
2020-10-19 11:20:04.882340+0200 Runner[1425:302557] TIC Read Status [5:0x0]: 1:57
2020-10-19 11:20:06.071003+0200 Runner[1425:302557] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C6.1:2][0x1049b7c60] get output frames failed, state 8196
2020-10-19 11:20:06.071360+0200 Runner[1425:302557] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C6.1:2][0x1049b7c60] get output frames failed, state 8196
2020-10-19 11:20:06.072013+0200 Runner[1425:302557] TIC Read Status [6:0x0]: 1:57
2020-10-19 11:20:06.072087+0200 Runner[1425:302557] TIC Read Status [6:0x0]: 1:57
2020-10-19 11:20:07.456917+0200 Runner[1425:301983] *** Terminating app due to uncaught exception 'FirebaseCrashlyticsTestCrash', reason: 'This is a test crash caused by calling .crash() in Dart.'
*** First throw call stack:
(0x1a6c1b180 0x1a5df39f8 0x100f9ef80 0x1029d56f4 0x102194a54 0x10246f2b8 0x10219dfe8 0x1021a0714 0x1a6bad554 0x1a6bad284 0x1a6bacab8 0x1a6ba7a08 0x1a6ba6fb4 0x1a8da879c 0x1d3408c38 0x1009e3df4 0x1a666a8e0)
libc++abi.dylib: terminating with uncaught exception of type NSException

8. App doesn't get registered in Firebase Console after crash (even after stopping the build in Xcode and running the app manually to crash).
Expected behavior
The app should have been configured with firebase correctly and registered in Firebase Console's Crashlytics.
Additional Context
The app was ran in Debug mode on an iPhone with iOS 12.4.
Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
[✓] Flutter (Channel stable, 1.22.2, on Mac OS X 10.15.7 19H2, locale en)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
[!] Android Studio (version 4.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.50.1)
[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
Dart SDK 2.10.2
Flutter SDK 1.22.2
app 1.0.10+10

dependencies:
- device_identifier 1.0.2+2 [flutter]
- device_info 0.4.2+9 [flutter device_info_platform_interface]
- dio 3.0.10 [http_parser path]
- firebase_analytics 6.0.2 [meta flutter firebase_core firebase_analytics_web firebase_analytics_platform_interface]
- firebase_core 0.5.0+1 [firebase_core_platform_interface flutter quiver meta firebase_core_web]
- firebase_crashlytics 0.2.1+1 [flutter stack_trace firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface]
- firebase_messaging 7.0.3 [meta flutter firebase_core]
- flare_flutter 2.0.6 [flutter flare_dart meta]
- flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine]
- flutter_form_builder 3.14.0 [flutter flutter_typeahead intl flutter_chips_input datetime_picker_formfield flutter_colorpicker signature validators date_range_picker flutter_touch_spin image_picker image_picker_for_web rating_bar country_pickers phone_number]
- flutter_launcher_icons 0.8.1 [image args yaml path]
- flutter_localizations 0.0.0 [flutter intl characters collection meta path typed_data vector_math]
- flutter_svg 0.19.0 [path_drawing xml vector_math meta flutter]
- flutter_typeahead 1.8.8 [flutter flutter_keyboard_visibility]
- font_awesome_flutter 8.10.0 [flutter]
- google_maps_flutter 1.0.3 [flutter flutter_plugin_android_lifecycle google_maps_flutter_platform_interface]
- in_app_update 1.1.11 [flutter]
- intl 0.16.1 [path]
- introduction_screen 1.0.9 [flutter dots_indicator]
- json_annotation 3.1.0
- location 3.0.2 [flutter meta location_platform_interface location_web]
- overlay_support 1.0.5 [flutter async]
- permission_handler 5.0.1+1 [flutter meta permission_handler_platform_interface]
- provider 4.3.2+2 [flutter nested collection]
- rect_getter 0.1.0 [flutter]
- share 0.6.5+3 [meta mime flutter]
- shared_preferences 0.5.12+2 [meta flutter shared_preferences_platform_interface shared_preferences_linux shared_preferences_macos shared_preferences_web shared_preferences_windows]
- uni_links 0.4.0 [flutter]
- upgrader 2.6.1 [flutter device_info flutter_device_locale http package_info shared_preferences url_launcher version xml]
- url_launcher 5.7.5 [flutter url_launcher_platform_interface url_launcher_web url_launcher_linux url_launcher_macos url_launcher_windows]
- wave 0.1.0 [flutter]

dev dependencies:
- build_runner 1.10.0 [args async build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style glob graphs http_multi_server io js logging meta mime path pedantic pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data]
- json_serializable 3.5.0 [analyzer build build_config json_annotation meta path source_gen]

transitive dependencies:
- _fe_analyzer_shared 7.0.0 [meta]
- analyzer 0.39.17 [_fe_analyzer_shared args charcode cli_util collection convert crypto glob html meta package_config path pub_semver source_span watcher yaml]
- archive 2.0.13 [crypto args path]
- args 1.6.0
- async 2.5.0-nullsafety.1 [collection]
- basic_utils 2.7.0-rc.1 [http logging json_annotation pointycastle convert crypto]
- boolean_selector 2.1.0-nullsafety.1 [source_span string_scanner]
- build 1.3.0 [analyzer async convert crypto logging meta path glob]
- build_config 0.4.2 [checked_yaml json_annotation meta path pubspec_parse yaml]
- build_daemon 2.1.4 [built_collection built_value http_multi_server logging pedantic path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]
- build_resolvers 1.3.9 [analyzer build crypto graphs logging path package_config pub_semver yaml]
- build_runner_core 5.2.0 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pedantic pool timing watcher yaml]
- built_collection 4.3.2 [collection quiver]
- built_value 7.1.0 [built_collection collection fixnum quiver]
- characters 1.1.0-nullsafety.3
- charcode 1.2.0-nullsafety.1
- checked_yaml 1.0.2 [json_annotation source_span yaml]
- cli_util 0.2.0 [path]
- clock 1.1.0-nullsafety.1
- code_builder 3.3.0 [built_collection built_value collection matcher meta]
- collection 1.15.0-nullsafety.3
- convert 2.1.1 [charcode typed_data]
- country_pickers 1.3.0 [flutter]
- crypto 2.1.5 [collection convert typed_data]
- csslib 0.16.1 [source_span]
- dart_style 1.3.6 [analyzer args path source_span]
- date_range_picker 1.0.6 [flutter]
- datetime_picker_formfield 1.0.0 [flutter intl]
- device_info_platform_interface 1.0.1 [flutter meta plugin_platform_interface]
- dots_indicator 1.2.0 [flutter]
- fake_async 1.2.0-nullsafety.1 [clock collection]
- ffi 0.1.3
- file 5.2.1 [intl meta path]
- firebase 7.3.0 [http http_parser js]
- firebase_analytics_platform_interface 1.0.3 [flutter meta]
- firebase_analytics_web 0.1.1 [flutter flutter_web_plugins firebase firebase_analytics_platform_interface meta]
- firebase_core_platform_interface 2.0.0 [flutter meta plugin_platform_interface quiver]
- firebase_core_web 0.2.0 [firebase firebase_core_platform_interface flutter flutter_web_plugins meta js]
- firebase_crashlytics_platform_interface 1.1.1 [flutter meta collection firebase_core plugin_platform_interface]
- fixnum 0.10.11
- flare_dart 2.3.4
- flutter_chips_input 1.9.4 [flutter]
- flutter_colorpicker 0.3.4 [flutter]
- flutter_device_locale 0.4.0 [flutter flutter_web_plugins plugin_platform_interface]
- flutter_keyboard_visibility 3.2.1 [flutter]
- flutter_plugin_android_lifecycle 1.0.8 [flutter]
- flutter_touch_spin 1.0.1 [flutter intl]
- flutter_web_plugins 0.0.0 [flutter characters collection meta typed_data vector_math]
- glob 1.2.0 [async collection node_io path pedantic string_scanner]
- google_maps_flutter_platform_interface 1.0.4 [flutter meta plugin_platform_interface stream_transform]
- graphs 0.2.0
- html 0.14.0+3 [csslib source_span]
- http 0.12.1 [http_parser path pedantic]
- http_multi_server 2.2.0 [async]
- http_parser 3.1.4 [charcode collection source_span string_scanner typed_data]
- image 2.1.14 [archive xml]
- image_picker 0.6.7+12 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface]
- image_picker_for_web 0.1.0+2 [image_picker_platform_interface flutter flutter_web_plugins meta js]
- image_picker_platform_interface 1.1.0 [flutter meta http plugin_platform_interface]
- io 0.3.4 [charcode meta path string_scanner]
- js 0.6.2
- location_platform_interface 1.0.0 [flutter meta plugin_platform_interface]
- location_web 1.0.0 [flutter flutter_web_plugins location_platform_interface http_parser meta js]
- logging 0.11.4
- matcher 0.12.10-nullsafety.1 [stack_trace]
- meta 1.3.0-nullsafety.3
- mime 0.9.7
- nested 0.0.4 [flutter]
- node_interop 1.1.1 [js]
- node_io 1.1.1 [node_interop path]
- package_config 1.9.3 [path charcode]
- package_info 0.4.1 [flutter]
- path 1.8.0-nullsafety.1
- path_drawing 0.4.1+1 [vector_math meta path_parsing flutter]
- path_parsing 0.1.4 [vector_math meta]
- path_provider_linux 0.0.1+2 [path xdg_directories path_provider_platform_interface flutter]
- path_provider_platform_interface 1.0.3 [flutter meta platform plugin_platform_interface]
- path_provider_windows 0.0.4+1 [path_provider_platform_interface meta path flutter ffi win32]
- pedantic 1.9.0
- permission_handler_platform_interface 2.0.1 [flutter meta plugin_platform_interface]
- petitparser 3.0.4 [meta]
- phone_number 0.6.2+4 [flutter]
- platform 2.2.1
- plugin_platform_interface 1.0.2 [meta]
- pointycastle 2.0.0
- pool 1.4.0 [async stack_trace]
- process 3.0.13 [file intl meta path platform]
- pub_semver 1.4.4 [collection]
- pubspec_parse 0.1.5 [checked_yaml json_annotation pub_semver yaml]
- quiver 2.1.3 [matcher meta]
- random_string 2.1.0
- rating_bar 0.2.0 [flutter]
- shared_preferences_linux 0.0.2+2 [file flutter meta path path_provider_linux shared_preferences_platform_interface]
- shared_preferences_macos 0.0.1+10 [shared_preferences_platform_interface flutter]
- shared_preferences_platform_interface 1.0.4 [meta flutter]
- shared_preferences_web 0.1.2+7 [shared_preferences_platform_interface flutter flutter_web_plugins meta]
- shared_preferences_windows 0.0.1+1 [shared_preferences_platform_interface flutter ffi file meta path path_provider_platform_interface path_provider_windows]
- shelf 0.7.7 [async collection http_parser path stack_trace stream_channel]
- shelf_web_socket 0.2.3 [shelf web_socket_channel stream_channel]
- signature 3.2.0 [flutter image]
- sky_engine 0.0.99
- source_gen 0.9.7+1 [analyzer async build dart_style glob meta path pedantic source_span]
- source_span 1.8.0-nullsafety.2 [charcode collection path term_glyph]
- stack_trace 1.10.0-nullsafety.1 [path]
- stream_channel 2.1.0-nullsafety.1 [async]
- stream_transform 1.2.0
- string_scanner 1.1.0-nullsafety.1 [charcode source_span]
- term_glyph 1.2.0-nullsafety.1
- test_api 0.2.19-nullsafety.2 [async boolean_selector collection meta path source_span stack_trace stream_channel string_scanner term_glyph matcher]
- timing 0.1.1+2 [json_annotation]
- typed_data 1.3.0-nullsafety.3 [collection]
- url_launcher_linux 0.0.1+1 [flutter]
- url_launcher_macos 0.0.1+7 [flutter]
- url_launcher_platform_interface 1.0.8 [flutter meta plugin_platform_interface]
- url_launcher_web 0.1.4+1 [url_launcher_platform_interface flutter flutter_web_plugins meta]
- url_launcher_windows 0.0.1+1 [flutter]
- validators 2.0.1 [vin_decoder]
- vector_math 2.1.0-nullsafety.3
- version 1.2.0
- vin_decoder 0.1.2 [meta basic_utils http random_string]
- watcher 0.9.7+15 [async path pedantic]
- web_socket_channel 1.1.0 [async crypto stream_channel]
- win32 1.7.3 [ffi]
- xdg_directories 0.1.2 [meta path process]
- xml 4.2.0 [collection convert meta petitparser]
- yaml 2.2.1 [charcode collection string_scanner source_span]
</details>

---

@Ayman-Kortobaa were you able to figure this out? Running into the same issue

@jamesdixon
Other than following the guide, I have been told that overriding firebase SDK to the latest version in Pod did the trick as well as updating cocoapods to the latest version rc may resolve this issue.
# Override Firebase SDK Version
$FirebaseSDKVersion = ‘6.34.0’

sudo gem install cocoapods --pre

I got busy with other stuff atm, so if you could kindly try it out and let me know your findings.

Hi @Ayman-Kortobaa
Please follow https://flutter-firebase-docs.web.app/docs/crashlytics/overview
For native, please check https://firebase.google.com/docs/crashlytics/upgrade-sdk?platform=ios
For new plugins, https://firebase.flutter.dev/docs/migration


Vertical Swiper blocks natural flow of the page scroll on mousewheel.

This is a (multiple allowed):
[x] bug
[ ] enhancement
[x] feature-discussion (RFC)
Swiper Version: 4.1.6
Platform/Target and Browser Versions: CHROME for MacOS, Must be similar for other Platforms as well, haven't tested.
JSFiddle https://jsfiddle.net/rqvuf8ex/10/
What you did
I have a long page, with the Swiper Slider in one of the sections in the middle. I want the slider to be a full width, full page setup with vertical scrolling.
Expected Behavior
Note: I have releaseOnEdges set to true. As I start a scroll/ mousewheel event on a section of the page where swiper is not enabled, the page should seamlessly flow over through the swiper to the other sections of the page. Swiper should handle mousewheel event, only if the event happened on the container element, which is by default .swiper-container. Swiper shouldn't slide to the second slide as soon as the cursor hits a Swiper element while blocking natural page flow.
Actual Behavior
It blocks the flow of the document irrespective of where the scroll event was initialized. Also, the next slide event is immediately triggered.

Closed with #2514


Video Continous to Play even the view controller is inactive

override func viewWillDisappear(_ animated: Bool) {
self.mmPlayerLayer.invalidate()
}

Hi Sachi
Thanks for the reply.
Would to know how to implement the library in one view controller and not
in collection view, I tried to follow the sample code of detail view
controller but I failed.
I just want to show the video with controls(pause,time indicator,
fullscreen option) in view controller
On Wed, 22 May 2019 at 15:00, sachinkishore<EMAIL_ADDRESS>wrote:

override func viewWillDisappear(_ animated: Bool) {
self.mmPlayerLayer.invalidate()
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/MillmanY/MMPlayerView/issues/68?email_source=notifications&email_token=ALSLPERNM2OF7OGDM3XMRJTPWTVPZA5CNFSM4HOAJAQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV6DCUA#issuecomment-494678352,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALSLPEQ76R4TOS2K5C2MC23PWTVPZANCNFSM4HOAJAQQ
.

The self.mmPlayerLayer.invalidate()
is not working the video audio contnues but when i go back to collection
view with video the video is freeze
On Thu, 23 May 2019 at 13:27, Caroline Ignacio <
<EMAIL_ADDRESS>wrote:

Hi Sachi
Thanks for the reply.
Would to know how to implement the library in one view controller and not
in collection view, I tried to follow the sample code of detail view
controller but I failed.
I just want to show the video with controls(pause,time indicator,
fullscreen option) in view controller
On Wed, 22 May 2019 at 15:00, sachinkishore<EMAIL_ADDRESS>wrote:

override func viewWillDisappear(_ animated: Bool) {
self.mmPlayerLayer.invalidate()
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/MillmanY/MMPlayerView/issues/68?email_source=notifications&email_token=ALSLPERNM2OF7OGDM3XMRJTPWTVPZA5CNFSM4HOAJAQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV6DCUA#issuecomment-494678352,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALSLPEQ76R4TOS2K5C2MC23PWTVPZANCNFSM4HOAJAQQ
.

Check your viewcontroller deinit() trigger when you dismiss , Maybe memory leak happened

I have the same issue :c , is there at least a workaround?

Has anyone solved this issue? If then, please guide us.
Thanks


webapp: Add a tab to list tags

Hello,
Here's a small feature pull request, feel free to merge or close.
Thanks for the great app!

Hi @biolds
thank you very much for your PR. It is the first feature PR for this project. Congratulations.
I like it and merged it to the master. Thank you very much for your contribution. And thank you for using this gallery.


loading=lazy bugs

Updates for loading=lazy bugs

Safari doesn't load lazy elements when you print
Firefox requires the loading attribute to be defined before the src attribute
The chrome mem leak got fixed

Thanks!


Local storagepool/volumes not listed.

Server version - V0.47.0-rc1
UI - //releases.rancher.com/ui/latest
Currently Infrastructure->storagepool does not list Local storagepools.
There is no way for us to add local volumes from UI.
Also we are not able to list local volumes that have been created when deploying services/containers with DataVolume option for local volumedrivers.

I believe this is as @cjellick / @ibuildthecloud requested..

yeah, rightly or wrongly thats what we said to do

Moving to 1.1, enabling local shows a lot of unhelpful looking info and also makes n+1 calls to get mounts by volume very slow.

Closing due to inactivity.

I'm looking for a way to show local volumes in the UI. Is there a way to do this or not?


[Bug Report] Random crate amount always picking max crates amount

Describe the bug
in config.yml the "Random amount: true" does not work, it still defaults to amount filled into "Max-Crates".
Toggling this to false has the exact same effect, changing "Min-Crates" does nothing, and "Max-Crates" just functions as the amount of crates spawning now
Versions (please complete the following information):

Minecraft Server Version: 1.17.1
Plugin Version: 1.3.13-SNAPSHOT

Pastebin any errors in console
no console errors

Added to our tracking board.


security/acme-client: Add support for more DNS providers from latest acme.sh

acme.sh added more DNS validators recently, including linode which I'd love to use.
I'd be happy to provide a PR myself if someone could point me to instructions for how to test my changes. Or does it suffice if I just add the new files from/in the dnsapi/ folder and make the corresponding changes in the UI and PHP files?
Thank you!

It's probably a good idea to update our copy of acme.sh and all DNS hooks when adding a new DNS provider.
To add support for new DNS providers you need to add them to the UI/MVC files, but you also need to add a few lines of PHP code to make it work.

I'd be happy to provide a PR myself if someone could point me to instructions for how to test my changes.

Just fork the repo and apply your changes within a feature branch. You may want to use opnsense-patch to apply and test your changes on OPNsense.
If you can come up with a PR I'd love to do the review.

So, I made some changes (see https://github.com/fkling/plugins/commit/95c8712bd98f64b8d64a21c30d710429ed5abab5), but I'm not able to use opnsense-patch to apply the changes. I'm getting the following:
root@OPNsense:/ # opnsense-patch -a fkling -r plugins 95c8712bd98f64b8d64a21c30d710429ed5abab5
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|From 95c8712bd98f64b8d64a21c30d710429ed5abab5 Mon Sep 17 00:00:00 2001
|From: Felix Kling<EMAIL_ADDRESS>|Date: Sun, 5 Mar 2017 19:09:34 -0800
|Subject: [PATCH] Update acme
|
|---
| .../OPNsense/AcmeClient/forms/dialogValidation.xml |   78 +
| .../app/models/OPNsense/AcmeClient/AcmeClient.xml  |   29 +
| .../opnsense/scripts/OPNsense/AcmeClient/acme.sh   | 1514 +++++++++++++++-----
| .../scripts/OPNsense/AcmeClient/certhelper.php     |   20 +
| .../scripts/OPNsense/AcmeClient/dnsapi/dns_ali.sh  |    2 +-
| .../scripts/OPNsense/AcmeClient/dnsapi/dns_aws.sh  |    8 +-
| .../scripts/OPNsense/AcmeClient/dnsapi/dns_cx.sh   |    4 +-
| .../scripts/OPNsense/AcmeClient/dnsapi/dns_cyon.sh |  328 +++++
| .../scripts/OPNsense/AcmeClient/dnsapi/dns_do.sh   |  148 ++
| .../OPNsense/AcmeClient/dnsapi/dns_freedns.sh      |  375 +++++
| .../AcmeClient/dnsapi/dns_gandi_livedns.sh         |  123 ++
| .../scripts/OPNsense/AcmeClient/dnsapi/dns_gd.sh   |    2 +-
| .../OPNsense/AcmeClient/dnsapi/dns_lexicon.sh      |    8 +-
| .../OPNsense/AcmeClient/dnsapi/dns_linode.sh       |  183 +++
| .../scripts/OPNsense/AcmeClient/dnsapi/dns_lua.sh  |   43 +-
| .../scripts/OPNsense/AcmeClient/dnsapi/dns_me.sh   |   35 +-
| .../scripts/OPNsense/AcmeClient/dnsapi/dns_ovh.sh  |    6 +-
| 17 files changed, 2538 insertions(+), 368 deletions(-)
| create mode 100644 security/acme-client/src/opnsense/scripts/OPNsense/AcmeClient/dnsapi/dns_cyon.sh
| create mode 100755 security/acme-client/src/opnsense/scripts/OPNsense/AcmeClient/dnsapi/dns_do.sh
| create mode 100755 security/acme-client/src/opnsense/scripts/OPNsense/AcmeClient/dnsapi/dns_freedns.sh
| create mode 100755 security/acme-client/src/opnsense/scripts/OPNsense/AcmeClient/dnsapi/dns_gandi_livedns.sh
| create mode 100755 security/acme-client/src/opnsense/scripts/OPNsense/AcmeClient/dnsapi/dns_linode.sh
|
|diff --git a/security/acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/forms/dialogValidation.xml b/security/acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/forms/dialogValidation.xml
|index 4109e2c..f9dd582 100644
|--- a/security/acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/forms/dialogValidation.xml
|+++ b/security/acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/forms/dialogValidation.xml
--------------------------
No file to patch.  Skipping...
Hunk #1 ignored at 190.
Hunk #2 ignored at 243.
Hunk #3 ignored at 342.
3 out of 3 hunks ignored--saving rejects to acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/forms/dialogValidation.xml.rej
Can't create acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/forms/dialogValidation.xml.rej, output is in /tmp/patchrnlKeBewlnE: No such file or directory
Hmm...  The next patch looks like a unified diff to me...
[...]

It seems the folder structure of the plugin repository is different from how it is actually deployed. Is there anything special I have to do to make it work for plugins?
Should I still create a PR for the changes I have so far?

permissions need a fix here:
create mode 100644 security/acme-client/src/opnsense/scripts/OPNsense/AcmeClient/dnsapi/dns_cyon.sh
Doesn't really matter if opnsense-patch works or not: it may just have issues with conflicting files or the plugin wasn't previously installed... some form of merge conflict one way or another. as long as you have changes and provide a PR we can add it to our repository in a clean step. :)

Already merged.


Update mac_export.md to include framework folder

There is a missing step to copy the framework folder to the app contents as well.
I've also included a helpful script for a post build process

Ayyy!  Awesome.  Thank you for adding these!

Ahh damn the bullet points didn't render how it did in vscode for me 😣

Oops, got this fixed in local and pushing it live in a few minutes!