NoSuchMethodError: The getter 'nullabilitySuffix' was called on null.

Analyzing project...
[----------------------------------------------------------------------------------------------------------------------------------------------------------]No analysis issues found.
Generating migration suggestions...
[--------------------------------------------------------------------------------------------------------------------------/                               ]Aborting migration due to an exception.  This most likely is due to a
bug in the migration tool.  Please consider filing a bug report at:
https://github.com/dart-lang/sdk/issues/new
Please include the SDK version (2.12.3) in your bug report.
To attempt to perform migration anyway, you may re-run with
--ignore-exceptions.
Exception details:
NoSuchMethodError: The getter 'nullabilitySuffix' was called on null.
Receiver: null
Tried calling: nullabilitySuffix at offset 0 in C:\Users\Siyou Mobile\Desktop\chat b2s2c\flutter_images_slider-master\lib\helpers.dart (class Helpers {static remainder<T>(T input, T source) {if (input is double && source is double) {final double result = input % source; return result < 0 ? source + result : result;} else if (input is int && source is int) {final int result = input % source; return result < 0 ? source + result : result;} else {return 0;}} static T
getRealIndex<T>(T position, T base, T length) {if (position is double && base is double && length is double) {final double offset = position - base; return
remainder(offset, length);} else if (position is int && base is int && length is int) {final int offset = position - base; return remainder(offset, length);} else {return 0 as T;}}})

#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5)
#1      SubtypeHelper.isSubtypeOf (package:analyzer/src/dart/element/subtype.dart:51:29)
#2      TypeSystemImpl.isSubtypeOf2 (package:analyzer/src/dart/element/type_system.dart:1162:27)
#3      TypeSystemImpl.isSubtypeOf (package:analyzer/src/dart/element/type_system.dart:1158:12)
#4      TypeSystemImpl._refineNumericInvocationContextNullSafe (package:analyzer/src/dart/element/type_system.dart:1669:11)
#5      TypeSystemImpl.refineNumericInvocationContext (package:analyzer/src/dart/element/type_system.dart:1402:14)
#6      ResolverVisitor.visitArgumentList (package:analyzer/src/generated/resolver.dart:862:24)
#7      InvocationInferenceHelper._resolveArguments (package:analyzer/src/dart/resolver/invocation_inference_helper.dart:326:15)
#8      InvocationInferenceHelper._resolveInvocationWithoutTypeArguments (package:analyzer/src/dart/resolver/invocation_inference_helper.dart:384:7)
#9      InvocationInferenceHelper._resolveInvocation (package:analyzer/src/dart/resolver/invocation_inference_helper.dart:345:7)
#10     InvocationInferenceHelper.resolveMethodInvocation (package:analyzer/src/dart/resolver/invocation_inference_helper.dart:239:5)
#11     MethodInvocationResolver._setResolution (package:analyzer/src/dart/resolver/method_invocation_resolver.dart:811:24)
#12     MethodInvocationResolver._resolveReceiverNull (package:analyzer/src/dart/resolver/method_invocation_resolver.dart:514:16)
#13     MethodInvocationResolver.resolve (package:analyzer/src/dart/resolver/method_invocation_resolver.dart:93:7)
#14     ElementResolver.visitMethodInvocation (package:analyzer/src/generated/element_resolver.dart:394:31)
#15     MethodInvocationImpl.accept (package:analyzer/src/dart/ast/ast.dart:7186:49)
#16     ResolverVisitor.visitMethodInvocation (package:analyzer/src/generated/resolver.dart:1706:10)
#17     MethodInvocationImpl.accept (package:analyzer/src/dart/ast/ast.dart:7186:49)
#18     ReturnStatementImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:8621:18)
#19     ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:1750:10)
#20     UnifyingAstVisitor.visitReturnStatement (package:analyzer/dart/ast/visitor.dart:3410:51)
#21     ResolverVisitor.visitReturnStatement (package:analyzer/src/generated/resolver.dart:1846:11)
#22     ReturnStatementImpl.accept (package:analyzer/src/dart/ast/ast.dart:8617:49)
#23     NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7611:20)
#24     BlockImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1087:17)
#25     ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:1750:10)
#26     UnifyingAstVisitor.visitBlock (package:analyzer/dart/ast/visitor.dart:3143:31)
#27     ScopedVisitor.visitBlock.<anonymous closure> (package:analyzer/src/generated/resolver.dart:2480:13)
#28     ScopedVisitor._withDeclaredLocals (package:analyzer/src/generated/resolver.dart:3076:8)
#29     ScopedVisitor.visitBlock (package:analyzer/src/generated/resolver.dart:2479:5)
#30     ScopedVisitor.visitStatementInScope (package:analyzer/src/generated/resolver.dart:2970:7)
#31     ResolverVisitor.visitIfStatement (package:analyzer/src/generated/resolver.dart:1561:7)
#32     ResolverVisitorForMigration.visitIfStatement (package:analyzer/src/generated/resolver.dart:2382:13)
#33     IfStatementImpl.accept (package:analyzer/src/dart/ast/ast.dart:5705:49)
#34     NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7611:20)
#35     BlockImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1087:17)
#36     ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:1750:10)
#37     UnifyingAstVisitor.visitBlock (package:analyzer/dart/ast/visitor.dart:3143:31)
#38     ScopedVisitor.visitBlock.<anonymous closure> (package:analyzer/src/generated/resolver.dart:2480:13)
#39     ScopedVisitor._withDeclaredLocals (package:analyzer/src/generated/resolver.dart:3076:8)
#40     ScopedVisitor.visitBlock (package:analyzer/src/generated/resolver.dart:2479:5)
#41     BlockImpl.accept (package:analyzer/src/dart/ast/ast.dart:1083:49)
#42     BlockFunctionBodyImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1042:13)
#43     ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:1750:10)
#44     UnifyingAstVisitor.visitBlockFunctionBody (package:analyzer/dart/ast/visitor.dart:3146:55)
#45     ScopedVisitor.visitBlockFunctionBody (package:analyzer/src/generated/resolver.dart:2489:13)
#46     ResolverVisitor.visitBlockFunctionBody (package:analyzer/src/generated/resolver.dart:957:13)
#47     BlockFunctionBodyImpl.accept (package:analyzer/src/dart/ast/ast.dart:1038:49)
#48     MethodDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:7042:12)
#49     ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:1750:10)
#50     UnifyingAstVisitor.visitMethodDeclaration (package:analyzer/dart/ast/visitor.dart:3351:55)
#51     ScopedVisitor.visitMethodDeclarationInScope (package:analyzer/src/generated/resolver.dart:2926:11)
#52     ScopedVisitor.visitMethodDeclaration (package:analyzer/src/generated/resolver.dart:2919:7)
#53     ResolverVisitor.visitMethodDeclaration (package:analyzer/src/generated/resolver.dart:1666:11)
#54     MethodDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:7033:49)
#55     NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7611:20)
#56     ScopedVisitor.visitClassMembersInScope (package:analyzer/src/generated/resolver.dart:2550:18)
#57     ScopedVisitor.visitClassDeclaration (package:analyzer/src/generated/resolver.dart:2531:7)
#58     ResolverVisitor.visitClassDeclaration (package:analyzer/src/generated/resolver.dart:1015:13)
#59     ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:1536:49)
#60     ResolverVisitor.visitCompilationUnit (package:analyzer/src/generated/resolver.dart:1091:23)
#61     CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2134:49)
#62     FixBuilder.visitAll.<anonymous closure> (package:nnbd_migration/src/fix_builder.dart:212:14)
#63     _rootRun (dart:async/zone.dart:1354:13)
#64     _CustomZone.run (dart:async/zone.dart:1258:19)
#65     _runZoned (dart:async/zone.dart:1788:10)
#66     runZoned (dart:async/zone.dart:1710:10)
#67     NullSafetyUnderstandingFlag.enableNullSafetyTypes (package:analyzer/dart/element/null_safety_understanding_flag.dart:42:12)
#68     FixBuilder.visitAll (package:nnbd_migration/src/fix_builder.dart:209:35)
#69     NullabilityMigrationImpl.finalizeInput (package:nnbd_migration/src/nullability_migration_impl.dart:169:18)
#70     NonNullableFix.finalizeUnit (package:nnbd_migration/src/front_end/non_nullable_fix.dart:115:15)
#71     _FixCodeProcessor.runLaterPhases.<anonymous closure> (package:nnbd_migration/migration_cli.dart:1159:21)
#72     _FixCodeProcessor.runLaterPhases.<anonymous closure> (package:nnbd_migration/migration_cli.dart:1156:28)
#73     _FixCodeProcessor.processResources (package:nnbd_migration/migration_cli.dart:1081:30)
<asynchronous suspension>
#74     _FixCodeProcessor.runLaterPhases (package:nnbd_migration/migration_cli.dart:1156:5)
<asynchronous suspension>
#75     MigrationCliRunner.run (package:nnbd_migration/migration_cli.dart:749:24)
<asynchronous suspension>
#76     MigrateCommand.run (package:nnbd_migration/migration_cli.dart:185:7)
<asynchronous suspension>
#77     CommandRunner.runCommand (package:args/command_runner.dart:196:13)
<asynchronous suspension>
#78     DartdevRunner.runCommand (package:dartdev/dartdev.dart:199:18)
<asynchronous suspension>
#79     runDartdev (package:dartdev/dartdev.dart:53:16)
<asynchronous suspension>
#80     main (file:///C:/b/s/w/ir/cache/builder/src/third_party/dart/pkg/dartdev/bin/dartdev.dart:11:3)
<asynchronous suspension>

I believe this was fixed during migrating analyzer itself for null safety.


StorageUnknownError: fetch failed | NestJS

Hello, I am trying to upload an image to existing public bucket
async updateAvatar(file: Express.Multer.File) {
    const { originalname, mimetype, buffer } = file;

    const { data, error } = await this.storage
      .from('avatars')
      .upload(`public/${originalname}`, buffer, {
        contentType: mimetype,
        upsert: false,
      });

    if (error) {
      throw new Error(error.message);
    }

    return data;
  }

But getting error:
{
  data: null,
  error: StorageUnknownError: fetch failed
      at /Users/karrtopelka/Documents/business_idea/proposal/server/node_modules/@supabase/storage-js/src/lib/fetch.ts:32:12
      at Generator.next (<anonymous>)
      at fulfilled (/Users/karrtopelka/Documents/business_idea/proposal/server/node_modules/@supabase/storage-js/dist/main/lib/fetch.js:5:58)
      at processTicksAndRejections (node:internal/process/task_queues:95:5) {
    __isStorageError: true,
    originalError: TypeError: fetch failed
        at Object.fetch (node:internal/deps/undici/undici:14294:11)
        at processTicksAndRejections (node:internal/process/task_queues:95:5) {
      cause: [Error]
    }
  }
}

Here is my service:
import { Injectable } from '@nestjs/common';
import { StorageClient } from '@supabase/storage-js';

@Injectable()
export class SupabaseService extends StorageClient {
  constructor() {
    super(process.env.STORAGE_URL, {
      apikey: process.env.API_SECRET,
      Authorization: `Bearer ${process.env.API_SECRET}`,
    });
  }
}

What can be the issue?
Found unanswered question but with svelte: https://github.com/supabase/supabase/discussions/12389_

receive the same error for all supabase.storage requests in Expo app: stack: "StorageUnknownError: Network request failed\n    at construct (native)\n    at apply (native)\n    at _construct (http://<IP_ADDRESS>:19000/node_modules/expo/

I have solved this problem for myself:
The problem happens, when I send File to Supabase Storage.
To solve the problem, I send Array Buffer:
let array_buffer = await image.arrayBuffer();


(Feature) Side menu blur/shadow

This PR closes #167276585, by:

Adding a new library (forked react-native-side-menu), and changed it to met GoodDapp requirements: react-native-side-menu-gooddapp
Updating stackNavigation container to properly use the library

Extra:

I needed to rename stackNavigation to stackNavigation.web to be able to use divs, as the CSS filter property is not supported with react-native.
in the future we can use react-native-blur, but support for web is still pending: https://github.com/react-native-community/react-native-blur/pull/190
another possible solution was to use className prop to add plain css styles. But react-native-web was logging warning messages about future deprecation of className for View components, see: "className no further alowed in View components" https://github.com/necolas/react-native-web/issues/1146

changes made to the library: https://github.com/fernandomg/react-native-side-menu/commit/a178c2c1d16263f57bdc899e7c8df203f4426d8a

@dariominones, @kbardi I'm re-requesting a review of this PR as merging master into it, as it took me some time to have it working again after merge.
Thanks!

@kbardi, @dminones
Now it's working fine in Firefox (same behavior as the one reported by Darío in iOS/Safari... so I'm hoping fixes will address both issues)
Also fixed the blurred overflowing behind the menu.


FR: Split Messaging

We have million users and topics on firebase. However sending some general push notifications to all users is causing over load. It would be very nice to have a parameter to send messages in an interval. For example for 10M users in a topic, If I send 10 minute for messaging interval, I expect 1M users per minute. This is nice since the load is distributed.

@chong-shao is there any news on this topic?

Hi cemo, for our current infrastructure it's not very straightforward to enable this. But a solution is under discussion.

@chong-shao  @cemo  @hiranya911 I am facing the same problem. I sent a common message to a topic All.
After sending the notification our backend API stops to respond, or takes too much time to respond.

@Lordofcodes please file a feature request at https://firebase.google.com/support

Firebase and FCM can handle to send these pushes so fast but this is not valid in server side. Our backend systems have issues to handle so much users in short amount time especially if the message is sent to all users.

@cemo  Can you describe why is this happening. Is it because your server gets a lot of request in very short span of time as all user will open the notification? Or something else?

@Lordofcodes I have missed this sorry. Yes we have around 5M active users. In case a bulk send operation it is causing a lot of requests in very short time. In a peak time we have 2-3 times more load for our servers however in case a bulk push message like targeting all of our users load is increasing up to 10 times more.


Add tooltips to "kubelet" term definition

attempt to unblock PR 42046

/lgtm
Tips: It would be better if the commit message shorter.

One nit, carried over from #43199. Otherwise LGTM

Thank you
/lgtm


Expand the mc admin user docs

Restructure the existing mc admin user page into separate pages for each subcommand. Also add missing details and correct errors.
Staged:
http://<IP_ADDRESS>:9000/staging/DOCS-785/linux/html/reference/minio-mc-admin/mc-admin-user.html
Fixes https://github.com/minio/docs/issues/785

http://<IP_ADDRESS>:9000/staging/DOCS-785/linux/html/reference/minio-mc-admin/mc-admin-user-svcacct.html
Hm. TOC doesn't like this much nesting. I don't see any limit set in the _templates/navigation.html .

@djwfyi @feorlen on the fence of having mc admin user svcacct subordinate to mc admin user. It makes logical sense, but is also severely buried in the nav.
I suggest we promote it, even if it's weird logically speaking to see it next to mc admin user.

on the fence of having mc admin user svcacct subordinate to mc admin user.

It's a sibling currently, I moved it under because it's a subcommand. But there are a lot of sub-subcommands there.
Related: mc admin user sts info is an awkward only child under mc admin user sts. I created the interstitial sts page after my first attempt at promoting info didn't include correctly. But not thrilled with that either.
@ravindk89

@djwfyi @feorlen on the fence of having mc admin user svcacct subordinate to mc admin user. It makes logical sense, but is also severely buried in the nav.
I suggest we promote it, even if it's weird logically speaking to see it next to mc admin user.

I get the impulse of that, but I don't like the precedent.
How do we choose what gets promoted and what doesn't? It's an odd thing to do for a single command, I think.

@djwfyi ideally we wouldn't have this much child-tree like command structures, but we do. If mc admin user svcacct didn't itself have child stuff I wouldn't be bothered in the slightest.
@feorlen 's example is a good test - if we look at and go "This feels weird to be stubbed under like this", we can make that judgement call.

if we look at and go "This feels weird to be stubbed under like this", we can make that judgement call.

I just fixed the toctree issue, restaged for funsies. If you want to look with correct TOC nesting.
If we are ok with one special case, I'd lean to promoting sts info but not svcacct. Yeah more nesting is not great, but to me promoting svcacct feels more like establishing a pattern than an expedient exception.
@djwfyi @ravindk89

http://<IP_ADDRESS>:9000/staging/DOCS-785/linux/html/reference/minio-mc-admin/mc-admin-user-svcacct-add.html
maybe we can extend the left nav a few pixels or something.
If no one complains then lets not do anything here.

http://<IP_ADDRESS>:9000/staging/DOCS-785/linux/html/reference/minio-mc-admin/mc-admin-user-svcacct-add.html

maybe we can extend the left nav a few pixels or something.

If no one complains then lets not do anything here.

@rushenn ? Might be worth widening the left nav to prevent this ... uh ... this

http://<IP_ADDRESS>:9000/staging/DOCS-785/linux/html/reference/minio-mc-admin/mc-admin-user-svcacct-add.html

maybe we can extend the left nav a few pixels or something.

If no one complains then lets not do anything here.

@rushenn ? Might be worth widening the left nav to prevent this ... uh ... this

Sure, will send a PR to fix this.


Face VCD

Hi, thanks for your excellent work here.
After reading the paper, I have got two problems: 1) how to derive a natural face by leveraging partial denoising to refine the face in Face VCD without face keypoint control since I2I or V2V pipelines would lead to inconsistent local results; 2) how to preserve the background, with mask or something or the extended ID token would help?
thanks!

Achieving a natural face in Face VCD is accomplished through the strategy of partial denoising. This approach maintains a substantial amount of pixel data from the original face amidst the noise, which serves as a guide for the denoising process. This method ensures spatial consistency, allowing for a refined output that aligns closely with the original facial structures. Moreover, when dealing with animated content, AnimateDiff module ensures that the denoising process conditions on multiple frames, facilitating a smooth transition between frames and preserving temporal consistency.

Preserving the background while refining the face is managed through the use of face segmentation by SAM, which enable the models to specifically target the facial area for refinement, while leaving the surrounding background intact.

@visionMaze thanks for the reply, maybe I have misunderstood the partial denoising as the similar img2img with smaller denoising strength (where the facial structures are usually changed when strenght is larger than 0.4 as well) since the details of this strategy are missing in the paper. I will dive into the code for what is happening.

The understanding is mostly correct. The difference between common img2img and ours is that we are using the extended ID tokens to render the face of the identity. The face would be changed after the partial denoising but usually in a way that looks more like the identity. And don't forget the AnimateDiff module used here. AnimateDiff module makes the denoising based on a series of frames, which a stronger condition than img2img.

@visionMaze oh, that makes sense (sorry that I forgot the AnimateDiff module on multiple frames), thanks a lot!

Hi by extended ID tokens, do you mean multiple embeddings for the same subject? Thanks.


[pdpix] timedwait_any() System Call

Description
This PR is a partial fix for https://github.com/demikernel/demikernel/issues/61.
Summary of Changes

Introduced timedwait_any().
Added bindings for timedwait_any()
Added invalid test for timedwait_any().
Updated manual pages accordingly.

We agreed to address this change differently.


UMI info and VDJ 10x data

Hello,
i have two questions:

Is there a way to retrieve how many UMI support the expression of a each of the VDJ genes?
Is it possible to run TRUST4 on VDJ 10x data? I know that 10x 5' works but i am wondering if i can also use TRUST4 with VDJ 10x libraries

Thank you in advance for your reply

I just add the option for --UMI to fully support UMI quantification. The usage is similar to the usage of parsing barcode. TRUST4 also works on the 10x VDJ data. From my preliminary comparisons, it seems TRUST4 was more sensitive than CellRangerVDJ, but more comparisons were still needed. Is there an application on why you want to try TRUST4 other than CellRanger VDJ on your data? Thank you.

There is no specific application. It is mostly my curiosity to try TRUST4 on both VDJ and 5' libraries from a given sample and see how much the results are consistent. Have you already pushed the UMI option? Thank you

Yes, you can use "git pull" or "git clone" to get the version.


Props are not all on a new line

When using a component without children and with several props, the props are not all on a new line, which is against most standards:
<Dropdown required={true}
  label='Responsable'
  value={1}
  placeholder='Choisir un responsable' />

I would expect something like:
<Dropdown
  required={true}
  label='Responsable'
  value={1}
  placeholder='Choisir un responsable'
/>

Hi !
I opened a PR on the jsx-to-string repo to allow formatting options
You can follow here https://github.com/grommet/jsx-to-string/issues/24

I changed the formatter to react-element-to-jsx-string
So the props should be good for now.


Enable simplification of long (rural) roads

The recursive nature of simplification._build_path is reduced to only those cases where either a self loop is imminent or the road forks. Path building of long roads is done in a while-loop that substitutes the prior if-statement checking for an endpoint.
So the logics stay the same except for the simple and usual case of a single successor (a road that neither forks nor loops).
Memory
In addition, _get_paths_to_simplify has been turned into a generator in order to reduce the memory footprint.
Note
To my understanding the RecursionError should now be extremely rare. After a recursive call self-loops are filtered by successor not in path. On the other hand a road would need to have an immense amount of forks not classified as endpoints. Of course, the safe way to go is to keep checking for the error.

Coverage remained the same at 92.434% when pulling 486be0801fedd5025f6bf88ed63b2e87d48a93a8 on pinselimo:master into 2d68bf1ddf8a4e0c5e8faf844b2770a49ec69bba on gboeing:master.

@pinselimo thanks! Looks good, but the recursive logic is always hard for me to unravel in my mind. I'm going to merge this into a feature branch to do some local comparative testing in the morning.


Legend acts weirdly

If I click on households 3, it seems to alternate between capacity and households 3. (b.t.w. this also happens when you have a green line):

cc @grdw

Assigning to @grdw

This is part of a more general class of weird behaviour that is observed in the load chart:

if you select/deselect a curve several times, the scaling can differ erratically
Persistence is not always in working (sometimes the chart forgets your settings)


Cannot create MinioClient from 4.0.6

@sergeyshaykhullin Thank you for the library!
Describe the bug
After updating to minio version 4.0.6, the MinioClient cannot be created with the exception Minio.Exceptions.ConnectionException: MinIO API responded with message=Connection error:Object reference not set to an instance of an object.
To Reproduce
Steps to reproduce the behavior:

Install nuget packages Minio v4.0.6 and Minio.AspNetCore v4.0.6
Add MinioClient
builder.Services.AddMinio(options => {  options.Endpoint = config["Address"];  options.AccessKey = config["AccessKey"];  options.SecretKey = config["SecretKey"]; });
Call some method e.g. BucketExistsAsync
See the error

Expected behavior
Minio client is working
Desktop (please complete the following information):

OS: Windows 10
Browser: Chrome

Same issue

I also have this issue

Should be fixed in https://www.nuget.org/packages/Minio.AspNetCore/4.0.7


The repo for Fedora 30 doesn't work

Hi, I'm trying to install AdoptOpenJDK on Fedora 30, but the repo doesn't work.
I created with sudo the file /etc/yum.repos.d/adoptopenjdk.repo with this content:
[AdoptOpenJDK]
name=AdoptOpenJDK
baseurl=http://adoptopenjdk.jfrog.io/adoptopenjdk/rpm/fedora/30/$(uname -m)
enabled=1
gpgcheck=1
gpgkey=https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public

When I execute "sudo dnf check-update" or try to install AdoptOpenJDK the system discards the repo and says it can't sync it.
I don't know what I'm doing bad. I think its a repository problem.

I don't use Docker. I need a solution for a "real" system installed on VirtualBox. I need admin rights to set the repo.
I took the steps from here and the repo for Ubuntu and Debian works correctly, but I can't say the same thing about Fedora 30.

Your adoptopenjdk.repo should look like this:
[AdoptOpenJDK]
name=AdoptOpenJDK
baseurl=http://adoptopenjdk.jfrog.io/adoptopenjdk/rpm/fedora/30/x86_64
enabled=1
gpgcheck=1
gpgkey=https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public

The problem with your adoptopenjdk.repo is that it still contains $(uname -m).

The general way to have a dynamic repo working for the current version and arch would look like this:
[adoptopenjdk]
name=AdoptOpenJDK $releasever - $basearch
baseurl=http://adoptopenjdk.jfrog.io/adoptopenjdk/rpm/fedora/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public

Not that the repo id would be in lower case as standard (but works also in camel case 😎)

Sounds like this can be closed.  Please do reopen if the suggestions above aren't adequate!

Now it's working. Thank your very much.


Docs improvement: Glue Data Catalog

According to https://github.com/onetable-io/onetable/issues/262
Docs needs to clarify

DB names appropriately i.e. instead of onetable_synced_db call it onetable_synced_delta_db (same for hudi and iceberg as well)
Command to create the crawler is incorrect. It should instead be like aws glue create-crawler --name onetable_delta_crawler --role arn:aws:iam::${accountId}:role/service-role/${roleName} --database onetable_synced_delta_db --targets "{\"DeltaTargets\":[{\"DeltaTables\":[\"${s3DataPath}\"],\"WriteManifest\":false,\"CreateNativeDeltaTable\":true}]}"

I can take this up @sagarlakshmipathy you can assign this to me

@rahil-c bump! following up on this. Do you still have bandwidth to address this?


Making a Display/Render Trait

I think making a trait for just rendering will make revi not have to depend souly on crossterm and could provide some cool support for future ideas/platforms

This has been added but I am going to leave it due to more tweeking needed.


vcpkg manifest mode dependency with core feature

In vcpkg manifest mode, the following
vcpkg.json
{
  "name": "project1",
  "version-string": "0.0.1",
  "dependencies": [
    {
      "name": "abc",
      "features": [ "core" ]
    }
  ]
}

Error: There are invalid field types in the CONTROL or manifest file of C:\project1\vcpkg.json
The following fields had the wrong types:

    features was expected to be an array of identifiers

This is because core is a reserved word. I have to use "default-features": false instead of "features": [ "core" ]
Could you document this behavior or provide an improvement?

Confirmed this issue fixed now, thanks for reporting this issue!

Why is it fixed? I suggest to document it.

I think the same as @linquize.
The normal case is to use core in the same way as:
https://vcpkg.readthedocs.io/en/latest/specifications/feature-packages/

When using vcpkg install <package>, some features will be enabled by default. These default features can be avoided by referring to the packages as <package>[core] and features can be added by supplying them on the same installation line.


node LTS upgrade blocked

Due to npm.community#1377 npm to latest node LTS upgrade fails!

Un reproducible in Windows 10 etc
Version 6.1.0 is by far tested OK

Decided to move into yarn as it plays better with our setup. https://github.com/K2InformaticsGmbH/dderl/pull/580


[Question]What mode-line-mode are you using, nice and simple, Are you using all-the-icons-mode as well?

Yes im using all-the-icons and powerline and my config is:
  (use-package powerline
    :ensure t
    :config

    (defun make-rect (color height width)
      "Create an XPM bitmap."
      (when window-system
        (propertize
         " " 'display
         (let ((data nil)
               (i 0))
           (setq data (make-list height (make-list width 1)))
           (pl/make-xpm "percent" color color (reverse data))))))

    (defun powerline-mode-icon ()
      (let ((icon (all-the-icons-icon-for-buffer)))
        (unless (symbolp icon) ;; This implies it's the major mode
          (format " %s"
                  (propertize icon
                              'help-echo (format "Major-mode: `%s`" major-mode)
                              'face `(:height 1.2 :family ,(all-the-icons-icon-family-for-buffer)))))))

    (setq-default mode-line-format
                  '("%e"
                    (:eval
                     (let* ((active (powerline-selected-window-active))
                            (modified (buffer-modified-p))
                            (face1 (if active 'powerline-active1 'powerline-inactive1))
                            (face2 (if active 'powerline-active2 'powerline-inactive2))
                            (bar-color (cond ((and active modified) (face-foreground 'error))
                                             (active (face-background 'cursor))
                                             (t (face-background 'tooltip))))
                            (lhs (list
                                  (make-rect bar-color 30 3)
                                  (when modified
                                    (concat
                                     " "
                                     (all-the-icons-faicon "floppy-o"
                                                           :face (when active 'error)
                                                           :v-adjust -0.01)))
                                  " "
                                  (powerline-buffer-id)
                                  ))
                            (center (list
                                     " "
                                     (powerline-mode-icon)
                                     " "
                                     (powerline-major-mode)
                                     " "))
                            (rhs (list
                                  (format "%s" (eyebrowse--get 'current-slot))
                                  " | "
                                  (powerline-raw "%l:%c" 'mode-line 'r)
                                  " | "
                                  (powerline-raw "%6p" 'mode-line 'r)
                                  (powerline-hud 'highlight 'region 1)
                                  " "
                                  ))
                            )
                       (concat
                        (powerline-render lhs)
                        (powerline-fill-center face1 (/ (powerline-width center) 2.0))
                        (powerline-render center)
                        (powerline-fill face2 (powerline-width rhs))
                        (powerline-render rhs))))))
    )

Thanks


Port for Windows?

I've had success running this on Linux but I'd like to build it on my Windows machine also.
Has anyone had any success with getting this wonderful project working on Windows?
I will try my best to figure it out and post back here if I manage to get it working.

I got it working once, and I forgot what I did.  Trying to reproduce my success now.  Will update if I succeed.

@naikrovek Were you able to reproduce?

no.  I can't build it anymore, and I can't remember how I got around this previously.  :(


enum based API

Auto-generated API for reads looks like this:
impl Out {
    pub fn read(&self) -> OutR {
        OutR { bits: self.register.read() }
    }

    ..
}

#[derive(Clone , Copy)]
#[repr(C) ]
pub struct OutR {
    bits: u32,
}

impl OutR {
    #[doc = "Bit 0 - Pin 0."]
    pub fn pin0(&self) -> OutRPin0 {
        const MASK: u32 = 1;
        const OFFSET: u8 = 0u8;
        OutRPin0::from((self.bits >> OFFSET) & MASK)
    }

    ..
}

#[derive(Clone, Copy, Eq, PartialEq)]
pub enum OutRPin0 {
    #[ doc = "Pin driver is low." ]
    Low,
    #[ doc = "Pin driver is high." ]
    High,
}

impl OutRPin0 {
    #[inline(always)]
    fn from(value: u32) -> Self {
        match value {
            0u32 => OutRPin0::Low,
            1u32 => OutRPin0::High,
            _ => unreachable!(),
        }
    }
}

The unreachable!() will get optimized away when compiling in release mode.
In the case where a bitfield is e.g. 2 bits wide but the SVD file lists less than 4 values / variants, svd2rust will create hidden reserved variants:
#[derive(Clone, Copy, Eq, PartialEq)]
pub enum PinCnfRPull {
    #[doc = "No pull."]
    Disabled,
    #[doc = "Pulldown on pin."]
    Pulldown,
    #[doc(hidden)]
    _Reserved10,
    #[doc = "Pullup on pin."]
    Pullup,
}

In the above example, the value 0b10 was not listed in the SVD.

Auto-generated API for writes looks like this:
impl Out {
    pub fn write<F>(&mut self, f: F)
        where F: FnOnce(&mut OutW) -> &mut OutW
    {
        let mut w = OutW::reset_value();
        f(&mut w);
        self.register.write(w.bits);
    }
    ..
}

#[derive(Clone , Copy)]
#[repr(C)]
pub struct OutW {
    bits: u32,
}

impl OutW {
    #[doc = "Bit 0 - Pin 0."]
    pub fn pin0(&mut self, value: OutWPin0) -> &mut Self {
        const MASK: u32 = 1;
        const OFFSET: u8 = 0u8;
        self.bits &= !((MASK as u32) << OFFSET);
        self.bits |= value.bits() << OFFSET;
        self
    }

    ..
}

#[derive(Clone, Copy, Eq, PartialEq)]
pub enum OutWPin0 {
    # [ doc = "Pin driver is low." ]
    Low,
    # [ doc = "Pin driver is high." ]
    High,
}

impl OutWPin0 {
    # [ inline ( always ) ]
    fn bits(&self) -> u32 {
        match *self {
            OutWPin0::Low => 0u32,
            OutWPin0::High => 1u32,
        }
    }
}

The modify API remains unchanged.
To get an idea of what actually using this API looks like, check this PR.
cc @brandonedens

I don't really like having to import enums to be able to perform write to registers, which is a very commond operation. I have in mind a more ergonomic API that would look like this:
#![no_main]
#![no_std]

extern crate nrf51822;

use nrf51822::peripheral;
use nrf51822::led::Led;

#[no_mangle]
pub fn main() -> ! {
    let timer0 = unsafe { peripheral::timer0_mut() };

    timer0.mode.write(|w| w.mode().timer());

    timer0.bitmode.write(|w| w.bitmode()._24bit());

    // prescaler = 2 ^ 4 = 16
    timer0.prescaler.write(|w| w.prescaler(4));

    timer0.shorts.modify(|_, w| w.compare0_clear().enabled());

    // reset the timer after 1_000_000 ticks
    // NOTE clock frequency = 16 MHz
    timer0.cc0.write(1_000_000);

    // start the timer
    timer0.tasks_start.write(1);

    let mut on = true;
    loop {
        if on {
            Led.on();
        } else {
            Led.off();
        }

        on = !on;

        while timer0.events_compare0.read() == 0 {}
        timer0.events_compare0.write(0);
    }
}

When used in the blinky example. Note that no imports are necessary in this case. I have already prototyped this API "by hand". I'll implement this different API generation and post another PR tomorrow.

I have already prototyped this API "by hand". I'll implement this different API generation and post another PR tomorrow.

See #53.

Closing in favor of #53.


Error when using mulitple:true, direct:true, (and/or) presigned:true in attachment field

I am getting a 'no implicit conversion of Fixnum into String' error when rendering a multiple image upload form and I am not sure why.
Here is the error
ActionView::Template::Error (no implicit conversion of Fixnum into String):
    144:

    145:       <%= f.label :listing_attachments_files %>
    146:       <%= f.attachment_field :listing_attachments_files, multiple: true, direct: true %>
    147:

    148:
    149:

I am able to upload multiple images to and from amazon without the direct and/or presigned option. I also have a single image upload form in another section of the site that has direct and presigned set that is working well.
The listing_attachment model is
class ListingAttachment < ActiveRecord::Base
	belongs_to :listing
	attachment :file
end

The relevant Listing model code is
class Listing < ActiveRecord::Base

	has_many :listing_attachments, dependent: :destroy
  	accepts_attachments_for :listing_attachments

end

Thanks

@andrewnick which version of the gem are you using?

refile (0.5.5 6c35ef8)
refile-mini_magick (0.1.0)
refile-s3 (0.1.0)
These are the refile related gems in my Gemfile
gem 'refile', require: "refile/rails", git: 'https://github.com/refile/refile.git', branch: 'master'
gem "refile-mini_magick"
gem "refile-s3"

Updated the gem to the latest version (refile 0.6.1) and problem solved!
Thanks for the hint. :+1:


require active_merchant to initialize gateway providers

Since https://github.com/solidusio/solidus/commit/6a296d55c0f6096a823946cb8365ff264c47ad98 just specific parts from active_merchant is required in core.
So, build with master is failing when are trying to monkey patch ActiveMerchant::Billing::BeantreamGateway.
Requiring active_merchant in the gem fix the problem.

Since https://github.com/solidusio/solidus_gateway/commit/47dc9fc749a42fe0bb197fee7b267ec2436129b0 all active_merchant is already required, so close this.


[CARBONDATA-2185]add InputMetrics for Streaming Reader

Issue:- Record count in Input Metrics is always 0 for Stream Reader.
Solution :- InputMetricsStats object need to update for StreamReader with Record size . Also Need to handle when enableVector=false
Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:

[ ] Any interfaces changed?
NA
[ ] Any backward compatibility impacted?
NA
[ ] Document update required?
NA
[ ] Testing done
Please provide details on
- Whether new unit test cases have been added or why no new tests are required?
Manual Verification is done,since value displayed in SparkUI
- How it is tested? Please attach test report.
Manual Verification done
- Is it a performance related change? Please attach the performance test report.
NA
- Any additional information to help reviewers in testing this change.
NA
[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
NA

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3772/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/2527/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/3558/

LGTM


[docs][material-ui] Update the Next.js app router guide theme registry code

add missing Typescript types

[x] I have followed (at least) the PR section of the contributing guide.

Thanks for working on this 🙏 @krychaxp
We have a dedicated integration package that has replaced the guide now: https://github.com/mui/material-ui/pull/39947


Feature Request: Return Dirent's internal base directory via Dir() (and possibly more...)

Currently, within the scope of a walk, we can access each Dirent via its associated methods; while it was mostly intended for querying if we're transversing a directory, a symbolic link, etc. there is also the ability to retrieve the base name of the file, namely via the func (de Dirent) Name() string method (the same applies to the mode bits, we get a method for that one as well).
However, internally, the Dirent also stores the directory (i.e. the path minus the base, which, as said, is returned via Name()). It would be awesome if we could get a method for that as well, e.g.
func (de Dirent) Dir() string { return de.path; }

Why is this useful? Well, in my personal use-case, I use godirwalk to quickly retrieve a set of files with a specified list of extensions, which can be arbitrarily deep, and which then gets displayed on a Go template as a structured tree. I'm currently lazily using a struct that merely includes the whole path — which already gets retrieved via the Dirent mechanism.
I suppose that an alternative to that one-liner method is for my own algorithm to track the current directory better :)

... and now, to make things even more confusing, I've sort of 'extended' the Dirent type (to place the fields I need/want in it). But I've stumbled on another tiny issue, which is separate from this one, so I'll post it on a new thread.


Fix and enhance Feedback page

Provide space below Return to Home Page button.
Change the text style , font and color of the feedback page.

assign me this issue under GSSOC'24

@tarushi29 please try to follow the issue templates present in the repo to raise your issue otherwise I can't assign you the issues.


Easy Issue

Inserted h1 tag with the name John Doe above the h2 tag in the index.html file.

Merged

This is an automated message from Learn to Contribute [BOT].

Thank you for your contribution! Your pull request has been merged. The tests have been reset for the next contributor.
What's next?
If you're looking for more ways to contribute, I invite you to check out my other projects. Just click here to find more. These projects contain real issues that you can help resolve.
Also please leave a star to this project if you feel it helped you, i would really appreciate it.
I look forward to seeing your contributions!


Unexpected FunctionClauseError when raising custom error

Hi! 👋
Thank you for this library! I'm excited to use it because I like the idea of structured errors. However, I'm encountering an error when I try to use this with raise.
Given a custom error defined like:
defmodule ErrataRepro.Error do
  use Errata.Error
end

I'd expect to be able to raise it like:
path = "my_path.txt"
script = "some_script"

raise ErrataRepro.Error, reason: :script_not_found, context: %{path: path, script: script}

However that results in a FunctionClauseError:
** (ErrataRepro.Error) got FunctionClauseError with message "no function clause matching in Errata.Errors.format_message/1" while retrieving Exception.message/1 for %ErrataRepro.Error{__errata_error__: true, kind: :general, message: nil, reason: :script_not_found, context: %{path: "my_path.txt", script: "some_script"}, env: nil}. Stacktrace:
    (errata 0.8.0) lib/errata/errors.ex:36: Errata.Errors.format_message(%ErrataRepro.Error{__errata_error__: true, kind: :general, message: nil, reason: :script_not_found, context: %{path: "my_path.txt", script: "some_script"}, env: nil})
    (elixir 1.17.2) lib/exception.ex:85: Exception.message/1
    (elixir 1.17.2) lib/exception.ex:136: Exception.format_banner/3
    (iex 1.17.2) lib/iex/evaluator.ex:404: IEx.Evaluator.print_error/3
    (iex 1.17.2) lib/iex/evaluator.ex:298: IEx.Evaluator.parse_eval_inspect/4
    (iex 1.17.2) lib/iex/evaluator.ex:187: IEx.Evaluator.loop/1
    (iex 1.17.2) lib/iex/evaluator.ex:32: IEx.Evaluator.init/5
    (stdlib <IP_ADDRESS>) proc_lib.erl:241: :proc_lib.init_p_do_apply/3

    (errata_repro 0.1.0) lib/errata_repro.ex:6: ErrataRepro.raise_error/0
    iex:1: (file)

Here's a reproduction: https://github.com/axelson/errata_repro
Calling it like:
path = "my_path.txt"
script = "some_script"

raise ErrataRepro.Error, reason: :script_not_found, context: %{path: path, script: script}, message: "some message"

Results in:
** (ErrataRepro.Error) some message: :script_not_found
    (errata_repro 0.1.0) lib/errata_repro.ex:6: ErrataRepro.raise_error/0
    iex:2: (file)

Which is more reasonable, but it is maybe weird that my message wasn't used at all.

Calling it like:
path = "my_path.txt"
script = "some_script"

raise ErrataRepro.Error, reason: :script_not_found, context: %{path: path, script: script}, message: "some message"

Results in:
** (ErrataRepro.Error) some message: :script_not_found
    (errata_repro 0.1.0) lib/errata_repro.ex:6: ErrataRepro.raise_error/0
    iex:2: (file)

Which is more reasonable, but it is maybe weird that my message wasn't used at all.

Just to make a note about this point, the message that you passed to raise in the above example ("some message") actually is displayed in the exception report:

** (ErrataRepro.Error) some message: :script_not_found

Just to make a note about this point, the message that you passed to raise in the above example ("some message") actually is displayed in the exception report

Ah, whoops! I totally missed it in there. I probably should've used a less generic message for testing 😅
Thank you for taking a look!

Fixed in version 0.8.1.
Here is the commit for reference: https://github.com/jvoegele/errata/commit/fd66ccf514d8ba17b288ee3dd3032f60cd105414

Thank you for the fix! I'm excited about this library 🎉


Accelerator metrics integration

Fixes #1872.
Feature repo: kubernetes/features#369.

This change is

/cc @piosz @kawych @vishh
I haven't tested this end to end yet. Sending for an early review to make sure I am in the right direction.

This PR looks really good, I have no comments. LGTM once it's tested.

Tested it and it works as expected. Good to get merged.


Chrisda to Master

Docs Build status updates of commit 49abfd9:
:clock10: Full build: the average full build time is 17 min(s) 32 sec(s), this is based on the last 1000 build(s) for this repository.

Docs Build status updates of commit 49abfd9:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/docs-conceptual/basic-auth-connect-to-eop-powershell.md
:white_check_mark:Succeeded
View (exchange-ps) View (exchserver-ps-2010) View (exchserver-ps-2013) View (exchserver-ps-2016) View (exchserver-ps-2019) View (exchonline-ps) View (o365scc-ps) View (eop-ps)

exchange/docs-conceptual/connect-to-exchange-online-powershell.md
:white_check_mark:Succeeded
View (exchange-ps) View (exchserver-ps-2010) View (exchserver-ps-2013) View (exchserver-ps-2016) View (exchserver-ps-2019) View (exchonline-ps) View (o365scc-ps) View (eop-ps)

exchange/exchange-ps/exchange/Connect-ExchangeOnline.md
:white_check_mark:Succeeded
View (exchserver-ps-2010) View (exchserver-ps-2013) View (exchserver-ps-2016) View (exchserver-ps-2019) View (exchonline-ps) View (o365scc-ps) View (eop-ps)

exchange/exchange-ps/exchange/Connect-IPPSSession.md
:white_check_mark:Succeeded
View (exchserver-ps-2010) View (exchserver-ps-2013) View (exchserver-ps-2016) View (exchserver-ps-2019) View (exchonline-ps) View (o365scc-ps) View (eop-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit d54486e:
:clock10: Full build: the average full build time is 17 min(s) 33 sec(s), this is based on the last 1000 build(s) for this repository.

Docs Build status updates of commit d54486e:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/docs-conceptual/basic-auth-connect-to-eop-powershell.md
:white_check_mark:Succeeded
View (exchange-ps) View (exchserver-ps-2010) View (exchserver-ps-2013) View (exchserver-ps-2016) View (exchserver-ps-2019) View (exchonline-ps) View (o365scc-ps) View (eop-ps)

exchange/docs-conceptual/connect-to-exchange-online-powershell.md
:white_check_mark:Succeeded
View (exchange-ps) View (exchserver-ps-2010) View (exchserver-ps-2013) View (exchserver-ps-2016) View (exchserver-ps-2019) View (exchonline-ps) View (o365scc-ps) View (eop-ps)

exchange/exchange-ps/exchange/Connect-ExchangeOnline.md
:white_check_mark:Succeeded
View (exchserver-ps-2010) View (exchserver-ps-2013) View (exchserver-ps-2016) View (exchserver-ps-2019) View (exchonline-ps) View (o365scc-ps) View (eop-ps)

exchange/exchange-ps/exchange/Connect-IPPSSession.md
:white_check_mark:Succeeded
View (exchserver-ps-2010) View (exchserver-ps-2013) View (exchserver-ps-2016) View (exchserver-ps-2019) View (exchonline-ps) View (o365scc-ps) View (eop-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


maybe needed @ColumnTransformer(write = "?::jsonb")

when I tried to use this example of working with hibernate 5 and jsonb, then when saving, an error was returned:
"ERROR: column "customer_attributes" is of type json but expression is of type character varying"
after that I found this example on stackoverflow where the annotation @ColumnTransformer(write = "?::jsonb") is added to the responses and everything worked
https://github.com/eugenp/tutorials/blob/b95696df12b39d3c69689839ba3295f426adc599/persistence-modules/hibernate5/src/main/java/com/baeldung/hibernate/persistjson/Customer.java#L28

Hey, @vladbakumenko. Thanks for the feedback.
Assuming this is the article: https://www.baeldung.com/hibernate-persist-json-object
Since jsonb is specific to PostgreSQL, we include a more universal approach in section 5.

yes, but in section 5 there is no such annotation @ColumnTransformer(write = "?::jsonb").
Or am I misunderstanding something?


Update 'Assimp' to 5.0.0-07779a7a

I've followed this guide
step by step carefully. Yes

I've tested this package remotely and have excluded all broken builds.
Here is the links to the Travis/AppVeyor with status "All passed":

https://ci.appveyor.com/project/rbsheth/hunter/builds/25599494
https://travis-ci.com/rbsheth/hunter/builds/117221059

This update will break few old toolchains but fix others.
Updated in this pull request: https://github.com/ingenue/hunter/pull/377

@ruslo Updated to new version here, then we can merge testing changes.

Testing:

https://ci.appveyor.com/project/ingenue/hunter/builds/25674613
https://travis-ci.org/ingenue/hunter/builds/552984728?utm_source=github_status&utm_medium=notification

Released: https://github.com/ruslo/hunter/releases/tag/v0.23.198

@rbsheth THANK YOU SO MUCH!
I wasn't able to use assimp at Win64, and now everything fixed. Amazing!

@NukeBird Haha, thanks! Happy to help out. :)


chore: stabilize e2e test

PR Type
[x] CI-related changes
What Is the Current Behavior?
cypress test unstable
What Is the New Behavior?
Does this PR Introduce a Breaking Change?

[ ] Yes
[x] No
Other Information
AB#91500

Fixed with #1546


Configure sorin theme to display full directory names

Currently it abbreviates, i.E. ~/D/smx3-frontend where D should be Development.
How can this be adjusted?

Read the prompt code, or use a different prompt. There is documentation available. This is not an issue with Prezto. Please close.

Had a look at https://github.com/sorin-ionescu/prezto/blob/master/modules/prompt/functions/prompt_sorin_setup and it looks like there is no simple way to alter that. And couldn't find any related documentation.

You have two clear options. Modify the code to display the directories as you want, or use a different prompt that displays the full path.

@Eriner thanks, I figured that out too. Do not want to use a different prompt as I think it's the prettiest of all of them.
Modifying the code? How does this work? All is managed with git and if I change one, then it gets overwritten on the next git pull.

learn to use git stash, or fork the project.

This issue should be closed, as it is not a problem with prezto.

I've landed on this place twice in the past couple years, looking for this information.
In case anyone has the same question, this is what worked for me:
In prompt_sorin_setup, approximately line 135, change this:
PROMPT='${SSH_TTY:+"%F{9}%n%f%F{7}@%f%F{3}%m%f "}%F{4}${_prompt_sorin_pwd}%(!. %B%F{1}#%f%b.)${editor_info[keymap]} '
...to this:
PROMPT='${SSH_TTY:+"%F{9}%n%f%F{7}@%f%F{3}%m%f "}%F{4}%~%(!. %B%F{1}#%f%b.)${editor_info[keymap]} '

@tiffwu, Mangling isn't recommended, instead use Prompt Display Length configuration.

That's odd -- even when I set it to 'long', I still get the short names.

I'm seeing that as well. Looks like there's a bug in that handling.

yes, i can confirm, i have it set to long but it's not working. must be a bug.


Non Organic Install Test fails due to Dashboard Configuration issue - Android only

I am using this Cordova plugin and it works for iOS, I am able to track installations of the iOS App built with Cordova.
I am unable though to track the installations of the Android app.
Error:

The dashboard is configured in this way:
I clicked "Add App", I chose "Android out of store APK", I added as store details: the bundle identifier of my app, "TEST" as channel name and a fake url for the App URL.
I saved and the dashboard got created successfully.
When I execute the init command the response says success but no installations appear on the dashboard.
Logs in console:

Any help, please? :(
Stackoverflow

Solved, reply is on the stackoverflow above 👍


feat(maxpool): explicit and asymmetric padding

This PR is an attempt to deal with explicit and asymmetric padding for the MaxPool operator.
This does not break the current API and has been tested against the ONNX tests.
I think this has no impact on the gradient computation, but I am not sure.

Coverage decreased (-0.01%) to 62.784% when pulling 6177c5995460e94036aee24d76cdbcc90d0fcff4 on maxpool-asympooling into 4a047a6b083887ffc4101d2d963593d1512be820 on master.

LGTM. I think names of the pads are a bit confusing. Cardinal direction (North, south east west) might be easier? Thoughts?


Add a Safety section to the documentation of create_instance and create_device

This PR is the result of the fact that as a new user of this library, it caught me off guard that I wasn't able to drop Entry after successfully creating an Instance.
It adds documentation to specify these invariants which the caller must uphold when creating Devices and Instances.
Closes #271
One caveat to this, I am currently under the impression that the entry, instance, and device traits are maintained by hand, and are not auto-generated. If that is incorrect, then likely this PR only includes edits to auto-generated code, which likely isn't desirable, and I'll happily close the PR without it merging, since this interaction is documented in the README.

Looks good, thanks for adding the comments.

This has tripped up a number of people in the past; thanks for working to improve it!


[FR] Firebase Deploy

Is your feature request related to a problem? Please describe.
I am creating a template that needs to involve as little tech knowledge as possible to set up. To deal with this, I am creating an application with Electron and NodeJS users can install to set up the project. I need the ability to deploy a site to hosting via the NodeJS script so the user does not have to use the command line.
Describe the solution you'd like
A function that can be used to deploy to hosting by giving variables such as the target folder and maybe an optional target website url (for people who have multiple sites with hosting)
Describe alternatives you've considered
I have considered the REST API but this may require more setup by the user that I really don't want them to have to do.

Never mind. I think I have found a way to do it with the firebase-tools CLI packages NodeJS functions.


PageHeader User Control

cs file is missing

Yeah, also has a missing NuGet package on diagnostics.

I'm also unable to build Full or Blank. TODO seems to build and run

Also unable to build the project due to this missing cs file, it seems it was never included in the first place when the PageHeader control was commited

Same here

Same problem here
After watching the http://www.microsoftvirtualacademy.com/training-courses/a-developers-guide-to-windows-10 videos I was hoping these build issues would be resolved soon, so I have not dug into how to get around them.
Since it has been over 2 weeks since last update, I will for now try to just get it to build on my PC, since from the developers-guide-to-Win10-videos it seemed to solve elegantly 90% of the stuff I end up doing over and over again when I make apps for the Store.

I downloaded this slightly older version from June 4. (titleled "Fixing TextBlock") instead
https://github.com/Windows-XAML/Template10/tree/b6966b663b37af779e55ac9ef6ff76e4aefc72ff
That version builds without any errors :)

We are updating the templates right now. There are changes coming to the project templates infrastructure we are dealing with, too. Template 10 will not RTM until Windows 10 is RTM.

When do you plan to push the changes?
Also when template10 is RTM it will be available as a vsix or it will be part of vs2015?

Jerry, please, can you just add the missing PageHeader.xaml.cs file into the blank project? Thx in advance!

Okay. The first rush of changes are in place. The main change is the extraction of the common classes into an external library. Because of forthcoming changes to the NuGet system, this cannot be introduced as a project template for a few weeks. That being said, I think the Blank and minimal projects are 100% ready for you to test, and I want to thank you all for testing it.


NCBC-1074: Prevent MVC deadlock on async view queries

Motivation
When working within MVC actions, executing an asynchronous view query and
then waiting for it to complete synchronously causes a deadlock.
Modifications
CouchbaseRequestExecutor for aysnchronous view queries needed an
additional call to ContinueOnAnyContext before an await.
Also created an integration test which successfully detects this problem
if it occurs in the future.
Results
MVC actions no longer deadlock in this scenario.

Brant -
This is merged, can you please close this PR?
Thanks,
Jeff


API route simplification for portable resources

Summary
Once #6207 is done, we also need to apply the same improvements to portable resource namespaces. This issue is to apply the refactoring to portable resource namespaces.
AB#9264

@sk593 @kachawla - did this get done? I was looking at the code and it looks like this was already completed.

Yes, this was completed. Going to close the issue

Great, thanks!


Remove attr_accessible lines from models and add attribute security to controllers

Remove the attr_accessible lines from the models. This approach is no longer recommended as of Rails 4.x
class ExampleObject
        attr_accessible :name, :description, :parent_id

        accepts_nested_attributes_for :children
        ...
    end

Add attribute security at the controller level
class ExampleObjectController
        def update
            obj = ExampleObject.find(params[:id])

            obj.update_attrs(example_obj_params)
            …
        end

        private
            def example_obj_params
                params.require(:example_obj).permit(:name, description,
                                                childrens_attributes: [:name, :active])
            end
    end

related to #826
Documentation states that: "This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here."
Use strong parameters in controllers instead (we do in most cases). The administrate gem requires attribute_accessible but now that we are adding the super admin functionality into the core codebase we can probably drop the administrate gem

@Bodacious I think you've finished switching us over to the controller params approach. If so feel free to close this out


Integrate unused CommonJS tests where applicable

Motivation and Context

There has been an unused copy of The Official Specs for CommonJS lying around in our repository for who knows how long. They needed to be built using a python script and then manually executed in a browser.
This commit integrates all of those tests that also apply to our module system into our existing test suite for require & define.
Description

Adds adapted versions of the following CommonJs tests to our test.require.js:
absolute, transitive, determinism, method, nested, hasOwnProperty

The hasOwnProperty test actually uncovered a bug in our module system implementation and thus is deactivated right now.
The following CommonJS tests were not applicable to Cordova's module system since it does not support cyclic dependencies at all:
cyclic, monkeys

The following CommonJS tests were already covered by tests in test.require.js:

missing: covered by Test#005
relative: covered by Test#012
exactExports: covered by multiple tests

Future Work
I will follow up with a patch for the disabled hasOwnProperty test once this is merged.

@erisu Yeah, I'm very ambivalent about these test numbers. OTOH I agree with your point. OTOH, unique identifiers allow to quickly identify failing tests and find them in the source code. :man_shrugging:


Object of type GlideElement is not JSON serializable

I'm using PySNC to create records in my ServiceNow instance.
Used Python version: 3.10
Last known working version: 1.0.7
Bug seen in versions: 1.1.2, 1.1.3
My code worked with version 1.0.7 and then stopped working in 1.1.2 (and still didn't work in 1.1.3). I'm getting the following exception when calling GlideRecord.insert:
Traceback (most recent call last):
  File "/home/vsts/work/1/s/create-ticket.py", line 147, in <module>
    call.insert()
  File "/home/vsts/work/1/s/antenv/lib/python3.10/site-packages/pysnc/record.py", line 538, in insert
    response = self._client.table_api.post(self)
  File "/home/vsts/work/1/s/antenv/lib/python3.10/site-packages/pysnc/client.py", line 224, in post
    return self._send(req)
  File "/home/vsts/work/1/s/antenv/lib/python3.10/site-packages/pysnc/client.py", line 176, in _send
    request = self.session.prepare_request(req)
  File "/home/vsts/work/1/s/antenv/lib/python3.10/site-packages/requests/sessions.py", line 484, in prepare_request
    p.prepare(
  File "/home/vsts/work/1/s/antenv/lib/python3.10/site-packages/requests/models.py", line 371, in prepare
    self.prepare_body(data, files, json)
  File "/home/vsts/work/1/s/antenv/lib/python3.10/site-packages/requests/models.py", line 511, in prepare_body
    body = complexjson.dumps(json, allow_nan=False)
  File "/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/json/__init__.py", line 238, in dumps
    **kw).encode(obj)
  File "/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/opt/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type GlideElement is not JSON serializable

i have an idea, here, i'll see if i can reproduce in tests and fix asap. Thanks for reporting

@ABNAMRO-APIM should be fixed in 1.1.4, let me know

I confirm it did fix the issue. Thanks for the quick response!

Just a note - in 1.0.7 the following code worked:
call = client.GlideRecord('u_call')
# ...
call.insert()
description = description.replace('placeholder', call.number)

In 1.1.4 it throws an exception, because call.number doesn't seem to be a string anymore:
call.description = description.replace('placeholder', call.number)
TypeError: replace() argument 2 must be str, not GlideElement

I fixed that by using call.number.get_value(), but I just wanted to let you know it looks like a breaking change


Edits for clarity.

This is for 1825463.
@dbradish-microsoft
I've managed to improve this. I haven't removed any sections, in case some of these sections are the only place some of these concepts are documented. It's still long, but cleaner.

Docs Build status updates of commit 4b290f1:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Some build problems today.

Docs Build status updates of commit 4b290f1:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-conceptual/use-cli-effectively.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 37774a2:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-conceptual/use-cli-effectively.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 0dfc939:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-conceptual/use-cli-effectively.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@jiasli , @fengzhou-msft : This article was a transport from Azure/azurecli repo.  I asked Tim to update it to be a little less technical and to make it a bit more verbose.  Please review at your leisure.  Thank you!

Docs Build status updates of commit fe8a4ea:
:warning: Validation status: warnings

File
Status
Preview URL
Details

:warning:Warning

Details

docs-ref-conceptual/use-cli-effectively.md
:white_check_mark:Succeeded
View

[Warning-RepositoryOwnerPermissionInsufficient] Owner rloutlaw of repository https://github.com/MicrosoftDocs/azure-docs-cli has lost Admin permission. Please use Transfer Owner via Docs portal https://ops.microsoft.com to assign a new owner.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Map keys in $AdditionalParameters to fields/sections of op templates

Iterate through the keys provided in $AdditionalParameters for Set-Secret and where there's a matching key in the op template, set the value.
On Get-Secret pass those key-values as NoteProperties. Maybe? Is that a good idea?

There are a lot of fields in a loosely structured format for just a Login item. To make it more complicated, those fields don't even show up in the login template. I think the best approach will be to build some canned property mappings based on the template.


CASMINST-3053: Remove minor typo with dangling See word

Summary and Scope
CASMINST-3053: Remove minor typo with dangling See word
Issues and Related PRs
Testing
Tested on:
Test description:
Risks and Mitigations
Pull Request Checklist

/backport release/1.2

/backport main


Reusable Tooltip.

Codecov Report

Merging #1113 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #1113   +/-   ##
========================================
  Coverage    60.49%   60.49%
========================================
  Files          373      373
  Lines        13792    13792
========================================
  Hits          8343     8343
  Misses        5449     5449

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 dc39658...c9146a2. Read the comment docs.


Avoid duplication for Series

I did a refactoring for vec! from the LIne Plot, I avoided the duplication from the original code. For |s| s I used the variable F, because it is a closure which takes the argument s and returnss the operations done on the argument.
In this case, it was necessary, because we were mapping the multiple seconds from 0 to the self.elapsed.inner_second() in the 2D space by using a tuple.
In addition tot this, context s is used as usize so that's why we F(usize) -> usize. Added for Series<Time, usize), because we need to specify the generics X and Y we are working on with for pts which a Vec<X,Y>.

Ah, I merged your PR without compiling locally or checking if it was ready for review -- oops! Thanks for the fix


Unable to run gauge ruby specs

Expected behavior
should be able to run gauge specs from command line
Actual behavior
Getting a protobuff exception
Steps to replicate

Install Gauge and html-report only
Use gauge --init ruby

This initializes project, downloads and installs gauge-ruby

After successful installation, run bundle exec gauge specs
This gives the following exception

bundle exec gauge specs
[ValidationError] /home/sswaroop/rubyTest/specs/example.spec:12 Step implementation not found => 'Vowels in English language are "aeiou".'
[ValidationError] /home/sswaroop/rubyTest/specs/example.spec:19 Step implementation not found => 'The word "gauge" has "3" vowels.'
[ValidationError] /home/sswaroop/rubyTest/specs/example.spec:29 Step implementation not found => 'Almost all words have vowels <table>'

  Error Message: Connection closed [<IP_ADDRESS>:45004] cause: EOF
  Stacktrace:

  Error Message: write tcp <IP_ADDRESS>:44273-><IP_ADDRESS>:45004: use of closed network connection
  Stacktrace:

/var/lib/gems/2.3.0/gems/ruby-protocol-buffers-1.5.1/lib/protocol_buffers/runtime/decoder.rb:86:in `decode': invalid message (ProtocolBuffers::DecodeError)
	from /var/lib/gems/2.3.0/gems/ruby-protocol-buffers-1.5.1/lib/protocol_buffers/runtime/message.rb:290:in `parse'
	from /var/lib/gems/2.3.0/gems/ruby-protocol-buffers-1.5.1/lib/protocol_buffers/runtime/message.rb:296:in `parse'
	from /var/lib/gems/2.3.0/gems/gauge-ruby-0.2.1/lib/gauge_runtime.rb:36:in `dispatch_messages'
	from /var/lib/gems/2.3.0/gems/gauge-ruby-0.2.1/lib/gauge_runtime.rb:76:in `<module:Runtime>'
	from /var/lib/gems/2.3.0/gems/gauge-ruby-0.2.1/lib/gauge_runtime.rb:29:in `<module:Gauge>'
	from /var/lib/gems/2.3.0/gems/gauge-ruby-0.2.1/lib/gauge_runtime.rb:27:in `<top (required)>'
	from -e:1:in `require'
	from -e:1:in `<main>'
Ruby runner Failed. Reason: exit status 1
Successfully generated html-report to => /home/sswaroop/rubyTest/reports/html-report
Specifications:	0 executed	0 passed	0 failed	0 skipped
Scenarios:	0 executed	0 passed	0 failed	0 skipped

Total time taken: 82ms

Version
Gauge version: 0.8.2.nightly-2017-03-13

Plugins
-------
csharp (0.10.0)
html-report (3.1.0)
java (0.6.1)
ruby (0.4.0)

For some reason, your project is using gauge-ruby 0.2.1 (from the stack trace). Can you check what the Gemfile looks like?

 source "https://rubygems.org"

    gem 'test-unit', :group => [:development, :test]
    gem 'gauge-ruby' , :group => [:development, :test]

This works after doing bundle update


[ENH] Panel transformers that need conversion from nested pd.DataFrame to numpy arrays

nested_univ is no longer going to be supported in aeon, switching fully to numpy. Some transformers still store things internally in this format. Nearly all of them just iterate and convert to numpy, so can just be converted to "X_inner_mtype": "numpy3D", and then adjusted when we facilitate unequal length. I'll list here as I find them (would search tags but doesnt work, see #182 )
(transformations/Panel/summarize/_extract.py)

[ ] PlateauFinder
[ ] DerivativeSlopeTransformer (See #85 )
[ ] RandomIntervalFeatureExtractor
[ ] FittedParamExtractor
(transformations/Panel/compose.py)
[ ] ColumnTransformer (also see #171 )
in other files in transformations/Panel
[ ] Catch22
[ ] Catch22Wrapper
[ ] DWTTransformer
[ ] HOG1DTransformer
[ ] TSInterpolator
[ ] PaddingTransformer
[ ] Tabularizer
[ ] IntervalSegmenter
[ ] RandomIntervalSegmenter
[ ] SlopeTransformer
[ ] TruncationTransformer
[ ] _TSFreshFeatureExtractor, TSFreshFeatureExtractor, TSFreshRelevantFeatureExtractor
[ ] PAA
[ ] SFA

basically need to switch from
    "X_inner_mtype": "nested_univ",  # which mtypes do _fit/_predict support for X?

to this
"X_inner_mtype": "numpy3D",
also need to do this in the constructor to stop nonsense
super(PAA, self).init(_output_convert=False)
then treat X as numpy in fit and transform. Some much easier than others, any that work with unequal length (e.g. truncate and pad) leave for now because need to work with lists of numpy

Actually it seems nested pandas is still working with pandas 2.0.0

still want to get rid of them :)

Thanks for the summary @TonyBagnall! I think it would be a good move to drop the nested, but could we discuss actual consequences and alternatives?

sure @lmmentel happy to discuss, shall we have a developers meeting on the issue?

but to clarify, this is all internal, it will not effect anything external. The base class will just do the conversions. We are not dropping nested_univ support, just storing things internally a numpy arrays to avoid unnecessary conversions with the standard use cases

Its done, enjoying closing this one :) I'll raise a separate issue for
Tabularizer reduce.py and update #171 for ColumnTransformer


Fix versions.html for non-rtfd instances.

I have a RTD server running internally and this theme has a problem navigating to different versions of the docs. I believe that this problem has existed for a while, but has gone unnoticed due to readthedocs.org gives each project a subdomain on readthedocs.io so it has gone unnoticed. More details in the commit message.
I did run grunt and grunt build, but nothing new was generated.
Commit Message
It appears that the template variable `versions` must have changed at
some point (or else, this code was never "correct").

As is, the href produced from "url" is "/en/latest/". This works for
projects on readthedocs.org because the resulting url uses the project
subdomain http://project-name.readthedocs.io/en/some-ver/.

However, this does not work for privately managed rtfd servers where
projects do not have project-specific subdomains. So, the resulting href
produced is http://rtd.private-company.tld/en/some-ver/ when it
should be http://rtd.private-company.tld/docs/project-name/en/some-ver/.

I had a look in the rtfd/readthedocs.org project for a solution. I found
a few instances, like readthedocs/templates/core/project_details.html,
that use a `for version in versions` block with the href produced by
`version.get_absolute_url` and the slug comes from `version.slug`.

This code is using the versions config object that RTD generates here: https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl#L83-L85
It's definitely specific to builds of RTD, and could probably be extended in a more reasonable manner. I don't think we've specifically passing in the Version objects that this change seems to be using, unless I'm missing it somewhere?

Interesting. I'm at a loss on how I can debug this issue so I have been working mostly on intuition. @ericholscher  Do you have any suggestions? A solution that drops me into pdb would be perfect, but I'd settle for print(...) debugging at this point. 😄

Actually. On second review of doc_builder/conf.py.tmpl, I can see that this is expected behavior. I'll  look into other solutions. Potentially, it will just be an internal change to doc_builder/conf.py.tmpl.

I'll look at my issue as a problem with readthedocs.org and fix from there. If the solution for internal changes is portable with upstream, readthedocs.io, etc. then I'll push it there. Thanks, again.


Allow phone numbers without plus sign prefix

Not sure about refactor(peer): rename Resolve to ResolveDomain

@ernado force-pushed to revert the commit. Though having Resolve(ctx, domain) and ResolvePhone(ctx, phone) distinction feels weird to me. Perhaps we can figure out a better way?

Pushed the commit back until we figure out a better way.


Updated constructor

In WordPress 4.3 PHP4-style constructors will be deprecated. I've updated the two calls in the class.

LGTM, thanks!


Haskell NG GHCjs attribute 'version' missing

Consider the following shell.nix
let
  pkgs = import <nixpkgs> {};
  hEnv = pkgs.haskell-ng.packages.ghc7101.ghcWithPackages (p: with p; [
    async attoparsec case-insensitive fgl haskell-src
  ]);
in
  pkgs.myEnvFun {
    name = "my-haskell-project";
    buildInputs = with pkgs; [
        hEnv
      ];
    }

It appears to work fine if I call nix-shell in a directory containing this file. However, if we update the third line to read
  hEnv = pkgs.haskell-ng.packages.ghcjs.ghcWithPackages (p: with p; [

and thus to target GHCjs then nix-shell --show-trace fails with the following message
$ nix-shell --show-trace                                                                                [12:26:32]
error: while evaluating the attribute ‘nativeBuildInputs’ of the derivation ‘env-my-haskell-project’ at "/Users/tel/src/nixpkgs/pkgs/misc/my-env/default.nix":71:3:
while evaluating ‘ghcWithPackages’ at "/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/default.nix":57:27, called from "/Users/tel/tmp/zippppc/shell.nix":3:10:
while evaluating ‘callPackage’ at "/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/default.nix":50:26, called from "/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/default.nix":57:33:
while evaluating ‘callPackageWithScope’ at "/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/default.nix":45:42, called from "/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/default.nix":50:32:
while evaluating ‘callPackageWith’ at "/Users/tel/src/nixpkgs/lib/customisation.nix":104:35, called from "/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/default.nix":45:49:
while evaluating ‘makeOverridable’ at "/Users/tel/src/nixpkgs/lib/customisation.nix":56:24, called from "/Users/tel/src/nixpkgs/lib/customisation.nix":106:5:
while evaluating anonymous function at "/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/with-packages-wrapper.nix":1:1, called from "/Users/tel/src/nixpkgs/lib/customisation.nix":58:12:
while evaluating ‘versionOlder’ at "/Users/tel/src/nixpkgs/lib/strings.nix":184:22, called from "/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/with-packages-wrapper.nix":4:8:
attribute ‘version’ missing, at "/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/with-packages-wrapper.nix":4:39

Presumably GHCjs's version scheme doesn't match that of GHC at all, so they cannot be so neatly compared.

Are you aware of https://github.com/NixOS/nixpkgs/pull/6786? I believe ghcjs doesn't work in Haskell NG at the moment.
Cc: @cstrahan

Ah ah, didn’t realize it was still WIP!
—
Sent from Mailbox
On Fri, Mar 27, 2015 at 11:31 AM, Peter Simons<EMAIL_ADDRESS>wrote:

Are you aware of https://github.com/NixOS/nixpkgs/pull/6786? I believe ghcjs doesn't work in Haskell NG at the moment.
Cc: @cstrahan
Reply to this email directly or view it on GitHub:
https://github.com/NixOS/nixpkgs/issues/7005#issuecomment-86975244

@luite recently pushed a bunch of commits to get GHCJS working with GHC 7.10 RC3 (thanks Luite!), and I'm currently running a build to test it out. Shouldn't be much longer before we have GHCJS set up properly :).

Great! Thanks for all the hard work!
—
Sent from Mailbox
On Fri, Mar 27, 2015 at 4:04 PM, Peter Simons<EMAIL_ADDRESS>wrote:

Closed #7005.
Reply to this email directly or view it on GitHub:
https://github.com/NixOS/nixpkgs/issues/7005#event-267238166


LND doesn't broadcast URI when port 9735 tunneled from a different external IP

Background
I was having a bunch of issue with NAT and port forwarding from my small-brand router. Looking around here I found some answers buried in the issues. I'll try those when I have router access again.
In the mean time I've tunneled port 9735 from my AWS machine to my local lnd server using ssh -R.
I set the externalip field to the AWS VM's public ip. I can confirm using Eclair Mobile that I can connect using pubkey@awsip:9735, however getinfo and getnodeinfo mypubkey don't return any URIs whatsoever.
Your environment

version of lnd
0.5.1-beta
which operating system (uname -a on *Nix)
4.14.94-1-MANJARO
version of btcd, bitcoind, or other backend
Bitcoind v<IP_ADDRESS>-g49e34e288005
any other relevant environment details
Person in charge of setting this up (me) doesn't understand networking.

Steps to reproduce

Tunnel port 9735 from a virtual server to a local lnd instance.
Set externalip to the VM's ip (the IP I want lnd to be broadcasting)

Expected behaviour
Externalip setting is used to create the broadcasted URI even if it doesn't match the lnd server's public ip.
Actual behaviour
No URIs are broadcast. getnodeinfo says my URIs are null.

Does the node have any active channels?

Yes. There are 35 outbound channels (~2 might be duplicates). Incoming and outgoing payments work fine.
There is also one private inbound channel that I made with Eclair

Found the problem. Had to do with how bash handles comments in a launcher file.
You can show you have the same issue as me if lncli stop ends your log with ... unknown command...
lnd is not at fault.


Clarify and check possible chi2 choices

Based on user feedback, this PR adds the following checks & clarifications:

Config validation will raise a ValueError if kinmapchi2 is used with BayesLOSVD kinematics.
Added information on this to the docs (which had not mentioned kinmapchi2 at all before) and Tutorial "4. BayesLOSVD and DYNAMITE".

Addresses https://github.com/dynamics-of-stellar-systems/dynamite/issues/284#issuecomment-2220196405 to https://github.com/dynamics-of-stellar-systems/dynamite/issues/284#issuecomment-2220750451 in issue #284
Julia: would be great if you could have a look and test (e.g., put kinmapchi2 in tutorial 4's NGC4550_config.yaml and verify that Tutorial 4 reports the ValueError...) :-)

Will merge per today's core team meeting...


TypeScript type definitions added

Pull Request
Fixes #
Changes proposed:

[ ] Fix
[x] Enhancement
[ ] Remove
[ ] Update

Description (what is this PR about)
https://github.com/sebhildebrandt/systeminformation/issues/164

@asokolsky : first of all sorry for the late reply! I was also working on typescript definitions, but got stuck due to lot of work. Now I published a version that includes my typescript definitions. They reflect also all recent changes. Hope this is ok for you!


Error while executing script

VM182:1 Something went wrong!
TypeError: Cannot read properties of undefined (reading 'user')

Where do you get this error?

On chrome after press enter (after pasted your script)

You must be logged in to instagram.com

Yes, even if i signed in.

Can you send me a screenshot from your browser? It would help me a lot. Thank you for your time!

Chrome version:
Version 104.0.5112.102 (Official Build) (64-bit)
Thanks u too.

You're getting an HTTP 429 error, which means that you've had too many requests, so your IP address was been temporarily banned from fetching that URL. I'll try to increase the waiting time in order to avoid this problem. Thanks!


Fixing typos and errors.

Fixing typos.
Fixing syntactic errors.
Fixing error: replacing 'src' script attribute with 'type' attribute.
(Great work!)
;)

@kostasx thanks man!


Promote integration-service from staging to production

Included PRs:

https://github.com/redhat-appstudio/integration-service/pull/514
https://github.com/redhat-appstudio/integration-service/pull/503
https://github.com/redhat-appstudio/integration-service/pull/502
https://github.com/redhat-appstudio/integration-service/pull/508
https://github.com/redhat-appstudio/integration-service/pull/473
https://github.com/redhat-appstudio/integration-service/pull/486
https://github.com/redhat-appstudio/integration-service/pull/501
https://github.com/redhat-appstudio/integration-service/pull/504
https://github.com/redhat-appstudio/integration-service/pull/494
https://github.com/redhat-appstudio/integration-service/pull/507

/lgtm


WIP/FIX: Return correct output for invgauss.cdf when mu is very small

Reference issue
closes #13614
What does this implement/fix?
This PR returns the correct values for invgauss.cdf when mu is very small. Previously a NaN was returned. See #13614
Additional information
n/a

Does this need a new test case for the change? @mdhaber

Yes, i meant to mention that. Please use your original example as a test, and ideally, test against a function in R, Wolfram Alpha, or an implementation in mpmath. Provide an example of the code you used as a comment at the top of the test.

@mdhaber I decided to go with a more accurate way by implementing the logcdf and logsf functions for invagauss. The approach is described in [1]. It solves a few issues with the return values of the exisiting functions:
Master branch:
In [4]: invgauss.sf(110, 1.05)
Out[4]: 0.0

In [5]: invgauss.logcdf(110, 1.05)
Out[5]: 0.0

In [6]: invgauss.logcdf(0.0001, 1.05)
Out[6]: -inf

This PR's latest commit:

In [3]: invgauss.logcdf(110, 1.05)
Out[3]: -4.1285162594422556e-25

In [4]: invgauss.sf(110, 1.05)
Out[4]: 4.128516259442096e-25

In [5]: invgauss.logcdf(0.0001, 1.05)
Out[5]: -5003.8787259036735

Reference:
[1] https://journal.r-project.org/archive/2016-1/giner-smyth.pdf

I decided to go with a more accurate way by implementing the logcdf and logsf functions for invagauss.

Is the CDF more accurate than the previous commit, f6351e04896e725089fc599dfb4479b83b839e9a? Can you give some examples?

This paper also presents a fast method to calculate the distribution's PPF using newton's method with guaranteed convergence

Please save it for a separate PR. Let's fix the bug and think about enhancements separately.
Please also avoid force-pushes. They erase the history. It is important for me, as a reviewer, to see what has changed since I last looked.

I decided to go with a more accurate way by implementing the logcdf and logsf functions for invagauss.

Is the CDF more accurate than the previous commit, f6351e0? Can you give some examples? If it is not more accurate, please revert, as a one line change is preferable to a rewrite if all else is equal.

This paper also presents a fast method to calculate the distribution's PPF using newton's method with guaranteed convergence

Please save it for a separate PR. Let's fix the bug and think about enhancements separately.
Please also avoid force-pushes. They erase the history. It is important for me, as a reviewer, to see what has changed since I last looked.

``python
In [5]: invgauss.logcdf(0.0001, 1.05)
Out[5]: -inf
In [6]: invgauss.logcdf(110, 1.05)
Out[6]: 0.0
- The current commit is better. See examples in my previous comment above.
- Understood. Its worth noting I did not erase history nor the previous commits since you first commented on this PR. The previous force-push was me fixing a typo I made.
- Noted. I will consider submitting a PR should I have the time.

Ah, I see. OK.
zoj613/scipy#1 should fix the test errors.

I don't see any  license problem with the reference. It's just an article explaining how to get more accurate computation.
It's a good find.

Articles don't (I think also can't) claim license on the implementations based on them. Otherwise the method has to go in patents for exclusivity. This is similar to some researcher using matlab to explain certain phenomenon.
However since I don't know anything about the magnitude of x, it seems to me
        fac = np.sqrt(1 / x)
        a = _norm_logcdf(fac * ((x  / mu) - 1)
        b = 2 / mu + _norm_logcdf(-fac * ((x / mu) + 1)
        return a + np.log1p(np.exp(b - a))

might be a bit better if mu indeed gets very small and x is comparable to it. Also if x gets really small fac might blow up before the sqrt. So if the typical values of x is very small first taking the sqrt and then inverting might help.

I have added tests for the changes. They pass locally.
Note that this distribution still has issues with values computed by the pdf function. However because @mdhaber insisted I keep the scope narrow, then I guess it will be dealt with separately.
In [8]: invgauss.pdf(1, math.inf)
/home/scipy/scipy/stats/_continuous_distns.py:3495: RuntimeWarning: invalid value encountered in true_divide
  return 1.0/np.sqrt(2*np.pi*x**3.0)*np.exp(-1.0/(2*x)*((x-mu)/mu)**2)
Out[8]: nan

The pdf is supposed to be finite for infinite mean.

I submitted a PR to your branch, zoj613/scipy#2 to strengthen the tests. If that looks good to you and it passes CI here, this will be good to go from my perspective.

I submitted a PR to your branch, zoj613#2 to strengthen the tests (e.g. check results against R ground truth rather than that values are finite). If that looks good to you and it passes CI here, this will be good to go from my perspective.

Looks good to me. The additions to the tests pass locally.

Thanks @zoj613! Looking forward to PDF and PPF improvements when you have time!


python3Packages.asyncpg: disable tests on darwin

Description of changes
The tests run well on my machine, but not on Hydra. See #198495.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

@ofborg build python310Packages.asyncpg

@ofborg build ansible

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/1345


JSX of Official Modules

We have several custom modules that extend / modify official modules. On the PHP side this is easy enough via inheritance:
class PNI_GalleryWithLinks extends ET_Builder_Module_Gallery {
However rendering the component in the visual builder is much more challenging as we would have to rewrite the JSX of the entire module. Is there any way to call / reuse the JSX code of an official module? For example, in our gallery with links example above, the gallery's appearance is pretty much identical to a normal gallery.
Advice / information would be appreciated.
Thanks!

QA Checklist
Reporter

[ ] Helpful title used

Helpful title format: Scope(s) :: One Sentence To Describe The Issue
Example: VB :: Floating Toolbar :: Jumps To Top Of Page

[ ] Detailed description

Description should usually be 150+ characters.

[ ] Steps to reproduce included
[ ] Support Ticket URL included
[ ] Image and/or gif

Developer

[ ] Steps to reproduce proven solved
[ ] Test included and coverage acceptable and all Tests passing?
[ ] PR description has layman's description of problem and solution and "Areas Affected" listed/explained?
[ ] PR branch includes latest commits from master branch (at the time of checking)?
[ ] Estimated points on issue
[ ] Proper code documentation and conventions?
[ ] Proper RTL appearance
[ ] i18n used if applicable
[ ] Ajax/Form used? Nonce used? Perms checked? All user input sanitized and validated? Intentional unsanitized/unescaped functions used?
[ ] Database saved/updated? Data sanitized and validated?
[ ] Variable output properly escaped and validated?

Peer Review

[ ] PR branch includes latest commits from master branch (at the time of checking)?
[ ] Steps to reproduce proven solved
[ ] Affected areas are tested and ok
[ ] Proper code documentation and conventions
[ ] Proper RTL appearance
[ ] i18n used if applicable
[ ] Test(s) included and coverage acceptable
[ ] Ajax/Form used? Nonce used? Perms checked? All user input sanitized and validated? Intentional unsanitized/unescaped functions used?
[ ] Database saved/updated? Data sanitized and validated?
[ ] Variable output properly escaped and validated?

Quality Assurance

[ ] All tests passed on CircleCI.
[ ] Steps to reproduce passed, the fix works.
[ ] No errors in console or output
[ ] Affected areas are tested and ok
[ ] The fix does not change a customer's website in any surprising or unintended way

[ ] If Divi's design is adjusted, settings are migrated gracefully and invisibly

Design Review

[ ] UI is to spec
[ ] UX is to spec
[ ] Design is to spec
[ ] No surprising visual changes to a customer's website will be experienced after updating

[ ] Any/all visual changes are migrated gracefully

Dev Review

[ ] Test(s) included and coverage acceptable
[ ] Ajax/Form used? Nonce used? Perms checked? All user input sanitized and validated? Intentional unsanitized/unescaped functions used?
[ ] Database saved/updated? Data sanitized and validated?
[ ] Variable output properly escaped and validated?
[ ] i18n used if applicable
[ ] Implementation acceptable, DRY, Scaleable, future safe
[ ] Best practices used, cleverness and grokage, ES6 use, etc.

Agree. It would be very useful to have some JSX examples from the original modules.

+1 to giving us the JSX of built in modules...frustratingly hard to build a simple blog type module for custom post types.

This is still an open issue. Is there any word from ET regarding this? Extending Divi feels overly complicated for small additions to existing modules.

I really need this for extend the Shop Module.
Any news about this?
Regards,
Lucas - CTO - Kubey Machine.