Node.js Structural Comparisons

We ask that you please be patient as our team works through approving and publishing all articles/tutorials in a timely manner. Allow 1-3 days for a topic to be reviewed and/or approved - allow 3-7 days for an articles to be reviewed and/or published.
Be sure to visit our Resources Page for tools, resources, and example articles to go over.
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
NOTE: We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
We're looking for the first 2-3 paragraphs of the article that appropriately summarize what your article will be about.
Proposed title of article
Node.js Structural Comparisons
Introduction paragraph (2-3 paragraphs):
Node.js is a type of computer language based on JavaScript. When structuring codes to produce and generate results, the number of lines of code can become time efficient. This tutorial will display structural breakdowns of numerous scenarios by comparing Node.js to R-Programming, C++, and Java.
R-Programming, C++, and Java were selected to differentiate components that can typically be found quickly with Node.js. The tutorial will extend to other areas of programming structure such as sequencing, organization, features, and available options. Applying these concepts might be beneficial to specific situations such as data science, applications with possible graphic user interface preferences, and general scripts.
Key takeaways:

Possible benefits from less lines of codes.
Providing opportunities for further adjustments may also be a possibility.
Each programming language is chosen more often than others due to available options.
Computer language applications may have special features for specific purposes.

References:
https://medium.com/analytics-vidhya/statistical-functions-in-node-js-12303286de4a
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

seems like a good topic - approved @pkalynan


[Bug] Duplication Application name error

Description
[[What happened ] When the user try to add a duplicate name for the application there should be simple error message “The application with this name already exists
Steps to reproduce the behaviour:
1.In the application page
2.click on Welcome tour
3.Click on Lets go Button
4.Click on Start Building button
5.Clik on do it for me button continuously
6.Validate the Functionality
expected result:
When the user try to add a duplicate name for the application there should be simple error message “The application with this name already exists. Please enter a different name"
Actual Result:
When the user try to add a duplicate name for the application the duplicate key Error message is displayed

Important Details
Version: Cloud
OS: Windows
Browser Chrome
Environment Production

@pranavkanade is this related to your change?

@abhvsn this error string has to be handled from BE.


BUG: Remove Inner Join from CAMPD CDD Queries

Issue:
The filter query is doing an inner join on the attributes so a unit must have all of the attributes for it to show up in the filters. However, some units won't have controls so they drop out of the filter result. For instance if you try to filter for Montville(546) in the UI it doesn't show up in the facility list, but it will show up in the emissions result if you filter on Connecticut and residual oil.
Testing
Test Case: TC756
Tester: Maegan Wood

@tlageman-epa TC756 Passed


New version: igoogolx.itun2socks version 1.8.2

Pull request has been created with WinGet Releaser v2 :rocket:
Microsoft Reviewers: Open in CodeFlow

/azp run

/azp run


Fixing description that looks like a grammar (or logic) mistake.

Stumbled upon this while reading the specification. This must be a leftover of singular -> plural transition (structure -> structures), and I argue that this a structures in not appropriate here.

This looks fine.
Going through the spec I also found that the only type property example is "structures" (see section 6.1.2), is this then incorrect or was this what we decided on?

Going through the spec I also found that the only type property example is "structures" (see section 6.1.2), is this then incorrect or was this what we decided on?

Examples do not have to show all the possible variants anyway, so I guess this should not be a problem.

Ah, this odd grammar was actually discussed in #128 and I believe we settled on that the text would be "a structures entry". But then we had some major issues with a rebase... and I think this was lost there.

Ah, this odd grammar was actually discussed in #128 and I believe we settled on that the text would be "a structures entry". But then we had some major issues with a rebase... and I think this was lost there.

So it is intended to be "a structures entry", right? Or maybe we could provide something more descriptive, i.e. "data that pertain to a single structure" (taken from Term Definitions)?

If you look at the discussion in #128, I believe we agreed on "a structures entry" (as in, it was suggested and no one complained).
Going forward towards v1.0, I think it would be great if we simply specify exactly what these strings are supposed to be for the various endpoints. And, preferably, they should be a couple of sentences explaining what is actually being represented.

Going forward towards v1.0, I think it would be great if we simply specify exactly what these strings are supposed to be for the various endpoints. And, preferably, they should be a couple of sentences explaining what is actually being represented.

+1
I have changed the description to "a structures entry" for now.


Fix sushy_emulator integration in reproducer

It's a followup of #1753.
We get rid of realpath filter which resolves the path using the controller's filesystem [1]. When the filesystems don't match between the controller and the remote machine, we might hit somme issues. For instance, when running controller on a Fedora CoreOS system, the /home gets resolved as /var/home by realpath, leading to incorrect path in remote machine.
Without realpath, we end up with the .. in the path which is a bit uggly but we keep the consistency.
Also, we set the hypervisor ansible user used as the emulator libvirt user in order to have a more dynamic configuration, otherwise it fails by default if hypervisor ansible user is not zuul (i.e default user).
[1] https://docs.ansible.com/ansible/latest/collections/ansible/builtin/realpath_filter.html#synopsis
As a pull request owner and reviewers, I checked that:

[x] Appropriate testing is done and actually running
[x] Appropriate documentation exists and/or is up-to-date:

[x] README in the role
[x] Content of the docs/source is reflecting the changes

/ok-to-test


fix: change which popper js package we import

Alaska Airlines Pull Request
Type of change:
Please delete options that are not relevant.

[ ] New capability
[x] Revision of an existing capability
[ ] Infrastructure change (automation, etc.)
[ ] Other (please elaborate)

Checklist:

[x] My update follows the CONTRIBUTING guidelines of this project
[x] I have performed a self-review of my own update

By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team
Summary by Sourcery
Bug Fixes:

Correct the import path for the Popper.js package in the popover module.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Does rspec work with optional path scopes?

Hi,
I'm not an expert on rails and have just started to use rspec. I'm creating a new app which will be in several different languages. So as suggested here http://guides.rubyonrails.org/i18n.html#setting-the-locale-from-the-url-params I use an optional path scope in my routes.rb to get the locale:
  scope "(:locale)", :locale => /en|sv/ do
    resources :badges
  end

but when i do that my specs starts to fail and complains about missing routes.
badges/show renders Name and the badge image.
     Failure/Error: render
     ActionView::Template::Error:
       No route matches {:action=>"edit", :controller=>"badges", :locale=>#<Badge id: 283, name: "Win34", image: "test-cyan.png", created_at: "2012-06-14 16:49:09", updated_at: "2012-06-14 16:49:09">}

If one looks in the hash it presents the value for the locale key is the object to show. Is this a bug? My application works perfectly fine, it's just these specs that fails. And if I remove the scope in routes.rb the tests works fine.

Thanks @noplay, that solved my problem


Performance: refactor GroupMatching

Proposed changes
Refactor GroupMatching to improve performance.
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


How can I cut 2 masks instead of all masks like demo

How can I cut 2 masks instead of all masks like demo

A demo shows only what is needed, not everything covered up

I have tried the Demo and discovered that it only allows segmenting depending on the hover of the mouse. How can I add the other functionality like the ones in the demo? Hover over and click Multi-Mask Mode, Box, and Segment All?

You can try on this repository: https://github.com/Nomination-NRB/SAM-webui
select the region and add other point to select the other region


map breaks with NSOrderedSetArrayProxy in EK 1.0.0

Problem with map:
The property is declared as a NSArray, debugging shows that the property is actually backed by a __NSOrderedSetArrayProxy.
Calling map: on this property crashes with following stack trace:
2015-03-17 13:51:13.225 XXXX[38091:696426] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSArray initWithObjects:count:]: method only defined for abstract class.  Define -[__NSOrderedSetArrayProxy initWithObjects:count:]!'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000010f443a75 __exceptionPreprocess + 165
	1   libobjc.A.dylib                     0x000000010f0dcbb7 objc_exception_throw + 45
	2   CoreFoundation                      0x000000010f44b75f __CFRequireConcreteImplementation + 271
	3   CoreFoundation                      0x000000010f436157 -[NSArray initWithObjects:count:] + 39
	4   CoreFoundation                      0x000000010f33af92 -[NSArray initWithArray:range:copyItems:] + 450
	5   XXXX                                0x000000010c5d92e5 -[NSArray(EKEnumerable) initWithEnumerable:] + 261
	6   XXXX                                0x000000010c5d2d46 -[EKEnumerable map:] + 294
	7   XXXX                                0x000000010c4c78f0 -[XXX xxx:] + 384
	8   XXXX                                0x000000010c4d739f -[XXX xxx] + 303
	9   XXXX                                0x000000010c4d7bfd -[XXX xxx:] + 525
	10  UIKit                               0x000000010d8c5a22 -[UIApplication sendAction:to:from:forEvent:] + 75
	11  UIKit                               0x000000010d9cce50 -[UIControl _sendActionsForEvents:withEvent:] + 467
	12  UIKit                               0x000000010d9cc21f -[UIControl touchesEnded:withEvent:] + 522
	13  UIKit                               0x000000010dc73e80 _UIGestureRecognizerUpdate + 9487
	14  UIKit                               0x000000010d90b856 -[UIWindow _sendGesturesForEvent:] + 1041
	15  UIKit                               0x000000010d90c483 -[UIWindow sendEvent:] + 667
	16  UIKit                               0x000000010d8d8fb1 -[UIApplication sendEvent:] + 246
	17  UIKit                               0x000000010d8e6227 _UIApplicationHandleEventFromQueueEvent + 17700
	18  UIKit                               0x000000010d8c123c _UIApplicationHandleEventQueue + 2066
	19  CoreFoundation                      0x000000010f378c91 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
	20  CoreFoundation                      0x000000010f36eb5d __CFRunLoopDoSources0 + 269
	21  CoreFoundation                      0x000000010f36e194 __CFRunLoopRun + 868
	22  CoreFoundation                      0x000000010f36dbc6 CFRunLoopRunSpecific + 470
	23  GraphicsServices                    0x0000000112441a58 GSEventRunModal + 161
	24  UIKit                               0x000000010d8c4580 UIApplicationMain + 1282
	25  FIAT                                0x000000010c49da29 main + 169
	26  libdyld.dylib                       0x000000010f9cd145 start + 1
	27  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Same issue occurs after calling map: on an array returned by a Core Data fetch, which is actually a _PFBatchFaultingArray

Also occurs for mapping over an NSMutableArray. Interestingly, the concrete class in this case was __CFArray (rather than __CFMutableArray).
Creating a new (immutable) array with the contents of the original, then mapping over the result, solved this problem.
This is probably a problem with NSArray/NSMutableArray being class clusters - the actual exception being thrown was that initWithCapacity: was only defined for the abstract class NSMutableArray.


WebAssembly

Use WebAssembly for better performance
because the vertex bundler is very bad performance in JavaScript so rewrite it in C++:
the renderer.renderFrame -> renderer.addWorldData ( -> addBlock -> addBlockTextures -> ...) takes up 95% of the performance!!
However this requires a LOT of work (learning emscripten, etc.)

Link to repo where learning WebGL/emscripten: MarcellPerger1/wasm_stuff

This is now much less important with only remaking mesh when needed

After implementing chunks, using WebAssembly won't be necessary for a while because different chunks can be used on different frames. Using workers for rendering can also improve the speed.


ack() is not accessible in global middleware in TypeScript

Description
ack() function actually exists in global middleware arguments, but it's not accessible in TypeScript. Note that ack does not exist in middleware args when receiving an Events API payload. It can exist for all the rest.
What type of issue is this? (place an x in one of the [ ])

[x] bug
[ ] enhancement (feature request)
[ ] question
[ ] documentation related
[ ] example code related
[ ] testing related
[ ] discussion

Requirements (place an x in each of the [ ])

[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.
[x] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report
import { App } from '@slack/bolt';
const app = new App({
  token: process.env.SLACK_BOT_TOKEN,
  signingSecret: process.env.SLACK_SIGNING_SECRET
});

app.use(async ({ body, next, ack }) => {
  if (ack && shouldSkip(body)) {
    await ack();
    return;
  }
  await next();
});

Currently, a workaround is to cast the type to any:
app.use(async (args) => {
  const ack = (args as any).ack;
  if (ack && shouldSkip(args.body)) {
    await ack();
    return;
  }
  await args.next();
});

Reproducible in:
package version: any
node version: any
OS version(s): any
Steps to reproduce:

Compile the above code snippet

Expected result:
The ack argument should be available.
Actual result:
Compilation error as below:

Additional note: The ack function can be absent for Events API.

Why is the ack function absent for the Events API?


Can opentitan/ibex work with general debugger like Seggar J-link and then works with Eclipse and VC code?

Hi All
As there is plugin for Seggar J-link with Eclipse and can upload the ELF and debug with Eclipse.
I am curious if there is this kind of option for opentitan/ibex and if yes how. If no, what is the direction to make it happen?
Nicolas

Duplicated.


Tokens are not displayed in the figma frontend right after adding auto layout to a frame

Describe the bug
Currently I can't apply any tokens to a frame right after adding auto layout to it. It applies the token in the inspect view, but it is not shown in the figma frontend. Right now I always need to restart the plugin after creating a new auto layout frame
To Reproduce
Steps to reproduce the behavior:

activate auto layout  e.g. on two text layers
Try to add colors, spacing etc. to this new auto layout frame

Expected behavior
If I create a new auto layout frame and directly apply tokens to it, they should be displayed in the frontend.

I'm unable to reproduce this here, could you provide a screen recording?

Closing this for now, seems to work fine for me. Feel free to reopen if issues should persist.


Deprecate fetch

Ticket: #1824
Issue

Just remove the code no one probably used :)
Solution

Added depracations for function and filter.
Impact

If someone used those functions he'll get a warning. Also I created a new filter timber/compile/render that should replace the timber_compile_result.
Usage Changes

The new filter timber/compile/render - it works just as timber_compile_result.
Considerations

I'm not sure about the name of the new filter timber/compile/render. Any propositions?
Testing

Not yet, I'll add them if everything else is ok.

Coverage decreased (-1.6%) to 93.688% when pulling a4532e6c72b2b9571c4f88ed200d0127f4edbd0e on palmiak:deprecate-fetch into f53479edbfc8c006110f9320e6d83c2acf81c8c7 on timber:2.x.

@palmiak is it cool with you if I finish this up? I think this one just needs some of those suggestions pulled in and then we're done. That way you can focus your attention on #1942


Adds Solr System Logging Receiver

Adds ability to receive Solr logs

@qingling128 Hello. This should be in a good state to review now. Thanks!

Adding @ridwanmsharif and @jefferbrecht for shadowing

Can you also attached a sample ingested log entry (Can be retrieved from the Log Viewer UI) in the description of this PR?

Left a minor comment.
Can you also attached a sample ingested log entry (Can be retrieved from the Log Viewer UI) in the description of this PR?

@lidizheng yep, I was just reinstalling and then I will do this.

@qingling128
Ops Agent Integration Test (SLES 15)
Failure, but doesn't appear to have Solr Related Issues
third party apps integration test (Debian)
Failure, but Solr Tests good
--- FAIL: TestThirdPartyApps (0.00s)
    --- FAIL: TestThirdPartyApps/debian-10 (0.00s)
        --- PASS: TestThirdPartyApps/debian-10/redis (158.65s)
        --- PASS: TestThirdPartyApps/debian-10/memcached (159.28s)
        --- PASS: TestThirdPartyApps/debian-10/couchdb (162.94s)
        --- PASS: TestThirdPartyApps/debian-10/apache (176.94s)
        --- PASS: TestThirdPartyApps/debian-10/mongodb (178.46s)
        --- PASS: TestThirdPartyApps/debian-10/postgresql (182.67s)
        --- PASS: TestThirdPartyApps/debian-10/mysql (201.76s)
        --- PASS: TestThirdPartyApps/debian-10/jvm (208.39s)
        --- PASS: TestThirdPartyApps/debian-10/cassandra (218.80s)
        --- PASS: TestThirdPartyApps/debian-10/elasticsearch (220.87s)
        --- PASS: TestThirdPartyApps/debian-10/nginx (222.43s)
        --- PASS: TestThirdPartyApps/debian-10/solr (229.66s)
        --- FAIL: TestThirdPartyApps/debian-10/tomcat (275.10s)

third party integration test (SLES 12)
Failed, but Solr Tests good
--- FAIL: TestThirdPartyApps (0.00s)
    --- FAIL: TestThirdPartyApps/sles-12 (0.00s)
        --- SKIP: TestThirdPartyApps/sles-12/redis (0.00s)
        --- SKIP: TestThirdPartyApps/sles-12/mysql (0.00s)
        --- SKIP: TestThirdPartyApps/sles-12/jvm (0.00s)
        --- SKIP: TestThirdPartyApps/sles-12/couchdb (0.00s)
        --- SKIP: TestThirdPartyApps/sles-12/apache (0.00s)
        --- SKIP: TestThirdPartyApps/sles-12/nginx (0.00s)
        --- SKIP: TestThirdPartyApps/sles-12/cassandra (0.00s)
        --- PASS: TestThirdPartyApps/sles-12/mongodb (905.08s)
        --- FAIL: TestThirdPartyApps/sles-12/memcached (906.38s)
        --- PASS: TestThirdPartyApps/sles-12/solr (930.99s)
        --- PASS: TestThirdPartyApps/sles-12/elasticsearch (986.31s)
        --- PASS: TestThirdPartyApps/sles-12/tomcat (1004.00s)
        --- PASS: TestThirdPartyApps/sles-12/postgresql (1194.91s)

OK to merge. But it looks like something got merged before I got to this, so it needs rebasing again. (Maybe we should revisit the GitHub settings...


Strange behaviour after a stream is completed when related to another stream by subscription's .add.

Bug Report
Current Behavior
Strange behaviour after a stream is completed when related to another stream by subscription's .add.
Reproduction
https://stackblitz.com/edit/rxjs-1yyabm?file=index.ts
import { timer } from 'rxjs';
import { take } from 'rxjs/operators';

timer(3000, 1000).subscribe(
  x => console.log('TIMER-1')
)
.add(
  timer(2000, 1000)
  .pipe(take(1))
  .subscribe(
    x => console.log('TIMER-2'), () => null, () => console.warn('DONE-2')
  )
)
.add(
  timer(0, 1000)
  .subscribe(
    x => console.log('TIMER-3'), () => null, () => console.warn('DONE-3')
  )
)

TIMER-3 stops to be logged once timer-2 is completed.
Expected behavior
Completion of the second subscription should have no effect on third one.
import { timer } from 'rxjs';
import { take } from 'rxjs/operators';

timer(3000, 1000).subscribe(
  x => console.log('TIMER-1')
)
// .add(
//  timer(2000, 1000)
//  .pipe(take(1))
//  .subscribe(
//    x => console.log('TIMER-2'), () => null, () => console.warn('DONE-2')
//  )
// )
.add(
  timer(0, 1000)
  .subscribe(
    x => console.log('TIMER-3'), () => null, () => console.warn('DONE-3')
  )
)

version: ^6.5.2

IIRC, add is not a fluent-API-style method. It returns the added subscription; not the subscription it was added to.

Hello! I think this is the expected behavior.
When you do Observable.subscribe(obsever) and the observer is not an instance of Subscriber, a Subscriber instance will be created based on the observer.
With that in mind, here's how I'd visualize your snippet:
timer(3000, 1000).subscribe(
  x => console.log('TIMER-1')
) /* Subscriber#1.add */
.add(
  timer(2000, 1000)
  .pipe(take(1))
  .subscribe(
    x => console.log('TIMER-2'), () => null, () => console.warn('DONE-2')
  )
) /* Subscriber#2.add */
.add(
  timer(0, 1000)
  .subscribe(
    x => console.log('TIMER-3'), () => null, () => console.warn('DONE-3')
  ) /* Subscriber#3 */
)

Each .subscribe() will return a Subscriber instance.
The Subscriber class extends Subscription, which is why you are able to use the add method.
In this case, s1.add(s2), among other things, will return s2, because s2 is an instance of Subscriber.
So, we can simply your snippet like this:
//                       Subscriber2
//                           |
Subscriber1.add(Subscriber2) . add(Subscriber3)

Which can also be seen like this:
S#n - Subscriber#n

    S#1
     |
    S#2
     |
    S#3

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

 S#X
   |
 S#Y

* subscriber X - the parent of subscriber Y
* X._subscriptions = [Y]
* Y.parentOrParents = X

When Subscriber2 completes, it will also unsubscribe, which means that this block of code will eventually be reached.
Remember that Subscriber2._subscriptions = [Subscriber3], so when Subscriber2 unsubscribes, it will call Subscriber3.unsubscribe(), which should explain why TIMER-3 stops when TIMER-2 stops.

@Andrei0872
Thank you for your explanation - very interesting, but to be honest this behaviour is pretty counter-intuitive to me. I would expect combining subscriptions with add to work analogous to combining underlining streams with merge with single subscribe. The current implementation is order dependent and can easily produce race conditions.
Putting aside my expectations, it still seems current behaviour breaks Observable contract: we end up in a situation where a stream is technically dead (timer-3), but whose complete / error callback was not called.

IIRC, add is not a fluent-API-style method. It returns the added subscription; not the subscription it was added to.

Oh this is bit unfortunate.

Putting aside my expectations, it still seems current behaviour breaks Observable contract ...

No, it doesn't break the contract. Subscribers can unsubscribe explicitly and that's what happens here. A subscriber's complete won't be called in that situation. It's behaving as expected.


Revert "[WFLY-13241] Upgrade IronJacamar from 1.4.20.Final to 1.4.21.Final"

Reverts wildfly/wildfly#13167 as it introduces https://issues.redhat.com/browse/WFLY-13340

@maeste @ivassile AIUI there is currently no downstream requirement for 1.4.21 as the WFLY-13340 issue means 1.4.22 is required. So it seems better to move WF back to 1.4.20 until WFLY-13340 is resolved.

@bstansberry  @ivassile yup rigth, @fl4via  is already on top of WFLY-13340, but it's fine to revert to 1.4.20 until it's fixed

Superseded by https://github.com/wildfly/wildfly/pull/13189


[Issue]: stuck at 800x600 resolution after installing rocm

Problem Description
After installing rocm as per the instructions and rebooting, Ubuntu can only display at 800x600 resolution. There is no other display setting available. There's no indication of any error or troubleshooting steps available anywhere in any official documentation.
Running amdgpu-uninstall restores full 4K resolution.
Operating System
Ubuntu 22.04 LTS
CPU
Ryzen 5 5600X
GPU
AMD Radeon RX 7900 XTX
ROCm Version
ROCm 6.0.0
ROCm Component
No response
Steps to Reproduce
Followed instructions to install rocm (https://rocm.docs.amd.com/projects/install-on-linux/en/latest/) and rebooted.
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response

Internal ticket has been created for investigation.

Can you attach a full dmesg? I assume that you're likely running the generic software renderer to display the desktop due to amdgpu failing to init

@askAvoid, can you pls attach a full dmesg?  Thanks.


Quick spelling update

Hello solomonkinard!
Thanks for the PR but sadly I don't feel I can merge this change.
The file you have modified is copied from the vscode git extension and I don't know how the MIT license really interacts with changes made to the file-content downstream.
If you want the error corrected please reach out to the vscode team and I can copy the new version at a later date.


List published data on homepage

From Taylor:

We want to be able to show how much work we are doing to create and publish data... having a page with all data sets listed would be helpful internally for me, but also would be useful for sharing externally as a way of publicizing all our efforts. Automatic would be great, but an easy manual process would be fine too for the time being
We are going to be contacting more agencies soon about creating flex data for them and I would really like to be able to include a link so they can see how we are publishing data.

For now we can just edit the HTML by hand to list each file.

Basic table is published.


[BOUNTY] Fuel - Build a dApp with Sway🌴 for a chance to win $1,000€

Fuel - Build a dApp with Sway🌴 for a chance to win $1,000€
Fuel is the fastest execution layer for the modular blockchain stack that delivers maximum security and the highest flexible throughput for decentralized applications.
Sway, the language you will need to use for this bounty is a DSL Inspired by Rust and Move, designed from the ground up to target the Fuel Virtual Machine.
How to qualify? ☑
For this bounty, you must build a dApp using the Sway language.
You must post a link to your devpost submission as a comment to this issue before the hackathon deadline (Sun, Sep 19, 11 AM Berlin time).
If you don't know what to build, here are some ideas:
• Games;
• DeFi Projects (Uniswap V3, Flash loans, a collateralized stablecoin, etc.);
• Generic factories;
• Oracles;
Additional Resources 🌐
⚡ Understand Fuel's vision: Introducing Fuel, the Fastest Modular Execution Layer.
You can begin playing around with Sway by installing Fuelup, the Fuel toolchain manager:
curl --proto '=https' --tlsv1.2 -sSf https://fuellabs.github.io/fuelup/fuelup-init.sh | sh
If you have any questions, you can find technical support at the venue itself, or ask on our Discord server.
🔗 Website: Fuel.network
🐥 Twitter: Sway, Fuel
📖 The Sway Book
Judging Criteria ⚖

Your project must be built with Sway.
Your project must show creativity.
Your code quality will be taken into consideration.
The security of your protocol / App will be analyzed.

Prize 🏆
The winner will receive a 1,000€ prize (paid in stablecoin).

Hola
we are using Fuel and Sway.
We do loyalityprograms like starbuck coffee stambs but cool
GitHubRepo-Link
Nobody like to read, here is a Video Youtube
We gave our best and Matte was such a great lightbringer, but in the end we didn't managed to make full integration.
But we learned a lot and its was great fun.
Cheers :))

Hey! I used Fuel and Sway for my NFT marketplace, Thunder.
Thunder allows user to create their own NFTs on Fuel and list them on the marketplace.
Here is Github link for the project:
https://github.com/meliksahgurtemel/Thunder
and here is the Devfolio submission:
https://devfolio.co/projects/thunder-a014


feat: add fusion-endpoint and IT tests

Connected with: https://github.com/vaadin/hilla/issues/208
DO NOT SQUASH

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.6 out of 11 committers have signed the CLA.:white_check_mark: Lodin:white_check_mark: Artur-:white_check_mark: haijian-vaadin:white_check_mark: platosha:white_check_mark: ZheSun88:white_check_mark: manolo:x: jojule:x: mshabarov:x: Johannes Eriksson:x: caalador:x: mcollovatiJohannes Eriksson seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

@platosha, I have have gone through changed and known files. Are there something to check in the fusion endpoint and IT test files? Or you just copied them as is?

Copied as is. There are few changes to formatting, and some pom.xml changes, otherwise the content is the same.


Topics for Wednesday 11 September 2024

Topics

[ ] First days of each period

[ ] First day of the year for each CPM
[ ] ~First day of each month (or year?) for HADs~ should only apply to CPM due to 360 days

[ ] Including hads prior to December 1980
[ ] Documentation #161
[x] Licensing for python-cmethods fork: #157
[ ] Merge #152 ?
[ ] Update

[ ] Tickets?
[ ] Milestones?

I will follow up on #157 as discussed.

@andrewphilipsmith: regarding #157 see #164

Meeting and initial actions complete.

Meeting and initial actions complete.


Use template-literal instead of EJS

Template Literal is fastest, smallest and simplest template engine, because it use JS's literal template feature.
It's  55 times faster than EJS, and it also use less CPU and RAM ressources, so it may be a good idea to use it instead of EJS 😀

Nice, we will definitely take a look.
Thanks ;)


Offline GPS not working

GPS is working only with wifi enabled, but on offline maps not working. Tried few apps.
Galaxy S2 I9100

Which of the checkboxes not checked in the Self-Check?

Only this one

What ROM are you using, what version of Android, and how did you install microG? Your built-in system location provider may be needed an may have been deleted. Or, you could try an xPosed UnifiedNlp module to get it working - I had to use XposedGmsCoreUnifiedNlp.
What are you using to test GPS? Can you see if the app GPS Test Plus shows anything?

I have NeatROM based on android 4.1.2
https://microg.org/download.html
Downloaded from here com.google.android.gms and pasted it to system\apps
Then installed some addons from F-Droid Like mozilla

Have you grabbed any logcats? I used the "Logcat Reader" app and it help tremendously to get things working on my device and find permission problems. Was GPS working on your ROM before installing microG?
Also, there is a zip installer for microG that @ale5000 was nice enough to make that you might want to take a look at.
 It made the mistake of just installing it without reading too much and it broke a whole bunch of stuff on my phone when it overwrote my privapp-permissions-google.xml file (newer Android OS's) and deleted my stock location provider which is needed on some devices in conjunction with microG. I ended up modifying the zip file a bit to my liking.
Anyhow, you can read through those two scripts real easily and see if you have everything right.
Also, I would grab the latest microG, which has a -4 at the end.

Its working in offline fine with google play services.
Theres no any logs on logcat.

This issue was closed, but isn't it still a bug?  I don't use GPS features myself, but workaround sounds odd.  Why would wifi need to be enabled (but not connected) to use offline GPS?

This issue was closed, but isn't it still a bug? I don't use GPS features myself, but workaround sounds odd. Why would wifi need to be enabled (but not connected) to use offline GPS?

Depends on the back end, but network location based providers need to be able to see what networks (WiFi, etc.) are in the area to determine where the phone is. This is very true of the local WiFi backend and for Déjà Vu. It has been a while since I read through the code for the Apple and Mozilla backends, but my recollection is they work mainly off of what WiFi networks are in the area too, they just need an external server available as well.
With respect to why GPS needs a network based location to work. . . This is less clear but I think it comes down to having a half way decent guess on location to start with helps in GPS acquisition. In theory, the GPS should acquire regardless. But if you have no rough location guess and can't get current satellite orbit data over the Internet ("assisted" GPS) then your GPS receiver may have to listen for the orbit data which can take 10 or 12 minutes if there is no data error on the weak signal. If there is a data error it can take much longer. I am not sure if that is also true of non-US satellite position systems (GLONASS, Galileo, etc.) but if your phone is GPS only then it is definitely true.

I have noticed my i9100 have problems even with google play services to get location in offline mode.
Enabled wifi doest change anything.


How to filter genotype RDD with FeatureRDD

Hi,
How can I filter a genotypeRDD with a FeatureRDD?  I get the following error:
(BroadcastRegionJoin.partitionAndJoin(genes, humanGenotypesRDD).map(_._2))
<console>:39: error: type mismatch;
 found   : org.apache.spark.rdd.RDD[org.bdgenomics.formats.avro.Feature]
 required: org.apache.spark.rdd.RDD[(org.bdgenomics.adam.models.ReferenceRegion, ?)]
              (BroadcastRegionJoin.partitionAndJoin(genesRDD, genotypesRDD).map(_._2))

with this code:
import org.bdgenomics.adam.rdd.ADAMContext
import org.bdgenomics.formats.avro._
import org.bdgenomics.adam.rdd.ADAMContext._
import org.bdgenomics.adam.rdd.BroadcastRegionJoin
import org.bdgenomics.adam.rdd.ADAMContext._

 # Load the genotype RDDs using the AdamContext
val ac = new ADAMContext(sc)
val genotypesRDD = ac.loadGenotypes("/user/ec2-user/1kg/chr22.adam")

val genesRDD = ac.loadFeatures("/user/ec2-user/1kg/gene_annotation.adam")

# based on example from Spark Analytics book (page 213 bottom)
genotypesInGenesRdd = (BroadcastRegionJoin.partitionAndJoin(genesRDD , genotypesRDD).map(_._2))

Do I need to convert the genotypeRDD and FeatureRDD to a ReferenceRegionRDD ? Is this an implicit conversion done automatically by importing a certain class?
Thank you,
Neill

Hi @NeillGibson!
You'll need to key each RDD with a ReferenceRegion, e.g.:
import org.bdgenomics.adam.models.ReferenceRegion
genotypesInGenesRdd = (BroadcastRegionJoin.partitionAndJoin(genesRDD.keyBy(ReferenceRegion(_) , genotypesRDD.keyBy(g => ReferenceRegion(g.getVariant.getContig.getContigName, g.getVariant.getStart, g.getVariant.getEnd))).map(_._2))

Hi @fnothaft . Thank you for the information, needed to move some parentheses but the command starts to execute.
val genotypesInGenesRDD = (BroadcastRegionJoin.partitionAndJoin(genesRDD.keyBy(ReferenceRegion(_)),genotypesRDD.keyBy(g => ReferenceRegion(g.getVariant.getContig.getContigName,g.getVariant.getStart, g.getVariant.getEnd)))).map(_._2)

Tasks of the operation keep failing thoug and keep being resubmitted:
15/12/01 07:57:24 WARN TaskSetManager: Lost task 6.0 in stage 3.1 (TID 170, ip-10-1-1-205.eu-west-1.compute.internal): java.io.IOException: Failed to connect to ip-10-1-1-193.eu-west-1.compute.internal/<IP_ADDRESS>:40751
15/12/01 07:58:24 WARN TaskSetManager: Lost task 6.1 in stage 3.1 (TID 171, ip-10-1-1-209.eu-west-1.compute.internal): java.io.IOException: Failed to connect to ip-10-1-1-191.eu-west-1.compute.internal/<IP_ADDRESS>:57895
15/12/01 08:40:16 WARN TaskSetManager: Lost task 21.1 in stage 4.1 (TID 300, ip-10-1-1-209.eu-west-1.compute.internal): FetchFailed(null, shuffleId=1, mapId=-1, reduceId=22, message=
org.apache.spark.shuffle.MetadataFetchFailedException: Missing an output location for shuffle 1
15/12/01 08:40:16 WARN TaskSetManager: Lost task 44.0 in stage 4.1 (TID 307, ip-10-1-1-209.eu-west-1.compute.internal): FetchFailed(null, shuffleId=1, mapId=-1, reduceId=45, message=
org.apache.spark.shuffle.MetadataFetchFailedException: Missing an output location for shuffle 1

15/12/01 09:04:43 INFO DAGScheduler: Resubmitting ShuffleMapStage 3 (flatMap at BroadcastRegionJoin.scala:117) because some of its tasks had failed: 0, 1, 2, 4, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 45, 47, 48, 49, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 67, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 81, 82, 83
15/12/01 09:04:43 INFO DAGScheduler: Submitting ShuffleMapStage 3 (MapPartitionsRDD[13] at flatMap at BroadcastRegionJoin.scala:117), which has no missing parents

Is this by any chance a very resource intensive operation? I am running this on 11 m3.xlarge machines.  Or is there another likely cause for  the taks that keep failing / being resubmitted. In the end I just aborted the process.
The annoation file that I am using is
ftp://ftp.sanger.ac.uk/pub/gencode/Gencode_human/release_18/gencode.v18.annotation.gtf.gz

(removed the chr from the chromosome names to match the chromosome names in the 1000 genomes vcf file)

It shouldn't be terribly expensive, however you may want to try running the ShuffleRegionJoin instead of the BroadcastRegionJoin. I'll need to look over the GTF loading code, but I'm not sure off of the top of my head whether that code maps each feature in a GTF to a Feature object, or just the Gene/Transcript. The reason I'm concerned about that is that if you have just genes as Features, you'll have an RDD of O(20k) Features, while if you have all GTF features (gene, transcript, exon, intron, cds, etc), it could be several orders of magnitude bigger and thus might not fit on the driver, which would cause the BroadcastRegionJoin to fail where the ShuffleRegionJoin would succeed. That being said, I'm a bit skeptical of that as the problem. Are you joining against the whole 1000Genomes variant calls? I can try to repro this on my side.

Hi @fnothaft. Thank you for the information. I can try to increase the driver memory and the ShuffleRegionJoin.
The vcf file I am testing with is
s3://1000genomes/release/20130502/ALL.chr22.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz
This is based on the b37 assembly
Some searching online led me to this gene annotation file (the previous one mentioned is for an older genome build).
ftp://ftp.sanger.ac.uk/pub/gencode/Gencode_human/release_18/gencode.v18.annotation.gtf.gz
This is based on the GRCh37 which is the same as b37, just with chr in front of the chromosome names (fixed this with sed).
The basic thing I am trying to achieve is just to see how long it takes with Adam to filter a large set of genotypes based on a gene model. It doesn't need to be this exact gene model, or this detailed of a gene model. If you have a gene model which is compatible with the 1000 genomes data I would be happy to use that one.
I am only using chr22 because the full data set is much bigger. Queries with just chr22 already take some time.  And I have other queries that I've tested on chr22. I'll filter the gene model (gtf file) also for just the chr22  gene annotations, before converting to Feature format.
I will post my results here after testing with the correct genome build and the increased driver memory and or ShuffleRegionJoin method.

Hi @fnothaft,
Increasing the driver memory from 8 to 14 GB (is max machine mem) did not help. Still the same errors.
I am now trying to use the ShuffleRegionJoin to filter the genotypeRDD with the FeatureRDD.

import org.bdgenomics.formats.avro._
import org.bdgenomics.adam.rdd.ADAMContext._
import org.bdgenomics.adam.models.{
ReferencePosition,
ReferenceRegion,
SequenceDictionary,
SequenceRecord,
VariantContext
}

import org.bdgenomics.adam.rdd.ShuffleRegionJoin

# Load the genotype RDDs using the AdamContext
val genotypesRDD = sc.loadGenotypes("/user/ec2-user/1kg/chr22.adam")

# Load GRCh37 / hg19 / b37 gene annotation
val genesRDD = sc.loadFeatures("/user/ec2-user/1kg/gene_annotation.adam")

# create sequence dictionary
val seqDict = SequenceDictionary( SequenceRecord("22", 51304566, url = "test://chrom1"))
val partitionSize = 20

val genotypesInGenesRDD = (ShuffleRegionJoin(seqDict, partitionSize).partitionAndJoin(genesRDD.keyBy(ReferenceRegion(_)),humanGenotypesRDD.keyBy(g => ReferenceRegion(g.getVariant.getContig.getContigName,g.getVariant.getStart, g.getVariant.getEnd)))).map(_._2).count

On what should I base the partitionSize? If I set this to 3 (example that I found in Adam test forShuffleRegionJoin ) or 11 (number of nodes) I get an out of memory error.
15/12/06 08:06:00 WARN TaskSetManager: Lost task 10.0 in stage 2.0 (TID 22, ip-10-1-1-204.eu-west-1.compute.internal): java.lang.OutOfMemoryError: Java heap space
If I set partitionSize to 100 I get a lot of small tasks. And processing takes a long time, I did not wait for it to finish.
Do you maybe have an example somewhere with a public vcf file and feature file of real sizes that works, ie the filter a genotypeRDD with BroadCastRegoinJoin or ShuffleRegionJoin. I could then look if I can run that example.
Maybe the issue is just with my gene annotation file.....

@devin-petersohn Can you take this as part of #1324? I think that all that is needed to resolve this issue is to:

[ ] Add a unit test demonstrating how to do this exact join.
[ ] Add docs demonstrating this join to the region join Pandocs.

I'm assigning it to you for now; let me know if you'd rather not.

This will be a part of set difference implemented in #1561.

Ping @devin-petersohn; can you put together a small doc snippet for this?

I describe something similar here
https://github.com/SVAI/UTC-0500#interactive-genomic-region-joins-in-adam-shell
The gene feature ADAM file came from Ensembl and was filtered via
val features = sc.loadFeatures("Homo_sapiens.GRCh38.89.chr.gff3.gz")
val geneFeatures = features.transform(_.filter(f => f.featureType == "gene"))
geneFeatures.saveAsParquet("Homo_sapiens.GRCh38.89.chr.geneFeatures.adam")

I am adding multiple additional examples for various things one could do with joins. I should have a PR in tonight. It didn't seem right to simply have the one real-world example.


Cross-signing not trusted if no message is sent to the device that made the bootstrap

bootstrap / reset cross-signing on DeviceA. (DeviceB sees cross-signing is up but not trusted)
Self-verify DeviceA and DeviceB
-> DeviceB still does not trust cross-signing

Send a message in an e2e room and DeviceB will trust the cross-signing.

Same issue as  #3102


only hits experimental endpoints for HTTP routes

This only does CRUD on the HTTP route endpoints. There is no way to get the TCP routes from CLI.

@jtarchie :
Thank you filing this issue. I agree that rtr CLI serves pretty minimal set of features but CF CLI has support for creating, listing and deleting TCP routes. Any reason to use rtr CLI instead of CF CLI?
Regards
Shash

@jtarchie We do not intend to add more functionality to the rtr CLI in the near term. Closing this issue for now, since it's been open for a year without much activity.


i can't use "Search" button

i can't use "Search" when i use Order by Download: = Most Download and least Download without fill another filter

Thanks you for your observation.
I will looking into it.

Right now our application doesn't have a download feature.
The file data is connect with Firebase and it pretty hard to get it when download it got a .html file instead.


Week 2: Review Ticket

InfoDb Work
Custom Favicon (Look at website tab)
Table
Vocab Page
Darkmode Proof:

2.9
Added favicon
Played around with the theme and the background
Completed all tasks

2.9+

Completed all required tasks
changed his theme and added a new favicon
made a weekly update table and added to his vocab

2.9+

tasks completed
theme is visually appeasing
Made a cool background picture effect which shows personalization/creativity


--preview-dart-2 type error

follow up to #32195
NextActionHandler loggingMiddleware<
            State extends Built<State, StateBuilder>,
            StateBuilder extends Builder<State, StateBuilder>,
            Actions extends ReduxActions>(
        MiddlewareApi<State, StateBuilder, Actions> api) =>
    (next) => (a) {
          new Logger('rx.logging_middleware ${a.name}')
            ..fine('')
            ..finer(a.payload is SecuritySensitive
                ? ' == security sensitive information omitted == '
                // `.toString()` is required for Thunk where payload is a function
                : (a.payload as Object).toString());
          next(a);
        };

is passed to https://github.com/davidmarne/built_redux/blob/master/lib/src/store.dart#L29
using
class RxStore extends Store<RxApp, RxAppBuilder, RxAppActions> {
  RxStore(
      {Reducer reducer,
      RxApp defaultState,
      RxAppActions actions,
      Iterable<Middleware<RxApp, RxAppBuilder, RxAppActions>> middleware})
      : super((reducer ?? RxApp.reducer().build()) as Reducer,
            defaultState ?? new RxApp(), actions ?? new RxAppActions(),
            middleware:
                middleware ?? [loggingMiddleware]);
}

at https://github.com/davidmarne/built_redux/blob/master/lib/src/store.dart#L54
Iterable<NextActionHandler> chain = middleware.map((m) => m(api));

and then chain.toList() causes
type '(MiddlewareApi<RxApp, RxAppBuilder, RxAppActions>) => ((Action) => void) => (Action) => void' is not a subtype of type '(MiddlewareApi) => ((Action) => void) => (Action) => void' of 'm'

I haven't found anything where MiddlewareApi was used without type parameters.

@zoechi I can't figure this one out based just on this information. Is it possible to create a repro?

Sure, should be possible. Thanks for having a look

@zoechi You can try to narrow it down by looking at sprinkling few debug prints.
print(middleware.runtimeType);
for (dynamic x in middleware) {
  print("--- ${x.runtimeType}");
}
List<NextActionHandler> chain = middleware.map<NextActionHandler>((m) => m(api)).toList();

in RxStore you can add also some
  RxStore(
      {Reducer reducer,
      RxApp defaultState,
      RxAppActions actions,
      Iterable<Middleware<RxApp, RxAppBuilder, RxAppActions>> middleware})
      : super((reducer ?? RxApp.reducer().build()) as Reducer,
            defaultState ?? new RxApp(), actions ?? new RxAppActions(),
            middleware:
                middleware ?? [loggingMiddleware]) {
    print("RxStore(${middleware.runtimeType}, ${this.middleware.runtimeType})");
  }

What happens if you alter the code like this?

[ +429 ms] I/flutter ( 4052): List<(MiddlewareApi<RxApp, RxAppBuilder, RxAppActions>) => ((Action) => void) => (Action) => void>
[        ] I/flutter ( 4052): --- (MiddlewareApi<RxApp, RxAppBuilder, RxAppActions>) => ((Action) => void) => (Action) => void
[+16123 ms] I/flutter ( 4052): --- (MiddlewareApi<RxApp, RxAppBuilder, RxAppActions>) => ((Action) => void) => (Action) => void
[+15729 ms] I/flutter ( 4052): 0 2018-02-20 07:17:15.737380 SEVERE lookatmybaby_flutter.sentry_error_reporter:
[        ] I/flutter ( 4052):     error: type '(MiddlewareApi<RxApp, RxAppBuilder, RxAppActions>) => ((Action) => void) => (Action) => void' is not a subtype of type '(MiddlewareApi) => ((Action) => void) => (Action) => void' of 'm'
[   +1 ms] I/flutter ( 4052): #0      new Store.<anonymous closure> (package:built_redux/src/store.dart)
[        ] I/flutter ( 4052): #1      MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29)
[        ] I/flutter ( 4052): #2      ListIterable.reduce (dart:_internal/iterable.dart:181:15)
[        ] I/flutter ( 4052): #3      new Store (package:built_redux/src/store.dart:62:52)
[        ] I/flutter ( 4052): #4      new RxStore (package:lookatmybaby_shared/src/client/state/app.dart)
[        ] I/flutter ( 4052): #5      initAndRunApp (package:lookatmybaby_flutter/app.dart:31:21)
[        ] I/flutter ( 4052): <asynchronous suspension>
[        ] I/flutter ( 4052): #6      main.<anonymous closure> (file:///Users/zoechi/dart/customers/lookatyou/lookatmybaby/lookatmybaby_flutter/lib/main_zoechi.dart:19:9)
[        ] I/flutter ( 4052): #7      _rootRun (dart:async/zone.dart:1126:13)
[        ] I/flutter ( 4052): #8      _CustomZone.run (dart:async/zone.dart:1023:19)
[        ] I/flutter ( 4052): #9      runZoned (dart:async/zone.dart:1490:19)
[        ] I/flutter ( 4052): #10     main (file:///Users/zoechi/dart/customers/lookatyou/lookatmybaby/lookatmybaby_flutter/lib/main_zoechi.dart:16:3)
[        ] I/flutter ( 4052): #11     _startIsolate.<anonymous closure> (dart:isolate/isolate_patch.dart:279:19)
[        ] I/flutter ( 4052): #12     _RawReceivePortImpl._handleMessage (dart:isolate/isolate_patch.dart:165:

The exception is thrown in the constructor of Store so the constructor body of RxStore is not executed

The code is in a shared package that I use in a Flutter project.
When I tried to create a reproduction I created a new project and copied the code I thought was relevant. I couldn't reproduce.
Then I added a Flutter project and invoked it from there but still can't reproduce.
Now I added a bin/main.dart to my shared package and I also can't reproduce.
But it looks like something in my Flutter project triggers it.

When I run it from bin/main it prints
List
--- (MiddlewareApi) => ((Action) => void) => (Action) => void
--- (MiddlewareApi) => ((Action) => void) => (Action) => void

Dart VM version: 2.0.0-dev.26.0 (Thu Feb 15 03:06:13 2018 +0100) on "macos_x64"

When I run it from command line with
dart --preview-dart-2 --reify-generic-functions bin/main.dart

I get

List
--- <State extends Built<State, StateBuilder>, StateBuilder extends Builder<State, StateBuilder>, Actions extends ReduxActions>(MiddlewareApi<State, StateBuilder, Actions>) => ((Action) => void) => (Action) => void
--- <State extends Built<State, StateBuilder>, StateBuilder extends Builder<State, StateBuilder>, Actions extends ReduxActions>(MiddlewareApi<State, StateBuilder, Actions>) => ((Action) => void) => (Action) => void
could there be another option that is used in my Flutter project?
Why is it not used in the new Flutter project?

With
dart --preview-dart-2 --reify bin/main.dart

I get
List
--- (MiddlewareApi) => ((Action) => void) => (Action) => void
--- (MiddlewareApi) => ((Action) => void) => (Action) => void

Can you do this for me:

Run your Flutter application (version that causes failures);
Locate '*.dill' file in the folder (might be located in build folder or somewhere else) find . -iname '*.dill'
Dump it using https://github.com/dart-lang/sdk/blob/master/pkg/kernel/bin/dump.dart.

$ pub global activate kernel
$ pub global run kernel:dump xyz.dill xyz.txt

The open xyz.txt, locate the Store class and post the whole thing here.
I feel like we need to verify what type inference inferred.

It doesn't create the file
 (rxdart_2) $ pub global run kernel:dump main_zoechi.dart.dill xyz.txt
Unhandled exception:
RangeError (index): Invalid value: Valid value range is empty: 76
#0      List.[] (dart:core-patch/dart:core/array.dart:10)
#1      BinaryBuilder.readCanonicalNameReference (package:kernel/binary/ast_from_binary.dart:288)
#2      BinaryBuilder.readLibrary (package:kernel/binary/ast_from_binary.dart:329)
#3      BinaryBuilder._readOneProgram (package:kernel/binary/ast_from_binary.dart:259)
#4      BinaryBuilder.readProgram (package:kernel/binary/ast_from_binary.dart:220)
#5      loadProgramFromBinary (package:kernel/kernel.dart:27)
#6      main (file:///Users/zoechi/.pub-cache/hosted/pub.dartlang.org/kernel-0.2.0/bin/dump.dart:9)
#7      _startIsolate.<anonymous closure> (dart:isolate-patch/dart:isolate/isolate_patch.dart:277)
#8      _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)

Hmm. Can you trying doing an AOT build of your application, via flutter build aot and then trying to dump it again?

That doesn't seem to produce a *.dill file
Previously I run it from IntelliJ's debugger. When I just run it from IntelliJ (without the debugger) I get the same error output as above

I meant flutter build aot --preview-dart-2 sorry for the confusion.

Sorry, stupid me :-/ Forgot it because it is applied automatically in the run configuration when run from IntelliJ
Now I get
(rxdart_2) $ pub global run kernel:dump lib/main_zoechi.dart.dill xyz.txt
Unhandled exception:
RangeError (index): Invalid value: Valid value range is empty: 93
#0      List.[] (dart:core-patch/dart:core/array.dart:10)
#1      BinaryBuilder.readCanonicalNameReference (package:kernel/binary/ast_from_binary.dart:288)
#2      BinaryBuilder.readLibrary (package:kernel/binary/ast_from_binary.dart:329)
#3      BinaryBuilder._readOneProgram (package:kernel/binary/ast_from_binary.dart:259)
#4      BinaryBuilder.readProgram (package:kernel/binary/ast_from_binary.dart:220)
#5      loadProgramFromBinary (package:kernel/kernel.dart:27)
#6      main (file:///Users/zoechi/.pub-cache/hosted/pub.dartlang.org/kernel-0.2.0/bin/dump.dart:9)
#7      _startIsolate.<anonymous closure> (dart:isolate-patch/dart:isolate/isolate_patch.dart:277)
#8      _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)

✓] Flutter (on Mac OS X 10.13.3 17D47, locale en-AT, channel dev)
    • Flutter version 0.1.2 at /Users/zoechi/flutter/flutter
    • Framework revision 8a65872ef9 (6 days ago), 2018-02-13 23:32:28 -0800
    • Engine revision 05c5f817eb
    • Tools Dart version 2.0.0-dev.22.0
    • Engine Dart version 2.0.0-edge.3c4dccbd46f152be9e1b6ca95c57357e8e48057c

lass RxStore extends sto3::Store<sto::RxApp, sto::RxAppBuilder, app8::RxAppActions> {
    constructor •({(sto::RxApp, act2::Action<dynamic>, sto::RxAppBuilder) → void reducer = null, sto::RxApp defaultState = null, app8::RxAppActions actions = null, core::Iterable<(mid::MiddlewareApi<sto::RxApp, sto::RxAppBuilder, app8::RxAppActions>) → ((act2::Action<dynamic>) → void) → (act2::Action<dynamic>) → void> middleware = null}) → void
      : super sto3::Store::•(let final (sto::RxApp, act2::Action<dynamic>, sto::RxAppBuilder) → void #t4247 = reducer in #t4247.==(null) ?{(sto::RxApp, act2::Action<dynamic>, sto::RxAppBuilder) → void} sto::RxApp::reducer().{red::ReducerBuilder::build}() as{TypeError} (sto::RxApp, act2::Action<dynamic>, sto::RxAppBuilder) → void : #t4247, let final sto::RxApp #t4248 = defaultState in #t4248.==(null) ?{sto::RxApp} sto::RxApp::•() : #t4248, let final app8::RxAppActions #t4249 = actions in #t4249.==(null) ?{app8::RxAppActions} app8::_$RxAppActions::•() : #t4249, middleware: let final core::Iterable<(mid::MiddlewareApi<sto::RxApp, sto::RxAppBuilder, app8::RxAppActions>) → ((act2::Action<dynamic>) → void) → (act2::Action<dynamic>) → void> #t4250 = middleware in #t4250.==(null) ?{core::Iterable<(mid::MiddlewareApi<sto::RxApp, sto::RxAppBuilder, app8::RxAppActions>) → ((act2::Action<dynamic>) → void) → (act2::Action<dynamic>) → void>} <(mid::MiddlewareApi<sto::RxApp, sto::RxAppBuilder, app8::RxAppActions>) → ((act2::Action<dynamic>) → void) → (act2::Action<dynamic>) → void>[log3::loggingMiddleware<sto::RxApp, sto::RxAppBuilder, app8::RxAppActions>, err3::errorReporterMiddleware<sto::RxApp, sto::RxAppBuilder, app8::RxAppActions>] : #t4250)
      ;
    abstract forwarding-stub method replaceState(generic-covariant-impl sto::RxApp state) → void;
    abstract forwarding-stub set _state(generic-covariant-impl sto::RxApp _) → void;
    abstract forwarding-stub set _actions(generic-covariant-impl app8::RxAppActions _) → void;
  }

ibrary from "package:built_redux/src/store.dart" as sto3 {
  import "dart:async";
  import "dart:core";
  import "package:built_value/built_value.dart";
  import "package:built_redux/src/action.dart";
  import "package:built_redux/src/middleware.dart";
  import "package:built_redux/src/typedefs.dart";
  import "package:built_redux/src/store_change.dart";
  class Store<State extends bui::Built<sto3::Store::State, sto3::Store::StateBuilder>, StateBuilder extends bui::Builder<sto3::Store::State, sto3::Store::StateBuilder>, Actions extends act2::ReduxActions> extends core::Object {
    final field asy::StreamController<sto4::StoreChange<sto3::Store::State, sto3::Store::StateBuilder, dynamic>> _stateController = asy::StreamController::broadcast<sto4::StoreChange<sto3::Store::State, sto3::Store::StateBuilder, dynamic>>();
    generic-covariant-impl generic-covariant-interface field sto3::Store::State _state = null;
    generic-covariant-impl generic-covariant-interface field sto3::Store::Actions _actions = null;
    constructor •((sto3::Store::State, act2::Action<dynamic>, sto3::Store::StateBuilder) → void reducer, sto3::Store::State defaultState, sto3::Store::Actions actions, {core::Iterable<(mid::MiddlewareApi<sto3::Store::State, sto3::Store::StateBuilder, sto3::Store::Actions>) → ((act2::Action<dynamic>) → void) → (act2::Action<dynamic>) → void> middleware = const <(mid::MiddlewareApi<core::Object, core::Object, core::Object>) → ((act2::Action<dynamic>) → void) → (act2::Action<dynamic>) → void>[]}) → void
      : super core::Object::•() {
      this.{sto3::Store::_state} = defaultState;
      this.{sto3::Store::_actions} = actions;
      final mid::MiddlewareApi<sto3::Store::State, sto3::Store::StateBuilder, sto3::Store::Actions> api = new mid::MiddlewareApi::•<sto3::Store::State, sto3::Store::StateBuilder, sto3::Store::Actions>(this);
      (act2::Action<dynamic>) → void handler = (act2::Action<dynamic> action) → core::Null {
        sto3::Store::State state = this.{sto3::Store::_state}.{bui::Built::rebuild}((sto3::Store::StateBuilder b) → void => reducer.call(this.{sto3::Store::_state}, action, b));
        if(this.{sto3::Store::_state}.{core::Object::==}(state))
          return;
        this.{sto3::Store::_stateController}.{asy::StreamController::add}(new sto4::StoreChange::•<sto3::Store::State, sto3::Store::StateBuilder, dynamic>(state, this.{sto3::Store::_state}, action));
        this.{sto3::Store::_state} = state;
      };
      if(middleware.{core::Iterable::length}.{core::num::>}(0)) {
        core::Iterable<((act2::Action<dynamic>) → void) → (act2::Action<dynamic>) → void> chain = middleware.{core::Iterable::map}<((act2::Action<dynamic>) → void) → (act2::Action<dynamic>) → void>(((mid::MiddlewareApi<sto3::Store::State, sto3::Store::StateBuilder, sto3::Store::Actions>) → ((act2::Action<dynamic>) → void) → (act2::Action<dynamic>) → void m) → ((act2::Action<dynamic>) → void) → (act2::Action<dynamic>) → void => m.call(api));
        core::print(middleware.{core::Object::runtimeType});
        for (dynamic x in middleware) {
          core::print("--- ${x.{core::Object::runtimeType}}");
        }
        ((act2::Action<dynamic>) → void) → (act2::Action<dynamic>) → void combinedMiddleware = chain.{core::Iterable::reduce}((((act2::Action<dynamic>) → void) → (act2::Action<dynamic>) → void composed, ((act2::Action<dynamic>) → void) → (act2::Action<dynamic>) → void middleware) → ((act2::Action<dynamic>) → void) → (act2::Action<dynamic>) → void => ((act2::Action<dynamic>) → void handler) → (act2::Action<dynamic>) → void => composed.call(middleware.call(handler)));
        handler = combinedMiddleware.call(handler);
      }
      actions.{act2::ReduxActions::setDispatcher}(handler);
    }
    method dispose() → asy::Future<core::Null> /* originally async */ {
      final asy::Completer<core::Null> :completer = asy::Completer::sync<core::Null>();
      asy::FutureOr<core::Null> :return_value;
      dynamic :async_stack_trace;
      dynamic :async_op_then;
      dynamic :async_op_error;
      dynamic :await_jump_var = 0;
      dynamic :await_ctx_var;
      dynamic :saved_try_context_var0;
      function :async_op([dynamic :result, dynamic :exception, dynamic :stack_trace]) → dynamic yielding
        try {
          #L1776:
          {
            [yield] let dynamic #t6111 = asy::_awaitHelper(this.{sto3::Store::_stateController}.{asy::StreamController::close}(), :async_op_then, :async_op_error, :async_op) in null;
            :result;
            this.{sto3::Store::_state} = null;
            this.{sto3::Store::_actions} = null;
          }
          :completer.{asy::Completer::complete}(:return_value);
          return;
        }
        on dynamic catch(dynamic :exception, dynamic :stack_trace) {
          :completer.{asy::Completer::completeError}(:exception, :stack_trace);
        }
      :async_stack_trace = asy::_asyncStackTraceHelper(:async_op);
      :async_op_then = asy::_asyncThenWrapperHelper(:async_op);
      :async_op_error = asy::_asyncErrorWrapperHelper(:async_op);
      asy::Future::microtask<dynamic>(:async_op);
      return :completer.{asy::Completer::future};
    }
    method replaceState(generic-covariant-impl generic-covariant-interface sto3::Store::State state) → void {
      if(!this.{sto3::Store::_state}.{core::Object::==}(state)) {
        this.{sto3::Store::_stateController}.{asy::StreamController::add}(new sto4::StoreChange::•<sto3::Store::State, sto3::Store::StateBuilder, dynamic>(state, this.{sto3::Store::_state}, new act2::Action::•<core::Null>("replaceState", null)));
        this.{sto3::Store::_state} = state;
      }
    }
    get state() → sto3::Store::State
      return this.{sto3::Store::_state};
    get stream() → asy::Stream<sto4::StoreChange<sto3::Store::State, sto3::Store::StateBuilder, dynamic>>
      return this.{sto3::Store::_stateController}.{asy::StreamController::stream};
    get actions() → sto3::Store::Actions
      return this.{sto3::Store::_actions};
    get nextState() → asy::Stream<sto3::Store::State>
      return this.{sto3::Store::stream}.{asy::Stream::map}<sto3::Store::State>((sto4::StoreChange<sto3::Store::State, sto3::Store::StateBuilder, dynamic> change) → sto3::Store::State => change.{sto4::StoreChange::next});
    method substateStream<Substate extends core::Object>((sto3::Store::State) → sto3::Store::substateStream::Substate mapper) → asy::Stream<typ5::SubstateChange<sto3::Store::substateStream::Substate>>
      return this.{sto3::Store::stream}.{asy::Stream::map}<typ5::SubstateChange<sto3::Store::substateStream::Substate>>((sto4::StoreChange<sto3::Store::State, sto3::Store::StateBuilder, dynamic> c) → typ5::SubstateChange<sto3::Store::substateStream::Substate> => new typ5::SubstateChange::•<sto3::Store::substateStream::Substate>(mapper.call(c.{sto4::StoreChange::prev}), mapper.call(c.{sto4::StoreChange::next}))).{asy::Stream::where}((typ5::SubstateChange<sto3::Store::substateStream::Substate> c) → core::bool => !c.{typ5::SubstateChange::prev}.{core::Object::==}(c.{typ5::SubstateChange::next}));
    method nextSubstate<Substate extends core::Object>((sto3::Store::State) → sto3::Store::nextSubstate::Substate mapper) → asy::Stream<sto3::Store::nextSubstate::Substate>
      return this.{sto3::Store::substateStream}<sto3::Store::nextSubstate::Substate>(mapper).{asy::Stream::map}<sto3::Store::nextSubstate::Substate>((typ5::SubstateChange<sto3::Store::nextSubstate::Substate> change) → sto3::Store::nextSubstate::Substate => change.{typ5::SubstateChange::next});
    method actionStream<Payload extends core::Object>(act2::ActionName<sto3::Store::actionStream::Payload> actionName) → asy::Stream<sto4::StoreChange<sto3::Store::State, sto3::Store::StateBuilder, sto3::Store::actionStream::Payload>>
      return this.{sto3::Store::stream}.{asy::Stream::where}((sto4::StoreChange<sto3::Store::State, sto3::Store::StateBuilder, dynamic> c) → core::bool => c.{sto4::StoreChange::action}.{act2::Action::name}.{core::String::==}(actionName.{act2::ActionName::name})).{asy::Stream::map}<sto4::StoreChange<sto3::Store::State, sto3::Store::StateBuilder, sto3::Store::actionStream::Payload>>((sto4::StoreChange<sto3::Store::State, sto3::Store::StateBuilder, dynamic> c) → sto4::StoreChange<sto3::Store::State, sto3::Store::StateBuilder, sto3::Store::actionStream::Payload> => c as sto4::StoreChange<sto3::Store::State, sto3::Store::StateBuilder, sto3::Store::actionStream::Payload>);
  }
}

Thanks a lot @zoechi for you help. Eventually I managed to repro it locally, issue is in the VM's Kernel to IL translation layer. Fix is in the CQ.

The regression test for this issue is failing on dart2js-with-kernel --strong --minified.  See https://dart-review.googlesource.com/c/sdk/+/42566

The crash info and reproduction command is in the log at
https://logs.chromium.org/v/?s=chromium%2Fbb%2Fclient.dart%2Fdart2js-linux-d8-minified-4-5-be%2F10268%2F%2B%2Frecipes%2Fsteps%2Fdart2js-with-kernel-strong-d8_tests%2F0%2Fstdout
and is (in part):
FAILED: dart2js-d8 release_x64 language_2/vm/regress_32204_test
Expected: Pass
Actual: Crash
Unexpected compile error.
--- Command "dart2js" (took 693ms):
DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart2js --sync-async --generate-code-with-compile-time-errors --test-mode --allow-mock-compilation --categories=all --minify --use-kernel --strong --packages=/b/build/slave/dart2js-linux-d8-minified-4-5-be/build/sdk/.packages /b/build/slave/dart2js-linux-d8-minified-4-5-be/build/sdk/tests/language_2/vm/regress_32204_test.dart --out=/b/build/slave/dart2js-linux-d8-minified-4-5-be/build/sdk/out/ReleaseX64/generated_compilations/dart2js-strong-minified-sdk/tests_language_2_vm_regress_32204_test/out.js
exit code:
-10
stdout:
tests/language_2/vm/regress_32204_test.dart:19:3:
Internal Error: Runtime type information not available for type_variable_local(A.T) in (local(A.#v), local(A.#f)) for j:signature(A_f.$signature).
A(B x) {
^
The compiler is broken.
When compiling the above element, the compiler crashed. It is not
possible to tell if this is caused by a problem in your program or
not. Regardless, the compiler should not crash.
The Dart team would greatly appreciate if you would take a moment to
report this problem at http://dartbug.com/new.
Please include the following information:

the name and version of your operating system,
the Dart SDK build number (2.0.0-edge.4d88a243bd5ce79f6878def216d2be0b6e3b2fd0), and
the entire message you see here (including the full stack trace
below as well as the source location above).
The compiler crashed: Assertion failure: Runtime type information not available for type_variable_local(A.T) in (local(A.#v), local(A.#f)) for j:signature(A_f.$signature).
#0      failedAt (file:///b/build/slave/dart-sdk-linux-be/build/sdk/pkg/compiler/lib/src/diagnostics/invariant.dart:55)
#1      LocalsHandler.readLocal (file:///b/build/slave/dart-sdk-linux-be/build/sdk/pkg/compiler/lib/src/ssa/locals_handler.dart:328)
#2      TypeBuilder.addTypeVariableReference.readAsParameter (file:///b/build/slave/dart-sdk-linux-be/build/sdk/pkg/compiler/lib/src/ssa/type_builder.dart:122)
#3      TypeBuilder.addTypeVariableReference (file:///b/build/slave/dart-sdk-linux-be/build/sdk/pkg/compiler/lib/src/ssa/type_builder.dart:133)
#4      TypeBuilder.analyzeTypeArgument (file:///b/build/slave/dart-sdk-linux-be/build/sdk/pkg/compiler/lib/src/ssa/type_builder.dart:215)
#5      KernelSsaGraphBuilder.buildMethodSignature. (file:///b/build/slave/dart-sdk-linux-be/build/sdk/pkg/compiler/lib/src/ssa/builder_kernel.dart:912)
#6      TypeVariableType.forEachTypeVariable (file:///b/build/slave/dart-sdk-linux-be/build/sdk/pkg/compiler/lib/src/elements/types.dart:338)
#7      FunctionType.forEachTypeVariable. (file:///b/build/slave/dart-sdk-linux-be/build/sdk/pkg/compiler/lib/src/elements/types.dart:523)

Thanks for letting us know - at this time, while we are implementing the 2.0 features, we are tracking all test strong-mode dart2js issues directly in the status files. I'll close this issue to track it all in a single place. Once we ship our 2.0 implementation, we expect we'll start using the issue tracker for remaining bugs.


[Defect] Remove the settings button from home page

Purpose
Remove the settings button from the home page
Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

Pull request checklist
This PR has considered:

[ ] Color Theming
[ ] iOS supported versions (all major versions greater than or equal current target deployment version)
[ ] VoiceOver and Keyboard Accessibility
[ ] Internationalization and Right to Left layouts
[ ] Size classes and window sizes (iPhone vs iPad, notched devices, multitasking, different window sizes, etc)
[ ] View Data Injection
[x] Demo App UI/UX update

What to Check

Before
After

Other Information

from the screenshot, it looks like the entire view shifted to the right a bit. is it an existing issue?

from the screenshot, it looks like the entire view shifted to the right a bit. is it an existing issue?

Yes this is an existing issue in the UI Kit demo. Looks like the horizontal constraints aren't set up properly


Unable to enter maintenace mode periodically

ISSUE TYPE

Bug Report

COMPONENT NAME

Maintenance Mode

CLOUDSTACK VERSION

<IP_ADDRESS>

CONFIGURATION

Advanced Networking
Three KVM Hosts, two of the three hosts run the management servers and database (master/replica).
OS / ENVIRONMENT

Ubuntu 22.04
SUMMARY

When attempting to put hosts into maintenance mode, some instances migrate, but some still remain on the host until it reaches ErrorInMaintenance. When looking at the agent logs on the host that is being vacated, there appears to be no interaction it receives from the management server during these times when an instance is having issues migrating.
Management Server Log snippet:

STEPS TO REPRODUCE

 1. Enter a host into maintenance mode
 2. Wait for status to change into a permanent state.

EXPECTED RESULTS

Host enters into maintenance.

ACTUAL RESULTS

Host enters into ErrorInMaintenance.

@adietrich-ussignal , can you try to migrate the remaining instances manually?
Also can you add a text version of that stacktrace to the ticket, please?

I migrated the remaining instances manually. Interestingly, this issue was reproduced on each of the hosts in my cluster. I then rebalanced the cluster to distribute instances across all hosts. I then re-attempted maintenance mode on each host which completed successfully. It makes me wonder what state the instances were in that could've prevented maintenance mode from working, but allowing individual live migrations to work without issues.

@adietrich-ussignal , I am marking this as unplanned for now. Please add any info that you can, or close the issue if appropriate.


[Spark] Spark supports PARTITION MANAGEMENT

Purpose

Linked feature: close #1584

Tests

org.apache.paimon.spark.SparkReadITCase#testShowPartition
org.apache.paimon.spark.SparkReadITCase#testDropPartition
API and Format

Documentation

@choucmei  Can we separate the SupportsPartitionManagement part currently in SparkTable into an individual class, like PaimonPartitionManagement? And another small ask, can you use scala to implement this ?

@choucmei Can we separate the SupportsPartitionManagement part currently in SparkTable into an individual class, like PaimonPartitionManagement? And another small ask, can you use scala to implement this ?

PaimonPartitionManagement implments SupportsPartitionManagement,then SparkTable extend PaimonPartitionManagement   . Right?

@choucmei if you don't mind, can you apply this patch.
0001-followup-optimize-PaimonPartitionManagementTest.patch

Thanks for the advice.


Default level of logging

Which version of the AzCopy was used?
10.0.8-Preview
Which platform are you using? (ex: Windows, Mac, Linux)
Linux
What command did you run?
azcopy copy --recursive=true "https://...." "https://...."
What problem was encountered?
The current default level of logging is "INFO" which produces unexpectedly huge amounts of logging information: we were copying ~5M files which in turn produced 25GB of log files at which time our disk was full and azcopy aborted :(
Have you found a mitigation/solution?
Mitigation: specify --log-level=ERROR on the command line myself
Proposed solution: default level of logging should be ERROR (not even WARNING). If someone is interested in the nitty gritty details of the copy process, they can specify --log-level themselves and know what awaits them. Producing GBs of log files is not a sensible default!
But even that may not suffice: e.g. after copying 4M files with --log-level=WARNING, I have a 4MB log file (ok), but a 620MB .azcopy/plans directory. Why should I be interested in plans at all?

Hi @arnobf, thanks for reaching out and providing us feedbacks!
The default level was set to "INFO" since the tool is still in preview, and the logs would be really useful if we need to investigate an issue for the customers. You could point the logs to another location through an environment variable setting, please refer to ./azcopy env. We'll definitely change the default logging level once the tool enters GA.
As for the plan files, they maintain the state of the jobs so that you can resume a job if some transfers failed. They also allow the user to query the results of a job. We are planning on adding a command to clean these away if the user no longer wants to keep a record of them. We've also shrunk the size of the plan files.
We are using this issue (#221) to track the associated work items. Please don't hesitate if you have any suggestion! Thanks!

@zezha-msft Thank you for your reply. Glad to hear that in GA the default will be different :)

Why was this closed without any status update?  Is the tool in GA?  Is the default still INFO?

Ah, sorry that wasn't clear. Ze's final paragraph above says that this issue is closed, because everything is discussed in #221 (which remains open).  Effectively this issue here was closed as a duplicate/child of #221.
In order to make sure we can provide detailed support, we have left the default at INFO even though the tool is now GA.
We are actively working on slimming down the worst cause of "log bloat" in INFO mode, and on providing appropriate cleanup capability for log and plan files.  I'm not 100% sure on our long term plan for what the default level should be.  I think we'll re-evaluate after we've done those other work items, and after we've observed how many support cases actually need INFO level, in the first months after GA.


Add animation of adding a task

Now, task is just appearing on the left side of the screen, but it could appear with animation.
e.g. slide from the left side of the screen

Hey @mnosov622 please assign me this issue.


Bug template url gives 404 message

Using Windows 10 and Chrome, in the template for creating a new bug, the link to the guidelines

https://github.com/microsoft/pylance-release/blob/master/TROUBLESHOOTING.md%23filing-an-issue

Takes me to a 404 error with the message

The 'microsoft/pylance-release' repository doesn't contain the 'TROUBLESHOOTING.md#filing-an-issue' path in 'main'.

Thanks. Are you getting to the bug template via the "Pylance: Report Issue..." command in VS Code? I was able to repro the issue that way, but just wanted to confirm that's the scenario you're talking about.

Yes I get it that way . I also get it when I click "New Issue" on (eg) this page, and then "Get Started" next to "Bug Report".

I also get it when I click "New Issue" on (eg) this page, and then "Get Started" next to "Bug Report".

Really? You don't see https://github.com/microsoft/pylance-release/blob/master/TROUBLESHOOTING.md#filing-an-issue with # instead of %23 in that case?

I also get it when I click "New Issue" on (eg) this page, and then "Get Started" next to "Bug Report".

Really? You don't see https://github.com/microsoft/pylance-release/blob/master/TROUBLESHOOTING.md#filing-an-issue with # instead of %23 in that case?
No. I see
https://github.com/microsoft/pylance-release/issues/new?assignees=&labels=&template=bug-report.md&title=

Sorry, I meant the URL in the bug report template:

Ah I understand. Sorry, yes, you're correct. When I click on "Bug Report" in the web page, the text has the hash symbol.
I'm confused by that, because the first time this happened to me, I definitely used the web page as I wasn't aware of the "Report an issue" command in VS Code. I'll keep looking for a repro using the web page, but I guess this still serves as a bug report for the "Report Issue" version.

This issue has been fixed in prerelease version 2022.11.41, which we've just released. You can find the changelog here: CHANGELOG.md


Arr Helper Class - Non-Standard Functionality

Laravel Version: 9.31.0
PHP Version: 8.1.10
Database Driver & Version: PostgreSQL

Description:
Illuminate\Support\Arr class has subtle differences between the add and set method in that one uses references and another does not.
Ideally the way these two methods work should be standardised, since in many cases you do not want to use the return value of Arr::set(), but you need to for Arr::add().
Steps To Reproduce:
use Illuminate\Support\Arr;

$array = [];

/* The array is modified by reference, we do not have to set $array to the return value. */
Arr::set($array, 'test.this.first', 'Hi');

/*
We did not capture the return, but the return value would be:
array(1) {
  ["first"]=>
  string(2) "Hi"
}
*/

/* The array is NOT modified by reference, if we do not set $array to the return value nothing will happen. */
Arr::add($array, 'test.this.second', 'Hello');

var_dump($array);
/*
array(1) {
  ["test"]=>
  array(1) {
    ["this"]=>
    array(1) {
      ["first"]=>
      string(2) "Hi"
    }
  }
}
*/

/* The array is NOT modified by reference, but we capture the return value and override the original array var. */
$array = Arr::add($array, 'test.this.third', 'Good day');

var_dump($array);
/*
array(1) {
  ["test"]=>
  array(1) {
    ["this"]=>
    array(2) {
      ["first"]=>
      string(2) "Hi"
      ["third"]=>
      string(8) "Good day"
    }
  }
}
*/

This seems like a request to change the behavior rather than a real bug. You're free to attempt a PR but only to master as this is a breaking change.


Add configurable html-based language support

I'd like to have class completions within my Django templates (which are basically HTML). I am using another extension for syntax highlight of template parts, but it defines its own language (django-html).
Their docs recommend the following to reenable emmet within the templates:
"emmet.includeLanguages": {
   "django-html": "html"
},

I was hoping you could add something similar, for users to be able to add language identifiers themselves.

Sure! I will look into this.

This will not seen by this extension, therefore, I'll strictly add django HTML.


fix(shape_estimation): preserve irregular large size vehicle detected by camera_lidar_fusion as unknown

Description

Current shape_estimation limits the size of known objects (vehicles) below some threshold and it will ignore some supper large trailer or crane.
Adjust the size threshold to cover such irregular size vehicles might cause the degredation of estimation performance overall.
This PR to reverse such irregular size vehicle as Unknown object.

Related Link
TIER IV INTERNAL LINK
Tests performed
Confirmed by logging_simulator with internal rosbag that the camera_lidar_fusion result of left-side crane detection (/perception/object_recognition/detection/clustering/camera_lidar_fusion/objects) has been improved.

Before change (Green): crane was lost some times
After change (Purple): more stable
Screencast from 2024年03月12日 19時51分17秒.webm

Effects on system behavior

Not applicable.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

Please wait for this to be merged.

LGTM. Please change autoware_launch before merge this.

@YoshiRi Since no shape_estimation releated parameters registered in autoware_launch so It's unneccessary.
BTW, I also tested on CI and confirmed there is no degradation. https://evaluation.tier4.jp/evaluation/reports/0df16ed5-ce10-5bd7-acb5-b8ee07b6e378?project_id=prd_jt
So I will merge this PR.


Adding MNIST-C Dataset to rai_toolbox.datasets

Adding example jupyter notebook as well in progress

@jdoerfler  let me know when this is ready for review

Removed placeholder tutorial .ipynb that we made with intention of first merging the MNIST-C dataset successfully then sprinting out the tutorial/study notebook pitched in the meetings


⚠ Bofrost.at has degraded performance

In d15a8cf, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1400 ms

Resolved: Bofrost.at performance has improved in 9b6509b.


bug: write method is not returning a boolean value

The implementation of the write method is missing a boolean return value indicating the need of drain https://github.com/CodeGenieApp/serverless-express/blob/mainline/src/response.js.
See https://nodejs.org/api/stream.html#writablewritechunk-encoding-callback
'The return value is true if the internal buffer is less than the highWaterMark configured when the stream was created after admitting chunk. If false is returned, further attempts to write data to the stream should stop until the 'drain' event is emitted.'
With newer versions of trpc (11.0.0-rc.419) this leads to a hang. The trpc middleware interprets void as false and waits for the 'drain' event that is never showing up. The lambda runtime is shutting down the event handling with an internal server error.
See https://github.com/trpc/trpc/blob/fbb4a2fb4b71d2f5ab7ee97617d951f3a92517c8/packages/server/src/adapters/node-http/nodeHTTPRequestHandler.ts#L85
In response.js the write method should return true.
See https://github.com/realityfilter/serverless-express-write-bugreport
for a test case.

This might be enough? https://github.com/KATT/serverless-express/commit/9ba260ec7148d81a7caf2db84e62a1ba38b61925


Feature Request: add gunnery skill to npc crew on starships

Since i couldn't even find an acceptable workaround it would be nice to have this. It's strange nobody seems to have an issue with that.
Nearly all Paizo Statblocks for Starships have this skill.

The workaround is piloting ranks. I personally don't like this as a workaround since it's a little confusing and it means you have a somewhat random number for piloting ranks. So I would also like to see gunnery listed as a skill. I would be perfectly happy to see it listed everywhere.

Was added here: https://github.com/wildj79/foundryvtt-starfinder/releases/tag/v0.19.0
PR is mentioned above.
closing now, big thanks to @LebombJames.


PDF Export fails with unknown reason at anything that isn't simple text

For Bug Reports

BookStack Version: 0.21.0
PHP Version: 7.0.28-0ubuntu<IP_ADDRESS> (cli) ( NTS )
MySQL Version: Ver 14.14 Distrib 5.7.22
Linux: Ubuntu Server 16.04 LTS

Expected Behavior
Converted PDF files with images, codeblocks as Export to HTML works without issues.
Current Behavior
Anything beyond headings, bodytext and an image or two fails with "Unknown error", or times out. I've tried it with wkhtmltopdf as well and there's same behaviour.
Steps to Reproduce
Exporting a page to PDF.
Here's the source code of an example of a page that results in unknown error with DomPDF and wkhtmltopdf.
https://pastebin.com/B4RYvSSD

Hi @tdkl,
Thanks for opening this issue and for providing the sample HTML.
During testing I've found DomPDF exports to work okay with your sample but WKHTML exports are indeed failing.
Could you enable debugging on your instance and post the error message shown when this fails? Would be good to know if your error message matches the one I'm seeing.

May be related to #796

Hey @ssddanbrown,
using DomPDF indeed does render this PDF, my mistake. Here's the snip of the log with debug enabled, hope I don't cut anything vital:
/var/www/bookstack/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #68 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #69 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) #70 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request)) #71 /var/www/bookstack/public/index.php(53): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request)) #72 {main} "}  [2018-05-12 12:30:03] production.ERROR: The exit status code '1' says something went wrong: stderr: "Loading pages (1/6) [>                                                           ] 0% [======>                                                     ] 10% [=========================>                                  ] 42% [============================================================] 100% Counting pages (2/6)                                                [============================================================] Object 1 of 1 Resolving links (4/6)                                                        [============================================================] Object 1 of 1 Loading headers and footers (5/6)                                            Printing pages (6/6) [>                                                           ] Preparing [===================>                                        ] Page 1 of 3 [=======================================>                    ] Page 2 of 3 [============================================================] Page 3 of 3 Done                                                                       Exit with code 1 due to network error: ContentNotFoundError " stdout: "" command: /var/www/bookstack/wkhtmltopdf --lowquality --print-media-type '/tmp/knp_snappy5af6de4a055e76.07222461.html' '/tmp/knp_snappy5af6de4a059651.74844259.pdf'. {"userId":3,"email":"tadej<redacted>","exception":"[object] (RuntimeException(code: 0): The exit status code '1' says something went wrong: stderr: \"Loading pages (1/6) [>                                                           ] 0% [======>                                                     ] 10% [=========================>                                  ] 42% [============================================================] 100% Counting pages (2/6)                                                [============================================================] Object 1 of 1 Resolving links (4/6)                                                        [============================================================] Object 1 of 1 Loading headers and footers (5/6)                                            Printing pages (6/6) [>                                                           ] Preparing [===================>                                        ] Page 1 of 3 [=======================================>                    ] Page 2 of 3 [============================================================] Page 3 of 3 Done                                                                       Exit with code 1 due to network error: ContentNotFoundError \" stdout: \"\" command: /var/www/bookstack/wkhtmltopdf --lowquality --print-media-type '/tmp/knp_snappy5af6de4a055e76.07222461.html' '/tmp/knp_snappy5af6de4a059651.74844259.pdf'. at /var/www/bookstack/vendor/knplabs/knp-snappy/src/Knp/Snappy/AbstractGenerator.php:378) [stacktrace] #0 /var/www/bookstack/vendor/knplabs/knp-snappy/src/Knp/Snappy/AbstractGenerator.php(177): Knp\\Snappy\\AbstractGenerator->checkProcessStatus(1, '', 'Loading pages (...', '/var/www/bookst...') #1 /var/www/bookstack/vendor/knplabs/knp-snappy/src/Knp/Snappy/Pdf.php(63): Knp\\Snappy\\AbstractGenerator->generate(Array, '/tmp/knp_snappy...', Array, false) #2 /var/www/bookstack/vendor/knplabs/knp-snappy/src/Knp/Snappy/AbstractGenerator.php(221): Knp\\Snappy\\Pdf->generate(Array, '/tmp/knp_snappy...', Array) #3 /var/www/bookstack/vendor/knplabs/knp-snappy/src/Knp/Snappy/AbstractGenerator.php(242): Knp\\Snappy\\AbstractGenerator->getOutput(Array, Array) #4 /var/www/bookstack/vendor/barryvdh/laravel-snappy/src/PdfWrapper.php(176): Knp\\Snappy\\AbstractGenerator->getOutputFromHtml('<!doctype html>...', Array) #5 /var/www/bookstack/app/Services/ExportService.php(141): Barryvdh\\Snappy\\PdfWrapper->output() #6 /var/www/bookstack/app/Services/ExportService.php(87): BookStack\\Services\\ExportService->htmlToPdf('<!doctype html>...') #7 /var/www/bookstack/app/Http/Controllers/PageController.php(458): BookStack\\Services\\ExportService->pageToPdf(Object(BookStack\\Page)) #8 [internal function]: BookStack\\Http\\Controllers\\PageController->exportPdf('cestni-in\\xC5\\xBEenir...', 'konfiguracija-i...') #9 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array) #10 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction('exportPdf', Array) #11 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Routing/Route.php(212): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(BookStack\\Http\\Controllers\\PageController), 'exportPdf') #12 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Routing/Route.php(169): Illuminate\\Routing\\Route->runController() #13 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): Illuminate\\Routing\\Route->run() #14 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #15 /var/www/bookstack/app/Http/Controllers/Controller.php(44): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #16 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(131): BookStack\\Http\\Controllers\\Controller->BookStack\\Http\\Controllers\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure)) #17 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #18 /var/www/bookstack/app/Http/Middleware/Authenticate.php(48): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #19 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): BookStack\\Http\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #20 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #21 /var/www/bookstack/app/Http/Middleware/Localization.php(33): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #22 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): BookStack\\Http\\Middleware\\Localization->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #23 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #24
Couple questions:

does attaching large images in a Bookstack page influence the success of an PDF export (using both PDF  export engines)? I usually don't resize screenshots and they're properly resized when viewing on the web, also when exporting the HTML,

does the server instance hardware affects export? I use a small VM, 1 core, 512MB RAM (only 2 users on the Bookstack instance, rarely at the same time).

My mistake closing the issue 😇

I have same issue: https://pastebin.com/5B7tTTwF
Some PDF renders ok, some not.
Temporary solution from #796 not worked for me.

Hello,
release v22 with the commit from #796 fixed rendering the above example, thanks !