Installation

Hello,
Is this project dead? I would like to try it out; some things don't go well though

outdated readme: the API for sdk has changed in v3.0.5, in the Readme you advise using 3.0.2 but the newest source code uses RandomData.nextBytes() and other 3.0.5+ API.

could you please be more specific on the installation process? I was unable to find out which certificate should I get (and where) to proceed.

Thank you!

Hi @Aiosa  - any progress on this front?

Well, yes and no. I was able to change the code to compile with sdk 3.0.2-4, because to be honest, not many cards (neither mine) support v.5.
On the certificate, fortunately, there are other projects based on this one
https://github.com/fightyz/U2FToken
https://github.com/tsenger/CCU2F
which are more friendly with providing an examples on the certificate. One thing is to say "upload a certificate", another is to know in which format(x509?), whether it has to/can be self-signed, raw (yeah at least here it is more or less obvious it will be raw) or pem...?
And lastly, I got stuck again, because after successful installation, I am unable to finish the personalisation proces, because
 error: card returned 6881 (logical channel not supported)
I tried (with the test key/certificate from the other projects) to upload the certificate both part-by-part and at once:
F0010000803082013c3081e4a003020102020a47901280001155957352300a06082a8648ce3d0403023017311530130603550403130c476e756262792050696c6f74301e170d3132303831343138323933325a170d3133303831343138323933325a3031312f302d0603550403132650696c6f74476e756262792d302e342e312d34373930
F00100000001403082013c3081e4a003020102020a47901280001155957352300a06082a8648ce3d0403023017311530130603550403130c476e756262792050696c6f74301e170d3132303831343138323933325a170d3133303831343138323933325a3031312f302d0603550403132650696c6f74476e756262792d302e342e312d34373930313238303030313135353935373335323059301306072a8648ce3d020106082a8648ce3d030107034200048d617e65c9508e64bcc5673ac82a6799da3c1446682c258c463fffdf58dfd2fa3e6c378b53d795c4a4dffb4199edd7862f23abaf0203b4b8911ba0569994e101300a06082a8648ce3d0403020347003044022060cdb6061e9c22262d1aac1d96d8c70829b2366531dda268832cb836bcd30dfa0220631b1459f09e6330055722c8d89b7f48883b9089b88d60d1d9795902b30410df
Since the applet supports extended length, but the result was the same in both cases. Somewhere I found that the low 2 CLA bits specify the logical channel to use (e.g. 0/1/2/3) so I tried sending the install and apdu commands with CLA of _3 (F30100..) and got an error too (I think the same, but I am not sure, maybe it could also throw unsupported CLA, at least this is something I would expect).
Thanks

Do we know specifically what API calls are being done that require JC >= 3.0.2? Those API calls might have replacements that will work with older cards.

When I try to build the current project I get these errors:
[ant:compile] /home/jared/dev/smartcards/ledger-u2f-javacard/src/main/java/com/ledger/u2f/FIDOStandalone.java:49: error: cannot find symbol
[ant:compile]         random = RandomData.getInstance(RandomData.ALG_KEYGENERATION);
[ant:compile]                                                   ^
[ant:compile]   symbol:   variable ALG_KEYGENERATION
[ant:compile]   location: class RandomData
[ant:compile] /home/jared/dev/smartcards/ledger-u2f-javacard/src/main/java/com/ledger/u2f/FIDOStandalone.java:52: error: cannot find symbol
[ant:compile]         random.nextBytes(scratch, (short) 0, (short) 32);
[ant:compile]               ^
[ant:compile]   symbol:   method nextBytes(byte[],short,short)
[ant:compile]   location: variable random of type RandomData
[ant:compile] 2 errors

> Task :buildJavaCard
[ant:cap] INFO: using JavaCard v3.x SDK in /home/jared/dev/smartcards/ledger-u2f-javacard/libs-sdks/jc304_kit
[ant:cap] Building CAP with 1 applet from package com.ledger.u2f
[ant:cap] com.ledger.u2f.U2FApplet A000000617004F97A2E94901
[ant:compile] Compiling 5 source files to /tmp/jccpro3059367291626440409

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':buildJavaCard'.
> Compile failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED in 4s
1 actionable task: 1 executed

My current environment:
$ java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.242-b08, mixed mode)

$ uname -a
Linux jared-ubuntu 5.3.0-40-generic #32-Ubuntu SMP Fri Jan 31 20:24:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

I'm at least able to get the previous FIDO2 certified branch (https://github.com/LedgerHQ/ledger-u2f-javacard/tree/u2f-certif-171215) to build successfully. I have a spare card with Java Card 2.2.2 and Global Platform 2.1.1. Installing on the card fails however.

I am not sire if @jaredvacanti answered to your question about those calls but yup, the errors he's getting are from wrong sdk version. For the alg key generation you need 3.0.2 and for nextBytes() 3.0.5.

Any ideas on why the card returns 0x6881 when uploading the certificate? I checked that it's not something thrown by code (e.g. command should be valid), I modified the two lines in order to compile with SDK below 3.0.5 and still the same.

FYI:  I've got my own fork now that works pretty well. It seems to work fine on a 3.0.1 JC, and has some additional features like multiple counters, etc... Commits are well documented: https://github.com/darconeous/u2f-javacard/commits/master

By the way, I would change PROPRIETARY_CLA to something like 0x80, recompile/load that, and then change the first byte of all of your provisioning commands to 80 instead of F0. I'd also cherry-pick #13, too.
Or just use my fork (Pre-compiled cap can be found here), which has both of those changes as well as and iOS compatibility and multiple counters.
Here is a gist with an installer script that you can use with GlobalPlatformPro:

https://gist.github.com/darconeous/adb1b2c4b15d3d8fbc72a5097270cdaf

Will definitelly check out :) I also forgot to mention the problem I was having with the 'bad logical channel' was not just with this project, but also with the other projects derived from this one (links above). Hope your's will work :)

I was able to successfully install the pre-compiled cap file using the gist of the installer script onto a NXP J3H145 Dual Interface Java card - 144k (3B DC 18 FF 81 91 FE 1F C3 80 73 C8 21 13 66 05 03 63 51 00 02 50).
There were a few warnings (e.g. [WARN] PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02) but otherwise installed successfully. I have the complete installation logs here: https://gist.github.com/jaredvacanti/f8e3591815b45a28d26beecc523a561e
Should this card then be testable with services like https://demo.yubico.com/webauthn-technical/registration or http://u2fdemo.appspot.com/ with this applet installed? I am using a ISO 7816/14443 form factor, but both sites ask me to press the button on the device. It was mentioned on the FIDO-DEV list a while ago that the insertion of the card could replace the touch action. Is that possible?

I assume you are asking about my fork:

I was able to successfully install the pre-compiled cap file using the gist of the installer script onto a NXP J3H145 Dual Interface Java card

Yep, that's the card I use.

There were a few warnings (e.g. [WARN] PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02) but otherwise installed successfully.

Warnings like that have to do with your card and the way you are using GP. You will get that warning loading any app.

I have the complete installation logs here: https://gist.github.com/jaredvacanti/f8e3591815b45a28d26beecc523a561e

Looks good!

Should this card then be testable with services like https://demo.yubico.com/webauthn-technical/registration or http://u2fdemo.appspot.com/ with this applet installed?

Yes. The easiest way to use it with those services is to use either an Android phone or a iPhone 7 (or later) running iOS 13. In those cases once you go to the site you should be able to tap the card to the back of the phone and it should work. On iOS, it may take a few taps due to a bug in iOS.
If you use a Mac, you can use this hack I wrote to allow you to use the card as a U2F token with any browser (Safari, Chrome, Firefox, etc). It works very well for me.
There is a chance that the U2F applet may "just work" with recent versions of Windows and a smart card reader (either contact or contactless), but I haven't tried.
I haven't looked into how to use it on Linux.

It was mentioned on the FIDO-DEV list a while ago that the insertion of the card could replace the touch action. Is that possible?

Yes, that is how this this applet is configured—although technically it is one "touch action" per card reset rather than insertion.

Thanks for the really great, comprehensive work and feedback. I am testing on an iPhone 7 on 13.3.1, but the card won't register after tens of attempts when using the https://demo.yubico.com/webauthn-technical/registration endpoint, although the Yubikey 5 NFC works straight away on each attempt.
I'm going to attempt your solution on the Mac with the Xcode project to see if there is any issue with the card itself or the installation - hopefully I can get some interaction (nothing yet on iOS or LInux).

Thanks for the really great, comprehensive work and feedback.

No problem!

I am testing on an iPhone 7 on 13.3.1, but the card won't register after tens of attempts when using the https://demo.yubico.com/webauthn-technical/registration endpoint, although the Yubikey 5 NFC works straight away on each attempt.

Interesting. Do you know if your card was pre-personalized to be 14443-A ("NFC Type A") or 14443-B ("NFC Type B")? If it is pre-personalized for Type-B, then you are going to be out of luck on iOS and Android. Both iOS and Android require Type-A FIDO tokens, and refuse to work with Type-B FIDO tokens for some reason.
But even if it is Type-B, you should still be able to use it with my hack on macOS. If not, at least you will get some useful logs that might help identify what is going wrong.

I'm going to attempt your solution on the Mac with the Xcode project to see if there is any issue with the card itself or the installation - hopefully I can get some interaction (nothing yet on iOS or LInux).

Yeah, let me know. The hack is very chatty and logs a lot. And feel free to file an issue over there (or even on my U2F fork) if you run into problems.

Good, installed and personalised successfully :) did not try to use yet but it seems the F0 APDU was the problem. You could reflect this change in README too :) Added this repo to enigma .

I'm still trying to debug further on a Mac, but I have checked that the card's manufacturer part is the NXP SmartMX2 SECID P60D144. The specsheet (available here) states that it uses:

• ISO/IEC 14443 Type A contactless interface unit optimized also for small antenna dimensions

Could the card be manufactured for Type A but personalized for Type B, or is this only a hardware/manufacturer level issue?

Derp, looks like that chip only does 14443A. Some chips can do both, but it looks like this one doesn’t. There goes that theory. Hmm.
Can you get the ATS value? I’ll see if I can scrape up a iPhone 7 and see if it   behaves differently.

Aha! It does seem like this identifies itself with Type (B) somehow when using contactless, due to the possible detection value listed here (ISO 14443 Type B without historical bytes), when used over RFID/NFC:
Sat Apr 11 19:00:24 2020
 Reader 2: Identiv uTrust 3700 F CL Reader [uTrust 3700 F CL Reader]<PHONE_NUMBER>3314) 00 00
  Event number: 53
  Card state: Card inserted,
  ATR: 3B 80 80 01 01

ATR: 3B 80 80 01 01
+ TS = 3B --> Direct Convention
+ T0 = 80, Y(1): 1000, K: 0 (historical bytes)
  TD(1) = 80 --> Y(i+1) = 1000, Protocol T = 0
-----
  TD(2) = 01 --> Y(i+1) = 0000, Protocol T = 1
-----
+ Historical bytes:
+ TCK = 01 (correct checksum)

Possibly identified card (using /home/jayjo/.cache/smartcard_list.txt):
3B 80 80 01 01
	ISO 14443 Type B without historical bytes
	Electronic Passport
	Spanish passport (2012)
	Canadian Passport
	Venez_Prox

Sat Apr 11 19:00:36 2020
 Reader 2: Identiv uTrust 3700 F CL Reader [uTrust 3700 F CL Reader]<PHONE_NUMBER>3314) 00 00
  Event number: 54
  Card state: Card removed,

When I read the same card over contact:
Sat Apr 11 19:02:55 2020
 Reader 3: FEITIAN iR301 01 00
  Event number: 12
  Card state: Card inserted,
  ATR: 3B DC 18 FF 81 91 FE 1F C3 80 73 C8 21 13 66 05 03 63 51 00 02 50

ATR: 3B DC 18 FF 81 91 FE 1F C3 80 73 C8 21 13 66 05 03 63 51 00 02 50
+ TS = 3B --> Direct Convention
+ T0 = DC, Y(1): 1101, K: 12 (historical bytes)
  TA(1) = 18 --> Fi=372, Di=12, 31 cycles/ETU
    129032 bits/s at 4 MHz, fMax for Fi = 5 MHz => 161290 bits/s
  TC(1) = FF --> Extra guard time: 255 (special value)
  TD(1) = 81 --> Y(i+1) = 1000, Protocol T = 1
-----
  TD(2) = 91 --> Y(i+1) = 1001, Protocol T = 1
-----
  TA(3) = FE --> IFSC: 254
  TD(3) = 1F --> Y(i+1) = 0001, Protocol T = 15 - Global interface bytes following
-----
  TA(4) = C3 --> Clock stop: no preference - Class accepted by the card: (3G) A 5V B 3V
+ Historical bytes: 80 73 C8 21 13 66 05 03 63 51 00 02
  Category indicator byte: 80 (compact TLV data object)
    Tag: 7, len: 3 (card capabilities)
      Selection methods: C8
        - DF selection by full DF name
        - DF selection by partial DF name
        - Implicit DF selection
      Data coding byte: 21
        - Behaviour of write functions: proprietary
        - Value 'FF' for the first byte of BER-TLV tag fields: invalid
        - Data unit in quartets: 2
      Command chaining, length fields and logical channels: 13
        - Logical channel number assignment: by the card
        - Maximum number of logical channels: 4
    Tag: 6, len: 6 (pre-issuing data)
      Data: 05 03 63 51 00 02
+ TCK = 50 (correct checksum)

Possibly identified card (using /home/jayjo/.cache/smartcard_list.txt):
3B DC 18 FF 81 91 FE 1F C3 80 73 C8 21 13 66 05 03 63 51 00 02 50
	JCOP3 SecID P60 CS (JavaCard)

Aha! It does seem like this identifies itself with Type (B) somehow when using contactless, due to the possible detection value listed here (ISO 14443 Type B without historical bytes), when used over RFID/NFC:
Sat Apr 11 19:00:24 2020
 Reader 2: Identiv uTrust 3700 F CL Reader [uTrust 3700 F CL Reader]<PHONE_NUMBER>3314) 00 00
  Event number: 53
  Card state: Card inserted,
  ATR: 3B 80 80 01 01

ATR: 3B 80 80 01 01
+ TS = 3B --> Direct Convention
+ T0 = 80, Y(1): 1000, K: 0 (historical bytes)
  TD(1) = 80 --> Y(i+1) = 1000, Protocol T = 0
-----
  TD(2) = 01 --> Y(i+1) = 0000, Protocol T = 1
-----
+ Historical bytes:
+ TCK = 01 (correct checksum)

Possibly identified card (using /home/jared/.cache/smartcard_list.txt):
3B 80 80 01 01
	ISO 14443 Type B without historical bytes
	Electronic Passport
	Spanish passport (2012)
	Canadian Passport
	Venez_Prox

Sat Apr 11 19:00:36 2020
 Reader 2: Identiv uTrust 3700 F CL Reader [uTrust 3700 F CL Reader]<PHONE_NUMBER>3314) 00 00
  Event number: 54
  Card state: Card removed,

When I read the same card over contact:
Sat Apr 11 19:02:55 2020
 Reader 3: FEITIAN iR301 01 00
  Event number: 12
  Card state: Card inserted,
  ATR: 3B DC 18 FF 81 91 FE 1F C3 80 73 C8 21 13 66 05 03 63 51 00 02 50

ATR: 3B DC 18 FF 81 91 FE 1F C3 80 73 C8 21 13 66 05 03 63 51 00 02 50
+ TS = 3B --> Direct Convention
+ T0 = DC, Y(1): 1101, K: 12 (historical bytes)
  TA(1) = 18 --> Fi=372, Di=12, 31 cycles/ETU
    129032 bits/s at 4 MHz, fMax for Fi = 5 MHz => 161290 bits/s
  TC(1) = FF --> Extra guard time: 255 (special value)
  TD(1) = 81 --> Y(i+1) = 1000, Protocol T = 1
-----
  TD(2) = 91 --> Y(i+1) = 1001, Protocol T = 1
-----
  TA(3) = FE --> IFSC: 254
  TD(3) = 1F --> Y(i+1) = 0001, Protocol T = 15 - Global interface bytes following
-----
  TA(4) = C3 --> Clock stop: no preference - Class accepted by the card: (3G) A 5V B 3V
+ Historical bytes: 80 73 C8 21 13 66 05 03 63 51 00 02
  Category indicator byte: 80 (compact TLV data object)
    Tag: 7, len: 3 (card capabilities)
      Selection methods: C8
        - DF selection by full DF name
        - DF selection by partial DF name
        - Implicit DF selection
      Data coding byte: 21
        - Behaviour of write functions: proprietary
        - Value 'FF' for the first byte of BER-TLV tag fields: invalid
        - Data unit in quartets: 2
      Command chaining, length fields and logical channels: 13
        - Logical channel number assignment: by the card
        - Maximum number of logical channels: 4
    Tag: 6, len: 6 (pre-issuing data)
      Data: 05 03 63 51 00 02
+ TCK = 50 (correct checksum)

Possibly identified card (using /home/jared/.cache/smartcard_list.txt):
3B DC 18 FF 81 91 FE 1F C3 80 73 C8 21 13 66 05 03 63 51 00 02 50
	JCOP3 SecID P60 CS (JavaCard)

You can't trust the "ATR" that you see from a contactless card reader that emulates CCID. At best, it is massaging the bits from the ATS to somewhat fit into an ATR. At worst it may just be making it up. So I wouldn't read too much into that.
Getting ahold of the real ATS (the NFC Type-A equivalent to the ATR) can be a little tricky without an android phone handy. If you have an android phone handy, use NXP's TagInfo app. It is wonderful.
Does your reader with with libnfc? If it does, then you can use the nfs-list command to get the actual ATS, along with other info.

And feel free to file an issue over there (or even on my U2F fork) if you run into problems.

Issues aren't currently enabled on this fork. Would you consider enabling them? I've installed the branch successfully from Linux and have used it on a Mac, but so far have not been able to use it from Linux or iOS.


fix: dbt seed grant error

Description
Fixing grant error by doing noop (return true) when copying over grants. All other macros are not called anywhere apart from overloaded macros so are safe to error out when used (because that means they're used incorrectly).
Also adding a flag to jaffle shop test to error on first command. Otherwise it was succeeding despite errors.
This exposed another issue with the query_comment attribute.
Checklist

[x] I have run this code in development and it appears to resolve the stated issue.
[x] This PR includes tests, or tests are not required/relevant for this PR.
[x] I have run changie new and committed everything in .changes folder
[x] I have removed any print or log calls that were added for debugging.
[x] I have verified that this PR contains only code changes relevant to this PR.
[x] If further integration tests are now passing I've edited tests/functional/adapter/* to account for this.
[ ] I have pulled/merged from the main branch if there are merge conflicts.
[ ] After pulling/merging main I have run pytest on the included or updated tests/functional/adapter/.

Also adding ability to run against stg, since there is some type incompatibility in dev.


bug fix found during CI tests

Local variable should have been variable from "common block" - var was uninitializedl fixed now.

Thx


How do you put images in the post?

I tried using ![](link/to/image.jpg)  and ; both don't work - please rectify.

@zyio


[BUG] Extreme FPS Drop ~5 Minutes After Opening Roblox

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[ ] My answer given in the checkbox above is a lie.

What problem did you encounter?
Hello.
Recently, I have discovered a bug where around ~5 minutes after launching roblox, my fps will drop extremely low, normally into the 40s. I have a good laptop, and it normally runs roblox at 200+ fps.
The only way to fix this bug is to restart my entire pc. I have even tried Factory Resetting my computer to see if something was causing an issue, however this doesn't seem to be the case.
This is a bloxstrap issue, not a roblox issue. I have already brought this issue up with roblox support, and they cannot figure the bug out. When using the standalone roblox client, this bug does not occur, however since roblox standalone is really unoptimised my fps is always at around 50fps, making my main game unplayable due to it requiring high precision.
Here is an attached video documenting the issue: https://youtu.be/7ngODs9mUgg
If I can provide anything else, let me know.

I have already brought this issue up with roblox support, and they cannot figure the bug out. When using the standalone roblox client, this bug does not occur

Don't contact Roblox support for issues that don't happen with the standalone client. I'm not sure why you would do that.

however since roblox standalone is really unoptimised

There's something you're neglecting to tell me here. Upload your configuration please: https://github.com/pizzaboxer/bloxstrap/wiki/Uploading-your-Bloxstrap-configuration

Don't contact Roblox support for issues that don't happen with the standalone client. I'm not sure why you would do that.

I contacted them before I figured out that the issue was with Bloxstrap. This was a fault on my part.

There's something you're neglecting to tell me here. Upload your configuration please: https://github.com/pizzaboxer/bloxstrap/wiki/Uploading-your-Bloxstrap-configuration

Sorry, completely forgot to upload these files. I've attached them to this comment.
Settings.json
State.json
ClientAppSettings.json

however since roblox standalone is really unoptimised my fps is always at around 50fps

Are you sure about this? You haven't configured anything in Bloxstrap at all that could affect performance (unless you just reinstalled Bloxstrap). Roblox and Bloxstrap should perform identically according to this configuration.
You're sure that with Roblox standalone you have the framerate limit raised higher than 60, right?

Just checked and realised I didn’t have the fps unlocked in standalone. Unlocking the fps gives me around 110 fps. Sorry for the inconvenience.
Also in my original issue I did provide evidence that shows the bug, and this bug does not happen on standalone AFAIK. I’ve gone as far as factory resetting my pc to see if there was an issue with windows but that has provided no luck.
It is not my hardware as again, this is the only game this happens in.

One last test to fully exclude out Bloxstrap. Go to %localappdata%\Bloxstrap\Versions, open the version folder, delete the ClientAppSettings folder, and directly run RobloxPlayerBeta.exe. See if it still happens there.

Just did this, and the bug still occurs which (i think) means this isn't a bloxstrap issue. I genuinely have no idea what is causing this issue, I've tried everything to fix it.
If this isn't a bloxstrap issue, do you have any idea of what may be causing this? Just something that I could look into to hopefully find this bug.

If this isn't a bloxstrap issue, do you have any idea of what may be causing this? Just something that I could look into to hopefully find this bug.

Can't really help with that, sorry.


MINOR: getRootLogger() should be accessed in static way

@vesense Is this change already incorporated? If yes could you close this PR?

OK


docker execution: trim "image up to date" lines

This line was recently added to docker's output, and is not part of
function execution so should be filtered.
It is also breaking our tests!

A little confused as to how #4114 is passing tests without this, given that others failed.
/hold

Looks like it is "random" e.g. https://github.com/kptdev/kpt/pull/4119#issuecomment-1912813388 ... not removing hold until I figure out why it is "random"

/lgtm
/approve


dependencies have fixed version, conflicting with existing install/plugins

Running
rake redmine:plugins NAME=redmine_revision_branches RAILS_ENV=production

Results in
Could not find coffee-script-source-1.3.3 in any of the sources

Installed with
gem install coffee-script-source --version 1.3.3

Because not specifying a version would result in a different version to be installed. Continued
Could not find execjs-2.2.1 in any of the sources

Installed with
gem install -V execjs --version 2.2.1

Because not specifying a version would result in a different version to be installed.  Continued:
Could not find coffee-script-2.2.0 in any of the sources

Aha! I have already this plugin in a newer version:
gem list | grep coffee-script
coffee-script (2.4.1)
coffee-script-source (1.10.0, 1.3.3)

Could you please make your dependencies more generic, eg. coffee-script >= 2.2.0 <= 3.0.0?
Thanks!

This plugin does not reference or have any dependencies on coffee-script or execjs.  You may want to check your other plugins.


R-T3.4-15: The IaC miner should support Gitlab

ID
R-T3.4-15

Section
WP3: Methodology and Quality Assurance Requirements

Type
FUNCTIONAL_SUITABILITY

User Story
As an Operations Engineer/QoS Engineer/Release Manager, I want to crawl also software repositories in Gitlab.

Requirement
The IaC miner should allow developers to crawl software repositories in Gitlab.

Priority
Should have

Affected Tools
DEFECT_PRED_TOOL

Means of Verification
Direct implementation on IDE, feature checklist, case-study

@gcasale

Approved


RateLimitPolicy status is not accurate when targeting a gateway

The status Message/Reaon mentions HTTPRoute even when the policy is targeting a gateway.
kubectl describe ratelimitpolicy mypolicy
...
Spec:
  Limits:
    Global:
      Rates:
        Duration:  10
        Limit:     10
        Unit:      second
  Target Ref:
    Group:  gateway.networking.k8s.io
    Kind:   Gateway
    Name:  mypolicy
Status:
  Conditions:
    Last Transition Time:  2023-11-27T11:59:43Z
    Message:               HTTPRoute is ratelimited
    Reason:                HTTPRouteProtected
    Status:                True
    Type:                  Available
  Observed Generation:     1

Credits to @david-martin

Closing as addressed in https://github.com/Kuadrant/kuadrant-operator/pull/347, which will be included in the next Kuadrant Operator release

Thanks @KevFan


Cannot play a video downloaded in Quality above than 1080p in mp4

Version
v1.33.3
Platform
Windows 10
Steps to reproduce
Video URL: https://www.youtube.com/watch?v=bB3-CUMERIU
Video Quality: 2160p
Click download
Play the downloaded video
I have tried running the video in windows media player and also in after effects
Details
Expected Behavior: video plays at 2160p resolution fine.
Actual Behavior: Video doesn't play and give this error The Item was encoded in a format that's not supported

Checklist

[X] I have looked through existing issues to make sure that this bug has not been reported before
[X] I have provided a descriptive title for this issue
[X] I have made sure that this bug is reproducible on the latest version of the application
[X] I have provided all the information needed to reproduce this bug as efficiently as possible
[ ] I have sponsored this project
[ ] I have not read any of the above and just checked all the boxes to submit the issue

try webm format？

it works with webm but not mp4

It might just be a missing (proprietary) codec, as it says.
Try downloading the K-Lite Codec Pack: https://codecguide.com/download_kl.htm

so it means you can't do anything and, it just depends on youtube?

Most likely, but try installing the codec pack to ensure it's not just a corrupted video stream

Okay


Impossible to go back to the root namespace

It's currently possible to switch between namespaces:
(namespace 'free)
; Do some stuffs in free
; ....
(namespace 'xxxx)
; Do some stuffs in xxx
; ....
(namespace 'free)
; Do some new stuffs stuffs in free
; ...
; ....

But however there is no way to go back to the root namespace (default when starting a transaction), as soon we have left it.
Neither (namespace "") or (namespace ".") seems to work.

That's a fair point, @CryptoPascal31 - I'd call this a bug.

Implemented by #1174


feat: add multiasset support

@fabianbormann  could you by any chance check if this feature was added to the latest core library? thanks!


Semantic dependent variable retrieval: SimulationVariableDict and result2dict

TL;DR
This pull requests implements semantic dependent variable retrieval using dependent variable settings objects, that is, to obtain time histories (epoch: value maps) of dependent variables with ease, where the value of the dependent variable at each epoch will be either numeric, vectorial, a matrix, etc.:
total_acceleration_history = dep_vars_dict[
    propagation_setup.dependent_variable.total_acceleration("Delfi-C3")
]

Subject to approval and review

API: parent module and name of result2dict function

Table of contents

Usage
In-depth explanation

Usage
This pull request implements the pure Python SimulationVariableDict dictionary-like class and result2dict function, which takes a numerical_simulation.SingleArcSimulator and returns a SimulationVariableDict.
Both live in the tudatpy.utils module. Importing result2dict  is done as follows:
from tudatpy.utils import result2dict

The goal of result2dict and the SimulationVariableDict class is to make dependent variable time history retrieval semantic and straight-forward:
total_acceleration_history = dep_vars_dict[
    propagation_setup.dependent_variable.total_acceleration("Delfi-C3")
]

See the complete example below. As you can see, we can use as keys either the

Original dependent variable settings object (dependent_variables_to_save[0]),

Or a newly created dependent variable settings object (propagation_setup.dependent_variable.total_acceleration("Delfi-C3"))

# General imports
# ...

# Tudat imports
# ...
from tudatpy.utils import result2dict

# Propagation setup
# ...

# Create simulation object and propagate the dynamics
dynamics_simulator = numerical_simulation.create_dynamics_simulator(
    bodies, propagator_settings
)

# Create SimulationVariableDict
dep_vars_dict = result2dict(dynamics_simulator)

# Retrieve the time history (in `dict[epoch: value]` form) of the total acceleration experienced by Delft-C3
total_acceleration_history = dep_vars_dict[
    # This can be done using either the `SingleAccelerationDependentVariableSaveSettings`
    # corresponding to this dependent variable
    dependent_variables_to_save[0]
]
total_acceleration_history = dep_vars_dict[
    # Or a newly created one
    propagation_setup.dependent_variable.total_acceleration("Delfi-C3")
]

In-depth explanation
result2dict
result2dict is a function that takes a numerical_simulation.SingleArcSimulator object, obtains from it the

Dependent variable time histories of the current propagation
Dependent variable settings objects of the current propagation
Obtains the correct shapes of all dependent variables from their settings objects
For each dependent variable, and for each epoch, it retrieves the value of the dependent variable, reshapes it to the correct shape (as Tudat time histories return tabular data, ie the value of a 3x3 matrix at any given epoch is returned as a 1x9 array)
Creates a SimulationVariableDict which associates the dependent variable's ID string to its correct-shape time history

SimulationVariableDict
SimulationVariableDict is a dictionary-like class designed to store and retrieve dependent variable time histories using dependent variable settings objects (instances of VariableSettings-derived classes, check the Tudat API docs for more information about this class).
How are time histories saved in a SimulationVariableDict?
A SimulationVariableDict maps which maps dependent variables, identified by either their
corresponding dependent variable settings object (an instance of a VariableSettings-derived
class) or its string ID, to their time histories.
The time history of each dependent variable is a Python dict which maps epochs (float) to
NumPy arrays (np.ndarray) of shape (A, B):
dict[epoch: np.ndarray[A, B]]

Practical examples:

[1, 1] (a number, most likely a float) for a scalar dependent variable
[3, 1] for a vectorial dependent variable
[3, 3] for a matrix dependent variable, etc.

Can be disregarded and closed when https://github.com/tudat-team/tudatpy/pull/120 is merged


Reveal modal positioning?

Using the Rails gem v. 2.1.0 with Rails and its associated plugins updated to their latest versions.
I just implemented a the vanilla reveal example from the documentation in a hobby app that I'm working on and I'm having problems with the positioning of it. It appears that it is positioning itself relative to other markup on the page and not relative to the browser window.  The docs don't discuss positioning of the modal and I'm having a really hard time determining why it's not appearing at the top of the page.
Can you provide additional information about how the Reveal modal boxes determine their position on the page and/or how I can override the default positioning?

Do you have a  link so we can help figure out what's going on?

Let me get it up and running where you can view and then I'll send you a message with the login details.

Ok, I send you the details in a private message.

I think you set a rule in your css .column, .columns {position: relative;}
The reveal modal is positioned absolute. I don't know why it's not positioned fixed. Possibly to enable scrolling?
So, the absolutely positioned modal is aligning itself to it's first positioned parent ( class="eight columns" ). You could try adding css like this...
.reveal-modal { position:fixed;)
and see if that functions the way you want it

Ok. That's from line 17 of Foundation's grid.css.

ok. i couldn't read your filenames. I'm just a user - not a zurb dev.  You could try the fixed thing or unnesting your modal div and putting it at the bottom of the html.

Actually, I switched to ColorBox for the modals and just wanted to report the bug (if it's a bug and not a mistake of mine). Thanks for the help in locating the issue! I spent hours futzing with it but couldn't find the problem.

I'll be honest, I can't follow the behind-the-scenes side of this convo :)  Is there a bug in Reveal or was it a conflict with other styles?

The problem is, if you put a reveal-modal inside of a column, the reveal modal aligns to that column instead of aligning to the browser window.  I don't know if this is something you can fix or not.
It seems like you could set reveal-modal to position:fixed as a default, but I don't know if you have a reason against it.

Oh, gotcha. Yeah Reveal modals are designed to be placed at the end of the page, not within the layout - we use absolute instead of fixed so you can keep page scrolling (if you want it). Changing that to position:fixed would fit it, though.

Probably best to mention that in the docs, then.
On Nov 30, 2011, at 7:14 PM, Jonathan<EMAIL_ADDRESS>wrote:

Oh, gotcha. Yeah Reveal modals are designed to be placed at the end of the page, not within the layout - we use absolute instead of fixed so you can keep page scrolling (if you want it). Changing that to position:fixed would fit it, though.

Reply to this email directly or view it on GitHub:
https://github.com/zurb/foundation/issues/129#issuecomment-2968907

I ran into a similar issue this morning (using foundation-rails 5.4.5) and resolved it by adding the following to .reveal-modal to fix it and center it on the page:
.reveal-modal.open {
  position:fixed;
  top:50%!important; /* override inline style injected from JS */
  left:50%;
  transform:translate(-50%, -50%);
}


feat(math): binary exp

Updating the pow impl to use binary exponentiation, which is cheaper.

Please check the type of change your PR introduces:

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, renaming)
[x] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?
pow is O(n)
What is the new behavior?
pow is O(log n)
Does this introduce a breaking change?

[ ] Yes
[x] No

Other information
I did a simple benchmark. Stepwise performance is the same for a simple case, the greater the exponent the more efficient this new implementation is.
Added a testcase to check for the whole 2^N range.
FWIW, it's pretty much the same as BitShift::fpow 😁 but without the use of Bitwise ops.

slow pow for small numbers

What do you mean?

@enitrat Were you the one saying that the slow power is more efficient than fast power ?

yes but I didn't run the benchmarks yet. Basically the overhead cost brought by additional div/rem opérations outweigh the gains for small exponents

Yeah, if the test runner can be trusted, the small exponents gas usage stays the same.

ok you win let's merge it


@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

@isuruf pointed to me that we should not enable the service in issue to avoid overloading the system.
You'll have to send a PR for this one :grimacing:

heheh thank you @ocefpaf :+1:


Overload API with Ranges

Currently we provide generator and iterator overloads for many algorithms. Yet, if possible we should also provide some container/range based input.
For example, one would hope to write something like the following:
std::vector<int> vars;
for (int i = 0; i < varcount; ++i) {
  vars.push_back(i);
}
f = adiar::bdd_exists(f, vars);

Additional context
This was noticed by Anna Blume Jakobsen while browsing through the documentation.

Doing so might just be:
template<Range>
__bdd
exists(const bdd &f, Range r)
{ return exists(f, r.rbegin(), r.rend()); }

The only complications might be overload resolution versus the implicit conversion construction of generator<bdd::label_type>.


Some key vault pollers have broken logic

As a result, they might report that an LRO has completed when it's actually still in progress.
We've seen this with azcertificates, there might be other cases.

All pollers should be fixed now.


Release 0.21.0-M4

Based on #2787, but keeps commit lineage for future merges.
Posting as draft, as a couple others just need an approval, and we'll do another merge.

I botched the merge of the #2777 backport here.


Fix for WFLY-18741, Add a github action shared file to build and test WildFly

Issue: https://issues.redhat.com/browse/WFLY-18741
An example of the Galleon plugins Github Actions: https://github.com/jfdenise/galleon-plugins/blob/main/.github/workflows/ci.yml
An Action run: https://github.com/jfdenise/galleon-plugins/actions/runs/6862670363
Another Action run example from Galleon project this time (just validate that build + -Dts.layers tests are passing): https://github.com/jfdenise/galleon/actions/runs/6864936818

@jamezp , thank-you I added usage, notes and followed your suggestions.

Thanks @jfdenise and @jamezp


App crashes on Android 6

The Issue
Odysee Android is crashing when opening on Android 6 and very likely on 5/5.1. This is due to Supplier class not been found, although Google says it is part of the classes been desugared for Android API Level 23 and lower.
A fix is already on the works consisting on removing any usage of Supplier class.
System Configuration

Device: Pixel 4 emulator
Android version: 6

Internal Use
Acceptance Criteria

Definition of Done

[ ]  Tested against acceptance criteria
[ ] Tested against the assumptions of the user story
[ ] The project builds without errors
[ ] Unit tests are written and passing
[ ] Tests on devices/browsers listed in the issue have passed
[ ] QA performed & issues resolved
[ ] Refactoring completed
[ ] Any configuration or build changes documented
[ ] Documentation updated
[ ] Peer Code Review performed

Closed as PR 405 made minimum Androdi version to be 7


ns-install-cli errors

After running the "ns-install-cli" command, the following error was reported

Hi @HaibaraAi6, which version of nerfstudio do you have (you can check with pip list | grep nerfstudio)? Perhaps you could try going into to the main nerfstudio repo, doing a git pull, and running pip install -e . there and trying again. Make sure you have the nerfstudio conda environment active. Let me know if the error persists.

Closing due to inactivity. Feel free to open if issues persist.


Too many branches

You don't need to create a branch for each small update. A repository usually has one or two branches (eg. a 'master' branch and a 'dev' branch). You just have to commit the code and use tags to identify the version of the code. Doing this way, it will be available in the releases tab (https://github.com/terna/SLAPP/releases).
This kind of model (one branch for each small tag) is difficult to track, because we have to checkout the correct branch every time a small update (tag) is issued.

Fixed, many thanks, Pietro (now I've SLAPP2 and SLAPP3 with uniquely the master branch.


Restore part browser open/closed state

Part browser reappearing on every launch gets annoying during development.
Should ‘remember’ whether or not the part browser was open when the app was last quit.

This looks like intended behavior so it must be a bug of some sort.


https://github.com/Automattic/socket.io-redis/issues/43

msgpack -> JSON

JSON doesn't support binary data.


Run Python Command ##[error]Cannot bind argument to parameter 'FileName' because it is an empty string.

I get this error regardless of the values I provide in the task settings

Can you post a screenshot of your settings?

Ah, are you passing an empty "Script" value? Your issue #13 suggests you are, since that'd be the way to notice the typo (unless you were reading source code), and that may also cause this.


BPEACE1 Data Processing

Need to get data together from BPEACE1 Study
In an attempt to gather data from the UTx000 studies that took place this semester, we start with all the data from the first cohort of 2020 - BPEACE1.
Modalities
I am responsible for data from three main sources:

Beacon
Fitbit
Beiwe

Beacon
The beacon data is easy to summarize and has already been done.
Fitbit
The format of the Fitbit data from this study is consistent with the UT1000/2000 studies but not with the latest BPEACE cohort.
Beiwe
Beiwe is a bit more challenging since we have the EMAs as well as data from the cell phone sensors.
EMAs
The EMAs are a little more structured than they have been in the past and code for the second cohort is easily adaptable to this cohort.
Beiwe Data
Beiwe data has typically not been touched by me in the past because it is vast and contains no relevant information for my purposes other than perhaps the GPS data.
Task
As of now, we simply need to resample the data from each of the participants and combine them into one processed data file. From there we can get the number of participants who actively submitted data.

[x] Beacon
[x] Fitbit
[x] Beiwe EMAs
[x] Beiwe Phone Sensors

Downloaded all bpeace1 files (that are relevant) and created basic code to process them.


The problem of "No gulpfile found"

The gule-cli does not support gulp.mjs format until version 2.3.0. However, the package-lock.json file locks version 2.2.0, causing the following error "No gulpfile found" when gulp server is executed after npm install.
package-lock.json -- line 8439,
"node_modules/gulp/node_modules/gulp-cli": {
      "version": "2.2.0",
      "resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.2.0.tgz",
      "integrity": "sha512-rGs3bVYHdyJpLqR0TUBnlcZ1O5O++Zs4bA0ajm+zr3WFCfiSLjGwoCBqFs18wzN+ZxahT9DkOK5nDf26iDsWjA==",
      "dev": true,
      "dependencies": {
        "ansi-colors": "^1.0.1",
        ... ....

The gulp-cli module version 2.3.0 of package-lock.json should be regenerated and submitted.

This shouldn't be a problem if you actually follow https://github.com/mozilla/pdf.js#getting-the-code, since it explicitly tells you to run $ npm install -g gulp-cli before running $ npm install.


Logitech HID++/Bluetooth devices are detected twice with different info

As described here https://gitlab.freedesktop.org/upower/upower/-/issues/166 some devices are detected twice by upower due to an underlying kernel behavior related to some HID++ logitech driver, this therefore makes it so those devices are displayed twice in wireless-hid
The solution proposed to upower was to deduplicate those devices using the device serial number, but seems like for now that proposal was rejected. I believe we could do that deduplication instead in the gnome-shell extension.
I could send a PR with this, would such a contribution be accepted?

Wasn't this sorted with https://gitlab.freedesktop.org/upower/upower/-/merge_requests/166?
If you're having issues with duplicate entries with the latest version of UPower, I'd recommend filing an issue upstream, as then everyone that uses UPower benefits, and it's one less workaround needed in this project.

I can confirm that indeed the issue is solved by updating to latest upower. Thanks a lot for checking it out, seems my search or understanding of that issue wasn't the best. For anyone in Ubuntu like me, you can update to the latest upower with the packages found in Launchpad


Error: Cannot find module 'lodash.defaults'

is it need to install lodash?
but when i install lodash ,it still not work

lodash is not used here, where do you see this error?


Release 1.5.0

this looks ok to me, with 2 possible problems down the road.  It enables health-probe and support of app-support-prototype (not called helx-apps) and Jenkinsfile will need to be altered pretty soon as the CI/CD pipeline is fully realized.


use the sum of hit and miss for total in pcm-pcie tool

PCM::programPCIeCounters  and PCM::programPCIeMissCounters count for HIT and MISS.
In this commit,  TOTAL = HIT + MISS.

@xerothermic https://github.com/opcm/pcm/issues/68
THX!

implemented in the main branch


Phishpedia GUI tool --version 1

$ python phishpedia_gui.py
to use this tool

fix color  and  add  more page to develop in the future


#2543 ability for system to remember user preferences in RESOURCES at each login e.g. resources labels toggled off, hover on etc

This change is

Reviewed 8 of 8 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


IPIP mode does not support ECMP routing

In my cluster, the ipipMode is Always for IP Pool <IP_ADDRESS>/16, as below:
apiVersion: projectcalico.org/v3
kind: IPPool
metadata:
  name: controlplane-services-cidr
spec:
  blockSize: 26
  cidr: <IP_ADDRESS>/16
  disabled: true
  ipipMode: Always
  nodeSelector: all()
  vxlanMode: Never

When there are multiple next hops, below routes are generated, and they are not using tunl0
<IP_ADDRESS>/16 proto bird
	nexthop via <IP_ADDRESS> dev ens3 weight 1
	nexthop via <IP_ADDRESS> dev ens3 weight 1

When there is only one next hop, below route is generated, and it's using tunl0:
<IP_ADDRESS>/16 via <IP_ADDRESS> dev tunl0 proto bird onlink

Expected Behavior
I hope it generates the routes with tunl0 as below when there are multiple next hops
<IP_ADDRESS>/16 proto bird
	nexthop via <IP_ADDRESS> dev tunl0 weight 1
	nexthop via <IP_ADDRESS> dev tunl0 weight 1

Context
I have two k8s clusters, and each cluster has a node as route reflector, and the two route reflectors are peered. Each cluster broadcasts its service cidr to other cluster, and I need all traffic are IPIP.
Your Environment

Calico version: 3.17
Orchestrator version (e.g. kubernetes, mesos, rkt): kubernetes
Operating System and version: 4.15.0-109-generic #110-Ubuntu SMP Tue Jun 23 02:39:32 UTC 2020 x86_64 Linux

@JimmyMa interesting. I think this scenario is a bit outside the set of use-cases that Calico typically handles, but it might be workable.
If I understand correctly, you have two clusters with the same Service CIDR, and you want to advertise ECMP routes for that Service CIDR so that traffic to a service IP is split equally between the two clusters?
If I had to guess, I would say we probably haven't implemented IPIP route programming for ECMP routes in our BIRD code, since I don't think we expected ECMP routing to ever occur for IPIP mode.
CC @neiljerram

@caseydavenport We have internal tracking for this at https://tigera.atlassian.net/browse/CNX-10379.  I'm afraid @JimmyMa won't be able to see that directly, but the summary is exactly as you say: we made some Calico-specific patches to BIRD to handle IP-IP routes, and unfortunately those patches don't work in the ECMP case.

@caseydavenport @neiljerram thank you for the comments. I think this change https://github.com/projectcalico/confd/pull/379 enabled the ECMP in bird, but the generated routes in kernel are incorrect for ipipMode.

@JimmyMa Yes, that confd change enables BIRD to program ECMP routes into the kernel.  But we are still missing some support in the BIRD code.

@JimmyMa I've created https://github.com/projectcalico/bird/issues/90 (an issue in our BIRD fork repo) to publish everything that we know about why the ECMP + IP-IP combination does not work.  Please take a look and feel free to comment or to contribute towards possible solutions.

@JimmyMa  I have been thinking about this problem again, and am wondering if the apparent problem is in fact solved by the routing for <IP_ADDRESS>.  In other words, if there is a single path route for the pod block
<IP_ADDRESS>/16 via <IP_ADDRESS> dev tunl0 proto bird onlink

but there is an ECMP route to get to <IP_ADDRESS>, such as
<IP_ADDRESS> proto bird
	nexthop via <IP_ADDRESS> dev ens3 weight 1
	nexthop via <IP_ADDRESS> dev ens3 weight 1

then perhaps we would see repeated connections to a pod in <IP_ADDRESS>/16 (with different source ports, and assuming fib_multipath_hash_policy=1) using both underlying ECMP paths, as a result of the 2-step routing resolution.
If so, doesn't that mean that the single path IPIP route here is actually fine?

I tested this last week - although with a VXLAN overlay instead of IPIP - and it broadly appears that it does work as suggested in my previous comment.
I created a test server pod running
nc -l -k <IP_ADDRESS> 8888

and a test client pod running
for sp in 30001 30002 30003 30004 30005 30006 30007 30008 30009; do echo hello$sp | nc -N -p $sp <IP_ADDRESS> 8888; done

and used tcpdump to observe traffic through the two NICs of the client pod's node
tcpdump -i eth0 -n -v  udp port 4789 and dst <IP_ADDRESS>
tcpdump -i eth1 -n -v  udp port 4789 and dst <IP_ADDRESS>

<IP_ADDRESS> is the IP of the server pod and <IP_ADDRESS> is the stable IP of the server pod's node.
Good observations:

tcpdumps showed that both NICs were being used.
When I disabled eth0 on the source node and repeated the test, all the connections succeeded using eth1.

However, I expected that the connection for a given source port would reliably use the same NIC for all of its outbound packets, and that was not the case.  Instead - for example - I saw the outbound SYN go through eth1, but then the outbound SYN ACK would go through eth0, and then the data packet for that connection would also go through eth0.
More research is needed to understand why that happens, instead of seeing a reliable association from 4-tuple to NIC.


Add content/pt-br/containerization.md

Add containerization.md localization to ptbr.

Thanks @jessicalins all of your suggestions are applied :D


GeographyPointJsonConverter with nulls

If the schema includes a GeographyPoint which isn't populated and therefore is null then an exception is thrown.

Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Current JsonReader item is not an object: Null. Path 'location'.     at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)     at AzureSearchToolkit.Json.GeographyPointJsonConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)

Not all items in my search index are geotagged and I suspect others may have the same scenario.
Would be great to see this fixed with a nuget update.

Fixed in 0.6.1


Flashlist seems like overrides the allowHeaderOverscroll to true  if there isn't enough content to fill the screen

Hi, I noticed this issue when I was changing my tabs written with react-native-tab-view to this package. It seems that when you try to refresh flashlist refresh control appears at the top (just like setting allowHeaderOverscroll to true) , when there isn't enough items within the flashlist. I modified the example project and get the same results. Here are the differences;

example/src/FlashList.tsx:
comment out allowHeaderOverscroll prop
example/src/Shared/ExampleComponentFlashList.tsx:
replace <ContactsFlatList emptyContacts={emptyContacts} limit={5} /> with <ContactsFlashList emptyContacts={emptyContacts} limit={5} />. (update the last tab to have a flashlist with less items)

https://github.com/PedroBern/react-native-collapsible-tab-view/assets/56448237/bd0e5003-0136-4d82-92cf-ef3c1681f831

any updates?

I don't believe there has been any update. I had to use regular Flatlist for my case.

This is a duplicate of https://github.com/PedroBern/react-native-collapsible-tab-view/issues/335
It's an upstream limitation with FlashList.


add Interceptors in doc in Default service container replacement

add Interceptors in doc in Default service container replacement

@anurse ... those sound :ear: pretty cool ... Interceptors! 🚀 :smile: lol
Seriously tho ... best to check with you while we're here. Are there any changed that you would like to make to ...

The built-in service container is designed to serve the needs of the framework and most consumer apps. We recommend using the built-in container unless you need a specific feature that the built-in container doesn't support, such as:

Property injection
Interceptors
Injection based on name
Child containers
Custom lifetime management
Func<T> support for lazy initialization

Since this is a list of things other containers provide that ours does not, it's technically an unknowable set :). I guess if another DI container has something called Interceptors it's worth putting in?

@EngRajabi ... What is an 🚀 Interceptor :rocket: ...... besides a type of spacecraft used to engage rapidly advancing enemy ships? :smile: lol ........... (you gotta have some fun around here lol)
Anyway ... just curious what it is? Do you have a link?

@EngRajabi Since we're not really sure what that is and this is isn't going to ever be a complete list of every possible scenario in 3rd party containers that ASP.NET Core's container offers, I think we should limit the list to limit the length of the topic. Thanks tho for submitting it, and we look forward to hearing more feedback from you.


Several issues with getSemanticHTML not preserving html represented in editor

Quill documentation describes getSemanticHTML  as:

Get the HTML representation of the editor contents. This method is useful for exporting the contents of the editor in a format that can be used in other applications.

It's should be a useable HTML representation of the editor contents. Critical requirement for using Quill as a form widget.
What happens is that the HTML is not preserved for syntax, video, formula blocks or check lists. Of those, only the syntax block is recoverable (by reapplying highlightjs on render), information necessary for video and formula are lost while check list requires some wrangling in javascript on render.
Syntax block:
The syntax highlighting markup is stripped out. The code block is instead just wrapped by a
 tag.
Editor:

    <select class="ql-ui" contenteditable="false">
        ....
    </select>

def is_absolute_url(url):

 parsed_url = urlparse(url)

 return bool(parsed_url.scheme and
        parsed_url.netloc)

getSemanticHTML:

def is_absolute_url(url):
    parsed_url = urlparse(url)
    return bool(parsed_url.scheme and parsed_url.netloc)

At the very least, this should be
...
 otherwise this is just rendered as plain text with whitespace preserved ... but why strip out the formatting? This means highlight.js needed to be reapplied on each render.
Video block
iframes inserted from Quill video block are stripped and replaced by a hyperlink.
Editor:

getSemanticHTML:
https://www.youtube.com/embed/2o0zV4VOQ54?showinfo=0

Playground example.
The iframe needs to be preserved along with all attributes.
Formula block:
The katex markup is stripped out and replaced with a plain text span:
Editor:

                    <math xmlns="http://www.w3.org/1998/Math/MathML">
                        <semantics>
                            <mrow><mi>y</mi><mo>=</mo><msup><mi>x</mi><mn>2</mn></msup></mrow>
                            <annotation encoding="application/x-tex">y=x^2</annotation>
                        </semantics>
                    </math>

                        y
                        =

                        x

                                                2

getSematicHTML:

    y=x^2

katex markup should be preserved. At the very least, some identifier that this is a Quill formula block so that katex can be applied on render (this is not a favourable solution though).
Check lists
A single check list is converted to one unordered list per list item.
Editor:

one

two

three

getSemanticHTML:

one

two

three

This needs to be preserved as a single unordered list.

I'm having problems too, when using text-align in the list format, in the semantic version the align is removed
Editor:

one

two

three

getSemanticHTML:

one

two

three

This causes the list alignment to not be maintained if the HTML is exported to be used somewhere else

Hi, you can, temporary, fix LI display using this less code.
But, you definitly loose alignment...
    ol,ul {         padding-left: 21px;         li {             >ol, >ul {                 padding-left: 42px;             }             padding-left: 21px;             list-style-type: none;                         &:before {                 display: inline-block;                 margin-left: -21px;                 margin-right: 4px;                 text-align: right;                 white-space: nowrap;                 width: 17px;                 content:'\2022';             }                     }             }       ul {         li {             &:before {                 content:'\2022';             }         }     }     .ms-pub-body>ol {         counter-reset: ol1;         >li {             counter-increment: ol1;             &:before {                 content:counter(ol1, decimal) '. '             }                         >ol {                 counter-reset: ol2;                 >li {                     counter-increment: ol2;                     &:before {                         content:counter(ol2, lower-alpha) '. ';                         margin-right: 2px;                         width: 19px;                                             }                                 >ol {                         counter-reset: ol3;                         >li {                             counter-increment: ol3;                             &:before {                                 content:counter(ol3, lower-roman) '. ';                                 margin-right: 2px;                                 width: 19px;                               }                                 >ol {                                 counter-reset: ol4;                                 >li {                                     counter-increment: ol4;                                     &:before {                                         content:counter(ol4, decimal) '. '                                     }                                                 >ol {                                         counter-reset: ol5;                                         >li {                                             counter-increment: ol5;                                             &:before {                                                 content:counter(ol5, lower-alpha) '. '                                             }                                                         >ol {                                                 counter-reset: ol6;                                                 >li {                                                     counter-increment: ol6;                                                     &:before {                                                         content:counter(ol6, lower-roman) '. ';                                                         margin-right: 2px;                                                         width: 19px;                                                       }                                                           >ol {                                                         counter-reset: ol7;                                                         >li {                                                             counter-increment: ol7;                                                             &:before {                                                                 content:counter(ol7, decimal) '. '                                                             }                                                                 >ol {                                                                 counter-reset: ol8;                                                                 >li {                                                                     counter-increment: ol8;                                                                     &:before {                                                                         content:counter(ol8, lower-alpha) '. '                                                                     }                                                                                >ol {                                                                         counter-reset: ol9;                                                                         >li {                                                                             counter-increment: ol9;                                                                             &:before {                                                                                content:counter(ol9, lower-roman) '. ';                                                                                margin-right: 2px;                                                                                width: 19px;                                                                               }                                                                                }                                                                     }                                                                                }                                                             }                                                                                }                                                     }                                                                                }                                             }                                                                                }                                     }                                                                         }                             }                                                             }                     }                 }             }         }     }

I had the same issue with the Video block, which I managed to find out why and solved it locally without waiting for Quill to make adjustments to how they generate the html from the getSemanticHTML() call. It is worth fixing in core for sure, but many times, we need certain things to work differently than the default anyway.
First, below is what the current Video block class looks like in Quill at the location quill/formats/video.js.
class Video extends BlockEmbed {
  static blotName = 'video';
  static className = 'ql-video';
  static tagName = 'IFRAME';
  static create(value) {
    ...
  }
  static formats(domNode) {
    ...
  }
  static sanitize(url) {
    ...
  }
  static value(domNode) {
    return domNode.getAttribute('src');
  }
  format(name, value) {
    ...
  }
  html() {
    const {
      video
    } = this.value();
    return `<a href="${video}">${video}</a>`;
  }
}

You will notice that the class has an instance method of html() that just return a hyper link rather than the actual iframe code block. They only use the URL of the video as a link.
To solve this, I created my own class and named it VideoBlot that extends the original Video class and used that in my setup rather than the original. Here is the simple change to make with the html() method:
class VideoBlot extends Video {
  ...
  html () {
    return this.domNode.outerHTML;
  }
}

The return this.domNode.outerHTML; line is what is returning the actual block's html code intact rather than changing it for a basic link for some strange reason. I normally try to make my own class blots, even for built-in ones, as I normally need to override something. For example, at times I need to allow the style attribute to be used and not stripped out.
I hope this helps someone out there, and I assume that the same thing can be applied to the other Quill blocks mentioned in this issue by @enzedonline.

The fixes I'm using for code-block and video in case anyone needs:
Code (also available via npm i quill-syntax-code-block-container-html)
const QuillCodeBlockContainer = Quill.import('formats/code-block-container') as any;

class CodeBlockContainer extends QuillCodeBlockContainer {
    html(index: number, length: number): string {
        // Quill returns
...
 - highlight js doesn't recognise this format
        // return html formatted for hljs :
...

        // wrap the innerHTML of the returned
 in a  tag
        // add the hljs language class to the code tag using the data-language value of the
 tag
        const markup: string = super.html(index, length);
        const tempDiv: HTMLElement = document.createElement('div');
        tempDiv.innerHTML = markup;
        const preTag: HTMLElement | null = tempDiv.querySelector('pre');
        if (preTag) {
            const language: string = preTag.getAttribute('data-language') || '';
            const codeTag: HTMLElement = document.createElement('code');
            if (!!language) {
                codeTag.className = `language-${language}`;
            }
            codeTag.innerHTML = preTag.innerHTML;
            preTag.innerHTML = '';
            preTag.removeAttribute('data-language');
            preTag.appendChild(codeTag);
            return preTag.outerHTML;
        }
        return markup; // fallback
    }
}

Quill.register('formats/code-block-container', CodeBlockContainer, true);

Video (also adds aspect-ratio and full width instead of the default postage-stamp):
const VideoEmbed = Quill.import("formats/video") as any;

class VideoResponsive extends VideoEmbed {
    static aspectRatio: string = "16 / 9 auto"
    static create(value: string) {
        const node = super.create(value);
        node.setAttribute('width', '100%');
        node.style.aspectRatio = this.aspectRatio;
        return node;
    }
    html () {
        return this.domNode.outerHTML;
    }
}

I am also experiencing the problem caused by different list formatting in the editor vs. what's returned in getSymanticHTML():
Here's an example in which one list containing both numbered items and bullets in the editor is treated as three lists in getSymanticHTML:
In the editor:
`
Number One
Number Two
First Bullet
Second Bullet
Number Three
`
![image](https://github.com/user-attachments/assets/108818fd-bf8c-4661-abb8-45e1a30d648c)
Returned by getSymanticHTML():
`
Number One
Number Two

First Bullet
Second Bullet

Number Three

`
![image](https://github.com/user-attachments/assets/5cbdf758-67b7-42e4-98b7-d9033a5ebc13)
Ideally the editor and getSymanticHTML would be consistent.


overlapping of button in admin Dashboard

Description
In admin dashboard inside Subject, there are 4 subjects which has 3 buttons which are overlapping .
Screenshots

Additional information
Please assign this issue to me under Gssoc
What browser are you seeing the problem on?
Chrome
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I want to work on this issue. (optional)

Similar issue exists and already assigned. closing this one, kindly look for other issues.


China google……

what version of gradle are you on?  The latest version the library requires at gradle 3.

my gradle 3.3.I think so is China can't access Google

@appaaaa What version of gradle have you updated?

In China you need to modify the node_modules/react-native-network-info/android/build.gradle
    repositories {
        jcenter()
        google()
    }

replace
   repositories {
        jcenter()
        maven{ url 'http://maven.aliyun.com/nexus/service/local/repositories/google/content/'}
    }

OMG, you are god.
In Japan, the same solution is valid ......

I have the same problem!!!!

I have solved it ！
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}

using  google()  is a shortcut to Google's maven repo and was introduced in Gradle 4.  If you are on Gradle 3 or below you will need to change it to the code above.


Vagrant fails for win2012r2-client-chocolatey

See #891

I'm not finding sensu on chocolatey website
https://chocolatey.org/packages?q=sensu
https://chocolatey.org/packages?q=sensu-client
Found a rejected package: https://chocolatey.org/packages/sensu-client

@portertech You know where the chocolatey packages are?

Asking for chocolatey packages in https://github.com/sensu/sensu/issues/1874

This does not seem like it is going to be addressed by Sensu 1 as focus is on moving to Sensu 2.


[data-plane] refresh iot-device-update-rest sdk

https://github.com/Azure/azure-sdk-for-js/issues/30680

/azp run js - deviceupdate - ci

API change check
APIView has identified API level changes in this PR and created following API reviews.
@azure-rest/iot-device-update


Wandb Flatten Dict

Wandb logger should flatten the dictionary of parameters before logging. Every other logger has the bellow pattern of code:
 params = self._convert_params(params)
 params = self._flatten_dict(params)

🐛 Bug
Wandb logger does not flatten parameters resulting in dictionaries being logged to Wandb, which are not searchable causing for some loss of features in wandb.
To Reproduce
Run the cpu_template with wandb logger, and log a nested dictionary.
Expected behavior
Solution, just call   params = self._flatten_dict(params) this in the wandb logger.
Environment

CUDA:

GPU:
available:         False
version:           None

Packages:

numpy:             1.18.5
pyTorch_debug:     False
pyTorch_version:   1.5.0
pytorch-lightning: 0.8.4
tensorboard:       2.2.2
tqdm:              4.46.1

System:

OS:                Darwin
architecture:

64bit

processor:         i386
python:            3.7.7
version:           Darwin Kernel Version 19.4.0: Wed Mar  4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64

Is this what you mean?
I agree, it would be nice if we could flatten that out.


Managing API keys

Fixes #853

@elisalimli would mind describing how you implement this? Hard for me to follow exactly what happens.

@homanp adds ability to manage API keys (JWT tokens). Previously we was offering only one API key, so people was not able to re-create or change it in any way. Now they can :)

@homanp That's a intended decision. That API key is saved in the database. And used for all the requests over all the app.

@elisalimli Good work on this!


Incremental compilation randomly produces a broken bundle with ES modules

Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
When working with --watch, about 50% of the time, one or more modules are not re-included in the bundle, causing the app to fail spectacularly (undefined variables).
The bundle can go from OK to BROKEN with the tiniest change such as modifying a text node string from 'Besoin d\'aide?' to 'Besoin d\'aide????'. Changing back and forth can suffice to "fix" the bundle back. Changing a CSS module's content can also trigger the bug. It's pretty random.
This bundle incrementally compiled OK:
https://gist.github.com/AlexGalays/0638cf5bfadc95da5ea788976f4e8fdc
After changing some random characters,
This one didn't
https://gist.github.com/AlexGalays/8626456b39e92f80f8752b51c68d9d9d
Error gotten at runtime:
can't set property prototype on undefined value (NumberOps)
One can see that in the OK bundle, the following line is included, as expected:
var NumberOps = makeOps();
But it's absent from the broken bundle (hence the undefined value)
If the current behavior is a bug, please provide the steps to reproduce.
It's not that easy to setup :

Using ES node modules almost exclusively (the bug always targets some ES modules) by way of the package.json's module field.
I have zero circular dependencies (verified with circular-dependency-plugin even across node_modules)
Which module doesn't get included in the bundle is pretty random

Here are the plugins used in dev and prod :
const path = require('path')
const webpack = require('webpack')
const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const StyleLintPlugin = require('stylelint-webpack-plugin')
const CircularDependencyPlugin = require('circular-dependency-plugin')

module.exports = ({ filename, isProd }) => {
  const extractCSS = new ExtractTextPlugin(filename)

  const uglifyJS = new webpack.optimize.UglifyJsPlugin({
    compress  : { warnings: false },
    output    : { comments: false },
    sourceMap : false
  })

  const styleLinter = StyleLintPlugin({
    configFile  : path.resolve(__dirname, '../stylelint.json'),
    files       : '**/*.less',
    emitErrors  : isProd
  })

  const defineEnv = new webpack.DefinePlugin({
    env: {
      isProd: `${isProd}`,
      isDev: `${!isProd}`
    }
  })

  const circularDeps = new CircularDependencyPlugin({
    failOnError: true
  })

  const moduleConcat = new webpack.optimize.ModuleConcatenationPlugin()

  return [extractCSS, styleLinter, defineEnv, circularDeps]
    .concat(isProd ? [uglifyJS, moduleConcat] : [])
}

What is the expected behavior?
The incremental build should be predictive.
When building in production mode, it always works (even with ModuleConcatenationPlugin + uglify), or at the very least, failures are very rare since none were encountered after many attempts.
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

Any browser
MAC OS 10.12
Reproduced with webpack 3.5.7, though the gist outputs were generated by webpack 3.4.1
Node.js v6.3.0

Tell me if you need more infos :)

Can't reproduce anymore, it's possible some circular dependencies were still present at the time this was tested; will keep you posted :)


xCode 7 beta 5 warning for synthesis

In SKSplashIcon.m, animationDuration var is not synthesized. I keep getting this warning:
Auto property synthesis will not synthesize 'animationDuration'; it will be implemented by it's superclass, use @dynamic to acknowledge intention.
If you synthesize animationDuration, the warning goes away.

delete that line will also solve the issue

Fixed in c5e45c0


action to make user admin

maybe a console route could be used for this, to exemplify how to use expressive for console applications
https://xtreamwayz.com/blog/2016-02-07-zend-expressive-console-cli-commands


Added useInnerPopulate option to populate

populate, when including records from a child service, ignores any populate hooks defined for that child service. The userInnerPopulate option will run those populate hooks.
This allows the populate for a base record to include child records containing their own immediate child records, with the populate for the base record knowing what those grandchildren populates are.
Resolves https://github.com/feathersjs/feathers-hooks-common/issues/186

Resolves https://github.com/feathersjs/feathers-hooks-common/issues/186 and will be included with v3.4.0.


Update enroll-a-windows-10-device-automatically-using-group-policy.md

There was a reference to Windows 10, version 1611 in the doc - there is no such thing.  I assume it should have been 1511, made that change.  If it needs to be something else (e.g. 1607) then feel free to correct.

@mtniehaus,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

Thanks for your contribution Michael!  I tracked down the correct version today: 1607.  If you would like to update your pull request with the correct version, we will gladly accept the change.

OK, I’ve updated it to 1607 using the same pull request.
Thanks,
-Michael
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
[HxS - 16299 - 16.0.8700.4009]

From: nickbrower<EMAIL_ADDRESS>Sent: Wednesday, October 4, 2017 7:53:15 PM
To: MicrosoftDocs/windows-itpro-docs
Cc: Michael Niehaus; Mention
Subject: Re: [MicrosoftDocs/windows-itpro-docs] Update enroll-a-windows-10-device-automatically-using-group-policy.md (#300)
Thanks for your contribution Michael! I tracked down the correct version today: 1607. If you would like to update your pull request with the correct version, we will gladly accept the change.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/windows-itpro-docs/pull/300#issuecomment-334321717, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQMhGApzt7-W8RO8njd1yQJtKMB5D7m2ks5spBprgaJpZM4PuD9g.


Selendroid returning incorrect bounds for ImageView

Using Selendroid I'm failing to be able to click on an object.  I printed out bounds of several objects on the screen:
#<struct Selenium::WebDriver::Point x=1440, y=231> #<struct Selenium::WebDriver::Point x=366, y=993> #<struct Selenium::WebDriver::Point x=4, y=993>
First element x-coordinate struck me as odd.  I then ran the same script but with uiautomator instead of instrumentation (Appium android driver) and the results:
#<struct Selenium::WebDriver::Point x=0, y=231> #<struct Selenium::WebDriver::Point x=366, y=993> #<struct Selenium::WebDriver::Point x=4, y=993>
As you can see, the only coordinate differing is the first x-coordinate.  I'm also unable to flick this object using Selendroid.  I suspect the coordinate discrepancy is causing several issue when trying to interact with this object.
The object in question is android.widget.ImageView, nested in a android.widget.RelativeLayout, which is nested in android.support.v4.view.ViewPager
It gets increasingly interesting when I try to click on the ViewPager item that contains the ImageView.  If I spit out the coordinates I get #<struct Selenium::WebDriver::Point x=0, y=231> and clicking on the object now works!

I'm closing this issue due to inactivity.
If is a question rather than an issue, please send questions to the selendroid user group.
If you think it's an actual problem with selendroid and still experience the issue described on the latest release of selendroid feel free to file a new issue. If you do please provide a concise reproducible test case and describe what results you are seeing and what results you expect.


cosmopolitan: init at 20210228

Currently only builds the 5 artifacts needed.
Motivation for this change
Begin the inclusion of APE and the Cosmopolitan libc. #113195
Things done
package and build the libc

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

We rely on the bundled compiler that's in the github repos. We probably shouldn't, I'll work on that.

Done in this branch. Needs to be gcc9 because there's a few spots that won't compile with gcc10.
Upstream says that

A modern C compiler that's statically-linked comes included as a courtesy.

so we shouldn't lose any magic by doing this.

Adopted the fixups from @lourkeur and @SuperSandro2000 . Not sure why the homepage is forbidden in the ofborg checks.

Adopted the fixups from @lourkeur and @SuperSandro2000 . Not sure why the homepage is forbidden in the ofborg checks.

That's not the homepage that's the builtins.fetchGit we both told you about. It's github, not justine.lol.

Wait you didn't change anything. Tooling issues?

Wait you didn't change anything. Tooling issues?

Forgot to push. Incomming......

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 114628 run on x86_64-darwin 1

1 package failed to build and already failed to build on hydra master:

cosmopolitan: plain log  |  pretty log

Result of nixpkgs-review pr 114628 run on x86_64-darwin 1

1 package failed to build:

cosmopolitan

Arbitrary restriction?
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/is2rxh78zp4gm01g384dgcfbkjcj3qkp-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
patching script interpreter paths in build/
build/getcompile: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/gdb: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/actuallynice: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/realify.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/findtmp: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/bash"
build/bochs-scriptable: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/bochs-debugger: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/sanitycheck: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/ssh: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/rollup: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/getccversion: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/catcode: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/includeall: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/hello: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/htags: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
@nix { "action": "setPhase", "phase": "buildPhase" }
building
build flags: -j4 -l4 SHELL=/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/bash SHELL=/bin/sh AS=as CC=gcc GCC=gcc CXX=g++ LD=ld OBJCOPY=objcopy MKDIR=mkdir\ -p

ERROR

  Want Linux Build Environment

DETAILS

  Cosmopolitan builds binaries that run on all major platforms.
  You need to compile them on Linux, using any distro you like.
  Consider setting up Alpine, Debian, or Ubuntu in a VMWare VM.

/nix/store/z5lqvdfzr85n4lahnqm5z368r505hmys-stdenv-darwin/setup: line 1035: 12910 Terminated: 15          make ${makefile:+-f $makefile} "${flagsArray[@]}"
(END)

Do we need cosmopolitan.a? It is 51MB of the ~70MB the package is.
drwxrwxr-x hotpi hotpi 4.0 KB Fri Mar  5 17:54:51 2021 results
└── lrwxrwxrwx hotpi hotpi 74 B Fri Mar  5 17:54:51 2021 cosmopolitan ⇒ /nix/store/kra2d7gl7db0spa1yx2d0p0wfksp1wny-cosmopolitan-unstable-20210228
   ├── dr-xr-xr-x root root 4.0 KB Thu Jan  1 01:00:01 1970 bin
   │  └── .r-xr-xr-x root root 534 B Thu Jan  1 01:00:01 1970 cosmoc
   └── dr-xr-xr-x root root 4.0 KB Thu Jan  1 01:00:01 1970 lib
      ├── .r-xr-xr-x root root  91 KB Thu Jan  1 01:00:01 1970 ape.lds
      ├── .r-xr-xr-x root root  20 KB Thu Jan  1 01:00:01 1970 ape.o
      ├── .r-xr-xr-x root root  51 MB Thu Jan  1 01:00:01 1970 cosmopolitan.a
      ├── .r-xr-xr-x root root 3.4 KB Thu Jan  1 01:00:01 1970 crt.o
      └── dr-xr-xr-x root root 4.0 KB Thu Jan  1 01:00:01 1970 include
         └── .r-xr-xr-x root root 1.2 MB Thu Jan  1 01:00:01 1970 cosmopolitan.h

Do we need cosmopolitan.a? It is 51MB of the ~70MB the package is.
drwxrwxr-x hotpi hotpi 4.0 KB Fri Mar  5 17:54:51 2021 results
└── lrwxrwxrwx hotpi hotpi 74 B Fri Mar  5 17:54:51 2021 cosmopolitan ⇒ /nix/store/kra2d7gl7db0spa1yx2d0p0wfksp1wny-cosmopolitan-unstable-20210228
   ├── dr-xr-xr-x root root 4.0 KB Thu Jan  1 01:00:01 1970 bin
   │  └── .r-xr-xr-x root root 534 B Thu Jan  1 01:00:01 1970 cosmoc
   └── dr-xr-xr-x root root 4.0 KB Thu Jan  1 01:00:01 1970 lib
      ├── .r-xr-xr-x root root  91 KB Thu Jan  1 01:00:01 1970 ape.lds
      ├── .r-xr-xr-x root root  20 KB Thu Jan  1 01:00:01 1970 ape.o
      ├── .r-xr-xr-x root root  51 MB Thu Jan  1 01:00:01 1970 cosmopolitan.a
      ├── .r-xr-xr-x root root 3.4 KB Thu Jan  1 01:00:01 1970 crt.o
      └── dr-xr-xr-x root root 4.0 KB Thu Jan  1 01:00:01 1970 include
         └── .r-xr-xr-x root root 1.2 MB Thu Jan  1 01:00:01 1970 cosmopolitan.h

Unfortunately yes: it's the standard library of cosmopolitan C, all non-trivial cosmopolitan C programs would depend on it.

Is this good to merge?
@lourkeur: my next thought was to start to utilize this in something like a pkgsApe (similar to pkgsStatic, pkgsMusl).

Is this good to merge?

If we take care of darwin.

My current understanding is that Cosmopolitan needs a compiler that targets x86_64-linux to operate. (see this article about Windows) So maybe we can use one of our cross compilers? Can someone on Darwin check out my branch at https://github.com/lourkeur/nixpkgs/tree/crossmopolitan? @tomberek if that fails probably remove it from meta.platforms for now.
Maybe at some point Cosmopolitan will become self-hosting, but atm we have to work within these parameters.

My current understanding is that Cosmopolitan needs a compiler that targets x86_64-linux to operate. (see this article about Windows) So maybe we can use one of our cross compilers? Can someone on Darwin check out my branch at https://github.com/lourkeur/nixpkgs/tree/crossmopolitan? @tomberek if that fails probably remove it from meta.platforms for now.
Maybe at some point Cosmopolitan will become self-hosting, but atm we have to work within these parameters.

build/getcompile: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/gdb: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/actuallynice: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/realify.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/findtmp: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/bash"
build/bochs-scriptable: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/bochs-debugger: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/sanitycheck: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/ssh: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/rollup: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/getccversion: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/catcode: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/includeall: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/hello: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
build/htags: interpreter directive changed from "#!/bin/sh" to "/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/sh"
building
build flags: -j4 -l4 SHELL=/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/bash SHELL=/bin/sh AS=x86_64-unknown-linux-gnu-as CC=x86_64-unknown-linux-gnu-gcc GCC=x86_64-unknown-linux-gnu-gcc CXX=x86_64-unknown-linux-gnu-g++ LD=x86_64-unknown-linux-gnu-ld OBJCOPY=x86_64-unknown-linux-gnu-objcopy MKDIR=mkdir\ -p
♥cosmo
build/getccversion: line 22: third_party/gcc/unbundle.sh: No such file or directory
building of '/nix/store/sjrml1yh69366gggcvs8c2vhiwfq4jdd-cosmopolitan-unstable-20210228-x86_64-unknown-linux-gnu.drv' timed out after 600 seconds of silence
error: build of '/nix/store/sjrml1yh69366gggcvs8c2vhiwfq4jdd-cosmopolitan-unstable-20210228-x86_64-unknown-linux-gnu.drv' failed

Not sure what's happening with the ofborg check on x86_64-linux, but passes for me. Added badPlatforms for darwin, but that's a new idiom for me, is that right?

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 114628 run on x86_64-linux 1

1 package built:

cosmopolitan

I'd say first thing first, try the latest master to see if it disappears. Given the development pace of cosmopolitan we can't go make bug reports against an unstable revision from a month ago.
Trying to build it myself rn.
Running nixpkgs-review pr 114628 as we speak...

updated to cosmo's master


Filter unavailable Locations from API output.

We've started handling revocations for availabilities in Nitro, which means we now use the available
flag on Locations. This makes the API output respect that flag.

lgtm

:shipit:


ci: Make update_crds step conditional

Description

Right now, the update_crds acts as if it had tar.gz for both
controller and audit-scanner crds. This makes it fail if the dispatched
job is only for 1 of those and not the other.
Fixes automated patch version PRs.
See for example how both of these jobs fail:

https://github.com/kubewarden/helm-charts/actions/runs/6323127363/attempts/1 -> missing crds tar.gz for the audit-scanner, as this is the controller.
https://github.com/kubewarden/helm-charts/actions/runs/6324807827 -> missing crds tar.gz for the controller, as this is the audit-scanner.

Test

Untested.
Relates to https://github.com/kubewarden/kubewarden-controller/issues/534.
Additional Information
Tradeoff

Potential improvement

I'm not sure how to test it, replicating the dispatched jobs is quite a task. I would prefer to merge it and test the current jobs in kubewarden/helm-charts if possible.

LGTM. I have a command to trigger this manually. If you want. By the way, this remember me that we talked about adding a new configuration to allow trigger the job using Github UI

https://github.com/kubewarden/helm-charts/issues/307


Wrap code blocks in README

In README provided examples of Erlang configs - it make sense add erlang to code blocks for syntax highlighting:
before
# Example of etacacs_plus.config content:
[{etacacs_plus,
   [{key, "tacacs123"},
    {listen_ip, {0,0,0,0}},
    {port, 5049},
    {db_conf_file, "config/db.conf"}
   ]
 }
].

after
%  Example of etacacs_plus.config content:
[{etacacs_plus,
   [{key, "tacacs123"},
    {listen_ip, {0,0,0,0}},
    {port, 5049},
    {db_conf_file, "config/db.conf"}
   ]
 }
].

Fixed.

There was missed some point - it need to use % for comments in Erlang code block - fixed at https://github.com/etnt/etacacs_plus/pull/9


Code wehere

i think you forgot to add code.
where is the code

i meant to name it where*

hello?

please

somebody help

im being serious

where is the code?

your problem is solved by me

LGTM!