Uninstaller tool

@yegor256 , what do you think about adding an uninstaller tool? cam installs many apps (e.g. TeX-Live, Inkscape, parallel etc.) and I think it would be nice to have such a feature.

@nai1ka this would be pretty dangerous, I believe. We will have to remove a lot of system-level packages. Maybe, instead, we can print a detailed message when make install happens? Some sort of a warning: "You are going to install these packages: ... Do you agree?" Then, the user should click Yes (or call it like this: make install FORCE_INSTALL=yes)


fix a bug in the all zeros check in the alchemical_analysis.py

let the calculation continue if there is only TI data

test the new code on a TI only dataset, seems to work fine


Enforce Pay with TransferWise plan limit

Resolves https://github.com/opencollective/opencollective/issues/3028
Based on #3623

Thanks @znarf! The frontend is here: https://github.com/opencollective/opencollective-frontend/pull/3879

Sorry, a bit of annoying last minute feedback, I think it should be transferwisePayouts plural.
And handleTransferwisePaymentLimit should be handleTransferwisePayoutsLimit. Maybe even handleHostTransferwisePayoutsLimit or handleHostPlanTransferwisePayoutsLimit to match other similar methods.

Rebased, changes starting at 8f1868b.


Add tickers endpoint

available by /tickers route
the example
The response:
[
   {
      "ticker_id": str,
      "base_currency": str,
      "target_currency":str,
      "last_price": float,
      "liquidity_in_usd": float,
      "base_volume": float,
      "target_volume": float,
      "pool_id": str
   }
]

Get all pools from the spacebox

SELECT * FROM spacebox.liquidity_pool FINAL

ticker_id is a_denom + b_denom str
"base_currency" is a_denom
"target_currency" is b_denom
"last_price" is swap_price from spacebox_swap table as

SELECT swap_price FROM spacebox.swap FINAL
WHERE pool_id = 1
ORDER BY height DESC
LIMIT 1

"liquidity_in_usd" is a better way to convert everything to hydrogen, get the the price of h to boot, and convert to USD. Liquidity_A and LIQUIDITY_B fields from spacebox.liquidity_pool table will help
"base_volume" is the sum of  a_denom coins swapped for the last 24h
"target_volume"  is the sum of  b_denom coins swapped for the last 24h
"pool_id" is pool_id

it's possible to get denom form IBC hash via denom_trace table
Or, like early from the endpoint

take atom price -> get hydrogen price -> get boot price (instead of take boot price directly)

ibc/B6CAD3F7469F3FAD18ED2230A6C7B15E654AB2E1B66E1C70879C04FEF874A863  - graveth (10**18 exponent)

ibc/4B322204B4F59D770680FE4D7A565DDC3F37BFF035474B717476C66A4F83DD72 - evmos (10**18 exponent)

13,15,19,21, 22 - hide, but show in dev/tickers


Feature parsing logic from support2.csv to support_parsed.csv

I would like to get logic of framing support_parsed dataset from raw support2.csv file.
Basically i am curious to know about time and death columns in parsed files.

Please check out the support_study_parse_data.R file, this shows how the data are parsed to create support_parsed.csv.
The original SUPPORT 2 trial dataset can be found at https://hbiostat.org/data/
Sorry for the delayed response, I need to fix my notifications!


Convert three register flags to type flagx.StringFile

We are working on having M-Lab managed VMs leverage the Autojoin API in order to get a dynamic DNS name. The value of several of the flags to the register command are already present on the local filesystem of our VMs in the /var/local/metadata directory. Namely, external IPv4 and IPv6 addresses and the IATA code for the site. This PR coverts the -iata, -ipv4 and -ipv6 flags to be of type flagx.StringFile, which allow us to specify a path to a file instead of a static string value for these flags.

This change is

Pull Request Test Coverage Report for Build<PHONE_NUMBER>0
Details

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

Totals

Change from base Build<PHONE_NUMBER>1:
0.0%

Covered Lines:
1191

Relevant Lines:
1204

💛  - Coveralls


Compiler-Error on Data Model

[Details]
Table-Decorator causes a compiler error at startup of the application.
[Stacktrace]
error: Uncaught TypeError: Cannot read property 'name' of undefined
        var propertyTypeName = propertyType.name;
                                            ^
    at Function.registerColumnDecorator (ormCoreDecoratorProxy.ts:30:45)
    at entityDecorators.ts:30:31
    at DecorateProperty (reflectMetadata.ts:1216:35)
    at Reflect.decorate (reflectMetadata.ts:739:24)
    at __decorate (file:///C:/Users/username/Documents/projects/private/SuperServer/src/main/mandarine/model/db/Bla.ts:3:92)
    at Bla.ts:9:5

[Scenario]
Added a data model class like described in the official documentation. Database-Table doen't not exist.
Model-Class:
import { Table, Id, GeneratedValue, Column } from<EMAIL_ADDRESS>
@Table({ schema: "public" })
export class Bla {
    @Id()
    @GeneratedValue({strategy: "SEQUENCE"})
    @Column()
    private id: number;
}

[Expected behavior]
No error, but a table called "bla" in the public schema.
[Screenshots]
No screenshots....
[OS]
Windows 10 Pro 1909
[Environment]

Mandarine version: 1.5.0
Mandarine CLI version 1.1.0
Deno version 1.3.2
Deno v8 version 8.6.334
Deno typescript version 4.0.2

On my Ubuntu-Server the same error occurs:

Mandarine version 1.5.0
Mandarine CLI version 1.1.0
Deno version 1.3.1
Deno v8 version 8.6.334
Deno typescript version 3.9.7

Hello there, yes. This is a very weird error, I can't seem to reproduce it... @andreas-barthel . I'm committing a fix temporary for 2.0.0. 2.0.0 will be tagged real soon, in the meantime, while I find the real fix, the changes in 2.0.0 should do it. I'll keep you posted. Thanks for reporting this

Would you mind testing this example: @andreas-barthel
import { Table, Id, GeneratedValue, Column, SQLTypes } from<EMAIL_ADDRESS>
@Table({ schema: "public" })
export class Bla {

    @Id()
    @Column({
        type: SQLTypes.BIGINT
    })
    @GeneratedValue({ strategy: "SEQUENCE" })
    private id: number;

}

Make sure to point out to 2.0.0 with deno 1.3.2.
Let me know.

Hi.
Works fine on my local Windows machine and the Ubuntu server. Error is gone and table "bla" is created. Thanks a lot! :)

Closed as this was reported to be fixed. Tagging “Needs Investigation” fur further references


PHP 7 only, in 2017, is not a good idea.

Hello,
Since there is millions of systems which are PHP 5 only (at least until the end of 2017 - because of native PHP support from Debian 8 - the latest stable released of Debian - which run now, PHP 5.6.29).
I advice you to make your library PHP 5.6 compliant, by using with awesome one  :
if (version_compare(PHP_VERSION, '7.0.0') >= 0) {
// PHP7 only stuff
}
Then, there is some rewriting to do :

declare(strict_types=1); (PHP 7 only)
remove : :type from static functions (PHP 7 only) - i advice you to completely remove this if you won't deal with 2 classes
inside getMimeFromExtension, change for : return (isset(static::$mimeTypes[$ext]) ? static::$mimeTypes[$ext] : "undefined"); (?? is PHP 7 only)

I'm currently rewriting all your functions to make it works under PHP 5.6. I will be maybe fork it on Github if i got times.

Honestly, I was aware of it when I did, I just thought of myself :sweat_smile:
But, just today I wanted to use some of my libraries to create a Wordpress plugin and I understood that it had been a mistake to limit them to PHP7. Too hasty...
So I've decided to make them compatible with PHP 5.6 or higher and do not use the declarations type or return of the null coalescing operator for the moment.
Thank you for your recommendations and help. ;)


feat: Custom VPC Attachment Name

Description
This PR adds support for specifying a custom name for VPC attachments. Currently, this module tags all the attachments with the name of the Transit Gateway. This PR allows consumers to optionally add a name key to the existing vpc_attachments map of maps. If no name is supplied, it uses the name of the TGW as before.
Motivation and Context
The motivation behind opening this PR was to make it easier to distinguish VPC attachments by way of custom names.
Breaking Changes
This is a backwards-compatible change, however if for some reason someone already had a name key in their VPC attachment definitions, then this would result in the attachment name being changed.
How Has This Been Tested?

[x ] I have updated at least one of the examples/* to demonstrate and validate my change(s)
[ x] I have tested and validated these changes using one or more of the provided examples/* projects

[ x] I have executed pre-commit run -a on my pull request

Bump


pubsub: Problem in handling messages from PubSub concurrently

Referring to the code below
https://github.com/GoogleCloudPlatform/golang-samples/blob/a289aabbb0bb9c8f720e22f61b252874970e57f4/pubsub/subscriptions/pull_concurrency.go#L28
I recently came across a case where the receiver blocked indefinitely. I used the same example with a context timeout of 10s. What happened was, the ctx.Done() on line 58 was getting executed before the receiver stopped. So, any messages that came in later (and before receiver stopped) were not getting acknowledged and hence the receiver blocked.
Is it really necessary to handle ctx.Done() in the function again? Can't we write the anonymous function in the following way -
go func() {
    for {
        msg, ok: = < -cm
        if !ok {
            return
        }
        fmt.Fprintf(w, "Got message :%q\n", string(msg.Data))
        msg.Ack()
    }
}()

I am new to concurrency in Go, maybe I am missing something.

Yeah, I think your proposal makes sense and is a bit cleaner. If you want to create a PR to fix this, I'd be happy to review it. Otherwise, I'll get to this when I have some free time (since there are a few other samples that could use updating too).

Raised a PR here


event.preventDefault is not a function in onChange(event, value, previousValue, name)

after upgrade react-redux to version 7.1.1 and redux-form to version 8.2.6...
i found that preventDefault object is missing from the event params...
Here is my code...
<Field
     component={ReduxFormRadioGroup}
     formItemProps={{ className: 'operation-hours__option-container' }}
     label='Hours of Operation'
     name='operationHoursCategory'
     onChange={this.handleCategoryChange}
/>

handleDisabledDayChange = (event, value, previousValue, name) => {
        console.log(event, value, previousValue, name)
        event.preventDefault()
        ...
        .......
}

in "redux-form": "^7.2.0" and "react-redux": "^5.0.7":
console.log(event) can see the preventDefault: ƒ preventDefault()
in redux-form": "^8.2.6" and "react-redux": "^7.1.1":
console.log(event) do not have preventDefault: ƒ preventDefault()
this in result event.preventDefault() is not a function and break the application!

@tohbansoon Can you please create a https://codesandbox.io that will replicate the problem?

@iamandrewluca https://codesandbox.io/s/broken-wave-zqz0k?fontsize=14 here it is. I just got the same problem. It doesn't work with react-select

Hey guys,
having the same problem. I think this behaviour was introdured here:
https://github.com/redux-form/redux-form/issues/3446
This leads to inconsistent onChange bahaviour on Fields, because I have to know if my render component supports events or not. Not sure how to handle this consistently.

@toxsick I have removed the breaking change from #3446. If you want, you can npm install --save https://github.com/mateioprea/redux-form :)

@mateioprea that's a good start and I will try that later :) Thanks for that!
Would be nice to know if there is a migration path with the official release. I'm also don't understand how to stop the propagation to the store when no event is present.

I have the same issue

@Iuriy-Budnikov what's your version? could you confirm if 8.3.0 didn't fixed this problem? We released a fix in change: https://github.com/redux-form/redux-form/pull/4596

@renatoagds here an example with react select https://codesandbox.io/s/strange-glitter-j3ipz
It works with simple input

8.3.0 did not fix the problem for me.
For many of my inputs, I'm calling input.onChange(value) with the value of the input as the argument. These are the inputs that cause the problem. When an onChange is passed to the <Field /> from above these inputs, the first argument injected into the Field's onChange is the value, not the event. Then there is no way to cancel the change event.
It is possible to fix this by updating my inputs to call input.onChange(event) with the event instead of the value as the first argument. Then any Field.onChange handlers will receive the event. However, this isn't ideal for some inputs because the value that is attached to the change event is not always the value that I would like to propagate.
There are likely ways to work around this, but it seems like this wasn't an intended change. Or if it was, the documentation should at least make it clear that in order to receive the event in the Field.onchange handler, you need to pass an event to input.onChange from within the input.

Just want to note, this is still an issue in 8.3.7
Appreciate any work being put into this :)

Just want to note, this is still an issue in 8.3.7
Appreciate any work being put into this :)

Sill an issue with 8.3.10 :)

Using v8.3.9 the issue exists. Guess, it went under the radar now after the release of new form-library.
Anyway unlike @dereksandkamp mentioned the fix for their specific use-case, I'm currently opting to directly add eventListener to the component (specific html element) needed and invoke e.preventDefault().
Not the ideal solution, but works in my case.
Moreover, I cannot find the official docs for v8.3.0+
PS: Any help/workaround would be duly appreciated 🥂 😃


Device tracker Mikrotik not working

Home Assistant release (hass --version):
/srv/homeassistant/homeassistant_venv/bin/hass --version
0.44.1
/srv/homeassistant/homeassistant_venv/bin/python3 -V
Python 3.4.2
Component/platform:
device_tracker:mikrotik
Description of problem:
Hi,
Mikrotik device tracker return exception error while parsing wireless devices. In my setup I am running multiple AP instances which might be reason of this exception?  Or perhaps naming?
Problem-relevant configuration.yaml entries and steps to reproduce:
platform: mikrotik
    host: <IP_ADDRESS>
    username: ha
    password: ! top secret pass
    port: ! top secret port

**Traceback (if applicable):**
ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 698, in async_device_tracker_scan
    found_devices = yield from scanner.async_scan_devices()
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/device_tracker/mikrotik.py", line 99, in scan_devices
    self._update_info()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 303, in wrapper
    result = method(*args, **kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/device_tracker/mikrotik.py", line 114, in _update_info
    cmd='/interface/wireless/registration-table/getall'
  File "/home/homeassistant/.homeassistant/deps/librouteros/api.py", line 80, in __call__
    return self._readResponse()
  File "/home/homeassistant/.homeassistant/deps/librouteros/api.py", line 103, in _readResponse
    reply_word, words = self._readSentence()
  File "/home/homeassistant/.homeassistant/deps/librouteros/api.py", line 89, in _readSentence
 words = dict(self.parseWord(word) for word in words)
  File "/home/homeassistant/.homeassistant/deps/librouteros/api.py", line 89, in <genexpr>
    words = dict(self.parseWord(word) for word in words)
  File "/home/homeassistant/.homeassistant/deps/librouteros/api.py", line 34, in parseWord
    _, key, value = word.split('=', 2)
ValueError: need more than 1 value to unpack

Hi! It seems this issues fixed in https://github.com/home-assistant/home-assistant/pull/7690
Couldn't you describe what device are you using? Is wireless interface enabled?

Hi,
I have upgraded to HA 45, and still face same problem.
My setup is rather trivial, RB493G, 2 pci-e wifi cards. 3 APs (2 reals and 1 virtual). 2 bridges. 2 ip address ranges,  2 dhcp servers.
And yes,  #7604 seems to be relevant in my case as well.

Hi! This fix is not included in HA 45 yet. You can test it manually as custom component

If it still fail, please send me your full config in PM, I can double check compatibility with your case.

Any ETA on including this fix to main build?

I think it should be in two weeks.

Changes was merged. Now you can try use 0.46

I still get this with git dev.  Every now and then (per N lines?) The query for wireless clients returns:
''5Mbps 23h56m44s920ms,-57@6Mbps 850ms,-60@9Mbps''
Which fails to parse.

@mianos very interesting. Can you provide me read-only access to your mikrotik, cause I can't reproduce this error in any environment. Can you send me in PM?

@LvivEchoes I have sent you an email.

It's has been a while, but I still receive same error.

Issue in dependency: https://github.com/luqasz/librouteros/issues/12

@bachulator @mianos Ccould you please provide us the version of RouterOS?

6.40.4 for me. Still have the bug.

@bachulator thanks for the update. It is a same version for me. According to @luqasz looks like it is bug in Mikrotik RouterOS API was introduced in 6.40 version. I'm going to create Bug in Mikrotik bug tracker.

Not sure, but think had the issue way before 6.40 since as the original report reference back to HA 0.44.1


Update managed-instance-overview.md

Updated date.

@grrlgeek : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Apps: Allow user to select a collection

Collections are now available to the front end! Each entity now has an array of collection variables. Using these, we can generate a list of collections we can use for each app.
Currently each app has a hard coded collection that it presents to the user if they're on the right study (GEMS). Instead, grab all collection vars for the current study and show them in the dropdown.
Note, this ticket is to add very basic function only. Having all the collection variables as options will allow @dpbisme to QA the data and allow us to QA the app computations (plot.data+microbiomeComputations) much more easily. See #951 for the later styling ticket.

@asizemore, let me know if you want ClinEpi outreach to help qa this :)

Thanks @SheenaTomko ! This is another good one for dan i think. But thank you!

Happy for now!


feature: optimize logical group expression in dphyp

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall


Cypress test. Annotation filters help window.

Motivation and context
Add Cypress test Issue #2690
How has this been tested?

Checklist

[x] I submit my changes into the develop branch
[ ] I have added description of my changes into CHANGELOG file
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] I have linked related issues (read github docs)
[ ] I have increased versions of npm packages if it is necessary (cvat-canvas,
cvat-core, cvat-data and cvat-ui)

License

[x] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.
[x] I have updated the license header for each file (see an example below)

# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT

Coverage increased (+0.02%) to 70.28% when pulling a25436f30c2fd46b0ee3763b408246402b4cfeb5 on dvkruchinin:dkru/issue-2690-filter-help-window into e4da53387b25ec9716798afc9dc2d875b65789c0 on openvinotoolkit:develop.

Coverage increased (+0.02%) to 70.28% when pulling a25436f30c2fd46b0ee3763b408246402b4cfeb5 on dvkruchinin:dkru/issue-2690-filter-help-window into e4da53387b25ec9716798afc9dc2d875b65789c0 on openvinotoolkit:develop.


[SPARK-40468][SQL] Fix column pruning in CSV when _corrupt_record is selected

What changes were proposed in this pull request?

The PR fixes an issue when depending on the name of the _corrupt_record field, column pruning would behave differently for a record that has no parsing errors.
For example, with a CSV file like this (c1 and c2 columns):
1,a

Before the patch, the following query would return:
val df = spark.read
  .schema("c1 int, c2 string, x string, _corrupt_record string")
  .csv("file:/tmp/file.csv")
  .withColumn("x", lit("A"))

Result:

+---+---+---+---------------+
|c1 |c2 |x  |_corrupt_record|
+---+---+---+---------------+
|1  |a  |A  |1,a            |
+---+---+---+---------------+

However, if you rename the corrupt record column, the result is different (the original, arguably correct, behaviour before https://github.com/apache/spark/commit/959694271e30879c944d7fd5de2740571012460a):
val df = spark.read
  .option("columnNameCorruptRecord", "corrupt_record")
  .schema("c1 int, c2 string, x string, corrupt_record string")
  .csv("file:/tmp/file.csv") .withColumn("x", lit("A"))

+---+---+---+--------------+
|c1 |c2 |x  |corrupt_record|
+---+---+---+--------------+
|1  |a  |A  |null          |
+---+---+---+--------------+

This patch fixes the former so both results would return null for corrupt record as there are no parsing issues. Note that https://issues.apache.org/jira/browse/SPARK-38523 is still fixed and works correctly.
Why are the changes needed?

Fixes a bug where corrupt record would be non-null even though the record has no parsing errors.
Does this PR introduce any user-facing change?

Yes, fixes the output of corrupt record with additional columns provided by user. Everything should be unchanged outside of that scenario.
How was this patch tested?

I added a unit test that reproduces the issue.

@MaxGekk Could you review this PR? Thanks.
I confirmed that there are no regressions for SPARK-38523 that you fixed.

Can one of the admins verify this patch?

@sadikovi Thanks for the ping. I will look at it soon.

+1, LGTM. Merging to master/3.3.
Thank you, @sadikovi.

@sadikovi Could you backport this to branch-3.2, please (you pointed out it in JIRA as an affected version). Thank you.

Thank you 👍.


improve arm64 support

Hardware: rk3328
Software: linux 4.4.114

on arm64 linux, syscall.EpollCreate failed with : function not implemented，so does gpio's WaitForEdge.
we should use golang.org/x/sys/unix instead.

what platform?
This will let you know if you can use sysfs-gpio:
package main

import (
	"fmt"
	"log"

	"periph.io/x/periph/host"
)

func main() {
	state, err := host.Init()
	if err != nil {
		log.Fatal(err)
	}

	for _, loaded := range state.Loaded {
		fmt.Println("Driver Loaded: ", loaded.String())
	}
	for _, skipped := range state.Skipped {
		fmt.Println("Driver Skipped: ", skipped.String())
	}
	for _, failed := range state.Failed {
		fmt.Println("Driver Failed: ", failed.String())
	}
}

an arm64 soc board: roc-rk3328-cc
(http://en.t-firefly.com/product/rocrk3328cc)
go1.11.4 cross compile on windows 10
i don't dig deep, but:
package main

import (
    "log"
    "syscall"

    "golang.org/x/sys/unix"
)

func main() {
    epollFd, err := syscall.EpollCreate(1)
    if err != nil {
        log.Println("syscall.EpollCreate Failed: ",err)
    }

    epollFd, err = syscall.EpollCreate1(0)
    if err == nil {
        log.Println("syscall.EpollCreate1 OK: ", epollFd)
    }

    epollFd, err = unix.EpollCreate(1)
    if err != nil {
        log.Println("unix.EpollCreate Failed: ",err)
    }

    epollFd, err = unix.EpollCreate1(0)
    if err == nil {
        log.Println("unix.EpollCreate1 OK: ", epollFd)
    }
}

result :
2016/02/12 19:11:45 syscall.EpollCreate Failed:  function not implemented
2016/02/12 19:11:45 syscall.EpollCreate1 OK:  3
2016/02/12 19:11:45 unix.EpollCreate Failed:  function not implemented
2016/02/12 19:11:45 unix.EpollCreate1 OK:  4

after replace the host/fs/fs_linux.go l39 with:
	epollFd, err := unix.EpollCreate1(0)

the gpio.WaitForEdge function fine

What was the output of the code I posted?

Driver Loaded:  sysfs-gpio
Driver Loaded:  sysfs-i2c
Driver Loaded:  sysfs-led
Driver Loaded:  sysfs-spi
Driver Loaded:  sysfs-thermal
Driver Skipped:  allwinner-gpio-pl: A64 CPU not detected
Driver Skipped:  allwinner-gpio: Allwinner CPU not detected
Driver Skipped:  bcm283x-dma: dependency not loaded: "bcm283x-gpio"
Driver Skipped:  bcm283x-gpio: bcm283x CPU not detected
Driver Skipped:  pine64: pine64 board not detected
Driver Skipped:  rpi: Raspberry Pi board not detected

See if sysfs-gpio will work on the roc-rk3328-cc ?

package main

import (
        "fmt"
        "log"
        "time"

        "periph.io/x/periph/host"
        "periph.io/x/periph/host/sysfs"
)

	state, err := host.Init()
	if err != nil {
		log.Fatal(err)
	}

	for _, loaded := range state.Loaded {
		fmt.Println("Driver Loaded: ", loaded.String())
	}
	for _, skipped := range state.Skipped {
		fmt.Println("Driver Skipped: ", skipped.String())
	}
	for _, failed := range state.Failed {
		fmt.Println("Driver Failed: ", failed.String())
	}

	for num, pin := range sysfs.Pins {
		fmt.Printf("Pin: %d, name: %s level:%s\n", num, pin, pin.Read())
	}

	pin := sysfs.Pins[7] // change to suit.
	e := pin.WaitForEdge(time.Second)
	fmt.Println(e)
}

but use which ever pin you want.

which go version?

go version go1.11.4
without calling makeEvent first，(host/fs/fs_linux.go L56):
syscall.EpollWait(e.epollFd, e.event[:], timeoutms)

e.epollFd would not be initialized
Driver Loaded:  sysfs-gpio
Driver Loaded:  sysfs-i2c
Driver Loaded:  sysfs-led
Driver Loaded:  sysfs-spi
Driver Loaded:  sysfs-thermal
Driver Skipped:  allwinner-gpio-pl: A64 CPU not detected
Driver Skipped:  allwinner-gpio: Allwinner CPU not detected
Driver Skipped:  bcm283x-dma: dependency not loaded: "bcm283x-gpio"
Driver Skipped:  bcm283x-gpio: bcm283x CPU not detected
Driver Skipped:  pine64: pine64 board not detected
Driver Skipped:  rpi: Raspberry Pi board not detected
Pin: 1040, name: GPIO1040 level:Low
Pin: 1056, name: GPIO1056 level:Low
Pin: 1066, name: GPIO1066 level:Low
Pin: 1125, name: GPIO1125 level:Low
Pin: 1051, name: GPIO1051 level:Low
Pin: 1053, name: GPIO1053 level:Low
Pin: 1063, name: GPIO1063 level:Low
Pin: 1105, name: GPIO1105 level:Low
Pin: 1016, name: GPIO1016 level:Low
Pin: 1113, name: GPIO1113 level:Low
Pin: 1114, name: GPIO1114 level:Low
Pin: 1118, name: GPIO1118 level:Low
Pin: 1127, name: GPIO1127 level:Low
Pin: 1032, name: GPIO1032 level:Low
Pin: 1099, name: GPIO1099 level:Low
Pin: 1100, name: GPIO1100 level:Low
Pin: 1026, name: GPIO1026 level:Low
Pin: 1041, name: GPIO1041 level:Low
Pin: 1073, name: GPIO1073 level:Low
Pin: 1111, name: GPIO1111 level:Low
Pin: 1007, name: GPIO1007 level:Low
Pin: 1057, name: GPIO1057 level:Low
Pin: 1083, name: GPIO1083 level:Low
Pin: 1089, name: GPIO1089 level:Low
Pin: 1103, name: GPIO1103 level:Low
Pin: 1106, name: GPIO1106 level:Low
Pin: 1059, name: GPIO1059 level:Low
Pin: 1092, name: GPIO1092 level:Low
Pin: 1095, name: GPIO1095 level:Low
Pin: 1010, name: GPIO1010 level:Low
Pin: 1065, name: GPIO1065 level:Low
Pin: 1090, name: GPIO1090 level:Low
Pin: 1096, name: GPIO1096 level:Low
Pin: 1101, name: GPIO1101 level:Low
Pin: 1020, name: GPIO1020 level:Low
Pin: 1049, name: GPIO1049 level:Low
Pin: 1075, name: GPIO1075 level:Low
Pin: 1093, name: GPIO1093 level:Low
Pin: 1000, name: GPIO1000 level:Low
Pin: 1120, name: GPIO1120 level:Low
Pin: 1126, name: GPIO1126 level:Low
Pin: 1015, name: GPIO1015 level:Low
Pin: 1081, name: GPIO1081 level:Low
Pin: 1121, name: GPIO1121 level:Low
Pin: 1107, name: GPIO1107 level:Low
Pin: 1123, name: GPIO1123 level:Low
Pin: 1003, name: GPIO1003 level:Low
Pin: 1039, name: GPIO1039 level:Low
Pin: 1058, name: GPIO1058 level:Low
Pin: 1115, name: GPIO1115 level:Low
Pin: 1052, name: GPIO1052 level:Low
Pin: 1060, name: GPIO1060 level:Low
Pin: 1116, name: GPIO1116 level:Low
Pin: 1119, name: GPIO1119 level:Low
Pin: 1011, name: GPIO1011 level:Low
Pin: 1013, name: GPIO1013 level:Low
Pin: 1031, name: GPIO1031 level:Low
Pin: 1037, name: GPIO1037 level:Low
Pin: 1072, name: GPIO1072 level:Low
Pin: 1085, name: GPIO1085 level:Low
Pin: 1029, name: GPIO1029 level:Low
Pin: 1038, name: GPIO1038 level:Low
Pin: 1064, name: GPIO1064 level:Low
Pin: 1117, name: GPIO1117 level:Low
Pin: 1033, name: GPIO1033 level:Low
Pin: 1035, name: GPIO1035 level:Low
Pin: 1069, name: GPIO1069 level:Low
Pin: 1077, name: GPIO1077 level:Low
Pin: 1097, name: GPIO1097 level:Low
Pin: 1021, name: GPIO1021 level:Low
Pin: 1024, name: GPIO1024 level:Low
Pin: 1047, name: GPIO1047 level:Low
Pin: 1054, name: GPIO1054 level:Low
Pin: 1087, name: GPIO1087 level:Low
Pin: 1043, name: GPIO1043 level:Low
Pin: 1050, name: GPIO1050 level:Low
Pin: 1001, name: GPIO1001 level:Low
Pin: 1008, name: GPIO1008 level:Low
Pin: 1023, name: GPIO1023 level:Low
Pin: 1062, name: GPIO1062 level:Low
Pin: 1124, name: GPIO1124 level:Low
Pin: 1012, name: GPIO1012 level:Low
Pin: 1030, name: GPIO1030 level:Low
Pin: 1080, name: GPIO1080 level:Low
Pin: 1084, name: GPIO1084 level:Low
Pin: 1110, name: GPIO1110 level:Low
Pin: 1112, name: GPIO1112 level:Low
Pin: 1006, name: GPIO1006 level:Low
Pin: 1017, name: GPIO1017 level:Low
Pin: 1104, name: GPIO1104 level:Low
Pin: 1108, name: GPIO1108 level:Low
Pin: 1014, name: GPIO1014 level:Low
Pin: 1036, name: GPIO1036 level:Low
Pin: 1109, name: GPIO1109 level:Low
Pin: 1510, name: GPIO1510 level:Low
Pin: 1022, name: GPIO1022 level:Low
Pin: 1045, name: GPIO1045 level:Low
Pin: 1048, name: GPIO1048 level:Low
Pin: 1061, name: GPIO1061 level:Low
Pin: 1068, name: GPIO1068 level:Low
Pin: 1009, name: GPIO1009 level:Low
Pin: 1094, name: GPIO1094 level:Low
Pin: 1034, name: GPIO1034 level:Low
Pin: 1071, name: GPIO1071 level:Low
Pin: 1102, name: GPIO1102 level:Low
Pin: 1027, name: GPIO1027 level:Low
Pin: 1028, name: GPIO1028 level:Low
Pin: 1070, name: GPIO1070 level:Low
Pin: 1082, name: GPIO1082 level:Low
Pin: 1086, name: GPIO1086 level:Low
Pin: 1018, name: GPIO1018 level:Low
Pin: 1044, name: GPIO1044 level:Low
Pin: 1046, name: GPIO1046 level:Low
Pin: 1055, name: GPIO1055 level:Low
Pin: 1074, name: GPIO1074 level:Low
Pin: 1098, name: GPIO1098 level:Low
Pin: 1002, name: GPIO1002 level:Low
Pin: 1004, name: GPIO1004 level:Low
Pin: 1025, name: GPIO1025 level:Low
Pin: 1042, name: GPIO1042 level:Low
Pin: 1019, name: GPIO1019 level:Low
Pin: 1078, name: GPIO1078 level:Low
Pin: 1076, name: GPIO1076 level:Low
Pin: 1079, name: GPIO1079 level:Low
Pin: 1088, name: GPIO1088 level:Low
Pin: 1122, name: GPIO1122 level:Low
Pin: 1511, name: GPIO1511 level:Low
Pin: 1005, name: GPIO1005 level:Low
Pin: 1067, name: GPIO1067 level:Low
Pin: 1091, name: GPIO1091 level:Low
false

I was kinda hoping that some of the syscall stuff was sorted in go11.
I'll make a version that uses syscall.EpollCreate1(0), and run it though gohci. then give it back to you if it passes for a test run. Unfortunately I don't have any arm64 boards I can test on directly.
atm periph has no external dependencies. golang.org/x/sys/unix has been deliberately not imported.

here is the branch to try:
git clone --single-branch --branch arm64_epoll https://github.com/NeuralSpaz/periph.git

It works,  nice work!

Excellent, the fix has now been merged into master.


Article describing whisper-diarization to other diarization methods

Guys,
Do you have an article describing whisper-diarization to other diarization methods.
Thanks a lot,
AlexG.

Hi, I'll try to compare pyannote diarization to nemo diarization as they are the best two available AFAIK

Whisper with PyAnnotate works pretty good, too ... I've played around with this: https://towardsdatascience.com/unlock-the-power-of-audio-data-advanced-transcription-and-diarization-with-whisper-whisperx-and-ed9424307281
It only splitted some speakers into too many segments ...
I've also tried Vosk which can also distinguish between speakers (see https://github.com/alphacep/vosk-api/blob/master/python/example/test_speaker.py) But the speech recognition itself was really bad compared to whisper.


"After last window closes" setting not saving sometimes

Since I updated to High Sierra, the "After last window closes" setting does not save sometimes. When I say sometimes, I mean I will set it to "Quit MacVim," and it works for a few sessions. Then, I'll open a file, and then when I do :q, MacVim is gone but still keep focus. I then do ⌘, and lo and behold, the setting has been reset to "Keep MacVim Running."
This is using version 8.0.1175 (138) (supposedly the latest, according to MacVim) on High Sierra 10.13 (17A405).

I'm seeing the same thing with MacVim 8.0.1207 (140) on High Sierra 10.13 (17A405), but it appears that all preferences are eventually reset to their defaults after opening several files.

I'm not sure if they are all getting reset, I haven't tested since that's the only one I changed (I think).

You can check the preferences anytime from Terminal.
$ defaults read org.vim.MacVim

Haven't had this issue in ages, assuming it's been fixed. Closing.


Error xsave indices

On using n = 10, the following error occurs,
  File "C:\Users\Shaz_Alvi\AppData\Local\Programs\Python\Python38\lib\site-packages\pyfftlog\pyfftlog.py", line 564, in fht
    fct = fhtq(fct, xsave, tdir)
  File "C:\Users\Shaz_Alvi\AppData\Local\Programs\Python\Python38\lib\site-packages\pyfftlog\pyfftlog.py", line 626, in fhtq
    fct[2*m-1] = ar*xsave[2*m+1] - ai*xsave[2*m+2]
IndexError: index 13 is out of bounds for axis 0 with size 13

Upon inspecting, the function pyfftlog.fhti and fhtq, it appears the problem might be in,
m = np.arange(1, n//2, dtype=int) in fhtq. This is different from m = np.arange(1, (n+1)/2) in fhti. These arrays have different values as I checked when the print them for the same value of n that I use in my code. At least, that is my understanding and I might be wrong about it.

Could you send me some more information, how can I reproduce it? (A minimum working example would be great.) I'll have a look tomorrow!
On 6 July 2020 20:31:58 CEST, Shahbaz Alvi<EMAIL_ADDRESS>wrote:

On using n = 10, the following error occurs,
File
"C:\Users\Shaz_Alvi\AppData\Local\Programs\Python\Python38\lib\site-packages\pyfftlog\pyfftlog.py",
line 564, in fht
   fct = fhtq(fct, xsave, tdir)
File
"C:\Users\Shaz_Alvi\AppData\Local\Programs\Python\Python38\lib\site-packages\pyfftlog\pyfftlog.py",
line 626, in fhtq
   fct[2*m-1] = ar*xsave[2*m+1] - ai*xsave[2*m+2]
IndexError: index 13 is out of bounds for axis 0 with size 13

Upon inspecting, the function pyfftlog.fhti and fhtq, it appears the
problem might be in,
m = np.arange(1, n//2, dtype=int) in fhtq. This is different from m = np.arange(1, (n+1)/2) in fhti. These arrays have different values as
I checked when the print them for the same value of n that I use in my
code. At least, that is my understanding and I might be wrong about it.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/prisae/pyfftlog/issues/6

Yes, of course. Sorry for the incomplete information. Here are the parameters that I am using,
#------Parameters of the fftlog algorithm
Range of periodic interval
logrmin = np.log(k[0])
logrmax = np.log(k[len(k)-1])
# Number of points (Max 4096)
n = 10
# Order mu of Bessel function
mu = 0
# Bias exponent: q = 0 is unbiased
q = 0
# Sensible approximate choice of k_c r_c
kr = 1
# Tell fhti to change kr to low-ringing value
# WARNING: kropt = 3 will fail, as interaction is not supported
kropt = 1
# Forward transform (changed from dir to tdir, as dir is a python fct)
tdir = 1
logrc = (logrmin + logrmax)/2
nc = (n + 1)/2.0
dlogr = (logrmax - logrmin)/n
dlnr = dlogr*np.log(10.0)
kr, xsave = pyfftlog.fhti(n, mu, dlnr, q, kr, kropt)
logkc = np.log10(kr) - logrc
rk = 10**(logrc - logkc)
#------Parameters of the fftlog algorithm

The input function is,
ar = Temp_Source[j,:]*Density_Source_At_Dirac[:]*P_Pk[:]
Here, these are the values of the function at discrete values of the input argument for each integer j (one list for one integer j which is looped over). I am not sure what else information you would need. Please let me know what else you would like to know.
Thank you, once again.

What is k? What would help is an example that I can run. 10 points is very few, how many decades do you cover?

My point is - even not knowing exactly your script, I doubt you will ever get a sensible transform with only 10 points.
Here you can find two examples:
https://pyfftlog.readthedocs.io/en/latest/examples/index.html
and on the original website you can find some more useful information:
https://casa.colorado.edu/~ajsh/FFTLog/

I figured out my mistake. I misunderstood the meaning of n.

Glad it works now!
On 6 July 2020 22:24:49 CEST, Shahbaz Alvi<EMAIL_ADDRESS>wrote:

I figured out my mistake. I misunderstood the meaning of n.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/prisae/pyfftlog/issues/6#issuecomment-654447341


Branch 2.0

What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

Can one of the admins verify this patch?

Hi, @yashbopardikar .
Could you close this PR? It seems wrong. :)

I assume this is a mistake?  Please close this issue or fix it.  Thanks!

This will leave a failure mark to each commit log. Please close this.

@yashbopardikar please close this.


Cannot use this uploader on my build system

Describe the bug
Using the old codecov, things are fine; (e.g. "https://github.com/codecov/codecov-exe/releases/download/1.13.0/codecov-linux-x64.zip")
This new one, since forever has always errored like so when ran:
[2021-09-14T22:23:44.021Z] ['info'] Pinging Codecov<EMAIL_ADDRESS>[2021-09-14T22:23:44.224Z] ['error'] Error POSTing to https://codecov.io: 400 Invalid request parameters
[2021-09-14T22:23:44.225Z] ['error'] Error: Error uploading to https://codecov.io: Error: Bad Request

To Reproduce
Run codecov v0.1.0_8880 on our codebuild ci systems, local machines, anywhere, always errors like so.
Expected behavior
I expect it to work better then 1.13.0 (see above)
Screenshots
jason@home:~/edgeLink$ ./codecov -f coverage/**/*.xml
[2021-09-14T22:28:05.111Z] ['info']
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/

  Codecov report uploader 0.1.0
[2021-09-14T22:28:05.118Z] ['info'] => Project root located at: /home/jason/edgeLink
[2021-09-14T22:28:05.120Z] ['info'] ->  Token found by environment variables
[2021-09-14T22:28:06.831Z] ['info'] Searching for coverage files...
[2021-09-14T22:28:07.307Z] ['info'] => Found 1 possible coverage files:
  coverage/cloudLibTest/coverage.xml
[2021-09-14T22:28:07.308Z] ['info'] Processing /home/jason/edgeLink/coverage/cloudLibTest/coverage.xml...
[2021-09-14T22:28:07.482Z] ['info'] Detected Local as the CI provider.
[2021-09-14T22:28:07.507Z] ['info'] Pinging Codecov<EMAIL_ADDRESS>[2021-09-14T22:28:07.703Z] ['error'] Error POSTing to https://codecov.io: 400 Invalid request parameters
[2021-09-14T22:28:07.703Z] ['error'] Error: Error uploading to https://codecov.io: Error: Bad Request
jason@home:~/edgeLink$

Additional context
This has never worked on this project, I had a support ticket opened 3 months ago about it, but then just kept using the old build, let me know what I am doing wrong!

<EMAIL_ADDRESS>is my guess. Can you share the entire output of the git config --get  remote.origin.url command? It seems our regex isn't correctly parsing it.

Turns out now that it supports codebuild, it gets the right args for the query when running in the vm now, so close this ticket thanks


Added images to docs/README.md

added a few visuals and refactored the Concepts section

@suhuruli

Hey, the images don't show up for me when I try to view the file. Are the paths correct?

paths are correct on my branch - it might be because I'm creating a folder to place the images in and it doesn't exist until the pr is merged?

paths are correct on my branch - it might be because I'm creating a folder to place the images in and it doesn't exist until the pr is merged?

OK, I was just clicking the wrong thing. It shows up now. Nice!

LGTM

@wonderflow We can squash and merge the PR.


Shortcut dialogue text is misaligned due to line break

Meaning you can't tell which shortcut is which (in Chrome), due to "Orthographic Camera" breaking over 2 lines.

@mattatgit I tweaked the shortcut help desk, and posted a  pullrequest #2012 - check this image for my alterations -- now all text for each shortcut is on the same row as the shortcut key (box):

also added "Handy Keys" descriptions.

Also "Toggle Local Handles" wrecks stuff even further. I switched "Orthographic Camera" to "Orthographic Cam", and "Toggle Helpers" to "Helpers", "Toggle Local Handles" to "Local Handles"
This is all in PR #2012 - but I'll probably isolate the Toggles to a separate segment of the help.

@esaruoho it will be too long for almost all screens if it stays in 2 columns. It should go wider rather than long ie break across into 4 columns rather than stay in 2 massive long columns.

@mattatgit looks like there's a div class used "twocol clearfix" - i looked at core.less and site.less and found a threecol but wasn't immediately apparent to me as to what to do. Not much of a CSS buff. Maybe @georgi would know?

Closed by #2018


quiet mode for run_async method might cause ffmpeg process to stick.

What I experienced
Recently, I was using this module in my project for decoding video into pipe as well as encoding target frames into a result video.
But I found that setting the parameter "quiet" of the encoder process to True (which set both stdout and stderr to PIPE) will cause the ffmpeg process to stick at some stage ( and in this case, I cannot write anything into its stdin). If I leave "quiet" to default or set both pipe_stdout and pipe_stderr to False, everything goes well.
What I tried
I tried to edit the run_async function, changing it from
args = compile(stream_spec, cmd, overwrite_output=overwrite_output)
    stdin_stream = subprocess.PIPE if pipe_stdin else None
    stdout_stream = subprocess.PIPE if pipe_stdout or quiet else None
    stderr_stream = subprocess.PIPE if pipe_stderr or quiet else None
    return subprocess.Popen(
        args, stdin=stdin_stream, stdout=stdout_stream, stderr=stderr_stream)

to
 args = compile(stream_spec, cmd, overwrite_output=overwrite_output)
    stdin_stream = subprocess.PIPE if pipe_stdin else None
    stdout_stream = subprocess.PIPE if pipe_stdout else None
    stderr_stream = subprocess.PIPE if pipe_stderr else None
    if quiet:
        stdout_stream = stderr_stream = subprocess.DEVNULL
    return subprocess.Popen(
        args, stdin=stdin_stream, stdout=stdout_stream, stderr=stderr_stream)

Then, using this modified version of ffmpeg-python in my project, it works without any problems.
After all, I don't think this issue is solved, for it will stick again if setting either pipe_stdout or pipe_stderr (I confirmed).
My forked version works. Should I make a pull request? Or do it only when we find the real reason for this issue.

The issue seems to be that pipe buffers are finite in size, so they fill up and eventually block.  One workaround when running asynchronously is to just read() from the output pipes periodically.  E.g., if you have a loop where you're feeding frames to stdin:
process = (
    ffmpeg
    .input('pipe:', format='rawvideo', pix_fmt='rgb24', s='{}x{}'.format(width, height))
    .output(video_file_out, pix_fmt='yuv420p')
    .run_async(pipe_stdin=True, quiet=True)
)

# Set non-blocking in case we don't get output for a frame
fcntl.fcntl(process.stderr, fcntl.F_SETFL, os.O_NONBLOCK)

for frame in my_frames:
    process.stdin.write(frame)

    # Do a read to clear the output pipe
    process.stderr.read()

But this is a bit hacky and relies on ffmpeg not producing too much output to stderr in one frame.  I'd like it if the pipe_stdout and pipe_stderr arguments could take subprocess pipes directly.  E.g., run_async(pipe_stdout=subprocess.PIPE, pipe_stderr=subprocess.DEVNULL).

same problem

I do not think this issue was fixed. I am still running into it myself.

I do not think this issue was fixed. I am still running into it myself.

That's the reason why I am using a modified ffmpeg-python of my own. :)

Ahhh... Is that published to pypi?

Ahhh... Is that published to pypi?

No. It is still a forked ffmpeg-python repo. And since I have been away from such stuff for a long time, it is out of sync with the repo now.

is this planned to be integrated?

This workaround worked for me:
https://github.com/kkroening/ffmpeg-python/issues/68#issuecomment-443752014
(
    ffmpeg
    .input(in_filename, ss=time)
    .output(out_filename, vframes=1)
    .global_args('-loglevel', 'error')
    .global_args('-y')
    .run()
)


Python 3 support requirement

It seems that https://github.com/lyuts/vim-rtags/commit/68d8bb3f9ecb4cf42856ea9810fb510ebad2868f have introduced a Python 3 requirement. I've just changed python3 at https://github.com/lyuts/vim-rtags/blob/master/plugin/rtags.vim#L92 to be simply python, and it's been working fine for me so far. Is the python3 dependency required and/or desired..?

Yep, the 'python3' bit breaks the plugin for me. Replacing with 'python' at least doesn't give me any error messages at vim start.

I myself got bitten by this and had to patch locally with to use python 2. I didn't find anything python3 specific in marxin@'s commit, so seems it should be safe to make this change e92265d.


Make vue a peer dependency

What I did
Depend loosely on vue & vue-loader by moving them to peer dependencies. This allows end user to
pick any version of vue for their project.
How to test
Existing tests should pass.

@kazupon Is there a way we can merge this PR with #2032?

@Hypnosphi Once merge #2032 to master branch, after that pull from this master branch to this PR by [Update branch] of GitHub's WebUI. How is a way?

I mean, that one needs review, but it partially interleaves with this one, so I'm not sure what should we do

Btw, can we confirm that we work with any vue version?

@Hypnosphi Looks like you have no huge objections to this PR, so I hope you don't mind me merging this as Vue-version mismatches are a huge problem for users.

Thank you for your efforts @znck @kazupon @eriknygren @Hypnosphi 👍 💯

Actually, I had one: https://github.com/storybooks/storybook/pull/2041#discussion_r145095359


Widgets Mode: Invisible

Mode invisible feature
Current behavior
The component continues to show the widget container even if it is in invisible mode

Expected behavior
Component should not show UI when mode is invisible

Did you set options={{ size: "invisible" }}?

You need both a valid invisible siteKey and this property in your Turnstile component
options={{ size: "invisible" }}

If the configuration is changed from the Cloudflare server, the plugin detects that it is invisible, but the container does not take that behavior into account.

The library is not smart enough to auto-detect invisible site keys. Even by using the vanilla Turnstile widget, there will be a container around the widget.
Again, you need to explicitly pass size: 'invisible' to the component. So, on our end, we set width and height to 0. Example

Hey @harrygr,
not sure if we can know what size (compact/normal/invisible) the widget is. If you have an idea, feel free to create a PR in a new issue.

Hey @marsidev. What I was suggesting was a size option that didn't apply any width or height to the widget, just letting it be its own size. Having experimented with a barebones integration it seems like the only reason to set the width/height is to prevent layout shift when there's a delay in the widget loading.
I'll have a go at a PR


Fix aliyun ecs driver: version mismatch error

Currently for Aliyun ECS, we encounter version mismatch error when we run example_aliyun_ecs.py

File "example_aliyun_ecs.py", line 28, in
sizes = ecs.list_sizes()
File "/usr/lib/python2.7/site-packages/apache_libcloud-1.0.0_rc2-py2.7.egg/libcloud/compute/drivers/ecs.py", line 540, in list_sizes
resp_body = self.connection.request(self.path, params).object
File "/usr/lib/python2.7/site-packages/apache_libcloud-1.0.0_rc2-py2.7.egg/libcloud/common/base.py", line 862, in request
response = responseCls(**kwargs)
File "/usr/lib/python2.7/site-packages/apache_libcloud-1.0.0_rc2-py2.7.egg/libcloud/common/base.py", line 179, in init
headers=self.headers)
libcloud.common.exceptions.BaseHTTPError: {'host_id': 'ecs.aliyuncs.com', 'message': 'The specified parameter "Action or Version" is not valid.', 'code': 'InvalidParameter', 'request_id': '8DE2CC6D-1FD5-4A71-8FFF-66253E0BA5CE'}

We find the aliyun.py code passed the wrong parameter
self.signer = signer_cls(access_key=self.user_id,
access_secret=self.key,
version)
Actually, parameter version should be ECS_API_VERSION, but not DEFAULT_SIGNATURE_VERSION

Thanks.
Looks good to me.
/cc @samsong8610

Thanks @net613
@Kami , I have verified the PR. LGTM.
I don't know how it could work before.

@net613 SignedAliyunConnection is derived by ECSConnection and SLBConnection. They have different api version, so we should not use a constant ECS_API_VERSION here.
In the derived connection classes, there is a version property, assigned the correct api version for different service respectively. We should use this as the version parameter for the signer.
It's better to add some defensive code to check self.version is not None before passing into the signer init method.

@samsong8610 ,  I have finally fixed this bug according to your suggestion. Pls check it.

LGTM, and I've verified the PR.
Thanks @net613

@samsong8610, Currently for Aliyun ECS, if you did not create a security group through web browser, you would encounter  'None security group' error when running example_aliyun_ecs.py to create a VM instance. So I have added the ex_create_security_group and ex_delete_security_group functions in ecs.py to solve it

@net613 can you please rebase latest master on top of you branch / sync your branch with latest upstream master?
I have issue applying the patch directly (there are some conflicts).
Thanks.

@Kami I have rebased, please try again

@Kami I have rebased, please try again

@net613 Thanks.
Looks like rebase removed (9bf6448f20a4b0506ef090fe23e513624d82ee78) change, was this intentional?
The patch also contains *.pyc files which we don't commit and include in the repository - can you please remove those as well?

Thanks.
How about the removed change? It seems like it shouldn't have been removed, or?

@Kami ,  I have removed all  *.pyc files, please  try again. Thanks
The removed (9bf6448) code was not intentional. In fact， It was another bug , and I would pull a new request to solve it.

There was still one .pyc file left (libcloud/__init__.pyc). I removed that and merged branch into trunk.
In the future I would recommend you to base your changes on a new and separate branch in your fork and not trunk. This will make it easier to synchronize your fork with the latest upstream version and prevent conflicts.
Thanks.

Thanks @Kami


SQL Server Migrations: Handle GO and (Backslash) utilities statements

Resolves #6747
I found a few issues with this (it's more permissive than it should be with things after the statement), but it's more-or-less the same implementation as EF6, and nobody has reported them yet...
Providers: This PR is 99% SQL Server, but it also updates MigrationsSqlGenerator to stop tacking on a statement terminator (;) to the user's .Sql() calls. This will only have a functional impact if you've gone above and beyond the base implementation to add batching to Migrations.
@ErikEJ: You may want to support this in SQL CE too.

Nice new label! (providers-fyi)


[request] Python 3.10.12、3.9.17、3.8.17、3.7.17

The new version of Python released.
PS: Is that possilbe also build windows arm64 edition?

New versions have been uploaded. Python 3.11 is the first version that provides experimental support for Windows arm64, and it would be too much work, at least for me, to backport the arm64 changes to older Python versions.


fix: add toggle to disable parameter encoding

:id: Reference related issue.
https://gravitee.atlassian.net/browse/AM-737
:pencil2: A description of the changes proposed in the pull request
This PR introduces a hack 😞. Please be as harsh as possible with reviews. I don't like this code and I'm open to any suggestion 🙏 .
So far, when computing redirect URLs in AM, the static class UriBuilderRequest decodes and encodes all parameters.
When parameters aren't url-encoded, this is not a big deal. But when parameters are already url-encoded, we introduce a few issues.
Since the method is UriBuilderRequest.resolveProxyRequest(...) is used all around AM, it's hard to tell if removing the extra decoding will not break stuff.
This PR introduces the parameter legacy.openid.sanitizeParametersEncoding that, when set to false, disables the extra decoding.
For the future, we should remove the hack and any extra handling of parameters, only decoding parameters when they are received and encoding them when they leave AM Handlers.
:memo: Test scenarios
The issue contains a reproduction scenario.
I manually tested the fix in the following flows:

Normal login flow
Wrong password on normal login flow
Login flow with Identifier-first enabled.
Wrong password on ID first flow
Navigation to Password reset page and back.
Navigation to Register page and back.
MFA with an SMS mock factor
Wrong code with MFA mock factor.

:books: Any other comments that will help with documentation
I'm not even sure where this should be documented

Closing this PR in favor of a cleaner solution. PR https://github.com/gravitee-io/gravitee-access-management/pull/2885


Not able to use Audio Player using m3u8 file format.

Current Behavior
I'm using next12.1 and react18 to play audio which is coming from backend and is in m3u8 (hls) format.
Expected Behavior
It should show Audio player on page. But it's showing blank.
Its only rendering  when I use m3u8 file otherwise its working fine.
 <ReactPlayer                 url={audioSrc}                 // url='https://www.youtube.com/watch?v=ysz5S6PUM-U'                 forceAudio                 forceHLS                 width='100%'                 height='100%'             />
I have tried this also
   <ReactPlayer                 url={audioSrc}                 // url='https://www.youtube.com/watch?v=ysz5S6PUM-U'                 config={{                     file: {                         forceAudio: true,                         forceHLS: true                     }                 }}                 width='100%'                 height='100%'             />
I'm using like this.
Environment

URL attempting to play: https://verito-user-data.s3.ap-south-1.amazonaws.com/6288/79cdb3bc9c4a9e073111b1beba7c4662_af94d79a-03dd-4ecc-bc55-74e027259880.m3u8
Browser: Edge(latest)
Operating system: windows 11

You can see a CORS error in the console. You’ll have to update the CORS settings on the s3 bucket.

is the syntax for the file config is right?
Thanks for you time.

Your second example is correct, although you can also do:
<ReactPlayer
    url={audioSrc}
    config={{
        forceAudio: true,
        forceHLS: true
    }}
    width='100%'
    height='100%'
/>

I dont think there is issue with CORS.
Because I have played
URL - https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8
Mentioned on Official Website on my local using this syntax.
Its blank in browser although its showing audio element in elements tab.


Render stray blocks differently?

Right now, if I drag a stray number block onto the screen, it generates no code (good!), but it isn't clear that this is what will happen.  One interesting idea is to render it in a half-transparent or disabled state.  Then it's clear when something is "activated" by being part of a top-level expression, and when it's just temporarily sitting on the canvas to use later.
Perhaps this should replace the "Disable Block" option from the context menu, and use that same style.  Disabling blocks isn't particularly useful anyway in an environment where there's only one top-level block (given that "let" blocks have no effect if they aren't used anyway).

I like this!


On 15.0 compilation error using default-features false

Hello,
I've upgraded from 11.1 to 15.0 and hit the folliwing error using default-features = false
error[E0463]: can't find crate for `myc`
   --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/mysql-15.0.0/src/lib.rs:140:1
    |
140 | extern crate mysql_common as myc;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

Without this flag everything compiles. It's not very urgent as I'm also fine without that flag and am not sure if it's event correct to use it anyway.

Hi.
You must choose at least one of existing feature sets for mysql_common to become available with correct features. It was made optional to allow specifying rustc_serialize feature here.
I.e. mysql_common dependency specified as optional but actually it's mandatory.


containerd executor should be smarter about containerd events subscription

The containerd executor added in #1965 currently starts a containerd event stream for every task. These event streams contain events for all containers which containerd is managing. We should either:

Make use of server side filtering in containerd (not yet implemented) to request a per-task stream which only contains events relevant to the task.
Setup a singleton event stream on the client side which demuxes into multiple per task event streams.

My preference is to do the former.

With #2275 this issue is pushed down into the container.Task.Wait() method. The code puts @ehazlett on the hook for that, but I'm not sure if there is an issue over there yet.

I've created #1066 to track this.

Thanks! I'll leave this here at least until #2275 is merged I think.

Correct containerd link: https://github.com/containerd/containerd/issues/1066


multiple newMockEvent(), same reference?

When I create two mock events with newMockEvent() and change e.g. the block timestamp, it changes on both of them.
See screenshots below:

I expect the auctionEvent.block.timestamp to still be 1 after changing bidEvent.event.timestamp, seems it doesn't matter that I've created two separate mocks, seems to reference to the value
My current workaround is to set the second events timestamp after the first one has been used, but I'd prefer to do all my setup in the beginning of the test

Thanks for the bug report. I just released a new matchstick-as version (0.4.2) that fixes this problem.
Note 1: if you just update the package.json file to point to version 0.4.2 of matchstick-as but have no changes in the test file you will need to run the following command the first time: graph test -- -r to force the test wasm binaries to recompile
Note 2: I see that you are manually assigning every field from the mock event to the event of the type you need, that can be done more easily using changetype like in here

Note 2: I see that you are manually assigning every field from the mock event to the event of the type you need, that can be done more easily using changetype like in here

Thanks, yeah I've used that in other subgraphs, but on this one I am working currently I was seeing syntax error, so I just did a quick workaround!
Thanks for the quick fix :-)


Add support for refreshing tokens for Bluesky

There were minor changes required to support token refreshing for Bluesky — mainly the POSTed body of the request, the grant_type needed to be "refresh_token", and the login needed to be removed from the DPoP response handler.
Fixes #23

This is incredible thank you so much!

@tonyarnold Are you writing a Bluesky client? I'm interested.....

@martindufort yeah, kinda — I'm not sure if it will ever see the light of day, but I am offsetting the enterprise-level development I do for work with some hobby coding on this.


Cannot show more than one timeline on the same dashboard

Hi,
I would like to show 2 timelines on my dashboard with 2 different data-id:

But because the TimeKnots draw is called like this: TimeKnots.draw('.timeline', events, {}) in the coffee script, there is a conflict between the two widgets (same class).
I suggest to replace the .timeline selector by something like @node.getElementsByClassName('timeline')[0] which depends directly on the widget thanks to the @node selector.
What do you think ?
(Thanks for the widget BTW)

Good solution, works for me!
grazie mille!


Pylint error regarding typer members

When using dtyper as follows:
`import dtyper as typer
Class Example:
def init(self, ctx: typer.Context):
`
Pylint issues an error:
E1101: Module 'dtyper' has no 'Context' member
Even though the code runs fine. Are there any work arounds for this other than littering the code with #pylint disable=E1101 everywhere it's used?

Hello, John, and thanks for using dtyper!
Let me first give you a workaround before I discuss the issue. This should work, and if it doesn't, the problem isn't mine. :-D
from typer import Context

class Example:
   def __init__(self, ctx: Context):

I'm going to test this after sending this message, see below.

Since I wrote this module, Python in general and I in specific have gone for type annotations in a big way.
Unfortunately, a few of my other libraries https://github.com/rec use too much "reflection" and have resisted efforts by me and other people to get them to work; and parts of dtyper which rewrite typer suffer from this issue too: https://github.com/rec/dtyper/issues
However, this symbol Context shouldn't be that way! And indeed, I think use it in other type-checked code, but I use mypy for my type checking.
I'm particularly baffled by the problem you are reporting, because in fact I do declare that member, right here: https://github.com/rec/dtyper/blob/main/dtyper/init.py#L256
pylint is quite popular, so I can't just ignore this.
My plan is this!

Create a tiny demo module that uses dtyper and both mypy and pylint.
Use dtyper.Context
See what mypy and pylint do.
See if I can tweak things
Report back!

I'll let you know.

(Project is here, so far empty: https://github.com/rec/dtyper_test)

Hey Tom, Thanks for the quick reply! I can replicate it in my repo using the following simple example code:
`from typing import Optional
import dtyper as typer
from . import pkg_name, version
app = typer.Typer(pretty_exceptions_enable=False)
def _version_callback(value: bool):
if value:
typer.echo(f"{pkg_name} v{version}")
raise typer.Exit()
@app.callback()
def main(
ctx: typer.Context,
version: Optional[bool] = typer.Option(None, "--version", help="Show the application's version and exit.", callback=_version_callback, is_eager=True)
):
pass`
This produces the following errors:

Could this somehow be my setup? For reference, I am using VSCode 1.86.2, pylint version 2.17.4, and python 3.8.16

Hah, just saw the edit!  How strange.
You have an older version of pylint, but I tried that and did not get your error, but I get other errors (all expected).
************* Module dtyper_test2
dtyper_test2.py:18:0: C0301: Line too long (153/100) (line-too-long)
dtyper_test2.py:1:0: C0114: Missing module docstring (missing-module-docstring)
dtyper_test2.py:5:0: E0611: No name '__pkg_name__' in module '' (no-name-in-module)
dtyper_test2.py:5:0: E0611: No name '__version__' in module '' (no-name-in-module)
dtyper_test2.py:16:0: C0116: Missing function or method docstring (missing-function-docstring)
dtyper_test2.py:17:4: W0613: Unused argument 'ctx' (unused-argument)
dtyper_test2.py:18:4: W0613: Unused argument 'version' (unused-argument)

Could it be a windows thing? Are there some sort of arguments to pylint? Or a configuration file?
Consider trying this:
import dtyper
import typer

app = dtyper.Typer(pretty_exceptions_enable=False)

Yes that works! Importing both dtyper and typer, then setting the app to dtyper.Typer removes the errors.

That is very, very strange!
I hate not having a good explanation for something, I feel I'm doing
everything right and I can't get the error to happen locally.
I'm glad I got it to work for you anyway!
On Sat, Feb 24, 2024 at 3:19 PM johnmjacks @.***> wrote:

Yes that works! Importing both dtyper and typer, then setting the app to
dtyper.Typer removes the errors.
image.1.png (view on web)
https://github.com/rec/dtyper/assets/126981878/ed7df319-73ea-4396-919c-1a0512898e0b
—
Reply to this email directly, view it on GitHub
https://github.com/rec/dtyper/issues/13#issuecomment-1962386119, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB53MVRVMWONDMEXUW4LJDYVHZFRAVCNFSM6AAAAABDXNWY6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRSGM4DMMJRHE
.
You are receiving this because you were assigned.Message ID:
@.***>

--
/t
PGP Key: @.***
https://tom.ritchford.com https://tom.ritchford.com
https://tom.swirly.com https://tom.swirly.com


Update en.json under languages directory

Work complete. May need to revisit the "Hint"

Work complete. May need to revisit the "Hint"


Incorrect XML element

The <StartPrograms>...</StartPrograms> is incorrect. It should be <StartProgram>...</StartProgram>

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

ID: aa63b4dc-21b4-307f-61d3-a13ce9d0475a
Version Independent ID: de62d1bc-6f08-edf9-9624-fee65b90185e
Content: How to Roundtrip Extensions - Visual Studio
Content Source: docs/extensibility/how-to-roundtrip-VSIXs.md
Product: visual-studio-windows
Technology: vs-ide-sdk
GitHub Login: @willbrown
Microsoft Alias: madsk

@carlos-quintero -- Carlos, thank you for your feedback.
@madskristensen -- Mads, please review my correction in the above-mentioned PR 5800.

@WilliamAntonRohm done


Version bump

Coverage remained the same at 100.0% when pulling f8d47d737653fe4132a6849bc882b416b598c3f3 on develop into ce2d340d2bf03eceb36e71226f439cdd71dfe8ae on master.


Ignore pinned issues

Context
Pinned Issues should never be considered stale, as they are obviously meant to stick around, or they wouldn't be pinned.
Currently, the bot treats Pinned Issues the same as any other issue. The workaround is to also add a label to these issues, to prevent the bot from flagging them.
What does this do?
This adds a filter step to the getStale function, which filters out Pinned Issues. This results in Pinned Issues never being marked as stale
Considerations
The GraphQL API is used to fetch the Pinned Issues, as the REST API does not support this functionality.
To access this information, the Pinned Issues Preview feature had to be enabled, via the special Accept header. This should be removed once the feature is released.
In case the feature is removed or altered, causing an error, the code rescues errors and proceeds as if no issues are pinned.

This PR would address a current issue: https://stackoverflow.com/questions/62064833/github-probot-why-are-pinned-issues-treated-as-style-and-marked-as-wont-fix. The default config of ignoring a pinned label is misleading. Either this PR could address it or Stalebot should be able to react/ be configured based on issue state and labels both.

Pinned Issues should never be considered stale, as they are obviously meant to stick around, or they wouldn't be pinned.

This is still relevant and would be highly appreciated.


[$500] Web - Can edit private note of archived workspace using URL

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to the private note of a workspace
Copy the URL
Delete that workspace
Past the copied URL

Expected Result:
User should not be able to edit private note of archived workspace
Actual Result:
User is able to edit private note of archived workspace
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
note-archived (1).webm
https://github.com/Expensify/App/assets/93399543/53a8d987-8d66-46d7-bb0d-b7ed37c9f823
Expensify/Expensify Issue URL:
Issue reported by: @hichamcc
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695067265209059
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~011c113c6aa5282936
Upwork Job ID:<PHONE_NUMBER>596937216
Last Price Increase: 2023-09-20

Proposal
Please re-state the problem that we are trying to solve in this issue.
Can edit private note of archived workspace using URL
What is the root cause of that problem?
In ReportDetailsPage.js page, We hide private notes based on isArchivedRoom, but in PrivateNotesEditPage.js page we don't show not fount screen in this case.
What changes do you think we should make in order to solve the problem?
we need to add condition isArchivedRoom in FullPageNotFoundView shouldShow
const isArchivedRoom = useMemo(() => ReportUtils.isArchivedRoom(report), [report]);

<FullPageNotFoundView
    shouldShow={..... || isArchivedRoom}

here
https://github.com/Expensify/App/blob/6d675529b2825b71c5c2bef332e7a07f0230c86f/src/pages/PrivateNotes/PrivateNotesEditPage.js#L84
We can apply the same fix in other notes pages, like PrivateNotesViewPage.js, PrivateNotesListPage.js ...
What alternative solutions did you explore? (Optional)
we can instead allow displaying the private notes, but disable edit it when isArchived

Suggestion: This must be handled on the backend as well. If the workspace is archived and yet a PUT/PATCH to Note is made, the backend must throw 405 [ Not Allowed ].

Reviewing tomorrow!

Assuming the expected behaviour is to display "not found", then since we have two pretty much identical proposals, we can go with @dukenv0307's proposal - it was first and LGTM!
:ribbon::eyes::ribbon: C+ reviewed

since we have two pretty much identical proposals

Hi @jjcoffee
I think my proposal is not identical, I propose to do this change in PrivateNotesEditPage.js and the other note page in the middle like PrivateNotesViewPage.js, and PrivateNotesListPage.js, but the other proposal doesn't.
Thanks!

@jjcoffee can you please give me the last opinion about this https://github.com/Expensify/App/issues/27891#issuecomment-1731714013

@ahmedGaber93 Small additional changes like those you mention can be addressed in the PR and don't usually influence proposal selection.

@jjcoffee I just thought this wouldn't be remembered, so I refer to it.
Thanks for your time.

Cool, @dukenv0307's proposal sounds good to me. I'll also update the back-end to disallow editing this for archived rooms.

@jjcoffee Can you complete the checklist and list any regression test steps?
Payouts due:
Issue Reporter: $50 @hichamcc - @hichamcc can you please accept my offer in Upwork?
Contributor: $500 + $250 bonus @dukenv0307
Contributor+: $500 + $250 bonus @jjcoffee
Eligible for 50% #urgency bonus? Y - based on https://github.com/Expensify/App/issues/27891#issuecomment-1738710476
Upwork job is here.

@Christinadobrzyn accepted

Regression Test Proposal

On any workspace's #admin room, open the details pane and create a note and save it
Copy the URL to the edit note page
Delete the workspace
Paste the copied URL and verify that the "not found" screen shows

Do we agree 👍 or 👎

Thanks! Test regression made and paid out based on https://github.com/Expensify/App/issues/27891#issuecomment-1756046287
Closing!


Fixed value update on slider

Fixes #1009

The last PR after this, 1.5.3 is done and 2.0 is the goal


Optional parameter "filter"

It could be helpful to mention on which property I can use the "filter" parameter. For excample it won't work for the property "SharingCapability".

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

ID: 2fbda735-74ec-2f4e-9c75-dd133e87320e
Version Independent ID: 599c8c2e-6e02-f27f-1009-2640296d5d10
Content: Get-SPOSite (sharepoint-online)
Content Source: sharepoint/sharepoint-ps/sharepoint-online/Get-SPOSite.md
Service: sharepoint-powershell
GitHub Login: @techwriter40
Microsoft Alias: kirks

Thanks for your comment @gerickes I'll update the document based on it.

@get-itips  Thank you very much for the contribution and updating the documentation with PR. @gerickes Hope this update is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

So I still dont see any list of properties we can use with Filter, why was this closed? Can we please get the list of available properties added? And maybe remove the text about -filter being not functional.

@michevnew - re-opened and we can ask @get-itips if he would be able to provide a link to the PR to resolve the issue. We can use this same issue to update doc based on your feedback too. Thanks for taking the time to contribute areas for improvement.

Also, @trent-green owns SharePoint Online PowerShell so looping him in here too.

The filter documentation is still not updated.    You need to use the proper format when filtering.
Get-SPOSite -Filter {Owner -eq<EMAIL_ADDRESS>It should work with these properties
LastContentModifiedDate
Status
ResourceUsageCurrent
ResourceUsageAverage
StorageUsageCurrent
LockIssue
WebsCount
CompatibilityLevel
Url
LocaleId
LockState
Owner
StorageQuota
StorageQuotaWarningLevel
ResourceQuota
ResourceQuotaWarningLevel
Template
Title
AllowSelfServiceUpgrade
DenyAddAndCustomizePages
SharingCapability

Hello everyone,
Some months ago I added this commit about Filter parameter not being functional at the time, will revisit this to see if it has changed since then.

@tseward Please review this PR #4828

@yogkumgit looks like that PR was already merged.

@get-itips  Thank you very much for the contribution and updating the documentation with PR. @gerickes Hope this update is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

I tried Get-SPOSite -Filter {Title -like "test"} and it gives me an error message "Filtering is not supported for property Title." Am I missing something ?

I tried Get-SPOSite -Filter {Title -like "test"} and it gives me an error message "Filtering is not supported for property Title." Am I missing something ?

Yes. Title is not yet supported.

Currently, you can filter by these properties: Owner, Template, LockState, Url.


Here's a new site I'd like you to consider blocking

Here's a new site I'd like you to consider blocking:
https://www.instagram.com/joannakuligowska6/
(please include any other relevant details)

Instagram should already be blocked, although they've got all their pages locked behind a login and I don't have an account to access it. Do you still see comments? I checked out the link you provided, but the profile is locked down so I can't see anything there either.


AttributeError: 'PipelineResponse' object has no attribute 'get'

hello  Azure SDK for Python  team,
my client  set up Pacemaker on SUSE Linux Enterprise Server in Azure,  came across  the  Error   "ERROR: Failed: Unable to deserialize to object: type, AttributeError: 'PipelineResponse' object has no attribute 'get'".  As a  Azure support engineer,   I  have tried  many times  but  failed  to  fix this error.  As  I  traced  the  origin  of  PipelineResponse  class,  https://docs.microsoft.com/en-us/python/api/azure-core/azure.core.pipeline.pipelinerequest?view=azure-python,   I  found  PipelineResponse class  is  one  part of  Azure SDK  for Python.
Accordingly,  I  am  asking  for  help  from  the  team  which  is  the contributor for  PipelineResponse class.  I  need  some documentation  about  PipelineResponse  class  which  I  cannot  find  online.  Also,  May  I  have  some  debugging  hints about  this  error.
Thank you very much  for  your help
Treynor  Cui  Na
email<EMAIL_ADDRESS>

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Data Factory:0.35301474,Docs:0.09512764,Compute - VM:0.0456159'

Thanks @SiberianTiger01
We will need a bit more information in order to get find the best people to help - the PipelineResponse object is a structural part of all the Azure Python SDKs, so it would be great if we could narrow this down a bit.
Are you able to provide a more complete error stack so we can see which file/SDK is raising the attribute error?
Or maybe your client is able to provide more details as to which Azure services they are using?
In order to help diagnose this, we will need to figure out details such as which Azure SDK is being used, which version is installed, and which APIs are being used.
You can find more information on the PipelineResponse, and how it fits into the SDK pipeline here:
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#pipelinerequest-and-pipelineresponse

the hosting  vm  is  Azure VM  using  SLES 15 image.  Python2.7.18  and  Python 3.6.15  are  installed.
Client set up  STONITH by using an Azure fence agent  following  this  article:  https://docs.microsoft.com/en-us/azure/virtual-machines/workloads/sap/high-availability-guide-suse-pacemaker
Client install  the  Azure fence agent  and  other  dependency  packages  by  zypper install.
vm-psapapp04:/home/azureuser # rpm -qa |grep fence-agents
fence-agents-4.9.0+git.1624456340.8d746be9-150<IP_ADDRESS>.x86_64
After installation,  client tried  to  start the service rsc_st_azure  by  below  command:
fence_azure_arm -l 'ceb2620c-c800-41c1-8535-b46d259093e1' -p '9C58Q~V7~VELvPeUTJCeGeaIWuWehlnhpWByqc.d' --resourceGroup 'RG-LPMAUSAPPROD-AE-APP-01' --subscriptionId 'f2124a35-d016-456e-afdf-ca2d94e8eef5' --tenantId '8fc6d05d-d5ac-4b97-b2a6-984429702c8a' -o list -v
but  failed  to kickstart the service,  and  error pop out:
ERROR: Failed: Unable to deserialize to object: type, AttributeError: 'PipelineResponse' object has no attribute 'get'
attached  detailed  snippets of  /var/log/messages  file
varlogs.txt

The STONITH device uses a service principal to authorize against Microsoft Azure.  Client use an Azure fence agent, which restarts a failed node via the Azure APIs.

Thanks @SiberianTiger01
From the linked guide - the only reference I can find to the Python SDK is here in step 10A, which would seem to narrow the scope down to either azure-identity or azure-mgmt-compute.
# You might need to activate the public cloud extension first. In this example, the SUSEConnect command is for SLES 15 SP1
 SUSEConnect -p sle-module-public-cloud/15.1/x86_64
 sudo zypper install python3-azure-mgmt-compute
 sudo zypper install python3-azure-identity

However from this alone it's still hard to tell where the error is occurring.
Could you let us know whether the client is installing to Python 2 or Python 3? (Python 2 is no longer officially supported by the Azure SDK).
Additionally, which versions of these Python packages are being installed?
Do we know how these packages are being consumed?
This could be an issue in the framework/agent that's calling into the SDK, rather than the SDK itself. It could also be worth reaching out to the authors of the guide to see if they can provide more details.

2022-05-25 12:34:34,516 INFO: 'User-Agent': 'azsdk-python-identity/1.5.0 Python/3.6.15 (Linux-4.12.14-197.83-default-x86_64-with-glibc2.3.4)'

Thanks - I'll tentatively tag this as identity for now.

From the log, I found:
ClientSecretCredential.get_token succeeded -- looks like we got the access token successfully.
and
2022-05-19 18:30:51,084 INFO: Request URL: 'https://management.azure.com/subscriptions/f2124a35-xxx-xxx/resourceGroups/RG-LPMAUSAPPROD-AE-APP-01/providers/Microsoft.Compute/virtualMachines?api-version=REDACTED'
2022-05-19 18:30:51,084 INFO: Request method: 'GET'
2022-05-19 18:30:51,084 INFO: Request headers:
2022-05-19 18:30:51,084 INFO:     'Accept': 'application/json'
2022-05-19 18:30:51,084 INFO:     'x-ms-client-request-id': '2e770b50-d752-11ec-844a-000d3a6ab175'
2022-05-19 18:30:51,084 INFO:     'User-Agent': 'azsdk-python-azure-mgmt-compute/17.0.0 Python/3.6.15 (Linux-4.12.14-197.83-default-x86_64-with-glibc2.3.4)'
2022-05-19 18:30:51,084 INFO:     'Authorization': 'REDACTED'
2022-05-19 18:30:51,084 INFO: No body was attached to the request
2022-05-19 18:30:51,086 DEBUG: Starting new HTTPS connection (1): management.azure.com:443
2022-05-19 18:30:51,366 DEBUG: https://management.azure.com:443 "GET /subscriptions/f2124a35-xxx-xxx/resourceGroups/RG-LPMAUSAPPROD-AE-APP-01/providers/Microsoft.Compute/virtualMachines?api-version=2020-06-01 HTTP/1.1" 200 None
2022-05-19 18:30:51,367 INFO: Response status: 200
2022-05-19 18:30:51,367 INFO: Response headers:
2022-05-19 18:30:51,367 INFO:     'Cache-Control': 'no-cache'
2022-05-19 18:30:51,367 INFO:     'Pragma': 'no-cache'
2022-05-19 18:30:51,368 INFO:     'Transfer-Encoding': 'chunked'
2022-05-19 18:30:51,368 INFO:     'Content-Type': 'application/json; charset=utf-8'
2022-05-19 18:30:51,368 INFO:     'Content-Encoding': 'REDACTED'
2022-05-19 18:30:51,368 INFO:     'Expires': '-1'
2022-05-19 18:30:51,368 INFO:     'Vary': 'REDACTED'
2022-05-19 18:30:51,368 INFO:     'x-ms-ratelimit-remaining-resource': 'Microsoft.Compute/HighCostGet3Min;138,Microsoft.Compute/HighCostGet30Min;697'
2022-05-19 18:30:51,368 INFO:     'Strict-Transport-Security': 'REDACTED'
2022-05-19 18:30:51,368 INFO:     'x-ms-request-id': 'ad1b8621-2579-48ce-9660-fbbc55ff94e6'
2022-05-19 18:30:51,368 INFO:     'Server': 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0'
2022-05-19 18:30:51,368 INFO:     'x-ms-ratelimit-remaining-subscription-reads': '11998'
2022-05-19 18:30:51,368 INFO:     'x-ms-correlation-request-id': 'REDACTED'
2022-05-19 18:30:51,368 INFO:     'x-ms-routing-request-id': 'REDACTED'
2022-05-19 18:30:51,368 INFO:     'X-Content-Type-Options': 'REDACTED'
2022-05-19 18:30:51,369 INFO:     'Date': 'Thu, 19 May 2022 09:00:50 GMT'
2022-05-19 18:30:51,369 DEBUG: Unable to deserialize to object: type, AttributeError: 'PipelineResponse' object has no attribute 'get'
2022-05-19 18:30:51,369 ERROR: Failed: Unable to deserialize to object: type, AttributeError: 'PipelineResponse' object has no attribute 'get'
especially:
'User-Agent': 'azsdk-python-azure-mgmt-compute/17.0.0 Python/3.6.15 (Linux-4.12.14-197.83-default-x86_64-with-glibc2.3.4)'
@msyyc can you take a look?

yes,  CX  login  successfully.  but  came across  this error,  "ERROR: Failed: Unable to deserialize to object: type, AttributeError: 'PipelineResponse' object has no attribute 'get'"

Hi @SiberianTiger01, thanks for your feedback, I used the same package version, but did not reproduce your results.
Could you please run the following demo script and tell us your results?
import os
import sys
import logging

from azure.identity import DefaultAzureCredential
from azure.mgmt.compute import ComputeManagementClient

logger = logging.getLogger('')
logger.setLevel(logging.DEBUG)
handler = logging.StreamHandler(stream=sys.stdout, )
logger.addHandler(handler)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
handler.setFormatter(formatter)

credential = DefaultAzureCredential()
SUBSCRIPTION_ID = os.environ.get("AZURE_SUBSCRIPTION_ID", None)

compute_client = ComputeManagementClient(credential, SUBSCRIPTION_ID, api_version='2020-06-01')

resource_group_name = 'your-resource-group-name'    # replace this
for res in compute_client.virtual_machines.list(resource_group_name):
    print(res)

fyi: https://github.com/Azure-Samples/azure-samples-python-management/blob/main/samples/compute/README.md


add version of pipeline in config

with users pulling from activeDev and main branch and various versions, add pipeline information to config file for documentation and troubleshooting purposes

moved version to the snakefile, since this is now being archived
resolved with commit c61057032739c44e8b0ffd09fce53b77e95f7e2e


--validate not working for non-distributed mode

I'm trying to train a model, and want to use validate mode, but in non-distributed mode, validate doesn't work since in /mmaction/apis/train.py there is no use of validate in the method  _non_dist_train(model, dataset, cfg, validate=validate). Could you update the code for running validate in non-distributed mode?
Also, I could not run the code in distributed mode (with --launcher=pytorch, 2GPUs). Can you explain what is the difference in different modes and how to use those for running train in distributed mode?
Thanks,

--validate only works for distributed mode.


Add custom extensions and update readme

Hi @cb-jarunmadhesh
I noticed that you closed this PR.
Do you still want to support the custom extensions?
Regards,
Reuven


Get to know when playback is starting

Hello there!
The problem I'm trying to solve is :
"Using the Spotify web API /player endpoint, offering a usable progress-bar through a custom Spotify player".
I've understood that there is no way to get any realtime player updates from posted issues on the Spotify repository.
However, I'd like to know: Would be possible for one to know when the playback is starting ? I mean by that, when one can actually hear the song playing through the speakers, which is different than the request to  "/player/play" being completed.
For now, I'm launching a timer to keep the progress bar updated when the request is completed, but it causes various annoying side effects... Also, I'd like to avoid polling the /player endpoint.

Thanks @mystermiam for the suggestion. This is not possible at the moment since that functionality is not provided by Spotify's API, so you are left with checking the playback state every few seconds.
This is for instance what I do in https://github.com/JMPerez/spotify-player (see https://github.com/JMPerez/spotify-player/blob/master/public/spotify-player.js#L73) used on these "now playing" visualizations.


fix(bug) build fails on windows with autocrlf=lf

Changing end of file and properties String manipulation to use Properties class
close #10398

No it does not, and I didn't think it should since there was no test for this :/
Order should be preserved, but empty lines will definitly go away.
And a file header comment is automatically generated with generation date for the file (can't remove it, can only provide a default value on properties.store(outputStream, comment))
If those points are mandatory behaviours for the component, they should be tested accordingly beforehand

No it does not, and I didn't think it should since there was no test for this :/
Order should be preserved, but empty lines will definitly go away. And a file header comment is automatically generated with generation date for the file (can't remove it, can only provide a default value on properties.store(outputStream, comment))
If those points are mandatory behaviours for the component, they should be tested accordingly beforehand

For me they are, we learned that later on but I think this is really important. @pascalgrimaud  any advice on this?

IMO these points are indeed mandatory.
We try to preserve as much as possible the existing source file, and the header will generate some additional noise in system versioning changes.

First step : adding tests to check those behaviours in existing class

order in file preserved
comment preserved
white line preserved
new key/values appended at the end of the file
new values appended at the end of current existing values for key

Something like this :

(yes, it works even on my setup, be with a very ugly fix i'm too ashamed to show here)
This should go in another pull request/issue


optOptimize the display of splitstate to prevent too many splits

What problem does this PR solve?
When using explain verbose, the stat of the splits will be displayed. If there are too many splits, the display will be too redundant.
Now a maximum of 4 items are displayed, and the rest are replaced by ellipsis.
Check List (For Author)

Test

[ ] Regression test
[ ] Unit Test
[ ] Manual test (add detailed scripts or steps below)
[ ] No need to test or manual test. Explain why:

[ ] This is a refactor/code format and no logic has been changed.
[ ] Previous test can cover this change.
[ ] No code files have been changed.
[ ] Other reason

Behavior changed:

[ ] No.
[ ] Yes.

Does this need documentation?

[ ] No.
[ ] Yes.

Check List (For Reviewer who merge this PR)

[ ] Confirm the release note
[ ] Confirm test cases
[ ] Confirm document
[ ] Add branch pick label

run buildall


Communication between Phones

Hi,
First of all, thanks for this great lib and clear doc.
I just read in the readme that the lib does not allow communicating between phones using BLE (Peripheral support).  I'm a little confuse about the term "communicating" . Can scanning phone devices be considered as a communication ... ?
I'm very new to BLE APIs and capabilities. I want to achieve a "simple" thing. Let's say I'm developing the APP-X. I want to be able to scan other phone around me, with APP-X installed (exactly like this app here https://www.tracetogether.gov.sg/ ) . So I don't want to establish a connection. I just want to scan and filter the wanted devices via a "simple" metadata (advertising data ? specific for my app) within the signal emitted by the concerned phones. I'm stuck because Idk how to "emit" that custom signal...
Can you please help me to find a way to do this in RN ?
Many thanks 🙏

This library doesn't support Peripheral mode. Please look at existing tracing implementations and try to reuse their knowledge / create RN native modules as needed.

@BlackCod3 its not implemented in this library. @Cierpliwy is correct you need to implement your own. Use the concept of https://github.com/opentrace-community.

@BlackCod3 Did you ever implement or find a library that fit your need?

@whatnottodo unfortunately no :/


Build pipeline

First PR from MS learn - Builds application and produces build for Release Configuration.

@microsoft-github-policy-service agree


Styling a label in a custom button class with Pixate

Does Pixate Freestyle support styling custom UIView or UIButton subclasses?
I have a button subclass, which uses an imageview and a label. I am using Pixate Freestyle and I am able to style the button background but I can't style the label in the button.
I tried the selector 'button label' and the style is not applied; But I checked the matching rulesets for my button label and it shows that the style in my scss file for ('button label') matches:
NSString *rulesets = [PixateFreestyle matchingRuleSetsForStyleable:self.buttonLabel]; NSLog(rulesets); //prints out the style shown below.

This is in my scss file:
button label {
color: blue;
background-color: pink;
border-width: 3pt;
border-color: brown;
font-size: 30pt;
}

Do you have any idea why this would not work? I have tried the following:
[PixateFreestyle updateStyles:self.buttonLabel]  //or

//this does not work either
self.buttonLabel.styleCSS = @{ @"background-color": @"purple",
                                   @"color"           : @"yellow"
                                   }.toCSS;

Given the problem above where styles are not being applied at all, is there a way to use the final rulesets and parse and apply each one? In other words, is there a way to force each style property to be applied to a view?

I was able to apply the styles by calling:

PXStyleInfo *styleInfo = [PXStyleInfo styleInfoForStyleable:_buttonLabel];
[styleInfo applyToStyleable:_buttonLabel];

However, I still do not know why the styles parsed for the label are not being applied by default.


Update pubspec.yaml

Thanks for the PR, I'm away for a week, but I'll just double check all is ok when I'm back, do check the nullsafe branch if you haven't already.

I think this is no longer relevant, but please comment/reopen if it is!


Unity + Firebase Auth (Android build)

Hello,
I'm trying to build my game for Android, i'm using the Firebase Auth (Email/Password), when i test in Unity Editor it works perfectly. But when i build to Android or Windows it gives the same error.
When i press the Login button, without put the e-mail:

And when i put the email, only gives me this:

Any suggestions?
Code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using Firebase;
using Firebase.Auth;
using Firebase.Unity.Editor;
using UnityEngine.SceneManagement;
public class LoginScreen : MonoBehaviour {
GameObject inputEmail;
GameObject inputPassword;

string email, password;
Firebase.Auth.FirebaseAuth auth;
Firebase.Auth.FirebaseUser user;

void Start () {
    Debug.Log("Login");
    inputEmail = GameObject.Find("inputEmailText");
    inputPassword = GameObject.Find("inputPasswordText");
    InitializeFirebase();

}

void InitializeFirebase()
{
    auth = Firebase.Auth.FirebaseAuth.DefaultInstance;
    auth.StateChanged += AuthStateChanged;
    AuthStateChanged(this, null);
}

void OnDestroy()
{
    auth.StateChanged -= AuthStateChanged;
}

void AuthStateChanged(object sender, System.EventArgs eventArgs)
{
    if (auth.CurrentUser != user)
    {
        bool signedIn = user != auth.CurrentUser && auth.CurrentUser != null;
        if (!signedIn && user != null)
        {
            Debug.Log("Signed out " + user.UserId);
        }
        user = auth.CurrentUser;
        if (signedIn)
        {
            Debug.Log("Signed in " + user.UserId);
        }
    }
}

public void Authenticate()
{
    email = inputEmail.GetComponent<Text>().text;
    password = inputPassword.GetComponent<Text>().text;
    Debug.Log(email);
    Debug.Log(password);

    auth.SignInWithEmailAndPasswordAsync(email, password).ContinueWith(task =>
        {
            if (task.IsCanceled)
            {
                Debug.LogError("SignInWithEmailAndPasswordAsync was canceled.");
                return;
            }
            if (task.IsFaulted)
            {
                Debug.LogError("SignInWithEmailAndPasswordAsync encountered an error: " + task.Exception);
                return;
            }

            Firebase.Auth.FirebaseUser newUser = task.Result;
            Debug.LogFormat("User signed in successfully: {0} ({1})",
                newUser.DisplayName, newUser.UserId);
            SceneManager.LoadScene("Menu");
        });
}

public void CreateAuthentication()
{
    email = inputEmail.GetComponent<Text>().text;
    password = inputPassword.GetComponent<Text>().text;

    auth.CreateUserWithEmailAndPasswordAsync(email, password).ContinueWith(task => {
        if (task.IsCanceled)
        {
            Debug.LogError("CreateUserWithEmailAndPasswordAsync was canceled.");
            return;
        }
        if (task.IsFaulted)
        {
            Debug.LogError("CreateUserWithEmailAndPasswordAsync encountered an error: " + task.Exception);
            return;
        }

        // Firebase user has been created.
        Firebase.Auth.FirebaseUser newUser = task.Result;
        Debug.LogFormat("Firebase user created successfully: {0} ({1})",
            newUser.DisplayName, newUser.UserId);

    });
}

}
(Using the Reporter from asset store)

I recommend opening up a ticket with our support team https://firebase.google.com/support/  if you've been unable to solve the problem using a clean project.  They'll be able to work through your issue and you'll have the ability to share your project directly with them.
Closing this issue as a duplicate of #143