Make epoch 3.0 the default block view

Let’s make epoch 3.0 the default blocks view and hardcode Nakamoto, Primary and Mainnet to have 2.5 view

:tada: This issue has been resolved in version 1.207.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Multisignature support

Hello,
Thanks for the great work you’ve done there.
As you may know, monero v<IP_ADDRESS> has finally stabilized M-N multisig of monero.
The JSON RPC has create_wallet, prepare_multisig, make_multisig, finalize_multisig to create a multisignature wallet.
Can you implement that feature to this wonderful library? I would like to help, but the creation is too complicated for the api to expose the methods clean.
Thanks.

https://blog.keys.casa/a-monero-multisig-users-guide/
https://www.getmonero.org/resources/developer-guides/wallet-rpc.html#make_multisig

Definitely, multisig has been a part of the plan from the very beginning. As you see, the task is not trivial though. At the moment I can't give any time estimate when it could be done.
MMS also looks to be interesting feature to have implemented, as an add-on: https://rbrunner7.github.io/mms_full_manual

Not so easy. The Wallet class is designed to run a single wallet only. We would need a WalletManager or some other higher-level handler for create_wallet. You may look for something similar in this project. Be aware, however, that code is highly experimental and crashes/hangs on IPC quirks very often.
Also, signing of transactions must be implemented, and we should distinguish signed and unsigned txs. I touched the topic in unsigned-tx branch but had no more time to work on it.
Certainly, it is an important feature but we need it to be designed well. If you, or anyone else, find the code in monerowalletpool useful here, I'm willing to release necessary parts under BSD license too.

What's the development status of the multisig feature?

Not progressing. I'd love to have time to spend on it.

is there any progress on monero multi sig support ?

None. I'm going to release 1.0 soon as there are no outstanding bug reports. Then I'll focus on new features but recently I don't have much time to spend on it.

Lemme know if i can help you in anyway ,donations ,contributions

Actually I'm thinking about applying for funding. However, first I need to carve out time to read docs and estimate the effort.

That's cool
Message me when you need the hep

any discord or instant messaging contact ?
I could help you to get it started


Updates to unix scripts

Use both version and version suffix for informational version in unix builds.
Update test script to use locally built vstest.console.

@codito,
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


Time Planner Title

Hello
Could you fix the Time Planner Title To Accept Widget rather than Text
`class TimePlannerTitle extends StatelessWidget {
/// Title of each day, typically is name of the day for example sunday
///
/// but you can set any things here
final Widget title;
/// Text style for title
final TextStyle? titleStyle;
/// Date of each day like 03/21/2021 but you can leave it empty or write other things
final Widget subTitle;
/// Text style for date text
final TextStyle? dateStyle;
/// Title widget for time planner
const TimePlannerTitle({
Key? key,
required this.title,
required this.subTitle,
this.titleStyle,
this.dateStyle,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return SizedBox(
width: config.cellWidth!.toDouble(),
child: Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [
title,
const SizedBox(
height: 3,
),
subTitle,
],
),
),
);
}
}`
Example
TimePlannerTitle(               title: Container(                 height: 100,                 width: 100,                 decoration: const BoxDecoration(                   shape: BoxShape.circle,                   image: DecorationImage(                     fit: BoxFit.cover,                     image: NetworkImage("https://prod-images.tcm.com/Master-Profile-Images/LeonardoDiCaprio.jpg",                         scale: 1),                   ),                 ),               ),               subTitle: const Text(                 "Leonardo Dicaprio",                 textAlign: TextAlign.center,               ),             ),

Hi,
Unfortunately it wasn't possible right now.
But maybe in future versions I will do that.

Is it possible to change the gridlines, like between columns (other than the far left and top that change with dividerColor)?

Also, is it possible to add a variable for a specific location for it to scroll to, other than just current time?


Push not sended from server

On server i have error 514
514 { encoding: 'utf8',   payload:     { aps:        { badge: 5,         sound: undefined,         alert: [Object],         'url-args': undefined,         category: undefined } },   expiry: 0,   priority: 10,   retryLimit: -1,   device: undefined,   compiled: '{"aps":{"badge":5,"alert":{"title":"Biogram","body":"Final testing!"}}}',   truncateAtWordEnd: false,   _sound: undefined,   _badge: 5,   _alert: { title: 'Biogram', body: 'Финальное тестирование пушей!' } } { token: <Buffer 94 ae 48 97 6e 0c 0a 34 e0 5d 22 6a f5 ed 3d f5 a4 a0 6f fc 30 fb 54 e4 3e 18 11 b2 75 ef 0c 5e> }
But on the local machine pushes sent without problems. I understand that the 514 error - a network error. What could cause this error?
On the server I have disabled the firewall. I also had access to port 2195 through telnet and nmap, access to the port 2195 is available.
debug on local
Wed, 01 Jun 2016 12:15:30 GMT apn Initialising connection
Wed, 01 Jun 2016 12:15:30 GMT apn Loading Credentials
Wed, 01 Jun 2016 12:15:30 GMT apn 1 left to send
Wed, 01 Jun 2016 12:15:32 GMT apn Connection established
Wed, 01 Jun 2016 12:15:32 GMT apn Socket drained 0
Wed, 01 Jun 2016 12:15:32 GMT apn 0 left to send
Wed, 01 Jun 2016 12:15:32 GMT apn 0 left to send
debug on server
Wed, 01 Jun 2016 12:21:48 GMT apn Initialising connection
Wed, 01 Jun 2016 12:21:48 GMT apn Loading Credentials
Wed, 01 Jun 2016 12:21:48 GMT apn 1 left to send
Wed, 01 Jun 2016 12:21:58 GMT apn Socket error occurred undefined { [Error: socket hang up] code: 'ECONNRESET', sslError: undefined }
Wed, 01 Jun 2016 12:21:58 GMT apn Raising error: { [Error: socket hang up] code: 'ECONNRESET', sslError: undefined } null undefined
Wed, 01 Jun 2016 12:21:58 GMT apn Error occurred with trace: Error: socket hang up
at SecurePair.error (tls.js:1011:23)
at EncryptedStream.CryptoStream._done (tls.js:703:22)
at EncryptedStream.read [as _read] (tls.js:495:12)
at EncryptedStream.Readable.read (_stream_readable.js:341:10)
at CleartextStream.onCryptoStreamFinish (tls.js:304:47)
at CleartextStream.g (events.js:180:16)
at CleartextStream.emit (events.js:92:17)
at finishMaybe (_stream_writable.js:360:12)
at endWritable (_stream_writable.js:367:3)
at CleartextStream.Writable.end (_stream_writable.js:345:5)
at CleartextStream.CryptoStream.end (tls.js:641:31)
at Connection. (/home/s_user/biogram/biogram_server/node_modules/apn/lib/connection.js:227:17)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
Wed, 01 Jun 2016 12:21:58 GMT apn Destroying connection undefined
Wed, 01 Jun 2016 12:21:58 GMT apn Removing socket from pool undefined
Wed, 01 Jun 2016 12:21:58 GMT apn Raising error: [Error: Connect timed out] undefined undefined
Wed, 01 Jun 2016 12:21:58 GMT apn Error occurred with trace: Error: Connect timed out
at Connection. (/home/s_user/biogram/biogram_server/node_modules/apn/lib/connection.js:225:35)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
Wed, 01 Jun 2016 12:21:58 GMT apn Socket closed undefined
Wed, 01 Jun 2016 12:21:58 GMT apn Removing socket from pool undefined
Wed, 01 Jun 2016 12:21:58 GMT apn 1 left to send

Please try the following command on your server
$ openssl s_client -connect gateway.sandbox.push.apple.com:2195 -key <path-to-key-pem> -cert <path-to-cert-pem>


Run tests on latest version of Ruby

Coverage decreased (-0.6%) to 96.917% when pulling e84f6d51a5444a7ab177fa0a95e9f0b093044d00 on oniofchaos:ruby-head into d27a1722530bf4dd466de608d097d5d827bebf5f on devise-security:master.


addKey.sh: not found

This error appeared while running an auto trigger from Pipeline "build" to Pipeline "deploy-staging"
The pipeline error as follows
source "/pipeline/add-ssh-key-6a3afc43-117d-40f4-be89-f982db71717c/run.sh" < /dev/null
/bin/sh: /pipeline/add-ssh-key-6a3afc43-117d-40f4-be89-f982db71717c/run.sh: line 29: /pipeline/add-ssh-key-6a3afc43-117d-40f4-be89-f982db71717c/addKey.sh: not found

wercker.yml file snippet
deploy-staging:
  steps:
    - bundle-install

    - add-ssh-key:
        keyname: STAGING_DEPLOY

    - script:
        name: Deploy staging
        code: cap staging deploy

This same code was working on our codebase previously.
Any help would be great

which box have you specified in your wercker.yml?

Ah, @dldnh I'm using a custom created docker image. idl3/rails-base-2.4.1
I suppose this base image will have to install this step into it?
I'm going to close this since it's most likely due to a custom image.
Could you help direct me to the right resource for enabling this step in a custom box?

[Update] Managed to fix the deployment by overriding the box used on the deploy step to:
deploy-staging:
  box: ruby:2.4.1
  steps:
    - bundle-install

    - add-ssh-key:
        keyname: STAGING_DEPLOY

    - script:
        name: Deploy staging
        code: cap staging deploy

The reason I asked about box is to see whether your system has bash or not.


Infotips for the Planner

Description
As a user, I want to have infotips that help me understand the application.
Functional Acceptance Criteria

TBD

Non-functional Acceptance Criteria

TBD

Would this be similar to an initial walk-through / guided tour type of pattern, or just having the info icons (pficon-info) in various places?

imho the content in Infotips should not exceed 1-2 small, to the point, sentences which help the user take next actions. They will not be walk through/guided tours, that would probably come at a later stage.

ok, sounds good. We do not have much beyond tooltip callouts ATM, but would welcome suggestions for where infotips could be used successfully.


[backport] Add rules regarding use of pytest module

Backport of #5012

jenkins, test this please

Jenkins CI test (for commit 86a15ca663bf187000795a779526fe58304fa085) succeeded without errors!

LGTM!


Python codec

Turn ASN.1 objects into Python ones and back. All within a new codec implementation.

Codecov Report

Merging #15 into master will increase coverage by -3.08%.

@@            Coverage Diff             @@
##           master      #15      +/-   ##
==========================================
- Coverage   88.16%   85.08%   -3.08%
==========================================
  Files          38       31       -7
  Lines        5138     4842     -296
==========================================
- Hits         4530     4120     -410
- Misses        608      722     +114

Impacted Files
Coverage Δ

pyasn1/type/univ.py
77.69% <100%> (-3.28%)
:x:

test/codec/suite.py
73.91% <100%> (-16.57%)
:x:

test/codec/python/suite.py
66.66% <66.66%> (ø)

pyasn1/compat/octets.py
55% <ø> (-45%)
:x:

test/codec/ber/suite.py
70.58% <ø> (-23.53%)
:x:

test/codec/cer/suite.py
70.58% <ø> (-23.53%)
:x:

test/codec/der/suite.py
66.66% <ø> (-22.23%)
:x:

test/type/suite.py
68.42% <ø> (-21.06%)
:x:

test/suite.py
81.81% <ø> (-18.19%)
:x:

test/test_debug.py
69.56% <ø> (-17.4%)
:x:

... and 24 more

Continue to review full report at Codecov.

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


.get returns null

Hello again @kiaking
I have a question regarding .get() method. In an example like below:
records() {
  return this.$store.getters['entities/timesheets/query']()
          .where(record => record.status === 'submitted' || record.status === 'resubmitted')
          .get();
}

If no records are found we receive null. So to pass it to v-for or pass it to component as a required prop I have to first check if it is not null. Wouldn't it be more intuitive if .get() returned empty array [] if no records were found? I am coming from Rails world and that's what I am used to ;) Let me know what you think?

Hi @silentlight
Thank you for your advice. I've checked Laravel as well, and it does return [] (empty array). So yeah I think you got the point.
I'll make this change!

Sounds good @kiaking :)

A workaround is to append || [] to your expression like this:
const users = getters['entities/users/all']() || []
Then users will be an empty array when there are no users.

Good point @timoschwarzer. That's exactly what I am doing right now, but as you said it would be nice if that was a default option :)

Hi forks!
This issue is now fixed with Vuex ORM 0.11.5. It will now return empty array instead of null.
If you were doing
const users = getters['entities/users/all']() || []

as a workaround, this update will not break them, but you are now free to remove || [] part from your code 👍
Thank you all for your support!

That's great! Thanks! :smile:


Patch for pre 1.8.6 exploits

Minecraft updated to 1.8.4 to prevent an exploit involving malicious clients crashing servers. Forge has supposedly patched this issue, but SpongeVanilla may still be weak to it.

I can only find the NBT size issue, I know two issues related to security were shown as patched on the JIRA report from mojang.com. But the other issue was made private and I cannot see any patches in forge that suggest a fix for the private issue.

The plan is to update SpongeVanilla to 1.8.4 as soon as possible. As long we don't have dev builds released and it is not used in production there is no big reason to spend additional effort to fix this before updating to 1.8.4.

I'm mostly using this to make sure I know Mixins well enough, in developing this fix I've already found a bug in the Mixin code itself. So I'm gonna keep working on this until the update happens or I finish.

@Minecrell Has there been any indication from the MCP team on an update?

@twizmwazin We will basically only get 1.8.4 together with FML/Forge 1.8.4, as of right now.

@Minecrell I'm aware, as both depend on MCP. However, I was asking if the MCP team has made any sort of a statement on updating, as I figured there are people who probably have better connections than me, and Searge doesn't have anything on twitter.

@twizmwazin yes, we are aware of what the blocking issues on getting 1.8.4 MCP mappings are. No, there has been no public statement but that doesn't mean there is no activity.

Given the release of 1.8.5 which is basically all non-public issues, I think that we cannot reasonably expect to keep up with the security patches that might be found.

@Minecrell @Zidane This is one of the downfalls that we have relying on MCP. Where as when me a @Voltasalt were using our own mappings we could have had this resolved and updated in a few hours!

Couldn't you ask Grum or another Mojangsta for details about the security
issues? In #sponge-dev, ofc
On 29 May 2015 16:58, "AzureusNation"<EMAIL_ADDRESS>wrote:

@Minecrell https://github.com/Minecrell @Zidane
https://github.com/Zidane This is one of the downfalls that we have
relying on MCP. Where as when me a @Voltasalt
https://github.com/Voltasalt were using our own mappings we could have
had this resolved and updated in a few hours!
—
Reply to this email directly or view it on GitHub
https://github.com/SpongePowered/SpongeVanilla/issues/157#issuecomment-106839202
.

@Voltasalt we already have this information for the most part.

Right, I'm just out of the loop then.
On 29 May 2015 18:04, "Mumfrey"<EMAIL_ADDRESS>wrote:

@Voltasalt https://github.com/Voltasalt we already have this
information for the most part.
—
Reply to this email directly or view it on GitHub
https://github.com/SpongePowered/SpongeVanilla/issues/157#issuecomment-106857534
.

Out of curiosity, are there licensing issues that prevent updating MCP mappings for SpongeVanilla? I really do think that, especially for SpongeVanilla, reliance on MCP will hurt the Sponge project, as other options such as Spigot are able to update significantly quicker due to independent mappings.

The whole point of using the MCP mappings is that it's a consistent set of mappings across the whole platform, making SpongeCommon possible. Whilst it would be perfectly feasible to do it ourselves, it would utterly pointless because it would undermine this basic tenet of keeping everything compatible across the board.

I think the better question is how can Sponge's involvement assist the MCP project in having quicker releases.

I already said, we know what the blocking issues are. Please leave it at that.

This is getting derailed
@AzureusNation Utilizing well established tech like ForgeGradle means we must be patient. For this particular minor version bump (1.8.x -> 1.8.6), ForgeGradle needed a major release to add a number of features that will make doing development on the Sponge ecosystem a lot easier. These changes take time and I can say with confidence that @AbrarSyed is just about done.
After that, LexManos can update MCP and Forge in an evening sitting and these issues go away. Everyone seriously needs to chill out and learn to be patient. We did SpongeCommon for a very good reason and we aren't breaking away Vanilla just because one update is taking a bit. While you may argue "faster updates!", the codebase would look incredibly silly due to copying over 90% of the code Sponge would ultimately have...


I am getting this error.  i haven't changed anything in the code

A/CAMERA-SAMPLE: No Camera Available on the device
A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 13801 (ple.textureview)
    [ 12-12 11:44:03.304   463:  463 W/         ]
    debuggerd: handling request: pid=13801 uid=10233 gid=10233 tid=13801

Mobile model : MI5 (lolipop)

no, the sample need android-24, that is android N. Camera2 was introduced in Android-N ( api level 24 ).

i have also tested for Android N with API 24 exactly . But getting same issue .

that would be the real problem: may you use Android Studio's "debug" button to see which line it asserted on? If you could trace C/C++ code a little bit, and see what parameter was missed, that would be very helpful.
Another way is, do you mind share your exact device type and OS version? I could try to locate a device to have a look ( that would take some time though )

Device Name: Xiaomi MI 5
Android Version : 7.0 NRD90M
API : 24
This is the complete log with backtrace .

Build fingerprint: 'Xiaomi/gemini/gemini:7.0/NRD90M/V<IP_ADDRESS>.NAAMIEI:user/release-keys'
Revision: '0'
ABI: 'arm64'
pid: 24523, tid: 24523, name: ple.textureview >>> com.sample.textureview <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'No Camera Available on the device'
x0<PHONE_NUMBER>000000 x1<PHONE_NUMBER>005fcb x2<PHONE_NUMBER>000006 x3<PHONE_NUMBER>000008
x4<PHONE_NUMBER>000000 x5<PHONE_NUMBER>000000 x6 0000007fabc41000 x7<PHONE_NUMBER>000000
x8<PHONE_NUMBER>000083 x9 ffffffffffffffdf x10<PHONE_NUMBER>000000 x11<PHONE_NUMBER>000001
x12 ffffffffffffffff x13<PHONE_NUMBER>000000 x14<PHONE_NUMBER>000000 x15 00213b5c8b9f5894
x16 0000007fa934aed0 x17 0000007fa92f4638 x18 0000007f8b8fc800 x19 0000007fabcf5b48
x20<PHONE_NUMBER>000006 x21 0000007fabcf5aa0 x22<PHONE_NUMBER>000000 x23 0000007fa66ea5a9
x24<PHONE_NUMBER>00000c x25 ab7bb8e4bef9fb23 x26 0000007fa7e96a98 x27 ab7bb8e4bef9fb23
x28<PHONE_NUMBER>000003 x29 0000007fc04331b0 x30 0000007fa92f1ac8
sp 0000007fc0433190 pc 0000007fa92f4640 pstate<PHONE_NUMBER>000000
backtrace:
#00 pc<PHONE_NUMBER>06b640 /system/lib64/libc.so (tgkill+8)
#01 pc<PHONE_NUMBER>068ac4 /system/lib64/libc.so (pthread_kill+64)
#02 pc<PHONE_NUMBER>024010 /system/lib64/libc.so (raise+24)
#03 pc<PHONE_NUMBER>01ca94 /system/lib64/libc.so (abort+52)
#04 pc<PHONE_NUMBER>005a40 /system/lib64/liblog.so (__android_log_assert+232)
#05 pc<PHONE_NUMBER>02bc10 /data/app/com.sample.textureview-2/lib/arm64/libcamera_textureview.so (_ZN9NDKCamera15EnumerateCameraEv+828)
#06 pc<PHONE_NUMBER>02b354 /data/app/com.sample.textureview-2/lib/arm64/libcamera_textureview.so (_ZN9NDKCameraC1Ev+464)
#07 pc<PHONE_NUMBER>030784 /data/app/com.sample.textureview-2/lib/arm64/libcamera_textureview.so (_ZN15CameraAppEngineC2EP7_JNIEnvP8_jobjectii+128)
#08 pc<PHONE_NUMBER>02aa0c /data/app/com.sample.textureview-2/lib/arm64/libcamera_textureview.so (Java_com_sample_textureview_ViewActivity_createCamera+76)
#09 pc<PHONE_NUMBER>178f60 /data/app/com.sample.textureview-2/oat/arm64/base.odex (offset 0x169000)

thank you for the information!  that is coming from function:
NDKCamera::enumerateCamera() in file camera_manager.cpp.   Somehow not finding the back facing camera on the your device.   May you set a break pointer on  enumerateCamera() function, and trace to see:

does your device returns 2 cameras from getCameraIdList()
in the loop, does one of it got recognized as backfacing camera
( inside Android Studio, clicking in area after line number for a specific source code line inside editor pane, that will set breakpoint, indicated with a red dot.)

thanks

device is not returning 2 cameras from getCameraIdList() . No camera is recognized . My device camera is working fine in other applications with supports camera2.
In OnCreate() , i have tested this code :
cameraId = cManager.getCameraIdList()[i];
for the above code , i am getting 2 cameras.but in NDKCamera::enumerateCamera(). no camera id is returned .
This is the values
cameraIds = {ACameraIdList * | 0x7f9ad90770} 0x0000007f9ad90770
numCameras = {int} 0
cameraIds = {const char ** | 0x7f9cff2ca8} 0x0000007f9cff2ca8
*cameraIds = {const char * | 0x100000019} ""
error = read memory from 0x100000019 failed (0 of 1 bytes read)

will really need to get a device with the OS.  Anything coming out from logcat about camera when this happens?

This is what i am getting in logcat, then app crashes .
12-13 09:59:35.140 11311-11311/com.sample.textureview D/ActivityThreadInjector: clearCachedDrawables.
12-13 09:59:35.184 11311-11378/com.sample.textureview I/Adreno: QUALCOMM build                   : a46d8f7, I3040c3198e
Build Date                       : 06/12/17
OpenGL ES Shader Compiler Version: XE<IP_ADDRESS>
Local Branch                     : 55tip2
Remote Branch                    : quic/gfx-adreno.lnx.1.0.c5-rel
Remote Branch                    : NONE
Reconstruct Branch               : NOTHING
12-13 09:59:35.193 11311-11378/com.sample.textureview I/OpenGLRenderer: Initialized EGL, version 1.4
12-13 09:59:35.194 11311-11378/com.sample.textureview D/OpenGLRenderer: Swap behavior 1
12-13 10:00:11.648 11311-11311/com.sample.textureview A/CAMERA-SAMPLE: No Camera Available on the device
12-13 10:00:21.672 11311-11311/com.sample.textureview A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 11311 (ple.textureview)
                                                          [ 12-13 10:00:21.674   463:  463 W/         ]
                                                          debuggerd: handling request: pid=11311 uid=10233 gid=10233 tid=11311

thanks.  the logcat from camera framework, not from the application.  Need to un-filter logcat event, or command line logcat.  Sometimes  it would be framework camera print some logcat message, then application get error code.  I will try to get a device and debug it ( it is interesting situation ): I would not image that your phone does not have camera2 native API supported. need to debug

12-13 11:29:06.599 10460-27878/? I/GCoreUlr: Successfully inserted 1 locations
12-13 11:29:13.576 1446-2052/? E/LocSvc_ApiV02: I/<--- void globalEventCb(locClientHandleType, uint32_t, const locClientEventIndUnionType, void ) line 114 QMI_LOC_EVENT_WIFI_REQ_IND_V02
12-13 11:29:13.577 1446-2034/? E/IzatSvc_IzatManager: I/LocTech-Label :: IZATMANAGER :: Remove ODCPI Request In
12-13 11:29:13.577 1446-2034/? E/IzatSvc_IzatManager: I/LocTech-Value :: Interval: 3500, Emergency 0
12-13 11:29:13.577 1446-3309/? E/LocSvc_libulp: I/int ulp_msg_process_criteria_update(const UlpLocationCriteria ): valid 0x9a77 action:2, minTime:3500, minDistance:0.000000, singleShot:0, horizontalAccuracy:1, powerRequirement:0, emergency_request:0
12-13 11:29:13.577 1446-3309/? E/LocSvc_libulp: I/===> int ulp_brain_turn_onoff_dr_provider() line 848
12-13 11:29:13.577 1446-3309/? E/LocSvc_libulp: I/===> int ulp_dr_stop_engine() line 235
12-13 11:29:13.577 1446-2034/? V/OSNPGlue_jni: Entering  : void onStopRequestJNI()
12-13 11:29:13.630 10460-10460/? I/GeofencerStateMachine: sendNewLocationAvailability: availability=LocationAvailability[isLocationAvailable: true]
12-13 11:29:13.731 2074-2298/? I/QImsService: ImsSenderRxr : Response data: [12, 13, -1, -1, -1, -1, 16, 3, 24, -52, 1, 32, 0, 8, 2, 21, 0, 0, 0, 0, 32, 14][SUB1]
12-13 11:29:13.731 2074-2298/? I/QImsService: ImsSenderRxr :  Tag -1 3 204 0[SUB1]
12-13 11:29:13.731 2074-2298/? I/QImsService: ImsSenderRxr :  responseImsRegistration[SUB1]
12-13 11:29:13.731 2074-2298/? I/QImsService: ImsSenderRxr : Ims registrationorg.codeaurora.ims.ImsQmiIF$Registration@2e3c312[SUB1]
12-13 11:29:13.733 2074-2298/? I/QImsService: ImsSenderRxr : [UNSL]< UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED[SUB1]
12-13 11:29:13.733 2074-2074/? I/QImsService: ImsServiceSubHandler : Message received: what = 2
12-13 11:29:13.733 2074-2074/? I/QImsService: ImsServiceSubHandler : handleImsStateChanged
12-13 11:29:13.734 2074-2074/? I/QImsService: ImsServiceSubHandler : VOLTE ims registered, WFC change to Not  registered
12-13 11:29:13.735 2074-2074/? I/QImsService: ImsServiceSub : sendBroadcastForDisconnected
12-13 11:29:17.256 2415-3127/? D/ScreenElementRoot: pause
12-13 11:29:17.256 2415-3127/? D/ScreenElementRoot: pause
12-13 11:29:17.257 2415-3127/? D/ScreenElementRoot: pause
12-13 11:29:17.257 2415-3127/? D/ScreenElementRoot: pause
12-13 11:29:17.258 2415-3127/? I/NotifierManager: onUnregister: miui.maml.NotifierManager$MultiBroadcastNotifier@9ef9a40
12-13 11:29:17.258 2415-3127/? I/RenderThread: RenderThread paused, waiting for signal
12-13 11:29:17.276 2415-3127/? I/RenderThread: RenderThread resumed
12-13 11:29:17.282 2415-2415/? I/Timeline: Timeline: Activity_launch_request time:237312550
12-13 11:29:17.289 2415-3127/? D/ScreenElementRoot: resume
12-13 11:29:17.293 1446-2365/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.sample.camera.basic/.CameraActivity bnds=[324,101][506,283] (has extras)} from uid 10027 on display 0
12-13 11:29:17.300 2415-3127/? I/NotifierManager: onRegister: miui.maml.NotifierManager$MultiBroadcastNotifier@9ef9a40
12-13 11:29:17.300 2415-3127/? D/ScreenElementRoot: resume
12-13 11:29:17.301 2415-3127/? D/ScreenElementRoot: resume
12-13 11:29:17.301 2415-3127/? D/ScreenElementRoot: resume
12-13 11:29:17.307 1446-1510/? V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@73953d4
12-13 11:29:17.307 1446-1510/? V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@4eb797d
12-13 11:29:17.319 1446-2365/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger
12-13 11:29:17.325 2415-3127/? D/ScreenElementRoot: pause
12-13 11:29:17.325 2415-3127/? D/ScreenElementRoot: pause
12-13 11:29:17.325 2415-3127/? D/ScreenElementRoot: pause
12-13 11:29:17.325 2415-3127/? D/ScreenElementRoot: pause
12-13 11:29:17.343 1446-2790/? I/ActivityManager: Start proc 2990:com.sample.camera.basic/u0a240 for activity com.sample.camera.basic/.CameraActivity caller=com.miui.home
12-13 11:29:17.344 1446-2790/? V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@79e1270
12-13 11:29:17.344 2990-2990/? I/art: Late-enabling -Xcheck:jni
12-13 11:29:17.348 1446-1493/? D/ui-boost: reset uithread for app=com.miui.home
12-13 11:29:17.348 1446-1493/? D/ui-boost: reset renderthread for app=com.miui.home, tid=2995
12-13 11:29:17.353 2415-3127/? I/NotifierManager: onUnregister: miui.maml.NotifierManager$MultiBroadcastNotifier@9ef9a40
12-13 11:29:17.353 2415-3127/? I/RenderThread: RenderThread paused, waiting for signal
12-13 11:29:17.377 2990-2990/? V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@66d9108
12-13 11:29:17.399 1446-1484/? D/ui-boost: boost uithread for app=com.sample.camera.basic
12-13 11:29:17.401 2691-2782/? I/WtProcessController: MOVE TO FOREGROUND: com.sample.camera.basic 10240
12-13 11:29:17.402 2691-2782/? I/StatusController: Last foreground:com.miui.home uid:10027 Current foreground:com.sample.camera.basic uid:10240
12-13 11:29:17.402 2691-2782/? I/WtProcessController: FOREGROUND INFO: name=com.sample.camera.basic uid=10240 pid=2990 TaskId:688
12-13 11:29:17.408 1446-1484/? I/Timeline: Timeline: App_transition_ready time:237312675
12-13 11:29:17.416 1802-1802/? V/PhoneStatusBarPolicy: updateManagedProfile mManagedProfileFocused: false mManagedProfileInQuietMode: false mKeyguardVisible: false mCurrentUserId:0 mCurrentProfileId:0 mSecondSpaceStatusIconVisible: true showIcon:false
12-13 11:29:17.421 1802-1802/? D/PhoneStatusBar: disable: 0x00000000 -> 0x00000200 (diff: 0x00000200)
12-13 11:29:17.421 1802-1802/? D/PhoneStatusBar: disable: < expand icons alerts ticker system_info back home recent clock full hide keyguard none float >
12-13 11:29:17.482 2990-2990/? D/AccessibilityManager: current package=com.sample.camera.basic, accessibility manager mIsFinalEnabled=false, mOptimizeEnabled=true, mIsUiAutomationEnabled=false, mIsInterestedPackage=false
12-13 11:29:17.488 2990-2990/? V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@e7b7920
12-13 11:29:17.488 2990-2990/? V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@83a82d9
12-13 11:29:17.510 2990-2990/? V/threaded_app: Creating: 0x7fa7ef69c0
12-13 11:29:17.510 2990-3009/? V/threaded_app: Config: mcc=404 mnc=73 lang=en cnt=GB orien=1 touch=3 dens=480 keys=1 nav=1 keysHid=3 navHid=0 sdk=24 size=2 long=2 modetype=1 modenight=1
12-13 11:29:17.512 2990-2990/? I/NDK-CAMERA-BASIC: OnCreate()
12-13 11:29:17.513 2990-2990/? V/threaded_app: Start: 0x7fa7ef69c0
12-13 11:29:17.513 2990-3009/? V/threaded_app: activityState=10
12-13 11:29:17.519 2990-2990/? V/threaded_app: Resume: 0x7fa7ef69c0
12-13 11:29:17.519 2990-3009/? V/threaded_app: activityState=11
12-13 11:29:17.537 2990-2990/? V/threaded_app: InputQueueCreated: 0x7fa7ef69c0 -- 0x7fa7ef6ec0
12-13 11:29:17.537 2990-3009/? V/threaded_app: APP_CMD_INPUT_CHANGED
12-13 11:29:17.537 2990-3009/? V/threaded_app: Attaching input queue to looper
12-13 11:29:17.539 2990-2990/? D/ActivityThreadInjector: clearCachedDrawables.
12-13 11:29:17.556 2990-2990/? V/threaded_app: NativeWindowCreated: 0x7fa7ef69c0 -- 0x7fa7e54e10
12-13 11:29:17.556 2990-3009/? V/threaded_app: APP_CMD_INIT_WINDOW
12-13 11:29:17.562 780-25687/? I/QCamera:  int qcamera::QCamera2Factory::getCameraInfo(int, camera_info, bool): 349: Camera id 0 API version 256
12-13 11:29:17.562 780-25687/? I/QCamera:  static int qcamera::QCamera3HardwareInterface::getCamInfo(uint32_t, camera_info, bool): 8094: camera 0 resource cost is 100
12-13 11:29:17.562 780-25686/? I/QCamera:  int qcamera::QCamera2Factory::getCameraInfo(int, camera_info*, bool): 349: Camera id 1 API version 256
12-13 11:29:17.563 780-25686/? I/QCamera:  static int qcamera::QCamera3HardwareInterface::getCamInfo(uint32_t, camera_info*, bool): 8094: camera 1 resource cost is 100
12-13 11:29:17.563 2990-3010/? A/CAMERA-SAMPLE: No Camera Available on the device
12-13 11:29:17.563 2990-3010/? A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 3010 (Thread-5)
                                   [ 12-13 11:29:17.564   463:  463 W/         ]
                                   debuggerd: handling request: pid=2990 uid=10240 gid=10240 tid=3010

12-13 11:29:17.565 463-463/? I/MIUINDBG_HOOK: hook hook_sigtimedwait
12-13 11:29:17.568 2990-2990/? V/threaded_app: WindowFocusChanged: 0x7fa7ef69c0 -- 1
12-13 11:29:17.571 1755-1755/? I/GoogleInputMethod: onFinishInput() : Dummy InputConnection bound
12-13 11:29:17.572 1755-1755/? I/GoogleInputMethod: onStartInput() : Dummy InputConnection bound
12-13 11:29:17.633 3012-3012/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
12-13 11:29:17.634 3012-3012/? A/DEBUG: Build fingerprint: 'Xiaomi/gemini/gemini:7.0/NRD90M/V<IP_ADDRESS>.NAAMIEI:user/release-keys'
12-13 11:29:17.634 3012-3012/? A/DEBUG: Revision: '0'
12-13 11:29:17.634 3012-3012/? A/DEBUG: ABI: 'arm64'
12-13 11:29:17.634 3012-3012/? A/DEBUG: pid: 2990, tid: 3010, name: Thread-5  >>> com.sample.camera.basic <<<
12-13 11:29:17.634 3012-3012/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
12-13 11:29:17.638 3012-3012/? A/DEBUG: Abort message: 'No Camera Available on the device'
12-13 11:29:17.638 3012-3012/? A/DEBUG:     x0<PHONE_NUMBER>000000  x1<PHONE_NUMBER>000bc2  x2<PHONE_NUMBER>000006  x3<PHONE_NUMBER>000008
12-13 11:29:17.638 3012-3012/? A/DEBUG:     x4<PHONE_NUMBER>000000  x5<PHONE_NUMBER>000000  x6   0000007fabc41000  x7<PHONE_NUMBER>000000
12-13 11:29:17.638 3012-3012/? A/DEBUG:     x8<PHONE_NUMBER>000083  x9   ffffffffffffffdf  x10<PHONE_NUMBER>000000  x11<PHONE_NUMBER>000001
12-13 11:29:17.638 3012-3012/? A/DEBUG:     x12  ffffffffffffffff  x13<PHONE_NUMBER>000000  x14<PHONE_NUMBER>000000  x15  00219346d8a7d82a
12-13 11:29:17.639 3012-3012/? A/DEBUG:     x16  0000007fa934aed0  x17  0000007fa92f4638  x18<PHONE_NUMBER>6922c0  x19  0000007f8c9124f8
12-13 11:29:17.639 3012-3012/? A/DEBUG:     x20<PHONE_NUMBER>000006  x21  0000007f8c912450  x22<PHONE_NUMBER>000000  x23  0000007f9ac47f80
12-13 11:29:17.639 3012-3012/? A/DEBUG:     x24  0000007f8c9124d0  x25<PHONE_NUMBER>0fd000  x26  ab7bb8e4bef9fb23  x27<PHONE_NUMBER>000000
12-13 11:29:17.639 3012-3012/? A/DEBUG:     x28<PHONE_NUMBER>000001  x29  0000007f8c911500  x30  0000007fa92f1ac8
12-13 11:29:17.639 3012-3012/? A/DEBUG:     sp   0000007f8c9114e0  pc   0000007fa92f4640  pstate<PHONE_NUMBER>000000
12-13 11:29:17.644 3012-3012/? A/DEBUG: backtrace:
12-13 11:29:17.645 3012-3012/? A/DEBUG:     #00 pc<PHONE_NUMBER>06b640  /system/lib64/libc.so (tgkill+8)
12-13 11:29:17.645 3012-3012/? A/DEBUG:     #01 pc<PHONE_NUMBER>068ac4  /system/lib64/libc.so (pthread_kill+64)
12-13 11:29:17.645 3012-3012/? A/DEBUG:     #02 pc<PHONE_NUMBER>024010  /system/lib64/libc.so (raise+24)
12-13 11:29:17.645 3012-3012/? A/DEBUG:     #03 pc<PHONE_NUMBER>01ca94  /system/lib64/libc.so (abort+52)
12-13 11:29:17.645 3012-3012/? A/DEBUG:     #04 pc<PHONE_NUMBER>005a40  /system/lib64/liblog.so (__android_log_assert+232)
12-13 11:29:17.645 3012-3012/? A/DEBUG:     #05 pc<PHONE_NUMBER>02a6d8  /data/app/com.sample.camera.basic-2/lib/arm64/libndk_camera.so (_ZN9NDKCamera15EnumerateCameraEv+868)
12-13 11:29:17.645 3012-3012/? A/DEBUG:     #06 pc<PHONE_NUMBER>029ac4  /data/app/com.sample.camera.basic-2/lib/arm64/libndk_camera.so (_ZN9NDKCameraC1Ev+648)
12-13 11:29:17.645 3012-3012/? A/DEBUG:     #07 pc<PHONE_NUMBER>0280a0  /data/app/com.sample.camera.basic-2/lib/arm64/libndk_camera.so (_ZN12CameraEngine12CreateCameraEv+144)
12-13 11:29:17.645 3012-3012/? A/DEBUG:     #08 pc<PHONE_NUMBER>027d20  /data/app/com.sample.camera.basic-2/lib/arm64/libndk_camera.so (_ZN12CameraEngine15OnAppInitWindowEv+64)
12-13 11:29:17.645 3012-3012/? A/DEBUG:     #09 pc<PHONE_NUMBER>03ba60  /data/app/com.sample.camera.basic-2/lib/arm64/libndk_camera.so (_ZN12CameraEngine18OnCameraPermissionEh+60)
12-13 11:29:17.645 3012-3012/? A/DEBUG:     #10 pc<PHONE_NUMBER>03cda0  /data/app/com.sample.camera.basic-2/lib/arm64/libndk_camera.so (ZNSt6__ndk114__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEM12CameraEngineFvhEPS7_hEEEEEPvSC+496)
12-13 11:29:17.645 3012-3012/? A/DEBUG:     #11 pc<PHONE_NUMBER>0682cc  /system/lib64/libc.so (_ZL15__pthread_startPv+196)
12-13 11:29:17.645 3012-3012/? A/DEBUG:     #12 pc<PHONE_NUMBER>01dca8  /system/lib64/libc.so (__start_thread+16)
12-13 11:29:17.711 1446-1510/? I/Timeline: Timeline: App_transition_stopped time:237312979
12-13 11:29:17.713 1802-1802/? D/EventBus: [1802, u0] send(AppTransitionFinishedEvent)
12-13 11:29:17.713 1802-1802/? D/EventBus: [1802, u0]  -> ForcedResizableInfoActivityController [0x3495dff, P1] onBusEvent(AppTransitionFinishedEvent)
12-13 11:29:17.714 1802-1802/? D/EventBus: [1802, u0] onBusEvent(AppTransitionFinishedEvent) duration: 31 microseconds, avg: 1903
12-13 11:29:17.714 1802-1802/? D/EventBus: [1802, u0] send(AppTransitionFinishedEvent)
12-13 11:29:17.714 1802-1802/? D/EventBus: [1802, u0]  -> ForcedResizableInfoActivityController [0x3495dff, P1] onBusEvent(AppTransitionFinishedEvent)
12-13 11:29:17.714 1802-1802/? D/EventBus: [1802, u0] onBusEvent(AppTransitionFinishedEvent) duration: 24 microseconds, avg: 1903
12-13 11:29:17.794 1802-1802/? D/PhoneStatusBar: disable: 0x00000200 -> 0x00000300 (diff: 0x00000100)
12-13 11:29:17.794 1802-1802/? D/PhoneStatusBar: disable: < expand icons alerts ticker system_info back home recent clock full HIDE* keyguard none float >
12-13 11:29:17.794 1802-1802/? D/PhoneStatusBar: showStatusBar isshow=false;delay=false
12-13 11:29:17.796 2350-2350/? I/octvm_power: handle event trigger full_screen_enter
12-13 11:29:17.796 2350-2350/? I/octvm_power: Action: set_cpu_powermode(middle) for [full_screen_enter]
12-13 11:29:17.796 2350-2350/? I/octvm_drv: common drv: platform_set_power_profile -> platform not support
12-13 11:29:17.796 2350-2350/? I/octvm_power: Action: set_lcd_mode(movie) for [full_screen_enter]
12-13 11:29:17.796 2350-2350/? I/octvm_drv: common drv: platform_set_lcd_mode -> platform not support
12-13 11:29:17.819 1446-3013/? W/ActivityManager:   Force finishing activity com.sample.camera.basic/.CameraActivity
12-13 11:29:17.820 2691-2782/? I/WtProcessController: Receive am_crash event for pid: 1446 pkg = com.sample.camera.basic
12-13 11:29:17.820 2691-2782/? W/KloServer: Aborted broadcast does not supprt for: android
12-13 11:29:17.821 1446-1486/? I/BootReceiver: Copying /data/tombstones/tombstone_09 to DropBox (SYSTEM_TOMBSTONE)
12-13 11:29:17.823 1446-3013/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger
12-13 11:29:17.831 2350-2392/? I/octvm_klo: get event file: /data/tombstones/tombstone_09
12-13 11:29:17.831 2350-2392/? I/octvm_klo: klo lock
                                        [ 12-13 11:29:17.833   463:  463 W/         ]
                                        debuggerd: resuming target 2990

12-13 11:29:17.836 1446-3015/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:1459 android.content.ContextWrapper.bindService:646 miui.os.DropBoxManager.Cd:361 miui.os.DropBoxManager.Cc:350 miui.os.DropBoxManager.addText:314
12-13 11:29:17.839 576-576/? E/lowmemorykiller: Error writing /proc/2990/oom_score_adj; errno=22
12-13 11:29:17.839 1446-1493/? D/ui-boost: reset uithread for app=com.sample.camera.basic
12-13 11:29:17.841 1446-1493/? D/ui-boost: boost uithread for app=com.miui.home
12-13 11:29:17.841 1446-1493/? D/ui-boost: boost renderthread for app=com.miui.home, tid=2995
12-13 11:29:17.846 1446-1510/? I/WindowManager: Destroying surface Surface(name=Starting com.sample.camera.basic) called by com.android.server.wm.WindowStateAnimator.destroySurface:2043 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:895 com.android.server.wm.WindowState.removeLocked:1467 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2607 com.android.server.wm.WindowManagerService.removeWindowLocked:2565 com.android.server.wm.WindowManagerService.removeWindowLocked:2434 com.android.server.wm.WindowManagerService.removeWindow:2429 com.android.server.wm.Session.remove:202
12-13 11:29:17.846 1446-1494/? V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@679572a
12-13 11:29:17.847 1446-1494/? V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@eb5191b

It does have 2 camera (qcom):
I/QCamera: int qcamera::QCamera2Factory::getCameraInfo(int, camera_info, bool): 349: Camera id 0 API version 256
I/QCamera: static int qcamera::QCamera3HardwareInterface::getCamInfo(uint32_t, camera_info, bool): 8094: camera 0 resource cost is 100
I/QCamera: int qcamera::QCamera2Factory::getCameraInfo(int, camera_info*, bool): 349: Camera id 1 API version 256
I/QCamera: static int qcamera::QCamera3HardwareInterface::getCamInfo(uint32_t, camera_info*, bool): 8094: camera 1 resource cost is 100
So this line should returns with 2 camera IDs:
CALL_MGR(getCameraIdList(cameraMgr_, &cameraIds));
wondering if you could trace through the code to confirm that you do loop twice.   probably the aspect ratio passed in could not be matched.    Anyway I am requesting a device to debug here.

are you from the XiaoMi manufacturer? I got a phone, but could not enable the install from USB, then I could do nothing: it asks for SIM card, I do not have one for it at all.

are you from the XiaoMi manufacturer?
Answer : No (I am just a user of that phone).
Solution for your issue.
Enable Developer Options on Xiaomi Mi 5
Step 1: Unlock your phone and go to main Settings on your Xiaomi devices.
Step 2: Scroll down to find About phone and tap on it.
Step 3: Locate Miui Version and tap seven times on it.
After that, you will get a message "You have enabled developer option" on your device screen.
Now
Enable USB Debugging on Xiaomi Mi 5
Step 1 : Go back to main Settings.
Step 2 : Run Additional Settings, and tap Developer options to enable it from there.
Step 3 : Scroll down to find USB Debugging option and enable it.
Now, you have successfully enabled USB Debugging on your Xiaomi Mi 5.
Important Step
Enable Install Via USB  on Xiaomi Mi 5
Step 1 : Go back to main Settings.
Step 2 : Run Additional Settings, and tap Developer options to enable it from there.
Step 3 : Scroll down to find Install Via USB option and enable it.
Now, you have successfully enabled Install Via USB on your Xiaomi Mi 5.

USB debugging is enabled.  but when trying to enable USB installation, it tries to allow, then asks for SIM card; of course  I do not have one, so it revokes the USB installation right away.  In your phone you have a valid SIM card, I guess.  I will hack on it a little bit then if I could enable it, could not do anything about it :-(

You are right .... It is an issue with Xiaomi . I tried the same by removing the SIM CARD. i am not able to install the app via USB.
https://stackoverflow.com/questions/46289999/xiaomi-redmi-note4x-install-via-usb-throws-insert-your-sim-card/46667398

let's dump this type of phone and use Pixel or other brands.
Will continue to look around and see...

applying to get the phone unlocked first. Not much could be done -- on hold.  When you have time, do trace that function to see whether you get 2 camera IDs; if you got 2, is it the resolution not matching, or  the camera facing not matching causing "No camera selected"?  thanks.

seeing function ACameraManager_getCameraIdList() call returns 0 cameras -- no camera.  But hal does see 2 camera devices.  From logcat:
QCamera : <HAL><INFO> int qcamera::QCamera2Factory::getCameraInfo(int, camera_info*, bool): 348: Camera id 0 API version 256
API version 256  means 0x100, which is version 1; in this case it is not camera 2 device; so from NDK's camera2 interface, no camera. That assertion is valid.
still not sure why android - N device chose not to support camera2... May you fire a question to XiaoMi? I will ask internally too.   Thanks

yeah sure, Thank you for your support .... :)

closing down this one as framework's NDK Camera2 does not support CAMERA_DEVICE_API_VERSION_1_0 ( confirmed).  Thank you for reporting the issue: very useful!

when i use the code followed to  getCameraIdList,  i find m_camera_id_list->numCameras  = 0, i  want to know why .  the phone is Android N+
ACameraManager *cameraManager = ACameraManager_create();
VB(cameraManager!=nullptr, "Could not create CameraManager.");
camera_status = ACameraManager_getCameraIdList(cameraManager, &m_camera_id_list);
if (camera_status != ACAMERA_OK) {
LOGE("Failed to get camera id list (reason: %d)\n", camera_status);
return ERR_CAMERAAPI_UNKNOWN_ERROR;

}
if (m_camera_id_list->numCameras < 1) {
LOGE("No camera device detected.\n");
return ERR_CAMERAAPI_UNKNOWN_ERROR;
}

I get the answer, some phones do not support native camer2, when I use other phone, the issue solved.


Fix bug in api_fuzzer

If the slices to unref array was expanded after returning a pointer to a
slice, that pointer becomes invalidated. Instead, allocate and store
pointers to slices in that array to keep stability.

Merging early to get fuzzer tasks working again


Recipe Mode Crash and missing Ylander

First, loving the Tolkiencraft II!!
My issues -

If I try to select anything from recipe mode or any other mode, the whole game crashes.  I have 16GB of RAM and have tried changing the amount allocated, no luck.
Ylander, I can't find him.  I read that their is a clone tool but I have no idea where it is or how to use it.
BDcraft, I'd like to use this skin but only maybe half of the items load.  I'm guessing I need to asks the folks at BDcraft for help on this issue?
Other than here, can you link me a place or two for help?  A forum?   I'm still new to the Minecraft world, please be kind.
Just thanks again for creating Tolkiencraft!!

Has been exlained in previous reports, solution at the ftb forum post, I would suggest checking there.

OMW!!!
Thanks again!


lv_label_set_text function bug!

hi , when i use this function like this:
lv_label_set_text(label,"سیب")
this show nothing in button
how can i display a non English word such persian or arabic

We use GitHub Issues for development-related discussions.
Please ask your question in the Forum to make it visible for a larger community. You can simply log in with your GitHub account.


Merge branch '3.10.x' into '3.15.x'

🚀 CI was able to deploy the build of this PR, so you can now try it directly here
Notes: The deployed app is linked to the management API of APIM master. (Same login and password as APIM master)

Replaced by https://github.com/gravitee-io/gravitee-api-management/pull/2208


Fix for gazebo working

Small modify for gazebo working
Linked issue #9
My environment, this PR works fine.
https://zenn.dev/karaage0703/books/3be6bad93b0c8e/viewer/eec47d

Thank you so much!!!


Client Bundle Webpack Error

longclaw version: 1.0.2
Django version: 3.1
Python version: 3.8.3
I'm trying to load the javascript libraries using the longclaw template tags into the supplied product template (catalog/template/catalog/product.html):
{% load static core_tags wagtailimages_tags longclawcore_tags %}

... HTML ...

{% longclaw_vendors_bundle %}
{% longclaw_client_bundle %}

When loading the page I get an error from longclawclient.bundle.js:
Uncaught ReferenceError: webpackJsonp is not defined at longclawclient.bundle.js:1
The vendors bundle is loading correctly before the client bundle, the files are loaded from the virtaulenv:
{project}/lib/python3.8/site-packages/longclaw/static/core/js/vendors.bundle.js
{project}/lib/python3.8/site-packages/longclaw/static/core/js/longclawclient.bundle.js
The project is was scaffolded with the longclaw CLI.

longclaw version: 1.0.2 Django version: 3.1 Python version: 3.8.3
I'm trying to load the javascript libraries using the longclaw template tags into the supplied product template (catalog/template/catalog/product.html):
{% load static core_tags wagtailimages_tags longclawcore_tags %}

... HTML ...

{% longclaw_vendors_bundle %}
{% longclaw_client_bundle %}

When loading the page I get an error from longclawclient.bundle.js:
Uncaught ReferenceError: webpackJsonp is not defined at longclawclient.bundle.js:1
The vendors bundle is loading correctly before the client bundle, the files are loaded from the virtaulenv: {project}/lib/python3.8/site-packages/longclaw/static/core/js/vendors.bundle.js {project}/lib/python3.8/site-packages/longclaw/static/core/js/longclawclient.bundle.js
The project is was scaffolded with the longclaw CLI.

@glenatmake @janbaykara Hello,
It seems that the error you are encountering is related to the Webpack runtime not being able to find the global webpackJsonp function, which is usually defined in the vendors.bundle.js file.
Here are some steps you can take to try to resolve the issue:

Make sure that you have installed all the required dependencies for your project, especially those related to Webpack and its plugins.

Check that the vendors.bundle.js file is being loaded correctly and that it defines the webpackJsonp function. You can do this by opening the file in a text editor or using the browser's developer tools to inspect the loaded script.

Verify that the longclawclient.bundle.js file is being loaded after the vendors.bundle.js file. You can do this by inspecting the network requests in your browser's developer tools.

If the above steps do not resolve the issue, you can try rebuilding the bundles using Webpack. You can do this by running the npm run build command in your project's root directory. This will rebuild the client and vendor bundles and place them in the static/ directory.

Thank you!


Duplicate Iconic Property Editors in Umbraco 11

This was after a 10.3.2 to 11 upgrade. But, I even deleted my data types, unintalled Iconic, reinstalled, and readded new data types... same result.

5.2.0-beta3 does not get rid of the problem.
Its still two property editors there.
After some changes in Data Types/Icon its not possible to save changed DataType. The PostSave method in FE cause exception in Backend.
(umbraco/backoffice/umbracoapi/datatype/PostSave)

Well, i found the Problem.

Thanks @a-t-k . Your right, if you're upgrading the package, some content will be duplicated. As you said, the project is now a Razor Class Library, so all the old files will remain in the project.
I can't find a way of removing the old files. If you have any idea please let me know.

hey @a-t-k and @skartknet i hit this exact same problem today...
my App_Plugins folder is empty, i've cleaned the solution and also gone to the lengths of deleting every bin and obj folder in each project in my solution...
no joy, still got two iconic datatypes in the backoffice and if i try and use either of them i get:
Received an error from the server
An error occurred

Sequence contains more than one matching element
Exception Details
System.InvalidOperationException, System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e: Sequence contains more than one matching element `

has anyone figured out a way out of this?

ok, we managed to work around this by:

uninstalling the package (we were using v5.0.0)
clean the solution (manually deleted the bin and obj)
delete any iconic folders from C:\Users\you-user\.nuget\packages
install the 5.2.0-beta3 version

after spinning up the project we now only have one iconic datatype in the backoffice.
the only byproduct is that we've lost the datatype configuration (this is an upgraded project from v8) but i think we can easily recreate them.

I'll close this for now, as it looks the problem was solved.


Mac users need to install leveldb during pip install

When I was running through the install steps I ran into this error after running pip install -r requirements.txt command.

According to this Stackoverflow post, it seems like my system didn't have leveldb installed. The post just recommends using Homebrew to install it: brew install leveldb. Then I could finish the install.

Thanks for noticing this. It sounds to me like an issue with the config for pip install leveldb
@rjpower - didn't you say you had said that up?

We include the leveldb C++ source for the py-leveldb package, but it looks like we're using plyvel as the requirement here, and plyvel doesn't include leveldb directly.
We could switch to py-leveldb?

I experienced the same issue that Whitney has reported above, and did brew install leveldb. Now, I'm facing a different issue. Can you please help?
Installing collected packages: plyvel, protobuf, sklearn, spotipy, werkzeug, wheel, tensorboard, termcolor, tensorflow, tqdm
Running setup.py install for plyvel ... error
Complete output from command /Users/rpanda14/AI/deep_learning_cookbook/venv3/bin/python3 -u -c "import setuptools, tokenize;file='/private/var/folders/ts/l9pzd7f16dx5chft9rmchkznb6d6vx/T/pip-install-lwea0w8t/plyvel/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/ts/l9pzd7f16dx5chft9rmchkznb6d6vx/T/pip-record-07836l53/install-record.txt --single-version-externally-managed --compile --install-headers /Users/rpanda14/AI/deep_learning_cookbook/venv3/include/site/python3.6/plyvel:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/plyvel
copying plyvel/_version.py -> build/lib.macosx-10.7-x86_64-3.6/plyvel
copying plyvel/init.py -> build/lib.macosx-10.7-x86_64-3.6/plyvel
running build_ext
building 'plyvel.plyvel' extension
creating build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/plyvel
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/rpanda14/anaconda3/include -arch x86_64 -I/Users/rpanda14/anaconda3/include -arch x86_64 -I/Users/rpanda14/AI/deep_learning_cookbook/venv3/include -I/Users/rpanda14/anaconda3/include/python3.6m -c plyvel/plyvel.cpp -o build/temp.macosx-10.7-x86_64-3.6/plyvel/plyvel.o -Wall -g -mmacosx-version-min=10.7 -stdlib=libc++
In file included from plyvel/plyvel.cpp:589:
In file included from /usr/local/include/leveldb/db.h:11:
In file included from /usr/local/include/leveldb/iterator.h:20:
/usr/local/include/leveldb/status.h:26:11: error: expected ';' at end of declaration list
Status() noexcept : state(nullptr) { }
^
/usr/local/include/leveldb/status.h:32:23: error: expected ';' at end of declaration list
Status(Status&& rhs) noexcept : state(rhs.state) { rhs.state = nullptr; }
^
/usr/local/include/leveldb/status.h:102:16: error: 'Status' is missing exception specification 'throw()'
inline Status::Status(const Status& rhs) {
^
/usr/local/include/leveldb/status.h:23:22: note: previous declaration is here
class LEVELDB_EXPORT Status {
^
/usr/local/include/leveldb/status.h:114:48: error: expected function body after function declarator
inline Status& Status::operator=(Status&& rhs) noexcept {
^
plyvel/_plyvel.cpp:21159:125: warning: offset of on non-POD type 'struct __pyx_obj_6plyvel_7_plyvel_Iterator' [-Winvalid-offsetof]
if (__pyx_type_6plyvel_7_plyvel_Iterator.tp_weaklistoffset == 0) __pyx_type_6plyvel_7_plyvel_Iterator.tp_weaklistoffset = offsetof(struct __pyx_obj_6plyvel_7_plyvel_Iterator, __pyx_base.weakref);
^                                                    ~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^                     ~
1 warning and 4 errors generated.
error: command 'gcc' failed with exit status 1
----------------------------------------

This seems to be the same issue as google/leveldb#637 - the source of leveldb. Unfortunately the suggestion there is to change the flags to the c++ compiler, which hardly seems an option in your case. Let me see if I can reproduce this.

@DOsinga Thanks for your prompt response. I will wait for your update.

I had two errors while running the installation command as well:
"python setup.py egg_info" failed with error code 1
and
Can't find a local Berkeley DB installation.
Managed to solve it by:

brew install berkeley-db@4
<EMAIL_ADDRESS>pip install scrapy-deltafetch
brew uninstall leveldb
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/86c8b39428a4e485e8afcc02f2e31da9d53007a0/Formula/leveldb.rb
sudo<EMAIL_ADDRESS>pip3 install -r requirements.txt


[BUG] New error message on smart valves with latest 1.3.6 update

I'm seeing this in my Homebridge console since updating yesterday.
error trying to update valve status, try removing cached valve accessories TypeError: Cannot read properties of undefined (reading 'getServiceById')
    at Timeout._onTimeout (/var/lib/homebridge/node_modules/homebridge-rachio-irrigation/rachioplatform.js:927:38)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Bug or do I need to do something?

The fact that you reported it means It is a bug, I see this on one system but not on an another, this message was put in place to prevent a crash. The error does not make a lot of sense to me it thinks the accessory is missing. I did remove the cached accessory for my valves and I have not seen the error since.

You can try the same and report back

I figure this out, basically the API limit was exceeded and the plugin was still trying to update. I made some improvements and can handle the use case now. It is easy for me to exceed the daily limit when I am working on this plugin, but in I would not expect it in normal use.
Question for you, how many valves do you have?

This version should help on the valve side. If you enable debug logging you can see how much of the 1700 per day your are using. The controller are not going to be an issue, just the valves because they need to poll. You could play with the polling setting in the plugin config.


[msal-node] Add docs for B2C

Library

[x]<EMAIL_ADDRESS>
Documentation location

[x] docs.microsoft.com
[x] MSAL.js Github Wiki
[x] README file
[ ] Other (please fill in)
[ ] Documentation does not exist

Description
Add docs for B2C (Samples included)

@derisen Anything else pending for node? If not, can we please close this?

@derisen Anything else pending for node? If not, can we please close this?

@sameerag we should be good to go after merging this PR.

@sameerag we should be good to go after merging this PR.

Thanks @derisen. Linked the PR, this should auto close with the merge now.

Thanks @derisen. Linked the PR, this should auto close with the merge now.


Update benchmark prompt - [markdown_editor]

Appreciate your support @zzw-zwzhang but what you say is currently too difficult


AssertionError when extracting tarball

We have started getting this exception today when extracting a tarball. We haven't touched our code or the tarball.
ERROR: LoadError: AssertionError: size == padded_size == 0
Stacktrace:
 [1] read_data(::IOStream, ::IOStream; size::Int64, buf::Array{UInt8,1}, tee::Base.DevNull) at /home/ciserver/.julia/packages/Tar/J6O2R/src/extract.jl:544
 [2] #55 at /home/ciserver/.julia/packages/Tar/J6O2R/src/extract.jl:556 [inlined]
 [3] open(::Tar.var"#55#56"{Int64,Array{UInt8,1},Base.DevNull,IOStream}, ::String; kwargs::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:write,),Tuple{Bool}}}) at ./io.jl:325
 [4] #read_data#54 at /home/ciserver/.julia/packages/Tar/J6O2R/src/extract.jl:555 [inlined]
 [5] (::Tar.var"#25#27"{Array{UInt8,1},Bool,IOStream,String})(::Tar.Header, ::Array{SubString{String},1}) at /home/ciserver/.julia/packages/Tar/J6O2R/src/extract.jl:75
 [6] read_tarball(::Tar.var"#25#27"{Array{UInt8,1},Bool,IOStream,String}, ::Tar.var"#1#2", ::IOStream; buf::Array{UInt8,1}, skeleton::Base.DevNull) at /home/ciserver/.julia/packages/Tar/J6O2R/src/extract.jl:333
 [7] extract_tarball(::Function, ::IOStream, ::String; buf::Array{UInt8,1}, skeleton::Base.DevNull, copy_symlinks::Bool) at /home/ciserver/.julia/packages/Tar/J6O2R/src/extract.jl:57
 [8] (::Tar.var"#75#78"{String,IOStream,Tar.var"#1#2"})(::Base.DevNull) at /home/ciserver/.julia/packages/Tar/J6O2R/src/Tar.jl:205
 [9] arg_write(::Tar.var"#75#78"{String,IOStream,Tar.var"#1#2"}, ::Base.DevNull) at /home/ciserver/.julia/packages/ArgTools/4vlk9/src/ArgTools.jl:94
 [10] (::Tar.var"#74#77"{IOStream,Tar.var"#1#2"})(::String) at /home/ciserver/.julia/packages/Tar/J6O2R/src/Tar.jl:204
 [11] arg_mkdir(::Tar.var"#74#77"{IOStream,Tar.var"#1#2"}, ::String) at /home/ciserver/.julia/packages/ArgTools/4vlk9/src/ArgTools.jl:145
 [12] #73 at /home/ciserver/.julia/packages/Tar/J6O2R/src/Tar.jl:200 [inlined]
 [13] open(::Tar.var"#73#76"{Tar.var"#1#2",String}, ::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at ./io.jl:325
 [14] open(::Function, ::String) at ./io.jl:323
 [15] arg_read at /home/ciserver/.julia/packages/ArgTools/4vlk9/src/ArgTools.jl:42 [inlined]
 [16] extract(::Function, ::String, ::String; skeleton::Nothing, copy_symlinks::Nothing) at /home/ciserver/.julia/packages/Tar/J6O2R/src/Tar.jl:199
 [17] #extract#79 at /home/ciserver/.julia/packages/Tar/J6O2R/src/Tar.jl:221 [inlined]
 [18] extract at /home/ciserver/.julia/packages/Tar/J6O2R/src/Tar.jl:221 [inlined]

Any ideas what could cause this?
We are using Julia 1.5.2 and Tar 1.8.0

Hmm. That's perplexing. We had a bug like that which got fixed, I guess there may be an even more difficult case. How is extract being called? Is the input a stream or a file or what?

There was a stale/corrupt (not sure) depot locally that caused this. Wiping it fixed the issue. We called extract with two strings (so a local tar file).

It still shouldn't be possible for this assertion to fail. If you could supply a tarball that triggers this, it would be greatly appreciated.

@StefanKarpinski Maybe not related but I got same error in https://github.com/JuliaPackaging/Yggdrasil/issues/5781


API GridFieldAddNewButton should pass in a context for canCreate()

When adding a new element to a relation, sometimes the properties of that parent object would be necessary to check for create permissions on child elements. E.g. for SiteTree, canCreate takes an array ['Parent' => $parentPage] as a second parameter.
It shouldn't be impossible to get the parent relation and ensure that $record is passed when checking permissions.
E.g.
public function getHTMLFragments($gridField) {
    $singleton = singleton($gridField->getModelClass());
    $list = $gridField->getList();
    $record = $list->methodThatGetsParentObject();
    $property = $list->methodThatGetsParentRelation();
    if(!$singleton->canCreate(null, array($property => $record))) {
        return array();
    }
    // Rest of code
}

Reference: https://github.com/silverstripe/silverstripe-userforms/pull/417

Changing to alpha 2 as this doesn't seem specifically needed in alpha 1 (just before beta).

Franco and Simon Gow offered to work on this for hackday :)

Fixed with #6889


Modernizing golangci-lint configuration for latest version syntax

Golangci-lint config syntax has changed in recent version, this removes warning messages from logs:
level=warning msg="[config_reader] The configuration option `run.skip-files` is deprecated, please use `issues.exclude-files`."
level=warning msg="[config_reader] The configuration option `run.skip-dirs` is deprecated, please use `issues.exclude-dirs`."

Timeout is now config defined not command-line switch

/approve
/lgtm


Enable squish decompression in runtime builds

Build squish decompression in no-tools builds. Allows decompressing RGTC when the relevant extension isn't available. Also add a check for the new WebGL extension for WebGL 2.
Fix #15983

Squish doesn't link properly in tools=no builds:
modules/libmodules.x11.opt.64.llvm.a(squish.x11.opt.64.llvm.o): In function `squish::CompressMasked(unsigned char const*, int, void*, int, float*)':
thirdparty/squish/squish.cpp:(.text+0x1a4): undefined reference to `squish::ColourSet::ColourSet(unsigned char const*, int, int)'
thirdparty/squish/squish.cpp:(.text+0x1c7): undefined reference to `squish::SingleColourFit::SingleColourFit(squish::ColourSet const*, int)'
thirdparty/squish/squish.cpp:(.text+0x1d2): undefined reference to `squish::ColourFit::Compress(void*)'
thirdparty/squish/squish.cpp:(.text+0x205): undefined reference to `squish::ClusterFit::ClusterFit(squish::ColourSet const*, int, float*)'
thirdparty/squish/squish.cpp:(.text+0x210): undefined reference to `squish::ColourFit::Compress(void*)'
thirdparty/squish/squish.cpp:(.text+0x22e): undefined reference to `squish::RangeFit::RangeFit(squish::ColourSet const*, int, float*)'
thirdparty/squish/squish.cpp:(.text+0x239): undefined reference to `squish::ColourFit::Compress(void*)'
thirdparty/squish/squish.cpp:(.text+0x243): undefined reference to `squish::ColourFit::~ColourFit()'
thirdparty/squish/squish.cpp:(.text+0x28a): undefined reference to `squish::ColourFit::~ColourFit()'
thirdparty/squish/squish.cpp:(.text+0x299): undefined reference to `squish::ColourFit::~ColourFit()'
thirdparty/squish/squish.cpp:(.text+0x2a8): undefined reference to `squish::ColourFit::~ColourFit()'

Updated, the library is small, so no point taking efforts to build compression only for the editor. Emscripten does dead code elimination, so the size-critical platform benefits anyway

Thanks!

Cherry-picked for 3.0.7.


Can the kfserving v1beta1 version be set to deploy isvc in the kubeflow namespace?

Can the kfserving v1beta1 version be set to deploy isvc in the kubeflow namespace? I know that deploying isvc in the kubeflow namespace is not recommended, but is there such a way to accomplish this task?

The KFS pod mutator has a namespace selector requiring the namespaces not having the control-plane label,  you could choose to remove this selector but in general we do not recommend deploying user workload to control plane namespace.
https://github.com/kubeflow/kfserving/blob/master/config/webhook/manifests.yaml#L52


fix: use PixelRatio for AutoImage values

Please verify the following:

[x] yarn test jest tests pass with new tests, if relevant
[x] yarn lint eslint checks pass with new code, if relevant
[x] yarn format:check prettier checks pass with new code, if relevant
[x] README.md (or relevant documentation) has been updated with your changes
[x] If this affects functionality there aren't tests for, I manually tested it, including by generating a new app locally if needed (see docs).

Describe your PR
@markrickert recently made a change to this component on our client project to use PixelRatio.roundToNearestPixel for the sizing from useAutoImage. No visible changes in the simulator, but it seems like a nice touch to clean up any trailing values in the auto image math.
Screenshots (if applicable)

Before
After

Before
After

:tada: This PR is included in version 10.1.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add headers to PO file in GettextPoFile::save()

Q
A

Is bugfix?
no

New feature?
yes

Breaks BC?
no

Tests pass?
yes

Fixed issues
#11212

Seems it doesn't work https://travis-ci.org/yiisoft/yii2/jobs/142155374#L291

Sorry, forgot to run unit tests. Content-Type header uses Yii::$app->charset and unit test didn't work without mock application.

OK. Looks good to me. Can you add a changelog?

Done.

Merged. Thank you!


Feat/add auth with user and password

Changes method for auth for a generic one
Deprecates old JWT auth method
Adds basic auth support

New proposed API for auth:
await tepper(app)
          .auth()
          .withBasicAuth(user, password)
          .get("/")
          .run()

await tepper(app)
         .auth()
         .withBearer(jwt)
         .get("/")
         .run()

@DanielRamosAcosta  Are we happy with this API for auth?
I also thought about:
await tepper(app)
          .authWithBasicAuth(user, password)
          .get("/")
          .run()

await tepper(app)
          .authWithBearer(jwt)
          .get("/")
          .run()

But I think that the current .authWith() should be renamed, thus breaking the current API. What do yout think?

Codecov Report

Merging #224 (bc31f05) into main (91c4d03) will increase coverage by 0.14%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #224      +/-   ##
==========================================
+ Coverage   96.93%   97.08%   +0.14%
==========================================
  Files          11       11
  Lines         196      206      +10
  Branches       39       42       +3
==========================================
+ Hits          190      200      +10
  Misses          5        5
  Partials        1        1

Impacted Files
Coverage Δ

src/tepper.ts
100.00% <ø> (ø)

src/TepperBuilder.ts
94.54% <100.00%> (+0.79%)
:arrow_up:

src/TepperRunner.ts
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@AaronPerezPerez I would prefer to mantain the old authWithBearer method, to avoid adding breaking changes. Could you please remove the .auth() and keep authWithBearer and withBasicAuth?


dependencies: gulp-minify-css deprecation

gulp-minify-css has been in deprecated in favor of gulp-clean-css. Please open an issue with the new repository if you do upgrade and experience any unexpected behavior. I look forward to maintaining this package moving forward.

Good to know, thanks @scniro. I'll try it out


[Python][C++] Fix deprecations when building pyarrow

Describe the bug, including details regarding any error messages, version, and platform.
I've noticed some deprecations when building pyarrow:
  [28/53] Building CXX object CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/deserialize.cc.o
  In file included from /root/dist/include/arrow/util/cancel.h:25,
                   from /root/dist/include/arrow/io/interfaces.h:28,
                   from /root/dist/include/arrow/io/caching.h:26,
                   from /root/dist/include/arrow/ipc/options.h:24,
                   from /arrow/python/pyarrow/src/arrow/python/serialize.h:23,
                   from /arrow/python/pyarrow/src/arrow/python/deserialize.h:24,
                   from /arrow/python/pyarrow/src/arrow/python/deserialize.cc:18:
  /arrow/python/pyarrow/src/arrow/python/deserialize.cc: In function ‘arrow::Status arrow::py::NdarrayFromBuffer(std::shared_ptr<arrow::Buffer>, std::shared_ptr<arrow::Tensor>*)’:
  /arrow/python/pyarrow/src/arrow/python/deserialize.cc:498:37: warning: ‘arrow::Status arrow::py::ReadSerializedObject(arrow::io::RandomAccessFile*, SerializedPyObject*)’ is deprecated: Deprecated in 18.0.0. Will be removed in 20.0.0 [-Wdeprecated-declarations]
    498 |   RETURN_NOT_OK(ReadSerializedObject(&reader, &object));
        |                 ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
  /root/dist/include/arrow/status.h:57:62: note: in definition of macro ‘ARROW_RETURN_NOT_OK’
     57 |     ::arrow::Status __s = ::arrow::internal::GenericToStatus(status); \
        |                                                              ^~~~~~
  /arrow/python/pyarrow/src/arrow/python/deserialize.cc:498:3: note: in expansion of macro ‘RETURN_NOT_OK’
    498 |   RETURN_NOT_OK(ReadSerializedObject(&reader, &object));
        |   ^~~~~~~~~~~~~
  /arrow/python/pyarrow/src/arrow/python/deserialize.cc:324:8: note: declared here
    324 | Status ReadSerializedObject(io::RandomAccessFile* src, SerializedPyObject* out) {
        |        ^~~~~~~~~~~~~~~~~~~~
  /arrow/python/pyarrow/src/arrow/python/deserialize.cc:499:28: warning: ‘arrow::Status arrow::py::DeserializeNdarray(const SerializedPyObject&, std::shared_ptr<arrow::Tensor>*)’ is deprecated: Deprecated in 18.0.0. Will be removed in 20.0.0 [-Wdeprecated-declarations]
    499 |   return DeserializeNdarray(object, out);
        |          ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
  /arrow/python/pyarrow/src/arrow/python/deserialize.cc:486:8: note: declared here
    486 | Status DeserializeNdarray(const SerializedPyObject& object,
        |        ^~~~~~~~~~~~~~~~~~
  [29/53] Building CXX object CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/filesystem.cc.o
  [30/53] Building CXX object CMakeFiles/arrow_python.dir/pyarrow/src/arrow/python/python_test.cc.o
  /arrow/python/pyarrow/src/arrow/python/python_test.cc: In function ‘arrow::Status arrow::py::testing::{anonymous}::TestDecimal128OverflowFails()’:
  /arrow/python/pyarrow/src/arrow/python/python_test.cc:666:31: warning: ‘std::shared_ptr<arrow::DataType> arrow::decimal(int32_t, int32_t)’ is deprecated: Deprecated in 18.0. Use `smallest_decimal` instead [-Wdeprecated-declarations]
    666 |   auto type = ::arrow::decimal(38, 38);
        |               ~~~~~~~~~~~~~~~~^~~~~~~~
  In file included from /root/dist/include/arrow/array/statistics.h:25,
                   from /root/dist/include/arrow/array/data.h:27,
                   from /root/dist/include/arrow/array/array_base.h:26,
                   from /root/dist/include/arrow/array.h:41,
                   from /arrow/python/pyarrow/src/arrow/python/python_test.cc:25:
  /root/dist/include/arrow/type_fwd.h:537:27: note: declared here
    537 | std::shared_ptr<DataType> decimal(int32_t precision, int32_t scale);
        |                           ^~~~~~~
  /arrow/python/pyarrow/src/arrow/python/python_test.cc: In function ‘arrow::Status arrow::py::testing::{anonymous}::TestDecimal256OverflowFails()’:
  /arrow/python/pyarrow/src/arrow/python/python_test.cc:692:31: warning: ‘std::shared_ptr<arrow::DataType> arrow::decimal(int32_t, int32_t)’ is deprecated: Deprecated in 18.0. Use `smallest_decimal` instead [-Wdeprecated-declarations]
    692 |   auto type = ::arrow::decimal(76, 76);
        |               ~~~~~~~~~~~~~~~~^~~~~~~~
  /root/dist/include/arrow/type_fwd.h:537:27: note: declared here
    537 | std::shared_ptr<DataType> decimal(int32_t precision, int32_t scale);
        |                           ^~~~~~~

We should fix those.
Component(s)
C++, Python

In other implementations the build fails if those deprecations are raised (like in C GLib) so those are fixed when the feature is deprecated. We could investigate to do the same for pyarrow and fail the build so pyarrow is also updated when these changes happen.

We can use -Werror for it.
FYI: This is a related code in C++: https://github.com/apache/arrow/blob/f5c340be342a427b8ef10e51e9d10fc6013c5b4c/cpp/cmake_modules/SetupCxxFlags.cmake#L255-L389


webdav readme possible update

We just have written a nice readme for webdav.
Now, when looking into the admin docs where we this description needs to be transported to, I found an interesting sentence that already existed:
The Infinite Scale WebDAV service provides preview (thumbnails) endpoints on the WebDAV API and therefore extends the main WebDAV API provided by the OCDAV service.
The question is, should the new readme improved with the content:
The WebDAV API extends the API provided by the OCDAV service?
@kobergj maybe you can help

Hm, no. The ocis webdav service implements an aspect of the oc10 webdav api that is left out of the ocdav handler: thumbnails.


No way to handle Invalid header value using HttpClientZioBackend

Reproducer
Requires "com.softwaremill.sttp.client3" %% "zio" % "3.8.15"
Scastie link to the same code.
import zio._
import sttp.client3._
import sttp.client3.httpclient.zio.HttpClientZioBackend

object Main extends ZIOAppDefault {

  val program = for {
    backend  <- HttpClientZioBackend.scoped()
    response <- basicRequest.get(uri"https://example.com")
       // the problem is here
      .header("X-Api-Key", "Я ЛЮБЛЮ БОРЩ")
      .response(asString)
      .send(backend)
  } yield ()

  val run = program
    .catchAllDefect { defect =>
       // It should have been an error?
       ZIO.consoleWith(_.printLine(s"Captured defect=$defect"))
    }
}

Actual console output:
Captured defect=java.lang.IllegalArgumentException: invalid header value: "Я ЛЮБЛЮ БОРЩ"

Expectation:
While non-latin header values are forbidden, it's confusing that such an error is a ZIO defect.
What is more confusing is that sttp doesn't provide a proper way to validate the header value.
Therefore, there is no way to overcome this error easily.
I'd expect there is a way to either validate the header or handle such errors as ZIO's errors, because the header value may be a user input (therefore, it may be incorrect).
Is there any reason why this invalid header value isn't handled as "normal" error, but as a defect?

I think there are two problems here:

sttp model contains methods for creating the model classes w/ validation (as described here), however for some reason the header value is not validated (while it should, along the rules specified here). So we should fix this, so that .header(Header.unsafeApply("X-Api-Key", "Я ЛЮБЛЮ БОРЩ")) would behave as expected (throw a validation error)
as for defects/errors, throwing an exception inside a .map in ZIO is translated to a defect (e.g. ZIO.succeed(1).map(_ => throw new IllegalArgumentException(""))). That's just how ZIO works ... but as we want to represent any exceptions that happen during request construction as errors, I think that all ZIO backends should override .send and additionaly do:

    .catchSomeDefect {
      case e: Exception => ZIO.fail(e)
    }


Sub-resource integrity breaking change

Hello. I was using swc inside post_build hook, which is now broken due to integrity verification.
I didn't find any config and/or CLI option to disable this behavior, apart from inline attribute. As this breaks many of my trunk based projects, would it be possible to make this opt-in or configurable globally?
Thank you very much for your time and effort!

Sounds reasonable. But I would like to understand how this breaks things?

This is released with trunk 0.18.1. You can add the --no-sri flag to disable SRIs in any case. However, the default is still enabled when using --release.


cmake build still failed on OSX

I uninstall unittest-cpp installed from homebrew and re-installed it from source code at latest commit of the master branch.
But it's still failed.
It seems that UnitTest++Config.cmake will set UTPP_INCLUDE_DIRS to the correct path.
But our cmake script will still take unittest++_INCLUDE_DIRS to find the header files.
ref: CMakeLists.txt#L44
Please correct me if I'm doing wrong somewhere.
Or if the script's problem, I would like to create PR for this, thanks!

FYI
I build unittest++ follow the steps unittest-cpp/wiki/Building-Using-CMake
After that, I could not build with current CMakeLists.txt settings,
but success after the modification of https://github.com/chhsiao90/honest-profiler/commit/83592625ddcbbef6cb7d8eb9c77b13984bba4237 on my OSX.

Travis shows this as passing
E.g: https://travis-ci.org/jvm-profiling-tools/honest-profiler/builds/336200155


Update functions.md for grammar error

Description
fixes https://github.com/pulumi/pulumi-hugo/issues/3218
Checklist:

[ ] I have reviewed the style guide.
[ ] If blogging, I have reviewed the blogging guide.
[ ] I have manually confirmed that all new links work.
[ ] I added aliases (i.e., redirects) for all filename changes.
[ ] If making css changes, I rebuilt the bundle.

while you are on the page, check out the method example below this one ...
there seems to be an additional typo and for some reason, there are
"missing" languages, that seem to be available (in fact, i think they are
documented for that method in the registry?)
On Thu, Aug 3, 2023 at 2:34 PM James Denyer @.***>
wrote:

Description Checklist:

I have reviewed the style guide
https://github.com/pulumi/pulumi-hugo/blob/master/STYLE-GUIDE.md.
If blogging, I have reviewed the blogging guide
https://github.com/pulumi/pulumi-hugo/blob/master/BLOGGING.md.
I have manually confirmed that all new links work.
I added aliases (i.e., redirects) for all filename changes.
If making css changes, I rebuilt the bundle.

You can view, comment on, or merge this pull request online at:
https://github.com/pulumi/pulumi-hugo/pull/3223
Commit Summary

49729ad
https://github.com/pulumi/pulumi-hugo/pull/3223/commits/49729ad9e8e7d739f1f228fc57691bfcbe29b3de
Update functions.md for grammar error

File Changes
(1 file https://github.com/pulumi/pulumi-hugo/pull/3223/files)

M themes/default/content/docs/concepts/resources/functions.md
https://github.com/pulumi/pulumi-hugo/pull/3223/files#diff-2306781d9ce0449923efb310493974ae6b3022dc502e455953bdd6085691d416
(4)

Patch Links:

https://github.com/pulumi/pulumi-hugo/pull/3223.patch
https://github.com/pulumi/pulumi-hugo/pull/3223.diff

—
Reply to this email directly, view it on GitHub
https://github.com/pulumi/pulumi-hugo/pull/3223, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB77TQTXORRGTHXP7XJNQ53XTQKPJANCNFSM6AAAAAA3DLKPSM
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Update Persian Translation

It seems fa.po file is not as updated as the app itself. courtesy of Danial Behzadi, I tried to complete his work.

By the way, I couldn't find language switcher anywhere in the app.

There is no language switcher, it follows system locale settings.

How about giving users an option for doing this?

I don't really see the point. Why not just switch system language? No other gnome app is doing that. The only apps that I've seen doing language switch is browsers. I can understand it for browsers (privacy reasons), but for any other app it's  unnecessary.


[storage] Exempt Reconciliations Counter

This PR adds an ExemptReconciliationCounter constant in the storage package.

If Heimdall is stuck, please click the following link: https://heimdall-public.cbhq.net/v1/pull_request/stuck?pr_number=181&repository=coinbase/rosetta-sdk-go

Pull Request Test Coverage Report for Build 8735

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

Totals

Change from base Build 8728:
0.0%

Covered Lines:
6673

Relevant Lines:
8490

💛  - Coveralls


Replace description smalldev

Replace description for smalldev product card

remove Small Dev Tool: in the description

Doing it!

Its done! @JasonDsouza212  can you please review it?


dependency conflict, firebase_core and source_span

Is there an existing issue for this?

[x] I have searched the existing issues.

Which plugins are affected?
Core
Which platforms are affected?
Android
Description
Because no versions of firebase_core match >3.9.0 <4.0.0 and firebase_core 3.9.0 depends on firebase_core_platform_interface ^5.4.0, firebase_core ^3.9.0 requires firebase_core_platform_interface ^5.4.0.
And because no versions of firebase_core_platform_interface match >5.4.0 <6.0.0, firebase_core ^3.9.0 requires firebase_core_platform_interface 5.4.0.
And because firebase_core_platform_interface 5.4.0 depends on flutter_test from sdk which depends on source_span 1.10.0, firebase_core ^3.9.0 requires source_span 1.10.0.
So, because be_pass depends on both firebase_core ^3.9.0 and source_span ^1.10.1, version solving failed.
Reproducing the issue
Because no versions of firebase_core match >3.9.0 <4.0.0 and firebase_core 3.9.0 depends on firebase_core_platform_interface ^5.4.0, firebase_core ^3.9.0 requires firebase_core_platform_interface ^5.4.0.
And because no versions of firebase_core_platform_interface match >5.4.0 <6.0.0, firebase_core ^3.9.0 requires firebase_core_platform_interface 5.4.0.
And because firebase_core_platform_interface 5.4.0 depends on flutter_test from sdk which depends on source_span 1.10.0, firebase_core ^3.9.0 requires source_span 1.10.0.
So, because be_pass depends on both firebase_core ^3.9.0 and source_span ^1.10.1, version solving failed.
Firebase Core version
3.9.0
Flutter Version
3.27.1
Relevant Log Output

Flutter dependencies

Expand Flutter dependencies snippet

Replace this line with the contents of your `flutter pub deps -- --style=compact`.

Additional context and comments
No response

Hi @yanaico, could you try pinning source_span version to 1.10.0? Like so
...
source_span: 1.10.0


Strange behaviour with devcontainer features generate-docs

I can't get devcontainer features generate-docs to work, I've tried every combo of switches and arguments I can think of, and they don't help.
It seems to treat everything as a directory, even other files!
I'm running version 0.68.0

Hi 👋
@benc-uk Can you try running the following command 👇 ?
devcontainer features generate-docs -p src/ -n benc-uk/devc-features

-p, --project-folder  Path to folder containing 'src' and 'test' sub-folders. This is likely the git root of the project.

I wonder if we should update the description and ask the user to provide the path that includes src. From reading the description, it might seem like we are asking users to add the top-level path that contains both the src and test folders.
// cc @joshspicer

Ok that worked!
I'm sure I tried that, but obviously not!
Seems like the argument description for this needs updating, it currently reports:
-p, --project-folder  Path to folder containing 'src' and 'test' sub-folders. This is likely the git root of the project

I think the behavior here should mirror the features publish command, which is:

In the publish command this is a positional argument


Cannot apply two programs together

I'm not sure what is going on. I get the following while trying to build transaction.
 % ./start-app.sh
Writing Swagger file ...
parsing Config ...
Loading Providers ...
Starting server at
 http://localhost:8222
[2024-09-10 09:00:25][GeniusYield.api-server][Debug][MacBook-Pro][PID 48652][ThreadId 49][tls-crdn-0.6.0-dbbfd75e:GeniusYield.TxBuilder.IO.Query src/GeniusYield/TxBuilder/IO/Query.hs:106:9] Querying UtxoRefs At Address: addr_test1...3km
[2024-09-10 09:00:25][GeniusYield.api-server.buildTxBody][Debug][MacBook-Pro][PID 48652][ThreadId 49][tls-crd[2024-09-10 09:00:25][GeniusYield.api-server][Debug][MacBook-Pro][PID 48652][ThreadId 49][tls-crdn-0.6.0-dbbfd75e:GeniusYield.TxBuilder.IO.Query src/GeniusYield/TxBuilder/IO/Query.hs:81:9] Querying utxos At Addresses:
 [unsafeAddressFromText "addr_test1...3km"]
Cannot apply two programs together: the first program has version Version {_versionMajor = 1, _versionMinor = 1, _versionPatch = 0} but the second program has version Version {_versionMajor = 1, _versionMinor = 0, _versionPatch = 0}
CallStack (from HasCallStack):
  error, called at prelude/PlutusPrelude.hs:253:29 in plts-cr-<IP_ADDRESS>-b8c5ae45:PlutusPrelude

What does it mean to apply two programs together and how does one ensure the right ones are applied?

It appears that you compiled your program with PLC version 1.1.0 and later applied argument lifted with version 1.0.0. You may want to set target-version to 1.0.0 or lift with version 1.1.0...

I sincerely can't relate ;(
Here is how my cabal file looks:
myapp.cabal:
...

flag defer-plugin-errors
  description:
      Defer errors from the plugin, useful for things like Haddock that can't handle it.
  default: False
  manual: True

common myapp-common
  default-language:   Haskell2010
  default-extensions:
    DataKinds
    DeriveAnyClass
    DerivingStrategies
    DerivingVia
    GADTs
    LambdaCase
    MultiWayIf
    OverloadedStrings
    RecordWildCards
    RoleAnnotations
    TemplateHaskell
    TypeFamilies
    UndecidableInstances
    UnicodeSyntax
    ViewPatterns
    DeriveGeneric
    NamedFieldPuns
    TypeOperators

  ghc-options:        -Wall

  build-depends:
    , aeson
    , base               <5
    , bytestring
    , file-embed
    , plutus-ledger-api
    , ply-core
    , text

  -- set target plutus-core version
  ghc-options: -fplugin-opt PlutusTx.Plugin:target-version=1.0.0
  -- so unfoldings are present even when compiled without optmizations
  ghc-options:
    -fno-ignore-interface-pragmas -fno-omit-interface-pragmas
    -Wno-partial-type-signatures

  -- expose all unfoldings, so plutustx compiler can do its job
  ghc-options:     -fexpose-all-unfoldings -fobject-code

library myapp-onchain
  import:          myapp-common
  exposed-modules:
    ...
  other-modules:

  hs-source-dirs:  onchain
  build-depends:
    , cardano-api
    , plutus-core
    , plutus-ledger-api
    , plutus-tx
    , aeson
    , serialise
    , plutus-tx-plugin
    -- , plutarch

library myapp-server-skeleton
  import:           myapp-common
  hs-source-dirs:   server-lib/MyApp
  exposed-modules:
    ...
  other-modules:
    ...

  build-depends:
    , base
    , aeson
    , myapp-onchain
    , atlas-cardano
    , swagger2
    , servant-server
    , containers
    , plutus-ledger-api
    , extra

library myapp-server-lib
  import:           myapp-common
  hs-source-dirs:   server-lib/MyApp
  exposed-modules:
    ...
  other-modules:
    ...

  build-depends:
    , base
    , aeson
    , myapp-onchain
    , myapp-server-skeleton
    , atlas-cardano
    , swagger2
    , servant-server
    , servant-swagger
    , containers
    , text
    , lens
    , plutus-ledger-api
    , extra
    , validation

executable myapp-exe
  import:           myapp-common
  hs-source-dirs:   server
  main-is:          server-main.hs

  -- Modules included in this executable, other than Main.
  -- other-modules:

  -- LANGUAGE extensions used by modules in this package.
  -- other-extensions:
  hs-source-dirs:   app
  default-language: Haskell2010
  ghc-options:
    -O2 -threaded -rtsopts -with-rtsopts=-T -fplugin-opt
    PlutusTx.Plugin:defer-errors
  build-depends:
    , optparse-applicative
    , myapp-onchain
    , myapp-server-skeleton
    , myapp-server-lib
    , aeson-pretty
    , base
    , bytestring
    , atlas-cardano
    , servant-server
    , transformers
    , wai
    , wai-cors
    , http-types
    , warp
    -- , utilities

test-suite myapp-colony-tests
  import:         myapp-common
  ghc-options:    -threaded -rtsopts
  type:           exitcode-stdio-1.0
  main-is:        Colony/colony-tests.hs
  hs-source-dirs: tests
  other-modules:
    Colony.Tests.Utils
    Colony.Tests.CreateColony
    Colony.Tests.AddMember

  build-depends:
    , base
    , containers
    , myapp-onchain
    , myapp-server-skeleton
    , myapp-server-lib
    , atlas-cardano
    , mtl
    , plutus-simple-model
    , tasty
    , tasty-hunit

test-suite myapp-colony-privnet-tests
  import:         myapp-common
  type:           exitcode-stdio-1.0
  ghc-options:    -threaded -rtsopts
  hs-source-dirs: tests-privnet
  main-is:        Colony/colony-privnet-tests.hs
  other-modules:
    Colony.Tests.CreateColony
    Colony.Tests.Utils

  build-depends:
    , base
    , myapp-onchain
    , myapp-server-skeleton
    , myapp-server-lib
    , atlas-cardano
    , tasty
    , tasty-hunit
    -- , plutus-size-check
    , plutus-ledger-api
    , plutus-tx
    , plutus-tx-plugin

cabal.project:
repository cardano-haskell-packages
  url: https://input-output-hk.github.io/cardano-haskell-packages
  secure: True
  root-keys:
    3e0cce471cf09815f930210f7827266fd09045445d65923e6d0238a6cd15126f
    443abb7fb497a134c343faf52f0b659bd7999bc06b7f63fa76dc99d631f9bea1
    a86a1f6ce86c449c46666bda44268677abf29b5b2d2eb5ec7af903ec2f117a82
    bcec67e8e99cabfa7764d75ad9b158d72bfacf70ca1d0ec8bc6b4406d1bf8413
    c00aae8461a256275598500ea0e187588c35a5d5d7454fb57eac18d9edb86a56
    d4a35cd3121aa00d18544bb0ac01c3e1691d618f462c46129271bccf39f7e8ee

-- repeating the index-state for hackage to work around hackage.nix parsing limitation
index-state: 2024-08-27T16:28:01Z

index-state:
  , hackage.haskell.org 2024-08-27T16:28:01Z
  , cardano-haskell-packages 2024-07-24T14:16:32Z

packages:
    .
  , ./onchain/Utilities

package postgresql-libpq
  flags: +use-pkg-config

source-repository-package
  type: git
  location: https://github.com/geniusyield/ply
  tag: 4a61941b3287782d2c11f9ab1cae0889d0a57385
  --sha256: sha256-24WKaBs6qiJzi++wTyqIh61Dc1QeCzeo0YqLE4wsEbg=
  subdir: ply-core

source-repository-package
  type: git
  location: https://github.com/geniusyield/atlas
  tag: v0.6.0
  --sha256: sha256-v+tTCIz8uyaQfsMJRc5F36TNK9ZPfrBxwXLYaXqZrZA=

-------- Begin contents from @atlas@'s @cabal.project@ file. --------

package cardano-crypto-praos
  flags: -external-libsodium-vrf

source-repository-package
  type: git
  location: https://github.com/maestro-org/haskell-sdk
  tag: v1.7.2
  --sha256: sha256-nXnelHH4a+V0nguP8oUDlyEz/fLQ/i1fs/flyZTmvAc=

-- TODO: Temporary, until proposed changes are in upstream (track https://github.com/mlabs-haskell/clb/pull/44)
source-repository-package
  type: git
  location: https://github.com/sourabhxyz/clb
  tag: 09414a93047b4c7f6e03e20d1730c9c0f88e1d46
  --sha256: sha256-y5fF8IDywt/pQ3HsRE6CpAlqK4uiU/SRuDIqSHxBED0=

-- Obtaining cardano-node stuff for 9.1.0. These aren't published on CHaP yet.
source-repository-package
  type: git
  location: https://github.com/IntersectMBO/cardano-node
  tag: 9.1.0
  --sha256: sha256-F5wgRA820x16f+8c/LlEEBG0rMJIA1XWw6X0ZwX5UWs=
  subdir:
    cardano-node
    cardano-testnet
    trace-dispatcher

-- TODO: Make changes upstream
source-repository-package
  type: git
  location: https://github.com/geniusyield/cardano-wallet
  tag: 3413fdf74fd25b100662abf2a49c1afc892f1b79
  --sha256: sha256-V5DNUzraaDJo6cXc1eeVVIJNWqC8JayQrJeNNLg/Els=
  subdir:
    lib/address-derivation-discovery
    lib/balance-tx/
    lib/coin-selection/
    lib/crypto-primitives/
    lib/delta-store/
    lib/delta-table
    lib/delta-types/
    lib/iohk-monitoring-extra
    lib/launcher/
    lib/network-layer/
    lib/numeric/
    lib/primitive/
    lib/read
    lib/secrets
    lib/std-gen-seed/
    lib/test-utils/
    lib/text-class/
    lib/wai-middleware-logging/
    lib/wallet-benchmarks/
    lib/wallet/

------ Following is mostly from @cardano-wallet@'s @cabal.project@ file. -------

--------------------------------------------------------------------------------

source-repository-package
    type: git
    location: https://github.com/IntersectMBO/cardano-addresses
    tag: 2bca06deaa60e54a5322ac757387d744bf043367
    --sha256: 1y1mzfly7jac40b9g4xc078rcm5zqhc3xxv77kwxi10yph1jwq7z
    subdir: command-line
            core

-- Normally cabal won't apply ghc-options which we specify to build packages
-- to their "regular" dependencies.
-- However, the dependencies declared using the `source-repository-package`
-- pragma are an exception to this rule.
-- This is why we need to manually control options that are applied to the
-- `cardano-addresses` package by declaring them explicitly here.
--
-- Cardano Addresses CLI uses an outdated version of the `optparse-applicative`
-- library. This causes a deprecation warning to be emitted when building.
-- We don't want to promote this warning to an error level as it break the
-- release build and cardano-addresses codebase is not under our control.
package cardano-addresses-cli
    ghc-options:
        -Wwarn=deprecations

package cardano-addresses
    ghc-options:
        -Wwarn=incomplete-uni-patterns
-- END Cardano Addresses Dependency
--------------------------------------------------------------------------------

source-repository-package
    type: git
    location: https://github.com/input-output-hk/cardano-sl-x509
    tag: a91add165152fa36f08e95fafe7da24f1dba4690
    --sha256: 1ia8vlqghis92cla8qmqa6kh8f3jn29b01fshyk5hmgy5373s684

source-repository-package
    type: git
    location: https://github.com/cardano-foundation/cardano-wallet-client.git
    tag: 353412ca621dc28af53e4a19795338b19bab1b7b
    --sha256: 04q58c82wy6x9nkwqbvcxbv6s61fx08h5kf62sb511aqp08id4bb
    subdir: generated

--------------------------------------------------------------------------------
-- BEGIN Constraints tweaking section

allow-newer:
    async-timer:unliftio-core
  , servant-openapi3:*
  , katip:Win32
  , raven-haskell:aeson

constraints:
    base >= <IP_ADDRESS> && < 5
  , openapi3 >= 3.2.0
  , persistent ^>= <IP_ADDRESS>
  , cardano-node ^>= 9.1.0
  , bech32 >= 1.1.7
  -- , postgresql-libpq >= 0.10

  -- lower versions of katip won't build with the Win32-<IP_ADDRESS>
  -- which is shipped with the ghc-9.2.8
  , katip >= <IP_ADDRESS>

  -- Cardano Node dependencies:
  , io-classes >= 1.4
  , io-classes -asserts
  , ouroboros-consensus-cardano ^>= 0.18
  , ouroboros-network ^>= 0.16.1
  , ouroboros-network-protocols ^>= 0.9

-- END Constraints tweaking section
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
-- Flags for dependencies without an S-R-P pragma should be kept in this section
-- (conversely, flags for the S-R-P dependencies should be kept within the
-- same section where an S-R-P pragma is located,
-- for them to be managed together)

-- Using RDRAND instead of /dev/urandom as an entropy source for key
-- generation is dubious. Set the flag so we use /dev/urandom by default.
package cryptonite
  flags: -support_rdrand

package cardano-config
  flags: -systemd

package cardano-node
  flags: -systemd

package bitvec
   flags: -simd

-- -------------------------------------------------------------------------

-------- End contents from @cardano-wallet@'s @cabal.project@ file. --------
-------- End contents from @atlas@'s @cabal.project@ file. --------

No where else in my implementation have I had to explicitly specify a version.

I deleted my build directory and compiled the app again, and everything seems to work well now.
Thanks!


Dark Mode Toggler

Is your feature request related to a problem? Please describe.
Nowadays, every website has a feature of switching between the modes as per user's preferences and that is missing in yours. I want to make a dark mode toggler using HTML5, CSS3, and JavaScript that will provide users an ease to switch between the modes. I am willing to work on this issue kindly, assign this to me under GSSOC23.
Describe the solution you'd like
I want to make a theme toggler inside the nav bar that will provide a switching functionality to the users.
Describe alternatives you've considered
I have considered making a toggler functionality for switching between modes.
Additional context

so this function is already under development, check #17


How to align page number to the bottom right?

Can you please point out how to handle changing the page number from the bottom left to the bottom right? @privateOmega

@cooleraid its quite easy, just give a footerString containing a

 tag with text-align: right;
Short snippet on this lifted from example files and modified
const fileBuffer = await HTMLtoDOCX(
    htmlString,
    null,
    {
      table: { row: { cantSplit: true } },
      footer: true,
      pageNumber: true,
    },
    `<p style="text-align: right;"></p>`
  );

Closing this issue. Feel free to reopen if you need any more clarity on this.

Hello! I found your comment.
I am trying to bind the page number with more content in the footer, but the page number is pasted with the rest of the content of the footer.
Can you help me please?