Create Configurable Metadata

Description
The Oauth-Proxy should have the ability to override an issuer's metadata if necessary.
{
  "api_category": "/override_Endpoints",
  "upstream_issuer": "http://example.com/issuer",
  "manage_endpoint": "http://example.com/account",
  "custom_metadata": {
    "authorization_endpoint": "http://example.custom.com/authorization",
    "token_endpoint": "http://example.custom.com/token",
    "userinfo_endpoint": "http://example.custom.com/userinfo",
    "introspection_endpoint": "http://example.custom.com/introspect",
    "revocation_endpoint": "http://example.custom.com/revoke",
    "jwks_uri": "http://example.custom.com/keys",
    "issuer": "http://example.custom.com/keys",
  }
}

GET Endpoints

User info | Used by Issuer Client
Jwks | Used by Issuer Client

POST Endpoints

authorization | Used by Issuer Client
token | Used by Issuer Client
introspect  | Used by Issuer Client
revocation  | Used by Issuer Client
issuer | Used by Issuer Client

~Should the delete grants endpoint be included?~
~The issuer with this endpoint, is that the oauth-proxy uses the okta-client to perform this logic. The delete grants endpoint for okta is specific to its own API. Other AuthZ servers may not contain the same delete grants endpoint.~
~If this functionality is required, then it may be worth creating a wrapper authz-client class.~
The Delete Grants endpoint is not specified on the OpenId spec, so it will not be taken into consideration.
TODO

[x] Create Scripted Tests for this functionality
[x] Unit Tests
[x] Implement

Tests
Since the issuers that will need this functionality are not ready, testing this functionality will be a little tricky.
JWKS endpoint
curl $HOST/oauth2/keys

Expected

[x] Redirect to the proxied issuer's JWKS endpoint.

User Info endpoint
curl $HOST/oauth2/userinfo

Expected

[x] Redirect to the proxied issuer's User Info endpoint.

Post Endpoint tests

Go through auth follow
Introspect against the default issuer

[x] should return false

Introspect against the proxied issuer that is used in the introspect swap

[x] should return true

revoke
Introspect against the proxied issuer that is used in the introspect swap

[x] should return false

Regression Tests

[x] Pass with no changes to config
[x] Pass when the custom_metadata values consistently point to a different issuer than the upstream_issuer

Works great so far! Was able to override all the endpoints to my local keycloak instance.


Readme and cmd update

Add or show in readme a command to remove a module

I read docs just add too readme


final-state-via introduced inconsistent behavior for long running operations

Package Name: azure-core
Package Version: 1.24.0
Operating System: Windows
Python Version: 3.8.10

Describe the bug
The following PR introduces support for "final-state-via":

https://github.com/Azure/azure-sdk-for-python/pull/22713

But, this document says "Azure-AsyncOperation" has higher priority:

https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/async-operations#url-to-monitor-status

Is there an inconsistency when we have both "Azure-AsyncOperation" and "Location" (with final-state-via) is the header?
To Reproduce
E.g., we have a header like this:
headers:
  ...
  azure-asyncoperation:
  - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/ca9109a1-acc0-499d-8c9f-9fb75e72050d?api-version=2021-08-01
  ...
  location:
  - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operationResults/ca9109a1-acc0-499d-8c9f-9fb75e72050d?api-version=2021-08-01

azure-core==1.21.1 will always go through "azure-asyncoperation", but azure-core==1.24.0 will go through "location", like:

https://github.com/Azure/azure-cli-extensions/pull/4811

Expected behavior
Version upgrades keep consistent behavior for long running operations.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Authorization:0.12401441,Docs:0.0746295,Network - Application Gateway:0.045894098'


Standing respawn increments number of respawns by two

A flying respawn increments the number of respawns by one (intended behavior).
A standing respawn (press two times respawn button in quick succession) increments the number of respawns by two.
Could be fixed in a relatively stupid way (did not find a better method :D) using Time::get_Now().

initialise a variable with Time::get_Now() (when plugin is loaded)
When respawn is requested, check if Time::get_Now() - variable is lower than 1000 (--> 1sec) and only treat as another respawn is it is higher than that
set variable again to Time::get_Now()

this is just because you can initiate a standing respawn.
the double press of the respawn key
or a single press of the standing respawn keybind (unbound by default)
i'll look into any better methods for this

i got something working
https://github.com/drekdrek/grinding-stats/assets/35672537/c7c77591-60d0-4e1d-a87a-944ba3a8d5d0


Add filter for URIs with missing IDs

There are a couple of person mentions in the legal files with a missing target value; the all point at the empty URI https://sk.acdh.oeaw.ac.at/. Please add a filter like in FA to avoid building the triple.
Examples:
https://sk.acdh.oeaw.ac.at/D_000004-009-000/reference/14
https://sk.acdh.oeaw.ac.at/D_000004-009-000/reference/16
https://sk.acdh.oeaw.ac.at/D_000012-007-000/reference/51
https://sk.acdh.oeaw.ac.at/D_000017-004-000/reference/59
You can find them with this SPARQL:
SELECT ?g ?p ?o
WHERE {
  GRAPH ?g {
?p ?o <https://sk.acdh.oeaw.ac.at/>
  }
}

with this update the INT18_Reference and INT2_ActualizationOfFeature will not be created if the mention ref is missing or is empty.


logger: Add support for logging only on bat power

Will not start logging from boot if battery is not connected.
Problem
For the logging modes that cause logger to start at boot (boot until disarm or boot until shutdown), a log is started every time the FCU is powered. This includes connecting to the FCU over USB for firmware updates, parameter modifications, or other non-flight modifications. This causes the creation of logs in scenarios where they are most likely unneeded, which clutters up the log space.
Solution
Introduce a parameter (SDLOG_BOOT_BAT) that when enabled, prevents logs from being started from boot if a battery is not connected.
Note
Only works for the first battery instance. If FCU has second power connector that is used instead, this will not work as-is.

Good idea, maybe even worth enabling by default.

Note
Only works for the first battery instance. If FCU has second power connector that is used instead, this will not work as-is.

Given that you're only checking once at logger start another option could be vehicle_status_flags.condition_battery_healthy. https://github.com/PX4/Firmware/blob/89693258a9deed3a7d61b8c398f7c951da6f6b48/msg/vehicle_status_flags.msg#L16

Given that you're only checking once at logger start another option could be vehicle_status_flags.condition_battery_healthy.

Given that you're only checking once at logger start another option could be vehicle_status_flags.condition_battery_healthy.

I like this one. We may also check for condition_battery_healthy && !usb_connected from the same message, and that way it won't log even if on battery but connected to a USB. (assuming this is something people would want)

Note
Only works for the first battery instance. If FCU has second power connector that is used instead, this will not work as-is.

Given that you're only checking once at logger start another option could be vehicle_status_flags.condition_battery_healthy.
https://github.com/PX4/Firmware/blob/89693258a9deed3a7d61b8c398f7c951da6f6b48/msg/vehicle_status_flags.msg#L16

This would work, but it might have unintended consequences. If the FCU reboots with any battery warning level other than none, it won't start a log. Also, I just tested on the Pixhawk 4, and condition_battery_healthy does not get set to false at first, even though battery_status.battery_warning is BATTERY_WARNING_EMERGENCY. The battery warning was simulated by connecting a 3S battery while configured for 6S. Using condition_battery_healthy would effectively accomplish the same thing.

@bkueng thanks for the review, I implemented your suggestions.


peps storagestatus not set for new Sentinel-2 L1C products

Describe the bug
status for new S2-L1C products from PEPS don't match one of the disk/staging/tape value, but "tier2" so storageproperty property cannot be set.
With sentinelhub as provider it is OK.
Code To Reproduce

from eodag import EODataAccessGateway
dag = EODataAccessGateway()
search_criteria = {
...     "productType": "S2_MSI_L1C",
...     "start": "2023-03-08",
...     "end": "2023-12-01",
...     "geom": {"lonmin": 1, "latmin": 43, "lonmax": 2, "latmax": 44}
... }
products_first_page, estimated_total_number = dag.search(**search_criteria)
Could not extract property from tier2 using (?Pdisk)|(?Pstaging)|(?Ptape)
Could not extract property from tier2 using (?Pdisk)|(?Pstaging)|(?Ptape)
Could not extract property from tier2 using (?Pdisk)|(?Pstaging)|(?Ptape)
Could not extract property from tier2 using (?Pdisk)|(?Pstaging)|(?Ptape)
Could not extract property from tier2 using (?Pdisk)|(?Pstaging)|(?Ptape)
Could not extract property from tier2 using (?Pdisk)|(?Pstaging)|(?Ptape)
Could not extract property from tier2 using (?Pdisk)|(?Pstaging)|(?Ptape)
Could not extract property from tier2 using (?Pdisk)|(?Pstaging)|(?Ptape)

Output
Could not extract property from tier2 using (?Pdisk)|(?Pstaging)|(?Ptape)
Environment:

Python version: Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux
EODAG version: 2.7

Additional context
Add any other context about the bug here.

Hello @opseasoi and thank you for pointing out his issue. This will be fixed soon and integrated in the next release


[BEAM-123] [BEAM-544] Add support for reading/writing headers to text files. Also adds a tell() method to fileio._CompressedFile.

Footer support is not added since it is not clear
how to do it for source and not sure about the value it provides.

Hi @chamikaramj , can you please take a look?

Hi @chamikaramj , can you please take a look?

Test failure seems to be related to this ?
FAIL: test_seekable (apache_beam.io.fileio_test.TestCompressedFile)
Traceback (most recent call last):
File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_MavenInstall/sdks/python/apache_beam/io/fileio_test.py", line 52, in test_seekable
self.assertFalse(readable.seekable)
AssertionError: <bound method _CompressedFile.seekable of <apache_beam.io.fileio._CompressedFile object at 0x7f9a38364e10>> is not false
======================================================================
FAIL: test_tell (apache_beam.io.fileio_test.TestCompressedFile)
Traceback (most recent call last):
File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_MavenInstall/sdks/python/apache_beam/io/fileio_test.py", line 73, in test_tell
self.assertEqual(current_offset, readable.tell())
AssertionError: 6 != 0

The last merge I created was tainted leading to broken tests. Now should be fixed.
@chamikaramj , can you please take another look?

Changes Unknown when pulling 220b322799a212da0a9306efa4d64c54e958d446 on sbilac:fbs2 into ** on apache:python-sdk**.

Please resolve conflicts.

I don't know how to do this? Pointers/Advice?
Slaven
On Wed, Jan 25, 2017 at 10:21 AM, Chamikara Jayalath <
<EMAIL_ADDRESS>wrote:

Please resolve conflicts.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/apache/beam/pull/1771#issuecomment-275189399, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AUsIaAKFtMwIOoIWepdzFzncOQrE1Wqlks5rV5K6gaJpZM4LiDe2
.

Changes Unknown when pulling 6f79f733fdefd7b2010332bb8275450ef3f25fa5 on sbilac:fbs2 into ** on apache:python-sdk**.

LGTM
Thanks.

@robertwb
Can you take a look?


Update translation resources

@mingkuang-Chuyu
You could update the translation resources in Dism++, thanks.

I'll update. Thanks.


Documentation Ambiguity

This is stated to merge just changeset 137
c:\projects>tf merge /version:C137~C137 branch1 branch2 /recursive
The following is stated to merge all changesets up to 137
c:\projects>tf merge /version:C137 branch1 branch2 /recursive
This is said to discard only changeset 137 but has the syntax similar to the earlier command to merge all changesets up to 137
c:\projects>tf merge /discard /version:C137 branch1 branch2 /recursive
This should either be fixed or otherwise clarified that the version parameter is handled differently when using the discard parameter.

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

ID: 9c2a034e-46b4-0c59-9cc1-b34a199383c9
Version Independent ID: 7022c4b2-7011-5cdc-1b57-f2ee3b594bdc
Content: Merge Command
Content Source: docs/tfvc/merge-command.md
Service: unspecified
GitHub Login: @erickson-doug
Microsoft Alias: sdanie

#assign MaximMalygin

MaximMalygin is already assigned.

#reassign @IlyaChistov

@steved0x can you closed it? Ilya fixed it in PR

@msebolt can you closed it?


Fixed opening USB device with descriptor, instead of using ftdi_open_…

Issue in FT232H causing serial-description selection of devices to fail.:

Devicelist:  ['w', 'FTWV1XQ9']
ftdi_usb_open_string failed with error -4: usb_open() failed

Reason is that ftdi_usb_open_string (https://www.intra2net.com/en/developer/libftdi/documentation/ftdi_8c_source.html#l00901)  incorrectly filters the correct serial number, and attempts to do a libusb open to any FTDI device. This can fail if a certain connected device does not use the libusb driver.
The fix is to use ftdi_usb_open_dev , since enumeration does work correctly.

hiya thank you for the pull request. we're going to be deprecating this library in favor of our python3 Blinka library which has support for almost 200 different drivers, and a wide variety of linux computers as well as ft232h


Deep Residual Learning

Interesting paper from NIPS: http://arxiv.org/abs/1512.03385
Would it be possible to implement "residual layers" in mxnet?

Totally possible. Was fooling around with it myself. I was able to push it up to 100 residual layers for fun and things still seemed to work. The code bellow isn't exactly what was in the paper and is probably terrible but it should give you an idea.
def ConvFactory(data, num_filter, kernel, stride=(1,1), pad=(0, 0), act_type="relu"):
    conv = mx.symbol.Convolution(data=data, num_filter=num_filter, kernel=kernel, stride=stride, pad=pad)
    bn = mx.symbol.BatchNorm(data=conv)
    act = mx.symbol.Activation(data = bn, act_type=act_type)
    return act

def ResidualFactory(data):
    l1 = ConvFactory(data, 32, kernel=(3,3), pad=(1,1))
    l2 = ConvFactory(l1, 32, kernel=(3,3), pad=(1,1))
    return l2 + data

def get_symbol(num_classes = 10):
    data = mx.symbol.Variable(name="data")
    o = ConvFactory(data=data, kernel=(3,3), pad=(1,1), num_filter=32, act_type="relu")
    for i in range(100):
        o = ResidualFactory(o)
    pool = mx.symbol.Pooling(data=o, pool_type="avg", kernel=(32,32), name="global_pool")

    flatten = mx.symbol.Flatten(data=pool, name="flatten1")

    fc = mx.symbol.FullyConnected(data=flatten, num_hidden=num_classes, name="fc1")

    label = mx.symbol.Variable("softmax_label")
    softmax = mx.symbol.SoftmaxOutput(data=fc, name="softmax", label=label)

Keras:
https://github.com/ndronen/modeling/blob/master/modeling/residual.py
Lasagne:
https://github.com/Lasagne/Lasagne/issues/531
https://github.com/alrojo/lasagne_residual_network/search?utf8=✓&q=residual

Will PR soon


Don't import the whole tensorflow library

"It's f*cking huge"
One of the top complaints was installing a 500mb library just for tensorflow

It may be possible for us to use Tensorflow Lite, which is for android / IOS/ Raspberry Pi.
https://www.tensorflow.org/lite/examples
We only need load_model() in the production environment, will have to explore

https://www.tensorflow.org/lite/guide/inference
^^ How to load a model in tensorflow lite.
@Cyclic3 they have a page for loading a tensorflow model in C++, do you think it would be better if we added this to Cipheycore and loaded it via that? The app is incredibly slow via PyPi and I want to reduce overhead as much as possible :)
https://www.tensorflow.org/lite/guide/inference#load_and_run_a_model_in_c

Tensorflow Lite Converter - Convert TF models into TF lite models
https://www.tensorflow.org/lite/convert/index

Because I'm stubborn in my ways, I see this as yet another reason for #104. We could easily create a cipheyai module for installing the neural network component, allowing people to opt out of the large and intensive AI checking.

cipheydists now uses the 'lite' models, with the h5 ones being moved to cipheyneuralnetwork. We can push that in a future release

For future reference, we switched to TF Lite as the install is 1mb compared to TF's 500mb.

done


On every November Month second week days sunday and Monday are same value -time change issue

On every November Month second week days sunday and Monday are same value -time change issue

@jantonywest Curious if you found a solution to this?


I'm getting duplicate events on one file change.

(pods/load-pod 'org.babashka/fswatcher "0.0.2")
(require '[pod.babashka.fswatcher :as fw])

(def count (atom 0))

(def watcher (fw/watch "some-file.txt"
                       (fn [event]
                         (do
                           (prn event)
                           (swap! count inc)))
                       {:delay-ms 250}))

When I modify the file then it prints twice and increments count from 0 to 2.

I'm on windows 10.
bb version v0.7.4-snapshot

hey, is it the same event you're seeing twice?

(def w1 (fw/watch "file.clj"
                  (fn [{:keys [type path] :as _event}]
                    (let [now (System/currentTimeMillis)]
                      (prn [:type type :path path :now now])))
                  {:recursive true
                   :delay-ms 250}))

[:type :write :path "file.clj" :now<PHONE_NUMBER>448]
[:type :write :path "file.clj" :now<PHONE_NUMBER>448]

(def count (atom 0))

(def w1 (fw/watch "file.clj"
                  (fn [{:keys [type path] :as _event}]
                    (let [now (System/currentTimeMillis)]
                      (swap! count inc)
                      (prn [:type type :path path :now now :count @count])))
                  {:recursive true
                   :delay-ms 250}))

saving file prints
[:type :write :path "file.clj" :now<PHONE_NUMBER>153 :count 1]
[:type :write :path "file.clj" :now<PHONE_NUMBER>156 :count 2]

editing and saving again prints
[:type :write :path "file.clj" :now<PHONE_NUMBER>285 :count 3]
[:type :write :path "file.clj" :now<PHONE_NUMBER>285 :count 4]

I'm connecting to bb --nrepl-server from emacs over cider.

Could be something specific to the windows apis or the way the editor saves it. I get two events on my linux machine when saving with vim: chmod and write. Could you try something like echo "foo" > the-file and see if you still have the duplicate events? @borkdude can you try in windows? I dont have a windows machine off hand.

Will do later this week. Perhaps looking at the issues of the go lib and/or upgrading it will also help.

https://github.com/fsnotify/fsnotify/issues/206
I did try deduping but it introduced other strange behavior.
(defn on-change
  ([f paths]
   (on-change f paths {}))
  ([f paths {:keys [timeout]
             :or {timeout 1000}}]
   (let [cache (atom {})
         watchers (for [path paths]
                    (fw/watch path
                              (fn [{:keys [type path] :as _event}]
                                (let [now (System/currentTimeMillis)]
                                  (when (= type :write)
                                    (when (or (not (contains? @cache path))
                                              (< timeout (- now (@cache path))))
                                      (swap! cache assoc path now)
                                      (f path)))))
                              {:recursive true
                               :delay-ms 250}))]
     (fn unwatch-all [] (doseq [w watchers]
                          (fw/unwatch w))))))

I guess we don't have a windows build for it yet?

🤦 Maybe switch to Github actions for that one then so we can more easily make a matrix

There is another filewatcher pod which is built in Rust, which you could try too:

It doesn't support Windows.

(fw/watch "folder/"
          (fn [event] (prn event))
          {:recursive true
           :delay-ms 2000})

Saving the file with emacs generates 4 messages but echo "text" >> folder/file.txt generates 2 messages.
{:type :write, :path "folder\\file.txt"}
{:type :write, :path "folder\\file.txt"}
{:type :write, :path "folder\\file.txt"}
{:type :write, :path "folder\\file.txt"}
{:type :write, :path "folder\\file.txt"}

I encountered this problem as well on Windows 10, I tried saving in VSCode and Notepad and both fires the write events twice
but then I did some digging and found a suggestion from user steve-kessel-aero and a Go code from sejongk in this thread:
https://github.com/fsnotify/fsnotify/issues/122
which suggest making a loop that will fire the latest recorded events on a specific time interval
then I tried writing that Go code in Clojure and come up with this code below:
(require '[babashka.pods :as pods])
(pods/load-pod 'org.babashka/fswatcher "0.0.3")
(require '[pod.babashka.fswatcher :as fw])
(require '[clojure.core.async :refer [go-loop timeout <!]])

(def target "src")
(println "watching" target)

(def latest-event (atom nil))
(fw/watch target (fn [event] (reset! latest-event event))
          {:recursive true})

(defn handle [event]
  (println "handled this:" event))

(go-loop [time-unit 1]
  (<! (timeout 100))
  (let [[event _] (reset-vals! latest-event nil)]
    (some-> event handle))
  (recur (inc time-unit)))

@(promise)

which served for my use case quite well, so I hope this can help
(also I still have little experience with Clojure so any feedback will be greatly appreciated)

@keychera looks good to me!

I think this is now fixed by #19


CUPS does not auto-create queue for IPP-over-USB printer

IPP-over-USB printing is fully working thanks to the ippusbxd OpenPrinting project. With ippusbxd running and the Avahi patch described in its readme.md file applied an IPP printer with the URI
ipp://localhost:60000/ipp/print

gets advertised by Avahi. ippfind lists this printer and one can set it up with
lpadmin -p ippusb -E -v ipp://localhost:60000/ipp/print -m everywhere

and it works correctly.
Problem is that CUPS does not auto-create a temporary queue for it. Especially lpstat -e does not list it.
Does CUPS filter out printers on "localhost"? Or does it filter out printers on ports other than 631?
The implementation of the IPP-over-USB support is absolutely standards-conforming. The standard asks for using IPP URIs with "localhost" and does not specify a value for the port, but the port must be something other than 631 on most desktop and server machines as CUPS is already running on port 631.
For CUPS filtering out its own shared queues and so avoiding infinite loops when creating temporary queues CUPS should not simply filter out "localhost" URIs but really match the pattern
ipp(s)://localhost:PORT/printers/QUEUE

with PORT being the port on which CUPS is actually sharing its queues and QUEUE the names of the shared queues.
The same happens to printers emulated with ippserver (for development and debugging) on the same host as where CUPS is running but with an alternative port.

Right now the code does filter out local queues, but since we already have the list of local queues we probably don't need to do that anymore, plus it will make ippusb printers show up.
Will fix for the next beta.


Artifacts are truncated

Looks like only a few first files are saved from an artifact of larger size, possibly because of the max page size, which is 4MB.
 Definitely write a test for Artifacts.download()

Fixed in 365fcd9801c0f6ae0dcbbbe6bad6764a5ceb12ad


how to clear the history on logout (React Native)?

So on RN, I basically want to say history.clearAndPush('/login') when the user logs out, so that we only have '/login' in the history object and the user can't go back to the logged in routes. Is there a way to clear the history array?

With RN, you are using the memory history, which stores the locations in an entries array (as well as an index value for storing the current location's index in the entries array). There isn't an API for resetting the history, but you can manually set these values.
history.entries = [];
// history.push() auto increments from the current index
history.index = -1;
history.push("/login");

You might need to tweak that code slightly, but I think that that is all you need to do.

I suppose using <ProtectedRoute> as in https://reacttraining.com/react-router/native/example/auth-workflow would be the cleaner approach, if more time-consuming. Thank you though!


Extension - Show custom network on the token list when nominate

Describe the bug
Show custom network on the token list when nominate
To reproduce the behavior
Steps:

Perform import a Substrate network successfully (example: wss://archive.mainnet.cere.network/ws)
Go to the staking tab then choose nominate for any account
On the select token to nominate, observe the list displayed

Actual: Show custom token on the list

Expect: Do not show custom token on this list

Version test: http://<IP_ADDRESS>:8900/s/CemipJWekfyLnQc
Validation passed.


Generalize EC2 metadata gathering in NixOS

Google Cloud supports something similar, as does packet.net. We could allow them all to configure themselves automatically at startup if we didn't hardcode the <IP_ADDRESS> URL and instead made it configurable.
cc @rbvermaa @grahamc @edolstra

I was thinking that it might make sense for us to allow individual providers to inject an arbitrary script that is expected to produce a valid NixOS configuration that would then get dropped into /etc/nixos/configuration.nix at startup. EC2 could hit <IP_ADDRESS>, packet.net could hit its thing, etc.

Are there any updates to this issue, please?

I started making progress on this: https://github.com/NixOS/nixpkgs/pull/68680


CI: upgrade SwiftLint to 0.24.0 (or newer) version

Hi Thibault,
I'm sorry for this "kinda" duplicated issue (of #8) but it seems that the CI uses the "0.22.0" version of SwiftLint.
However, with the 0.24.0 version, the project does not compile and triggers warnings.
Maybe that the CI could use this last version.
Thank you sir!

Hi @r-mckay
I've upgraded Swiftlint on my laptop and we get rid of all the bad stuff. The CI will be ok because there is a fresh new install of Swiftlint each time.

Hi @twittemb
I don't think it is each time a fresh install. For instance, we can read in the CI execution:
$ brew install swiftlint || true
Error: swiftlint 0.22.0 is already installed
To upgrade to 0.24.0, run `brew upgrade swiftlint`

Here is an example for a previous PR for Weavy: https://travis-ci.org/twittemb/Weavy/jobs/305590008


WPS connections for Homie?

If I understand WPS, it would allow Homie devices to autoconfigure themselves for the WiFi connection, and this would be something grand to have in Homie: we could install a device, push a button on the WiFi AP and have Homie auto-connect to Wifi (and subsequently, via mdns to MQTT).
In #87 there is mention of WPS for initiating WiFi connection to the AP, and judging by this code, Arduino ESP8266 is actually capable of doing WPS.
Has anybody recently tried implementing this for Homie-esp8266?

The problem is the current WPS implementation is synchronous. I've filled an issue on https://github.com/esp8266/Arduino/issues/2464, let's see if this is doable.
But even if doable, how would the device be configured? Via mdns, we would have the IP/port, but what about the device id, base topic, auth... ?

Bah, those pesky questions ... I was hoping you'd just give answers! 😆
Yes, we'd have IP/port for the broker. Device ID defaults to the hex serial which is fine, and authentication (in this particular case) is not really needed. And we already have a default base topic (devices/<deviceID>) in the convention, don't we?

Hmm, mDNS network discovery? Could use SRV records for MQTT broker IP/port, but wouldn't help with authentication credentials.

I have been thinking about this, this is really the stumbling block to making this "general public" friendly. Could we define some sort of wps like protocol for mqtt? Even if it required you to push a physical button on the broker (say a pi in my case), that would be better than entering credentials on a config screen.

@nicola-lunghi how do you mqtt.mylocalpi onto the device initially? also username and password?


-changed not fired

Starting from Polymer 1.2.2 no changed event is fired on some properties.
Rollback to Polymer 1.2.1 seems to be working.
Old issue looks dead (https://github.com/Polymer/polymer/issues/2815)

Let's have someone look at https://github.com/Polymer/polymer/issues/2815.


HTTP to HTTPS redirect not working as expected with docker

Do you want to request a feature or report a bug?
Bug
What did you do?
I'm running traefik 1.6.3 in docker on a NAS; using ports 8080 and 8443 as 80 and 443 were already taken. My router is redirecting 80 -> nas:8080 and 443 -> nas:8443. This is already working fine for HTTPS access.
The goal is to implement HTTP to HTTPS redirect. Since the traefik HTTPS port in docker is 8443 I've added a secondary entrypoint using 443 to "redirect" to in order for the port numbers- when accessed externally- to match.
    defaultEntryPoints = ["https"]
    [entryPoints]
      [entryPoints.traefik]
      address = ":8000"
      [entryPoints.http]
      address = ":8080"
        [entryPoints.http.redirect]
        entryPoint = "httpsExternal"
      [entryPoints.https]
      address = ":8443"
        [entryPoints.https.tls]
      [entryPoints.httpsExternal]
      address = ":443"
        [entryPoints.httpsExternal.tls]

I then
curl http://volkszaehler.io

What did you expect to see?
Redirect to https://volkszaehler.io at port 443
What did you see instead?
❯ curl -v http://volkszaehler.io
* Rebuilt URL to: http://volkszaehler.io/
*   Trying <IP_ADDRESS>...
* TCP_NODELAY set
* Connected to volkszaehler.io (<IP_ADDRESS>) port 80 (#0)
> GET / HTTP/1.1
> Host: volkszaehler.io
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 302 Found
< Location: https://volkszaehler.io:8443/
< Date: Sun, 08 Jul 2018 20:38:14 GMT
< Content-Length: 5
< Content-Type: text/plain; charset=utf-8
<

This is still using the wrong port 8443.
Output of traefik version: (What version of Traefik are you using?)
v1.6.3

Hey @andig ,
did you try with `curl -L? You need to tell curl to follow redirects.
Locally, I'm getting redirected correctly then. I cant see something, but I guess thats on purpose ;-)
curl -L http://volkszaehler.io
curl: (7) Failed to connect to volkszaehler.io port 8443: Connection refused

You need to tell curl to follow redirects.

Thats not the issue. The problem is the redirection traefik ends which is Location: https://volkszaehler.io:8443/. That port is open on docker but not externally on the Router.
So the problem is that I need the redirect to go to another port than the one traefik is listening on.

Hi @andig , thanks for taking time to explain your use case.
If Træfik would have to know the public port, then it would goes against the principles of PAT (Port Adresse Translation).
However, your use case is quite clear and should be solved, but this is not really the role of Træfik.
You have 2 solutions:

First solution would be to deal with this redirect with the network's asset which has the knowledge of the port translation, contrary to Træfik: I nominate your router as the candidate for this. This is the kind of pattern you could find on a Load-Balancer like lvs/ipvs, haproxy or Cloud Load Balancers. I would bet that you cannot change your router's system to provide redirection, which would make this solution unacceptable, but I wanted to bring it for awareness.

Second solution is to consider this is a dedicated HTTP routing feature of your setup, which compensate the lack of routing capability. So you would need an HTTP server's placeholder which responsibility would be to tell your HTTP client where to redirect. An nginx webserver could be set as backend for the HTTP trafic from Træfik, which would redirect all request to your public's HTTPS URL with a configuration like this one:

server {
    listen 80 default; # Or listen 8080;
    server_name volkszaehler.io;
    return 301 https://volkszaehler.io$request_uri;
}

Let us know if it is ok for your use case ?

Hey @andig , A little bird just told me a third solution which could help you, only using Træfik: using the "Secure Headers".
The documentation can be found here: https://docs.traefik.io/basics/#security-headers .
The idea is to set the header SSLRedirect = true which will always redirect to 443, whatever port is configured for the https's entrypoint, as I understand.
I am not really at ease with this one, so let's try it, but don't hesitate to let us know the result here!
Hope it helps :)

Hey @andig, sorry I missunderstood your case in the first place then :-)
@dduportal got a valid point. I hope it will help you out

Hi guys, hi @dduportal. Let me starting my saying a big thank you. Working with traefik and the level of support by the community (and the open-mindedness when faced with questions like these) is outstanding.

First solution would be to deal with this redirect with the network's asset .... I would bet that you cannot change your router's system to provide redirection,

Understood and no :(

Second solution is to consider this is a dedicated HTTP routing feature of your setup

Right. That would work!

If Træfik would have to know the public port, then it would goes against the principles of PAT (Port Adresse Translation).

Ok. I still feel like I might be able to trick Traefik into doing what I want without additional software without the scenario being directly supported.

The idea is to set the header SSLRedirect = true which will always redirect to 443, whatever port is configured for the https's entrypoint, as I understand.

Workaround 1 does the trick- I can confirm this approach to be working! Due to https://github.com/containous/traefik/issues/2109 I have a dummy frontend on the http entrypoint that I'm using for this purpose.
What I still do not understand is why my original approach (call it Workaround 2) doesn't work:
  [entryPoints.http]
  address = ":8080"
    [entryPoints.http.redirect]
    entryPoint = "httpsExternal"
  [entryPoints.httpsExternal]
  address = ":443"
    [entryPoints.httpsExternal.tls]

I thought this would be good enough to make traefik use the httpExternal entrypoint with the associated port for its redirect but it doesn't?

Hmm. Thats a good question. Do you have set the needed information about the CertFile and Keyfile below  [entryPoints.httpsExternal.tls]? Otherwise, the entryPoint will not be setuped correctly as you declared it as TLS but did not set the required values. Maybe you can post your whole entryPoint configuration and just strip out the pathes to the files?

The entire entrypoints section is in the initial issue description. No certfile as ACME is configured (and working):
[acme]
email = "cpuidle..."
storage = "/etc/traefik/acme.json"
entryPoint = "https"
onHostRule = true
acmeLogging = true

That makes me wonder if this is cause for  the entrypoint rule not working? Does the redirect look at the ACME entryPoint instead of the configured one?
Anyway I have a perfectly working setup now- please feel free to close without further investigation. Otherwise I'd be happy to follow the discussion.

Have you tried with:
traefik.frontend.headers.SSLProxyHeaders: "X-Forwarded-Proto:https?
https://docs.traefik.io/configuration/backends/docker/#security-headers

Hello @andig !
Using the configuration snippet you provided on your initial comment, with the same Træfik version, I was not able to reproduce your issue, the behaviour is what you expected: https://gist.github.com/dduportal/55fcb9e9d19c8f6694efa044714a04f8 (done a macOS 10.13.5 with Docker4Mac Edge 18.05).
I am going to close this issue since you acknowledged you problem was solved, but feel free to check that your initial configuration was correctly applied, and put all useful informations on a gist to let us know what is your configuration (toml, Træefik's command options, docker or docker-compose containers and options, etc.) if you are able to reproduce it.

Hi! I'm Træfiker :robot: the bot in charge of tidying up the issues.
Thanks again for your interest in Træfik!
I'm glad to close the issue because I think that the question has been answered (Yes, I'm quite an advanced AI :smile:)
Join our Slack workspace for more community #support.

Hi,
I have the same issue, @andig how did you solve it?

@seth100 I've solved this as suggested by @dduportal:

The idea is to set the header SSLRedirect = true which will always redirect to 443, whatever port is configured for the https's entrypoint, as I understand.

This lets traefik redirect to domain:443 which is accessible from outside and is independent from the port configured on the entrypoint.


Added FAQ solution on slow python closes ##6935

Added in the FAQ the solution to the annoying bug in Mac were running in an IDE such as Spyder or PyCharm commands take very long to execute.
The issue is solved by changing the system defaults or by installing the appnope module and importing it each time a new console is created.
closes ##6935

Interesting. I just tried this in Spyder and PyCharm on macOS 10.15 but didn't notice the issue. Does this occur only after PyCharm/Spyder has been running for some time?

The PyPi page for appnope mention macOS 10.9, so it's probably macOS version dependent

@cbrnr maybe somehow in your defaults it is already turned off. Sometimes I have to repeat the timing a few times to start having this narcolepsy problem.
@larsoner My macOs is 10.14.

Okay we should be good here (pushed a commit to adjust indentation):
https://16190-1301584-gh.circle-artifacts.com/0/dev/overview/faq.html#python-runs-on-macos-extremely-slow-even-on-simple-commands

Okay we should be good here (pushed a commit to adjust indentation):
https://16190-1301584-gh.circle-artifacts.com/0/dev/overview/faq.html#python-runs-on-macos-extremely-slow-even-on-simple-commands

Thanks @AdoNunes


Update Brett Logan's Information

Signed-off-by: Brett Logan<EMAIL_ADDRESS>

You have an entry under release manager as well.

Good catch, updated

You have an entry under release manager as well.

Good catch, updated


Consider using TestContainers

"Consider"?! :D jk, ping me if you need help :)

It's just a matter of time ;-)


Patch bin build

I've been using ramda in a good amount of projects. Most of them, it's only a build of some functions, since I usually don't need the lib as a whole. However, it's been problematic to use the version from github, instead of the one I usually grab from npm, to make this build. Then, I've made this PR in order to add the build script as a bin, so everybody would be able to make their own build right away from the npm version.
I know this PR may not be welcomed and may not be a good fit to your current workflow, but I'd like to give it a try. :smile:
And thanks for your amazing work in this lib.
Cheers.

While I would have no problem including the build script in our NPM output if there's a desire to do so, I'm missing the significance of moving it from scripts to bin.  Is this some standard location for NPM packages?

https://docs.npmjs.com/files/folders#executables
I think this is a nice idea to simplify creating custom builds

@buzzdecafe: I thought that link was specific to NPM's own files, not user files.  Am I just confused?
I'm not trying to raise objections.  I really don't care where this is.  I just don't understand why moving it makes it any easier to run.  (And of course we'd still have to include it in our NPM packaging, right?)

(And of course we'd still have to include it in our NPM packaging, right?)

indeed. but i am :+1: on that

(And of course we'd still have to include it in our NPM packaging, right?)

indeed. but i am :+1: on that

Me too.  I have no objections here.  I'm just trying to understand how these changes help with the goal.  If we didn't make the change but simply started including the build file in the scripts directory, does that change anything?

I moved it to bin in order to keep the other scripts ignored to npm. But it would solve the problem to just "un-ignore" the script folder. I also thought I would be good to have the command-line to do it right from a global instalation or by using node_modules/.bin/ramda, but I think it should be renamed from build to ramda (I should've done it, sorry, my bad). But yes, feel free to close it and do it on your own way. :smile:

i'd rather build on what you've started than close and start from scratch, if you're willing to stick with it.

I'm fine with any of this.  One goal would be to move as much of the build process away from Grunt and Make and toward NPM as possible.  I don't know if this would help at all with that.

Thanks for this pull request, @jugoncalves. :)
Some projects follow the convention, @CrossEye, of putting public executables in bin and internal executables in scripts. @michaelficarra first suggested this to me, and I appreciate the separation it affords.
I agree, @jugoncalves, that we should rename the executable if we "export" it. ramda is a good option, as is ramda-build.
This pull request should be updated to specify the bin option in package.json. This way npm will create an alias in node_modules/.bin.
template.js doesn't belong in bin, as it's not an executable. I believe it should live at the project root, as it did prior to #816.

Thanks for this pull request, @jugoncalves. :)

Yes, I should have said that, first thing.  I was just a bit confused!
Thanks for the explanation @davidchambers.  I think I'd prefer the name ramda-build to just ramda, but it's not a big deal.

template.js doesn't belong in bin, as it's not an executable. I believe it should live at the project root, as it did prior to #816.

I'd really love for it to have a home not in the root, honestly.  Although that was a good clean-up, to me the root is still too full of ancillary material.  But I'm not going to fight hard for this.

I think there's no problem on having template.js at bin, mocha does it too.  I think the name is the same one is going to use in the command-line, like:
$ ramda-build -- src/compose.js src/reduce.js src/filter.js > dist/ramda.custom.js

I am not 100% sure, but I think that's how it works.

@CrossEye is this still an issue? Can we close this?


Add multibubble support

Add ability to fuse two bubbles as one for aesthetic purposes.
Currently the idea is only in my head, but seems interesting.

At the end this seems too ugly to work properly, so it has been axed.


Add DNS Breakdown section to AWS deploy Docs

What is the ask?
When deploying Pachyderm Enterprise on AWS, customers should be informed about the different  DNS options, expand on their effects, and provide suggestions on which route to take.
Kops Documentation has layed down some of the work
What is the goal / desired outcome?
The goal is to have a more prescriptive install doc for customers
If there is a way to accomplish this today via workaround, what does that require?

Environment?:

Kubernetes version (use kubectl version):
Pachyderm CLI version (use pachctl version):
Cloud provider (e.g. aws, azure, gke) or local deployment (e.g. minikube vs dockerized k8s):
OS (e.g. from /etc/os-release):
Others:

What happened?:
What you expected to happen?:
How to reproduce it (as minimally and precisely as possible)?:
Anything else we need to know?:
Environment?:

Kubernetes version (use kubectl version):
Pachyderm CLI version (use pachctl version):
Cloud provider (e.g. aws, azure, gke) or local deployment (e.g. minikube vs dockerized k8s):
OS (e.g. from /etc/os-release):
Others:

This is no longer needed as the default DNS works. Closing this issue out.


Maven: fix classifier being part of the dependency name

In https://github.com/dependabot/dependabot-core/pull/1924 the classifier was added to take account of the different URL pattern needed to pull the dependency, however it was added to the dependency name and this has caused some issues around allow and ignore.
I've put up a repro here: https://github.com/dsp-testing/maven-no-make-pr
Since it is appending the classifier to the end of the dependency name, the allow is preventing the update.
To fix this I moved the classifier into the dependency metadata, which didn't exist when #1924 was created, but now is a perfect place for this data to live!

This fixes the issue in the repro, merging.


techdebt: [CDS-84452]: revert

techdebt: CDS-84452: revert- https://github.com/harness/developer-hub/pull/4141/files
Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the CODEOWNERS.
What Type of PR is This?

[ ] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app


Send DEPLOYMENT_APPROVED event to Slack

What this PR does / why we need it:
The following picture is an example of this change.

Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?:

NONE

/lgtm


added URL support to createClient

Hi,
I thought it would be useful if we could specify redis server with URL string, like below:
// specify remote redis service.
require('redis').createClient('redis://user:password@redis-service.com:6379/');

// or we can also specify localhost.
require('redis').createClient('//localhost:6379');

This overloaded interface would be useful especially for node apps hosted on heroku, on which redis add-ons is usually provided via ENV variable.
require('redis').createClient(process.env.REDISTOGO_URL);

+1

Is there any blocker to merge that PR?

:+1:

Yeah, would love to have this merged!

PING @mranney @brycebaril

+1

+1

+1

:+1: need this

wow,just noticed this was posted a while back and it is still open. Any chance we can get some feedback on this so that we are not waiting 10 months on an open ticket?
If the feature is not welcomed then we can post a gist of simple alternative. If it is welcomed then I am sure @kuwabarahiroshi can do a pull+rebase since his PR is now behind master.

I don't see any problems. If the unix socket test is passing (and it is), this should be merged. I'll merge it if we don't get any negative feedback soon.

Wow, so many +1's. I'm so sorry that I haven't been spending time on this project lately. Please @erinspice make it happen, and if other people want commit access, I'll add you.

You got it, @mranney!

you guys rock

Tip your waiters and waitresses! I'm here all night!

Thanks for merging!
I'm glad that I could contribute such an awesome project.

\o/ :sparkles: thank you :-)


New entity appearance issue

Steps:

Restart HA to make Kitchen TV undiscovered
Launch the app
Make card where Kitchen TV should be displayed visible
Turn on Kitchen TV and wait for it's state change
Refresh app data
Observ card with Kitchen TV

AR
Wrong entity action widgets displayed

CNR any more


Nuxt.new theme install commands unable to find remote repo

λ  ~/Projects/Nuxt  npx nuxi init -t themes/content-wind nuxt-content
Need to install the following packages:
  nuxi
Ok to proceed? (y) y
Nuxt CLI v3.0.0-27467056.93c4dfe                                                          00:38:37

 WARN  could not fetch remote https://github.com/themes/content-wind                      00:38:38

 WARN  Make sure you have installed git correctly                                         00:38:38

Please make sure to use npx nuxi@latest
npx nuxi@latest init -t themes/content-wind nuxt-content


[BUG] Don't crash the daemon if clients send unexpected data for a request

The daemon crashes with the following error, if a client request SetConfig and has empty data:
PS C:\Users\Anjan\github.com\code-ready\crc> crc daemon
INFO Checking if podman remote executable is cached
INFO Checking if admin-helper executable is cached
INFO Checking minimum RAM requirements
INFO Checking if running in a shell with administrator rights
INFO Checking Windows 10 release
INFO Checking Windows edition
INFO Checking if Hyper-V is installed and operational
INFO Checking if user is a member of the Hyper-V Administrators group
INFO Checking if Hyper-V service is enabled
INFO Checking if the Hyper-V virtual switch exist
INFO Found Virtual Switch to use: Default Switch
INFO listening vsock://00000400-FACB-11E6-BD58-64006A7986D3
INFO listening \\.\pipe\crc-http
panic: interface conversion: interface {} is nil, not map[string]interface {}

goroutine 27 [running]:
github.com/code-ready/crc/pkg/crc/api.(*Handler).SetConfig(0xc000584ba0, 0xc00058adb0, 0x10, 0x10, 0x0, 0xc0003adf90)
        C:/Users/Anjan/github.com/code-ready/crc/pkg/crc/api/handlers.go:139 +0x717
github.com/code-ready/crc/pkg/crc/api.Server.handleRequest(0x1fb2c28, 0xc000584ba0, 0x1fa07a0, 0xc000584b70, 0xc00058ada0, 0x9, 0xc00058adb0, 0x10, 0x10, 0x1fb0f68, ...)
        C:/Users/Anjan/github.com/code-ready/crc/pkg/crc/api/api.go:65 +0x414
created by github.com/code-ready/crc/pkg/crc/api.Server.handleConnections
        C:/Users/Anjan/github.com/code-ready/crc/pkg/crc/api/api.go:94 +0x3fa

It would be probably good to use a more high-level framework for the HTTP API. It would avoid this kind of problems.
https://github.com/gin-gonic/gin, https://github.com/gorilla/mux or https://echo.labstack.com/
Personally I would like a framework that do the JSON marshalling/unmarshalling for me.


Create a page to add host type mapping to support multiple host types in one ASG

Related PR: https://github.com/pinternal/rodimus/pull/432

Tested on dev1 UI. Looks good.
https://deploy-dev1.pinadmin.com/clouds/hosttypesmapping/
After creating a mapping, we could see it like this:

Then we edit it:

Finally we got this on the UI:


Add PID as an attribute in each sample

What:
This PR aims to add process Id as an attribute for each sample. This would be an addition to other attributes such as containerId, threadName etc. being sent currently.
Why:
Tools/services consuming the profiles sent by opentelemetry-ebpf-profiler could utilize the PID as an identifier for a process in their software/implementations.

Hi @bhavnajindal, can you please also sign the CLA?

Hi @bhavnajindal, can you please also sign the CLA?

Hi,  I have initiated the process of signing the corporate CLA through my organization - IBM. Awaiting approval from the CLA manager.

Note that we're about to introduce a new collector reporter, that will ultimately replace this OTLP one.

@dmathieu Is there a feature branch available for the new collector reporter.

https://github.com/open-telemetry/opentelemetry-ebpf-profiler/pull/208

@bhavnajindal Just in case you prefer generics, there is a solution (feel free to use). It still requires a type switch, but you don't need to return error from addProfileAttributes().
generics.txt

@rockdaboot Thank you for your solution. I had almost reached the same solution yesterday but my in-experience with go kept me from fully realizing the solution. I learnt a good deal from your code. Thanks again.


Slackin revoked token

Problem Description
Unable to get an invite to the mitmproxy slack. Probably due to Slackin
Steps to reproduce the behavior:

Go to -> https://slack.mitmproxy.org/
enter a valid email address
Finish the captcha
click on "Get my invite" button

Screenshot of the get an invite page

Thanks! Pretty sure I screwed this up yesterday. :)

Looks like I deleted our "legacy" Slack API token and that can't be regenerated.
The workaround is that you can now share invite links to Slack:
https://join.slack.com/t/mitmproxy/shared_invite/zt-j6xka7h1-Un2RyRckXjqVFTtVOXutBg
This link need to be regenerated every 30 days (see https://github.com/integrations/slack/issues/1063). We'll do that as a workaround for a bit, but if there is no viable workaround soon we'll switch to another platform.

I have updated slack.mitmproxy.org to now redirect to the invite page.
If we forgot to refresh the link, please ping us here!


Sort by member name?

Nice extension! :+1:
I'd like to convert this:
public const string NAME_CUSTOMER = "Foo";
public DateTime Created { get; }
public IDictionary<long, long> Mapping { get; }
private readonly Product _product;
public double Price { get; }

To this:
private readonly Product _product;
public DateTime Created { get; }
public IDictionary<long, long> Mapping { get; }
public const string NAME_CUSTOMER = "Foo";
public double Price { get; }

Notice how it sorts by member name. The default vscode sort action sorts entire lines.
This extension has so many options, so I couldn't figure it out. Is it possible?

Thanks. I'll take a look at this.

First off, when sorting, it does use the member name, not the "line as-is".

I don't know your settings as well as when is the outcome you're seeing (though I take it the outcome isn't what you're looking for).

Here is what I am seeing, with default settings with (soon-to-be released next version, which really is a clean up of default settings triggered by this issue, shouldn't differ much if at all, basically just explicitly defined defaults).
Starting with this...
namespace CSharpDotNetProject;

public class TypeMemberName
{
    public const string NAME_CUSTOMER = "Foo";
    public DateTime Created { get; }
    public IDictionary<long, long> Mapping { get; }
    private readonly Product _product;
    public double Price { get; }
}

class Product
{
}

Upon sharpening, it becomes:
namespace CSharpDotNetProject;

public class TypeMemberName
{
    public const string NAME_CUSTOMER = "Foo";

    #region properties
    public DateTime Created { get; }
    public IDictionary<long, long> Mapping { get; }
    public double Price { get; }
    #endregion

    private readonly Product _product;
}

class Product
{
}

See the regionalize settings. Closing as pertains to settings.


Menu action with accessibility does not close the menu

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹

Check this example https://mui.com/material-ui/react-menu/#account-menu
Open the menu
Navigate with top/bottom arrows
Press "space"

Current behavior 😯
Pressing "space" on an MenuItem does not close the menu
Expected behavior 🤔
Pressing "space" on an MenuItem should close the menu.
Since it triggers the MenuItem.onClick when pressing "space"... it should also Menu.onClick so the menu closes too.
There are plenty of alternatives, but it's to be consistent with the documentation that rely on the "onClick" to close the dialog when clicking with a mouse a MenuItem. A workaround for now can be to use:
<MenuItem onClick={() => {handleClose(); doMyAction() }}>...</MenuItem>

instead of
<MenuItem onClick={doMyAction}>...</MenuItem>

... but it feels really too verbose.
Thank you,
Context 🔦
No response
Your environment 🌎
No response

You are correct, the behavior of the demo is not working as expected. cc @mj12albert would you like to tackle this?

👌 I'll work on this today @mnajdova


Our CVPR tutorial and its use of Neural Structured Learning

Hi folks.
I wanted to let y'all know about our CVPR 2021 tutorial "Practical Adversarial Robustness in Deep Learning: Problems and Solutions (PAR)" organized by Pin-Yu Chen (IBM Research) and myself.
We made use of Neural Structured Learning in this tutorial extensively and wanted you to know about that. Code, slides, and videos of our tutorial are all available here: https://sites.google.com/view/par-2021. Was wondering if it's possible to give it a mention?
Our code is distributed as Colab Notebooks.

Hi @sayakpaul, wonderful to know about your tutorial and that you've used NSL extensively :). We're planning to create a dedicated page or a separate section of the README to document such external usage of NSL. We'd be happy to list this tutorial and related material there. Feel free to also let me know if you have given other tutorials, talks, etc, on NSL and would like to list them there.
Will keep this issue open until we have that structure in place (rough ETA 1-2 weeks).

Thank you so much!

Thanks for your patience! We now have a dedicated page to document feature usage: https://github.com/tensorflow/neural-structured-learning/blob/master/usage.md, and I've already included your CVPR tutorial. Let me know if there is any other workshop/tutorial/presentation that you're aware of that should be added here. I am closing this issue now.

Thanks, @arjung. The tutorial on Recognizing Multimodal Entailment looks super (especially very comprehensive). Do you folks plan to release the videos soon?

I believe so but I am not a 100% sure yet. If they become available, will definitely link them here.


Implement server crawling

"Pick Layer" isn't really the best UX for those who don't understand the intricacies of ArcGIS REST services.
When somebody specifies a URL, GDD should provide a good UX. It should crawl the server and list the layers, allowing the user to choose what layer they want to download from.
General Idea:
Url: https://gismaps.kingcounty.gov/arcgis/rest/services/
Hydro
    drainage_basins (MapServer)
        drainage_basin_boundaries <-- clickable link to <geodatadownloader.com?layer=<drainage_layer>
Property
    KingCo_Parcels (MapServer)
        King County Parcels <-- clickable link to <geodatadownloader.com?layer=<king_county_parcel>

This way, somebody can quickly start the download process for several layers in different browser tabs at once.

I have been build a search engine for geospatial data currently focused on ArcGIS REST Services. It can be found at https://search.gisdata.io
I have also been building some SDKs so that developers can integrate it into their applications. The python SDK is available now and can be found here.
https://github.com/OmniverseXYZ/gisapi-sdk-python
The JS sdk should be coming very soon.

@pdinkins
Oh this is so interesting! Love the concept of a geospatial search engine.
I've been wanting to build something similar for years now.
I'm curious if you're planning on adding any kind of geospatial aspect to searching for data? Like, zoom on a map and only pull relevant data from the extent on the map.
Also, how are you sourcing your data?

Yes I plan on building a spatial index of the data and allowing for a map based search. I am sourcing the data sources from a list created by a community member and I am also working on a web crawling bot that will do it automatically.

Oh nice! What's your method for crawling?
I wrote a paper back in college for ACM SIGSPATIAL around using a chrome extension to have users do the discovery for you, instead of needing to do it yourself. I have a feeling that crowdsourcing is likely important for keeping high quality data.

Oh nice! What's your method for crawling?
I wrote a paper back in college for ACM SIGSPATIAL around using a chrome extension to have users do the discovery for you, instead of needing to do it yourself. I have a feeling that crowdsourcing is likely important for keeping high quality data.

@pdinkins idk if you got a notication for this

I saw it but I was headed out of town so I haven't had a chance to read the paper yet. I plan on reading it Monday morning. Would you like to have a quick chat sometime in the next couple weeks? I don't know what your schedule is like because of the holidays but I am available this week Monday-Wednesday.

@pdinkins, email me at<EMAIL_ADDRESS>and we can set up a time to chat!


Bandit: Add the request_path to the span name

The Phoenix instrumentation updates the span name to include the request_path, but some requests don't go through the router (like LiveView websocket connections), which means the root span is missing context for what the span is related to.
This PR changes the default Bandit span name to include the conn.request_path.

The reason it is only set when going through the router is that it can't have a high cardinality value for the span name: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#name
If the user wants the path, no matter what, in the name then it can be set with the update_name macro in their handler.
Or if there is something about being routed to a LiveView that means it is a  low cardinality value then it could be updated by the instrumentation there?

Hi @tsloughter , thanks for the comment and information.
I agree with you, this PR would be going against the high cardinality rule for span names.
While update_name is a great general solution, it doesn't work for sockets defined in Phoenix endpoints. eg.
socket("/live", Phoenix.LiveView.Socket, websocket: [connect_info: [session: @session_options]])

socket("/socket", NervesHubWeb.UserSocket, websocket: [connect_info: [session: @session_options]])

Is there a recommended approach to updating a parent spans name? This would work for the case of the second socket, which is in our code base, but not for the socket used for Live View communications.

A slightly different approach would be to update the span name only if the status code is 101.
eg. if conn.status == 101, do: Tracer.update_name("WEBSOCKET #{conn.request_path}")
This would be done in handle_request_stop/3

For the time being I've done this in our Phoenix app: https://github.com/nerves-hub/nerves_hub_web/pull/1612/files#diff-a90641c8be89f7c4fa30427d348f740fc6a884d91c446fdc5987b78a92dcb8e5

@joshk what about checking if the path is /live? Instead of checking for the 101.

@tsloughter great advice!
I checked the URL patterns for Phoenix websocket connections, and they all end with /websocket, so I changed my customization to use request_path, https://github.com/nerves-hub/nerves_hub_web/pull/1612/files#diff-a90641c8be89f7c4fa30427d348f740fc6a884d91c446fdc5987b78a92dcb8e5R16-R22
I think having this in the Phoenix instrumentation would be useful, but there is no telemetry event to hook into, which is why I ended up using the Bandit [:bandit, :request, :stop] event.

@tsloughter , thank you for your reviews and advice.

I think having this in the Phoenix instrumentation would be useful,

aah, wonder why Phoenix doesn't send a telemetry event for these...

Yeah, its a little odd and annoying, and I'm sure they would be open to a PR, but I'll delay looking into that until another day.

I'm trying to figure out if we can do something upstream to be able to attach to sockets: https://github.com/phoenixframework/phoenix/pull/6019


Strong Lens systems: AGN and SN host galaxy Einstein rings

@tcollett @dannygoldstein @linan7788626 @mpwiesner @jbkalmbach
Thinking about the strong lens systems to be sprinkled into the ultraDDF part of the DC2 survey. Has the sprinkler been upgraded to include simulated Einstein ring images, to get the SN and AGN hosts right? I know Nan and Matt made a lot of progress on this, but is it ready to be run on the DC2 instance catalogs?
In #40 there is discussion of which input lens catalog to use, lenspop or OM10. Either way, we'd need source galaxy properties to be predicted, and then used to make the input images for PhoSim and/or ImSim.
Suppose we make a 1-10 thousand time delay lenses in the uDDF. Do you want to sprinkle a realistic population of non time-variable lens systems in the main survey area, to support general lens finding? Do these need to include some (or many) compound (double source plane) systems?
All these things are possible - but will take some work. Great if you can indicate what you can help with! Thanks :-)

Thinking about the strong lens systems to be sprinkled into the ultraDDF part of the DC2 survey. Has the sprinkler been upgraded to include simulated Einstein ring images, to get the SN and AGN hosts right? I know Nan and Matt made a lot of progress on this, but is it ready to be run on the DC2 instance catalogs?

Hi @drphilmarshall , currently, we have the modules to create lensed host galaxies if the instance catalogs of the hosts of AGNs are provided. @jbkalmbach gave us a sample input for this, and as it is shown in Twinkles/issues/455, the codes for creating lensed hosts of AGNs are ready. @mpwiesner will take over the codes and merge them in. I will collect the codes and send them to Matt asap. Regarding the hosts of SNs, we have not tried yet, but it should be similar to what we did for the hosts of AGNs. Firstly, the input we need is a sample catalog of the hosts of SNs.

Suppose we make a 1-10 thousand time delay lenses in the uDDF. Do you want to sprinkle a realistic population of non-time-variable lens systems in the main survey area, to support general lens finding? Do these need to include some (or many) compound (double source plane) systems?

It is a good idea that including compound (double source plane) systems. I would like to contribute to this if we decide to involve it.
Hi @tcollett, if I recall correctly, you have some papers about "double Einstein Crosses" and "double Einstein Rings". What do you think of involving compound systems into LSST? Thanks, :-)

Thanks Nan! To generate SN hosts from a galaxy instance catalog, all that is required is to draw a random SN location from the surface brightness profile of the source galaxy, then add the SN in at that location. I have the following code to do this quickly and analytically for a source galaxy with a Sersic surface brightness profile:
   from scipy.special import gammaincinv
   import numpy as np

   def random_location(self):
       """Sample a random (x, y) location from the surface brightness
       profile of the galaxy."""

       bn = gammaincinv(2. * self['n'], 0.5)
       z = np.random.random()
       x = gammaincinv(2. * self['n'], z)
       R = (x / bn)**self['n'] * self['r_eff']
       theta = np.random.random() * 2 * np.pi
       xp, yp = R * np.cos(theta), R * np.sin(theta)
       xt = xp * np.sqrt(1 - self['ellip'])
       yt = yp / np.sqrt(1 - self['ellip'])
       x, y = np.linalg.solve([[np.cos(self['theta']), np.sin(self['theta'])],
                               [-np.sin(self['theta']), np.cos(self['theta'])]],
                              [xt, yt])
       return x + self['x'], y + self['y']

As a test, it could be good to just start with a small catalog of spiral galaxies. Is this readily available? If not I can provide one myself.
@mpwiesner If you point me the code base I can integrate the SN location sampler.
Also @linan7788626 I agree we should push for compound lenses in DC2! There is a paper to be written on that analysis.

Hi @dannygoldstein, the most recent code that @linan7788626  produced is here:  https://github.com/linan7788626/hack_with_Matt/tree/master/lensed_hosts_for_Matt.  The main routine is generating_lensed_hosts.py to generate fits stamps of lensed hosts.  I then take the output and make instance files for PhoSim.  @drphilmarshall, what is the end product that is needed for DC2, PhoSim fits e-images of each system or something else?

Hi @mpwiesner, @linan7788626, this code looks like it expects a catalog of lensed point sources - where is this catalog calculated?

@mpwiesner I think we need to bolt your script onto The Sprinkler, so that we can make PhoSim instance catalogs that use your little FITS images when generating the DC2 images. And then we'd need to pass this instance catalog and the folder of stamps to the people running PhoSim. Maybe a good project for Sprint Week?

Hi @dannygoldstein , the catalog of lensed point sources (AGNs only) are from Twinkles II, @jbkalmbach provided it kindly.
Hi @drphilmarshall , a project for Sprint Week sounds great. I will reorganize my codes for @mpwiesner before the Sprint Week.

I have a library of lensed SNe (images + host galaxies + lenses) I can provide, based on an OM10 like sim. but it is not generated by twinkles
i think we should all chat soon @jbkalmbach @rbiswas44 @drphilmarshall  @mpwiesner @linan7788626 to decide how to proceed
perhaps the next scheduled twinkles meeting ?
Danny Goldstein
http://astro.berkeley.edu/~dgold

From: Nan Li<EMAIL_ADDRESS>Sent: Wednesday, November 22, 2017 6:56:15 AM
To: LSSTDESC/DC2_Repo
Cc: Danny Goldstein; Mention
Subject: Re: [LSSTDESC/DC2_Repo] Strong Lens systems: AGN and SN host galaxy Einstein rings (#46)
Hi @dannygoldsteinhttps://github.com/dannygoldstein , the catalog of lensed point sources (AGNs only) are from Twinkles II, @jbkalmbachhttps://github.com/jbkalmbach provided it kindly.
Hi @drphilmarshallhttps://github.com/drphilmarshall , a project for Sprint Week sounds great. I will reorganize my codes for @mpwiesnerhttps://github.com/mpwiesner before the Sprint Week.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/LSSTDESC/DC2_Repo/issues/46#issuecomment-346329447, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACpC4NuRbdU2tpoz8s3GFRs0N0bRdr16ks5s5AvfgaJpZM4QlFQn.

@dannygoldstein sounds like a good idea.  @jbkalmbach when is the next scheduled Twinkles meeting?

Hey everybody,
Danny just posted a message about this on slack, but wanted to crosspost here to make sure people saw it. We're proposing a call about DC2 SL time domain inputs on Friday 1200 Pacific time after the general DC2 call. The purpose of this call would be to get organized on what codes we need to make sure we get the desired SL inputs into the DC2 data.

@jbkalmbach Is this ready to be closed?

I think we can close this issue.  We are generating InstanceCatalogs that include the strong lensing systems.


SVG tspan tags not rendered with IE

When I use a tspan tag for an SVG, html2canvas doesn't render it in IE.  Using just text tags, works though.
https://jsfiddle.net/difftech/c97m815p/

Fixed in 1.0.0 https://jsfiddle.net/q1vug5p8/


xBitLocker: Fix hashtables according to the style guideline

Pull Request (PR) description

Changes to xBitlocker

Fix hashtables according to the style guideline.

This Pull Request (PR) fixes the following issues
None. Recently merged PSSA custom rules in the test framework would fail the tests unless these are resolved.
Task list

[x] Added an entry under the Unreleased section of the change log in the CHANGELOG.md.
Entry should say what was changed, and how that affects users (if applicable).
[ ] Resource documentation added/updated in README.md.
[ ] Resource parameter descriptions added/updated in README.md, schema.mof
and comment-based help.
[ ] Comment-based help added/updated.
[ ] Localization strings added/updated in all localization files as appropriate.
[ ] Examples appropriately added/updated.
[ ] Unit tests added/updated. See DSC Resource Testing Guidelines.
[ ] Integration tests added/updated (where possible). See DSC Resource Testing Guidelines.
[x] New/changed code adheres to DSC Resource Style Guidelines and Best Practices.

This change is

Codecov Report

Merging #53 into dev will not change coverage.
The diff coverage is 100%.

@@         Coverage Diff         @@
##            dev    #53   +/-   ##
===================================
  Coverage   100%   100%
===================================
  Files         3      3
  Lines        96     98    +2
===================================
+ Hits         96     98    +2

Impacted Files
Coverage Δ

...s/MSFT_xBLAutoBitlocker/MSFT_xBLAutoBitlocker.psm1
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Thanks for the contribution @johlju !


IPython console does not work with Micromamba environments

Description
What steps will reproduce the problem?

Using a micromamba environment is currently not permitted.
 Could you check that?

I think this problem happens because micromamba has the code to activate environments in itself. Could you check that?

I don't know what you mean by "activate environments in itself".
The essential problem is that Spyder thinks a micromamba environment is a conda environment because it has a conda-meta directory, and therefore uses the conda-activate.sh script. Spyder also assumes that a conda environment will have an activation script <conda-root>/bin/activate which I believe is true for conda, miniconda, and mamba, but not true for micromamba.
micromamba environments should still be activated and can be done so using the executable
eval "$($MAMBA_EXE shell activate <env path>)"

An easy fix in conda-activate.sh is:
if [[ -e "$CONDA_ACTIVATE_SCRIPT" ]]; then
    # conda, miniconda, mamba
    source $CONDA_ACTIVATE_SCRIPT $CONDA_ENV_PATH
elif [[ -n "$MAMBA_EXE" ]]; then
    # micromamba
    eval "$($MAMBA_EXE shell activate $CONDA_ENV_PATH)"
fi

micromamba environments should still be activated and can be done so using the executable

That's what I meant, i.e. that you don't need to invoke an external script to activate envs with micromaba because it can do that by itself.

An easy fix in conda-activate.sh is

I think that's fine, but I have one suggestion: changing MAMBA_EXE for MICROMAMBA_EXE because I think both binaries have different names, right?

I think that's fine, but I have one suggestion: changing MAMBA_EXE for MICROMAMBA_EXE because I think both binaries have different names, right?

On my installation, micromamba sets MAMBA_EXE; there is no MICROMAMBA_EXE. I don not have mamba installed, however; will this be different if mamba is installed? I assume not, since micromamba is the same as mamba, just packaged into a single executable...

Ok, I see. Then forgot what I said.
But that about Windows?

I'll have to verify on Linux and Windows.

It appears to use the same environment variable on Windows, both MAMBA_EXE and MAMBA_ROOT_PREFIX.

Ok, great! Then I think you're ready to open a PR for this.

While not relevant to this PR, I discovered something nice about micromamba that will be useful in the future implementation of the environment/package manager. Executables in any conda environment (conda, miniconda, mamba, micromamba) can be run directly from micromamba with their environments activated in a single command!
micromamba run --prefix=<path to env> <executable> <exec opts> <exec args>

This will simplify launching IPython Consoles and obviate the need for conda-activate.sh.


NoSuchMethodError: The getter 'assetPathsToEvict' was called on null.

Performing hot restart...

NoSuchMethodError: The getter 'assetPathsToEvict' was called on null.
Receiver: null
Tried calling: assetPathsToEvict
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:63:5)
#1      HotRunner._resetDirtyAssets (package:flutter_tools/src/run_hot.dart:507:20)
#2      HotRunner._restartFromSources (package:flutter_tools/src/run_hot.dart:575:5)
<asynchronous suspension>
#3      HotRunner._fullRestartHelper (package:flutter_tools/src/run_hot.dart:751:16)
<asynchronous suspension>
#4      HotRunner.restart (package:flutter_tools/src/run_hot.dart:698:38)
<asynchronous suspension>
#5      TerminalHandler._commonTerminalInputHandler (package:flutter_tools/src/resident_runner.dart:1619:40)
<asynchronous suspension>
#6      TerminalHandler.processTerminalInput (package:flutter_tools/src/resident_runner.dart:1659:7)
<asynchronous suspension>

flutter doctor -v
[✓] Flutter (Channel master, 2.6.0-1.0.pre.219, on macOS 11.4 20F71 darwin-x64, locale zh-Hans-CN)
• Flutter version 2.6.0-1.0.pre.219 at /Users/Xsuer/workspace/develop/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 58944e6b88 (7 hours ago), 2021-09-08 19:37:34 -0700
• Engine revision 6a3b04632b
• Dart version 2.15.0 (build 2.15.0-82.0.dev)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/Xsuer/workspace/develop/android_sdk
✗ cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✗] Xcode - develop for iOS and macOS
✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
✗ CocoaPods installed but not working.
You appear to have CocoaPods installed but it is not working.
This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it.
This can usually be fixed by re-installing CocoaPods.
To re-install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
[✓] VS Code (version 1.60.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.26.0
[✓] Connected device (2 available)
• Pixel (mobile) • FA69V0308819 • android-arm64  • Android 10 (API 29)
• Chrome (web)   • chrome       • web-javascript • Google Chrome 93.0.4577.63
! Doctor found issues in 2 categories.

Hi, @SeaZhang, I would like to ask that the next time you file an issue, kindly follow one of the issue template that are available.
Please provide a minimal complete reproducible code sample
Thank you

I run a android project with import flutter project with binding gradle .android/include_flutter.groovy。 Android app running is successful,hot reload is also successful too.
But when restart flutter project,the terminal console show exception with above description,check flutter doctor -v and get info above.
need some tips. thx

Hi @SeaZhang,
Your description doesn't give me much to go on.
I need a minimal complete reproducible code sample to investigate and see where the issue is coming from so that the appropriate action can be taken.
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

Re-opening this as it is the number 1 crasher on beta 2.7

Stacktrace on 2.7.0-3.1.pre:
Thread 0 main threadNoSuchMethodError: NoSuchMethodError: The getter 'assetPathsToEvict' was called on null.Receiver: nullTried calling: assetPathsToEvict
at Object.noSuchMethod(object_patch.dart:68)
at HotRunner._resetDirtyAssets(run_hot.dart:508)
at HotRunner._restartFromSources(run_hot.dart:576)
at <asynchronous gap>(async)
at HotRunner._fullRestartHelper(run_hot.dart:752)
at <asynchronous gap>(async)
at HotRunner.restart(run_hot.dart:699)
at <asynchronous gap>(async)
at TerminalHandler._commonTerminalInputHandler(resident_runner.dart:1623)
at <asynchronous gap>(async)
at TerminalHandler.processTerminalInput(resident_runner.dart:1663)
at <asynchronous gap>(async)

This was migrated to null-safety in #105798, however the underlying bug was not fixed, so this will now be a cast error.

I am going to close this--if it is a cast error I will re-file it as such


The .near wallet do not connect

Describe the bug
Once I try to connect the wallet .near its connect for a millisecond and then goes down
To Reproduce
Steps to reproduce the behavior:

press the Near buttom
Click on connect wallet
symbol of connecting
connected by a millisecond
goes down

Expected behavior
I wantes to connect and create a proposal in the green plus buttom
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [iOS]
Browser [Brave
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [big sur]

Additional context
Add any other context about the problem here.

was fixed by cleaning the cookies


Fix testcase for Upgrade SpringFramework Dependencies

fix testcase for upgrade SpringFramework dependencies.

Codecov Report

Merging #57 (73ce2c4) into main (3a119b6) will decrease coverage by 0.44%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main      #57      +/-   ##
============================================
- Coverage     64.17%   63.72%   -0.45%
+ Complexity     7948     7911      -37
============================================
  Files           420      420
  Lines         45406    45272     -134
  Branches       9162     9129      -33
============================================
- Hits          29140    28851     -289
- Misses        12725    12900     +175
+ Partials       3541     3521      -20

Impacted Files
Coverage Δ

...n/java/com/alibaba/fastjson2/util/UnsafeUtils.java
30.18% <0.00%> (-41.51%)
:arrow_down:

...in/java/com/alibaba/fastjson2/JSONWriterUTF16.java
62.15% <0.00%> (-10.97%)
:arrow_down:

...in/java/com/alibaba/fastjson2/JSONReaderASCII.java
66.66% <0.00%> (-6.85%)
:arrow_down:

...main/java/com/alibaba/fastjson2/util/JDKUtils.java
40.25% <0.00%> (-5.55%)
:arrow_down:

...baba/fastjson2/reader/FieldReaderObjectMethod.java
73.80% <0.00%> (-4.77%)
:arrow_down:

...java/com/alibaba/fastjson2/JSONWriterUTF8JDK9.java
73.41% <0.00%> (-3.80%)
:arrow_down:

...son2/reader/ObjectReaderNoneDefaultConstrutor.java
78.75% <0.00%> (-3.40%)
:arrow_down:

...ba/fastjson2/reader/ObjectReaderImplMapString.java
75.00% <0.00%> (-1.93%)
:arrow_down:

...rc/main/java/com/alibaba/fastjson2/JSONWriter.java
71.41% <0.00%> (-1.61%)
:arrow_down:

...java/com/alibaba/fastjson2/reader/FieldReader.java
52.43% <0.00%> (-1.22%)
:arrow_down:

... and 39 more

Continue to review full report at Codecov.

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


400 Bad Request >> Missing Error received when try to publish results to testrail

cypress-testrail (latest version): 2.7.1
Cypress version: 12.14.0
After test suite is run with success and try to publish the results on testrail the following error is received:
"Could not send list of TestRail results: 400 Bad Request >> Missing Error"

fixed due to bad configuration into domain

hi there
a cool
what was your wrong config? maybe i can add a check for it :)

I had something like: testrail.com ' instead of testrail.com

ok thats weird, i thought i have already removed leading http schemes if accidentally provided
ill double check
but thanks, great its working now


/api/v2/silences: context deadline exceeded

After upgrading from Alertmanager 0.15.3 to .0.17.0, Karma 0.39 stopped working.
curling the endpoint works without any issues.
./karma-linux-amd64 --version
"v0.39"

alertmanager --version
alertmanager, version 0.17.0 (branch: non-git, revision: c7551cd)
  build date:       20190624-21:36:45
  go version:       go1.11.10

INFO[0000] [am] Configured Alertmanager source at https://alertmanager:9093 (proxied: true)
INFO[0000] Initial Alertmanager query
INFO[0000] Pulling latest alerts and silences from Alertmanager
INFO[0000] [am] Collecting alerts and silences
INFO[0000] GET https://alertmanager:9093/metrics timeout=0s
INFO[0000] Upstream version: 0.17.0
INFO[0000] GET https://alertmanager:9093/api/v1/status timeout=0s
INFO[0000] [am] Remote Alertmanager version: 0.17.0
ERRO[0000] [am] Get https://alertmanager:9093/api/v2/silences: context deadline exceeded```

Well, you have 0s timeout for all requests: timeout=0s

@prymitive thanks, I didn't remember to check the docs because there were no issues with 0.15.3... Would it make sense to have some default timeout instead of 0s?

I though it was defaulting to 40s but looks like that's not true, I removed timeout from my config and I got 0s. This definetely needs fixing, thanks for pointing that out

Will be fixed via #792

Should be fixed in master


Need help with the Google Map scraper Algorithm

Hi @gosom
I would like to thank you to everyone who has contributed in this great tool which is helping a lot of businesses.
I'm coming from the JavaScript background and building the scraper with the same feature using Crawlee
It has great built in features for scrapping.
When time comes to scrap the business information from Google Maps then I need help to know the algorithm behind your scraper.
How we move from one coordinates to the other?
As for one keyword, Google return 120 results Maximum so how your code move to the next closed business information?
How it keep moving to next closest business?
Can you please share the files where this scraper code is written or share the algorithm so I can write the code in JavaScript?
I look forward to your kind, quick, and positive response.
Thank You

hi,
please check the code in this folder:
https://github.com/gosom/google-maps-scraper/tree/main/gmaps


Users Migrated from Parse to Heroku/Parse-server cant login

I migrated everything from parse to mongolabs/heroku/parse-sever. When I try to login with an existing user (pre-migration) I get this error:
{code: 101, error: "Invalid username/password."}
code: 101
error: "Invalid username/password."
So I tried creating a new user to make sure im able to connect and write to the new mongolabs db and everything is talking to each other correctly, and I was able to login perfectly fine with this new user. So for some reason all old users cant login, however all new users can.

Hmm... can you do some additional troubleshooting, perhaps log some details in users.js handleLogIn and try to find out where it's going wrong?  First report of this.

I couldnt figure out the problem. For what its worth, the database i was using was a clone of the database that was created via the parse db migration tool. (So a clone of a clone sort of). I ended up setting the DB var on heroku to point back to the DB that was created from the parse db migration tool. Works better this way anyways cause this db will automatically get updated by parse till I cut the cord. Thanks anyways

I have the same problem, users created after migration can login, and migrated users can't. Anyone knows if this has been solved?


fix(*): reject config if both deprecated and new field defined and their values mismatch

Summary
This PR adds a validation to deprecated fields that checks if in case both new field and old field were defined - their values must match.
It introduces a new structure to deprecation definition by adding replaced_with information. This way field validation can verify if the replaced_with field has the same value as the old deprecated field. By default the comparison is done via translation through simple path but there might be instances where translation from old to new is more complicated and then the translation function should be provided in translation field.
The plan is to remove translate_backwards field in the future in favor of replaced_with.

Checklist

[x] The Pull Request has tests
[x] A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
[x] There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference
KAG-5262

I jumped the gun a little bit - let me add one more test 👀

I'm changing this back to draft since we've found some issues with this approach and gateway compatibility between the upcoming 3.8 and older versions. Feel free to review this PR but please hold off merging.


Issue #12859 Keyboard modifiers support for simulateKeyEvent

Added support for sending additional arguments to simulateKeyEvent, e.g. modifiers such as ctrlKey: true or any other value supported by KeyboardEventInit.

Sorry about being so slow with this, been swamped with work as of late. I'll review this on Sunday / Monday.
Again, apologies for taking so long!

No worries! Thanks for putting aside time to review this.

On 25 Nov 2016, at 08:47, Pete Nykänen<EMAIL_ADDRESS>wrote:
Sorry about being so slow with this, been swamped with work as of late. I'll review this on Sunday / Monday.
Again, apologies for taking so long!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Made the requested changes, and provided a unit test. Had to pop it in a new file, SpecRunnerUtils-test, hope that's fine. Let me know if anything else needs to be changed, thanks!

I'll try and test this out for the final time today and then merge it in, LGTM so far :1st_place_medal:

Great, thanks!

On 22 Dec 2016, at 08:40, Pete Nykänen<EMAIL_ADDRESS>wrote:
I'll try and test this out for the final time today and then merge it in, LGTM so far 🥇
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Okay, one more nitpick and then it's ready to go 👍  Great work @haslam22!

Woops, forgot to update that part. Should be all good now.

Thanks for this great contribution @haslam22!


How to add new options with jquery?

Hello guys..

I am trying to add new  in my select using jquery but not working.
I have tried with a normal/default  and my code is working fine!
But when i try <select cass="form-control selectpicker> its not working..

i am having the same issue

$(document).on('change', '.selectpicker', function () {
$('.selectpicker').selectpicker('refresh');
});
doing the above or
$('.selectpicker').selectpicker('refresh');
will help update the list just discovered that.

Please read the documentation.

Good! Thanks a lot @ubfacility !!!


OpenPoGoBot seems conflicting with Google Play Service

Expected Behavior

Android phone no problem using Google service while OpenPoGoBot is running on PC.

Actual Behavior

Originally Android phone works well (I have 4.4, 5.0 and 6.0 devices, all the same behavior)
Once OpenPoGoBot has been ran for a few hours (or some API / login failure happened), all the Android phones asked me to re-login Google account

Steps to Reproduce

Get yourself an Android device and login a Google account
Use the same account for OpenPoGoBot
Wait for a few hours or until API / login failure happened
Your Android device will ask you to login again on notification bar

Other Information
OS: Linux / Mac
Git Commit: latest

You should not be using this on your main account, but I'll keep this in mind.

Just for my curious, wanna know if it is about use of Google Map Key or other things, as Pokemon Go should not be related to Google Play...

i made a fake google account to test a bot on. I literally signed up, got a gmaps key and started the pokemon account. Within 20 mins google had blocked the account for "Suspicious Activity", so it looks like google track the auth requests when using pokemongo.

I also tried but with different account for player and map key, the account being log out is the player account, the map key account is working well.

What happens if you use an app password (as if 2 factor authentication was enabled)?

Both 2-step with app password and normal password (no MFA) got the same behavior.

I use a gmaps api key from my main account, and have had no issues.
could be because I use a seperate account to login to pogo

are you running the bot at a different location or ip than your phone? maybe google things your account got hacked because of that

I think this should not be the case, one people can have more than one phone, probably one left at home and one in office or on street.
And Google API only being used during authentication not during gameplay.

are you running the bot at a different location or ip than your phone? maybe google things your account got hacked because of that

Closed for issue cleanup.


Multi Fibonacci.

This change is

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#458  👈
#457
#454
#453
dev

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @alonh5 and the rest of your teammates on  Graphite

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

Project coverage is 96.25%. Comparing base (ca561b3) to head (2d45fce).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #458      +/-   ##
==========================================
+ Coverage   96.22%   96.25%   +0.02%
==========================================
  Files          56       57       +1
  Lines        8647     8706      +59
  Branches     8647     8706      +59
==========================================
+ Hits         8321     8380      +59
  Misses        278      278
  Partials       48       48

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


✨(elasticsearch) build a quick partial implementation of LRS GET

Purpose
We're quickly building a partial implementation of the LRS specification to experiment with customers. With the additional
constraint of not being able to build our own index for search purposes, we're just doing what we can do with the basic existing shape of the documents.
We're documenting all parameters for GET, specifying which ones are actually supported or not in the current version.
Proposal

[x] implement a quick and partial version of LRS GET
[x] document all query parameters (specifying which ones are unsupported)

@jmaupetit I updated the PR with proper serialization of results and consistent-over-requests pagination

So I have looked into it and I'm not sure how appropriate hypothesis is for API tests (see https://hypothesis.readthedocs.io/en/latest/examples.html#fuzzing-an-http-api), especially as we need tight control of the mock data to test our search and sorting parameters.
In any case, I'd rather merge this one so we can move on, and we can always look into testing the API with hypothesis later on.


Publish only to one client

Its it possible?
scServer.exchange.publish('Game', {
    test: 1,
    s: 2
});

Its publish to all clients.

socket.subscribe('test').watch(function (data) {
    abc(data);
});

and i publish it to all clients:
scServer.exchange.publish('test', 'some string');

but i want too on first client connection send to only to him
socket.emit('test', 'some string');

doesnt work, so should i do something like this:
socket.on('test', function(data) {
    abc(data);
});

and on client side i will have ON and SUBSCRIBE same channel?

@trzyrazyzero You could have each client subscribe to their own channel, for example:
socket.subscribe('test_alice').watch(function (data) {
  abc(data);
});

and then when you want to send a message to the user 'alice', you would go:
scServer.exchange.publish('test_alice', 'some string');

The trick is to incorporate a username or userid as part of the channel name itself. SC is really good at handling LOTS of unique channels.

jondubois has right. The better practices is create a model for you channels, and have a service (handler) for you channel's model.
for example:
socket.subscribe('alice:UUID_CONTEXT').watch(function(data) {
   log(data);
});

// server side
function sendToSomeone(data) {
  scServer.exchange.publish('alice:context', data);
}```

@trzyrazyzero Hey man, in our app we have a general broadcast channel, a customer channel and a user channel. For example, we have maybe 100 customers with each customer having 100 users. If we need to emit to a specific user, we publish to that user's channel. If we need to publish to all of one customer's users then we publish on their customer channel and if we need a general publish we publish on the broadcast channel. I hope that helps!


build: update ovs version in dockerfile

ovs version in ubuntu source has been updated to 2.13.5-0ubuntu1.
we may build ovs from source code later.

Codecov Report

Merging #394 (0754743) into main (a6b0585) will decrease coverage by 0.61%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #394      +/-   ##
==========================================
- Coverage   64.17%   63.55%   -0.62%
==========================================
  Files          41       41
  Lines        7269     7269
==========================================
- Hits         4665     4620      -45
- Misses       2225     2257      +32
- Partials      379      392      +13

Impacted Files
Coverage Δ

pkg/controller/group/group_controller.go
70.39% <0.00%> (-2.89%)
:arrow_down:

pkg/agent/datapath/multiBridgeDatapath.go
61.32% <0.00%> (-1.57%)
:arrow_down:

plugin/tower/pkg/controller/policy/controller.go
82.02% <0.00%> (-1.31%)
:arrow_down:

pkg/monitor/agent.go
65.31% <0.00%> (-1.02%)
:arrow_down:

pkg/agent/controller/policy/policy_controller.go
77.26% <0.00%> (-0.74%)
:arrow_down: