gym: use libcurl to access Apple APIs

New Issue Checklist

[x ] Updated fastlane to the latest version
[x ] I have read the Contribution Guidelines

Issue Description
Currently the connections to the Apple APIs fail when using the system provided ruby on OSX.
This is because the Apple APIs require TLS 1.2 which the system ruby with its system openssl can't provide.
There are various reports for this issue.
One possible solution would be to switch the backend of faraday (the HTTP library used in gym) to a libcurl based one. The system libcurl is linked to the Apples TLS library which supports TLS 1.2 is kept up to date via normal system updates.
Switching the backend should not require any other code changes to other parts of gym.
There seem several libcurl based backends included in faraday and probably more available.
I tried two and ran into different errors which were not trivially fixable by me (a non-ruby, non-OSX person).
Would this be something the fastlanes devs would be willing to explore or to accept a contribution for?
✅ fastlane environment ✅
Stack

Key
Value

OS
10.12.4

Ruby
2.0.0

Bundler?
true

Git
git version 2.8.4 (Apple Git-73)

Installation Source
/private/var/lib/jenkins-slave/fastlane/vendor/bundle/ruby/2.0.0/bin/fastlane

Host
Mac OS X 10.12.4 (16E195)

Ruby Lib Dir
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib

OpenSSL Version
OpenSSL 0.9.8zc 19 Mar 2015

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
8.0

System Locale

Variable
Value

LANG

LC_ALL
en_US.UTF-8
✅

LANGUAGE

fastlane files:
No Fastfile found
No Appfile found
fastlane gems

Gem
Version
Update-Status

fastlane
2.26.1
💥 Check failed

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

bundler
1.13.2

CFPropertyList
2.3.5

i18n
0.8.1

minitest
5.10.1

thread_safe
0.3.6

tzinfo
1.2.3

activesupport
4.2.8

public_suffix
2.0.5

addressable
2.5.1

babosa
1.0.2

claide
1.0.1

colored
1.2

colored2
3.1.2

highline
1.7.8

commander-fastlane
4.4.4

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20170404

dotenv
2.2.0

excon
0.55.0

multipart-post
2.0.0

faraday
<IP_ADDRESS>

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

faraday_middleware
<IP_ADDRESS>

fastimage
2.1.0

gh_inspector
1.0.3

jwt
1.5.6

little-plugger
1.1.4

multi_json
1.12.1

logging
2.2.2

memoist
0.15.0

os
0.9.6

signet
0.7.3

googleauth
0.5.1

httpclient
2.8.3

hurley
0.2

mime-types-data
3.2016.0521

mime-types
3.1

uber
0.0.15

representable
2.3.0

retriable
2.1.0

google-api-client
0.9.28

json
2.0.4

mini_magick
4.5.1

multi_xml
0.6.0

plist
3.2.0

rubyzip
1.2.1

security
0.1.3

slack-notifier
1.5.1

terminal-notifier
1.7.1

unicode-display_width
1.1.3

terminal-table
1.7.3

tty-screen
0.5.0

word_wrap
1.0.0

nanaimo
0.2.3

xcodeproj
1.4.4

rouge
1.11.1

xcpretty
0.2.6

xcpretty-travis-formatter
0.0.4

generated on: 2017-04-12

I don't think it will be easy and feasible to migrate all the code to use a different HTTP client. However maybe we can find a different way to make it work? We definitely want to fix the installation out of the box

Gym already uses faraday.
Maybe this was not clear enough :-)
Only the configured backend would have to change.

Not sure what you mean. The backend is provided by Apple, or what backend do you mean?

@KrauseFx i think @t-8ch means that you can change the network adapter in faraday. https://github.com/lostisland/faraday/blob/master/lib/faraday/adapter.rb
@t-8ch which of the available adapters was the one that worked best for you?

After some research it seems the only officially supported backend seems to be patron.
I did not get it to work easily though. (Not a ruby/OSX guy).
I am willing though to get it to work properly if there is interest of adding it to the fastlane testmatrix, so I can be sure that it keeps working.
(The fixing would take place in the faraday/patron adapter, fastlane will still only have to change on line)

To make the bot happy:
I am still willing to implement libcurl support if it gets added to the automated tests of fastlane to make sure it keeps working.

Hey @t-8ch! Thanks for offering to implement that support. I think a good workaround for now might be to use the homebrew-installed version of fastlane (brew cask install fastlane) as that comes with it's own bundled version of ruby so we don't have to worry about what the system ruby can do.
I am going to close this issue for now as it seems like it's not something we want to do at the moment but we will reopen the issue if it comes up again and please feel free to continue discussion if you would like to talk about it some more! 🚀


Task - Long task description is truncated in chat and overlapped by expand button

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

Issue found when executing PR https://github.com/Expensify/App/pull/23246
Action Performed:

Navigate to staging.new.expensify.com and log in
On the home screen, open a any report
Create a task with a long description
Open task detail and then go the the chat view

Expected Result:
Task details must be fully visible in chat and details view
Actual Result:
Long task description is completely truncated in chat and overlapped by expand button
Workaround:
Unknown
Platforms:

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

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

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/78819774/4f5b5ed2-e8c6-4264-9cc2-5b695bf1d841

Expensify/Expensify Issue URL:
Issue reported by: Applause - Inernal Team
Slack conversation:
View all open jobs on GitHub

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

Identify the pull request that introduced this issue and revert it.
Find someone who can quickly fix the issue.
Fix the issue yourself.

Proposal
Please re-state the problem that we are trying to solve in this issue.
Task - Long task description is truncated in chat and overlapped by expand button
What is the root cause of that problem?
We have not added the styles for MenuItemWithTopDescription to wrap the text in TaskView component.
What changes do you think we should make in order to solve the problem?
We can create a new style (that involves giving word break and maxWidth)for wrapper -
    taskDescriptionMenuItemWrapper: {
        maxWidth: '100%',
        ...wordBreak.breakWord,
    },

And add that for wrapper style in MenuItemWithTopDescription in TaskView
wrapperStyle={[styles.pv2,styles.taskDescriptionMenuItemWrapper]}

Result

What alternative solutions did you explore? (Optional)

@namhihi237 @stitesExpensify @mananjadhav  this seems like this is a regression from PR you have worked on, can you have a look?

Yes @mountiny. I'll comment on the issue.

approved the PR in question

@namhihi237 can you left a comment so I can assign you?

Chatting with @bondydaa here we are going to drop the Deploy Blocker label from this one because the regression is extremely minor and the follow up fix can go out with the regularly scheduled deploys.

This is a regression issue and there won't be any payout as reporting is also Internal QA.

@mallenexpensify We can close this one out.

@mallenexpensify quick bump

@mallenexpensify friendly reminder


MSFT_SPSearchContentSource does not take StartHour parameter for schedule

Details of the scenario you try and problem that is occurring:
For a Sharepoint source, when setting a StartHour different from 0 in a content source crawl schedule not warning or error is issued, but the start hour remains 0:00.
The DSC configuration that is using the resource:
SPSearchContentSource LocalSharePointSites
{
Name                 = "Local SharePoint Sites"
ServiceAppName       = "Search Service Application"
ContentSourceType    = "SharePoint"
Addresses            = @("http://sharepointsite1.contoso.com", "http://sharepointsite2.contoso.com")
CrawlSetting         = "CrawlEverything"
ContinuousCrawl      = $false
IncrementalSchedule  = MSFT_SPSearchCrawlSchedule{
ScheduleType = "Daily"
StartHour = "6"
StartMinute = "0"
CrawlScheduleRepeatDuration = "1440"
CrawlScheduleRepeatInterval = "5"
}
FullSchedule         = MSFT_SPSearchCrawlSchedule{
ScheduleType = "Weekly"
CrawlScheduleDaysOfWeek = @("Monday", "Wednesday", "Friday")
StartHour = "5"
StartMinute = "0"
}
Priority             = "Normal"
Ensure               = "Present"
PsDscRunAsCredential = $SetupAccount
}
Version of the Operating System and PowerShell the DSC Target Node is running:
OS: Windows Server 2016
PSVersion                      5.1.14393.2363
Version of SharePoint that is used (e.g. SharePoint 2016):
Sharepoint 2016
Version of the DSC module you're using:
2.3

I was able to solve this issue, but I must admit that I am a newbie regarding the pull request process...
So here it is. From what I was able to understand, the StartHour parameter is correctly checked in the test Get-SPDSCSearchCrawlSchedule.psm1 module.
The issue seems to be in the MSFT_SPSearchContentSource.psm1, as in its Set-TargetResource function there is never the parameter CrawlScheduleStartDateTime which is required by the sharepoint powershell cmdlet Set-SPEnterpriseSearchCrawlContentSource to had a start hour to the schedule.
So here is my (probably dirty) fix:
Between the line 519 and 520 I added the following:
```
$propertyTest = Test-SPDSCObjectHasProperty -Object $params.IncrementalSchedule `
-PropertyName "StartHour"
if ($propertyTest -eq $true)
{
$incrementalSetArgs.Add("CrawlScheduleStartDateTime",
"$($params.IncrementalSchedule.StartHour):$($params.IncrementalSchedule.StartMinute)")
}

And between the line 595 and 596 I added the following code:
               ```
 $propertyTest = Test-SPDSCObjectHasProperty -Object $params.FullSchedule `
                                                            -PropertyName "StartHour"
                if ($propertyTest -eq $true)
                {
                    $fullSetArgs.Add("CrawlScheduleStartDateTime",
                        "$($params.FullSchedule.StartHour):$($params.FullSchedule.StartMinute)")
                }

This fixed my issue.

Ok, so I read the rules for contributing, and I hope I did not make any mistakes in my pull request:

Hi @adruet29, thanks for your work investigating and fixing this issue. I will let the Unit tests run and will review once completed.

Fixed by PR #842


Random Options

Is your feature request related to a problem? Please describe.
Just to preface, this isn't a major issue, so I don't mind if it's something that's never done or is put on the back burner, especially since I'm sure you're working on the Godot 4 port. Either way, thank you for this awesome plugin!
But on to the request, I thought it would be very useful if there was a way similar to the response system to have a random option selected out of a set of options, preferably with a way to add weight to which is selected. For examples of this, you could have a character that you want to greet you with a few random greetings (Hi, Hello, Heyo, etc), or a quest giving character give you different random quests (clear x area of enemies, fetch x item, another settlement needs your help, etc), or the player can be doing something with a few possible outcomes (critical success, success, fail, critical fail, etc).
There is a way to do this already that I'll list in the alternatives section, but it's nowhere near as elegant/streamlined as the response system. Also, if you want a better idea of what I'm talking about, most Paradox games (CK2/CK3, Stellaris, etc) make HEAVY use of this in their event systems, both for which events may happen, and for what may happen for a event response you choose.
Describe the solution you'd like
Like I said, something along the lines of the response system would likely be the most intuitive, most likely with a different symbol than the hyphen/dash (-). Possibly the percent sign (%), though I don't know if that's used in variable or condition processing and if that would interfere. Then if you wanted the randomization to be weighted, you could just put a number after the symbol for that option's weight, or leave it at just the symbol for a default weight(1 I would assume, though you could also create an option for people to change it in the dialogue editor settings).
Default weight example:
% Option 1, 33 percent chance
% Option 2, 33 percent chance
% Option 3, 33 percent chance
For this, each option has the same weight (i.e. 1) so each option has a 1/3 chance of being chosen.
Weighted example:
%1 Option 1, 10 percent chance (This would also be the same as "% Option 1, 10 percent chance", if default weight is 1)
%3 Option 2, 30 percent chance
%6 Option 3, 60 percent chance
For this, the total of the weights added together (1 + 3 + 6) equals 10. Option 1 has a weight of 1, so it has a 1/10 (10%) chance of being selected, option 2 has a weight of 3, so it has a 3/10 (30%) chance of being selected, and option 3 has a weight of 6, so it has a 6/10 (60%) chance of being selected.
Describe alternatives you've considered
The way I would do it at the moment, would be to use a method to get which option it would be, then if and elif conditions. And while this isn't difficult, it can get tedious, with having to make you add the weight for each new option, or if you have several options with some having the same weight it could be annoying if you want to change one of the weights (i.e. 1, 3, 3, 3, 6).
Example:
do weightRandom([1, 3, 6]) (sets a variable named random in a global used by Dialogue Manager)
if random == 1:
Option 1, 10 percent chance
elif random == 2:
Option 2, 30 percent chance
elif random == 3:
Option 3, 60 percent chance

Something like this has been on my list of a while. I'm still figuring out a syntax that I'm happy with but this will most likely be something added in version 2.

I've added random chunks in a single line but the weighted random line thing is still on my radar for the near future.


Prometheus metrics added

Closing #93 and #97
Added https://github.com/fluent/fluent-plugin-prometheus by default on port 24231

Howdy, any support needed? lgtm

@gitirabassi can you rebase to fix the conflicts?
@repeatedly can we get this reviewed? A lot of people are interested in prometheus support 😃

@repeatedly there have also been 2 other PRs to try and address this: https://github.com/fluent/fluentd-kubernetes-daemonset/pull/96 https://github.com/fluent/fluentd-kubernetes-daemonset/pull/97

Currently, v0.12 images are outedated so no need to apply changes to v0.12 images.
In addition, this PR has only prometheus input plugin. Is it enough?

@repeatedly it seems this PR might be dead. I will make a new one. A question though: is it possible to enable/disable plugins based on an env var? Because it would be nice to have prometheus support optional but easy to enable.

@max-rocket-internet Currently, no envver based if in configuration syntax but we can use @include approach to emulate it.
https://github.com/fluent/fluentd-kubernetes-daemonset#disable-systemd-input
https://github.com/fluent/fluentd-kubernetes-daemonset/blob/6fa634a8dd02daf826b5a914fddd8b2cbed5aba4/templates/conf/fluent.conf.erb#L8
@include ignores error when target file is missing.

OK good idea @repeatedly, thanks! See here: https://github.com/fluent/fluentd-kubernetes-daemonset/pull/287


Fetching a oneof doesn't return the default value (when not set)

The fields in a oneof are just fields.  So fetching it should still return the default value even when the oneof was set to a different element.
This also allows proto authors to modify a proto by moving a field into a oneof in the future.  From a wire format pov, nothing changes.

I think your comment only applies to proto3?
In proto2, oneof fields are optionals, and we map proto2 optionals to Swift optionals, so the default value in that case is nil.
Oh.  I suppose proto2 optionals can have explicit default values?  I don't think I've seen that case, but that would make sense as well.

You can also have a message in the oneof, so returning the default there to dot into the default fields also is useful.

You can also have a message in the oneof, so returning the default there to dot into the default fields also is useful.

Yes, good point.  Are there examples of this in the google/protobuf/unittest_* protos?  If so, then it should be easy to fill in some tests for these cases.

Yup - https://github.com/google/protobuf/blob/master/src/google/protobuf/unittest.proto#L177

PR #119 added tests to confirm this got fixed in PR #102


Add Quadratic Bezier drawing

Beziers in most graphics environments take 3 points for a finer control of the direction of the curve.

@epsilon-phase Thanks for the addition! Just note I'm reviewing parameters order...


Add unit test to test retry mechanism if sync poll API fails due to some reason

Describe the Issue
Add https://github.com/google/android-fhir/pull/1166
Would you like to work on the issue?

Closing as poll API no longer exists


README Adjustments

README Adjustments per ticket https://github.com/kelseyhightower/confd/issues/402.  The noted changes are how I have had to install confd with the new vendor plugins, etc.  Please feel free to adjust where needed.

Thanks! I adopted this and pushed some changes up to master in https://github.com/kelseyhightower/confd/commit/6386163046ddad465498d6e002bd8e5ab3748365. The reason why I don't want to recommend this approach is because go get will fetch the dependencies from their respective master branches and dump them all in your $GOPATH. Since we already have a vendor/ directory with all our dependencies anyways, it's better to git clone and run ./build instead, which is a simple script that runs go build -o bin/confd . sanely. Running go get && go build/install will use the dependencies fetched from master, which could be in a broken state in comparison to the vendored dependencies.
Thank you very much for your help!

@bacongobbler awesome, and thanks for the explanation!  I haven't used the vendor folder for any projects yet...so knowing the difference between a straight git clone via go get is extremely beneficial.


perf: do not build object files of imports when linking executable

For some reason, linking the C files directly seems to cut the Lake's build time of such executables in half.
If I may ask, @Kha, is there something about leanc/clang that makes this more efficient? Or is this likely some bottleneck in Lake that I am missing?

What do you mean by this?

A .c file should not be recompiled if its .lean file didn't change. IIRC for Lean itself, compiling .c files is ~3x as expensive as compiling .lean files, so this is a pretty important optimization. See also in the linked thread: "So the C compilation overhead really is the largest by far, but we should assume it is mostly avoided when recompiling."

leanc was contributing half the overhead

of linking, i.e. 50% of 5%

@Kha

leanc was contributing half the overhead

of linking, i.e. 50% of 5%

Yes, in that case. But I was wondering if something similar was happening here. I imagine that 50% overhead was largely a start-up cost (as leanc does very little actual processing). Thus, that start-up cost could also be producing the major performance penalty observed in individually compiling object files.

This should be easy to find out, no? Take your leanc invocation with N .c files and change it to e.g. xargs -n1, then compare.

@Kha From my testing, it does appear that leanc is introducing some overhead (though the difference is much smaller than what appeared here -- most of this performance gain was due to accidently not passing -O3 & -DNDEBUG). Unfortunately, Lake cannot currently bypass leanc because Lake does not have access to the internal flags leanc uses to invoke the bundled compiler.

Yeah, we could restructure Leanc and expose them. Though it would be good to have some measurements first.


How to set auth cookie in order to invoke REST endpoint with RESTler

I'm trying to invoke RESTler in test mode using the command dotnet Restler.dll test --grammar_file Compile/grammar.py --dictionary_file Compile/dict.json  but I'm getting the following error:
network.testing file:
	Request: 1 (Remaining candidate combinations: 1)
	Request hash: 72f947bd14a4dff2e61690b863ba904452f280e8
		- restler_static_string: 'GET '
		- restler_static_string: '/'
		- restler_static_string: 'api'
		- restler_static_string: '/'
		- restler_static_string: 'provider'
		- restler_static_string: '/'
		- restler_static_string: 'v1'
		- restler_static_string: '/'
		- restler_static_string: 'provider-profile-settings'
		- restler_static_string: '/'
		- restler_static_string: 'pr_49Xo9rsSSU6m0kPYG-ynpx'
		- restler_static_string: '/'
		- restler_static_string: 'specialties'
		- restler_static_string: ' HTTP/1.1\r\n'
		- restler_static_string: 'Accept: application/json\r\n'
		- restler_static_string: 'Host: localhost\r\n'
		- restler_static_string: '\r\n'
2021-08-19 13:36:25.542: Sending: 'GET /api/provider/v1/provider-profile-settings/pr_49Xo9rsSSU6m0kPYG-ynpx/specialties HTTP/1.1\r\nAccept: application/json\r\nHost: localhost\r\nContent-Length: 0\r\nUser-Agent: restler/8.0.0\r\n\r\n'
2021-08-19 13:37:28.331: Received: 'HTTP/1.1 401 Unauthorized\r\nCache-Control: no-cache, no-store, must-revalidate\r\nPragma: no-cache\r\nExpires: -1\r\nMachine: PCHEN-VM\r\nSet-Cookie: ABG=bd629ab8-0a40-49c2-be64-ec4686a3c0f0; expires=Fri, 31-Dec-9999 23:59:59 GMT; path=/\r\nSet-Cookie: firstTimeVisitor=ecb0c596-855d-4e30-819e-c1d7bb0726a4; expires=Fri, 31-Dec-9999 23:59:59 GMT; path=/\r\nSet-Cookie: bsid=2f2be8b8eb074ccca6321aea75936bbb_2108191736; expires=Fri, 31-Dec-9999 23:59:59 GMT; path=/\r\nSet-Cookie: 1910D65B7BC74F23BC8FE7ACD9AEC709=set; expires=Fri, 31-Dec-9999 23:59:59 GMT; path=/\r\nSet-Cookie: abfp=; path=/\r\nSet-Cookie: originalReferrer=NONE; expires=Fri, 31-Dec-9999 23:59:59 GMT; path=/\r\nSet-Cookie: mostRecentReferrer=NONE; expires=Fri, 31-Dec-9999 23:59:59 GMT; path=/\r\nX-zd-session-stats: read 0b, write 0b, attempts blocked 0\r\nDate: Thu, 19 Aug 2021 17:37:28 GMT\r\nContent-Length: 0\r\n\r\n'

I've added an auth cookie to the restler_custom_payload_header attribute of the custom-header.json file. I've replaced the session id and the auth tokens with placeholders:
custom-header-.json:
  "restler_fuzzable_string": [
    "fuzzstring"
  ],
  "restler_fuzzable_string_unquoted": [],
  "restler_fuzzable_datetime": [
    "2019-06-26T20:20:39+00:00"
  ],
  "restler_fuzzable_datetime_unquoted": [],
  "restler_fuzzable_uuid4": [
    "566048da-ed19-4cd3-8e0a-b7e0e1ec4d72"
  ],
  "restler_fuzzable_uuid4_unquoted": [],
  "restler_fuzzable_int": [
    "1"
  ],
  "restler_fuzzable_number": [
    "1.23"
  ],
  "restler_fuzzable_bool": [
    "true"
  ],
  "restler_fuzzable_object": [
    "{ \"fuzz\": false }"
  ],
  "restler_custom_payload": {},
  "restler_custom_payload_unquoted": {},
  "restler_custom_payload_uuid4_suffix": {},
  "restler_custom_payload_header": {
	  "cookie": ["ABG=52e5edeb-1812-442f-a129-22ef48b18158; firstTimeVisitor=37a63c54-ba6e-4b08-91aa-335a5f7c95af; 1910D65B7BC74F23BC8FE7ACD9AEC709=set; abfp=1; originalReferrer=NONE; IsStaff=1; ap=5433; ki_r=; ki_t=1626704030428;1627505904238;1627505904238;5;12; ASP.NET_SessionId=<SESSION ID VALUE>; .ASPXAUTH=<COOKIE VALUE>; JWTv2=<JWT VALUE>; xsrf=u8Xu8AkdCkWV8jl2akE3wQ; entityId=1; ClientTimeZone=-240; ClientTimeZoneName=America/New_York; li=t; bsid=18bd97d3638242f2ad4dd08a367c9705_2108191409; ImpersonationPracticeId=2383"]
   }
}

The endpoints I'm trying to call are listed in a swagger file. The auth token works when the endpoint is called from postman, but for some reason I'm getting an error when trying to call the endpoint using RESTler. What is the correct manner/format in which to provide the auth cookie for RESTler to work?

Hello @loremIpsum1771,
You need to use this dictionary with the cookie defined when you compile.  Then, the grammar will have the injected header.  It cannot be specified only at engine time.  (You can still change the values of the cookie in the dictionary without recompiling).
Thanks,
Marina

I want to know why this cookie will change when I set this cookie?

Hello @LJianCode,
Could you please clarify your question?  Are you asking how the dictionary mechanism in RESTler works, or are you getting an error?
Thanks,
Marina


Date input a11y

Summary
A11y improvements for DateInput and DateInputField!

Proper labels and descriptions for each control.
Proper grouping of controls.
Aria-live reading of the date value.
Updated translations for better L10N and to support the A11Y improvements.
Re-using the AccessibleValue and AccessibleInput private components from time-input
Interactive doc tests added: play with the settings to see the components in action!

TODOs (I'm working on these right now)

Translations, in progress.
WDIO tests.

Deployment Link
TBD
Testing
I wrote two test harnesses and manually tried all the prop combos I could think of. I will add additional tests soon.

For the record, that last commit was also feedback from @supreethmr! My brain shorted out when I added the commit msg.


Add sampleId for Feature record

Necessary to support https://github.com/bigdatagenomics/adam/pull/2051

Fixed by #167


Fix LockedLogOutput &operator<<(const T &x) function for Emscripten builds at Logger.hxx

Resolved


Remove the usage of Merge to allow typescript to infer types better with generics

I fixed this and published the latest version, but I forgot to push lol


Query export fails if utterances not encoded

When you export a CSV of a phone query before utterances are encoded, it errors out as utterances are referenced in the code.

Nice catch..

Seems to be not replicable(not sure what fixed it however)


fix(prost-types): Parse timestamp with long second fraction

chrono is able to parse timestamps which are more precise then nanoseconds. We can also do that but truncating the digits.

@mumbleskates I found this one while fuzzing against chrono

nice! i haven't gotten around to looking at Duration yet but i was thinking about doing it this weekend, eager to take a look.

oh i see you're also parsing directly with chrono! i will try that also.

Hmm. What fuzzing condition did you enforce with this? There are so many differences between how this library parses dates (esp. the year) and how chrono does it that it's hard to assert that we parse a superset. did you just check that strings that parse with both libraries are equivalent?

This is the fuzzing test I executed: https://github.com/caspermeijn/prost/commit/8dd7f4afb8126e398ae2fa0ada665f66bfe6843a
I will PR that at a later time, as fuzzing is currently broken on master: #1107


Add Namada chain

This PR adds the Namada chain

CI is gonna be blocked on this pr https://github.com/informalsystems/cosmos.nix/pull/192 (I broke CI for PR's from forks, due to the way github's OIDC / token permissions work.

Thank you so much for the support Jon 🙏


Update Visual Studio references - round 2

Lots of whitespace removal - recommend viewing diff in CodeFlow.
Preview URLs:
Dev Command Prompt
Get started with ink...
Emit assembly VB error
VB errorreport

@BillWagner Thank you Bill!


php7: Allow for additional php7.debian build tag

The additional php7.debian build tag allows Go-PHP to be built against PHP7 on Debian (and Debian-derived, such as Ubuntu) distributions. This additional build tag is required due to the non-standard include and library file locations.
Relates-To: #26

This doesn't actually fix the issue, but needs to be applied for #28 to be applied as well.

Looks good, lets go!

Merging this and waiting for #28 to clear before merging.


Update Composer dependencies (2022-04-13-00-13)

Visual regression test passed!
View the visual regression test report


[Bug]: Error while installing : services "dev-neo4j" already exists

Contact Details
<EMAIL_ADDRESS>What happened?
I have the following override

nameOverride: neo4j neo4j:   name: neo4j   edition: "enterprise"   acceptLicenseAgreement: "yes"   password: "mainstreet"   resources:     cpu: "1000m"     memory: "4Gi" volumes:   data:     mode: "defaultStorageClass" services:   admin:     enabled: false   neo4j:     spec:       type: ClusterIP

myrepo is a JFrog artifactory where I had uploaded the standalone chart
`
helm install dev myrepo/neo4j-standalone -f fsp-charts/fss-dev.yaml --debug
install.go:200: [debug] Original chart version: ""
install.go:217: [debug] CHART PATH: /home/samanta/.cache/helm/repository/neo4j-standalone-4.4.21.tgz
client.go:134: [debug] creating 8 resource(s)
Error: INSTALLATION FAILED: 1 error occurred:
* services "dev-neo4j" already exists
helm.go:84: [debug] 1 error occurred:
* services "dev-neo4j" already exists
INSTALLATION FAILED
main.newInstallCmd.func2
helm.sh/helm/v3/cmd/helm/install.go:147
github.com/spf13/cobra.(*Command).execute
github.com/spf13/cobra@v1.6.1/command.go:916
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/cobra@v1.6.1/command.go:1044
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/cobra@v1.6.1/command.go:968
main.main
helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
runtime/proc.go:250
runtime.goexit
runtime/asm_amd64.s:1598
`
However I see all the k8s objects are created
kubectl get all | grep neo4j
pod/dev-neo4j-0                              1/1     Running   0          4m45s
service/dev-neo4j              ClusterIP   <IP_ADDRESS>           7687/TCP,7474/TCP,7473/TCP   4m45s
statefulset.apps/dev-neo4j   1/1     4m45s
k8s: v1.28.4
helm: v3.12.3
Chart Name
Neo4j Cluster (v4.4.x)
Chart Version
4.4.21
Environment
Local Machine
Relevant log output
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Looks like the chart is generating two Service manifests
`
Source: neo4j-standalone/templates/neo4j-svc.yaml
ClusterIP service for bolt / http connections
apiVersion: v1
kind: Service
metadata:
name: "dev-neo4j"
namespace: "default"
labels:
helm.neo4j.com/neo4j.name: "neo4j"
app: "neo4j"
helm.neo4j.com/instance: "dev-neo4j"
helm.neo4j.com/service: "default"
spec:
publishNotReadyAddresses: false
type: ClusterIP
selector:
app: "neo4j"
helm.neo4j.com/instance: "dev-neo4j"
ports:
- protocol: TCP
port: 7687
targetPort: 7687
name: tcp-bolt
- protocol: TCP
port: 7474
targetPort: 7474
name: tcp-http
- protocol: TCP
port: 7473
targetPort: 7473
name: tcp-https
Source: neo4j-standalone/templates/neo4j-loadbalancer.yaml
Service for applications that need access to neo4j
apiVersion: v1
kind: Service
metadata:
name: "dev-neo4j"
namespace: "default"
labels:
helm.neo4j.com/neo4j.name: "neo4j"
app: "neo4j"
helm.neo4j.com/service: "neo4j"
spec:
type: "ClusterIP"
sessionAffinity: None
ports:
- protocol: TCP
port: 7474
targetPort: 7474
name: http
- protocol: TCP
port: 7473
targetPort: 7473
name: https
- protocol: TCP
port: 7687
targetPort: 7687
name: tcp-bolt
selector:
app: neo4j
helm.neo4j.com/instance: dev-neo4j
`

Fixed it by disabling neo4j service in the override. I understand that the helm doc mentions
A LoadBalancer Service for external Neo4j driver applications and Neo4j Browser
I think the value for type should not be exposed for override, if its only for LoadBalance type

@soumiksamanta  thanks for raising the issue.
Yes , the neo4j service type is of loadbalancer type however to provide more flexibility and options to the user we have exposed the type which is set to default "LoadBalancer"
the helm chart by default gives you a service for LB type with multiCluster functionality , along with a service of ClusterIP type with just three ports.
We will keep the type expose for time being so as to give the users more flexibility.
However , we can decide in future to add an enabled flag to the default clusterIP just incase users want to use the neo4j service type as the ClusterIP


Please sort bot settings properties

Describe the bug
The properties in the bot settings don't seem to be arranged in any meaningful order. This has led to some considerable work hours being wasted because of the app password breaking tradition by preceding the app ID. At least two people have run into this problem already: https://github.com/microsoft/BotFramework-Composer/issues/3504
At a minimum, the app password should follow the app ID in accordance with the principle of least surprise. It may be worthwhile to rearrange the rest of the properties as well so that they're grouped in some logical way. It's also worth considering just arranging them all in alphabetical order, since JSON properties aren't ordered when parsed and are likely to be displayed in alphabetical order afterwards.
Version
v1.1.1
Browser

[x] Electron distribution
[ ] Chrome
[ ] Safari
[ ] Firefox
[ ] Edge

OS

[ ] macOS
[x] Windows
[ ] Ubuntu

To Reproduce
Steps to reproduce the behavior:

Go to 'Settings'
Click on 'Bot Settings'
Scroll down to the raw JSON panel
See the order of properties

Expected behavior
The MicrosoftAppId property should come before the MicrosoftAppPassword property and not after.
Screenshots

@v-kydela AppId & AppPassword are serialized next to each other. Are you not seeing this behavior on 1.1.1?

@cwhitten - I'm sorry if I wasn't clear. AppId & AppPassword are indeed serialized next to each other. The problem is not that they are separated from each other. The problem is the order.
Expected: AppId then AppPassword
Actual: AppPassword then AppId
The reason that this is important is because it results in users entering their app password as the app ID and the app ID as the app password. I know of at least three engineers who have done this so far. Hours have spent trying to figure out what went wrong, and I suspect more hours will be wasted if the order is not fixed.

Looks like we have it the standard/alphabetical way in the publishing:

It's just the settings that are different, as @v-kydela showed above.


stop main loop

how to stop main loop, because there is blocking, and and I can't call stop function, this my code
import gatt
manager = gatt.DeviceManager(adapter_name='hci0')
class AnyDevice(gatt.Device):
def services_resolved(self):
super().services_resolved()
    device_proprietary_service = next(
        s for s in self.services
        if s.uuid == 'd0cbda9a-9a69-49ab-b4d1-a96d6fbd10c6')

    psp = next(
        c for c in device_proprietary_service.characteristics
        if c.uuid == 'd0cb6c99-9a69-49ab-b4d1-a96d6fbd10c6')

psp.write_value(bytearray(b'\x0a'))
tes="\x1D\x5A\x02"
best=tes.encode()
psp.write_value(best)
kay="\x1B\x5A\x00\x4C\x08\x11\x00\x43\x44\x3A\x42\x30\x3A\x32\x31\x3A\x32\x31\x3A\x34\x30\x3A\x42\x33"
best=kay.encode()
psp.write_value(best)
def characteristic_value_updated(self, characteristic, value):
    print(str(characteristic)+", value: "+value.decode("utf-8"))

def characteristic_write_value_succeeded(self, characteristic):
    print("Write successful.")

def characteristic_write_value_failed(self, characteristic, error):
    print("Write failed. "+str(error))

class Manager(gatt.DeviceManager):
def run(self):
print("Running Manager")
super().run()
def quit(self):
print("Stopping Manager")
super().stop()
manager = Manager(adapter_name = 'hci0')
device = AnyDevice(mac_address='CD:B0:21:21:40:B3', manager=manager)
device.connect()
manager.run()
time.sleep(2)
manager.quit()

Hello, please see #28

Thank you, but this refers to KeyboardInterrupts. How can you stop() the manager via python code some seconds after calling manager.run() ?

#38
I've added a function for a timeout.


x-debug log-headers propagation and documentation

Now the log-headers request will propagate upstream even when logging is not enabled on the local box. This makes it easier to use on higher tier caches.
Also added documentation.

Does that mean that if the client sends the X-Debug header, the next tiers (if any) will also receive the request header (the current plugin behavior annoyingly removes the request so that any hierarchies do not get it.

[approve ci]

@mlibbey technically all versions (new and old) strip all xdebug request headers. The change is to re-add only the log-headers request to the upstream. The code I added early this week would only propagate it upstream if logging was enabled, which is a nuisance to enable logging on all boxes because you don't know where the message might bounce through. So now it always propagates the request to the upstream.

[approve ci autest]

[approve ci debian]


Package request: gauntlet

Project description
Raycast-inspired open-source cross-platform application launcher with React-based plugins
Metadata

homepage URL: https://github.com/project-gauntlet/gauntlet
source URL: https://github.com/project-gauntlet/gauntlet
license: mpl2
platforms: unix, linux, darwin

Note for maintainers: Please tag this issue in your PR.

Add a :+1: reaction to issues you find important.

You might need to set env.OPENSSL_NO_VENDOR = true;

Seems like there is also a pr being referenced here

@genga898 I'm the author of that PR in the Gauntlet repo. It is working for me on x86_64-linux, aarch64-darwin, and aarch64-linux. Would be great if you could test it out to confirm on your systems! Also open to moving this into nixpkgs, but I was considering contributing to Gauntlet in other ways.

The PR has been merged into Gauntlet now. So what is the general approach to adding packages to nixpkgs that already have an official derivation upstream? I haven't contributed to nixpkgs before, but I don't think using nix is possible in the build phase and it seems like other packages just copy the code over.

https://github.com/NixOS/nixpkgs/tree/master/doc Here's a link to the contributing guide

@schradert I get this error continously when trying to add it through flakes
warning: Git tree '/home/genga/nix_config' is dirty
building the system configuration...
warning: Git tree '/home/genga/nix_config' is dirty
error (ignored): error: opening directory '"/tmp/nix-build-gauntlet-v11-npm-deps.drv-1"': Too many open files
error (ignored): error: opening directory '"/nix/store/dhxc4j1nmc6hm4yqv65hlxw4lq7kddnw-gauntlet-v11-npm-deps.drv.chroot"': Too many open files
error: opening directory '"/nix/store/dw0hnr2gsxgaasaf1pd3m81njvkz3wfb-ttf-parser-0.25.1"': Too many open files

Don't really know what the issue is.

@genga898 Honestly I don't know. I didn't have that issue on any of my systems. I have encountered ulimit problems before with nix but they all required different fixes. Have you tried anything in #101459?

@genga898 Honestly I don't know. I didn't have that issue on any of my systems. I have encountered ulimit problems before with nix but they all required different fixes. Have you tried anything in #101459? Also I'll try to get the PR up here for Gauntlet in the next couple days.

Rebuild it again today with the latest commit and it was ok, took 2 and a half hours to fetch dependencies and build though


Statement => Expression

func Foo(a int) int {
  return if a > 100 {
    0
  } else {
    -1
  }
}

b := switch c {
  case 0: -1
  case 1: 1
  default: 666
}

Why? In the first case you can just write:
func Foo(a int) int {
  if a > 100 {
    return 0
  }
  return -1
}

This's IMO easier to read and it requires less space (you have one extra line).
b := switch c {
  case 0: -1
  case 1: 1
  default: 666
}

In such cases IMO it's better to define a function:
func convertCToB(c int) {
    switch c {
    case 0: return -1
    case 1: return 1
    }
    return 666
}
[...]
    b := convertCToB(c)
[...]

This function may be reused in future
The main function (where do you propose to use swtich) will be more readable.


Would you add a license?

Greetings!
I'd like to use this library in an application but am unable to until it has a license, would you consider adding a license?
I'm personally hoping for/support MIT Licensing but it is up to you of course.

It's under WTFPL, see https://github.com/meh/rust-ffmpeg/blob/master/Cargo.toml#L7


Add checks for spelling, markdown and whitespaces

Life is too short to waste for catching  those things during the review, let's have it done by computer

LGTM thanks man


JBPM-4682 Replaced performance properties for system properties in po…

…m.xml

Thanks @ibek !

Merged @ https://github.com/droolsjbpm/droolsjbpm-integration/commit/2abc0e7236738c209441384b76a7589baa07b14a


[core] Introduce InPredicateVisitor to refactor Predicate handle

Purpose

Linked issue: close #xxx
from: https://github.com/apache/paimon/pull/4469

Follow up https://github.com/apache/paimon/pull/4436 , refactor related logic to a util class to duplicate codes;
Fix incidental ut failed due to order in schema test.

Tests

API and Format

Documentation

@wwj6591812 had addressed, Thanks.

+1


Fixes wrong breadcrumb for 404 page

For 404 route we are showing wrong bread crumb (learn react) and showed home as active but showed options of learn. So removed breadcrumb for 404 route.
It seems like the when the layout was not specified we were taking Learn as the default subtree
https://github.com/reactjs/reactjs.org/blob/7f995398f4cfffe9132341d4380b716d65d3a214/beta/plugins/md-layout-loader.js#L18
So changed the default sub tree to Home and then had to add layout to all the pages inside the learn directory.
Verified changes with both sidenav and mobile nav for both 404 page and valid page.
Before:

After:

Also the navigation highlights Home but shows options of learn.

@gaearon what if we automatically set a layout based on a content file path? Then we don't have to manually specify layout field in frontmatter of MD file.

Oh yeah that would be great.


remove dead link

There is no "kubectl" section in this page. And non-resource urls do not
have too much relationship with kubectl(At least I think so), so we
don't need "see kubectl"

NOTE: Please check the “Allow edits from maintainers” box (see image below) to
allow reviewers to fix problems on your patch and speed up the review process.
Please delete this note before submitting the pull request.

This change is

/lgtm


Add in the configuration file of the ARLAS-tagger a field for providing kafka connection properties

As the maintainer of the ARLAS-tagger service,
I want to provide an environment variable to the docker container or to the docker compose
So that the ARLAS-tagger uses theses properties for configuring the kafka client (like for securing the connection: ssl.endpoint.identification.algorithm=https , security.protocol=SASL_SSL , etc.)

For instance, support the following properties:
ssl.endpoint.identification.algorithm=https
security.protocol=SASL_SSL
sasl.mechanism=PLAIN
sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username\="<API KEY>" password\="<API SECRET>";


We don't need to ask twice for the repo URL

when using webhook, we get twice asking for webhook
tkn-pac repo create                                                                    *[main]
? Enter the Git repository url containing the pipelines (default: https://github.com/siamaksade/todo-demo-app):
...
? Would you like me to configure a GitHub Webhook for your repository?  Yes
? Please enter the repository you want to be configured (default: siamaksade/todo-demo-app):
? Do you want me to use it? Yes
...

Also twice asked about the repo. Or is there a use-case where the Git repo for webhook would be different from the Git repo for the Repository?

i am not sure i understand the question, because the two need to match or it would not work.. (so i guess there is no use case 🙃 )

You perhaps meant it so in the issue description but for the sake of clarity:
1) Enter the Git repository url containing the pipelines (default: https://github.com/siamaksade/todo-demo-app):
...
2) Would you like me to configure a GitHub Webhook for your repository?  Yes
3) Please enter the repository you want to be configured (default: siamaksade/todo-demo-app):
4) Do you want me to use it? Yes

Questions (3) and (4) are both redundant since the repo is already provided (1) and user has already said they want a webhook (2).

addressed in #655


Tabs not work

Hi :)
the tab panel is display, but all v-tab includes are show, no error on debugger

Can you show the code and the output? Is the package version 0.2.2 ?

Showing the package.json version for vue-nav-tabs and the code where you declare the tabs would be helpful

Your right, my version was 0.1.2, work fine with 0.2.2


[package] Save source map for release bundles so we can symbolicate.

This will make it easier to understand future crash reports.

🎉 yes please!

For later reference:

a sample script that symbolicates https://gist.github.com/javache/e10a098794c44d3de317
question asking HockeyApp is they will add support https://support.hockeyapp.net/discussions/problems/58227-react-native-symbolication


FInal Update

Related Issue
The "View More Hackathons" button in the hackathons section of the website currently reloads the page upon clicking, instead of navigating to a designated page or section displaying additional hackathons. This results in a poor user experience and does not provide users with the expected functionality to explore more hackathons. Additionally, the hackathons section needs to be updated with appropriate hackathon content to ensure accurate and up-to-date information.

Closes: #[#353]
Description of Changes

Modified the route and created page  for the "View More Hackathons" button to redirect users to the designated page or section.
The hackathons page contain search bar,filter .
Worked on your feedback
Added new hackathon content to the hackathons section, ensuring accuracy and relevance.
Made size of all cards Same

Checklist:

[x] My code adheres to the established style guidelines of this project.
[x] I have conducted a self-review of my code.
[x] I have included comments in areas that may be difficult to understand.
[x] I have made corresponding updates to the project documentation.
[x] My changes have not introduced any new warnings.

Screenshots

Original
Updated

Please provide any necessary screenshots to illustrate the changes made.

I really liked now @Nishitbaria you did great.. one question keeps me troubling.. I hope you can help
We are using tailwind but if we use material UI... our bundle size would increase!

I really liked now @Nishitbaria you did great.. one question keeps me troubling.. I hope you can help We are using tailwind but if we use material UI... our bundle size would increase!

We are using tailwind but if we use material UI... our bundle size would increase!

We can use material UI,As it is helpful framework,we can manage bundle size by optimized build configuration and i have use Material UI's @material-ui/core/styles package, which provides a way to use individual components and styles without including the entire library. This can help you to cherry-pick only the necessary components and minimize the impact on your bundle size.Please merge pull request

This hackathon page looks good to me as of now @anmode ......let's wait for others reviews @glokta1 @Illaf @sayyedarib @muhammadjufry

One weird thing: When i compiled home page, all things rendered but hackathon section on homepage took time.
Please optimize it.
use image in wepb and compresed!

@anmode  Please review my pull request,I have used webp images and remove unwanted images,Page is working good,please please merge my pull request i will be greatful to you

@anmode  Please review my pull request,I have used webp images and remove unwanted images,Page is working good,please please merge my pull request i will be grateful to you

Surely..@Nishitbaria you really created nicely. Will surely merged and it should be merged..let me check this locally tomorrow please

@Nishitbaria mobile mode is not optimized i see. This would be last fix ig

What do you mean  by mobile mode is not optimized ,what you want me  to do?

The page is not optimised for smaller screens like mobile...... please optimize it @Nishitbaria

Do yo want me make responseive or fast loading?

Do yo want me make responseive or fast loading?

Both are not possible? as responsive it is obvious otherwise mobile mode distorted

@anmode What do you mean by mobile mode is not optimized ,what you want me to do?

Optimize means responsive as should be good in desktop mode and mobile mode both!

@anmode  Please review my changes ,I have made it mobile responsive ,made changes according to you

Thanks we really need  maintainers like you @anmode


keycloak_realm role requires realm defined in multiple places

SUMMARY
https://github.com/ansible-middleware/keycloak/blob/7a0a99a31c2fcd0e218d415cda5613de4d47be1e/roles/keycloak_realm/tasks/main.yml#L44
Here, individuals using the keycloak_realm role will need to define the realm name in two places: the outer role args, and the inner part of the user federation.
This seems like it could use item.realm or keycloak_realm to handle most default situations.
ISSUE TYPE

Feature Idea

Good point; I'll add the | default(keycloak_realm)


Welcome message

Would it be possible to remove this welcome message or allow it to be optional?
https://github.com/jchristn/WatsonWebserver/blob/ff0f590e077e95cdda32ff2e659f4f20c40a91f6/WatsonWebserver/WatsonWebserver.cs#L214-L223

Yeah, really doesn't need to be there, does it?
NuGet v3.0.3 published with this change: https://www.nuget.org/packages/Watson/3.0.3 (give it 5-10 mins to publish)
Commit: https://github.com/jchristn/WatsonWebserver/commit/08605c9e004602114d298aaab66250328ecb6904
Cheers, Joel

Wow, that was quick. Thanks!


when do cmake,it will accur following error results

CMake Error at CMakeLists.txt:73 (find_package):
By not providing "Findbenchmark.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"benchmark", but CMake did not find one.

Maybe it is caused by the missing of benchmark lib of google. Try to install the lib firstly.

did it help?

I had a similar issue. I added -DBUILD_EXTERNAL_GOOGLEBENCHMARK=1 and it checked out the google stuff.
However, I am now getting
CMake Error at .../xtensor-benchmark/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find Blitz (missing: BLITZ_INCLUDES BLITZ_LIBRARIES)
Call Stack (most recent call first):
 .../xtensor-benchmark/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  modules/FindBlitz.cmake:37 (find_package_handle_standard_args)
  CMakeLists.txt:123 (find_package)

Any idea?

I guess your conda env-file is incomplete, it should add libblitz from conda-forge.

conda-forge also provides pythran, so the env-file wouldn't need to use pip at all.

I'm on standard Ubuntu 20.04 with fairly new g++-9.3 or clang-9.
Fixed some dependencies in conda in #14,
but I still cannot configure and build this project.
Notable errors:

[ ] cannot find numpy (even if installed conda, pip)
[ ] cannot find pthread

Please see below,
thank you
- Performing Test HAS_CPP14_FLAG - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Blitz: /home/mmm/.conda/envs/xtensor-benchmark/include
-- Found Armadillo: /home/mmm/.conda/envs/xtensor-benchmark/lib/libarmadillo.so (found version "9.200.7")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so (found version "3.8.2")
CMake Warning at CMakeLists.txt:123 (find_package):
By not providing "FindNumPy.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "NumPy", but
CMake did not find one.

Could not find a package configuration file provided by "NumPy" with any of
the following names:

NumPyConfig.cmake
numpy-config.cmake

Add the installation prefix of "NumPy" to CMAKE_PREFIX_PATH or set
"NumPy_DIR" to a directory containing one of the above files.  If "NumPy"
provides a separate development package or SDK, be sure it has been
installed.

-- Found PythonInterp: /usr/bin/python3.8 (found version "3.8.2")
CMake Error at modules/FindPythran.cmake:43 (string):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:124 (find_package)

CMake Error at modules/FindPythran.cmake:44 (string):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:124 (find_package)

CMake Error at modules/FindPythran.cmake:45 (list):
list GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:124 (find_package)

CMake Error at modules/FindPythran.cmake:46 (list):
list GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:124 (find_package)

CMake Error at modules/FindPythran.cmake:49 (string):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:124 (find_package)

CMake Error at modules/FindPythran.cmake:52 (string):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:124 (find_package)

CMake Error at modules/FindPythran.cmake:56 (string):
string sub-command REGEX, mode MATCH regex "[0-9]*" matched an empty
string.
Call Stack (most recent call first):
CMakeLists.txt:124 (find_package)

CMake Error at modules/FindPythran.cmake:57 (math):
math cannot parse the expression: "(NOTFOUND * 10000) + (NOTFOUND * 100) +
NOTFOUND": syntax error, unexpected exp_TIMES (11).
Call Stack (most recent call first):
CMakeLists.txt:124 (find_package)

COMPILING WITH
======================================

COMPILER        : /usr/bin/c++
FLAGS           :  -Ofast -ffast-math -march=native -pthread

Found xtensor   : /home/mmm/.conda/envs/xtensor-benchmark/include
Found xsimd     : /home/mmm/.conda/envs/xtensor-benchmark/include

Found eigen     : /home/mmm/.conda/envs/xtensor-benchmark/include/eigen3
Found Blitz     : /home/mmm/.conda/envs/xtensor-benchmark/include | /home/mmm/.conda/envs/xtensor-benchmark/lib/libblitz.so
Found Armadillo : /home/mmm/.conda/envs/xtensor-benchmark/include | /home/mmm/.conda/envs/xtensor-benchmark/lib/libarmadillo.so
Found Pythran   :
Using benchmark :  | benchmark::benchmark_main
-- Configuring incomplete, errors occurred!
See also "/home/mmm/devel/xtensor-benchmark/build/CMakeFiles/CMakeOutput.log".
See also "/home/mmm/devel/xtensor-benchmark/build/CMakeFiles/CMakeError.log".


Bazel: building glog with custom version gflags

It is my first time here, and I already read the contribution guideline. So I hope creating an issue is an appropriate step for this discussion.
I am working on a bazel workspace that needs to import and build both gflags and glog from source. I would like to build glog using the version of gflags in my workspace, instead of the one specified in glog WORKSPACE file. Hence, would the following change work and be accepted?
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "com_github_gflags_gflags",
    strip_prefix = "gflags-2.2.2",
    urls = [
        "https://mirror.bazel.build/github.com/gflags/gflags/archive/v2.2.2.tar.gz",
        "https://github.com/gflags/gflags/archive/v2.2.2.tar.gz",
    ],
)

to:
if "com_github_gflags_gflags" not in native.existing_rules():
    http_archive(
        name = "com_github_gflags_gflags",
        strip_prefix = "gflags-2.2.2",
        urls = [
            "https://mirror.bazel.build/github.com/gflags/gflags/archive/v2.2.2.tar.gz",
            "https://github.com/gflags/gflags/archive/v2.2.2.tar.gz",
        ],
    )

If I understand correctly, you shouldn't need to change glog to do what you want. Since Bazel ignores the WORKSPACE files of external repositories (see https://github.com/bazelbuild/bazel/issues/1943), adding glog to your WORKSPACE will not add gflags: you'll have to add it yourself. You can add any version that you want, as long as it includes https://github.com/gflags/gflags/commit/57ceb0ecc8bf5c129bf99fa9472b25342daecf9e (2.2.2 is the first release with this commit).
Does that help?
PS: The if ... not in native.existing_rules(): pattern can't be used directly in the WORKSPACE file (if statements aren't allowed in BUILD or WORKSPACE files), but it is useful inside a dependencies macro that is intended to be called from the WORKSPACE to add a group of dependencies. glog doesn't provide a macro like that since it only has one (optional) dependency, so it's easier to let people add gflags to the top-level WORKSPACE themselves.

Thanks for the response @drigz. Close the issue then.


Could not resolve dependency

Is it my environment or need to update ngx-long-press2 project desp?
# npm resolution error report

2022-01-28T08:07:31.362Z

While resolving<EMAIL_ADDRESS>Found<EMAIL_ADDRESS>node_modules/@angular/common
<EMAIL_ADDRESS>from the root project

Could not resolve dependency:
peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>node_modules/ngx-long-press2
<EMAIL_ADDRESS>from the root project

Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

Raw JSON explanation object:

{
  "code": "ERESOLVE",
  "current": {
    "name": "@angular/common",
    "version": "12.2.16",
    "whileInstalling": {
      "name": "my-awesome-project",
      "version": "0.47.0",
      "path": "/Users/sultanmyrza/Clients/project/my-awesome-project"
    },
    "location": "node_modules/@angular/common",
    "isWorkspace": false,
    "dependents": [
      {
        "type": "prod",
        "name": "@angular/common",
        "spec": "^12.2.4",
        "from": {
          "location": "/Users/sultanmyrza/Clients/project/my-awesome-project"
        }
      }
    ]
  },
  "currentEdge": {
    "type": "prod",
    "name": "@angular/common",
    "spec": "^12.2.4",
    "from": {
      "location": "/Users/sultanmyrza/Clients/project/my-awesome-project"
    }
  },
  "edge": {
    "type": "peer",
    "name": "@angular/common",
    "spec": "^10.0.14",
    "error": "INVALID",
    "from": {
      "name": "ngx-long-press2",
      "version": "2.0.0",
      "whileInstalling": {
        "name": "my-awesome-project",
        "version": "0.47.0",
        "path": "/Users/sultanmyrza/Clients/project/my-awesome-project"
      },
      "location": "node_modules/ngx-long-press2",
      "isWorkspace": false,
      "dependents": [
        {
          "type": "prod",
          "name": "ngx-long-press2",
          "spec": "^2.0.0",
          "from": {
            "location": "/Users/sultanmyrza/Clients/project/my-awesome-project"
          }
        }
      ]
    }
  },
  "strictPeerDeps": false,
  "force": false
}

please try npm i --force

Hello @AnthonyNahas
Around February I just did npm install ngx-long-press2 --legacy-peer-deps and things worked fine. But recently out of nowhere my Github actions started to fail.

Github failed action logs (click to expand)
Run npm install
  npm install
  shell: /usr/bin/bash -e {0}
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/@angular/common
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!   peer<EMAIL_ADDRESS>|| ^13.0.0-0" from<EMAIL_ADDRESS>npm ERR!   node_modules/@angular/cdk
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!     peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!     node_modules/@angular/material
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!       1 more (@ngx-formly/material)
npm ERR!   8 more (@angular/forms, @angular/material, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/ngx-long-press2
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Conflicting peer dependency<EMAIL_ADDRESS>npm ERR! node_modules/@angular/common
npm ERR!   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!   node_modules/ngx-long-press2
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/runner/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2022-06-09T10_32_40_215Z-debug-0.log
Error: Process completed with exit code 1.

My package.json file (click to expand)
"dependencies": {
    "@angular/animations": "^12.2.4",
    "@angular/cdk": "^12.2.4",
    "@angular/common": "^12.2.4",
    "@angular/core": "^12.2.4",
    "@angular/forms": "^12.2.4",
    "@angular/material": "^12.2.4",
    "@angular/platform-browser": "^12.2.4",
    "@angular/platform-browser-dynamic": "^12.2.4",
    "@angular/router": "^12.2.4",
    "@capacitor-community/bluetooth-le": "^1.7.0",
    "@capacitor-community/http": "github:numbersprotocol/http#fix-catch-disabled-Local-Network-case-on-iOS",
    "@capacitor-community/wifi": "github:numbersprotocol/community-capacitor-wifi#capacitor3",
    "@capacitor/android": "https://gitpkg.now.sh/numbersprotocol/capacitor/android?release-3.4.1-range-request-fix",
    "@capacitor/app": "^1.1.0",
    "@capacitor/browser": "^1.0.7",
    "@capacitor/camera": "^1.3.0",
    "@capacitor/clipboard": "^1.0.7",
    "@capacitor/core": "^3.4.1",
    "@capacitor/device": "^1.1.2",
    "@capacitor/filesystem": "^1.1.0",
    "@capacitor/geolocation": "^1.3.1",
    "@capacitor/ios": "^3.4.1",
    "@capacitor/local-notifications": "^1.1.0",
    "@capacitor/network": "^1.0.7",
    "@capacitor/push-notifications": "^1.0.9",
    "@capacitor/share": "^1.1.1",
    "@capacitor/splash-screen": "^1.2.2",
    "@capacitor/storage": "^1.2.4",
    "@ionic/angular": "^5.6.11",
    "@ionic/core": "^5.6.11",
    "@ionic/pwa-elements": "^3.0.2",
    "@ngneat/transloco": "^2.22.0",
    "@ngneat/until-destroy": "^8.1.0",
    "@ngrx/component": "^12.4.0",
    "@ngrx/store": "^12.4.0",
    "@ngx-formly/core": "^5.10.22",
    "@ngx-formly/material": "^5.10.22",
    "@ngx-formly/schematics": "^5.10.22",
    "@numbersprotocol/preview-camera": "github:numbersprotocol/preview-camera#release-0.0.2-auto-rotate-fix",
    "@numbersprotocol/preview-video": "github:numbersprotocol/preview-video",
    "async-mutex": "^0.3.2",
    "buffer": "^5.7.1",
    "capacitor-blob-writer": "^1.0.4",
    "compressorjs": "^1.0.7",
    "immutable": "^4.0.0-rc.14",
    "lodash-es": "^4.17.21",
    "material-design-icons-iconfont": "^6.1.0",
    "ng-circle-progress": "^1.6.0",
    "ngx-joyride": "^2.5.0",
    "ngx-long-press2": "^2.0.0",
    "ngx-pinch-zoom": "^2.6.0",
    "process": "^0.11.10",
    "rxjs": "^6.6.7",
    "stream-browserify": "^2.0.2",
    "swiper": "^6.8.4",
    "tslib": "^2.3.1",
    "web3": "^1.5.2",
    "zone.js": "^0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^12.2.4",
    "@angular-eslint/builder": "^12.3.1",
    "@angular-eslint/eslint-plugin": "^12.3.1",
    "@angular-eslint/eslint-plugin-template": "^12.3.1",
    "@angular-eslint/schematics": "^12.3.1",
    "@angular-eslint/template-parser": "^12.3.1",
    "@angular/cli": "^12.2.4",
    "@angular/compiler": "^12.2.4",
    "@angular/compiler-cli": "^12.2.4",
    "@angular/language-service": "^12.2.4",
    "@capacitor/cli": "^3.4.1",
    "@ionic/angular-toolkit": "^4.0.0",
    "@types/jasmine": "^3.8.2",
    "@types/jasminewd2": "^2.0.10",
    "@types/lodash-es": "^4.17.4",
    "@types/node": "^16.7.10",
    "@typescript-eslint/eslint-plugin": "^4.30.0",
    "@typescript-eslint/parser": "^4.30.0",
    "assert": "^2.0.0",
    "crypto-browserify": "^3.12.0",
    "eslint": "^7.32.0",
    "eslint-plugin-import": "^2.24.2",
    "eslint-plugin-prefer-arrow": "^1.2.3",
    "eslint-plugin-rxjs": "^3.3.7",
    "https-browserify": "^1.0.0",
    "husky": "^7.0.2",
    "jasmine-core": "^3.9.0",
    "jasmine-spec-reporter": "^7.0.0",
    "karma": "^6.3.4",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "^2.0.3",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "^1.6.0",
    "lint-staged": "^11.1.2",
    "os-browserify": "^0.3.0",
    "prettier": "^2.3.2",
    "protractor": "~7.0.0",
    "stream-http": "^3.2.0",
    "stylelint": "^13.13.1",
    "stylelint-config-standard": "^22.0.0",
    "stylelint-scss": "^3.20.1",
    "ts-node": "^10.2.1",
    "typescript": "^4.3.5"
  },

I'm not sure but is it because of ngx-long-press2's peerDependencies?

P.S: also in GitHub actions were configured by senior dev so I can not change npm install to npm install --force or --legacy-peer-deps so I think the next thing I will try to do is to clean up my dependencies versions.

Hello @AnthonyNahas,
I created a fresh ionic project which uses angular 14 and npm install ngx-long-press2 causing this error

 Error logs (click to expand)
npm i ngx-long-press2
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/@angular/common
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/ngx-long-press2
npm ERR!   ngx-long-press2@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/sultanmyrza/.npm/eresolve-report.txt for a full report.

npm ERR!      /Users/sultanmyrza/.npm/_logs/2022-06-21T06_46_03_071Z-debug-0.log

So if I want to be able to install ngx-long-press2 without --force or --legacy-peer-deps flags what should I do? Should I update peerDependencies of ngx-long-press2 from
 "peerDependencies": {
    "@angular/common": "^10.0.14",
    "@angular/core": "^10.0.14"
  }

to
 "peerDependencies": {
    "@angular/common": "^14.0.0",
    "@angular/core": "^14.0.0"
  }

I will update the peer deps asap


DeprecationWarning in Node 7 when using browserConsoleLogOptions.path.

Expected behaviour
Executing test with config that includes browserConsoleLogOptions with path will successully (and quietly) write browser console to the given path.
Actual behaviour
Each time browser console is written to path, a DeprecationWarning appears:
(node:3804) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.

Running using node --trace-warnings node_modules/.bin/karma gives:
(node:12822) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
    at maybeCallback (fs.js:98:42)
    at Object.fs.write (fs.js:729:14)
    at Server.<anonymous> (.../node_modules/karma/lib/server.js:231:10)
    at emitThree (events.js:121:20)
    at Server.emit (events.js:197:7)
    at Browser.onInfo (.../node_modules/karma/lib/browser.js:112:15)
    at Socket.<anonymous> (.../node_modules/karma/lib/events.js:13:22)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at .../node_modules/socket.io/lib/socket.js:503:12
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)

The relevant line here is Server.<anonymous> (.../node_modules/karma/lib/server.js:231:10). The code in question.
Environment Details

Karma version (output of karma --version): Karma version: 1.7.0
Relevant part of your karma.config.js file:

browserConsoleLogOptions: {
  level: 'debug',
  path: 'karma-out.log',
  terminal: false
}

This is with node v7.10.0.
Steps to reproduce the behaviour
git clone git@github.com:chrahunt/TagProReplays.git \
&& git checkout e802449                             \
&& npm test

Based on the docs we should be waiting for the callback between writes or using fs.createWriteStream.

Blocked on #2765 since those are the relevant tests for the changes needed here.

Fixed by #2939.


typing error - OPTIONS method

Can you please fix typing error in Contributte\Api\Schema\Endpoint,php
correct name of method is OPTIONS with "S" on rows 15 , 22

Thanks. Could you please send a PR, it's just typo. :-)

Closed via #23. Thanks @mJurina.


Error on creating the integration

When trying to set up the integration on my HA, I search under "Add Integration" for "Google Photos", I inputted my oauth credentials, and then a popup appears from google saying that there was a Error 400: redirect_uri_mismatch.

Am I doing something wrong?
Thank you!

Could you check if your oAuth client looks something like this (especially Authorized redirect urls):

Note that you must use the my.home-assistant.io url.

Hello,
I had the same thing, you should verify if you didn't had entered wrongs credentials previously.
here : https://my.home-assistant.io/redirect/application_credentials/  (it's the link written in the FAQ).
You will see all your different credentials  on the page, if you see 1 "google photo", delete it and re-start the integration of the plugin.
Hope this will help you.
-->Mike

same is happening to me

@Zeunas You have the correct redirect_uri set to my.home-assistant.io?

I do, I actually tried the credentials on another HA instance and that one is working. Both instances are on the same version of HAOS, the only difference is that one is on a Rasp pi3 and the other is on a Rasp pi4, the integration is working on the latter.

I did that a couple of times already but got the same results. One thing I didn't say actually, was that this integration was initially set up on the pi4, then I decided to move to the pi3. I tried using the same credentials that I used for the pi4 and it didn't work, then I deleted the OAuth 2.0 Client ID and recreated again following the instructions on here, that didn't work either (this new Client ID is the one that still works on the pi4). So not sure if I compromised the authentication of pi3 somehow by using pi4 initial in the first place.

Seems like I was too careless to follow the complete guide and I skipped the part where I was supposed to add the whitelisted URI :)
it's all working now! Thanks!


[3.0] Hybrid Mode - example showing usage of Polymer 1.x and 3.x in the same app?

From "What's Next for Polymer (Polymer Summit 2017)" https://www.youtube.com/watch?v=JH6jEcLxJEI&t=7s  at 16:31 of the presentation:
"And if you're using Hybrid mode, don't worry, Polymer 3.0 is going to work with that too."
Could you please provide an example of how to extend an application that e.g. uses <template is="dom-bind">  and <template is="dom-repeat"> to work with Polymer 1.x components so that it can use a Polymer 3.0 component inside those templates?

Will Polymer 3.x support the use of templates like this in html code? or will all of the templates in the application html code need to be stripped out and replaced with .js code?
Will the html imports polyfill be extended to support importing ES6 modules as part of this, or will

The hybrid mode slide just meant you would be able to use hybrid syntax in 3.x elements
You still need to move from 1.x to hybrid and then use modulizer for conversion.

Just to make sure I understand what you are saying:

I will need to run my 1.x application code through 'modularizer' in order to use a 3.x element
I will not need to convert any existing 1.x elements to 3.x if I am running Polymer 1.9.x or whatever lands as the hybrid mode version of Polymer
the version of Polymer that supports this hybrid mode will satisfy all references to polymer.html from 1.x elements and polymer.js from the application and any 3.x elements
in hybrid mode, 1.x components will be referenced using &lt<link rel="import"... and 3.x components will be referenced using <script type="module" src="src/my-app.js"></script>

Is that correct?

I will need to run my 1.x application code through 'modularizer' in order to use a 3.x element
Yes.

I will not need to convert any existing 1.x elements to 3.x if I am running Polymer 1.9.x or whatever lands as the hybrid mode version of Polymer
You can stick to 1.9 and would be able to use 2.0 hybrid elements, but not 3.0

the version of Polymer that supports this hybrid mode will satisfy all references to polymer.html from 1.x elements and polymer.js from the application and any 3.x elements
2.0 elements written in hybrid syntax can be used with 1.9 but have to be modulized for 3.0

in hybrid mode, 1.x components will be referenced using <link rel="import"... and 3.x components will be referenced using
How do you imagine using ES modules and HTML imports at the same time? That would cause a mess.

/cc @FredKSchott please correct me if I'm wrong.
BTW, any ETA for Chrome to deprecate HTML imports and v0 CE implementation?

OK, thanks for your reply.
What this means to me is:

the statement made in the video "And if you're using Hybrid mode, don't worry, Polymer 3.0 is going to work with that too."   It's a big bang conversion where all existing components as well as the application code itself needs to be migrated to 3.0 syntax.
for this to be "painless" requires the polymer-modularizer project to actually work.  And given the track record for other polymer migration tools, this flies in the face of the "don't worry" attitude expressed in the video.

@brian-cruickshank it was announced that by the end of the year polymer-modulizer should be able to conevrt whole apps.
Of course this is not an option if you use some native elements built with v0 specs as we do, e. g. app-router and pushstate-anchor.

polymer-modulizer doesn't support importHref and there is no indication that any plan exists how to preserve importHref.

polymer-modulizer isn't quite ready to have a complete turn-key solution for migrating a hybrid application to 3.x, but we've already been using it to create the 3.0-preview branches of our elements and polymer 100% automatically.
There's still a few issues around porting tests, and a replacement for importHref, but the 2.x and hybrid to 3.x conversion is much more mechanical than the 1.x to 2.x conversion because no underlying Web Components specifications have changed.
It should not take too long to start having explanatory examples of upgrading a single element, a group of elements, and an application in the near future.

@brian-cruickshank I think the terminology around "hybrid mode/hybrid elements" is confusing. So, apologies there.
We use "hybrid element" specifically to mean an element that can run in 1.x and 2.x, which uses the legacy Polymer() factory method and a compatible subset of the 1.x and 2.x APIs.
I think Fred was trying to answer the question, "Will you support the hybrid syntax, or just the 2.x class-based syntax." And the answer is, you can keep using the hybrid syntax, you don't need to change to 2.x class-based syntax to use 3.0. But a 3.0 element won't run in 2.x or 1.x.
(You might theoretically be able to use 3.x and 2.x elements on the same page, since 3.x doesn't create globals like window.Polymer. But it may be more work than it's worth. Since 1.x uses the older v0 polyfills, I don't think 1.x and 3.x on the same page would be workable.)

To make things more clear, I've been trying to separate the terms "hybrid mode" from "legacy syntax".
Hybrid mode is an element that can run in either 1.x or 2.x. To do this it in part has to use the legacy syntax.
Legacy syntax is simply thePolymer() function. It's possibly to write a Polymer 2.0 element in legacy syntax that's not hybrid because it uses some newer 2.0 APIs.
polymer-modulizer only converts 2.0 elements, but it does support the legacy syntax. So it supports hybrid elements because they are valid 2.0 elements. Modulizer doesn't support Polymer 1.x, because 1.x isn't organized in a way that's amenable to auto-translating to JS modules.

FWIW, this is what the Polymer team told the community about Hybrid Mode:
From Taylor Savage's Opening Keynote (Polymer Summit 2016) at 16:02

"And of course we don't want to leave Polymer 1.0 users, these many big large Polymer 1.0 users, in the dust, so Polymer 2.0 comes with a near-seamless backwards compatibility layer, making it dead-simple to upgrade an element from Polymer 1.0 to 2.0.  And critically, Polymer 2.0 also lets you build elements in what we call 'hybrid mode' and what Hybrid Mode means is that the very same element will work under Polymer 1.0 or Polymer 2.0 with a compatibility layer. And this allows you to incrementally upgrade your project, one component at a time, so I'll show you what that would look like:
In a typical 1.0 to 2.0 transition, you would have your entire application and all the components all built on 1.0 and, stop the presses, suddenly we have to go back to the drawing board, rebuild every single element so that it works in 2.0, and weeks or maybe months or maybe even years later we finally finish this transition and we can start again 2.0 fresh, and this is terrible, this is a bummer, especially if you have hundreds or thousands of components to upgrade"

We're pretty much at risk of being "left in the dust" at this point.  It was difficult to justify the 5 weeks it took to migrate from 0.5 to 1.0, and it's looking like another major effort going from 1.9 to 3.0.
From the Polymer 2.0 upgrade guide:

"The Polymer team plans to release a Polymer Upgrade tool to automatically perform a number of the changes required to upgrade 1.x elements to either hybrid or class-based style. The remaining changes require either manual code changes, testing, or both to ensure that your element operates the same in 2.0 as it did in 1.x. The upgrade tool is not available at this time."

Are there any plans to make this upgrade tool available?

it's looking like another major effort going from 1.9 to 3.0.

I wouldn't go from 1.9 to 3.0. Go from 1.9 to 2.0, which you can do incrementally, then auto-convert to 3.0.

Are there any plans to make this upgrade tool available?

@rictic is working on bring internal conversion helpers to an external tool. The manual changes are very simple though.

why 3.0 support from 1.x? why not from 2.0?

@justinfagnani
Re:

@rictic is working on bring internal conversion helpers to an external tool.
That would be much appreciated.  Thank you!

One question regarding 3.0 and the 2.0 to 3.0 auto-conversion for application code (not elements): can applications retain the template code in html (e.g. keep the <template is="dom-bind"... , <template is="dom-repeat"... etc. tags that the application uses) instead of having them converted to javascript strings?  If not, how does the tool identify where the strings need to be inserted into the application's DOM?
A lot of my concerns over the direction of 3.0 would be addressed if applications were able to keep the template tags and element tags in html.... It would allow 'assemblers' to retain all of the benefits of Polymer's declarative approach, and it avoids having to insert weirdness into the html to identify where to inject the template strings.   The whole move to ES6 modules for components I can understand and appreciate, but for applications it will create a lot of potential problems.

@brian-cruickshank HTML files that serve as entrypoints, such as index.html,  would use the same <dom-bind> and <template is="dom-repeat"> tags that they use in 2.x.
HTML imports would be converted to JavaScript modules. Elements in those modules have their top-level templates converted to strings (a feature which is also supported in 2.0).
Inside that string, you'd specify your template contents exactly the same way you did in 2.0, including <template is="dom-repeat">, <template is="dom-if">. For example:
static get template() {
  return `<template is="dom-repeat" items="{{myItems}}">
  <div>[[item.name]]</div>
  </template>`

Hope that clarifies the situation a bit.

@arthurevans - thank you!  That does help clarify things a lot.
Just to make sure I fully understand this:  the only changes that will be required for html files that serve as entrypoints would be to replace  with    and rework javascript that uses importHref  - is that accurate?  All of the existing template stamping APIs, lifecycle events, etc. are unchanged?

@brian-cruickshank Sorry for the late response, but yes you are correct. The API remains, but Polymer 3 will use a different loading mechanism: ES modules.
Hopefully the confusion has cleared up regarding the terms "hybrid mode" and "legacy syntax", as well as the differences in terms of loading Polymer 2 and 3. Therefore I am closing this issue. Feel free to reopen if you are still uncertain about any aspect.

Hi am new to polymer,
is it possible to update polymer 1.x project directly to polymer 3.x version ?

i need you help on SHOP demo, some days , i will dis my question in detail.


Add Failure Tags to Resolver on SSH to Handle Fatal Failures

Following the completion of issue #162590, add support for handling fatal failures to the remote-SSH extension through including fatal failure tags.

FYI this should be in the remote-release repo


Docker embarrasing slow on execution

Running my own image on a CentOS 7 host, clean installation, no other jobs running is embarrassing slow.
docker run -p 12020:12020 zopyx/xmldirector-plone
takes in the range 5 to 10 minutes under Docker control.
Running the same code on same virtual machine usually takes less than one minute.
The image starts eXist-db, pre-allocates the CMS Plone and starts it.
The related Dockerfile is here
https://github.com/xml-director/xmldirector.plonecore/tree/master/docker
which uses this as base image
https://github.com/xml-director/xmldirector.plonecore/tree/master/docker/base
Also the load of the VM goes over the top and climbs up to 10

[ajung@docker ~]$ uname -a
Linux docker.zopyx.com 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[ajung@docker ~]$ docker version
Client version: 1.4.1
Client API version: 1.16
Go version (client): go1.3.3
Git commit (client): 5bc2ff8
OS/Arch (client): linux/amd64
Server version: 1.4.1
Server API version: 1.16
Go version (server): go1.3.3
Git commit (server): 5bc2ff8
[ajung@docker ~]$ docker -D info
Containers: 3
Images: 62
Storage Driver: devicemapper
Pool Name: docker-253:1-201327949-pool
Pool Blocksize: 65.54 kB
Data file: /var/lib/docker/devicemapper/devicemapper/data
Metadata file: /var/lib/docker/devicemapper/devicemapper/metadata
Data Space Used: 3.474 GB
Data Space Total: 107.4 GB
Metadata Space Used: 4.448 MB
Metadata Space Total: 2.147 GB
Library Version: 1.02.82-git (2013-10-04)
Execution Driver: native-0.2
Kernel Version: 3.10.0-123.el7.x86_64
Operating System: CentOS Linux 7 (Core)
CPUs: 3
Total Memory: 3.704 GiB
Name: docker.zopyx.com
ID: 2CWZ:EWWZ:TNZT:NHN7:H4VE:JOEN:PQZG:XVJG:AJMH:2PVK:JYOX:E4UY
Debug mode (server): false
Debug mode (client): true
Fds: 23
Goroutines: 39
EventsListeners: 0
Init Path: /usr/bin/docker
Docker Root Dir: /var/lib/docker
Username: zopyx
Registry: [https://index.docker.io/v1/]

Do you have a way for us to create a similar VM as this is not typical and I'm scared that if we don't have an exact setup it will be super hard to reproduce and help on this issue.
A Vagrantfile or even a virtualbox backup would help.

According to other posts the problem seem to be the Devicemapper driver used on CentOS 6 and 7. There are numerous reports about similar behavior. I could reproduce the issue with two bare CentOS 6.6 and 7.0 installations running on the same box. Anyway...we moved these virtual machines to latest Ubuntu running AutFS and the user experience is as it should and how I would expect it.

@vbatts Have you seen anything like this?

From a clean install, it took 7 minutes just to download all the layers for zopyx/xmldirector-plone. 39 layers. That's not tiny.
The set up of the database and plone look to be huge IO hits, and yes the db allocate and plone setup took 4 minutes total.
The trouble here is that because docker is simple to run, does not mean that it is absolutely tuned for everyone's use-case, everywhere, all the time. Please consider the default assumption, what is going on, and what you need. Devicemapper is the most generic driver, largely because it is on most all linux's, and by default sets itself up on a loop back file to manage.
If you loop at process table while this image is starting and setting up, you'll see that python is first, followed by the kernel traversing the loop back.
15011 centos    20   0<PHONE_NUMBER>16   6684 R 91.3  8.4   0:26.00 /home/plone/xmldirector.plonecore/../bin/python /home/plone/xmldirector.plonecore/parts/instance/bin/interpreter -c from Zope2 import configure; configure(r'/home/plone/x+
13056 root       0 -20       0      0      0 S  0.7  0.0   0:07.65 [loop0]
6 root      20   0       0      0      0 S  0.3  0.0   0:01.93 [kworker/u2:0]

If you are interested in a more fully established production runtime, or particularly high-IO, then absolutely set up a dedicated block device for the devicemapper driver, and don't assume that because something works, that it is tuned to you. See https://github.com/docker/docker/blob/master/daemon/graphdriver/devmapper/README.md
I'm closing this as it is not embarrassing on docker, but in assumptions that were made and due diligence wasn't taken to ensure settings were optimal for your use case.

The same odd behavior happened with CentOS 6.6 and 7 also with other more simple Dockerfile e.g. for installing BaseX or exists-sb.
You receive $$$$$$$ of venture capital and work like tinkerers.

Am 27.01.2015 um 18:37 schrieb Vincent Batts<EMAIL_ADDRESS>From a clean install, it took 7 minutes just to download all the layers for zopyx/xmldirector-plone. 39 layers. That's not tiny.
The set up of the database and plone look to be huge IO hits, and yes the db allocate and plone setup took 4 minutes total.
The trouble here is that because docker is simple to run, does not mean that it is absolutely tuned for everyone's use-case, everywhere, all the time. Please consider the default assumption, what is going on, and what you need. Devicemapper is the most generic driver, largely because it is on most all linux's, and by default sets itself up on a loop back file to manage.
If you loop at process table while this image is starting and setting up, you'll see that python is first, followed by the kernel traversing the loop back.
15011 centos    20   0<PHONE_NUMBER>16   6684 R 91.3  8.4   0:26.00 /home/plone/xmldirector.plonecore/../bin/python /home/plone/xmldirector.plonecore/parts/instance/bin/interpreter -c from Zope2 import configure; configure(r'/home/plone/x+
13056 root       0 -20       0      0      0 S  0.7  0.0   0:07.65 [loop0]
6 root      20   0       0      0      0 S  0.3  0.0   0:01.93 [kworker/u2:0]
If you are interested in a more fully established production runtime, or particularly high-IO, then absolutely set up a dedicated block device for the devicemapper driver, and don't assume that because something works, that it is tuned to you. See https://github.com/docker/docker/blob/master/daemon/graphdriver/devmapper/README.md
I'm closing this as it is not embarrassing on docker, but in assumptions that were made and due diligence wasn't taken to ensure settings were optimal for your use case.
—
Reply to this email directly or view it on GitHub.

@zopyx please leave your aggression at the door. I do not work for docker.

Does it matter?
Basic operations like "useradd" or running "apt-get" are running 5-10 times
slower on CentOS 6.6 and 7.0.
What has this to do with my particular app installed after performing
common Dockerfile steps?
This is a common problem with common operations on  CentOS 6+7 with the
devicemapper and don't tell my that it is my Dockerfile.
And if I need special configuration for performing common operations on a
fresh CentOS 7 box then the installation of Docker should either provide a
reasonable configuration for that or simply communicate that Cent 6//7 +
Docker is out of the box a broken configuration.

And Docker clearly falls into the category over-hyped, under-designed and
under-engineered bullshit.
2015-01-27 19:01 GMT+01:00 Vincent Batts<EMAIL_ADDRESS>
@zopyx https://github.com/zopyx please leave your aggression at the
door. I do not work for docker.
—
Reply to this email directly or view it on GitHub
https://github.com/docker/docker/issues/10248#issuecomment-71695357.

I'm sorry that you are having issues with Docker but we encourage a community of mutual respect between users, volunteers, and maintainers.
Though you’re free to share your opinions, please be respectful and follow the community guidelines outlined here


DEBUG: SFE frontend PR

chore: Rename yieldgate frontend
chore: Add stake-for-earth frontend (copy)
chore: Set package-linking to hoisted (wagmi errored otherwise)
chore: Update workspace definitions
chore: Update package.json & turborepo tasks
chore: Update deploy workflows; and add stake-for-earth deploy
chore: Update Readme

problem fixed with f9974e9afc9b840e68a8e4bf6d55a3c96c2dc9ec


Windows app crashes whenever I use WebView2

Bug description:
Implementing a WebView with the useWebView2 tag results in a crash without any error message.
function App(): React.JSX.Element {
  return (
    <SafeAreaView style={styles.container}>
      <MyWebComponent />
    </SafeAreaView>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  sectionContainer: {
    marginTop: 32,
    paddingHorizontal: 24,
  },
  sectionTitle: {
    fontSize: 24,
    fontWeight: '600',
  },
  sectionDescription: {
    marginTop: 8,
    fontSize: 18,
    fontWeight: '400',
  },
  highlight: {
    fontWeight: '700',
  },
});

const MyWebComponent = () => {
  return <WebView source={{uri: 'https://google.com/'}} useWebView2={true} />;
};

To Reproduce:
Simply run the application. Removing useWebView2 allows the app to work. Running it on macOS does not result in any issues.
Environment:

OS: Windows
OS version: 10 Enterprise 22H2
react-native: 0.73.4
react-native-webview: ^13.7.1
react-native-windows: 0.73.4

Try enable <WinUI2xVersion>2.8.1</WinUI2xVersion> into ExperimentalFeatures.props

Try enable <WinUI2xVersion>2.8.1</WinUI2xVersion> into ExperimentalFeatures.props
https://github.com/react-native-webview/react-native-webview/blob/master/docs/Getting-Started.md#3-webview2-support

The issue has been resolved with react-native-webview version 13.8.1, independently of the


IndexAttribute for ForeignKeyColumns

The name of an index for foreign key column is always the default. Can you please provide the possibility that the index-name of a foreign will be used, when it's defined?

As a workaround you can remove the foreign ForeignKeyIndexConvention and add your index manual by using the index-attribute.

The index name must be unique for the whole database, therefore I will not change the default behavior. As stated above you can remove the convention and implement a own convention.


ESP32-WROVER

Does all ESP32-WROVER shipped with AT command installed?

No, you need to download ESP32-WROVER AT by yourself. Sorry for the inconvenience.


ARROW-8689: [C++] Fix linking S3FS benchmarks

Java issues on CI look unrelated. @kszucs can you confirm?

Java compilation errors were fixed in #7093

Ok, rebasing.

AppVeyor build: https://ci.appveyor.com/project/pitrou/arrow/builds/32634981


Missing LICENSE

I see you have no LICENSE file for this project.  The default is copyright.
I would suggest releasing the code under the GPL-3.0-or-later or AGPL-3.0-or-later license so that others are encouraged to contribute changes back to your project.

Thanks for the suggestion. It is done. I felt the gpl would've been a bit overkill for this project, so I went with MIT instead.


Usability improvements on postman 'environment' configuration & collections.

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Currently a postman user can import our collections & also has a choice of 2 environments

local-integration tests
Egeria

When importing using the postman UI, the scope is across the repo, so we need to have useful names regardless of the source folder.
Tthere are a few things we can improve from a usability perspective

Rename the collection 'local-integration-tests' to  'Data Engine local integration tests'
-> Most of the collections use 'server' for the server name. However data-engine uses 'server-id'. The same applies to base-url vs baseurl and user-id vs userid.
-> Alternative is to bring naming in-line but it would result in a bigger environment definition which can be confusing for all the rest of the API

Remove unused environment settings

The following env settings are not used, and so can be removed:

igc*

atlas*

Removed old 'omag-server-platform-tutorial

This has hardcoded values for localhost. Whilst this is easier in a standalone environment, our Dojo now will start by assuming the user is running Egeria in k8s (at least for 'using'). In this case they may need to update hostnames in any case - plus once they get to development or other environments they will also need to change. So we cover this by docs OR ....:
If we think valuable, we update this collection to use variables defined in the Egeria environment instead, to make them easier to change
OPTIONALLY

Update 'Egeria' environment to use  either the user/server etc as per the 'coco' environment, or the 'egeria-base' chart
Unfortunately these two differ. We could align the egeria-base chart with coco (just picking a single server) by default to make this easier, and then use the coco values.

For the dojo specifically I propose we point users to master, and make use of https://github.com/odpi/egeria-docs/issues/184 to perform the input, thus avoiding any repo cloning, and allowing us to make any of the changes if we feel necessary prior to the dojo
Expected Behavior
.
Alternatives
No response
Any Further Information?
No response
Would you be prepared to be assigned this issue to work on?

[X] I can work on this

Mandy - you mentioned you were already looking at this so I will
a) Use the existing definitions in any docs for now
b) hand it over to you to incorporate or not the suggestions.


Setup needs to include additional libraries

Following libraries are used but not included as part of setup
networkx
Ipython

Thanks for pointing this out! We will add those.

These have been added to setup.py. Thank you.


feat: drop unneeded assumptions in IsUniform.integral_eq

Probably, more theorems in this file are true w/o these assumptions.
@JasonKYi Could you please have a look at other theorems?
I think that all theorems that only deal with map X P can use weaker assumptions.

That's why I think (TBH, @sgouezel taught me that while reviewing one of my PRs) that moving assumptions tovariables is a bad style.
The old proof uses assumptions MeasurableSet s, mu s /= 0, and mu s /= top` (on a phone, so no Unicode).

@sgouezel Thank you! Do we need approval from another maintainer now, or we just merge it?

I'm approving your modifications, so if you approve mine I think you can merge it.

bors merge


substrate node helmchart uses deprecated  networking.k8s.io/v1beta1 Ingress

W0909 11:31:57.467369   97821 warnings.go:70] networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress

fixed in https://github.com/threefoldtech/tfchain/commit/21ad0caaa0e9b8bd08239ddb58c330302e8a310d


Response from "Add a DeleteTodoItem method"

Thanks a lot for this good tutorial, clear and complete!
I just found a small mistake in the "Add a DeleteTodoItem method" section:
It is written:" The DeleteTodoItem response is 204 (No Content)." whereas this action returns the deleted item (return todoItem;).
Thanks!

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

ID: 583ae3e7-5915-f22b-e54c-6c100cf2a7da
Version Independent ID: 95f2549e-29f9-e31a-b4d0-432b971643ff
Content: Tutorial: Create a web API with ASP.NET Core MVC
Content Source: aspnetcore/tutorials/first-web-api.md
Product: aspnet-core
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Thanks for reporting this. We'll get it fixed in the next update.


StackAnalyzerTest.AnalyzeMinidump failing on buildbot

Will disable for now to unblock official build.

This test no longer exists, and looks to have been split up into several individual tests. Close this if this is no longer relevant?

Fixed.


security/acme-client Feature Request: PorkBun support

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
[x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[x] I have searched the existing issues and I'm convinced that mine is new.
[x] When the request is meant for an existing plugin, I've added its name to the title.
Is your feature request related to a problem? Please describe.
I have several domains registered with PorkBun and cannot easily use the DNS-01 Challenge Type with those domains.
Describe the solution you'd like
I would like the ACME client plugin to offer support for the PorkBun API when configuring DNS-01 challenges.
Describe alternatives you've considered
I have considered using HTTP-01 challenges instead, but that comes with some restrictions, like not (easily) being able to request certificates for services that are not exposed to the Internet.
Additional context
PorkBun is supported by the underlying acme.sh: https://github.com/acmesh-official/acme.sh/wiki/dnsapi#130-using-the-porkbun-api. Support seems to have started with their release 2.8.9, as far as I could see.

This will be available in the upcoming os-acme-client 3.3.


Crash on fireing the siege weapon

On misson to fire the siege weapon first time against the beast the game crashes and closes. started normally it works

Download the latest release, tested it and it works now