Sign in with Google temporarily disabled for this app

Anyone experiencing this issue when trying to initialise the Google calendar? Is there some problem with the app @insanum ? Thanks.

This app has not been verified yet by Google in order to use Google Sign In.

Yes, I got a notification from Google about this a couple days ago. I submitted the gcalcli API scope usage for verification by Google. The form said it could take a couple weeks.
If you knows someone who works for Google... ask them to help expedite/guide this along. :-)

Hello I'm getting this error too after a reinstall of my system can someone explain whats going on is it my system or google's. I have never had a problem with Gcalcli  an miss it.

Same here, I'm trying to install it for the first time and I'm getting the same message.

Same here.

same here

If you created client id and client secret from dev account associated to your google account then on "App not verified" screen you can bypass it by clicking "Additional" and then "Go to (project name) page".

@MarSoft I don't get that option on Chromium or Firefox.

Can users create their own app as a work-around?

Confirming that using the --client-id and --client-secret arguments to authenticate works. This article is a bit outdated but is the general idea: create an OAuth web login app in the Google developer console, then enable the calendar API for it. Works!
This is probably the best approach, actually, if you are concerned about security (making sure you're not granting a 3rd party app access to your cal).

the process at https://github.com/insanum/gcalcli#login-information is more up to date than the blog post link on eethan's comment. There is still a "This app isn't verified" warning screen, but expand [Advanced] link at bottom and then use [Go to gcalcli (unsafe)] link under that.

I'm also getting the following error:

This app has not been verified yet by Google in order to use Google Sign In.

I'm unable to get the --client-id and --client-secret arguments to work, and the "[Advanced] link at the bottom is not visible for me.
Any ideas? Many thanks in advance!

I tried to setup another computer. Google isn't showing the [Advanced] and [Go to gcalcli (unsafe)] links anymore for me either.

Are there any workarounds to make this work?

any update on when Google might approve? I'm still hitting the same "Sign in with Google temporarily disabled for this app This app has not been verified yet by Google in order to use Google Sign In."

I have been waiting for over a month is this going to be fixed or what or has it been abandoned? Any info would be appreciated.

So far, it seems like google hasn't invalidated any existing oauth tokens, so I've still been able to use gcalcli as normal.   I did move my token out of the way and try to go through the sign in process using firefox.  I also didn't see the "Advanced" option that some users reported.  It would be nice to get to the bottom of that: exactly who sees "Advanced" and why.

Yes. Once you set up a new id and secret, then the Advanced option appears and you can create the 2 authentication files.

@aristosv Today I tried to install gcalcli and had the same problem. How do you set up a new ID and secret?

The following worked for me: login to your google account and enable Google Calendar API with OAuth 2.0 Client IDs . Copy the client ID credentials. Next remove any old settings
  rm ~/.gcalc*

Next login with credentials
 ~/.local/bin/gcalcli --xxxx.apps.googleusercontent.com --client-secret=XXXX calw

Now, critically, you get a login in the browser which says the app is temporarily disabled. Click on the 'Advanced' link (which only shows up when you use credentials) and go to gcalcli and allow all. It will end with 'The authentication flow has completed.'.  This should show your calendar, now you can run without credentials
  ~/.local/bin/gcalcli calw

I can confirm that this solution worked.

Sorry for being a noob, but how do I " enable Google Calendar API with OAuth 2.0 Client IDs "? I've been looking around my google settings and google calendar settings and can't find this option.

Same issue as with @slosar, absolutely no idea how to securely setup OAuth 2.0 Client IDs. When trying I'm stuck at stage where forced to setup a OAuth consent screen but unable to restrict it to Internal only. Any step-by-step instructions available?

This has worked for me but make sure you are using Chrome or Chromium  not Firefox. That is where I see the other button (I can't remember it's name) and it steps through allowing it at the end you get a security code. But I can say that I have to run this every once and a while to reauthorize gcalcli it just fails.

I use firefox only. It worked as described.

There's a button on this page that automates a lot of the process for getting the client id + secret, just need to click it: https://developers.google.com/calendar/quickstart/go
Also not sure if this matters, but @pjotrp it looks like your comment above is missing client-id=, should be:
 ~/.local/bin/gcalcli --client-id=xxxx.apps.googleusercontent.com --client-secret=XXXX calw

Just tried the method suggested by @pjotrp (created client-id by @tuckerconnelly suggestion) but I did not see any 'Advanced' link. Tested with both Brave and Chrome browser. Any idea what can I try next?

Just like @Hitkul I followed the instructions and can't see the 'Advanced' link in Chrome neither Firefox :(

the configuration parameters are --client_id and --client_secret (note then underscores).
and NOT --client-id and --client-secret as incorrectly specified in the docs and all the examples above.
It must have changed at some point.

@dannyshaw It worked. Thank you

and NOT --client-id and --client-secret as incorrectly specified in the docs and all the examples above.

This did the trick, thaniks

Thank you so much abers this step by step was what I needed :-)

Tried to follow @abers steps, but it says I need to go through verification. It seems google makes people jump through more and more hoops to access their own data...

Would this help?
https://github.com/aristosv/google_auth/blob/master/README.md
and then you can run
gcalcli --client_id=clientid_here --client_secret=clientsecret_here agenda

first time trying gcalcli, and I got the "temporarily disabled" notice without any "advanced" options. I did @aristosv suggestion and then the advanced button showed up, and I was then able to authenticate.

I followed @aristosv readme above. Unfortunately not working for me. Got error message that included UserWarning: Cannot access /home/lee/.gcalcli_oauth: No such file or directory   warnings.warn(_MISSING_FILE_MESSAGE.format(filename)) Tried on Chrome on Ubuntu

If you have the fancy new dropdown box, I tried using TV and it was able to work as well. The name of the TV client did not matter.

Behind a proxy here. Environment Variables http_proxy and https_proxy configured. Running
python -m pip install --upgrade pip
works (to demonstrate proxy settings are picked up by python).
Trying
gcalcli --client-id=xxx.apps.googleusercontent.com --client-secret=yyy calw
with and without (--noauth_local_webserver), I get to authenticate, but in the shell I get this error:
  File "c:\users\czxbwg\appdata\local\programs\python\python38\lib\site-packages\httplib2\socks.py", line 465, in __negotiatehttp
    raise HTTPError((statuscode, statusline[2]))
httplib2.socks.HTTPError: (407, b'Proxy Authentication Required')

This is:
gcalcli v4.3.0
on
MINGW64_NT-10.0-17763 C42L37WS1065 3.0.7-338.x86_64 2019-11-21 23:07 UTC x86_64 Msys
on
Microsoft Windows 10 Enterprise
Version 1809 (OS Build 17763. 1397)

Still getting this screen on 2020-10-9. I was able to set up the clientid/secret successfully in Google Cloud's console as described. But it would be nice if it just worked. Since this issue has been open so long though, maybe at this point all the setup stuff should be added to the README. I have a passing familiarity with Google Cloud's console, but for people that don't, it may be prohibitively confusing.

aaaaand, the process is already mostly on the README, here for anyone else trying to figure this out. When Google denies access click the Advanced option, as othes have mentioned.

Still happening today. There is no advanced option

Yesterday I did this for a client and it worked just fine. There was an "Advanced" button.
https://github.com/aristosv/google_auth/blob/master/README.md

Confirming that using the --client-id and --client-secret arguments to authenticate works. This article is a bit outdated but is the general idea: create an OAuth web login app in the Google developer console, then enable the calendar API for it. Works!
This is probably the best approach, actually, if you are concerned about security (making sure you're not granting a 3rd party app access to your cal).

Confirming that this is still the case as of this writing.
Create Google Calendar API access, add oauth2 application, and then define arguments:
gcalcli --client-id the-id-you-created --client-secret the-secret-created

Seems like this won't be an issue anymore (as long as you're supplying your own --client-id and not using the old built-in one), but please reach out with a fresh issue if anyone's still seeing problems.


PIL-1253 Make dateOfIncorporation optional on CompanyProfile

Updated CompanyProfile to make dateOfIncorporation an Option[LocalDate] more than anything to just keep the model consistent with the frontend after the change here

I have tested and verified in Local and demoed. More details and test evidence attached in the jira PIL-1253


Cadl website basic scaffolding in 11Ty

[x]  Simple front page with basic file structure layout (CSS, navigation), no content is needed

[ ] need ci pipeline for publishing

Taken as part of  by https://github.com/microsoft/cadl/pull/935


Add example Ansible roles

I agree but I also think our "customers" are also interested in a full stack solution. Plus I don't wan't to spend too much time customising and testing this ;-)


fix(books): free-programming-books-zh broken links

What does this PR do?
Remove resource(s) | Improve repo
For resources
Description
Solved a problem of #6942.

http://www.kancloud.cn/kancloud/intro-to-prog/52592 works
https://web.archive.org/web/20190222162556/http://learnvimscriptthehardway.onefloweroneworld.com/ the most recent snapshots don't work totally
https://beej-zhtw-gitbook.netdpi.net/ should be the same resource of the original, needs review
github.com/* work
https://angular.cn/* leave them or remove them? See ng-docs/angular-cn#12

Checklist:

[X] Read our contributing guidelines.
[X] Search for duplicates.
[X] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

web.archive.org/web/20190222162556/http://learnvimscriptthehardway.onefloweroneworld.com the most recent snapshots don't work totally

Is a translation of a leanpub book (see issue #6852). Needs review about access rights too?

Is a translation of a leanpub book https://leanpub.com/learnvimscriptthehardway. Needs review about access rights too (see issue #6852 about)?

The official website for that book is: https://learnvimscriptthehardway.stevelosh.com/, it's just a translation of this website so I think it's okay


Could not login with both 'leetcode user -l' and 'leetcode user -c'

I've tried the suggestion to re-login again, it failed again.

login again:

[root@localhost leetcode-cli]# leetcode user -l
login: myAccount
pass:
[ERROR] invalid password?

run the latest code:

cd <your local repo>
git pull --rebase origin master
./bin/install	// install globally, OR
./bin/leetcode <command>	// run the command locally

-->
Problem Summary
Could not successfully login leetcode with both leetcode user -l and leetcode user -c
How to reproduce

I tried both leetcode user -l and leetcode user -c both do not work
It is expected to login successfully, but I got [ERROR] invalid password? for leetcode user -l and [ERROR] You are not login yet? for leetcode user -c
The output with "-vv" as below:

[root@localhost leetcode-cli]# leetcode user -l -vv
[TRACE] initializing all plugins
[TRACE] found plugin: cache=default
[TRACE] found plugin: leetcode=default
[TRACE] found plugin: retry=default
[TRACE] inited plugin: leetcode
[TRACE] inited plugin: retry
[TRACE] inited plugin: cache
login: myAccount
pass:
[DEBUG] running leetcode.login
[DEBUG] running leetcode.signin
⠋ Signing in leetcode.com[TRACE] REQUEST %s { uri: 'https://leetcode.com/accounts/login/',
  callback: [Function] }
[TRACE] REQUEST %s make request https://leetcode.com/accounts/login/
⠋ Signing in leetcode.com[TRACE] REQUEST %s onRequestResponse https://leetcode.com/accounts/login/ 200 { date: 'Tue, 29 Sep 2020 23:41:49 GMT',
  'content-type': 'text/html; charset=utf-8',
  'transfer-encoding': 'chunked',
  connection: 'close',
  'set-cookie':
   [ '__cfduid=xxxx' ],
  vary: 'Accept-Encoding, Cookie',
  'x-frame-options': 'SAMEORIGIN',
  'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
  'cf-cache-status': 'DYNAMIC',
  'cf-request-id': '057dd778840000ebc97eba9200000001',
  'expect-ct':
   'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
  'report-to':
   '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report?lkg-colo=12&lkg-time=1601422910"}],"group":"cf-nel","max_age":604800}',
  nel: '{"report_to":"cf-nel","max_age":604800}',
  'x-content-type-options': 'nosniff',
  server: 'cloudflare',
  'cf-ray': '5da98ea0df9bebc9-LAX' }
[TRACE] REQUEST %s reading response's body
[TRACE] REQUEST %s finish init function https://leetcode.com/accounts/login/
[TRACE] REQUEST %s response end https://leetcode.com/accounts/login/ 200 { date: 'Tue, 29 Sep 2020 23:41:49 GMT',
  'content-type': 'text/html; charset=utf-8',
  'transfer-encoding': 'chunked',
  connection: 'close',
  'set-cookie':
   [ '__cfduid=xxxx' ],
  vary: 'Accept-Encoding, Cookie',
  'x-frame-options': 'SAMEORIGIN',
  'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
  'cf-cache-status': 'DYNAMIC',
  'cf-request-id': '057dd778840000ebc97eba9200000001',
  'expect-ct':
   'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
  'report-to':
   '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report?lkg-colo=12&lkg-time=1601422910"}],"group":"cf-nel","max_age":604800}',
  nel: '{"report_to":"cf-nel","max_age":604800}',
  'x-content-type-options': 'nosniff',
  server: 'cloudflare',
  'cf-ray': '5da98ea0df9bebc9-LAX' }
[TRACE] REQUEST %s end event https://leetcode.com/accounts/login/
[TRACE] REQUEST %s has body https://leetcode.com/accounts/login/ 39167
[TRACE] REQUEST %s emitting complete https://leetcode.com/accounts/login/
[TRACE] REQUEST %s { url: 'https://leetcode.com/accounts/login/',
  headers:
   { Origin: 'https://leetcode.com',
     Referer: 'https://leetcode.com/accounts/login/',
     Cookie:
      <hidden> },
  form:
   { csrfmiddlewaretoken:
      'zlPhIZk9zVL7eWY071cmKycEcajyaOkSVSXRSsZxsiSUlkSu38C96caa4uJhR3yd',
     login: 'myAccount',
     password: 'xxxx' },
  callback: [Function],
  method: 'POST' }
[TRACE] REQUEST %s make request https://leetcode.com/accounts/login/
[TRACE] REQUEST %s onRequestResponse https://leetcode.com/accounts/login/ 403 { date: 'Tue, 29 Sep 2020 23:41:50 GMT',
  'content-type': 'application/json',
  'content-length': '105',
  connection: 'close',
  'set-cookie':
   [ '__cfduid=xxxx' ],
  vary: 'Cookie',
  'x-frame-options': 'SAMEORIGIN',
  'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
  'cf-cache-status': 'DYNAMIC',
  'cf-request-id': '057dd77ae20000eef6ffa2d200000001',
  'expect-ct':
   'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
  'report-to':
   '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report?lkg-colo=12&lkg-time=1601422910"}],"group":"cf-nel","max_age":604800}',
  nel: '{"report_to":"cf-nel","max_age":604800}',
  'x-content-type-options': 'nosniff',
  server: 'cloudflare',
  'cf-ray': '5da98ea49808eef6-LAX' }
[TRACE] REQUEST %s reading response's body
[TRACE] REQUEST %s finish init function https://leetcode.com/accounts/login/
[TRACE] REQUEST %s response end https://leetcode.com/accounts/login/ 403 { date: 'Tue, 29 Sep 2020 23:41:50 GMT',
  'content-type': 'application/json',
  'content-length': '105',
  connection: 'close',
  'set-cookie':
   [ '__cfduid=xxxx' ],
  vary: 'Cookie',
  'x-frame-options': 'SAMEORIGIN',
  'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
  'cf-cache-status': 'DYNAMIC',
  'cf-request-id': '057dd77ae20000eef6ffa2d200000001',
  'expect-ct':
   'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
  'report-to':
   '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report?lkg-colo=12&lkg-time=1601422910"}],"group":"cf-nel","max_age":604800}',
  nel: '{"report_to":"cf-nel","max_age":604800}',
  'x-content-type-options': 'nosniff',
  server: 'cloudflare',
  'cf-ray': '5da98ea49808eef6-LAX' }
[TRACE] REQUEST %s end event https://leetcode.com/accounts/login/
[TRACE] REQUEST %s has body https://leetcode.com/accounts/login/ 105
[TRACE] REQUEST %s emitting complete https://leetcode.com/accounts/login/
[ERROR] invalid password?

The output of leetcode user -c
[root@localhost leetcode-cli]# leetcode user -c -vv
[TRACE] initializing all plugins
[TRACE] found plugin: cache=default
[TRACE] found plugin: leetcode=default
[TRACE] found plugin: retry=default
[TRACE] inited plugin: leetcode
[TRACE] inited plugin: retry
[TRACE] inited plugin: cache

Environment

leetcode-cli version:  2.6.2

OS version:
[root@localhost leetcode-cli]# lsb_release
LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
[root@localhost leetcode-cli]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)

Node version:
v10.19.0

Npm version: 6.13.4
[root@localhost leetcode-cli]# npm -v
6.13.4

[root@localhost leetcode-cli]# leetcode version -v
 _           _                  _
| |         | |                | |
| | ___  ___| |_  ___  ___   __| | ___
| |/ _ \/ _ \ __|/ __|/ _ \ / _` |/ _ \
| |  __/  __/ |_  (__| (_) | (_| |  __/
|_|\___|\___|\__|\___|\___/ \__,_|\___|  CLI v2.6.2

[Environment]
Node                 v10.19.0
OS                   linux 3.10.0-1062.18.1.el7.x86_64
Cache                /root/.lc/leetcode/cache
Config               /root/.lc/config.json

[Configuration]
autologin            {"enable":false,"retry":2}
code                 {"editor":"vim","lang":"cpp"}
file                 {"show":"${fid}.${slug}","submission":"${fid}.${slug}.${sid}.${ac}"}
color                {"enable":true,"theme":"default"}
icon                 {"theme":""}
network              {"concurrency":10,"delay":1}
app                  "leetcode"

[Themes]
Colors               blue,dark,default,molokai,orange,pink,solarized,solarized.light
Icons                ascii,default,win7

[Plugins]
cache                default
retry                default
leetcode             default

Similar result on arch linux, node 12.18.4, npm 6.14.6, installed with nvm

Similar problem in windows.

duplicate https://github.com/skygragon/leetcode-cli/issues/194

Is there any update on this one? Same issue, cant login via cli, while browser login works, so the credentials are correct.

I have the same problem, anyone has solved it?

leetcode user -c should work.
You should manually copy the total cookie string instead of relying on the automatic process.
For those entrants, I have a Chinese article to illustrate the detail.

leetcode user -c should work.
You should manually copy the total cookie string instead of relying on the automatic process.
For those entrants, I have a Chinese article to illustrate the detail.
https://blog.csdn.net/YIforeveralone/article/details/110820913

leetcode submmition can not use, i want to see the last submmi, do you know why?

Same issue, any update?
My OS is: linux 5.10.79-1-MANJARO
Come across this warning
login: (node:6951) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)


Fix broken url for 'Tour of Beam'

Fixes https://github.com/apache/beam/issues/27411

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

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

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

See CI.md for more information about GitHub Actions CI.

R: @Abacn

assign to next reviewer

R: @damccorm

/assign to next reviewer

/assign set of reviewers

assign set of reviewers

/assign to next reviewer

assign to next reviewer

LGTM
minor: would you mind fix the unrelated diff?

@damccorm I have reflected all of your feedback.


[ZEPPELIN-1982] When using the 'Select * ...' statement doesn't show …

What is this PR for?
In this ticket ZEPPELIN-212，InterpreterOutput.java will filter out '\n'.
It causes tabledata.js couldn't recognize the comment in the paragraphResult. If column number of sql query exceed 2 columns and row number over maxResult will show nothing.
Therefore, I suppose to modify comment statement from ''  to TABLE_COMMENTfor this issue.
What type of PR is it?
Bug Fix
Todos

None

What is the Jira issue?
ZEPPELIN-1982
How should this be tested?
try  to execute %sql  SELECT * FROM bank on  tutorial
Screenshots (if appropriate)
Before

After

Questions:

Does the licenses files need update?
Is there breaking changes for older versions?
Does this needs documentation?

@zjffdu Can you also verify it?

This PR works for me. But I feel it is kind of hacking using <!--TABLE_COMMENT-->.  I think the better approach is to using multiple InterpreterResult. But we could do that in a following up PR.

Thank @del680202 for fixing this bug!
I just tested it out and this problem works well.
But, some existing sample paragraphs have the following problems.

and, when I run one paragraph among those paragraph

@del680202 Could you check and run this paragraph?

@soralee @zjffdu
I also figure out that i missed the last new line character, i use the a simple way to handle it.

Thanks @del680202  for the fix!
Although it fixes problem from of output from SparkInterpreter, outputs from other interpreters may have the same problem unless other interpreter changes code.
So, I think we need follow up PR that fixes InterpreterOutput.java 's table data comment handling.

@del680202 I tested this again and I can't the above error in chrome.
It's working well now.

Jdbc interpreter may be effected. Livy interpreter would return a list of InterpreterResult so it is fine for livy.

I test Jdbc interpreter and livy interpreter by my test database.
jdbc interpreter working well.

But there a problem in livy interpreter

And then, I test livy interpreter  by master branch again, the same problem occurred
I suppose it is a livy interpreter  issue.

@del680202 Thanks for verifying. livy interpreter works in master, so I guess it is affected by this PR.

I think we need this for 0.7 RC?

@zjffdu
I  verify this issue again for double check.
This PR working well, Maybe I miss something.
But master branch still occur problem.
There are two test cases:

Select table from spark temp table
Select real table from hive

If my target is hive table, it will show 1 in master branch.
-master branch

-This PR

@zjffdu
I  verify this issue again for double check.
Livy version: branch-0.3
There are two test cases:

Select temp table from spark
Select real table from hive

In the previous, My PR occur problem because livy interpreter use '\n' for comment part but it doesn't filter out '\n'.
Therefore, I fix it at first.
I suppose it is a policy problem, does '\n' in interpreter result need to be filtered out?
Another problem
In master branch, when my target is hive table, it will show 1 in result.
-master branch

-This PR(after fixing)

I try to hack livy interpreter source code, when I query my hive table, I got a TABLE result and a TEXT result  Output exceeds 102400. Truncated.
The TEXT part cause this issue.  Therefore, I suppose it need to create a new jira ticket for this issue?

@del680202  I create ZEPPELIN-2015 and will try to fix that.

@del680202 thanks for the contribution, do you mind to retrigger CI to be sure?
You can retrigger it by closing and opening this PR or git commit --amend ## ; git push -f repoName branchName

Merging if there is no more discussion


Prevent click on element when swiping using mouse

How to prevent clicking on certain element when swiping ?

I don't follow, how do you end-up clicking on an element when swiping?

I have no problem on mobile device, but on a desktop view (with mouse event), whenever the starting and ending position of my mouse event is still within the element (with onclick event listener), it triggers the click event

whenever the starting and ending position of my mouse event is still within the element

From what I understand, them mouse doesn't change enough to be considered a swipe, hence, we don't do anything.

From what I understand, the mouse doesn't change enough to be considered a swipe, hence, we don't do anything.

But it did swiped, the only way to prevent the click is to swipe beyond it's container. Anyway, do you have any workaround for this ?

I am having this issue as well. If you have an element with an onClick, swiping over this element will trigger the onClick, when it should not. This happens when mouse events are enabled (enableMouseEvents="true").
It seems that enableMouseEvents is triggering all onClick, onMouseUp, onMouseDown, etc events on children elements on swipe.
Any thoughts on this @oliviertassinari ?

@hodgef Thanks for the extra information. I better understand what's going on now. I fear it's happening at a different level of abstraction. I don't see how it could be something handled by the library. I see two options.

You stop the propagation of the mouse move event on the element that listens for the click event

    <SwipeableViews enableMouseEvents>

        <button
          type="button"
          onMouseMove={event => event.stopPropagation()}
          onClick={() => console.log('onClick')}
        >
          slide n°1
        </button>

slide n°2

slide n°3

   </SwipeableViews>

https://codesandbox.io/s/k56wzz4407
2. You can prune the false-positive click event:
let currentIndex;

function App() {
  return (
    <SwipeableViews
      enableMouseEvents
      onSwitching={index => {
        setTimeout(() => {
          currentIndex = index;
        });
      }}
    >

        <button
          type="button"
          onClick={() => {
            if (currentIndex === Math.round(currentIndex)) {
              console.log('onClick');
            }
          }}
        >
          slide n°1
        </button>

slide n°2

slide n°3

    </SwipeableViews>
  );
}

https://codesandbox.io/s/yr27wxq19

Here's an alternative solution for anyone else coming across this.
Attempting to detect a drag on the clickable element before preventing the click handler:
class SwipeableLink extends React.Component {
  handleMouseDown = e => {
    // store mouse position when click starts
    this.x = e.screenX;
  }

  handleClick = e => {
    const delta = Math.abs(e.screenX - this.x);

    if (delta > 10) {
      // If mouse moved more than threshold, ignore the click event
      e.preventDefault();
    }

    this.x = 0;
  }

  render() {
    return (

        {this.props.children}

    );
  }
}

function App() {
  return (
    <SwipeableViews enableMouseEvents>
      {[1, 2, 3].map(i => (
        <div key={i} style={Object.assign({}, styles.slide, styles[`slide${i}`])}>
          <SwipeableLink>
            slide n°{i}
          </SwipeableLink>

      ))}
    </SwipeableViews>
  );
}

https://codesandbox.io/s/4qyyo1j2mx


Finish Docstrings for all functions, classes and methods

Add detailed docstrings to the code.  This will be reflected in the documentation (including readthedocs) once we use sphinx.  Currently missing docstrings:
observation.py methods
stellar_matchmaker.py functions run_query() and output_data()
stellar_param.py methods
Once these are written, run documentation commands
Comment the import statements in stellar_matchmaker.py
python -m twine upload dist/*
Uncomment the import statements in stellar_matchmaker.py

@tyoo37 to do docstrings in stellar_matchmaker.py as part of the refactor
@astrovidee to handle the other docstrings.
Once theses are completed, we can revisit the twine/readthedocs integration


ci: use lcov-result-merger

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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 0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
0

Relevant Lines:
0

💛  - Coveralls


Sema: Warn about potential unavailability of extended type in resilient library API

Downgrade diagnostics about potential unavailability of the extended type in an extension declaration when the following conditions are met:

The extension is missing explicit availability.
The required availability is before the deployment target.

This exception is needed because there are many existing resilient libraries with extensions containing public members and no availability declared for the extension itself. Under existing rules, these decls are not diagnosed because the deployment target of the library is typically high enough that the extended type is implicitly considered available. Now that we're improving availability type checking for resilient libraries, however, these decls are being diagnosed. We need to land the diagnostic without breaking source compatibility so that library authors can identify and fix the issues.
Resolves rdar://92621567

@swift-ci please test


Re-enable skipped tests for amp-story

These tests were disabled in #186, since using the dom.js version of the fullscreen method will not be compatible with the spy approach currently used for testing fullscreen behavior.

Migrated to amphtml#11639.


Subclass support for Models

Refactors ModelMeta to enable subclassing & proper inheritance. There are some gross hacks in here, but that's we get with metaclasses.
There is a lot of common functionality shared across catalog Models, and this makes code reuse feasible.

@davidmcclure I would appreciate review on this ASAP, thanks!

Looks good, much cleaner - thanks @wearpants.


kombu.exceptions.ContentDisallowed: Refusing to deserialize untrusted content of type pickle (application/x-python-serialize)

Hello,
Currently running celery with Django. I require these configurations
CELERY_TASK_SERIALIZER = "pickle"
CELERY_ACCEPT_CONTENT = ["json", "pickle"]

however the celery-exporter container is throwing these errors
2023-07-24 13:41:01,397] ERROR in app: Exception on /metrics [GET]
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2528, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/app/src/http_server.py", line 32, in metrics
    current_app.config["metrics_puller"]()
  File "/app/src/exporter.py", line 139, in scrape
    self.track_queue_metrics()
  File "/app/src/exporter.py", line 219, in track_queue_metrics
    for worker, stats in (self.app.control.inspect().stats() or {}).items()
  File "/usr/local/lib/python3.10/site-packages/celery/app/control.py", line 243, in stats
    return self._request('stats')
  File "/usr/local/lib/python3.10/site-packages/celery/app/control.py", line 106, in _request
    return self._prepare(self.app.control.broadcast(
  File "/usr/local/lib/python3.10/site-packages/celery/app/control.py", line 741, in broadcast
    return self.mailbox(conn)._broadcast(
  File "/usr/local/lib/python3.10/site-packages/kombu/pidbox.py", line 344, in _broadcast
    return self._collect(reply_ticket, limit=limit,
  File "/usr/local/lib/python3.10/site-packages/kombu/pidbox.py", line 386, in _collect
    self.connection.drain_events(timeout=timeout)
  File "/usr/local/lib/python3.10/site-packages/kombu/connection.py", line 316, in drain_events
    return self.transport.drain_events(self.connection, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/kombu/transport/virtual/base.py", line 971, in drain_events
    get(self._deliver, timeout=timeout)
  File "/usr/local/lib/python3.10/site-packages/kombu/transport/redis.py", line 584, in get
    ret = self.handle_event(fileno, event)
  File "/usr/local/lib/python3.10/site-packages/kombu/transport/redis.py", line 566, in handle_event
    return self.on_readable(fileno), self
  File "/usr/local/lib/python3.10/site-packages/kombu/transport/redis.py", line 562, in on_readable
    chan.handlers[type]()
  File "/usr/local/lib/python3.10/site-packages/kombu/transport/redis.py", line 967, in _brpop_read
    self.connection._deliver(loads(bytes_to_str(item)), dest)
  File "/usr/local/lib/python3.10/site-packages/kombu/transport/virtual/base.py", line 991, in _deliver
    callback(message)
  File "/usr/local/lib/python3.10/site-packages/kombu/transport/virtual/base.py", line 624, in _callback
    return callback(message)
  File "/usr/local/lib/python3.10/site-packages/kombu/messaging.py", line 620, in _receive_callback
    decoded = None if on_m else message.decode()
  File "/usr/local/lib/python3.10/site-packages/kombu/message.py", line 194, in decode
    self._decoded_cache = self._decode()
  File "/usr/local/lib/python3.10/site-packages/kombu/message.py", line 198, in _decode
    return loads(self.body, self.content_type,
  File "/usr/local/lib/python3.10/site-packages/kombu/serialization.py", line 242, in loads
    raise self._for_untrusted_content(content_type, 'untrusted')
kombu.exceptions.ContentDisallowed: Refusing to deserialize untrusted content of type pickle (application/x-python-serialize)
[2023-07-24 13:42:01,397] ERROR in app: Exception on /metrics [GET]
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2528, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/app/src/http_server.py", line 32, in metrics
    current_app.config["metrics_puller"]()
  File "/app/src/exporter.py", line 139, in scrape
    self.track_queue_metrics()
  File "/app/src/exporter.py", line 219, in track_queue_metrics
    for worker, stats in (self.app.control.inspect().stats() or {}).items()
  File "/usr/local/lib/python3.10/site-packages/celery/app/control.py", line 243, in stats
    return self._request('stats')
  File "/usr/local/lib/python3.10/site-packages/celery/app/control.py", line 106, in _request
    return self._prepare(self.app.control.broadcast(
  File "/usr/local/lib/python3.10/site-packages/celery/app/control.py", line 741, in broadcast
    return self.mailbox(conn)._broadcast(
  File "/usr/local/lib/python3.10/site-packages/kombu/pidbox.py", line 344, in _broadcast
    return self._collect(reply_ticket, limit=limit,
  File "/usr/local/lib/python3.10/site-packages/kombu/pidbox.py", line 386, in _collect
    self.connection.drain_events(timeout=timeout)
  File "/usr/local/lib/python3.10/site-packages/kombu/connection.py", line 316, in drain_events
    return self.transport.drain_events(self.connection, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/kombu/transport/virtual/base.py", line 971, in drain_events
    get(self._deliver, timeout=timeout)
  File "/usr/local/lib/python3.10/site-packages/kombu/transport/redis.py", line 584, in get
    ret = self.handle_event(fileno, event)
  File "/usr/local/lib/python3.10/site-packages/kombu/transport/redis.py", line 566, in handle_event
    return self.on_readable(fileno), self
  File "/usr/local/lib/python3.10/site-packages/kombu/transport/redis.py", line 562, in on_readable
    chan.handlers[type]()
  File "/usr/local/lib/python3.10/site-packages/kombu/transport/redis.py", line 967, in _brpop_read
    self.connection._deliver(loads(bytes_to_str(item)), dest)
  File "/usr/local/lib/python3.10/site-packages/kombu/transport/virtual/base.py", line 991, in _deliver
    callback(message)
  File "/usr/local/lib/python3.10/site-packages/kombu/transport/virtual/base.py", line 624, in _callback
    return callback(message)
  File "/usr/local/lib/python3.10/site-packages/kombu/messaging.py", line 620, in _receive_callback
    decoded = None if on_m else message.decode()
  File "/usr/local/lib/python3.10/site-packages/kombu/message.py", line 194, in decode
    self._decoded_cache = self._decode()
  File "/usr/local/lib/python3.10/site-packages/kombu/message.py", line 198, in _decode
    return loads(self.body, self.content_type,
  File "/usr/local/lib/python3.10/site-packages/kombu/serialization.py", line 242, in loads
    raise self._for_untrusted_content(content_type, 'untrusted')
kombu.exceptions.ContentDisallowed: Refusing to deserialize untrusted content of type pickle (application/x-python-serialize)
[ec2-user@ip-172-31-29-0 monitoring]$

@HutchNunez Hello, you can add cli args like --accept-content=json,pickle,application/json,application/json,application/x-python-serialize when docker start or direct  execute--accept-content=json,pickle,application/json,application/json,application/x-python-serialize

It starts celery-exporter, but then we have a kombu.exceptions.SerializerNotInstalled: No encoder/decoder installed for application.

I have the same issue; does anyone know how to solve it?

Both your Celery setup and the Celery-Exporter have to accept the same
See this CLI argument: https://github.com/danihodovic/celery-exporter/blob/1496ac0314f427ccb4cdd275877d123adf85a276/src/cli.py#L44

Both your Celery setup and the Celery-Exporter have to accept the same content type
See this CLI argument: https://github.com/danihodovic/celery-exporter/blob/1496ac0314f427ccb4cdd275877d123adf85a276/src/cli.py#L44

Thank you! Resolved it.

Can you please explain more?

Can you please explain more?

Hey you need to add new variable.

name: CE_ACCEPT_CONTENT
value: "json,pickle,application/json,application/json,application/x-python-serialize"

This also work for helm charts :)


Add multithreading if possible

thx

We've got this in the backlog/roadmap already - https://github.com/iBotPeaches/Apktool/blob/master/ROADMAP.md#multi-threaded
thanks!


logstash 1.4.2 - Redis input timeout / missing data

(This issue was originally filed by @lmorfitt at https://github.com/elastic/logstash/issues/3226)

Hello,
I'm experiencing some issues with Logstash 1.4.2 and the redis input loosing data.  I'm wondering if anyone else has seen this issue.
If redis has no data added to the queue at least once an hour I see a "Redis Timeout, restating plugin" error. The data is then all pulled from the list in one go and out of 10 messages, only 2 will arrive in elasticsearch.
To try and track down if there was a timeout condition I added a test message to Redis once an hour.
1431330002.916917 "rpush" "data" "{########################TEST############################}"
1431330953.161801 "blpop" "data" "0"
1431330953.821474 "blpop" "data" "0"
1431330959.191131 "blpop" "data" "0"
1431330959.867708 "blpop" "data" "0"
1431333602.272291 "rpush" "data" "{########################TEST############################}"
1431334560.613347 "blpop" "data" "0"
1431334560.613396 "blpop" "data" "0"
1431334566.661423 "blpop" "data" "0"
1431334566.668555 "blpop" "data" "0"
Test message added
1431333602 - GMT: Mon, 11 May 2015 08:40:02 GMT
Logstash  restarts redis plugin and picks up message.
1431334560 - GMT: Mon, 11 May 2015 08:56:00 GMT
Logstash server
{:timestamp=>"2015-05-11T07:55:58.829000+0000", :message=>"Failed to get event from Redis", :name=>"default", :exception=>#<Redis::TimeoutError: Connection timed out>, :backtrace=>["/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis/client.rb:222:in io'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis/client.rb:220:in io'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis/client.rb:228:in read'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis/client.rb:96:in call'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis/client.rb:201:in process'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis/client.rb:309:in ensure_connected'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis/client.rb:191:in process'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis/client.rb:270:in logging'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis/client.rb:190:in process'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis/client.rb:96:in call'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis/client.rb:179:in call_with_timeout'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis/client.rb:244:in with_socket_timeout'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis/client.rb:242:in with_socket_timeout'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis/client.rb:178:in call_with_timeout'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis.rb:1038:in _bpop'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis.rb:37:in synchronize'", "file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/1.9/monitor.rb:211:in mon_synchronize'", "file:/opt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/1.9/monitor.rb:210:in mon_synchronize'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis.rb:37:in synchronize'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis.rb:1035:in _bpop'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/redis-3.0.7/lib/redis.rb:1064:in blpop'", "/opt/logstash/lib/logstash/inputs/redis.rb:148:in list_listener'", "/opt/logstash/lib/logstash/inputs/redis.rb:229:in listener_loop'", "/opt/logstash/lib/logstash/inputs/redis.rb:245:in run'", "/opt/logstash/lib/logstash/pipeline.rb:163:in inputworker'", "/opt/logstash/lib/logstash/pipeline.rb:157:in start_input'"], :level=>:warn}
{:timestamp=>"2015-05-11T07:55:58.833000+0000", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n  Plugin: <LogStash::Inputs::Redis host=>"<IP_ADDRESS>", key=>"data", data_type=>"list", name=>"default">\n  Error: Connection timed out", :level=>:error}
I was still seeing lost data so increased the addition of the test message to every 15 mins. This appears to have stopped the issue I was seeing. Not sure on the root cause at this time, any ideas?
thanks
Luke

Is this maybe the same as #1 ?

Fixed in #1


Zipcode in reverse geocoding issue

Is there not a function to return the parsed out zipcode from the address? (i.e. results.zipcode)

It depends on the provider. Some will have the zipcode and the function, some won't...
which provider are you using ?

@areed1242 Let us know which provider you are using to better answer your question.


[move-lang] Bug fixes associated with incorrect error gating

Fixed move_check tests to do code generation even with warnings
Fixed so code generation does not happen if there are any errors
Fixed some bugs resulting from this change

Motivation
#9987
#9907
Test Plan

Fixed tests
Added tests

/land

:broken_heart: Test Failed - ci-test

/land

/cancel

/land


⚠ GitHub release failed with status: 502, retrying...

Hi, I came across this problem since about 7 hrs ago, but I am not sure it's really the server problem or it's because of my huge external-release-notes (~8MB). So I am curious if there is a size limit to the external-release-notes that I can upload?

It turned out that it was because some of my release files exceeded the github max file size limit, external-release-notes turned out to be ~290 MB. Nonetheless, is this a typical 502 error?


System.Net.Http.HttpRequestException:  Error while copying content to a stream.

Hello Team ,
Could you please do needful on below issue ,while pushing metrics data  over http  from Dot net core Application(Deployed in ECS Fargate).Quick response will be appreciated .
App.Metrics.Reporting.Http.HttpMetricsReporter",
MachineName: "ip-------" }] [ERR   ]
[] System.Net.Http.HttpRequestException:
Error while copying content to a stream.",
"ecs_cluster":"--------",
"ecs_task_arn":"arn:aws:ecs:us-east-1:0266:
}
Thanks,
Kishore

"App.Metrics.Reporting.Http.Client.DefaultHttpClient", MachineName: "-----" }] [ERR   ]
[] Failed to write to http://localhost:8093/telegraf
System.Net.Http.HttpRequestException: Error while copying content to a stream.
---> System.IO.IOException: Unable to read data from the transport connection: Broken pipe.
---> System.Net.Sockets.SocketException (32): Broken pipe
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Http.HttpConnection.WriteAsync(ReadOnlyMemory1 source)    at System.Net.Http.HttpContent.CopyToAsyncCore(ValueTask copyTask)    --- End of inner exception stack trace ---    at System.Net.Http.HttpContent.CopyToAsyncCore(ValueTask copyTask)    at System.Net.Http.HttpConnection.SendRequestContentAsync(HttpRequestMessage request, HttpContentWriteStream stream, CancellationToken cancellationToken)    at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)    at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)    at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)    at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)    at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at App.Metrics.Reporting.Http.Client.DefaultHttpClient.WriteAsync(String payload, MetricsMediaTypeValue mediaType, CancellationToken cancellationToken)
2020-10-19 12:28:39.322 [{ SourceContext: "App.Metrics.Reporting.Http.HttpMetricsReporter", MachineName: "---" }] [ERR   ] [] System.Net.Http.HttpRequestException: Error while copying content to a stream.
---> System.IO.IOException: Unable to read data from the transport connection: Broken pipe.
---> System.Net.Sockets.SocketException (32): Broken pipe
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Http.HttpConnection.WriteAsync(ReadOnlyMemory1 source)    at System.Net.Http.HttpContent.CopyToAsyncCore(ValueTask copyTask)    --- End of inner exception stack trace ---    at System.Net.Http.HttpContent.CopyToAsyncCore(ValueTask copyTask)    at System.Net.Http.HttpConnection.SendRequestContentAsync(HttpRequestMessage request, HttpContentWriteStream stream, CancellationToken cancellationToken)    at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)    at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)    at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)    at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)    at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at App.Metrics.Reporting.Http.Client.DefaultHttpClient.WriteAsync(String payload, MetricsMediaTypeValue mediaType, CancellationToken cancellationToken)"

Maybe the server closed the connection mid-stream? Don't this this is related to AppMetrics


Added --if-exists flag for postgres restore

Solves an issue where dynamically created tables (concourse atc example) might not exist on a clean install (DR restore target).

Thanks @rkoster for the PR! We added a couple of tests and merged it.

Thanks for merging!


Add AS keyword in Dockerfile syntax

It is used in a FROM construction to alias the name:
FROM alpine:edge AS builder

See https://docs.docker.com/engine/reference/builder/#from for the reference.

Have you contacted the maintainer?

Codecov Report

Merging #4642 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4642      +/-   ##
==========================================
- Coverage    81.4%   81.39%   -0.02%
==========================================
  Files         115      115
  Lines      145325   145325
==========================================
- Hits       118299   118282      -17
- Misses      27026    27043      +17

Impacted Files
Coverage Δ

src/ui.c
68.68% <0%> (-0.98%)
:arrow_down:

src/if_xcmdsrv.c
85.99% <0%> (-0.54%)
:arrow_down:

src/gui_gtk_x11.c
57.86% <0%> (-0.1%)
:arrow_down:

src/os_unix.c
63.33% <0%> (-0.05%)
:arrow_down:

src/gui.c
63.7% <0%> (ø)
:arrow_up:

src/window.c
87.9% <0%> (+0.03%)
:arrow_up:

src/profiler.c
93.25% <0%> (+0.56%)
:arrow_up:

Continue to review full report at Codecov.

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

Yes, I sent an email, also mentioning here.
cc @honza

No answer from maintainer so far. Can it be merged without them?

would you volunteer to maintain this file then?

I didn't realize I had any say in this project. Thanks for the submission!

Was approved just now, I'll include it.


Feature Enhancement: FileChooser create directory button

Are there any current plans to add a button to allow a user to create a directory while using the filechooser?
It's nice to be able to make a directory then specify to save a file inside of it.

That's good idea. I will add it, later this week probably.

Done, check out latest snapshot!


DRILL-8454: Disable unsupported MapR profile and plugin

DRILL-8454: Disable unsupported MapR profile and plugin
Description
The MapR build profile and format plugin, which fell out of support in the open source Drill codebase years ago, are disabled. Drill users needing support for these components should contact HPE.
Documentation
See the HPE Ezmeral docs.
Testing
Build and unit tests of remaining modules pass.

This one's ready for review.

A note to the reviewers. Git's default diff algorithm makes it very hard to see that the changes this PR makes to pom.xml are simply whole sections moving into comment blocks. GitHub does not allow selection diff algorithm at this time so, to ease review, I have therefore uploaded the diff of pom.xml generated using git diff --diff-algorithm=patience separately. It is of course also possible to run this locally after pulling down my branch.

@jnturton Hi! I'll take a look at this pull request this week later or even next week. I've just got back from a vacation and got on a "burning boat" of work)
But I have a question now, Why did you decide to comment the mapr specific changes, but not completely remove them?
And in addition, I suppose that we also need to remove mentions of maprdb support from the documentation or leave a link to HPE documentation.

@rymarm welcome back! I wasn't sure whether to delete or comment out the mapr modules. I decided to try moving them to new, commented out sections of "Objects of type foo that are no longer supported" that seemed to keep an informative history in the source files without a lot of extra cruft. But that history is always available in Git so I'm also happy to delete instead...

@jnturton Can we merge this?

@cgivre let me convert the comment blocks to deletions as suggested by you and @rymarm and then let's merge it.


Created  Glossary.md

I Created an Glossary.md file that will house all the acronyms we used in CHAOSS
@ElizabethN

That would be awesome! Will make that edit after this PR don't know how to do that now 😅


Why SDPMid and SDPMLineIndex isn't set in ICECandidate.ToJSON()?

Hi, there,
In method ICECandidate.ToJSON(), SDPMid is a nil pointer and value of SDPMLineIndex is always 0. So I can't get these info in PeerConnection.OnICECandidate. Could anyone kindly clarify why SDPMid and SDPMLineIndex isn't set? Is there any concern?
Thx

Hey @juju812 sorry for the delay
pion/webrtc always does RTP/RTCP mux, so we don't create ICE candidates per media section. I believe this only matters if you have a PeerConnection that listens on multiple ports.
If there is a change we should make here happy to do it!
thanks

Fixed in 6d3633e58923227e00e96ed80ae46e6fa25a39cc
We now always include these entries.


Great！！

Cool project! I would like to ask when the code will be released?

@Asianfleet The code has been released.


[1.19.2] Crashes entering prison dimension from the end

https://gist.github.com/Rad586/eb6f3981ffbcb49cbb4856a62b9ce6ed
I made "overworld portal" to spawn on end midlands, since minecells dimensions are hard. After entering the portal(in survival), the game crashes.

The overworld is supposed to be the entrypoint for Mine Cells. I'm not planning to support the End and other dimensions as the entrypoints, as I can think of a few ways it could complicate the progression logic.


[5.1] Add global request helper

Allows quick access to the current request via request(), or access
to an input item in the request via request($key, $default = null).
Saves the namespace importing if you prefer to user facade-style access
to the request, much like the other Foundation helpers.
// 1. Injecting the request

use Illuminate\Http\Request;

public function postRegister(Request $request)
{
    $this->validate($request, [
        'email' => ['required', 'email'],
        'password' => 'required',
    ]);

    User::create([
        'email' => $request->email,
        'password' => bcrypt($request->password),
    ]);

    // ...
}

// 2. Using the `Request` facade

use Illuminate\Support\Facades\Request;

public function postRegister()
{
    $this->validate(Request::instance(), [
        'email' => ['required', 'email'],
        'password' => 'required',
    ]);

    User::create([
        'email' => Request::input('email'),
        'password' => bcrypt(Request::input('password')),
    ]);

    // ...
}

// 3. Using the `request` helper

public function postRegister()
{
    $this->validate(request(), [
        'email' => ['required', 'email'],
        'password' => 'required',
    ]);

    User::create([
        'email' => request('email'),
        'password' => bcrypt(request('password')),
    ]);

    // ...
}

I'm not sure I really like this tbh. I think this would be better just being defined in your own app.

One original design feature of laravel was the clear expressive syntax of facades. I don't think we should loose that any more than we already have.

@grahamcampbell, I'm curious how you see this as different from redirect() and view()

I'm curious how you see this as different from redirect() and view()

I don't. I dislike them too, and don't want to add to it.

I don't think we should loose that any more than we already have.

Hahahahahaha, ok then, that makes sense. I love them and think this is a perfect addition to their ranks, for what it's worth. Thanks for clarifying!

(To be clear, I mean: they're no worse than facades; if controllers weren't namespaced they wouldn't be useful at all, but with the introduction of namespaced controllers, these are often simpler than importing facades.)

Yeh, I get what you mean. :)

I'm curious how you see this as different from redirect() and view()

Actually there is a small difference - since L5 the documentation encourages people to use method injection to obtain request (probably because it plays nicely with Form Requests). On the other hand I bet noone uses method injection for Redirector or View Factory ;)

It usually quicker syntax to type the functions method and not having to import and call the facade.
Also the whole injecting will only work on controllers and other areas that support it by default, if you run your own classes that don't go through the container then method injection is a pain.


DDC/K cannot self-host or run on Dart 2, due to some package errors

DDC's build rules (utils/dartdevc/BUILD.gn#L26) still use --unsafe-force-compile and DDK's build rules cannot train against itself. In both cases it's because of some errors in imported packages (e.g. protobuf PbList had some issues, not sure where that dependency comes from).

I have a local change to get DDC and DDK tests passing with --preview-dart-2 ... seeing if I can remove unsafe-force-compile as well

https://dart-review.googlesource.com/c/sdk/+/51206 makes some good progress. We need to switch the main dartdevc and dartdevk snapshots to preview-dart-2 however.

https://dart-review.googlesource.com/c/sdk/+/51206


Intermediate values inside mruby

Hello!
I see that you don't have a mailing list, so I'm filing an issue, feel free to redirect me to another venue if there's a more appropriate place to have this conversation.
I'm looking to build something like Xcode's playground where users are able to see the value that every line produces.
For example:
a = 100 // 100
b = 200 // 200
a+b //300

and also:
def adder(a,b)
 a //100
 b //200
 a + b //300
end

adder(100,200) //300

and if run twice:
def adder(a,b)
 a //100, 600
 b //200, 800
 a + b //300, 1100
end

adder(100,200) //300
adder(600,800) //1100

I think something like this is possible but I need a nudge in the right direction.  I think my program should be modeled on the way that mirb works and will take care of showing the value for each line.  And I think I'll need to look at how values change in mrb_state.  Does that sound right?  Any advice on how to get intermediate values out of functions.  Also I want to line things up so that the value shows right next to the line of code that generated it.  Does mruby give me access to line numbers?

Any advice on how to get intermediate values out of functions

I have no idea about this, but you should be able to inspect the mrb_state access the values.

Also I want to line things up so that the value shows right next to the line of code that generated it. Does mruby give me access to line numbers?

You can get line information when compiling with debug mode, or -g flag to mrbc.


add some documentation on getOffsetParent and listScrollParents

Adding a few comments based on questions and discussion with @FezVrasta

Thanks!


Added 20 JAVA pattern problems

Added JAVA patterns, for my Hacktoberfest contribution.

do give Star to this repo


Yd http session manager

I don't have permission to assign.

@gmineebates added our iOS team as contributors, you should be able to now.


Store published_at in content store for V2 content items

This is really just a hack to get the functionality we needed, and should probably
have some more tests. Just want to confirm that this is the correct approach.

Yes this seems a reasonable approach, though you might want to use last_published_at to differentiate from the concept of "this is when it first went live".

Does it need another date field? Doesn't updated at already do this, assuming you touch the content item during the publish.

@gpeng No updated_at doesn't do anything because the content isn't really touched during publish. I'm not explaining this well, but long story short updated_at means the last time put_content was called. In our UI this amounts to updated_at being equal to the last time the user saved a document, not the last time they clicked Publish. We need the latter displayed in our frontend.

@elliotcm Renamed to last_published_at.

Ok... There are quite a few dates building up around ContentItem that I find a bit confusing. I see you need a date that represents the last time the content item as a whole was updated (I mean, including its State in this case). I think there's an argument for touching the ContentItem when any of the associated tables ('the pillars' etc) are updated. In words, publishing a content item changes its state. I think updated_at should reflect that despite the fact that the state isn't stored in the same record in the DB. Obviously, if your UI needs a date the ContentItem itself was last saved and the date that it was published then overloading that date is no good to you, I realise that. The State object has timestamps too doesn't it? Would that be any good?

The State object does, apparently, store these dates. This approach just seemed better than relying on some other object. A lot more obvious. I discuessed all this with @tuzz originally.

The updated_at on the state should be the last time the state was updated. I don't think we should touch it when some other arbitrary field changes on the content item. That would seem odd?
This approach looks long the right lines to me. :+1:

@tuzz I actually meant the other way around. Touching the ContentItem when the State was updated.

But from what @gpeng is saying, couldn't last_published_at in the DownstreamPresenter simply be something like:
state.name == "published" ? state.updated_at : nil

Or am I confused (again) by the data model?

@boffbowsh You could indeed do that.  I think I suggested it to someone yesterday but that might've been for something different.

@boffbowsh however, you'd have to find the published content item if you're dealing with a draft at the time.

@gpeng He doesn't need a date to represent the last time the content item was updated, he needs a date to represent the last time it was sent to the live content store.

@tuzz I actually meant the other way around. Touching the ContentItem when the State was updated.

I'm also not sure that's the right thing to do. I'd expected the updated_at on ContentItem to be the last time the content of that ContentItem was changed. For example, when a ContentItem gets "superseded" because something else has published over the top of it, I wouldn't expect that to affect its timestamps because only the state has changed. Maybe I'm missing something, though? Happy to discuss.

@AndrewVos Further to the chat above, this model might not be the best place to keep this timestamp (but maybe it is), could you pop over when you have time and we'll discuss again?

@elliotcm working from home today, I'll catch you on slack...

@tuzz Let's discuss that away from this PR as it's probably irrelevant here.
@elliotcm The State#updated_at would be the date it was sent wouldn't it, assuming State#name is 'published'?

@gpeng it would, though it would require you finding the right object.  We'll have a chat with Andrew later and figure out the specifics.

@elliotcm Don't you already have the ContentItem passed in? (here).

@gpeng yes, but we're talking about providing this information in a GET request.

🤔 Ok... not sure I understand but I'd like to if you'd fill me in (in the verbal rather than violent sense 🤓) when you've done the discussing. 👍

@thehenster I think that's there for when the item is in draft. Also, I've written this code to only set the value in the V2 api requests, so in pre-V2 I expect the value to not be set.

Closing this because after speaking to @elliotcm we decided this isn't needed: https://github.com/alphagov/government-frontend/pull/120


Invalid video identifier?

I get this error when trying to download this valid Vimeo video:
https://vimeo.com/75372619
Please help

This is the actual response from Vimeo. You need to tweak the security settings if that's your own video.
{
    message: "Because of its privacy settings, this video cannot be played here.",
    title: "Sorry",
    button: {
        text: "Watch on Vimeo",
        link: "https://vimeo.com/75372619"
    },
    view: 7
}


A schema for a list that includes at least one item of some type

I imagine something like:
const schema = z.any().array().includes(z.string())

Seems like a very common use case (I need it right now for my project).
Is there a way to do such thing without refine?

Is this what you are looking for?
const schema = z.string().array().min( 1 )

console.log( schema.parse( [ 'foo' ] ) ) // [ 'foo' ]

const result = schema.safeParse( [] )
!result.success && console.log( result.error.issues )
// [
//     {
//         code: 'too_small',
//         minimum: 1,
//         type: 'array',
//         inclusive: true,
//         exact: false,
//         message: 'Array must contain at least 1 element(s)',
//         path: []
//     }
// ]

If you found my answer satisfactory, please consider supporting me. Even a small amount is greatly appreciated. Thanks friend! 🙏
https://github.com/sponsors/JacobWeisenburger

I'm assuming you changed the title because I didn't give you the answer you were looking for. Could you please provide some data that would pass and some that would fail the schema you are wanting to make?

Yes,
thank you very much for the answer.
I’m replying to you on the issue.
On Mon, 6 Nov 2023 at 17:07 Jacob Weisenburger @.***>
wrote:

I'm assuming you changed the title because I didn't give you the answer
you were looking for. Could you please provide some data that would pass
and some that would fail the schema you are wanting to make?
—
Reply to this email directly, view it on GitHub
https://github.com/colinhacks/zod/issues/2931#issuecomment-1795042063,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BC2BBMWX42F7FKLV6YKOA33YDD4JLAVCNFSM6AAAAAA65OWP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJVGA2DEMBWGM
.
You are receiving this because you authored the thread.Message ID:
@.***>


Fix release creation migration script

Added metaci.release.utils.update_release_from_github
Added method Release.update_from_github
Changed migration script to create release then call
update_release_from_github to avoid Github API throttling caused by

NOTE: I originally had all the logic for Github interaction in Release.update_from_github but had to move to a utility so it was accessible from the migration script.  Migration scripts can't access model methods.


Is cpu throttling issue fixed in Kernel version 5.10.192-183.736.amzn2.x86_64?

related issues: https://github.com/awslabs/amazon-eks-ami/issues/372

Are you just asking if this commit is in the tree? https://github.com/torvalds/linux/commit/de53fd7aedb100f03e5d2231cfce0e4993282425
AFAICT, yes. It was merged upstream for the 5.4 release. I'm not aware of any reverts in AL2 builds.


[Ionic v4] Grid Responsiveness Breaks During Resizing

Bug Report
Ionic Info
ionic (Ionic CLI)                 : 4.2.1
Ionic Framework               : @ionic/angular 4.0.0-beta.12
Describe the Bug
Ionic grid will re-adjust to fit content as you scale down. If you scale back up, and then down again, it no longer fits the content properly.
Steps to Reproduce
I've ran into this locally, but it can be reproduced on the docs:
https://beta.ionicframework.com/docs/layout/grid/#stacked-to-horizontal

go to Stacked to Horizontal section of docs
in chrome dev, switch to mobile view
bring the size down until the items in that section are vertically aligned
bring the size up until the items are horizontally aligned
bring the size down once more to vertically align the items and notice that they do not stack anymore.

Expected Behavior
Responsiveness should be consistent, regardless of how many times the user re-sizes the window/app.

Thanks for your issue! Could you please check if this is still an issue in beta.17? That would be very nice :)


join() is very slow

Hi,
I had a try with wavfile.join() to interleave two mono wav files, 33MB each. After a few minutes I interrupted the process and only wrote about 24MB. I was expecting it to be faster, aren't you ?
Cheers

Thank you for the answer. I saw some comments here and there that numpy could help. But that's not a trivial dependency... Anyway as it's on your todo feel free to close this issue.

Yes I'm sure NumPy could simplify and speed up a number of operations. But, as you say, it's not a small dependency. I prefer to minimise dependencies as much as is sensible, and in this case I don't think it's worthwhile.

BTW I will keep the issue open as a reminder to me to fix it.

Turns out that there were lots of unnecessary calls to _io.BufferedWriter.seek, as the package was continuously updating the chunk headers. Removing those calls and deferring the chunk header updates to file close has significantly reduced the processing time (by around 40% on my machine). Closing this for now, as further optimisation is likely to yield more modest savings for significantly greater effort.


update to latest toolchain

Also need HMAC and SHA2

@Joannis I put up a PR for the CI script, osx can't pass until that's updated, then let's re-run and merge


Columns resize on updated props

When using column resizing, the first column grows and the others shrink when data is manipulated.
I'm passing the data in as props so that may be causing the table to re-render and recalculate the widths.

Expected Behavior

When new props are passed and data is updated, the columns should not recalculate their widths.
Current Behavior

Every time an action is performed the first column appears to grow in width. This causes all others to shrink in width and is impractical to resize each column to get them to return to normal.
This happens during adding/removing rows, or editing cells. You can also import the same file over and over and watch the behavior as well.
Steps to Reproduce (for bugs)

visit: https://klappy.github.io/tsv-editor/
Use this file to import after removing the .txt as it only supports .tsv files.
example.tsv.txt
Click in a field to "edit".
"Tab" to cycle through next and previous cells to see resizing.

You can also clone the repo and after npm i and npm start you can run locally.
https://github.com/klappy/tsv-editor
Your Environment

Tech
Version

Material-UI
^3.9.2

MUI-datatables
^2.0.0-beta-54

React
^16.8.2

browser
latest Chrome on Mac

etc

@gregnb My apologies that my first feedback is a bug. This is an excellent project and I am appreciative of the amazing pace at which feature and bugs are addressed! Excellent job delivering and maintaining such a versatile component!

No worries @klappy thanks for the feedback. Honestly, I have noticed this issue for a while now and I don't have a great approach on fixing it yet. I would love for someone to pitch in on this one since I'm strapped for time

I have a partial solution for this, fyi. PR incoming.

Just a reminder, should this ticket be closed? @gregnb

Closed! Thanks again for solving this @gabrielliwerant

Thanks guys!! This is a great addition to a great project.


[Test Only] Databricks Runtime with Spark 3.2

Verify that it's probably the change addSbtPlugin("com.frugalmechanic" % "fm-sbt-s3-resolver" % "0.11.0") that causes the "2450.4 Python 3.6 tests" and "2450.5 Python 3.7 tests" to fail in CI


make pdf from table

hi friend
how can I make pdf from Table?
i want to create report.

You can not create a pdf directly from the TableView.
To be able to generate a pdf file, you need to third-party libraries which works on Android OS.
Please check this.


[Enhancement] Update CTE rewrite count distinct limit

What type of PR is this：

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Disable group by multi-column with count distinct rewrite to CTE + JOIN
it's bad performance for aggregate
Checklist:

[x] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto backported to target branch

[ ] 2.5
[ ] 2.4
[ ] 2.3
[ ] 2.2

[FE PR Coverage Check]
:heart_eyes: pass : 3 / 3 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/RewriteMultiDistinctByCTERule.java
3
3
100.00%
[]

run starrocks_admit_test

[FE PR Coverage Check]
:heart_eyes: pass : 3 / 3 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/RewriteMultiDistinctByCTERule.java
3
3
100.00%
[]

run starrocks_admit_test

[FE PR Coverage Check]
:heart_eyes: pass : 3 / 3 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/RewriteMultiDistinctByCTERule.java
3
3
100.00%
[]

run starrocks_admit_test

@mergify backport branch-2.5 branch-3.0


Problem with charset UTF8

Hi, how can i set utf8?
Work nice this library, however some rows give me this: restricciÃ³n de movilidad por cÃ©dula y gÃ©nero en PanamÃ¡
In PDO is used SET NAMES UTF8, but in this library what should I use?

Remove 2 charset utf8 references from the PDO.class.php and the problem was fixed


LDAP group filtering kinda broken

Issue
Add these issues to elsewhere:

Snap: https://github.com/wekan/wekan-snap/issues

Other Wekan issues can be added here.
Server Setup Information:

Did you test in newest Wekan?: yep
Wekan version: 3.57, snap installation
Operating System: linux (debian)

Problem description:
I have a group named BoardUsers configured in my MS AD. The group filter should now check if the user is in this group or not.
I set these values as my config for the LDAP group filter;
ldap-group-filter-enable   true       ldap-group-filter-group-id-attribute   CN       ldap-group-filter-group-name   BoardUsers       ldap-group-filter-objectclass   group
But the log states
[DEBUG] Group filter LDAP: "(&(objectClass=group))"
Is there anything I'm misunderstanding about this filter? The help site for it isn't really helping either.

Still does not work. The functionality should be either removed or fixed.


Credit Transactions | Adjust the Approval Transaction History entry when using the Historical Data Entry |5|

https://trello.com/c/AY2F5AK0/880-credit-transactions-adjust-the-approval-transaction-history-entry-when-using-the-historical-data-entry-5
Story:
As an IDIR user, I want the current 'Historical Data Entry' Transaction History entry to show that the Director approved the transaction rather than the user who recorded the approval in TFRS so that we are communicating approvals effectively.
Scenario:
GIVEN that I am an IDIR user
AND I am entering a credit transaction using the Historical Data Entry feature
WHEN I click on Commit
AND I confirm acceptance via the confirmation alert
THEN a transaction history record is created
AND the history record reads "Approved on Month DD, YYYY by the Director under the Greenhouse Gas Reduction (Renewable and Low Carbon Fuel Requirements) Act"
AND the date included in the Transaction History entry is the Approval/Effective date rather than the date the transaction was entered into TFRS
Additional Info:
This card also applies to all existing transaction entries in Prod. Currently, the Transaction History entry says that the transaction was approved by the IDIR user who entered it into TFRS using the Historical Data Entry feature and it is effective on the date the entry was created in TFRS. These need to be adjusted (as described above) to reflect that the transactions were approved by the Director under the Act on the specified effective/approval date (rather than the date that the entry was committed in TFRS).

 Credit Transactions | Adjust the Approval Transaction History entry when using the Historical Data Entry |5|


Swift 2.0 breaking

This PR is a work in progress for the changes I wanted to include for the Swift 2.0 release, mentioned in #7.

Make the API more OO-style
Add unit tests

At the moment, this PR doesn't include some of the work currently in the swift-2.0 branch, but I hope to add that in before merging this.
This is a fair bit behind both master and swift-2.0, so I'll need to bring it forward before merging as well.
API suggestions welcome :)

Now that I think about it, making gifURL a computed property is probably not ideal since it could be a long-running operation. Will have to think it over more.


Queries fail often with  statusCodes 401 at authentication or 400 at search

I'm trying to connect to CARETS (California MLS) and sometimes the client works, sometimes not. It randomly fails with exactly the same parameters, authentication etc.
Has anyone noticed that?
The query is very simple:
 rets-client:main RETS search (streaming) { QueryType: 'DMQL2',
  Format: 'COMPACT-DECODED',
  Count: 1,
  StandardNames: 0,
  RestrictedIndicator: 'RESTRICTED',
  Limit: 10,
  Offset: 1,
  SearchType: 'Property',
  Class: 'RES',
  Query: '(ModificationTimestamp=2017-02-01T00:00:00-2017-02-20T00:00:00)' }

Debug info:
rets-client:request request: { debugId: 1,
  uri: 'CARETS_URL_HERE...',
  method: 'POST',
  headers:
   { 'User-Agent': 'CARETS-General/1.0',
     'RETS-Version': 'RETS/1.8',
     host: 'CARETS_HOST_HERE...',
     'content-type': 'application/x-www-form-urlencoded' } } +27ms
  rets-client:request auth: { debugId: 1,
  statusCode: 401,
  headers:
   { server: 'nginx',
     date: 'Tue, 28 Feb 2017 14:16:20 GMT',
     'content-type': 'text/html',
     'content-length': '0',
     connection: 'close',
     'x-copyright': 'Copyright 2017 Metropolitan Regional Information Systems, Inc., unauthorized use is prohibited.',
     'cache-control': 'private',
     'rets-version': 'RETS/1.8',
     'www-authenticate': 'Digest realm="DIGEST_REALM_HERE...", nonce="3134383832393133383030373820a6f94e5d98a7ad45eb17d3be3b90c538", opaque="6e6f742075236564"' },
  uri: 'CARETS_URL_HERE...' } +368ms

We don't have any issues with CARETS.
I'm not seeing an error in your debug info, a 401 auth challenge between requests is expected behavior.

@svenvarkel are you trying to run multiple queries simultaneously with the same credentials?  Some RETS servers limit or completely forbid that, and one of the ways they communicate that is with a 401 Unauthorized response.
Different servers can have very different behaviors regarding simultaneous logins, unfortunately.  Some prohibit the new login that would go past the limit, others invalidate an earlier session.  I've also seen various errors used to communicate this, including an HTTP 401, but also including various RETS error codes.  If you suspect this might be the problem, you should reach out to your support contact with CARETS to see if they can verify the cause of the errors you are receiving.

Thanks for quick replies!
I add some more logs here, now with the 400 error, too. I'm not trying to connect too many times etc. I have a simple test script, that uses rets-client to authenticate and make this one search and it fails randomly. I'll try to contact CARETS support to see if they can help.
Nevermind the difference in query params in this search - it acts the same weird way. Sometimes it works, sometimes it doesn't.
Logs:
rets-client:request request: { debugId: 3,
 uri: 'CARETS_URL_HERE.../cornerstone/search',
 method: 'POST',
 headers:
  { 'User-Agent': 'CARETS-General/1.0',
    'RETS-Version': 'RETS/1.8',
    cookie: 'RETS-Session-ID=120166284998',
    'content-type': 'application/x-www-form-urlencoded',
    'content-length': 279,
    authorization: 'Digest username="USERNAME", realm="****", nonce="3134383833363939313533363120cdafa88a61352c583dbbfd43a8545b6f", uri="/cornerstone/search", response="6d98b9e3287002c28665d4c3e173acc9", opaque="6e6f742075736564"',
    referer: 'CARETS_URL_HERE.../cornerstone/search',
    host: 'CARETS_HOST_HERE...' },
 body: 'QueryType=DMQL2&Format=COMPACT-DECODED&Count=1&StandardNames=0&RestrictedIndicator=RESTRICTED&Limit=10&Offset=1&SearchType=Property&Class=RES&Query=%28CARETSListingStatus%3D%7C50041200437%2C50041200438%29%2C%28StatusChangeDate%3D2017-02-01T00%3A00%3A00-2017-02-02T00%3A00%3A00%29' } +2ms
 rets-client:request response: { debugId: 3,
 headers:
  { server: 'nginx',
    date: 'Wed, 01 Mar 2017 12:05:15 GMT',
    'content-type': 'text/plain;charset=ISO-8859-1',
    'transfer-encoding': 'chunked',
    connection: 'close',
    'x-copyright': 'Copyright 2017 Metropolitan Regional Information Systems, Inc., unauthorized use is prohibited.',
    'cache-control': 'private',
    'rets-version': 'RETS/1.8' },
 statusCode: 400 } +350ms
rets-client:main RETS search (streaming) error: RETS Server error while attempting search - HTTP Status 400 returned (Bad Request) +1ms
Error streaming RETS results: RetsServerError: RETS Server error while attempting search - HTTP Status 400 returned (Bad Request)
{ RetsServerError: RETS Server error while attempting search - HTTP Status 400 returned (Bad Request)
   at Request.responseHandler (/sandbox/retsclient/node_modules/rets-client/dist/utils/retsHttp.js:70:17)
   at emitOne (events.js:101:20)
   at Request.emit (events.js:189:7)
   at Request.onRequestResponse (/sandbox/retsclient/node_modules/request/request.js:986:10)
   at emitOne (events.js:96:13)
   at ClientRequest.emit (events.js:189:7)
   at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)
   at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
   at Socket.socketOnData (_http_client.js:411:20)
   at emitOne (events.js:96:13)
   at Socket.emit (events.js:189:7)
   at readableAddChunk (_stream_readable.js:176:18)
   at Socket.Readable.push (_stream_readable.js:134:10)
   at TCP.onread (net.js:551:20)
 httpStatus: 400,
 httpStatusMessage: 'Bad Request',
 name: 'RetsServerError',
 retsMethod: 'search',
 queryOptions:
  { QueryType: 'DMQL2',
    Format: 'COMPACT-DECODED',
    Count: 1,
    StandardNames: 0,
    RestrictedIndicator: 'RESTRICTED',
    Limit: 10,
    Offset: 1,
    SearchType: 'Property',
    Class: 'RES',
    Query: '(CARETSListingStatus=|50041200437,50041200438),(StatusChangeDate=2017-02-01T00:00:00-2017-02-02T00:00:00)' },
 headerInfo:
  { server: 'nginx',
    date: 'Wed, 01 Mar 2017 12:05:15 GMT',
    contentType: 'text/plain;charset=ISO-8859-1',
    transferEncoding: 'chunked',
    connection: 'close',
    xCopyright: 'Copyright 2017 Metropolitan Regional Information Systems, Inc., unauthorized use is prohibited.',
    cacheControl: 'private',
    retsVersion: 'RETS/1.8' },
 message: 'RETS Server error while attempting search - HTTP Status 400 returned (Bad Request)' }

Thanks for posting the additional error.
Hmm.  Off the top of my head, I don't see anything wrong.  (That doesn't mean there isn't though, I could very easily be missing something.)
If you can get in touch with CARETS support, I'd be very curious to hear what they say the problem is.

Try specifying your RETS version as 1.7.2.  We're using 1.7.2 with CARETS and it appears you're using 1.8.

Thanks for tip, @esvinson! I tried with it earlier with similar results, then changed to 1.8 and if I remember correctly it worked also for some requests. Anyway, now all my requests are failing. I'll continue investigating it. Soon I'll go as deep as using wireshark and intercepting raw network requests:)

I did some more testing and I'm facing exactly the same behaviour with PMAR (Portland MLS), too. Some requests work, some fail. I'm still trying to figure out the pattern.

I now got a tiny bit of information - the  'set-cookie':
[ 'JSESSIONID=CE25F0B0CCE8562A72C3311F98FF8C5D; Path=/; HttpOnly',
'JSESSIONID=CE25F0B0CCE8562A72C3311F98FF8C5D; Path=/' ],
header DIFFERS in those cases where request fails for subsequent requests (auth, search). The JSESSIONID is the same for successful requests.

After debugging and thinking a lot about the flow I finally understood that the problem was in my implementation. I'm used to simpler promises flow than in that client. I resolved  a promise or two too early and this caused the autoLogoutClient to log out. In order to overcome that I initialize the standard client and log out manually after pulling everything I need.
Thanks to all of you for trying to help out!


[Release-1.27] - Etcd snapshot controller spews logs while waiting for nodes to annotate

Backport fix for Etcd snapshot controller spews logs while waiting for nodes to annotate

#8892

The same applies as in https://github.com/k3s-io/k3s/issues/8892#issuecomment-1830911627 but I used v1.27.8-rc1 to perform the validations.


[stable/grafana] make deploymentStrategy map type

Signed-off-by: Lukasz Dobrzanski<EMAIL_ADDRESS>
What this PR does / why we need it:
more flexible then string:

allowing to tune rollingUpdate params (main motivation)
simple and future proof

Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

@maorfr please share your feedback
lmk if like to get issue added for any discussion or got any other questions

As I understand still needs proper labels for CI to pass on

/assign @zanhsieh

/assign @maorfr

hey @lukmdo,
thanks for contributing!
this PR makes the template a bit more simple which is very nice.
on the other hand, it just passes yaml from the template and into the values.yaml file, which is something that i think we should avoid.
since this is a really small change, if you think that this way is better i will approve this PR.
what do you think?

Hi @maorfr , @zanhsieh . Good point and I am not in rush here.
I know that other spec vars use same approach of yaml embedding
https://github.com/helm/charts/blob/f821e55fa459962cf83bae2570e05509539b533a/stable/grafana/templates/deployment.yaml#L291-L295
This seem pretty standard for some of definitions

git grep 'toYaml ' stable/*/deployment.yaml

Happy to work this more if you got some doubts/suggestions.
Otherwise also happy to go forward as is - your call.

/ok-to-test
/lgtm
let's push this one forward
thanks for contributing!

Hi, I'm getting a render error on deployment.yaml:
Error: render error in "grafana/templates/deployment.yaml": template: grafana/templates/deployment.yaml:22:9: executing "grafana/templates/deployment.yaml" at <ne .Values.deploymen...>: error calling ne: invalid type for comparison


Support half-[x] correctly

There should be support for !name half-elf male, which should be the same as !name human elf male

It's worth wondering if I should push this to 2.0.0.
This is a significant change to some of the underlying code, requiring parseRace to parse multiple races at a time, and therefore is a breaking change. If I want the codebase to be versioned ala semver, it needs to be a major release number.


Race condition with Python multiprocessing queues inside a docker container

While building a docker container for the SageMath software, we ran
into an issue involving Python's multiprocessing queues which are used
by our testing framework. The error is very systematic (always the
same three test files that fail). It very much sounds like a race
condition. However it's not clear whether the issue is in docker,
Python's mqueues, or in our usage of them in our testing framework.
Being stuck after quite some digging around we post it here in case
someone would have an idea.
Minimal steps to reproduce:
# Install docker (here for Debian / Ubuntu):
> sudo apt-get install docker.io

# Run a docker container with Sage:
> sudo docker run -t -i sagemath/sage su - sage
Last login: Thu Nov 27 15:28:05 GMT 2014
[sage@63182b1b1561 ~]$ uname -a
Linux 63182b1b1561 3.13.0-43-generic #72-Ubuntu SMP Mon Dec 8 19:35:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

[sage@63182b1b1561 ~]$ cd sage
[sage@63182b1b1561 sage-6.4.1]$ ./sage -v
Sage Version 6.4.1, Release Date: 2014-11-23

[sage@63182b1b1561 sage-6.4.1]$ cat > bla.py << EOF
> r"""
>         sage: from sage.interfaces.qsieve import qsieve
>         sage: q = qsieve(next_prime(10^20)*next_prime(10^21), block=False)
> """
> EOF

[sage@63182b1b1561 sage-6.4.1]$ ./sage -t --verbose bla.py
init.sage does not exist ... creating
no stored timings available
Running doctests with ID 2015-03-04-07-53-04-191d76e2.
Doctesting 1 file.
sage -t bla.py
Trying (line 2):    from sage.interfaces.qsieve import qsieve
Expecting nothing
ok [0.00 s]
Trying (line 3):    k = 19; n = next_prime(10^k)*next_prime(10^(k+1))
Expecting nothing
ok [0.00 s]
Trying (line 5):    q = qsieve(next_prime(10^20)*next_prime(10^21), block=False)
Expecting nothing
ok [0.23 s]

Trying (line 6):    sig_on_count()
Expecting:
    0
ok [0.00 s]
1 item passed all tests:
   4 tests in bla
4 tests in 1 item.
4 passed and 0 failed.
Test passed.
Process DocTestWorker-1:
Traceback (most recent call last):
  File "/home/sage/sage-6.4.1/local/lib/python/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/home/sage/sage-6.4.1/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1839, in run
    task(self.options, self.outtmpfile, msgpipe, self.result_queue)
  File "/home/sage/sage-6.4.1/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 2159, in __call__
    result_queue.put(result, False)
  File "/home/sage/sage-6.4.1/local/lib/python/multiprocessing/queues.py", line 102, in put
    raise Full
Full
    Bad exit: 1
**********************************************************************
Tests run before process (pid=108) failed:
sage: from sage.interfaces.qsieve import qsieve ## line 2 ##
sage: k = 19; n = next_prime(10^k)*next_prime(10^(k+1)) ## line 3 ##
sage: q = qsieve(next_prime(10^20)*next_prime(10^21), block=False) ## line 5 ##
sage: sig_on_count() ## line 6 ##
0

**********************************************************************
----------------------------------------------------------------------
sage -t bla.py  # Bad exit: 1
----------------------------------------------------------------------
Total time for all tests: 0.4 seconds
    cpu time: 0.0 seconds
    cumulative wall time: 0.0 seconds
[sage@63182b1b1561 sage-6.4.1]$ logout

Various things we tried:

Running the same thing under LXC: works smoothly

Adding a micro delay in our testing framework before the failing
line: works smoothly. Same thing if we query anything about the
queue, like asking if it's empty.

Running the container in privileged mode: same failure

Trying several invited OS: debian "jessie", arch linux, Ubuntu: same
failure

Tweaking the parameters of the docker daemon to chose a different
storage driver: with archlinux we tried: devicemapper, overlay,
btrfs (on a dedicated partition). On mac with boot2docker: aufs.
Same failure

Checking the resource limits: running lpcs -l reported no real
difference

Toying around with /dev/shm (in privileged mode): size up to 2GB,
owner, permissions: same failure

Help, pointers, suggestions most welcome.
Cheers,
Nicolas
References:

Sage ticket: http://trac.sagemath.org/ticket/17924
Discussion on Sage's mailing list: https://groups.google.com/d/msg/sage-devel/8hWBzBMjKXI/5DfW8H3nKbAJ

PS 1: thanks for the hard work on docker; it's really handy!
PS 2: all the actual testing and exploring work was done by Vincent Neri.
PS 3: I am attending PyCon 15 until Friday 17th
/cc @hivert @rgbkrk @jpetazzo

I'm not familiar with SageMath, and I'm pretty green when it comes to docker but the OS is my realm and I need python multiprocessing to work reliably in a docker container so I've taken a quick look into this :-)
Adding some debug info (write the pid and result to a file when result_queue.put() is called from sage.docker.forker): 2 processes are calling result_queue.put()!!!
As this is a multiprocessing.queue.Queue with size==1 raising a queue.Full exception is definitely the correct behaviour. Docker and python multiprocessing are almost certainly not the culprits (at least not directly).
Next, it's interesting that this works:
r"""
        sage: from sage.interfaces.qsieve import qsieve
        sage: q = qsieve(next_prime(10^20)*next_prime(10^21), block=True)
"""

Peeking at the source: If block==True then a different sage.interfaces.qseive implementation using os.popen() is used, if not then an implementation using pexpect.spawn is used... so it looks like a problem with the interaction of sage.doctest.forker and pexpect.spawn.
I also can see that it's using pexpect v2.x. In 2.x, pexpect.spawn() ignores SIGHUP (this is an option since v3.0 that defaults to True). I can also see that sage.doctest.forker uses SIGHUP to gracefully signal a child process to exit.
Upgrading to pexpect 3.x and modifying qseive to pass ignore_sighup=False to pexpect.spawn() may resolve the issue.
Also interesting is that this works:
r"""
        sage: from sage.interfaces.qsieve import qsieve
        sage: q = qsieve(next_prime(10^20)*next_prime(10^21), block=False)
        sage: q.quit()
"""

q.quit() sends a SIGKILL to the pexpect.spawn  child process. Maybe this should always be done when disregading the qseive result. I donno - as I said, no experience with SageMath until now.
What I really can't figure out yet is, regardless of the pexpect.spawn/sage.doctest.forker SIGHUP behaviour, why both child processes call result_queue.put()! This doesn't appear to be possible from inspecting the source!
I also don't understand why this only occurs in a docker container...
Hope this helps, or at least gives some pointers as to what's happening.

@olliewalsh Wow! Nice research, thank you.
@nthiery Would you mind take a look?

Oh wow, nice investigation indeed! Thanks so much.
I'll ping my fellow Sage dev that know better this area of the code.

Any update here?

Thanks for asking.
Following the suggestion here, some Sage dev managed to investigate and track down a race condition in our usage of Python's multiprocessing queue (which are used simultaneously by our test system and some functions being tested). There remain two similar issues that need to be tracked down. For details, see: http://trac.sagemath.org/ticket/17924
By the way: @embray mentionned to me the other day that they had encountered issues with a similar smell when running astropy under docker. So somehow running code using Python multiprocessing queues under Docker seems to be putting some specific pressure on it.
It might be good to better understand this phenomenon even if it does not seem to be a Docker issue per se. I let you decide if you want to close this issue or not at this point.

Maybe it's a matter of having more resources available (or rather fewer default restrictions, as is the case with ulimit, probably).

Didn't look like a limits issue. I'm guessing signals are delayed ever so slightly when running within a container, which has exposed a race condition

Thanks @cpuguy83  and @olliewalsh for the insight.
We indeed checked the resource limits and they were almost identical with and without docker, and among the many experiments Vincent Neri tried, I am pretty sure he had some with thighter limits outside docker, and this did not trigger the issue.

@nthiery @olliewalsh I see http://trac.sagemath.org/ticket/17924 is closed, is this ok to be closed?


fix: fix invalid justfile include paths

Fixes #120
I tested this locally to ensure the resulting paths are correct. Should be good to go.

@KyleGospo @EyeCantCU
FYI - i'm working through a rebuild of main, nvidia, AND bazzite as this is breaking bazzite's yafti/portal pretty badly. (that's how I found it)


Unexpected Error Creating Device

My Panasonic Aircond works fine, until the few days back it show error on homeassistant, then i try to reconfigure again it comes such error. can guide what goes wrong?

@Elanges what version are you running?
Since last week's API update, you need v1.0.32

Did you install it using HACS or manually?

using HACS

Then just go to HACS and see if it shows any updates for Panasonic Comfort Cloud

ok will try and see thanks.

Hi @sockless-coding
Same issue there in v1.0.35 while trying to fill Panasonic ID and password.
Any change through Panasonic API ?

I believe this should be solved now.


I can't find this messaging:didRefreshRegistrationToken: in FIRMessagingDelegate

I am using Cocoapods to install pod 'Firebase/Messaging'. The installed pod version is 3.17.0. I have looked in the header file FIRMessaging.h. There is no messaging:didRefreshRegistrationToken: which mentioned in the document: https://firebase.google.com/docs/cloud-messaging/ios/client#monitor-token-generation
Did I not install the latest version?

The newest version is 4.x. Run pod update and make sure your Podfile isn't pinning Firebase to 3.x.