device detector is flagging ipad and iphone devices as desktop

Describe the bug
After upgrading to the latest version we have identified that the isDesktop function is returning true for iphone and ipad devices. We have also noticed the same result when trying out this app:
https://koderlabs.github.io/ngx-device-detector/demo/
We have attached screenshots of what it returns.
To Reproduce
Steps to reproduce the behavior:

Go to 'https://koderlabs.github.io/ngx-device-detector/demo/'
Click on 'N/A.'
Scroll down to 'isDesktop'
isDesktop is returning true for iphone and iPad

Expected behavior
From what I understand (do correct me if I am wrong), the isDesktop function should return false for iphone/ipad devices which appeared to be the case in the earlier version we have used (which was 2.0.5). I was wondering if this commit might have caused this issue perhaps: https://github.com/KoderLabs/ngx-device-detector/commit/cea0f9edcfc77620b3b8621af23cfbf39811f645?
Screenshots
ipad:

iphone:

Ipad (please complete the following information):

Device: iPad Air 2
OS: iOS 15.1
Browser Safari
Version 15.1

Ipad (please complete the following information):

Device: iPad 5th generation
OS:  iOS15.1
Browser Safari
Version iPad 5th generation

Smartphone (please complete the following information):

Device: Iphone 13
OS: IoS15.1
Browser Safari

This is the problem relying on the user agent.  Apple made a decision to change iPadOS to report as macOS.  Their reasoning is they wanted their users to have a universal experience regardless of the device being used to view a web page.  Their argument is that html pages should be designed to be responsive to the screen size not the device.  I have no doubt that at some point in the future iOS will also report as macOS.
As a developer, I understand there are times you do need to know which device is being used.  What I rely on now are "deviceType", "isDesktop", "isTablet", and "isMobile".  I always check isMobile last to identify phones, just in case a tablet also reports isMobile as true.

My team just tested this on IPhone 13, IOS 15.3.1, Safari and it seems to have been fixed.
deviceType = mobile
isDesktop() = false
isTablet() = false
isMobile() = true

This is still an issue. any fair solutions?


Add content on how to get SAML tokens using OAuth2

Information from our v1 docs here need to be added to this article...
https://docs.microsoft.com/en-us/azure/active-directory/azuread-dev/v1-oauth2-on-behalf-of-flow#obtain-a-saml-token-by-using-an-obo-request-with-a-shared-secret

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

ID: 3cd73bb0-f8d5-84f7-3fc5-2022f8392a20
Version Independent ID: d598130d-ba3a-0078-d4b6-1e47fad5ea41
Content: Microsoft identity platform & OAuth2.0 On-Behalf-Of flow
Content Source: articles/active-directory/develop/v2-oauth2-on-behalf-of-flow.md
Service: active-directory
Sub-service: develop
GitHub Login: @rwike77
Microsoft Alias: ryanwi

@ms-willfid Thanks for the question. We are currently investigating and will update you shortly.

@rwike77 Could this be verified and incorporated to the document ?

I've added the missing content, thanks.  #please-close


Numeric selector - if the value doesn't fully fit in the label, make a rotating movement for the characters

If the characters move like in a billboard, sooner or later the user will see the full number. Although I don't think this is ultra necessary

Replaced with https://github.com/gdt050579/AppCUI/issues/36.


System identification maneuvers

This lets the user flick a switch and activate system identification maneuvers by letting the autopilot overwrite the stick with a predefined function. This has the advantage that the user still has control over all other channels than the one active for the maneuver, e.g. if you want to do a step in pitch you still have control over throttle, roll and yaw. Since the manual setpoints are overwritten in sensors.cpp this works in any mode (except auto) so you can use it for identifying the physical system if in pure manual, identifying/tuning the attitude controller if in stabilized, identifying/tuning the position controller if in position mode. The maneuver is aborted if the switch is pressed again during the maneuver.
Currently the following maneuvers are supported:

Step in roll, pitch, yaw, throttle
Ramp in roll, pitch, yaw, throttle
Chrip in roll, pitch, yaw
2 1 1 in roll, pitch, yaw

The parameters are:
SID_MANOEUVRE defines which maneuver to perform
SID_AMPLITUDE defines the amplitude (in stick value) of the manuever, set to minus if you want to reverse the direction
SID_ON_TIME defines the duration of the maneuver in seconds
SID_TRIM_TIME_B defines the time the setpoint is set to zero before the maneuver
SID_TRIM_TIME_A defines the time the setpoint is set to zero after the maneuver
SID_START_FREQ defines the start frequency (in revolutions per second) of the chirp maneuver
SID_STOP_FREQ defines the stop frequency (in revolutions per second) of the chirp maneuver
SID_RAMP_SLOPE defines the slope of the ramp in time it would take from zero to 100% input signal. So if sid_ramp_slope = 2 and sid_amplitude = 0.5 the ramp will actually take 1 s in the maneuver.
Step

Ramp

Sinus (start and stop freq the same)

Chirp

2 - 1 - 1

Great!
Ideas/suggestions

announce what's going on through mavlink and console log (which maneuver and relevant params)
prevent it from running and reset if !flag_control_manual_enabled so there's no potential for unexpected behaviour after coming out of AUTO (eg loss of RC triggering RTL and then back to manual).
reset/abort if there's any mode change might also be useful (eg operator panics)

Thanks a lot for the comments!

Why would you use a "define" instead of the "const"?
To check if there is any mode changes I have to subscribe to vehicle_status is sensors.cpp, feels a bit backwards but maybe it is ok?
I will add a message that sysid maneuver was activated but I think it will be a bit to long to print all parameters. I have added the parameters to logging since I parse the data automatically but that is a rather special case, normally I think it should be fine to look at the data and identify the relevant parameters.

@CarlOlsson Neat idea. There is already a define for PI etc. in the math namespace, I think.
I've done something similar in the PR:https://github.com/PX4/Firmware/pull/5498, but I implemented it in mc_pos_control since it was already aware of flight modes. But that means the new functionality is not available for FW vehicles. We need to design a solution which doesn't require code duplication and also doesn't needlessly complicate existing modules. Maybe a new module?

I just meant use an existing define.
https://github.com/PX4/Firmware/blob/master/src/platforms/px4_defines.h#L196
For messages I think the main thing is telling the operator when it's started and finished. Sometimes it's not obvious at the higher frequencies.
The only other thing I'm wondering is how I could trigger this through a gamepad.

It is, I know I've defined the parameter.  It might just be something dumb,
I'll keep looking.
On Tue, Nov 1, 2016 at 2:46 PM, Carl Olsson<EMAIL_ADDRESS>wrote:

@CarlOlsson commented on this pull request.
In src/modules/sensors/sensors.cpp
https://github.com/PX4/Firmware/pull/5754:

@@ -923,6 +967,9 @@ Sensors::parameters_update()
param_get(_parameter_handles.rc_gear_th, &(_parameters.rc_gear_th));
_parameters.rc_gear_inv = (_parameters.rc_gear_th < 0);
_parameters.rc_gear_th = fabs(_parameters.rc_gear_th);

param_get(_parameter_handles.rc_sysid_th, &(_parameters.rc_sysid_th));

That is strange, I just checked and it builds for me, on Ubuntu 14.04 LTS
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/PX4/Firmware/pull/5754, or mute the thread
https://github.com/notifications/unsubscribe-auth/AKMX3eEBKBI1sVXraKZ4wUPCfN3en-wAks5q54kPgaJpZM4KgTN1
.

Wanted to get some clarification.  For selecting the channels and the maneuver for sysid, do you need to change the values in the code directly, or is there a way in qgroundcontrol to toggle?

you set the parameters listed in the first post in QGC

@LorenzMeier could we get an overall review? I can help test, review the details, and rebase if needed, but I'd like to know if this design is acceptable before proceeding.

Closing as stale, but I'm still quite interested in this idea. Going to pursue it as a separate module.
FYI @tstastny @mujahid-abdulrahim

We keep coming back to this a couple of times a year, if we are not the only ones it would be nice to get something merged at some point

@CarlOlsson @mujahid-abdulrahim
This is the code I keep coming back to whenever this is needed. https://github.com/dagar/Firmware/commit/635c8af05243acb8a33994c89c212d2c1ffd2569
https://github.com/dagar/Firmware/commits/pr-flight_test_input
I wouldn't be opposed to bringing it into master with the actual injections (and library build) disabled by default (build time option to enable).

Looks nice. However, as far as I see it can only inject setpoints in the attitude controller? but still it would be good to have it merged so it can be improved upon later on if needed


Jafu samples

Hi @sdeleuze,
I was checking the readme about the project, but I noticed that I didn't see any explicit information about Jafu. Indeed, i didn't see examples in samples folder.
Why?
Many thanks in advance
Juan Antonio
Related link:
https://spring.io/blog/2018/10/02/the-evolution-of-spring-fu

You will find more information here: https://github.com/spring-projects/spring-fu/issues/201.


Namespace google not found

When trying 'npm run build' the build fails.
The following errors are displayed:
C:_Work_PCF\Projects\AddressAutocomplete>npm run build

<EMAIL_ADDRESS>build C:_Work_PCF\Projects\AddressAutocomplete
pcf-scripts build

[17:21:27] [build]  Initializing...
[17:21:27] [build]  Validating manifest...
[17:21:27] [build]  Validating control...
[17:21:28] [build]  Generating manifest types...
[17:21:28] [build]  Compiling and bundling control...
[Webpack stats]:
Hash: 2b71d3614e44a4688af0
Version: webpack 4.28.4
Time: 2456ms
Built at: 08/04/2019 5:21:31 PM
Asset      Size  Chunks             Chunk Names
bundle.js  8.92 KiB    main  [emitted]  main
Entrypoint main = bundle.js
[./AddressAutocomplete/index.ts] 4.73 KiB {main} [built] [2 errors]
ERROR in C:_Work_PCF\Projects\AddressAutocomplete\AddressAutocomplete\index.ts
./AddressAutocomplete/index.ts
[tsl] ERROR in C:_Work_PCF\Projects\AddressAutocomplete\AddressAutocomplete\index.ts(8,27)
TS2503: **Cannot find namespace 'google'**.
ERROR in C:_Work_PCF\Projects\AddressAutocomplete\AddressAutocomplete\index.ts
./AddressAutocomplete/index.ts
[tsl] ERROR in C:_Work_PCF\Projects\AddressAutocomplete\AddressAutocomplete\index.ts(50,37)
TS2304: Cannot find name 'google'.
[17:21:31] [build]  Failed:
[pcf-1033] [Error] An error occurred compiling or bundling the control.

Try to run following command that installs required types - npm install --save @types/googlemaps
Source - https://www.npmjs.com/package/@types/googlemaps

Closing the issue.


Keras implementation of GAN models

Cold you please provide implementation of GAN models in Keras besides tensorflow and pytorch?

That's a very low priority item for me.
However, feel free to send me a pull request if you want to contribute.

It's so pity, I urgently need it in one important application. I have no idea why you left keras and chose TF as Keras is more easy to utilize. BTW, your code was very very helpful, Hope you reconsider my request.

I'm focusing on Pytorch and Tensorflow implementations.
Hence, I won't use Keras anymore.
If anyone interested, feel free to send me pull requests for Keras implementations.


Autocomplete doesn't work after new tab opened

ubuntu 16.10

@khusnutdinov, seems this issue belongs to https://github.com/sqlectron/sqlectron-gui. Please, reopen it there. Thanks.


InvalidStateError in self._put_message_waiter.set_result(None)

Full stack trace:

https://github.com/unicorn-data-analysis/unicorn-binance-websocket-api/issues/18
https://github.com/Rapptz/discord.py/issues/1996

This is likely to be a bug in websockets.

I have to investigate it, but i think to remember that the use of from __future__ import print_function and a coroutine leads to get blind on some errors happening in the code within the print_function. I moved away from that system but its already in my lib and the user with the issue is using it. It could might be a bug in the user code within the callback function but it doesnt get recognized and finally the async routine results in an invalid state. We are testing and i will report you as soon as we know something.

Thanks!
_put_message_waiter exists only for the situation where the queue of incoming messages is full. Then websockets stops receiving messages until recv() pops one from the queue.
When this happens, in transfer_data_task, websockets does:
                        self._put_message_waiter = self.loop.create_future()
                        try:
                            await self._put_message_waiter
                        finally:
                            self._put_message_waiter = None

and when recv() is called, it does:
        if self._put_message_waiter is not None:
            self._put_message_waiter.set_result(None)
            self._put_message_waiter = None

I suspect the scenario we're seeing is:

transfer_data_task is cancelled, perhaps because the connection is closing
since it's waiting on _put_message_waiter, _put_message_waiter gets cancelled as well
recv() is called
it attempts to set the result of _put_message_waiter, which produces InvalidStateError

Actually there are three possibilities if _put_message_waiter isn't pending; it may be:

cancelled: that's my theory above
done with a result: I don't think this is possible, considering how set_result is wrapped in if self._put_message_waiter is not None: ...; self._put_message_waiter = None structure
done with an exception: I don't think this is possible, because there's no call to set_exception.

Cancellation is the bane of my life as a maintainer of this library...

It turns out that _pop_message_waiter, which follows exactly the same pattern, defends against this issue (see the comment):
            self._pop_message_waiter = pop_message_waiter
            try:
                # If asyncio.wait() is canceled, it doesn't cancel
                # pop_message_waiter and self.transfer_data_task.
                await asyncio.wait(
                    [pop_message_waiter, self.transfer_data_task],
                    loop=self.loop,
                    return_when=asyncio.FIRST_COMPLETED,
                )
            finally:
                self._pop_message_waiter = None

The fix should be as simple as:
diff --git a/src/websockets/protocol.py b/src/websockets/protocol.py
index 43dcbd4..5161017 100644
--- a/src/websockets/protocol.py
+++ b/src/websockets/protocol.py
@@ -725,7 +725,7 @@ class WebSocketCommonProtocol(asyncio.StreamReaderProtocol):
                     while len(self.messages) >= self.max_queue:
                         self._put_message_waiter = self.loop.create_future()
                         try:
-                            await self._put_message_waiter
+                            await asyncio.shield(self._put_message_waiter)
                         finally:
                             self._put_message_waiter = None

The hard part is writing a test.

Cancellation is the bane of my life as a maintainer of this library...

Tell me about it. Kind of reminds me of the woes of thread cancellation.

Its possible that we found the reason for this issue. Till now it happened latest after 20h of running, now it runs since ~50 hours.
We will report in latest in two weeks, if it happened again or not.

In our case it seems it was like i said, a bug within the user code of the print_function caused the problem


DbContext lifetime with ASP.NET Core hosted service (or other "background" process)

Type of issue
Missing information
Description
Looking through the lifetime docs here - is it OK to use both AddDbContext and AddDbContextFactory DI registrations in the same ASP.NET Core app??
There is a lot of talk about Blazor, but I have never worked with Blazor (and I imagine maybe others wont have)

AddDbContext for injecting in controllers/minimal API handlers
AddDbContextFactory for injecting in background services (using dispose pattern)

Page URL
https://learn.microsoft.com/en-us/ef/core/dbcontext-configuration/
Content source URL
https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/dbcontext-configuration/index.md
Document Version Independent Id
b0a3d5ad-b62c-1ff4-386a-f11e350eea0c
Article author
@ajcvickers

is it OK to use both AddDbContext and AddDbContextFactory DI registrations in the same ASP.NET Core app??

AddDbContext for injecting in controllers/minimal API handlers
AddDbContextFactory for injecting in background services (using dispose pattern)

IMO this should be fine as Factory is by default registered as a singleton (refer here) and manages instances of DbContext in isolation with that of DbContext instance(s) managed by the application's DI Container.

@ErikEJ Sorry for the slow response. I think this should be fine, but I'd need to play with things a bit to be completely sure.


chore: Update go version to 1.18

Description

Fixes #16

Test

To test this pull request, you can run the following commands:

Additional Information
Tradeoff

Potential improvement

LGTM, but I wonder if we shouldn't just upgrade to 1.20

Agree, we can update to the latest go release to align with other repositories.
Will fix it. Thanks for review


add Cloudability's metrics-agent to stage-p01

This PR introduces an ApplicationSet for Cloudability's metrics-agent. The Agent is installed via it's Helm
Chart and it will be initially deployed only in cluster stage-p01.

I think, we should also have a kustomisation.yaml in components/cloudability-metrics-agent/staging/stone-stage-p01 directory pointing to values file.

I think, we should also have a kustomisation.yaml in components/cloudability-metrics-agent/staging/stone-stage-p01 directory pointing to values file.

I took inspiration from components/tracing/otel-collector/production.
The kustomization.yaml file there is not referencing the values.yaml file, so I thought it's not needed here either.
Also, given that the path field is not used in the ref-source, this should not build what's in the folder so it seems to me it should be fine (cf. https://argo-cd.readthedocs.io/en/stable/user-guide/multiple_sources/#helm-value-files-from-external-git-repository). WDYT?

/lgtm

@filariow lets create the the directory structure like other components

base
staging
production

will be easier to maintain configuration for different configurations for different overlays.

/lgtm

@filariow this one needs a rebase and conflict resolution for tide to accept it.

thanks @ralphbean, I'm waiting for cloudability's team to guarantee compatibility with OpenShift 4.15 and 4.16 (https://github.com/cloudability/metrics-agent/issues/270). I'll move this PR to draft.


[Coinbase Go/No-Go] ARC-0037 - Introduce withdrawal address for stakers

Motivation
This PR implements withdrawal addresses that staker can use claim their unbonded credits in accordance to ARC-0037.
Validators and delegators now need to specify an additional withdrawal_address when they call bond_public. While they are bonded this withdrawal address can not be changed, which is important because a core reason for this separation of addresses is so that the validator funds are secure even if their "hot" keys are compromised. This withdraw address will receive the credits that are unbonded by the staker in claim_unbond_public.
This is done with the following changes:

Added a new withdraw mapping

Key: staker address
Value: withdrawal address

Updated bond_public:

Add additional withdrawal address as input
Check if withdrawal_address exists in the withdraw mapping:

true -> Check that the withdrawal address is consistent with the one in the mapping (if it already exists)
false -> Update the withdraw mapping.

Updated claim_unbond_public:

This is still called by the staker.
Withdraw the balance to the withdrawal_address
Remove the withdraw address if the bonded entry no longer exists for the staker

UpdatedBondedBalances:

Add a withdrawal address field
Update atomic_pre_ratify to process the withdrawal addresses
Allows specifying withdrawal addresses in the genesis block

Test Plan
Tests have been added to ensure that:

The withdrawal address receives the claimed unbonded credits.
The withdrawal address can't be changed unless the staker is completely unbonded.
Stakers can't call bond_public with a different withdrawal address that was was set in the withdraw mapping.
The processing of Ratify::Genesis is correct with the new withdrawal addresses.

Additional Notes

A staker must be completely unbonded before they are able to change their withdrawal address
Withdrawal addresses can't be changed once initial stake is bonded

Related PRs
The sister PR can be found here - https://github.com/AleoHQ/snarkOS/pull/3165

So what should we do here?

lest goo

api full fill work!


Preprocess fails even on original data with original code when simplest "bash preprocess_data.sh" is submitted

Input (in terminal): .../CPI_prediction/code$ bash preprocess_data.sh
Output: ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (6212,) + inhomogeneous part.
Could you please explain this? Or correct this?
The fact that this kind of output is obtained even on your own original data, is... discouraging, I must say. I admit that I am disappointed.

Hello, perhaps you can adjust the ”numpy “ version， such as numpy==1.21.6 would work.

So the preprocess works but only if I downgrade numpy to 1.21.6. Then also does the training work. But, one of the consequences is the following:
tensorflow 2.17.0 requires numpy<2.0.0,>=1.23.5; python_version <= "3.11", but you have numpy 1.21.6 which is incompatible.


fixes #74 fallback for findEntryStatus when match is missing or other…

…wise invalid
Small change with big implication!
As mentoned in #74, it would be best for both old history (which has no status number) and new history to be preserved.
findEntryStatus which in turn calls findStatusGroup, calls the Array.prototype.find which will return undefined if the callback function provided does not return true on any item. Since the callback function uses a RegEx.prototype.test on the statusCategories's .statusCodeRegex to determine a match, I added a final object with a .statusCodeRegex of /.*/ to match anything. Think of it as a default in a switch statement, since all other objects before it have to not match before hitting it.

Hey @nickpalenchar,
Your changes look good to me!
View build log
TravisBuddy Request Identifier: 4c8e05e0-c930-11e9-9f48-711252adc810

LGTM! Also kudos for the only fix write-up that I've understood without checking the code! Very clear!


example backend structure?

@AlecAivazis
I had been searching for an alternative ContentManager other than the default file-system for Jupyter. I had previously looked at PGContents, but ideally wanted to find something that offered the possibility of version control. I happened upon your (this) implementation and wondered what sits on the back-end running the API server to which this RestfulContentManager interfaces. Could it feasibly integrate with something like a GitLab (or even Github) API?
Does the contents of this repo need to sit within a Jupyter notebook server and have some long-running  process running?  Or is it enough just to copy the code there?  Is there any public repo elsewhere you can point to that may have a sample running version of this, consuming an API, even a mocked-up one?
Thanks for any input on this.
Colum

Hey @Analect,
Sorry it took me so long to reply. Unfortunately, there isn't a public repo of the api server yet. Maybe when i get some time, I can throw one together for you. Or if you wanted to make one, I would be happy to add a link to the readme.
Until I make some actual documentation, the source code should have enough comments to give you a good sense of what's going on. The api runs as a separate service that manages an underlying storage method (mongodb, mysql, elastic search, etc.) This ContentManager is then configured to point to the API which it uses to query for notebooks, directories, files, and checkpoints following the description here.
I'm not sure if GitLab can be configured to provide an API that matches this but I'm fairly certain it wouldn't be possible with GitHub. The FIleContentManager assumes an immutable model for the checkpoints (they cannot be overwritten or deleted, only applied).

Thanks @AlecAivazis
An example, as and when you get time would be much appreciated.


@Shoothzj - are you able to provide a reference PR that supports this statement?


updated recipe for lint changes and decreased build number

joserfc 0.9.0
Destination channel: defaults
Links

PKG-4469
Upstream repository
Upstream changelog/diff
Relevant dependency PRs:

moto

Explanation of changes:

get into main with lint changes

Linter check found the following problems:
ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_30_e5px5kj/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:41: missing_description: The recipe is missing a description

===== ERRORS =====

clone/recipe/meta.yaml:21: missing_wheel: For pypi packages, wheel should be present in the host section
===== Final Report: =====
1 Error and 1 Warning were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_51dkte5_bz/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:47: missing_description: The recipe is missing a description
===== Final Report: =====
0 Errors and 1 Warning were found

I have assumed we decrease build number when this is our first build but it is build number 1 on forge. Happy for someone to correct me 👍

I have assumed we decrease build number when this is our first build but it is build number 1 on forge. Happy for someone to correct me 👍

That's fine to reset the build number


asking for porting when trying to program using your code

using PRIM board ran code given but when you try to program the sa818 there is a --port argument that it cant find the port confused any help would be great

Hi J,
The tool SA818 is a generic tool, that can be run on Linux, Windows or Mac, to program the IC radio. For the PIRIM, installed on a raspberry-pi you can ignore this parameter. The program should be able to find the port name by itself.
Good luck and 73
-fred-
--
Fred C.
@.***
https://0x9900.com/
https://www.qrz.com/db/W6BSD

On Sep 19, 2021, at 5:30 PM, jbaker5480 @.***> wrote:
using PRIM board ran code given but when you try to program the sa818 there is a --port argument that it cant find the port confused any help would be great
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.


simple webpack demo

I'm gonna look into maybe not having node put all the default packages it has in node_modules.
Create package.json:
npm init -y
Install important librairies:
npm install webpack webpack-cli style-loader css-loader less-loader less babel-loader babel-core babel-preset-env --save --save-dev
I think that's all of them?  I kinda grab and go with these libraries, but eventually, we will figure out exactly what we need and have a solid readMe.md to go off of.

@mwernimont can you git ignore node_modules and will that mess anything up? GitHub is crashing when I try to click files changed because there are over 16K...

@lindsaycarr removed the node_modules folder, you'll have to download the packages I used for the example to work.  They are all in package.json file as dev dependencies if you need to figure out which ones to grab.

Yep - I'll need to do that for this project anyways, so works for me 👍


[packager] Docker fails with cleanup error: no builder "jreleaser" found

I am trying the latest 1.6.0-SNAPSHOT that fixes all the docker issues i raised in the past week. All of it works, thanks a lot ! However i still have an issue in the cleanup process.
Could be linked to #1168
Task List

[x] Steps to reproduce provided
[x] Stacktrace (if present) provided
[ ] Example that reproduces the problem (link to git repository is ideal)
[x] Full description of the issue provided (see below)

Steps to Reproduce

run jreleaserPublish
the error happens after the publishing is complete

Expected Behaviour
No errror should happen
Actual Behaviour
Error in the logs
Environment Information

Operating System: macOS Ventura
JReleaser Version: 1.6.0-SNAPSHOT
JDK Version: 17

Please paste stacktraces from [out|build|target]/jreleaser/trace.log.
trace.log

🎉 This issue has been resolved in v1.5.1 (Release Notes)


Test keras

@pgleeson @ankur i am having issues with converting keras to mdf, I have been researching that in the past few days but i cannot find anything solid. The problem is getting the trained model into another python file, i keep on getting errors. Are there any resources you can recommend for me so long ?

Depends on what you've done and what errors are you getting really. let's start a thread on slack?

@kusanele The most important first step is getting a working example of a "pure" keras network in ML_keras.py. Currently python ML_keras.py doesn't do anything, there's no main method. I need to be able to run that locally to train/evaluate the network, and then the saved network with weights can be converted to MDF...

@sanjayankur31  @pgleeson I have added a new "example of a "pure" keras network in ML_keras.py". This should work on your local machine. Kindly have a look.

Good day @pgleeson
i cant seem to be able to generate the yaml file. I am getting the error below.

@pgleeson , The necessary libraries for displaying the model are not passing the tests, Please advise


[Request] JDTLS and snippets

I would like to know if there are currently any  intentions to provide java language server protocol (JDTLS) and snippets integration within the autocomplete engine.

Does JDTLS not work with the LSP plugin? The plugin doesn't have a default config for it, but if you follow the README you should be able to make it work.
For snippets, we don't have a plugin yet.

We now have a snippets plugin.

We now have lsp_java.
I think this issue can be closed now.

Also the jdtls snippets are working with both the manual install and lsp_java.

Yeah, closing this. Feel free to reopen if it's not working for you.


Feature Request: Shift+Click on "+" button should open new window

Description of the new feature/enhancement
When I Shift-Click on the + button to start another terminal session I would like it to open a new window instead of a new tab, just like for instance Firefox does.
The same goes for Shift-Clicking an entry in the list of profiles.

Maybe related to #1051 and #1256

Definitely related. I made this a comment on #1051.


2399 kpi to indicator type

Note - dev changes are also included so that I wouldn't have to rewrite the translation-aware sorting algorithm.  The main flow of the changes for this branch are:

migrate to add the new indicator type, add it to any KPI indicators, and remove the old KPI field
update the serializers to not call for the old field
add helper methods so program page (and any other legacy code) can still check whether an indicator is a KPI
program page styling updates of the KPI badge


Generated wave sample comparison between old version and latest version

old version

step-20000-waveform-linear.zip

new vesion

step-20000-wave-from-mel.zip

What is the new version?

It is improper to compare between linear and mel outputs.

@begeekmyfriend what you said is reasonable.
new  version mel samples on step 33k

old  version mel samples on step 33k


missing setup.py

I have just received the ExploreNFC board for my Raspberry PI B+. I have installed nxppy and Python 2 doesn't complain so I guess it's installed. During installation the only instruction I failed to get to work was the "sudo python setup.py build install" so obviously I have missed something. No setup.py can be found on the filesystem. Any ideas

Got the setup.py off this site, but when trying to run the examples the "import nxppy" works but the "mifare=nxppy.Mifare()" causes Python 2.7 to restart.

setup.py is only required if you're installing from source.  Are you
installing from source or pip?
On Fri, Oct 9, 2015 at 7:45 AM johnpaddy<EMAIL_ADDRESS>wrote:

Got the setup.py off this site, but when trying to run the examples the
"import nxppy" works but the "mifare=nxppy.Mifare()" causes Python 2.7 to
restart.
—
Reply to this email directly or view it on GitHub
https://github.com/svvitale/nxppy/issues/21#issuecomment-146875176.

I tried pip first but it didn't work, so then I tried source with the
results above. I will try a clean install on a new card next week and see
if that makes a difference.
On Fri, Oct 9, 2015 at 3:02 PM, Scott Vitale<EMAIL_ADDRESS>wrote:

setup.py is only required if you're installing from source. Are you
installing from source or pip?
On Fri, Oct 9, 2015 at 7:45 AM johnpaddy<EMAIL_ADDRESS>wrote:

Got the setup.py off this site, but when trying to run the examples the
"import nxppy" works but the "mifare=nxppy.Mifare()" causes Python 2.7 to
restart.
—
Reply to this email directly or view it on GitHub
https://github.com/svvitale/nxppy/issues/21#issuecomment-146875176.

—
Reply to this email directly or view it on GitHub
https://github.com/svvitale/nxppy/issues/21#issuecomment-146879887.

Yes, if pip doesn't work for some reason, please try to capture a log and
send it over.  That's the preferred installation method unless you're
planning to do development on nxppy itself.  Thanks!
On Fri, Oct 9, 2015 at 12:23 PM johnpaddy<EMAIL_ADDRESS>wrote:

I tried pip first but it didn't work, so then I tried source with the
results above. I will try a clean install on a new card next week and see
if that makes a difference.
On Fri, Oct 9, 2015 at 3:02 PM, Scott Vitale<EMAIL_ADDRESS>wrote:

setup.py is only required if you're installing from source. Are you
installing from source or pip?
On Fri, Oct 9, 2015 at 7:45 AM johnpaddy<EMAIL_ADDRESS>wrote:

Got the setup.py off this site, but when trying to run the examples the
"import nxppy" works but the "mifare=nxppy.Mifare()" causes Python 2.7
to
restart.
—
Reply to this email directly or view it on GitHub
https://github.com/svvitale/nxppy/issues/21#issuecomment-146875176.

—
Reply to this email directly or view it on GitHub
https://github.com/svvitale/nxppy/issues/21#issuecomment-146879887.

—
Reply to this email directly or view it on GitHub
https://github.com/svvitale/nxppy/issues/21#issuecomment-146953987.


Limit of 64?

Can you schedule more than 64 notifications?

iOS only allows the soonest 64 notifications to be scheduled. Robin should support queuing notifications in the future, but I currently have no time to implement that, sadly.


Correct typo

can we remove the recent tag version and then re-create

@Lironrad Can we please review and approve. This is causing bad behavior due to the typo.


added zh_TW translation

Description of Changes for Review:
Added Traditional Chinese localization patch
Closes #211

Thank you very much for this translation work :bow:  and your contribution !


Fix typos of UML

TimeResponse

I think we can label this as won't fix for now.
We should update the UML only after we have a stable API (when we release the 1.0.0 version).


[BUG] Weird glowy white line on mobile

Describe the bug
The latest update added a glowy white bar across the top of the note (and in other places). Edit and preview modes, also showing in sidebar views.
Screenshots

Version [Desktop or Mobile]:
Mobile, ios

Could you try updating again? I pushed a hotfix I think might help.

The line went away after updating the theme, but then when I navigated to another note and back it showed up again. I tried changing themes back and forth and that didn’t work. Also deleted and reinstalled theme and it’s still there.
Also it shows up on the breadcrumbs panel only, not any of the other sidebar panels (sidebar, dice roller, outline, etc).

The line went away after updating the theme, but then when I navigated to another note and back it showed up again. I tried changing themes back and forth and that didn’t work. Also deleted and reinstalled theme and it’s still there.
Also it shows up on the breadcrumbs panel only, not any of the other sidebar panels (outline, dice roller, backlinks, etc).

That is very strange that it only shows in the breadcrumbs panel. 🤔 So does it now only show in that Matrix relationship real/implied section?

Sorry, to be clear, it shows in the main window still too AND on the breadcrumbs panel, but that’s the only slide-out pane where it shows up. But yes it shows in the same areas in my original screenshots.

Does it only happen in dark mode? Also, I've made some small changes, perhaps they'll help.

Oh good question. It now is not happening at all anyway, so it appears your changes got it (at least for me). Thanks again!

That's good to know! Happy Holidays! :)


program bugbug

Challenge Change the Font Size of an Element has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
 Thats exactly what i did but it did not run-->

@Coldtrane
Thanks for reporting this. But your code is incorrect.
GitHub Issues are for reporting bugs on the website only.
Please use the Help chat room for getting challenge related help.
you didnt do this task.

Create a second p element after the existing p element with the following kitty ipsum text: Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

Happy Coding.


Send transactions and SmartContracts

Copy from this.
Hello, everyone. I'm pretty new on web3 and still trying to get some basic items.
I have few questions i couldn't found answer 'till now:
1. Can I send a transaction with specific token (like USDC or USDT) without using SmartContract?
1.1. If so, how could I pass the token trough the sendTransaction request?
1.2. If don't, there's any way to send specific tokens without SC?
2. How's the common/recommended way to get the ABI contracts for each token?

Hello @LuisRibeiroo !

Can I send a transaction with specific token (like USDC or USDT) without using SmartContract?

Regarding this the answer is a straight NO. Tokens are inherent to Smart Contracts, in fact, THEY ARE Smart Contracts as the contract decides the token's behavior, supply, price, etc... So in order to interact with specific token you need to interact with the Smart Contract.
That being said, the "weird" value you might be seeing in Metamask approval screen could be due to a wrong parsing of the value on your side.
Every token definition (Smart Contract) comes with a definition of the amount of decimals, meaning how small the smallest unit of the token is. In short, the amount that you would like to transfer would have to be divided but its smallest unit.
For instance: You want to send 0.12 USDT and say USDT defines 18 decimals then you will send 0.12 / 10^18
I just pushed a better example on our sample dapp for you to understand it better, you can check the transfer (write) function here https://github.com/WalletConnect/Web3ModalFlutter/blob/master/example/lib/utils/crypto/eip155.dart#L350 and the Contract ABI here https://github.com/WalletConnect/Web3ModalFlutter/blob/master/example/lib/utils/crypto/smart_contracts/usdt_contract.dart
Regarding on how to get the ABI is as simply as follows: Every token has an address on its blockchain, more precisely, every Smart Contract has an address on its blockchain, say for instance USDT on Ethereum https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7 (same for Sepolia or every other test net)
Now that you located your Contract you just go to the Contract tab, scroll down to Contract ABI and you just export it or copy it as in our example.

Thank you for the quick answer!
With your explanation and example, we're able to send USDC and USDT transaction on Sepolia Testnet. 🚀 🤝
For futures engineers that get this problem here are some tips that I take a while to figure out:

Each Token have a different address on each network (mainnet, sepolia, ropsten, etc); You'll need to find the scan for your network and find the token address there.
You can find the ABI contract for each token on network scan for each token;


Add language service tests for this predicates

Yeserday @DanielRosenwasser asked me to write some language service tests for this predicates - so here they are.

You remembered! Now you're going to hate me but could you split quick info tests from completion tests? That way we can be more granular when we see a break.

:+1:


implement ToJson/FromJson traits for types defined in core

Except for bytes and byte
Related: #976

Pull Request Test Coverage Report for Build 3096
Details

19 of 42 (45.24%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.3%) to 82.883%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

builtin/json.mbt
0
11
0.0%

json/from_json.mbt
19
31
61.29%

Totals

Change from base Build 3091:
-0.3%

Covered Lines:
3927

Relevant Lines:
4738

💛  - Coveralls


PDF processing error - JSONObject["min"] not found

This error sometimes appears when processing PDF attachments. Noticed on NRI atlas after a restart using nunaliit_2.2.9-SNAPSHOT_2020-06-11_fb292e8
2020-07-03 15:10:16,013[ERROR]: Error performing work PROCESS_DOC
org.json.JSONException: JSONObject["min"] not found.
	at org.json.JSONObject.get(JSONObject.java:573)
	at org.json.JSONObject.getNumber(JSONObject.java:712)
	at org.json.JSONObject.getLong(JSONObject.java:785)
	at ca.carleton.gcrc.couch.date.impl.DateStructureElement.<init>(DateStructureElement.java:15)
	at ca.carleton.gcrc.couch.date.impl.DateRobotThread.performProcessDocument(DateRobotThread.java:281)
	at ca.carleton.gcrc.couch.date.impl.DateRobotThread.performWork(DateRobotThread.java:237)
	at ca.carleton.gcrc.couch.date.impl.DateRobotThread.activity(DateRobotThread.java:125)
	at ca.carleton.gcrc.couch.date.impl.DateRobotThread.run(DateRobotThread.java:91)

Writing to confirm that I've noticed the same error on my local system.

If you can isolate a document that is causing this error and examine any nunaliit date objects it contains, that might provide some clues. It looks like line 15 of nunaliit2-couch-date/src/main/java/ca/carleton/gcrc/couch/date/impl/DateStructureElement.java is trying to obtain the minimim (or only) date from a nunaliit date object and failing.

The error is being caused by an invalid date structure, produced by invalid dates in the import data:
{
    "date":"215-02-03",
    "nunaliit_type":"date",
    "index":1
}

The dateStructure class is expecting a "min" key within this json object, and when the Class' constructor attempts to get the long value from this "min" key when it doesn't exist, it causing an error to occur.

I'd recommend we add some defensive code, such as checking if the min key exists before we attempt to use it.

In the case of the data being wrong, it isn't a bad thing to throw an exception, as long as we move on (which I think we do in this case.) It would be nice if we output the key and problematic value that caused the problem as well as the id of the doc causing problems.
In this case, we should also look into the importer code. We shouldn't have invalid Nunaliit date objects getting created in the first place, although I recognize that we don't expect that we are always the ones creating the documents used by Nunaliit. But for the importer, we might need more checks.


Added Buoy-Conditions

Coverage remained the same at 100.0% when pulling 8fa55348fdd2d180e4576ddcc6c0a4557fe9912d on conditions into b14105eb0f39592a8a935f586e0c30b5bc26218c on master.

Coverage remained the same at 100.0% when pulling df1636410cc1ac3ebee7975d5147a9a791b77944 on conditions into b14105eb0f39592a8a935f586e0c30b5bc26218c on master.

Coverage remained the same at 100.0% when pulling 28494c8703334b15eb014f83c9bc05c30e4f86a8 on conditions into b14105eb0f39592a8a935f586e0c30b5bc26218c on master.

Coverage remained the same at 100.0% when pulling 28494c8703334b15eb014f83c9bc05c30e4f86a8 on conditions into b14105eb0f39592a8a935f586e0c30b5bc26218c on master.


Duplicate entries in list when using IReactiveDerivedList

When clearing and adding from a ReactiveDerivedList that has a IReactiveDerivedList I get duplicate entries.
I've created a small repro case in wpf.
https://github.com/modplug/ReactiveDuplicateRepro/tree/Reprocase

Worth mentioning is that this only happens when using a scheduler in the derived list.

This is a severe bug and I am facing it as well.

We've "solved" this by switching to DynamicData. It is much better in every way.

@oysteinkrog This is the route I am currently exploring as well. Do you still use ReactiveUI for anything at all?

Yes we use ReactiveUI for most other things. I've heard there is talk of removing ReactiveList and just using DynamicData...

Makes sense, thank you.


Support play video from byte or Uint8List

I suggest to add Play Video through bytes or Uint8List.

cc @newtaDev

You can use PlayVideoFrom.file() to play from Uint8List

You can use PlayVideoFrom.file() to play from Uint8List

PlayVideoFrom.file() function only takes File. As you know, we cannot use File on the flutter web and we only have to use Uint8List !


Added callback beforeClose and beforeOpen

If you want e.g. change the background of the menu when it´s open, you would normally do it with the open callback. But then the background changes AFTER the menu is opened. So the user got a flickering of the change for the duration of the animation. So I added the beforeClose and the beforeOpen callback.

Please consider of this adding to your documentation, cause the old callbacks are not working anymore


Socket Error

I keep getting this after a sudden:
Socket Error
ECONNREFUSED
<IP_ADDRESS>

yeah, same here.
I keep getting same error. Began all of a sudden. Has been working pretty smoothly before.
apn Raising error: +1ms { [Error: socket hang up] code: 'ECONNRESET', sslError: undefined } undefined undefined
apn Error occurred with trace: +0ms Error: socket hang up
at SecurePair.error (tls.js:1010:23)
at EncryptedStream.CryptoStream._done (tls.js:702:22)
at CleartextStream.read [as _read] (tls.js:498:24)
at CleartextStream.Readable.read (_stream_readable.js:340:10)
at EncryptedStream.onCryptoStreamFinish (tls.js:303:47)
at EncryptedStream.g (events.js:180:16)
at EncryptedStream.emit (events.js:117:20)
at finishMaybe (_stream_writable.js:359:12)
at endWritable (_stream_writable.js:366:3)
at EncryptedStream.Writable.end (_stream_writable.js:344:5)
at EncryptedStream.CryptoStream.end (tls.js:640:31)
at Socket.onend (_stream_readable.js:501:10)
at Socket.g (events.js:180:16)
at Socket.emit (events.js:117:20)
at _stream_readable.js:943:16
at process._tickDomainCallback (node.js:463:13)
I tried to connect to the Apple gateway using openssl client and same credentials and everything is ok.
Really no clue what changed / happened.

ECONNRESET is not a new error for APNS, a increased frequency is probably a change on Apples side but in reality it should be an error you can ignore. If everything still seems to be working correctly aside from the error then it's nothing to worry about.
—A

On 25 Mar 2016, at 12:48, margelov<EMAIL_ADDRESS>wrote:
yeah, same here.
I keep getting same error. Began all of a sudden. Has been working pretty smoothly before.
apn Raising error: +1ms { [Error: socket hang up] code: 'ECONNRESET', sslError: undefined } undefined undefined
apn Error occurred with trace: +0ms Error: socket hang up
at SecurePair.error (tls.js:1010:23)
at EncryptedStream.CryptoStream._done (tls.js:702:22)
at CleartextStream.read as _read
at CleartextStream.Readable.read (_stream_readable.js:340:10)
at EncryptedStream.onCryptoStreamFinish (tls.js:303:47)
at EncryptedStream.g (events.js:180:16)
at EncryptedStream.emit (events.js:117:20)
at finishMaybe (_stream_writable.js:359:12)
at endWritable (_stream_writable.js:366:3)
at EncryptedStream.Writable.end (_stream_writable.js:344:5)
at EncryptedStream.CryptoStream.end (tls.js:640:31)
at Socket.onend (_stream_readable.js:501:10)
at Socket.g (events.js:180:16)
at Socket.emit (events.js:117:20)
at _stream_readable.js:943:16
at process._tickDomainCallback (node.js:463:13)
I tried to connect to the Apple gateway using openssl client and same credentials and everything is ok.
Really no clue what changed / happened.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

Actually it prevents the connection to be made and thus the notification to be sent. So nothing is working.
I guess this is somehow related to the disabling of sslv3 on Apple's side. Tries different secureProtocol and secureOptions options but nothing seems to be working(

Which version of node are you running?
—A

On 25 Mar 2016, at 14:13, margelov<EMAIL_ADDRESS>wrote:
Actually it prevents the connection to be made and thus the notification to be sent. So nothing is working.
I guess this is somehow related to the disabling of sslv3 on Apple's side. Tries different secureProtocol and secureOptions options but nothing seems to be working(
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub

0.10.42 and 0.12.2 same error

Please post the configuration you have been using. This is unlikely to be due to SSLv3 as that happened last year and has had no impact on node-apn use.

{
            production: true,
            maxConnections: 1,
            fastMode:true,
            buffersNotifications:true,
            passphrase:"blablabla",
            cert: fs.readFileSync("/some/path/to/cert/file.pem"),
            key:  fs.readFileSync("/some/path/to/key/file.pem")
       };

I tried setting different options and it doesn't matter... And the openssl command line client connects without problems from the same box, so should not be a matter of server configurations/blocked ports etc. And it has been working really fine up till some moment in March when it suddenly stopped


Errors in rx node retention mechanism in refactored LLCP, possibly leading to erroneous rx node handling

Describe the bug
Two rx node specific errors were identified in the refactored LLCP implementation. Related to the rx node retention mechanism.

In case a remote CPR is initiated while one is ongoing on other connection this would under specific circumstances lead to an rx node being retained, but not released.
In case of a remote channel map update procedure the rx node reference gets stored but not cleared again, which will lead to possible error on the completion (at instant) - IF the rx node referenced has since been re-allocated for use in another procedure on other connection AND this has then been marked for retention, THEN the completion of channel map update, would see a non-released, retained rx node and then mark it for release. Possibly resulting in an assertion in the parallel procedure.

To Reproduce
Build any bluetooth sample and the above mentioned problems will be present.
Impact
The result of these issues is that during execution of LLCP, rx nodes could leak or be improperly released/modified. Consequently resulting in an assertion and/or 'un-explainable' rx node corruption.
Environment
Has been present since merge of #55921

fixed by: https://github.com/zephyrproject-rtos/zephyr/pull/71934

Please use our bug template when reporting bugs. You need to edit this issue to include the information requested in https://github.com/zephyrproject-rtos/zephyr/blob/main/.github/ISSUE_TEMPLATE/001_bug_report.md

@cvinayak  update?

@erbr-ot is this fixed by #71934 ?

Yes, as stated


psattack builder fails on first run

Ran PSbuilder tool and it failed with this error:
Unhandled Exception: System.Net.WebException: The remote server returned an erro
r: (404) Not Found.
at System.Net.WebClient.DownloadFile(Uri address, String fileName)
at PSAttack.Utils.PSAUtils.DownloadFile(String url, String dest)
at PSAttack.Program.Main(String[] args)

Hrm, can you get me the full output from the screen? It would be helpful to see what it was trying to download.
Thanks!

Ok here is the problem. I can compile PSAttack and PSAttackBuilder just fine. PSAttack seems to work fine BUT when I run PSAttackBuilder it errors out. Below is the error I'm getting.
Version 1.0
Unhandled Exception: System.IO.FileNotFoundException: Could not find file 'C:\Users\James Kelly\Desktop\modules.json'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare sha
re, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongP
ath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOption
s options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize
, Boolean checkHost)
at System.IO.StreamReader..ctor(String path)
at PSAttackBuildTool.Program.Main(String[] args)

Hey macubergeek,
Nothing you're doing wrong here, totally a bug. I mentioned this in the the issue you opened under the buildtool today, this is because the build tool is choking on the space in the file path. Should be an easy fix!
Precompiled versions of both PSAttack and the build tool are available on the releases tab of their respective projects page, which you can use in the mean time. Here are the links:
https://github.com/jaredhaight/PSAttack/releases
https://github.com/jaredhaight/PSAttackBuildTool/releases
I'm going to go ahead and close this issue and we can just work off the issue under the build tool.
Thanks for submitting this!


[Spike] Job form follow-up tasks

This PR addresses non-blocking feedback that came up in reviews of #3599

Adds a confirmation prompt before closing form modal DCOS-49264
Adds translation for validation error messages DCOS-49262
Fixes CPUs minimum value validation DCOS-49268
Ensures validation messages end with periods DCOS-49263

Testing

Ensure you are prompted to confirm close when you click "Cancel"
Try adding a fake translation here https://github.com/dcos/dcos-ui/compare/feature/DCOS-48308-new-jobs-form...nat/job-form-followup?expand=1#diff-758096c192079a23867a134b9aa82082R141, change language to Chinese, and then submit the form with an empty CPU field and ensure you see the fake translation
Try submitting form with value 0 for CPU and ensure message says minimum is 0.01 instead of 0.1

Trade-offs
N/A
Dependencies
N/A
Screenshots
N/A

@GeorgiSTodorov Thank you for fixing the integration tests! 🙌


ERROR - Moloch requires full packet captures

Elasticsearch version: 2.4.5
Moloch version: 0.19.1
OS name and version: Ubuntu 16.04.2 Server
How was Moloch built/installed: deb
Provide logs, stack traces and steps to reproduce: random, upon receiving a truncated package.
One of our moloch-capture nodes randomly shuts down displaying the following error message on the log:
Jul 17 08:19:42 reader-libpcap.c:58 reader_libpcap_pcap_cb(): ERROR - Moloch requires full packet captures caplen: 16384 pktlen: 16446
turning offloading off may fix, something like 'ethtool -K INTERFACE tx off sg off gro off gso off lro off tso off'

We have identified it is caused by truncated packets, however using readTruncatedPackets in "etc/config.ini" does not work.
As a fix/workaround we found that readTruncatedPackets is used on capture/reader-libpcap-file.c but not on capture/reader-libpcap.c. By adding the same checks (if (!config.readTruncatedPackets) {,) to the file capture/reader-libpcap.c, the crash no longer occurs.

I post it in case it can be useful and implemented or if a better solution may be possible.
Thanks!!

While this is documented several places I've combined into a FAQ answer https://github.com/aol/moloch/wiki/FAQ#Moloch_requires_full_packet_captures_error

Thanks for the FAQ. I am getting the same error while loading a saved pcap file (I have no control over the capturing process). So, tried the below option
If you are reading from a file you can set readTruncatedPackets=true in the config file, this is the only solution for saved .pcap files

But no change in the error. What am I doing wrong?

I have set the readTruncatedPackets=true option in the /data/moloch/etc/config.ini file - is this the correct config file?
I have restarted the viewer and capture services (using the systemctl restart command) and then run the capture command to load the pcap file (/moloch-capture -r <pcap-file-path> )

What version of moloch
What is the full error
Use --debug with capture and make sure it sees readTruncatedPackets as true

This is latest Moloch 0.19.1 downloaded from http://molo.ch/#downloads on fresh ubuntu 16.04
I used the --debug option and to my surprise it says
Aug  8 11:32:29 config.c:244 moloch_config_boolean(): readTruncatedPackets=false

But I could see the setting value to be set to true in the data/moloch/etc/config.ini file. I have set the below line at the end of that filie
readTruncatedPackets=true

For some reason the moloch-capture application is not using that setting. I am running the capture with the below command:
./moloch-capture --debug -r ~/shark/audio.pcap

The full error is:
Aug  8 11:32:29 reader-libpcap-file.c:369 reader_libpcapfile_pcap_cb(): ERROR - Moloch requires full packet captures caplen: 50 pktlen: 92. If using tcpdump use the "-s0" option, or set readTruncatedPackets in ini file

Remember its an ini file, the end of the file might end up in a different section


Exception to halt game engine

Is it possible to add a param to the run command to exit the program when a bot raises an exception?

Hi Tjorriemorrie,
I can not think of an easy way to do this.  But if your require this functionality please feel free to do it your own version of the game engine.

Hi Tjorriemorrie,
This functionality has now been included in the latest release.


Insert time element global

I had added the global time element
Related #1215
https://github.com/user-attachments/assets/6777034d-a77c-429d-8f60-52042af844b6

Thanks for the PR! This needs to follow our Git style and exclude unrelated changes before we can review it.


Support metrics for IOPS and bandwidth real time

https://github.com/longhorn/longhorn/issues/2406
Depends on https://github.com/longhorn/longhorn-engine/pull/794 and https://github.com/longhorn/longhorn-instance-manager/pull/158
Signed-off-by: Derek Su<EMAIL_ADDRESS>

Case 1. Run dd if=/dev/urandom of=30G bs=1M count=30000 oflag=direct in a pod with a longhorn volume.

IO status got from iostat -cx 1 sda

IO status go from longhorn metrics

Case 2: Copy one 30GB file in the volume to the same volume.

@Mergifyio backport v1.4.x


Add basic support for jwt LDAP auth

Allows users to authenticate with a JWT token distributed by the ldap-jwt web service. Support for multiple auth types will be added as an enhancement when a plan to continue supporting environment variable config can be created that works with an array of auth config options.
Review Checklist

Tests were added to cover all code changes
Documentation was added / updated
Code and tests follow standards in CONTRIBUTING.md

LGTM. Might want to have a gander at the LDAP library docs to make sure that r.ok is a sufficient check against all possible error returns.

@dpuccetti you can authenticate the same as always - just pass the jwt in the Authorization header instead of the Google token.

@nagem Can you add the new env variable to sample.config file?

@kofalt The source code of the tiny node service we're using is pretty simple, I don't see any way we'd get bit by that r.ok logic. Even if it did I doubt the return would have a valid email.

@ryansanford added.

@nagem Dev and Prod environment changes to default SCITRAN_AUTH_AUTH_TYPE correctly are complete.
Suggest setting default in api/config.py to align with the related existing defaults.
After that, LGTM.


Error when using Select on MacOS

Description
When using the select component on MacOS a render error is thrown
CodeSandbox/Snack link
https://snack.expo.dev/J8g7pVAuA
Steps to reproduce
The below code works on all devices except macos. The error thrown is, "Text strings must be rendered within a  component.
<Select minWidth="200" accessibilityLabel="Choose Service" placeholder="Choose Service" _selectedItem={{         bg: "teal.600",         endIcon: <CheckIcon size={5} />       }} mt="1">           <Select.Item label="UX Research" value="ux" />           <Select.Item label="Web Development" value="web" />           <Select.Item label="Cross Platform Development" value="cross" />           <Select.Item label="UI Designing" value="ui" />           <Select.Item label="Backend Development" value="backend" />         </Select>
NativeBase Version
3.4.22
Platform

[ ] Android
[ ] CRA
[ ] Expo
[ ] iOS
[ ] Next

Other Platform
MacOS
Additional Information
Please note this is code taken directly from the native base select example

Think this was my mistake so I will close.

Thanks for reporting @josh-thompson13.
We will check this


Incorrect use of operator OR in file

Dear repo maintainers,
while I was investigating the queries for log analytics, I found that there is an error in file:
https://github.com/GoogleCloudPlatform/security-analytics/blob/4e139fe1ac21745dcf4cf9c0f942dedda0c83817/backends/log_analytics/sql/1_30_console_accesses.sql#L34
comma needs to be used instead of an OR, within parentheses of operator IN.
That way the query succeeds, otherwise syntax error is given.

Keeping this open for now until fix is in.

Fixed with now-merged PR #35 (commit)


Specify apt explicitly

This playbook is far from supporting e.g. yum anyway, and using
{{ ansible_pkg_mgr }} won't group multiple package installs in
the same transaction anyway, so it's not recommended.

Is fixed by PR #19


editable forms - click event and logic

I would like to do a post back and collect form data in the widget.
SO this means databinding from the value of the widget to a JSON or name value array and then adding that to the URL as a payload.
this would allow editable forms

I would like to do a post back and collect form data in the widget.
SO this means databinding from the value of the widget to a JSON or name value array and then adding that to the URL as a payload.
this would allow editable forms

I think this library is not suitable for your scene, it is for displaying UI dynamically.

https://github.com/neohelden/Flutter-AdaptiveCards
This does allow postback of data.


Monte Carlo for Smalltalk

I am sorry it's taking so long to address this. You are basically the only one that we know that can review smalltalk besides @nic-hartley.

I'll take a look at it

Cool, thanks a bunch!

Finally had time to review this, Christmas has been busy af. Apologies for the delay.

@nic-hartley Thanks a bunch for the review! Absolutely no need to apologize. This is a side project that you are volunteering your own time for. We appreciate any help you can provide!

Hello @Neverik!
Since the last review has not been addressed for a little less than 3 years, I'm going to assume that you are too busy to respond, or you have forgotten about it entirely.
As such, I will close this PR for now, feel free to re-open it when you have time for it :slightly_smiling_face:


Feature request : Intigration with LuckPerms

Is your feature request related to a problem? Please describe.
I would like to give none-OP users access to use the /backup commands
Describe the solution you'd like
Would it be possible to give this mod LuckPerms permition so groups can be given access to /backup command though LuckPerms?
Describe alternatives you've considered
Giving other users OP just to use /backup seems like a bad idea :(
Additional context
Add any other context or screenshots about the feature request here.

Letting any user run the backup command is certainly not something I expected honestly.
That being said, I'm not acquainted with luckperms but I would've expected it to be able to override a command's permission check without requiring specific integration. Is that not the case?

LuckPerms can be used to give users/groups rights to do certain commands that usually is just reserved for OP. Its handy if you got people on your server you want to give certain admin privileges to without giving them full OP.
All I know is that mods need work with certain APIs for LuckPerms to recognise an mod/plugin.
According to its Modrinth page for the Fabric version of LP, "fabric-permissions-api" need to be used: https://github.com/lucko/fabric-permissions-api

Is your feature request related to a problem? Please describe. I would like to give none-OP users access to use the /backup commands
Describe the solution you'd like Would it be possible to give this mod LuckPerms permition so groups can be given access to /backup command though LuckPerms?
Describe alternatives you've considered Giving other users OP just to use /backup seems like a bad idea :(
Additional context Add any other context or screenshots about the feature request here.

What is your reasoning for this use case? I'm just curious, as backups are meant to be a set and let run by itself kind of thing, where the only time someone really needs to manually do a backup is if an admin needs to make a potentially breaking change to the server.

Is your feature request related to a problem? Please describe. I would like to give none-OP users access to use the /backup commands
Describe the solution you'd like Would it be possible to give this mod LuckPerms permition so groups can be given access to /backup command though LuckPerms?
Describe alternatives you've considered Giving other users OP just to use /backup seems like a bad idea :(
Additional context Add any other context or screenshots about the feature request here.

What is your reasoning for this use case? I'm just curious, as backups are meant to be a set and let run by itself kind of thing, where the only time someone really needs to manually do a backup is if an admin needs to make a potentially breaking change to the server.

Here are some reasons I can think of:
-Some people (like me) likes to take an backup before and after builds to document the before and after
-On larger servers, where the admin roles are more split up, not only 1 person or the one who has all the admin rights may be able to take backups when needed out of schedules.

Ultimately, I think specifically integrating with another mod isn't really worth it - but what I can do is get a config option which adjusts the required permission level, and setting it to 0 would then let everyone run it?

I was under the impression all you had to do was add a permission and then all permission mods should be able to utilize it. I don't think allowing everyone to use it is the goal they're seeking.

Whilst permission apis do exist, they'd require separate steps for basically every single minecraft version and modloader combination - something that ultimately just isn't going to be viable.

Letting everyone run the backup commands would not be a good idea ether :)
I see this question as answered now :)


Does the SDK support Billing API?

Hi, I want to get the resource usage data form my Azure VM, and I think I need to use the Billing API (Resource Usage API) to do this. I am wondering whether there is any class that support the Billing API in the python SDK?
Appreciate for the help!

Hi,
I will publish a preview package called azure-mgmt-commerce this week. I keep this issue open till them, and do not hesitate to provide feedback if you have issues on it!
Thank you!

Thanks a lot, looking forward to your new package!

Package just released:
https://pypi.python.org/pypi/azure-mgmt-commerce/0.30.0rc4
As part of the azure 2.0.0rc4 distribution:
https://pypi.python.org/pypi/azure/2.0.0rc4
Sample:
http://azure-sdk-for-python.readthedocs.io/en/latest/resourcemanagementcommerce.html
This is a preview package. Please fill an issue if you encounter difficulties.
Thank you!

Dear Mr. Imazuel,
Thank you so much for the package. I can now download some object using your package. But I am wondering how can I load the data inside the object. For example, the usage data I can retrieve using your package is like
<azure.mgmt.commerce.models.usage_aggregation_paged.UsageAggregationPaged object at 0x7f593994cd90>
But I do not know how can I get the understandable data from this object. Could you please give me some instruction?
Thank you so much!
Yan


Read and write buttons

Ionic app doesn't have "read" and "write" buttons.
Are these in development?

Find it? :)

Yep found the read and write. This is a non-issue.