Cordova on android music does not play.

We have HTML5 game which is using soundjs for handling sounds in game.
Currently we have problem with android. Previously we have had problem with sounds in our app and we solved it using cordova media plugin. Basically it calls android native player to play sounds.
Could you please advise should we continue using SoundJS or currently it is not possible.
Thanks

Hi,
SoundJS has not been testing with Cordova/phonegap, but there has been some discussion in the past here and here.
It seems like it is possible, but there can be issues and the causes and solutions to the issues are unclear.  I suspect it has something to do with defaulting to WebAudioPlugin which needs to load audio through xhr, which could be solved by registering HTMLAudioPlugin.
Ideally we would like to create a Cordova/PhoneGap plugin, and would be happy to assist anyone who would like to try making one.
Hopefully that helps, and if you find a solution we'd like to hear about it.

I finally got this to work. When loading audio files over file:, none of the documented events are being generated. this causes the load queue to hang as it starts to load as many tags as max connections are set, then none of those ever update to a completed/loaded state. Even setting the number of connections to the total number of files you want to load does not address the issue as you never get an event any of the tags has loaded causing your loader to just hang. I checked my document and the  tags are added to the DOM and appear to be valid.
My solution was to add a few lines of code inside TagRequest.js load function to check the protocol is file: and if so call _handleTagComplete. This addresses the problem, keeps the load queue moving, has no impact with LoadQueue working as documented, and didn't break my app when not running under Cordova, and assumes that if loading over file: then the audio is immediately available (which it appears to be). But so far I only tested on ios I still need to test Android and Windows Phone.

Awesome, thanks for sharing your results.
Hopefully that will help other people with similar problems.

We will also look at how we can solve this on our end.

Another part of the solution developers need to know is you must register HTMLAudioPlugin only, and do not register the WebAudioPlugin and do not call RegisterDefaultPlugins when you are loading over file:. If WebAudioPlugin is registered all the audio tag loads fail with the file error.

SoundJS has added a CordovaAudioPlugin, available on github, which will work with any Cordova app and tools that utilize Cordova such as PhoneGap or Ionic.  This is an optional plugin that has to be registered using createjs.Sound.registerPlugins, and requires the Cordova Media plugin.
Some issues worth noting:

Don't forget to update your audio filepath with the appropriate prefix (for example /android_asset/www).
Position for the Cordova Media plugin is asynchronous, so SoundInstance.position returns a best guess during playback that is synchronized when the audio is paused.  We also provide a direct mapping to the Media method with SoundInstance.getCurrentPosition.
AudioSprite performance is not reliable, so I would advise giving them a larger margin for error.

This plugin is very new and would benefit from real world testing.  Feedback and bug reports are very welcome.  Thanks, hopefully it proves helpful.

Just tested it with the "SoundJS: Mobile Safe" example (https://github.com/CreateJS/SoundJS/blob/master/examples/MobileSafe.html) , using PhoneGap build for iOS build. Installed and no sound.
Code is the same as the example, except the following changes:

comment out the "if (!createjs.Sound.initializeDefaultPlugins())" block
add "createjs.Sound.registerPlugins([createjs.CordovaAudioPlugin]);"

You can find the test code here: https://github.com/mayforestJ/JustTest
Questions:

Should I call createjs.Sound.initializeDefaultPlugins() even I need to register CordovaAudioPlugin?
How to include Cordova Media plugin mentioned above while using phoneGap build?

Thanks a lot for the help!

Thanks for checking it out.

No, initializeDefaultPlugins is not needed if you call registerPlugins unless the register fails.

Everything is documented in the NEXT docs, so if you unzip that locally it may be helpful.

Cordova Media plugin is the plugin you want.  I used the following in CLI:
cordova plugin add org.apache.cordova.media

I think you also need to wait for the Cordova device ready event before starting the soundjs code.
Hope that helps and please let us know the results.

Thanks a lot for your kind help.
I am new to the PhoneGap. In fact, haven't installed it yet. Just use PhoneGap Build from Adobe to try it out. I am assuming that I will need to install PhoneGap before I can include the Cordova media plugin. Or maybe I can include that plugin from PhoneGap Build? Will be back on my experiment.


BYN currency support not stable

Cases in which it fails

Export xml, add a BYN account with desktop gnucash 2.6.13, in gnucash-android open the .gnca file
Create default accounts with USD currency, manually create an account with BYN currency in Assets, go to Assets
Set default currency to BYN and create default accounts, go to main screen

Expected behaviour in each case

Import success
Show the list of Asset accounts
Show parent accounts

Actual behaviour in each case

Import fails with message "Unsupported ISO 4217 currency code: BYN"
Crash
Crash immediately, and then at every startup. Have to uninstall

Software specifications

GnuCash Android version: 2.1.3
System Android version: 5.0.2
Device type: Redmi Note 2

This currency isn't supported by Java until the latests releases (see this OpenJDK bug report). It seems it's possible to add new currencies, but only from Java 7 onwards.
One possibility would be to use Joda-Money. It supports BYN and can be easily extended to support any new currency. It's not API stable yet, so we should check other alternatives first.
By the way, Joda-Money also provides a Money class which we could evaluate to replace ours.

This is can (and probably should) be fixable. We now use our own commodities and if I recall correctly, @rivaldi8 you once did some cleanup to use only our Commodities instead of java Currency.
Maybe there is some place where Currency is still used. If we change it to commodity, this issue should be fixed. BYN was added to the commodities a while back I think, although I don't recall if only to new installations or also for existing ones. The latter case can easily be fixed with a database migration.

About Joda-Money, well, it is still evolving. If they get to a 1.0 at some point we can evaluate it.
Although I'm beginning to have increasing inertia to new libraries as we have quite a few already. Build time keeps going up and the apk  is starting to hit the 65k method limit in the develop branch.

Ok, I was convinced that Commodity worked on top of Currency internally. Now I see that's not the case. After quick look at uses of Currency, it seems they could be handled by Commodity. I'll work then on finishing the migration.

@shrddr @rivaldi8 is this issue fixed in v2.1.5?

@codinguser I have v2.1.5 and it seems that BYN are supported now (at least for importing data from gnucash for desktop)

@codinguser The issues reported here seem to be fixed now. There are still a few uses of Currency which may make the application crash, though. I hope to finish the migration to Commodity shortly.

Ok!
On Wed 12. Apr 2017 at 17:59, Àlex Magaz Graça<EMAIL_ADDRESS>wrote:

@codinguser https://github.com/codinguser The issues reported here seem
to be fixed now. There are still a few uses of Currency which may make the
application crash, though. I hope to finish the migration to Commodity
shortly.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/codinguser/gnucash-android/issues/635#issuecomment-293625353,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAQ420VCXBAvETffNlhj2pvPRwCDqB6Kks5rvPT3gaJpZM4LZa1F
.

I've just finished the migration to Commodity.


[Little11] Cydia, Browsers

Hello, I liked your [Little11] Patch on Cydia but, when I installed it, the browsers stopped working. Please fix it, and if you can add options for the bottom inset like [LittleXS] patch, it would be better.

Hi I need help


Fix build for targets that don't support sse2, sse4.2, or pclmulqdq features

The current build.rs script emits the crc32fast_stdarchx86 cfg if the version of rustc is greater than 1.27, regardless of the underlying compilation target.
However, when building this crate for targets that don't support the sse2, sse4.2, and pclmulqdq features, the compiler will still emit SSE instructions. This causes one of two very strange problems:

At build time, a cryptic LLVM error is thrown: LLVM ERROR: Do not know how to split this operator's operand!, which (I think) occurs because LLVM is not expecting to parse/emit SSE instructions when not configured to do so.
At runtime, fatal CPU exceptions occur, e.g., a General Protection Fault or Invalid Opcode on x86, which will crash/hang the machine. This is particularly problematic for embedded systems and OS kernel environments.

This PR adds the correct feature gates to ensure that invalid instructions cannot be emitted, i.e., that SSE instructions are only used if the target machine supports them.
Related: the memchr crate already experienced this problem. Some related issues:

https://github.com/rust-lang/rust/issues/61721
https://github.com/BurntSushi/memchr/pull/77

Hi, thanks for the report!
FWIW, the actual instruction calls are guarded via cpuid feature checks, so there shouldn't actually be any runtime errors. It is bad however that LLVM would fail at compile time, that's annoying and not expected.
I'm a bit reluctant to directly merge this in, because that seems like it would result in the fast paths only enabled when the build target is explicitly specified to support the instruction sets for the fast path. The original idea here was that LLVM should be able to compile the code correctly, and then it's really only ran when we can determine at runtime that the CPU we're running on supports the instruction sets.
Can you share a little more about the environment you're seeing the error in, so I could try to reproduce and potentially toy around with a few options?

FWIW, the actual instruction calls are guarded via cpuid feature checks, so there shouldn't actually be any runtime errors. It is bad however that LLVM would fail at compile time, that's annoying and not expected.

Agreed, I'm not sure how I got those originally, but the LLVM build-time failure is reproducible.

I'm a bit reluctant to directly merge this in, because that seems like it would result in the fast paths only enabled when the build target is explicitly specified to support the instruction sets for the fast path, which may not the default case for all of them (e.g. pclmulqdq or sse4.2 I believe). The original idea here was that LLVM should be able to compile the code correctly, and then it's really only ran when we can determine at runtime that the CPU we're running on supports the instruction sets.

Understood, and I wouldn't want to jeopardize existing usage by other targets. Another option would be to modify the build.rs script to consider the available target features.

... For example from the memchr fix, it looks like we may only need to guard based on sse2:

Yes, that may be correct, but I wanted to be absolutely certain that all required features were supported by the actual target before using them. I can experiment with various combinations of those 3 feature flags to see whether sse2 encompasses the others sufficiently.

Can you share a little more about the environment you're seeing the error in, so I could try to reproduce and potentially toy around with a few options?

Certainly! I'm building this for Theseus OS, which uses a fairly normal x86_64 compiler target that disables SIMD in favor of soft floating point. This is a common approach in kernels to avoid needing to save all SIMD registers on every context switch.
The target spec file can be found here, note which features are disabled.
The log I get when building this crate for that target:
$ cargo build --no-default-features -Z unstable-options -Z build-std=core,alloc -Z build-std-features=compiler-builtins-mem  --target x86_64-theseus.json
   Compiling crc32fast v1.2.1 (/home/kevin/crc32fast)
LLVM ERROR: Do not know how to split the result of this operator!

error: could not compile `crc32fast`

If that's not enough details to reproduce it, I could create a separate repo that demonstrates the problem too. Just let me know, thanks!

Digging deeper into the code, I think the culprit is two-fold:

The calculate function is unconditionally instructed to use & emit SIMD instructions by means of the target_feature(enable = ...) block.

This is what likely causes the LLVM error.

The cfg values in are checked at runtime using the cfg!() macro rather than using #[cfg] attribute which is resolved at compile time.

I think you mentioned that this behavior is desired, so we don't need to change this.

There are a few ways to fix this.

Don't invoke the calculate() function in State::update() unless either std is active or all of the required sse2, pclmulqdq, and sse4.1 features are enabled.
Gate the calculate() function itself with the same cfg statement.
Any other form of cfg statements/attributes applied where relevant.

Hey, so I'm pretty sure that the runtime-guarding itself is okay; we will only ever return the specialized struct from the constructor if the runtime architecture meets all of our requirements, and the calculate function can only ever be invoked by the impl if the struct is returned. This basically matches the first option you outlined, it's just a little more indirect.
Having played around with a few different combinations of target_feature guards and target specs (based on the file you provided), I think I'd feel comfortable merging this PR if we could restrict the target_feature checks to sse2 only. This seems like to would:

fix your problem
align well with the solution that's landed in memchr
be less likely to regress performance on other target specs

Would that work for you?

Hey, so I'm pretty sure that the runtime-guarding itself is okay; we will only ever return the specialized struct from the constructor if the runtime architecture meets all of our requirements, and the calculate function can only ever be invoked by the impl if the struct is returned. This basically matches the first option you outlined, it's just a little more indirect.

I agree, the runtime checking appears to be correct.

Having played around with a few different combinations of target_feature guards and target specs (based on the file you provided), I think I'd feel comfortable merging this PR if we could restrict the target_feature checks to sse2 only. This seems like to would:

fix your problem
align well with the solution that's landed in memchr
be less likely to regress performance on other target specs

Would that work for you?

I'll test this out and let you know if it still builds correctly. Thanks for proposing a new/better fix!

Good news, I can confirm that change works for all of my build targets, including soft float, sse, avx, and more.
Thanks for digging into this with me and helping me arrive at the correct fix! I've pushed a commit that gates the specialized module behind only the target_feature = "sse2" cfg.

Out of curiosity, were you able to reproduce that LLVM build error?

Awesome, thanks so much! I'll merge this in now, and then cut a release later today.

Out of curiosity, were you able to reproduce that LLVM build error?

Yep, was able to reproduce using your target file, thanks again for supplying that!

Great! Glad to hear it, thanks again.

Published as version 1.2.2.


YodaStyleFixer - fix for conditions weird are

While on the other fix working I was, it thinking me made what the reason is for these conditions:
            if ($token->isComment() || $token->isWhitespace()) {
                if ($expectNothing) {
                    return false;
                }

                continue;
            }

Why do the check we want for $expectNothing only for comments and whitespaces, expect the opposite I would. So these 2 test case added I have and what weird is only 1 failed has: https://travis-ci.org/github/FriendsOfPHP/PHP-CS-Fixer/jobs/678270023
The fix to not nest them is, @bgotink, @keradus and @SpacePossum I ping (as they the authors are) to review.
May the force be with you.

looks like a legit bug fix to me, thanks :+1:

Thank you @kubawerlos.


catkin: 0.7.28-1 in 'melodic/distribution.yaml' [bloom]

Increasing version of package(s) in repository catkin to 0.7.28-1:

upstream repository: git@github.com:ros/catkin.git
release repository: https://github.com/ros-gbp/catkin-release.git
distro file: melodic/distribution.yaml
bloom version: 0.9.7
previous version for package: 0.7.26-1

catkin
* use single quote for cached environment values without old values (#1108 <https://github.com/ros/catkin/issues/1108>)
* [Windows] avoid file COPY for symlink sources (#1109 <https://github.com/ros/catkin/issues/1109>)
* [Windows] add .lib into the symlink install file list (#1110 <https://github.com/ros/catkin/issues/1110>)

Waiting for other Melodic releases...


Fix json schema

Issue
n/a
Description
Small bug see in api creation workflow.
By default the json-schema control is valid. but if the schema form have required field we need to change it when detected.
and formly detect it after the AfterViewInit
Additional context

:tada: This PR is included in version 5.20.1 :tada:
The release is available on:

npm package (@latest dist-tag)
npm package (@latest dist-tag)
npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Repository configuration option to not make repeted requests to a repository after recieving a 401 during dependency resolution

Expected Behavior

If a remote repository returns a 401 (not authorized) when requesting a dependency, we should not try to resolve any further dependencies from that repository for the duration of the current build. This would allow the user to mitigate an incorrect password without potentially locking their account.
Current Behavior

We continue to try to retrieve dependencies from a remote repository despite previous HTTP return codes.
Context

We are using a Maven2 repository that requires basic auth.  If the password is incorrect we and there are multiple dependencies,the repository receives multiple invalid access attempts from the provided username and responds by locking the account mid build before the user can mitigate the error.  This situation is common enough with the password update requirements on the accounts.
An alternative would be better authentication methods to the repository, but in the environment I work in this is not possible.

We did that in Gradle 4.3 and it let to many complaints, see https://github.com/gradle/gradle/issues/3335
Short version: There are many repositories, which are partially public. I.e. they return 200 for some dependencies and 401 for others. If we blacklisted such a repository on the first 401, then we would fail to find things that would actually return 200.


Bumps cilium to 1.11.8

Issue #, if available:
Description of changes:
This was tested on a capv cluster, removing the default cilium install and replacing with this new 1.11 build.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/unhold

/lgtm
/approve


[interop] Add grpc-java 1.64.0 to client_matrix.py

@sergiitk Could you help with this one pelase. Needs the release notes: no label and an approval.


chore: move jest-expo from dependencies to devDependencies

Based on feedback from https://github.com/teovillanueva/react-native-web-maps/issues/30. Should be pretty low risk :)

Is this ready to go?


[5.2] Add withQueryString to RedirectResponse

Useful for forwarding the query string on landing pages that always redirect.
For example, if a password reminder email sends a user to www.sportsite.com?modal=password_reset and the landing route redirects to www.sportsite.com/round/5, the query string parameters are preserved (making it redirect to www.sportsite.com/round/5?modal=password_reset)

Holding off on this.


uffizzi cluster sleep / wake

Add CLI subcommands:

uffizzi cluster sleep
uffizzi cluster wake

Usage

(Default) Target cluster is the current kubeconfig context uffizzi cluster sleep
(Optional) Target cluster is <name>  - uffizzi cluster sleep my-cluster

Help page  (sleep)
$ uffizzi cluster sleep -h
uffizzi-cluster-sleep - put a cluster to sleep (non-destructive)
================================================================

## SYNOPSIS
    uffizzi cluster sleep [CLUSTER_NAME]

## DESCRIPTION
    Scales a Uffizzi cluster down to zero resource utilization
    while keeping the namespace and any stateful resources,
    like persistent volume claims. If no CLUSTER_NAME is
    specified, the kubeconfig current context is used.

    For more information on Uffizzi clusters, see:
    https://docs.uffizzi.com/references/cli/

## OPTIONS
    CLUSTER_NAME
    The name of the target Uffizzi cluster

## EXAMPLES
    To put the Uffizzi cluster in the current context to
    sleep, run:

        $ uffizzi cluster sleep

    To put a Uffizzi cluster outside the current context to
    sleep, run:

        $ uffizzi cluster sleep my-cluster

Help page  (wake)
$ uffizzi cluster wake -h
uffizzi-cluster-sleep - wake a cluster that is sleeping
================================================================

## SYNOPSIS
    uffizzi cluster sleep [CLUSTER_NAME]

## DESCRIPTION
    Scales a sleeping Uffizzi cluster up to its original resource
    utilization. If no CLUSTER_NAME is specified, the current
    kubeconfig context is used.

    For more information on Uffizzi clusters, see:
    https://docs.uffizzi.com/references/cli/

## OPTIONS
    CLUSTER_NAME
    The name of the target Uffizzi cluster

## EXAMPLES
    To wake the Uffizzi cluster in the current context, run:

        $ uffizzi cluster wake

    To wake a Uffizzi cluster outside the current context , run:

        $ uffizzi cluster wake my-cluster

@moklidia
After creating a cluster, the response to the "sleep" command returns the error "Failed to scale down cluster". When entering the command a second time, "Cluster almost was successfully scaled down" is returned


display addon info

Display the addon info in the table.
Maybe pull this in, or just use as inspiration for the big rewrite.
Thanks!

thanks!


Add number

Hi @oguzkarademir I reviewed your codes. These look ok but I am not 100% sure because I am not good at reviewing others code for now and I need more practice. I am not going to merge your pull request because there are also two other reviewers to review and approve your codes. I think the guy should merge the pull request who is 100% sure about the codes.
Greetings
Sayed

👍

The script looks clear and perfect. May be I understood something wrong, but when I enter the number return the console: "All saved numbers: undefined". The handler Add number finish the handler Display number and Display number-handler contain the comment: "// this handler works, no ned to change it. Just to study it!". I thought that display should show me the number, which I added. May be there is mistakes in the template or my pull?

@okozmovskaya there is a part to be written in display-array.js,  @pavelbidenko2018 will write the logic

The script looks clear and perfect. May be I understood something wrong, but when I enter the number return the console: "All saved numbers: undefined". The handler Add number finish the handler Display number and Display number-handler contain the comment: "// this handler works, no ned to change it. Just to study it!". I thought that display should show me the number, which I added. May be there is mistakes in the template or my pull?

@okozmovskaya there is a part to be written in display-array.js, @pavelbidenko2018 will write the logic

Yes, you are right, I didn't see the beginning of script

The script looks clear and perfect. May be I understood something wrong, but when I enter the number return the console: "All saved numbers: undefined". The handler Add number finish the handler Display number and Display number-handler contain the comment: "// this handler works, no ned to change it. Just to study it!". I thought that display should show me the number, which I added. May be there is mistakes in the template or my pull?

@okozmovskaya there is a part to be written in display-array.js, @pavelbidenko2018 will write the logic

Yes, you are right, I didn't see the beginning of script


[Hotfix - To Main] DESENG 665: Fix MET-web CI build errors

Issue #: 🎟 DESENG-665
Description of changes:

Hotfix Fix MET-web CI build errors

Update the npm install command in CI for the web app to use --legacy-peer-deps, resolving a dependency issue that was causing the build to fail

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the met-public license (Apache 2.0).

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 75.96%. Comparing base (a5d65be) to head (4f81ad5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2557   +/-   ##
=======================================
  Coverage   75.96%   75.96%
=======================================
  Files         609      609
  Lines       21959    21959
  Branches     1711     1711
=======================================
  Hits        16681    16681
  Misses       5015     5015
  Partials      263      263

Flag
Coverage Δ

metweb
64.72% <ø> (ø)

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


Question

I have a low-end device with severe battery optimization. I was wondering if this app can be used without the WakeLock in the background so that it checks an endpoint (or just cell type (3g, 4g, ...) and strength) approximately every 10 minutes and if it does not connect (or sees 3g or weak 4g), issues a notification.
(So that for example I move around a bit to get a better reception, not to miss an important email or such.)

Hi,
I won't add any cell type and strength detection. This is not the purpose of the app (which is monitoring services, network has to be active). Adding a switch for not acquiring a wake lock would be possible, but I don't know if it makes sense. The device wakes up anyway on task start (it has to, of course). It should not suspend during execution, thats the purpose of the wake lock. With short running tasks the device won't suspend anyway and the wake lock makes no difference. It depends on the device if wake locks do work anyway and if you enable battery optimization, chances are high that the wake lock is ignored anyway. The wake lock is mainly for long running tasks like downloads.
I don't know if I understand you correctly, but you may add a task to ping <IP_ADDRESS> one time. The time for this ping is not even measurable and it is always successful of course. It however checks network first and if not connected at all to any network (mobile or WiFi), it does not execute the ping and you receive a notification if the task has enabled notifications and "notifications when network is not active" are enabled in the global settings. The wake lock is not relevant in this case.

Hi,
The app checks if it is connected to any network because a call to a service will always fail without any network and execution makes no sense. Timeouts are detected and reported as failure with according message. The app cannot decide if the timeout was caused by a bad service or a bad network. Under conditions with very unreliable network, the app probably makes no sense, because it would trigger to much false alarms because of broken connections.  But, as mentioned, the purpose is service checking and not detection of reliable network connections.
The alarms are independent from the wake lock. They should always trigger exactly because these kind of alarms are made for calendar apps and alarm clocks.  After triggering, the device is guaranteed to stay awake for a few seconds anyway, that's why the wake lock does not make any difference with fast tasks. The app misuses the alarms but they are, to my experience, the only way to ensure exact execution even with suspended or locked devices. If you actively use the app does not matter. It is meant to run in the background. To my experience with short intervals (shorter than 15 min) and enabled battery optimization execution may become inaccurate on some devices. Besides that, execution is very reliable, to my experience. But of course, I make no guarantees and I'm not able to do extensive testing.


BUG: qhull incorrect tests if the point is inside convex hull

Describe your issue.
scipy.interpolate.LinearNDInterpolator should be defined on each input point. Apparently for some input points that's not true. The reason is wrong calculation inside qhull if point is inside convex hull of input points or not.
Sample data for reproducing error are here.
Reproducing Code Example
import json

from scipy.interpolate import LinearNDInterpolator

import numpy as np

with open('bug.json', 'r') as f:
    points2d = np.array(json.load(f))

r = np.ones_like(points2d[:, 0])
r_predictor = LinearNDInterpolator(points2d, r)
assert (~np.isnan(r_predictor(points2d))).all()

Error message
AssertionError                            Traceback (most recent call last)
File /home/grigory/bug.py:12
     10 r = np.ones_like(points2d[:, 0])
     11 r_predictor = LinearNDInterpolator(points2d, r)
---> 12 assert (~np.isnan(r_predictor(points2d))).all()

SciPy/NumPy/Python version and system information
1.10.1 1.26.4 sys.version_info(major=3, minor=10, micro=14, releaselevel='final', serial=0)
Build Dependencies:
  blas:
    detection method: cmake
    found: true
    include directory: unknown
    lib directory: unknown
    name: OpenBLAS
    openblas configuration: unknown
    pc file directory: unknown
    version: 0.3.18
  lapack:
    detection method: cmake
    found: true
    include directory: unknown
    lib directory: unknown
    name: OpenBLAS
    openblas configuration: unknown
    pc file directory: unknown
    version: 0.3.18
Compilers:
  c:
    commands: cc
    linker: ld.bfd
    name: gcc
    version: 10.2.1
  c++:
    commands: c++
    linker: ld.bfd
    name: gcc
    version: 10.2.1
  cython:
    commands: cython
    linker: cython
    name: cython
    version: 0.29.33
  fortran:
    commands: gfortran
    linker: ld.bfd
    name: gcc
    version: 10.2.1
  pythran:
    include directory: /tmp/pip-build-env-xob7rtip/overlay/lib/python3.10/site-packages/pythran
    version: 0.12.1
Machine Information:
  build:
    cpu: x86_64
    endian: little
    family: x86_64
    system: linux
  cross-compiled: false
  host:
    cpu: x86_64
    endian: little
    family: x86_64
    system: linux
Python Information:
  path: /opt/python/cp310-cp310/bin/python
  version: '3.10'

Could you be more specific about what you think the problem with qhull is?

@lucascolley the reason for np.nan appearence is this part. So the function qhull._find_simplex gives incorrect result in this particular case. It's not easy to debug why, it happens deeply inside qhull code.

Indeed there's a single nan in a corner of the convex hull (the star shows outp = interp(points2d); points2d[np.isnan(outp)] ):

changing the interpolator to interp = LinearNDInterpolator(points2d, values, fill_value=-101) makes the offending value to be -101 instead of a nan, so it's likely that qhull._find_simplex reports that the point is outside.
The routine is here: https://github.com/scipy/scipy/blob/main/scipy/spatial/_qhull.pyx#L1470. It's in cython, so it's possible to either walk in gdb or insert enough diagnostic prints to pinpoint what goes wrong.

@ev-br yes, you are right, there is a single nan. I made the same experiment with fill_value, so I blamed qhull._find_simplex.
You are right, smth bad is happening inside cython code, not inside qhull c code. So I'll try to localize the problem.

It looks to me like there's query between a generator and its membership in the convex hull, which returns a "distance" of -0.000000000000035390 while -eps is -0.000000000000022204.  The bailout happens after the eps check here: https://github.com/scipy/scipy/blob/main/scipy/spatial/_qhull.pyx#L1434. When I excise the reproducer into spatial alone and use the public find_simplex, it suffices to increase the size of tol. I'll need to think about this a bit I guess, I suppose the argument is that you should get "exactly" 0.0 for a comparison of the generator with itself on the hull/simplex.

Is the behavior here actually unexpected?

Is the behavior here actually unexpected? I guess it is a bit weird to count the hull vertex outside.

Same here. I'd naively expect that the data points are inside not outside. Again very naively, this feels like some sort of numerical error with a weirdly shaped simplex (three data points cluster together at the corner?)


Apply suite diagnostics to the entire lexical context.

This PR applies all suite diagnostics* to every decl group (declaring type or extension) in the lexical context during @Suite and @Test expansion. For example:
struct S1<T> {
  @Suite struct S2 { // 🛑 Attribute 'Suite' cannot be applied to a generic structure
    @Test func f() {} // 🛑 Attribute 'Test' cannot be applied to a generic function
  }
}

This PR is follow-up to #332 and #333.
* Except for diagnostics specific to the @Suite attribute itself.
Checklist:

[ ] Code and documentation should follow the style of the Style Guide.
[ ] If public symbols are renamed or modified, DocC references should be updated.

@swift-ci please test

@swift-ci please test

@swift-ci please test


Smart filters: Groovy script messages filter implementation (reopened)

[ ] Breaking change? (if so, please describe the impact and migration path for existing applications:)

What changes did you make? (Give an overview)
Groovy script messages filter implementation.
variables bind to groovy context: partition, timestampMs, keyAsText, valueAsText, header, key (json if possible), value (json if possible)
json parsing logic:
for key and value if they can be parsed to json they binded as json objects, if not - binded as null
sample scripts:

keyAsText != null && keyAsText ~"([Gg])roovy" - regex on key as a string
value.name == 'iliax' && value.age > 30   - when value is json
value == null && valueAsText != null - search for values that are not null and are not json
headers.sentBy == 'some system' && headers['sentAt'] == '2020-01-01'
multiline filters also allowed:

def name = value.name
def age = value.age
name == 'iliax' && age == 30

How Has This Been Tested? (put an "X" next to an item)

[x] No need to
[X] Manually(please, describe, when necessary)
[X] Unit checks
[X] Integration checks
[X] Covered by existing automation

Checklist (put an "X" next to an item, otherwise PR will fail)

[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation (e.g. ENVIRONMENT VARIABLES)
[X] My changes generate no new warnings(e.g. Sonar is happy)
[X] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[X] Any dependent changes have been merged

Check out Contributing and Code of Conduct

#1529


[Feature Request]: certificatePinningHosts wildcard support

Describe the feature / enhancement and how it would improve things
I was wondering if it's possible to add wildcard support (like OkHttp) to the certificatePinningHosts option.
Describe how your proposal will work, with code and/or pseudo-code
For example:
certificatePinningHosts: {
    "*.example.com": [
        "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=",
    ],
},

This would match all subdomains including: test.example.com, dev.example.com, etc.

@AzureFlow i like this suggestion.
maybe i can directly implement also multiple different pins per host. but this most likely will be a BC break

Nice, that would be very helpful.
Does CertificatePinningHosts not already have support for supplying multiple pins per host as shown here and here?

@AzureFlow please check out release 1.5.0

@AzureFlow please check out release 1.5.0

Hey, thanks for taking the time to add this feature.
I tried with the following payload (using tls-client-windows-64-1.5.0.dll):
{
  "requestUrl": "https://example.com",
  "requestMethod": "GET",
  "requestBody": "",
  "headerOrder": [
    "accept",
    "user-agent",
    "accept-encoding",
    "accept-language"
  ],
  "proxyUrl": "http://localhost:8888",
  "certificatePinningHosts": {
    "*.example.com": [
      "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx="
    ]
  },
  "tlsClientIdentifier": "okhttp4_android_9",
  "insecureSkipVerify": false,
  "followRedirects": true,
  "sessionId": "5da527e2-d7b5-4f7f-96c2-24b163011dcb",
  "timeoutSeconds": 20,
  "withoutCookieJar": true
}

I used a local Charles proxy to MITM my traffic and a pin of xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= since it should always be invalid. However, it still succeeds:
{
  "id": "7ffdb420-50e0-4d8d-bebd-edbe8754a4ab",
  "body": "*SNIP*
Example Domain
",
  "cookies": {},
  "headers": {
    "Accept-Ranges": [
      "bytes"
    ],
    "Age": [
      "429223"
    ],
    "Cache-Control": [
      "max-age=604800"
    ],
    "Content-Encoding": [
      "gzip"
    ],
    "Content-Length": [
      "648"
    ],
    "Content-Type": [
      "text/html; charset=UTF-8"
    ],
    "Date": [
      "Sun, 30 Jul 2023 00:29:02 GMT"
    ],
    "Etag": [
      "\"3147526947\""
    ],
    "Expires": [
      "Sun, 06 Aug 2023 00:29:02 GMT"
    ],
    "Last-Modified": [
      "Thu, 17 Oct 2019 07:18:26 GMT"
    ],
    "Server": [
      "ECS (cha/8094)"
    ],
    "Vary": [
      "Accept-Encoding"
    ],
    "X-Cache": [
      "HIT"
    ]
  },
  "sessionId": "5da527e2-d7b5-4f7f-96c2-24b163011dcb",
  "status": 200,
  "target": "https://example.com",
  "usedProtocol": "HTTP/2.0"
}

Same result with www.example.com.
No rush or anything, take your time.
Thanks.

@AzureFlow thanks for providing the code to reproduce your issue. it seems like its somehow related to the tls client profile.
When you run your code with chrome112 for example instead of okhttp4_android_9 then the wildcard pinning works.
I did not check every client when i implemented the wildcard support. Will try to debug a bit more.

@AzureFlow no forget that ... i was confused. i dont know why it does not work in the shared library.. but it works in pure go.
i will debug more.

@AzureFlow i just updated all the shared libaries in the release 1.5.0
Seems like yesterday i compiled the libs with an old version of the tls client.
https://github.com/bogdanfinn/tls-client/releases/tag/v1.5.0
Now it should work as the change is really inside this build.

Nice, works perfect now. Thanks.


Mask password fields

OpenAPI supports optional "formats" on certain types:
https://spec.openapis.org/oas/v3.1.0#data-types
One of these is format: password for hinting to clients to mask the input.
This would be a useful addition so that docs can be used in demos and screencasts without revealing the presenter's password.

I'm not very fluent in Typescript but after poking around I think that this could work with the existing components with
password: {param.format} or maybe password: {param.format | false} around  here:
https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/a3b467ca3234f0bc88c761631d07a2f1284d6773/packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.tsx#L23

Hi @drwelby, we looked at masking password input in the past but, since they are ultimately displayed in code snippets, it seemed like a moot point. Still, there may be some value in masking the input field since it's more visible.
I suppose we could find a way to mask in code snippets but still send the real password when "Send API Request" is clicked.


2.3.x

My spring-security-oauth2 version is 2.3.8.RELEASE
Related issue: #941, #1542
Fixes #941
fix 2.3.x release version，Thanks!

@Evai The 3 commits in this PR do not have any tests reproducing the issue. As well, the 2.3.x line has reached EOL. Please re-submit this PR rebased on master (2.4.x) along with tests if any of these issues are still valid.


How do I set the SideBarMenuItem active menu on load

How do I set the active SideBarMenuItem ? e.g. when the app loads my default page is abc but I'm not sure how to set the menu item as active? This issue also occurs if you refresh the page on a specific route?

This should be automatically handled by the sidebar menu item component. Marked this is a bug.

Fixed in commimt: https://github.com/sjefvanleeuwen/blazor-adminlte/commit/420321e22d0161bbbac6800eb4a09dcd1d50a833
Scheduled to be in nuget release 0.1.1 soon

released:
https://github.com/sjefvanleeuwen/blazor-adminlte/releases/tag/0.1.1


adds switch statement for dealing with user input

hi

I pasted all the code in so It might bring a issue cause it wasn't merged with like github desktop, but it should be fine

thanks, give me some time to test it further, then i will merge it
will also implement global files rather than clustered one main file like you and @thoo0224 mentioned


[5.8] fix touching BelongsToMany relation without fireModelEvent

The laravel/scout can not observe BelongsToMany models, bacause the Illuminate\Database\Eloquent\Relations\BelongsToMany@touch updates touches relation by Illuminate\Database\Eloquent@update which not fire model event.

sorry, it is a accident request.


Add a custom scrollbar

Add a customized scroll bar for the website with color matching with the theme of it. I want to work on this under JWOC'23.

closing this issue as it is duplicate


UX: should Kui attempt to "canonicalize" watchers?

for example, if i have an existing minisplit devoted to k get pod -n my_ns --watch, and then do a apply -f -n my_ns... right now we display a second watch table.

extra expense for the duplicated watcher processes and watcher UI updates and extra proxy overhead for the browser case

disconverting to have two tables that are parallel to eachother change in identical ways

Proposal
If we prove that existing view A is a superset of pending view B...

Looking back on this now... I'm not sure what this would mean?

Looking back on this now... I'm not sure what this would mean?


Added ability to extend the declarative subview format.

This change allows the declarative subview format to be extended.  It is a simple fix that moves the actual parsing into a separate method.  In addition this function does not need to reference any other packages whereas before this patch the inline action function used the get-object-path package.
Issue #150

+1, straightforward enough

@AmpersandJS/core-team, willing to lend some :eyes: ?

Looks good, however I'd return those options immediately, without unnecessary variable assignment. Other than this +1

It makes it a whole lot easier to debug and a decent minifier/uglifier would optimize that away.
The test case would I guess just be to overload the method in a super class.  I'll add that I think that it might be good to not advertise that feature for a while because I might have some ways to make it more general like breaking out the action method to be more easily replaceable.  I don't have the time to spend on that this moment and is anyone else going to be experimenting with advanced ways to extend the declarative subview definitions?  I was looking at this that it is a small change that simply breaks some code out into a called function and it allows me to do a lot.
ampersand-view development is slow enough that I could just npm install from my fork for some months to see how the feature evolves.  Then there is a possibility that I can introduce a more sweeping change.
In arguing for getting it in there now on the hush it would allow people who are close to the code to start thinking about some things in a different way.  I think that there is a huge missed opportunity in the direction that I started here.


Razor's trace level is currently set to 'Off' still an issue.

This issue has been discussed in https://github.com/microsoft/vscode/issues/68739.
It's August, 2021 already and this is still an issue.

Razor.VSCode version 6.0.0-preview.5.21358.6
Razor's trace level is currently set to 'Off'

To change Razor's trace level set 'razor.trace' to 'Off', 'Messages' or 'Verbose' and then restart VSCode.
To report issues invoke the 'Report a Razor issue' command via the command palette.

[Error - 10:53:22 PM] Server initialization failed.
Message: Request Cancelled
Code: -32800
Visual Studio Code
Version: 1.59.0
Commit: 379476f0e13988d90fab105c5c19e7abc8b1dea8
Date: 2021-08-04T23:14:40.191Z (1 wk ago)
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Darwin x64 19.6.0

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines.
Happy Coding!

Yeah, but you have to tell me which extension it is. VS doesn't say anything. Should I turn off all extension?

Maybe the "Razor" extension?

Maybe the "Razor" extension?

I don't have any razor extension installed.

I removed two .Net extensions. Problem solved. I guess I won't use .Net in VS Code lol.

Yes, "Razor" might by part of .Net


⚠ Cioos Pacific CKAN has degraded performance

In db458c7, Cioos Pacific CKAN (https://catalogue.cioospacific.ca) experienced degraded performance:

HTTP code: 200
Response time: 14319 ms

Resolved: Cioos Pacific CKAN performance has improved in feabb99 after 1 hour, 37 minutes.


refactor: use relative paths to import from "src"

Description
Fixes https://github.com/foundry-rs/foundry/issues/3440 for users who need this library.
There really is just one place where src/ is used as an import path, so I think that switching it to ../src and deleting the remappings is well worth it given Foundry's limited capability to handle nested remappings.
Changelog

[x] refactor: use relative paths to import from "src"
[x] chore: delete "remappings" config option from Foundry config
[x] style: format "foundry.toml" with Taplo

Was there a specific issue you had from the current src/ import that was resolved with ../src, or is this more of a precautionary change?

Yes, I couldn't use the library because of the src/ import. I am now using my fork but I would prefer to stick with the original.

Cool, happy to change if it was causing issues. Thanks!

@PaulRBerg Thanks!

Awesome thanks @mds1.


Update new evaluation codes

Can we import itrex.eval to reuse the code?

Can we import itrex.eval to reuse the code?

I have considered this once. Since we will call neural compressor in itrex, I am concerned that if we call itrex in a reverse manner, there might be some risks. Could @xin3he give some hints? Thanks!


the instruction for publishing and submission  Extension INF package is not clrear

Type of issue
Other (describe below)
Feedback
the instruction for publishing and submission Extension INF package is not clear. how do i :Using the same HLK results from above, select Package > Replace Driver" in extension INF package? if i directly open the results in HLK studio, i cannot see any driver package.

and replace driver option is not available. in our understanding, the replace driver option can only be available in DUA process.

Page URL
https://learn.microsoft.com/en-us/windows-hardware/drivers/dashboard/submit-dashboard-extension-inf-files
Content source URL
https://github.com/MicrosoftDocs/windows-driver-docs/blob/staging/windows-driver-docs-pr/dashboard/submit-dashboard-extension-inf-files.md
Author
@anaharris-ms

Hi @Morgan6006 ,
Thanks for reaching out. The best way to begin a resolution to your problem is to follow the steps in Create a New Support Request.
Have a great day!


Add datetime string format

This MR formats the datetime string like "2020-03-03T00:00:00.000000+0000"

Do we really need the milliseconds ? Can we follow 2020-04-04T19:29:31+00:00 ? https://en.wikipedia.org/wiki/ISO_8601
and we might want to update the API docs in docs/ and sadly both the yaml and the json. Well, you can edit the yaml and autogenerate the json from https://editor.swagger.io/

there are a few pointers here,
I couldn't figure out how to make the timezone to look like "+00:00" instead it looks like "+0000"
on my test, the endpoint result page changes a bit

to

@tonythomas01 should be okay to remove the milliseconds

@tonythomas01 should be okay to remove the milliseconds

Apparently this is the best we got :) Lets go for it then!

closing after the slack sync up, conclusion is that this is not desireable anymore


Remove crate-git-revision 0.0.3 from dep graph

What
Update soroban-env, stellar-xdr, soroban-sdk.
Why
To remove the crate-git-revision 0.0.3 dep from the dep graph because it causes invalidations of the entire build.
Close #296

Can confirm locally that it's fixed! Thanks! It was even making my RA stall after any edit.


a question about the code

Hello! Sorry to bother, but I have a problem to consult you about the code.
When reading your code, I found that in code/find_critical_parameters.py, when you specifying the label of the input text, you use -100 to mask the preceding tokens of "sure". I want to ask why not just specify the label as "sure"? What's the pro of the way your code takes?
Thanks!!

Got it. Thanks again!


Automate metadata refresh for SDK plugins

What:

We should have an automated process that checks the --about output of SDK based plugins and refreshes the hub definition.

Why:

Since we prefer SDK based variants and know that they have better stability and better levels of maintenance, we should also be sure that the metadata is always accurate on the hub. We rely on user to update these today which allows some to get out of sync and unchecked.
Bad settings and metadata can cause the plugin not to work in meltano, so I think this is an important thing to be maintaining.
This also encourages plugin developer to put their documentation in that plugin repo itself as the SSOT and let the hub scrape it.

How:

It can run daily/weekly to guarantee the metadata we publish about SDK based variants are good. I created this script https://github.com/pnadolny13/hub-utils that does the core of this translation already.

Challenges:

I found some functioning taps that fail during help/about so those would have to be skipped
python version limitations would have to be considered. Some of our CI tests fail to extract about metadata because the python version of the test container isnt supported by the tap.

I love this idea. I think it's save to skip those plugins which fail in --about for some reason. It could also be helpful to have a list of those and even open an issue on all repos for which --about cannot complete.
In an early version of the SDK, some taps or targets could not complete execution of --about unless valid config was provided, but in more recent version this should not be an issue.
Another benefit of automating this, is that we can give developers the option to link their README.md back to the Hub "for the latest settings documentation". This could complement or replace their own settings list which periodically need to be updated manually via markdown edits.

I spent a little time thinking about how this process could work for updating SDK variants and since its relatively similar for Airbyte variants too I want to consider them in this also. I proved out that I can:

iterate all existing hub plugins and find a list thats SDK based
install the executable via pipx and run --about
translate the --about output to the hub definition spec
merge the existing definition and the newly exported --about output i.e. updating the existing definition in the hub repo

Challenges:

The install/--about process is pretty slow since we already have ~130 SDK variants
Translating --about to the hub definition spec can have edge cases that I dont know about yet. It also requires me to be opinionated about things like sort ordering so that the diffs are consistent between runs. For example I chose to sort the settings list of dicts in alpha order using the name key.
Failures are somewhat frequent ~25/130 failed on my first iteration.
Some failures are related to python versions
Some failures are due to required configs or credentials for discovery.
Airbyte variants require docker

Considerations:

Extracting and translating the --about output on the fly was feeling like ETL vs ELT so I'm hoping to design a process that saves the raw --about output which allows us to iterate on our translation logic and quickly fix any bugs that we notice.
The raw output has more package and SDK version information in it that might be helpful to keep track of even though we dont currently use it in the hub definition.

Potential Solution: GitHub Action Similar to Dependabot

Get a list of all variants that are SDK based
Create a branch
Iteratively install and pipe the --about output to files for all variants in the list generated in step 1
Iteratively translate all raw --about files into Hub definition spec, merge with whats exists (e.g. if descriptions only exist on the hub then dont overwrite them with null descriptions from --about, etc.).
Create a commit for each update, allowing easy reverting of specific updates for the PR reviewer if needed.
Collect a list of failed variants
Rerun the failed subset on different python versions to see if that was the issue and burn down the list further
Open a PR with all definition updates that were made.
Pat reviews and merges probably running on a once per week cadence

Other things I considered:

This would commit raw --about data to the hub repo. I'm not sure if there are reasons to avoid this other than clutter potentially. Alternative solutions can load them to S3/Snowflake/ or commit to the hub_utils repo (almost acting like the dbt hubcap repo that manages their hub) so only the translated data exists in the hub repo.
I played with the idea of making a tap that did this extract --about process and wrote to snowflake but that adds challenges for running multiple python versions and running Docker in Docker for Airbyte variants. Both of those are supported on github actions but not in Squared.

@tayloramurphy @aaronsteers @sbalnojan any thoughts?

@pnadolny13 overall your iterative process makes sense. I think you could probably just start even smaller if you wanted and get this up and running with the top 10 most used SDK-connectors and then add more from there. Might be quicker to get the end to end updated and running on a few connectors and then add more too it.
The translation step does seem like something we'd want to obviate at some point though. I'm guessing that we have richer data coming from the SDK than we have on the Hub? As you're doing this, be thinking about how we could unify the two definitions and open or flag any relevant issues.

@pnadolny13 - I like this a lot. Thanks for putting so much thought and energy into this.
Since the process is expensive, what about storing the output from --about into S3? We could do that right away, and then get to a second step for exactly how to apply it back to the repo. For failed executions or failed installations, you could instead save a record of the error text.
In subsequent executions, we could bias towards rerunning tests just for failed connectors, or just for connectors with no test result.
The second step, which is to apply the changes back to the repo, is not computationally expensive but it's much more difficult logic-wise. It would be nice to try a few things, and perhaps prioritize the top-10 by usage or other subsets (top 10 by failure rate) when it comes to applying those updates back to the source-controlled yaml files.
Wdyt?

@pnadolny13 overall your iterative process makes sense. I think you could probably just start even smaller if you wanted and get this up and running with the top 10 most used SDK-connectors and then add more from there. Might be quicker to get the end to end updated and running on a few connectors and then add more too it.

@tayloramurphy good point, I can start with a subset for now. At this point though I'm trying to make sure I design it in a way where all by bases are covered once I turn it on for all of them, including Airbyte.

The translation step does seem like something we'd want to obviate at some point though. I'm guessing that we have richer data coming from the SDK than we have on the Hub? As you're doing this, be thinking about how we could unify the two definitions and open or flag any relevant issues.

@tayloramurphy yeah this is also part of the reason why I like saving the raw --about output because down the line it might be better for the hub/meltano to accept settings as full on json schemas (I cant find the issue for that right now).

Since the process is expensive, what about storing the output from --about into S3? We could do that right away, and then get to a second step for exactly how to apply it back to the repo. For failed executions or failed installations, you could instead save a record of the error text.

@aaronsteers I like that approach! I think I can get the extract process working pretty quickly but the translate/merge/update step will be a little trickier.


New package: SimpleStatics v1.0.0

Registering package: SimpleStatics
Repository: https://github.com/Boxylmer/SimpleStatics.jl
Created by: @Boxylmer
Version: v1.0.0
Commit: e0699881392723a5eb0e7159ce227ebe0df36c3e
Reviewed by: @Boxylmer
Reference: https://github.com/Boxylmer/SimpleStatics.jl/commit/e0699881392723a5eb0e7159ce227ebe0df36c3e#commitcomment-129772775

Could you add a small usage example to your README.md? Thanks

[noblock]
And I noticed you want to register version 1.0.0.
This is usually used for more mature packages that do not expect breaking changes in the foreseeable future. I just wanted to make you aware of that

[noblock] And I noticed you want to register version 1.0.0. This is usually used for more mature packages that do not expect breaking changes in the foreseeable future. I just wanted to make you aware of that

[noblock]
Hey! Thanks for the suggestion. I've added a much more fleshed out README. Does this work?
And regarding the version, I chose 1.0.0 simply because this is pretty much what I expect to be the packages final state. It was a one-off project I hope will be useful to the community (target audience is also now described in the readme). Is that not best-practice? I'm happy to change it to 0.1.0 or similar if you tell me how :)

[noblock]
Thanks for the Readme! If you are fine with the version number, and have no much future change in mind, that's fine for me as well.


Refresh cache

Hello.
Thanks for his work.
How do you clear (refresh) the cache programmatic?
Thanks

Hello @leocharrua, you can use @CacheBuster as specified in the docs.
Let me know if I can help further.

Hi. Sorry, I don't understand how I must use that decorator. Can you give me a example code?
Thanks

Sorry, can you help me? I put the @cachebuster in the function ... then? How I clear the cache (allow to call the http.post)?
Thanks again.

You can decorate your post method (the method which will save some data to the server and i.e - need to clear the cache).
You need to provide a subject to it which will be next'ed when your save request completes.
Then you also provide the very same subject to the Cacheable decorator on your data-fetching method, so it knows when to clear its cache.
In short, when you call saveData and it completes, all cache of getData will be cleared.
If you want more control on when to clear the getData cache, you can just call saveDataSubject.next() on your own. You can even export the subject and use it anywhere else.
const saveDataSubject = new Subject();
@CacheBuster(
  {
     cacheBusterNotifier: saveDataSubject
  }
)
saveData(){}
@Cacheable(
  {
     cacheBusterObserver: saveDataSubject.asObservable()
  }
)
getData(){}

Thank you very much!!!


[Feature] EIP-7691

Component
consensus, eips, genesis
Describe the feature you would like
EIP-7691 is mostly a CL change, however, it will also change BLOB_BASE_FEE_UPDATE_FRACTION in the EL to change the fee market a bit. This is a patchwork solution until we gather more info about blob fee markets for Fusaka.
See the relevant PR that adds these EL changes: https://github.com/ethereum/EIPs/pull/9060/files
TL;DR: For < Prague we use the current BLOB_BASE_FEE_UPDATE_FRACTION, for >= Prague use BLOB_BASE_FEE_UPDATE_FRACTION_ELECTRA.
Relevant snippets: https://github.com/alloy-rs/alloy/blob/20d13faff78325dda42de8952e0addad31d11db7/crates/eips/src/eip4844/mod.rs#L70-L71
https://github.com/alloy-rs/alloy/blob/20d13faff78325dda42de8952e0addad31d11db7/crates/eips/src/eip4844/mod.rs#L131-L142
Additional context
No response

:hand:


HTTP/2 + SSL to HTTP proxying

Hi,
First and foremost, thanks a lot for this great library!
I've been using this in production for a while now and it is working great!
We have recently did a migration from a Windows server to a linux server.
The migration was also out of IIS and into kestrel as the server in the front.
I'm guessing that this change allowed browsers to start communicating though the HTTP/2 protocol.
My question is how does this package support this.
The question comes from a problem we just observer.
The problem is as follows:

The browser (or even a curl client) calls our kestrel server to check if it supports HTTP/2, it does.
It then sends a request to the server (over SSL and HTTP/2)
The server proxies the request over HTTP to another "hidden" server.
This "hidden" server return a HTTP response with headers and everything (HTTP style)
The response is sent as is to the client
The client, expecting a HTTP/2 response with no headers is telling us the response is invalid (which is correct in terms of spec).

Chrome and FireFox are OK with this, but curl and safari are not and we see issues with our iOS users.
Are you guys familiar with this? Is this a know limitation? Do I need to configure something to make this work?
My proxy code can be found here:
https://github.com/IsraelHikingMap/Site/blob/508259dd1c16466f9b00711581ab48da8ecbd431/IsraelHiking.Web/Startup.cs#L174

Hello!
Glad to hear that this library is working out well for you.  I think the best method would be to add to the options, and strip the headers.  Sort of like this.
proxies.Map(proxyEntry.Key,
    proxy => proxy.UseHttp(
      (_, args) => { /* your normal endpoint computer logic */ },
      options => options.WithAfterReceive((context, response) => response.Headers.Clear())
));

So, the first thing to note here is that UseHttp has another optional parameter called builderAction which allows you to pass in an "options builder", which is basically just an instance of the default options.  Then, you can mutate those options.
Basically, the WithAfterReceive handler allows you to edit the response message from the upstream server.  The only caveat here is that you might need to do something different depending on the request type.  In that case, you would inspect the context to see whether it is an HTTP/1.X request (don't strip headers) or HTTP/2 request (strip headers).  I'm not sure exactly what logic you want to have, but you should have (1) all the information you need about the "context" of the request that came into the proxy server (that's in context), and (2) the ability to edit the message that came from the upstream (that's in response) before it goes back down to the client.
Let me know if this works.  If not, we'll figure out something. :)

Thanks for the super quick response! I'll give it a go later tonight.
Just out of curiosity, shouldn't this be a part of this library and act as default case when returning a http2 response?

Yes, and that gives me a better idea.  ASP.NET might do the magic for us automatically.  It's not that HTTP/2 doesn't have headers: it's that HTTP/2 doesn't have plaintext headers.
Let me see if I can automatically detect the version override the response.

Thanks! I can confirm that clearing the headers solves the issue, but I would prefer a better solution. Let me know if you want me to test a pre-release NuGet version or something of that sort...

Hi @HarelM, yeah, I agree.
The problem is that stripping the headers is not technically the right solution.  HTTP/2 allows for headers, but they are part of the body, I think.  I need to do more research to discover the exact correct response.

I tried looking at the code in this repo tonight.
The following code copies the response message into the http context (which should be HTTP/2, shouldn't it?).
https://github.com/twitchax/AspNetCore.Proxy/blob/274bd4c0cbc715029edb2593dc05c7290055b076/src/Core/Extensions/Http.cs#L122
Interestingly I don't see the version being copied (which is expected), so I'm not sure why the headers are not "converted" properly as the response is updated in the original http context...
I looked at this SO question:
https://stackoverflow.com/questions/53764083/use-http-2-with-httpclient-in-net
I'm probably still missing something... The docs on this are so limited I'm having a hard time finding anything related to this in google...

Hello.  I am going to describe my problem. Maybe, you can help me to resolve it the best way.
I have the web-site which I reach throught the proxy. During the execuption of the request I get the exceptoin with the message: "The SSL connection could not be established, see inner exception. (the message of the inner exceptoin is The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch)".
When proxy tries to reach this site it gets redirect to another site with https-schema. However, http-header with name "Host" does not change its value.  As a result, RemoteCertificateNameMismatch happend.
I remove this header and it works fine.
builderAction: builder =>
                            builder
                                .WithBeforeSend(
                                    beforeSend: (_, message) =>
                                    {
                                        message.Headers.Remove("Host");
                                        return Task.CompletedTask;
                                    })

If you want, I may send the url which exception occured in private message. I am not sure that I may publish this here.
It is great pleasure to get your opinion about this situation.
Thank you.

@mpashkov, this sounds like something that is unique to the server.  You may need to set the Host header to the Common Name of the server's certificate.

Please, may you investigate the link if you have a little bit time?


🌐 Add Spanish translation for docs/es/docs/how-to/testing-database.md

🌐 Add Spanish translation for docs/es/docs/how-to/testing-database.md
Best regards

This was covered in another PR, so I'll close this one now, thanks for the effort! :cake: :coffee:

This was covered in another PR, so I'll close this one now, thanks for the effort! :cake: :coffee:


Sending requests should allow to pass timeout

To prevent failing requests due to network errors or other problems SDK should allow to pass a hard timeout for a request.
If request doesn't complete successfully within given time it should fail with timeout error.

One of the most common things what to do when request timeouts is to retry the request. Please also add an option or a separate method which in case of a timeout retries request with a given number of times (SDK user can control how many times request is retried).


Trying out github actions to test push/pulls automatically

Basic workflow to validate the iso will build correctly, be nice if we could get to a point to validate the preseed.cfg on commit updates as well, this only confirms the iso will build

Interesting, I've been wanting to try out actions.

If we can get that DEBIAN_VERSION in the script to an env var i can make use of it here as well


xclip fails with Error: Can't open display: (null)

Your Windows build number:  Microsoft Windows [Version 10.0.19041.84]

What you're doing and what's happening:

sudo apt install xclip
echo 111 > xclip

What's wrong
nothing was copied. instead the following error message appeared:

Error: Can't open display: (null)

What should be happening instead: 111 copied to clipboard and shared in windows as well.

Strace of the failing command, if applicable:  https://gist.github.com/sinapis/c63332ce3c8e801d3fb14d65646007ef

I'm trying to make xclip work so I can use 3rd parties programs like micro which rely on xclip to copy the clipboard.

Your $DISPLAY is not set.
$ export DISPLAY=<x11-server-ip>:0

Similar #2975 see #646 (message) et al. You'll need an X Server of choice (such as VcXsrv) listening on <x11-server-ip>. Watch out gotcha #4106 aka #4619 on WSL2.

Unfortunately I couldn't get this to work either. My approach was to fall back on this:
alias pbcopy="clip.exe"
alias pbpaste="powershell.exe -command 'Get-Clipboard' | sed -e 's/\r\n$//g'"

More details at https://github.com/Microsoft/WSL/issues/1069#issuecomment-664468853

Hi, its my first post and cuestion and problem, pls Help me!
I´m Gaston, from Buenos Aires Argentina.
Ok the problem is whit adding ssh key to git agent. y cant copy i tried all ....
Like sinapis ...I'm trying to make xclip work so I can use 3rd parties programs like micro which rely on xclip to copy the clipboard.
But no way! cant copy my key. here is a capture from Ubuntu server 20 HA! I´ve installed MAAS over ubuntu its allfine Help Help Help! y nooooob in this im learning plis helpis :D

for now i'm using this as workaround:
https://github.com/microsoft/WSL/issues/4852#issuecomment-606497383

Not related to Xclip but you want to copy anything on WSL. Use clip.exe
Something like this
cat testing.txt | clip.exe
The content of testing.txt will be copied in the clipboard in this case.

Not related to Xclip but you want to copy anything on WSL. Use clip.exe
Something like this
cat testing.txt | clip.exe
The content of testing.txt will be copied in the clipboard in this case.

best comment!

On another note, you can pretty much access many windows services from WSL itself.
Like
explorer.exe . would open the file explorer from your current dir that you're on WSL.
You will have to find the .exe that you run from the Run and you can execute it in WSL.

xclip on wsl2 requires xserver and I had corruption with clip.exe. That's why I use utf8clip. See https://github.com/microsoft/WSL/issues/4852#issuecomment-606497383


fix: replace deprecated props: ViewPropTypes to fix coolwallet-app crash

reference:
https://github.com/meliorence/react-native-snap-carousel/issues/1024

Are you going to publish it on npm?


Create offer - when user first of all enter rate there is an error

STR:

open create offer screen
put pointer in rate field
enter rate
Actual: there is an error about invalid rate as there is no receive and sent amounts
Expected: there should not be an error

relates to #1053

checked


Error when deploying an existing implementation twice - Hardhat

Hi, we are facing a strange error when calling upgrades.deployImplementation() for an implementation that already was deployed and registered in mainnet.json.  The error we get is the following:

A far as I understand, it should NOT do the deployment because it uses onChange by default, but it should not fail either and instead return the address of the deployed implementation. But for some reason is trying to process a transaction?
This is our code that triggers the issue:
 const MainImplFactory = await ethers.getContractFactory('MainP1')
  let mainImplAddr =  (await upgrades.deployImplementation(MainImplFactory, {
      kind: 'uups',
    })) as string

Works for the initial deployment, and works if the current code is not registered in the network file.
But once the deployed implementation is registered in the network file it fails the next time is run. If I simply remove the implementations from mainnet.json works smooth.
The error its manifesting when running against a local mainnet fork in this case. And also setting redeployImplementation: always does not fix the issue, exact same error. Also if I make a small change to the contract, it deploys it successfully.
Version: "@openzeppelin/hardhat-upgrades": "^1.23.0",
Any ideas what could be going on?

@ericglau Sorry to tag you but would like to escalate this issue if possible as it is kind of blocking a mainnet deployment for us (not for the initial implementation but our deployment scripts are basically broken with this issue).  Any additonal info you need please let me know!! Thanks!!

@julianmrodri Thanks for reporting this.  I was able to reproduce this issue and am looking into it.  Will let you know when I have an update.

This issue appears to occur with certain RPC nodes when using a Hardhat forked network -- the eth_getTransactionReceipt RPC request causes an error when called with the tx hash of the original implementation deployment.
For example, the same error occurs by running the following RPC command locally:
curl http://localhost:8545 -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept: application/json, text/plain, /' -H 'Cache-Control: no-cache' -X POST --data '{"jsonrpc": "2.0","id": 0,"method": "eth_getTransactionReceipt","params": ["<transaction hash of the original implementation deployment>"]}'
@julianmrodri As a workaround, can you try a different RPC node when creating your forked network?  I encountered this issue when using a Hardhat forked network with Alchemy, but it worked when using Infura.

I'll try with Infura. So this is only a fork issue? Would not behave like this if I rerun it against Mainnet for example?

This appears to be an issue in Alchemy.  See https://github.com/NomicFoundation/hardhat/issues/4271
The plugin uses the tx hash to determine whether the contract deployment succeeded.  While we could consider a short-circuit in the plugin if there is already code at the expected address, this would only be a workaround and there could be other issues if the RPC is not behaving correctly.  The proper solution would be for Alchemy to fix the issue in their RPC response.

Ok used Infura for this portion and seems to work. You can close the issue. Thanks!


Use existing credentials framework of jenkins

Hi,
This is my next iteration which contains all the stuff we discussed:

Use existing credentials framework of jenkins everywhere, except with the main cloud username/passsword.
Auto-migration of config data from the old plugin version
Added findbugs and PMD checks (both currently set to non-fatal, so the show a lot of errors/warnings but do not fail the build)
Added translation tags in the main config.jelly
Removed JDK installer

Cheers
-Fritz

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

Removed JDK installer
Why is that? It should be in separate pull request to be discussed separately.

On 02/18/2015 02:55 PM, Oliver Gondža wrote:

  * Removed JDK installer Why is that? It should be in separate pull
    request to be discussed separately.

—
Reply to this email directly or view it on GitHub
https://github.com/jenkinsci/jclouds-plugin/pull/83#issuecomment-74866856.

I discussed that before (with mavlyutov) - The reason is simple:
The JDK Installation functionality is already covered by Jenkins
ssh-slaves and we don't need it twice.


Auto certificate generator

Auto certificate generator: the app need a page where students get certificate immediately after course completion

Problem solved


Update cpuinfo.h: add support for Windows ARM64EC

To fix a build error:
src\arm\windows\init-by-logical-sys-info.c(309,17): Error C2065: 'cpuinfo_uarchs': undeclared identifier

In short, Arm64EC is a new application binary interface (ABI) for apps running on Arm devices with an x64 like ABI.
Reference:

VC++ predefined-macros
ARM64EC overview

@malfet , would you mind taking another look at this PR? We need this change to make https://github.com/microsoft/onnxruntime work for ARM64EC builds. A lot of Microsoft applications ship with ARM64EC ABI.


jOOQ Code Gen: set javaTimeTypes to false

In jOOQ 13, there is a breaking change:
https://github.com/jOOQ/jOOQ/issues/5714
javaTimeTypes is set to true by default, which causes Waltz build to break when using jOOQ 3.13.1 (trial versions are only available for latest jOOQ versions).
Suggest a quick fix to turn this off (wouldn't affect the current Waltz builds), but will fix the issue for users trying to build with the latest trial version of jOOQ pro.

@davidwatkins73 This will go under the generator element:
<generator>
    <generate>
      <javaTimeTypes>false</javaTimeTypes>
    </generate>
  </generator>

Thanks, just added that section to a local build which I've deployed to tomcat and all seems fine.  Will create a PR.

Just noticed I can't add you as a reviewer.  Will see if thats something I can change or if it needs FINOS  admin to action.

You should have an invite to become a maintainer

Thanks, accepted

top stuff guys thanks


⚠ ClamAV has degraded performance

In 4989e0a, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 190 ms

Resolved: ClamAV performance has improved in 65346b7.


vue ui fails on 3.0.0-rc.7 and Win10

Version
3.0.0-rc.7
Node and OS info
Node v8.11.3 / NPM 5.7.1 / Windows 10
Steps to reproduce
vue ui fails on arbitrary projects with error:
ERROR  Error: EISDIR: illegal operation on a directory, read
Error: EISDIR: illegal operation on a directory, read
    at Object.fs.readSync (fs.js:675:18)
    at tryReadSync (fs.js:540:20)
    at Object.fs.readFileSync (fs.js:583:19)
    at windowsConfigPath (C:\Users\beat.grabe\AppData\Roaming\npm\node_modules\@vue\cli\lib\util\rcPath.js:30:35)
    at exports.getRcPath.file (C:\Users\beat.grabe\AppData\Roaming\npm\node_modules\@vue\cli\lib\util\rcPath.js:41:3)
    at Object.<anonymous> (C:\Users\beat.grabe\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\@vue\cli-ui\apollo-server\util\db.js:18:5)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)

What is expected?
The vue-cli user interface will open
What is actually happening?
The command is failing

Running in dev mode vue ui --dev seems to bypass the code which is throwing the error.

I think its because it wants to read folder .vue-cli-ui but it should read only file.

It seems it's trying to read and create the .vue-cli-ui folder in your App Data but fail for some reason, maybe it doesn't have the rights.

What is the benefit of migrating vue config files from the homedir to the appdata dir on win10? I am aware of the related Issue #1957. For me it is totally fine (if it would or will work), but it is clearly missing a proper explanation, since .npmrc or .bashrc are localed in the home dir as well…
Generally speaking these are only my thoughts, but the code change apparently leads to a malfunction…

cc @yyx990803

@beatgrabe good point. I don't use Windows very often so I'm not all that familiar with the conventions on Windows config files. The only upside I see is if the file is placed in AppData/Roaming you will be able to reuse it when you log onto another machine on the same domain. Although I'm not sure if that's a common need.

@yyx990803 The migration should work with folders as well.

@Akryum I'm going to revert it because I don't see much benefit. The user who wants a different config location can use VUE_CLI_CONFIG_PATH anyway.


Pass Input to tensorflow lite model in Android

I have created a neural network that take numerical data as input and saved it as tensorflow lite model using python. I am trying to pass input to the model in Android. Shape of ndarray is 1*3
Sample of the input in python is as follows
np.array([[-0.276786765 ,8.41897583008  ,-0.0222015380859]])
But i do not know to create the same input in java to pass it to model.
I tried using nd4j library. But still not able to write the proper code to create the input which is required by the model.

This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there and provide better and faster support for such issues. Thanks!

Automatically closing due to lack of recent activity. Thanks!


 Here is the code that reproduces:
package main

import (
	"github.com/hypebeast/go-osc/osc"
)

func main() {
	server := osc.NewOscServer("<IP_ADDRESS>", 23898)
	server.Close()
}

This issue is fixed with #5


Tabs in Character Sheets Not Visible

I'm running my own web server. I haven't noticed if this occurred prior to today's update, but, since today, I realized that the tabs on the character sheets are being overwritten by the objects below it. In short, they're visible, but, very small.

I don't have any theming options enabled aside from what's default to run SWFFG. Any ideas?

This is an error in the CSS.
For the character sheet:
Removing height from ".starwarsffg.sheet.actor .tabs" [red arrow] made the height be set by ".starwarsffg .tabs" [blue arrow].
Same applies with talents. Haven't yet if it applies to other items.

For now I've manually removed these options from my CSS, server-side. Perhaps this needs to be updated.

This is after updating to foundry 9.245?

Correct.


redis mget,hget 值显示为null

Contribution guidelines

[X] I've read the contribution guidelines and wholeheartedly agree

I've found a bug and checked that ...

[X] ... the problem doesn't occur with the server or web themes
[ ] ... the documentation does not mention anything about my problem
[ ] ... there are no open or closed issues that are related to my problem

Description
redis mget,hget 值显示为null
Expected behaviour
redis mget,hget 值按list展示
Actual behaviour
redis mget,hget 值按list展示
Steps to reproduce
null
Package versions

Java: java --version
Node: node --version
Npm: npm -v
Server: ./mvnw -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive exec:exec -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN -Dorg.slf4j.simpleLogger.log.org.apache.maven.plugins.help=INFO | tail -1

Configuration
null

System information

Operating system: ...
Browser: ...

Message that will be displayed on users' first issue


Helm deploy docs

Document how to deploy with a Helm chart, based on How to install MinIO Using Helm in Kubernetes.
This addition maintains the existing plugin instructions as the primary path, with Helm as a child page under that. That makes room for future deploy options.
The existing common-install-operator-kubectl-plugin-install.rst is now in two parts, to allow only including the second part in the Helm instructions. Also promoted the Upgrade page to be a sibling to Deploy.
Many of the original instructions are environment setup that enable installing the Helm charts, starting Operator, and creating a tenant. That will vary by the user's environment, so omitted for docs.
Staged:
http://<IP_ADDRESS>:9000/staging/DOCS-798/k8s/html/operations/install-deploy-manage/deploy-operator-helm.html
Fixes https://github.com/minio/docs/issues/798

I had a meeting with Andrea, I think she might be right, and preserving the same YAML without neat might help end user to map this faster and achieve the Helm installation.
I leave then this to you and from my point of view, this PR looks good to me.


Uchiwa Not refreshing/updating

Hello,
Uchiwa does not want to refresh or update. This is even after restarting the dashboard, sensu-client and sensu-server. Changes made to the uchiwa json and sensu config json files are not reflected in the dashboard. In addition alert emails are not getting sent after friday august 18th.
No errors in uchiwa and sensu logs that i could see.
Uchiwa 0.25.3
CentOS 7
Sensu 1.0.2
Any help would be appreciated.
Thanks!

Hi @adejesus-mt, sorry for the delayed response, I was in vacation for the past few weeks!
Alert emails are not managed by Uchiwa so I would suspect an issue with Sensu, based on the information provided. I would suggest to inspect the Sensu server logs and if required, increase the logs verbosity level. Additionally, you could verify the Sensu API to see if the changes are reflected or not, so we can isolate the problem furthermore.
Thanks

I am noticing this as well. The page is not refreshing.

Same issue on version 0.26.3

I renamed a few scripts and restarted everything. Its been over an hour and
uchiwa is not refreshing the changes. Nothing in the logs to indicate a
problem.
On Tue, Oct 10, 2017 at 2:34 PM, Konstantin Ivanov<EMAIL_ADDRESS>
wrote:

Same issue on version 0.26.3
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sensu/uchiwa/issues/711#issuecomment-335567041, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AM3HAn9NnKmkbCnl7u5H3hoYixdj4B0pks5sq7i5gaJpZM4O-4xd
.

--
Anibal De Jesus
DevOps Engineer
AP & Payment Automation
125 Cambridgepark Drive
Cambridge, MA 02140

@adejesus-mt Could you try to query the Sensu API directly in order to verify if the changes reflected?

Double check your uchiwa config. I had a much older version running and when upgraded it left the refresh set to something like 10000.

I'm closing this issue since we didn't received any responses.
If you are still facing this problem, please let us know with a comment and we'll be happy to reopen the issue.
Thanks!


Swift: Positioning Toast on status bar, navigation bar, other

Seems that the only ToastPositions are .Top, .Center, and .Bottom or a specific CGPoint can be used.
If one would like to position a toast in a particular area, for example in place of the status bar or over the navigation bar, how can one do so?

The toast will display on top of whatever view you present it in. If you want it on top of the navigation bar, present it in the navigation controller's view (eg: use self.navigationController.view instead of self.view like I do in the sample project and then just position it over the navigation bar). To present on top of the status bar present it in the window.

On Aug 1, 2016, at 2:10 AM, David<EMAIL_ADDRESS>wrote:
Are the only ToastPositions .Top, .Center, and .Bottom?
Although a CGPoint can be used, if one would like to position a toast in a particular area, for example in place of the status bar or over the navigation bar, how can one do so?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@scalessec Thank you for your swift response. I've tried presenting the toast on top of/in place of the status bar with the following code in a viewDidLoad():
var style = ToastStyle()
style.backgroundColor = UIColor.redColor()
style.messageColor = UIColor.whiteColor()
style.messageFont = UIFont.systemFontOfSize(12.0)
style.cornerRadius = 0.0
self.view.window?.makeToast("Testing toast message on status bar.", duration: 5.0, position: .Top, style: style)

However, here's a screenshot of the resulting toast:

As you can see, the toast is not directly on top of the status bar. Any ideas on how to present the toast in place of the status bar (i.e: Same position, height and width of the status bar) would be greatly appreciated. Thanks!

You won't be able to use the out-of-the-box makeToast methods. You'll need to create your own UIView subclass that is exactly 20px high and the width of the device screen and then you'll have to use the showToast methods with your custom view. Use the showToast method that allows for a CGPoint such that you can position it exactly where you want it on the status bar.

@scalessec I have been tinkering with your approach for several hours but unfortunately still haven't been able to show the custom UIView toast correctly. Here's what I have done thus far:
import UIKit

class ToastView: UIView {

let currentWindow = UIApplication.sharedApplication().keyWindow
var messageLabel: UILabel!

required init?(coder aDecoder: NSCoder) {
    super.init(coder: aDecoder)
}

override init(frame: CGRect) {
    super.init(frame: frame)

    self.frame = UIApplication.sharedApplication().statusBarFrame
    self.backgroundColor = UIColor.orangeColor()

    messageLabel = UILabel(frame: CGRect(x: 0, y: 0, width: UIScreen.mainScreen().bounds.size.width, height: self.frame.height))
    messageLabel.numberOfLines = 0
    messageLabel.font = UIFont.systemFontOfSize(12.0)
    messageLabel.text = "Testing toast message on status bar. Testing toast message on status bar."
    messageLabel.textColor = UIColor.whiteColor()
    messageLabel.backgroundColor = UIColor.redColor()
    messageLabel.textAlignment = .Center
    self.addSubview(messageLabel)
    currentWindow?.addSubview(self)
    currentWindow?.bringSubviewToFront(self)
    messageLabel.center = self.center
    //messageLabel.sizeToFit()
}

/*
Only override drawRect: if you perform custom drawing. An empty implementation adversely affects performance during animation.
    override func drawRect(rect: CGRect) {

    }

}
*/

In a tableviewcontroller swift file I create a ToastView and show it using the showToast method:
let toast = BTToastView()
self.view.window?.showToast(toast, duration: 5.0, position: CGPoint(x: 0, y: 0), completion: nil)
This strangely results in the toast being displayed in the wrong view controller indefinitely and underneath the status bar with the toast message being cut off instead of expanding to display the entire message:

Do you see what I am doing wrong here? If not, do you have an example showing how to do this?

You have a number of issues with that code, all unrelated to the Toast library itself. I just tried this and it works:
class ToastView: UIView {

    private let label = UILabel()

    var message: String = "" {
        didSet {
            label.text = message
        }
    }

    override init(frame: CGRect) {
        super.init(frame: frame)
        label.textAlignment = .Center
        label.textColor = UIColor.whiteColor()
        self.backgroundColor = UIColor.redColor()
        self.addSubview(label)
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("not used")
    }

    override func layoutSubviews() {
        super.layoutSubviews()
        label.frame = self.bounds
    }

}

Then in your view controller somewhere:
let toastView = ToastView(frame: CGRect(x: 0.0, y: 0.0, width: self.view.frame.size.width, height: 20.0))
toastView.message = "Hello world"
self.view.window?.windowLevel = UIWindowLevelStatusBar + 1
self.view.window?.showToast(toastView, duration: 2.0, position: CGPoint(x: self.view.frame.size.width / 2.0, y: 10.0), completion: nil)

I just tested this in the demo project and it all works as expected.


Switch to c3.8xlarge as the default instance type

I've been doing this in other projects, and noticed that we're still using the c4's here. The c3.8xlarge's have 4 fewer cores (32 instead of 36), but the advantage is that they have large SSD's, which we can use as scratch space for Spark. This is faster than writing spill-over data onto EBS, and also avoids memory problems if the jobs fill up the (small) root volumes on the workers.

fixed


BORG Birkfeld

Official Website: https://www.borgbirkfeld.at/
IT Route of Official Website: https://borgbirkfeld.at/it-nawi/
Proof that school recognizes domain name:

Full name is Bundes-Oberstufenrealgymnasium if that helps

@tobiazsh The first verification stage is complete: the official domain for  BORG Birkfeld is borgbirkfeld.at, to the best of my knowledge. This is just an informational note. The pull request is still under review. The review may take some more time. I greatly appreciate your patience. Here is the proof of domain ownership: https://borgbirkfeld.at/terminkalender/

@tobiazsh Thank you for your patience while waiting for a review and processing your request. Pull request merged.
Please start requesting the licenses in about an hour, to let the changes to propagate through our system.


JSON in nodered

Hi.
I have a relayboard on ethernet i want to controll with freeboard thru nodeRED.
I just dont know how to connect it.

How do i get nodered to make the outputs to payload that i can make a swich with in freeboard?
Or the nodered dashboard?
/Benjamin

Hi, thanks for raising an issue.
If you check out our contribution guidelines you'll see we prefer to handle this sort of thing on the mailing list, slack team or you could ask a question on Stack Overflow and tag it node-red. That way the whole Node-RED user community can help, rather than rely on the core development team.
Thanks!

Arrr... sorry about this! :)

By the way; well done development team!!! I look forward to understand how to use it correctly, but it seems nice by far!!! :)


Feature/duende

:x: Build TheIdServer 3.0.4-duende1-0032 failed (commit https://github.com/Aguafrommars/TheIdServer/commit/433777e8e2 by @)

:white_check_mark: Build TheIdServer 3.0.4-duende.1+32.build.1520 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/433777e8e2 by @)


Microsoft Edge WebView2

How shall this component be a prerequisite in an MSIX package to ensure the component is installed and be ready in the moment the product launching and requires WebView2 to display web content ?
https://developer.microsoft.com/en-US/microsoft-edge/webview2/

@codendone @adambarlow FYI

For apps installed from the the Store, there is no way today to have the installer ensure the Edge WebView2 Runtime is installed. It is expected that the WebView2 Runtime will quickly become common on many machines, and there are investigations happening to further improve this.
In the meantime, the WebView2 element will show a link to the Runtime installer if the Runtime isn't installed. That isn't an ideal solution, but it does at least provide a fallback for the user to go install the Runtime, which will then be available for future launches of the app and for any other app.

Thanks @codendone .
I did hope the MSIX could leap this step by specifying either a WEbView2 Capability or Dependency ;
https://docs.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-manual-conversion
If you are saying - let say - beyond Version 10.0.19042 the OS will ship this component than it becomes seamless experience. As for the positive experience amid annoying manual installer download, I needn't restart my app to load the WebView2 component, which was good benefit after all.

The WebView2 Runtime will be installed by default on a future version of Windows. The ETA for that isn't clear yet.

Hi @codendone. Just sharing that we have the same desire as @sigmarsson and started looking at this deployment aspect today. With the WinUi GA we're looking to immediately distribute an app that makes use of WebView2 and were hoping for a super clean install experience... and the users not even aware of a webview2 runtime install (and no clicking on additional install links, etc.). We understand that future windows versions will have the WebView2 runtime auto installed which is generally directionally great. Only item is the unknown ETA there and then combined with version actually rolled out to all users WW in large enterprises, etc. Thanks for all the dialog!

@davecarlisle If ETA will never harmonize with your roll out schedule, you may need to fabricate your own bootstrapper, which could install the repackaged WeibView2 component.
In your MSIX - if it is - you can launch the bootstrapper first;
<Application Id="Your.App.Id" Executable="Bootstrapper.exe" EntryPoint="Windows.FullTrustApplication">

@sigmarsson Ack and with ya... heading that way. Have a good one!

Merci captain! Need 2 hit the sack.

WebView2 became part of the OS Windows 11 as EverGreen Runtime


Update cmcBot.js

Unlike the previous version, the stoploss will not lag behind with an instant increase in the value of the token and will always be tied to the current value

The math is just the opposite of what I already had. It will not be faster because in your code it will call getCurrentValue() twice when every transfer event occurs, first on line 154 then again on line 155 which is not necessary. In the previous version it only calls it one time making the previous version more efficient and faster.

Maybe I didn't do it very correctly with an additional call to getCurrentValue() and I need to redo it. I will try to explain with an example. When buying a token, we have the settings: SL 30%, TSL 10%. When the stop loss is first determined, everything is OK, then the token increases in price by 10%, the bot uses setNewStopLoss and sets a new SL 10% more than the old one. Everything is correct here. But then there is an increase in the value immediately by 30%, while setNewStopLoss again sets the new SL by 10% more than the old one, and already here it is required by 30%. Thus, TSL does not keep up with the increase in the value of the token value and SL begins to lag far behind.


Velero install failed

What steps did you take and what happened:
[A clear and concise description of what the bug is, and what commands you ran.
Install as explaint in docs
time="2019-07-02T16:04:48Z" level=info msg="Checking that all backup storage locations are valid" logSource="pkg/cmd/server/server.go:431"
An error occurred: some backup storage locations are invalid: backup store for location "default" is invalid: rpc error: code = Unknown desc = NoSuchKey:
status code: 404, request id: tx000000000000007c1c769-005d1b80a0-1b7a15-fra1a, host id:

The NoSuchKey description and 404 look to me like the bucket doesn't exist. velero install does not create a bucket for you, it must be made manually.

One other possibility - are you hitting this? (using <bucket>/<prefix> in the bucket field)

Hy, thanks for the fast response.
Installed via:
velero install --provider aws --bucket velero --secret-file ./credentials-velero --use-volume-snapshots=false --backup-location-config region=minio,s3ForcePathStyle="true",s3Url=https://myurl.fra1.digitaloceanspaces.com
my credentials-files:
[default]
aws_access_key_id = 123456
aws_secret_access_key = 78910
Inside my DO Space i've created the folder "velero"