No such file or directory

No such file or directory
mpi_inf_3dhp/S1/Seq1/annot.mat
mpi_inf_3dhp in google drive has only annots.npz
How can i find annot.mat file ?? @Arthur151

This error occurred when training.

more detail
error in this code dataset/mpi_inf_3dhp.py
annot2 = scio.loadmat(annot_file_path)['annot2']
My dataset
mpi-inf-3dhp
|   |   |-- images
|   |   |-- annots.npz
|   |   |-- cluster_results_noumap_mpiinf_kmeans.npz


Marking items as initially selected is broken when items are replaced (multi-select mode)

Submit an Issue
Here's a codepen that summarizes the problem well with text and the broken code example: https://codepen.io/davidleonard/pen/boqqXG?editors=1011
Expected behavior:

Some items are initially passed into a multi select px-dropdown. The items are marked with "selected" : "true.
The items should be selected the dropdown is first opened 👍
The dropdown is closed
Some new items are passed into the same px-dropdown. The items are marked with "selected": "true".
The new items should be selected when the dropdown re-opened 👎

Actual behavior:
1-4 above are still the same. But 5 fails, and nothing is selected when the dropdown is re-opened.

When initial items are passed into a multi select px-dropdown, and some items have selected:true properties, the items will be marked as selected when the dropdown is opened

Environment (component version number, Browser (including version), operating system, hardware, etc):

Chrome 62
Mac OS X El Capitan

Hmm... 🤔
I think the issue is here: https://github.com/PredixDev/px-dropdown/blob/056043d13f399a6ab8e503796cb597c198e2d3e4/px-dropdown.html#L461
When items are changed, the observer _itemsChanged() is triggered:
https://github.com/PredixDev/px-dropdown/blob/056043d13f399a6ab8e503796cb597c198e2d3e4/px-dropdown.html#L221-L228
And _itemsChanged() calls _updateSelection():
https://github.com/PredixDev/px-dropdown/blob/056043d13f399a6ab8e503796cb597c198e2d3e4/px-dropdown.html#L445-L454
But _updateSelection() only updates the selection if there are no currently selectedValues, which there are. But they're the old ones.
https://github.com/PredixDev/px-dropdown/blob/056043d13f399a6ab8e503796cb597c198e2d3e4/px-dropdown.html#L460-L478
I would pull this out, or just flush the selectedValues at the top of _updateSelection() but I am worried that would have unintended consequences that could break the component for existing customers (e.g. if they update the items, not replace it, should we retain selectedValues).
@randyaskin think you'll know better than I.

Fixed in v4.0.12.


Changing default PV resolution in Recorder app #question

Can anyone please guide me how to adjust the Recorder app to record PV frames at 1344x756 resolution instead of the default (1280x720)
Thank you in advance :)

hello, I think you can try to modify the MediaCaptureInitializationSettings object settings in the function at https://github.com/microsoft/HoloLensForCV/blob/fb8b24deb54d7579695eb68b14c662ddbe76027e/Shared/HoloLensForCV/MediaFrameSourceGroup.cpp#L590 and refer to this page https://docs.microsoft.com/en-us/uwp/api/windows.media.capture.mediacaptureinitializationsettings?view=winrt-18362 for the class. I think one of those media description properties is the one you are looking for.

found it!
the GetSubtypeForFrameReader method gets a subtype of supported formats and returns first result
https://github.com/microsoft/HoloLensForCV/blob/fb8b24deb54d7579695eb68b14c662ddbe76027e/Shared/HoloLensForCV/MediaFrameSourceGroup.cpp#L507-L510
I changed line 510 to only return if the format width is 1344 (which is also supported)
return (format->VideoFormat->Width == 1344) ? Windows::Media::MediaProperties::MediaEncodingSubtypes::Bgra8 : nullptr;
Thanks for your help @emeraldy  :)


Zipper: Readme talks about rose trees, tests are for binary trees

I found it a bit odd that the blurb for the Zipper exercise (http://exercism.io/exercises/haskell/zipper/readme) was about rose trees, but the tests are looking at binary trees (http://exercism.io/exercises/haskell/zipper/test-suite).
It would be good if the README and the tests matched. I can send a PR to change the README if that helps?

Hi, @ciderpunx!
Thanks for opening this issue.

It would be good if the README and the tests matched.

Agreed!

I can send a PR to change the README if that helps?

The README.md is dynamically created from a description.md file - shared by all languages in Exercism - and some other language specific files.
The x-common repository contains the exercises' shared data, so it would be the correct place to propose this change. Please open an issue there!

Thanks!
Yes, it would be great to open the issue in x-common, and a PR if you could.

Too late. Now it's my turn to ask the question in https://github.com/exercism/problem-specifications/issues/1317.


message_controls: Keep controls visible if a popover is open.

This looks great, except for this bug (note both picker buttons are visible):

A simple CSS fix would not suffice for this. The only way to fix this behavior would be to use javascript to control the visibility, would we like to go that way?

Yeah, I think we care more about correctness than using only CSS :)

@timabbott This is ready for a review. Tested on both chrome as well as firefox on ubuntu :)

Nice, merged, thanks @HarshitOnGitHub!


Add class_weight optimization example from #183

Pull Request Test Coverage Report for Build 791

3 of 5 (60.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.03%) to 94.039%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

hyperparameter_hunter/models.py
3
5
60.0%

Totals

Change from base Build 787:
-0.03%

Covered Lines:
4670

Relevant Lines:
4966

💛  - Coveralls


[Impeller] blur coverage computations are still incorrect.

Perhaps we're not expanding the bounds enough? Look at the bottom of the screen
https://github.com/flutter/flutter/assets/8975114/c5f0a7bf-62bd-4e43-842b-849f96ccaa55
Example app:
import 'dart:ui';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: MyHomePage(title: 'Scrolling ios blur 3.19.1'),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({
    super.key,
    required this.title,
  });

  final String title;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      extendBody: true,
      extendBodyBehindAppBar: true,
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(title),
      ),
      body: ListView.separated(
        itemCount: 20,
        itemBuilder: (_, i) => ImageFiltered(
            imageFilter: ImageFilter.blur(sigmaX: 25, sigmaY: 25),
            child: Image.network(
              'https://cdn.pixabay.com/photo/2018/03/31/19/29/schnitzel-3279045_1280.jpg',
              height: 200,
              fit: BoxFit.cover,
            ),
        ),
        separatorBuilder: (_, __) => const SizedBox(height: 80),
      ),
    );
  }
}

Could it be related to this? https://github.com/flutter/flutter/issues/144985 We had these problems ourselves when using ImageFilter.blur in different scenarios

@jamesblasco I mean its potentially related since they are both blurs, could be that we are computing the coverage wrong which is impacting both places.
Skia
If I run the Skia example, the blur goes offscreen much further instead of being cut-off. I need to get some frame captures to confirm what is going on.

This seems to me a coverage bug.  The point at which it stops rendering is about the point where the coverage of sigma=0 is going off the screen.  It doesn't seem to be accounting for the blur radius.  We do have some unit tests for this sort of thing (GaussianBlurFilterContentsTest.CoverageWithSigma).  I'm not sure what path we would be going down to mess up with coverage.

Could also be an issue with the coverage hint value:

Looks like this expands offscreen a bit for width but not as much for height. though I'm sort of guessing since I don't know the input rect

I don't think this is a (recent) regression, but its good to know that we're not out of the woods on our coverage problems yet.

If you put a print in impeller::GaussianBlurFilterContents::GetFilterCoverage it can be seen that the cell that isn't being drawn isn't even getting that far.  We just get the calls for the other 3 cells:
(impeller::TRect<float>)  (left_ = -79, top_ = -403.309387, right_ = 829, bottom_ = 154.690613)
(impeller::TRect<float>)  (left_ = -79, top_ = -403.309387, right_ = 829, bottom_ = 154.690613)
(impeller::TRect<float>)  (left_ = -79, top_ = -403.309387, right_ = 829, bottom_ = 154.690613)
(impeller::TRect<float>)  (left_ = -79, top_ = 156.690613, right_ = 829, bottom_ = 714.690613)
(impeller::TRect<float>)  (left_ = -79, top_ = 156.690613, right_ = 829, bottom_ = 714.690613)
(impeller::TRect<float>)  (left_ = -79, top_ = 156.690613, right_ = 829, bottom_ = 714.690613)
(impeller::TRect<float>)  (left_ = -79, top_ = 716.690613, right_ = 829, bottom_ = 1274.69067)
(impeller::TRect<float>)  (left_ = -79, top_ = 716.690613, right_ = 829, bottom_ = 1274.69067)
(impeller::TRect<float>)  (left_ = -79, top_ = 716.690613, right_ = 829, bottom_ = 1274.69067)

It's surprising that it omits that element without querying its coverage.

I think that is culling happening at the framework level. Originally I thought that was the bug, but instead I think its the white gap that appears - this looks substantially different with Skia - the blur continues to extend to the edge of the screen while the impeller version is cut off.

Ah yea, culling in the framework would explain it.  I doubt the framework is calculating the blur radius exactly the same as the engine and it doesn't look like we are communicating that calculation in anyway to it.
The skia version is different, still wrong, just wrong in a different way.
https://github.com/flutter/flutter/assets/30870216/37f2c43d-d024-44dd-8840-884907000c68

@jonahwilliams do you know how this is supposed to work?  The weird thing is that if I use a matrix filter that scales the image 1.5, the bug doesn't show up.  If it was a matter of the framework not having the correct information for culling, it seems like it works for the matrix filter but not the blur for some reason.

The framework culling is WAI. We only use layout sizes and if you paint outside of bounds then YMMV

So, is there somewhere in the framework that is looking at the image filter, seeing a matrix and expanding the layout size to accommodate that?  And if so, do we need to do the same for the blur?


pgsql: Do not insert entry in Vulnerability_FixedIn_Feature if existing

Fixes #238

When this PR lands, it should be backported to the stable branch(es).

We really need to break the database tests into different functions that describe the scenario they're testing rather than having one giant monolithic function for each method in the interface.

@jzelinskie https://github.com/coreos/clair/issues/264 + https://github.com/coreos/clair/pull/263/commits/ec0aad9b7a4e8021b633f983f2e1d9ef496bf49c. Thank you!

LGTM. I set a reminder to backport these changes on Monday.


Refactoring function value loader and invoker

Some cleanup on the invoker and the function loader to increase maintainability and make it more reusable.

:ship:


grpc error details, protobufjs variant

this other library has a smaller bundle size impact

also typescript declarations :heart_eyes:

error preview

npm goes in alphabetical order and not topological order :skull:

here's me putting the proto stuff outside of src

gotta add the compiled proto to the package.json files list

oh also adding changelog


To output only *.csproj files, use GAPIC_PACKAGE instead of GAPIC_CODE.

Codecov Report

Merging #2128 into master will decrease coverage by 0.02%.
The diff coverage is 74.43%.

@@             Coverage Diff              @@
##             master    #2128      +/-   ##
============================================
- Coverage     86.77%   86.74%   -0.03%
- Complexity     5022     5042      +20
============================================
  Files           450      453       +3
  Lines         19948    19979      +31
  Branches       2105     2116      +11
============================================
+ Hits          17310    17331      +21
+ Misses         1919     1917       -2
- Partials        719      731      +12

Impacted Files
Coverage Δ
Complexity Δ

...codegen/discogapic/DiscoGapicGeneratorFactory.java
87.5% <0%> (ø)
1 <0> (ø)
:arrow_down:

...ain/java/com/google/api/codegen/GeneratorMain.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...former/csharp/CSharpGapicSmokeTestTransformer.java
76.31% <100%> (-2.51%)
8 <1> (-1)

...sformer/csharp/CSharpGapicUnitTestTransformer.java
88.88% <100%> (-0.8%)
17 <1> (-1)

...main/java/com/google/api/codegen/ArtifactType.java
100% <100%> (+100%)
1 <0> (+1)
:arrow_up:

...ansformer/csharp/CSharpGapicClientTransformer.java
97.78% <100%> (+1.72%)
52 <1> (-3)
:arrow_down:

...sformer/csharp/CSharpGapicSnippetsTransformer.java
97.7% <100%> (-0.11%)
40 <1> (-1)

...api/codegen/discogapic/DiscoGapicGeneratorApp.java
59.52% <100%> (+0.48%)
6 <0> (ø)
:arrow_down:

...om/google/api/codegen/gapic/GapicGeneratorApp.java
28.03% <33.33%> (+0.67%)
7 <0> (ø)
:arrow_down:

...va/com/google/api/codegen/gapic/ArtifactFlags.java
55.55% <55.55%> (ø)
8 <8> (?)

... and 7 more

Continue to review full report at Codecov.

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

@eoogbe agreed-to feedback addressed, PTAL

Both comments Ack'd.


No any time works in Repeat node / until settings if the time will be valid on next day

Describe the bug
For repeat node at 'until' option no any time in future works that will be valid only on the next day.
To reproduce
Steps to reproduce the behavior:

set a timestamp node and connect it to a chronos-repeat node.
Go to 'config Repeat node'
set any time at 'until' option that will be valid on the next day
click to initiate a timestamp
See that nothing happens, no any new time showed at node status with the next trigger time

Expected behavior
Expecting to work with any time that will be on next day.
Context information

Platform & OS: Raspberry OS/dietpi/Linux 6.1.21-v8+ arm64 LE
node-red-contrib-chronos version: 1.21.0
Node-RED version: 3.1.6
Node.js version: 16.20.2

Yes, I can confirm the bug.

Issue has been fixed with release 1.22.

For some reason in node-red (docker) I still see only version 1.22.0 of node, not 1.22.1 as on npm and node-red website....

I don't why that is the case, I don't use Node-RED in a docker container. Maybe you need to wait a bit for it to appear.
Anyway, I strongly recomment to use v1.22.1 instead of 1.22.0 as there was a regression in 1.22.0 introduced (this happened because moment.js introduced a stricter parsing with version 2.30.0 and I tested all the time with an older version, so I didn't notice this).

It allowed me to update to 1.22.0 only, but does still not show version 1.22.1
Tried restart container etc, nothing worked so far.
Tried to use npm command either without any success.
Weird.
Yeah, I see that 1.22.0 has issue and regardless if I set a trigger time in future, it always triggering instantly.

All right, it seems I could update the module, but needed a tricky manual method, from inside container.
docker exec -it nodered /bin/bash
cd /data/node_modules/
/data/node_modules$ npm list
/data/node_modules$ npm update

Thank you the fast update.


Shop: FREE subscription product

a new free subscription product
a FREE button next to Starter / Silver / Gold / Platinum

What would the description / default comment of this product be? @bart-at-mobicage

I think the same as the normal subscription

"Monthly subscription OUR CITY APP" -> "Free monthly subscription OUR CITY APP" ?

k


Scrollbar causing layout shift in dialog full screen

https://github.com/user-attachments/assets/e7739691-c1f3-40c2-8d80-0c633613d465
Repo: https://github.com/juliomuhlbauer/park-ui/blob/dialog/templates/react/next-js/src/app/dialog/page.tsx

The scrollbar take time to hide when the dialog is animating.
So for example: when the dialog has a scrollbar within itself, it shows 2 scrollbars in the screen when the dialog is opening and a flicker after.

Setting overflow to hidden in the Positioner seems to work.
I think the problem is the default animation of Dialog


Update ext.tasks example

Changes
This will update the example of the ext.tasks usage. Adding the start and cancel method and removig the await asyncio.sleep(1800) for people who didnt read the note.

@ChillFish8 first of all, the examples do not show anything to create a task without ext.tasks. the .sleep() alone isnt enough to create a task.
And since discord.py has introduced ext.tasks, why not use it?
As for the fixes, this adds the task.start() and task.cancel() to the example. As a lot of people just copy without looking, they would miss these.
My decision to makes this PR was after someone asked me for help. Their task didnt run and the .sleep() was still in the task too.
So basically, why do it manually when the lib provides a built in way to do it? This also makes it easy to cancel the task with an eval for example. !eval bot.cogs["TopGG"].update_stats.cancel()


url-prefix is not working in internal links

Describe the bug
url-prefix should be added to the beginning of every link generated by Documentable. In internal links, this is not done: https://raku.github.io/Documentable/type.html

https://github.com/Raku/Pod-To-HTML/pull/75


Adding pneumonia classification failure

This could potentially tells we must aware of data leakage problems.

Hi Muthu, thanks for the PR. I noticed that the original journal paper was already corrected, and they did not admit that they did the incorrect randomization. Do you have any article (beyond the tweet) that describes this issue?

When I read Chip Huyen's Designing ML systems book, I used to come across this example. please checkout page 153

I'm on Page 153 and I don't see any mention of it. Could you perhaps provide the paragraph or details of the page you are referring to?

Figure 4-8. ML works well in situations where the classes are balanced. Source: Adapted
from an image by Andrew Ng2
Andrew Ng, “Bridging AI’s Proof-of-Concept to Production Gap” (HAI Seminar, September 22, 2020), video,
1:02:07, https://oreil.ly/FSFWS.
@kennethleungty  please check and I don't have evidence beyond that


Add optimized GPU kernels for encoder_backward using shared memory

This commit introduces a new optimized kernel for the positional encoder backward pass:
Kernel Version 3: Uses shared memory to reduce global memory accesses and improve performance. Each thread block loads data into shared memory and performs atomic additions to dwte and dwpe.
Slightly improves performance as seen from this basic timing result:
Kernel 2 (pre-existing):

New Kernel 3:

More detailed profiling (used Nsight systems on modal benchmark script: Nvidia A100 + 80GB MEM)  :
Kernel 2:

Kernel 3:

I don't think we can merge this because we need determinism, this uses atomicAdd.
Summoning @ademeure  for comment too

It's fine for /dev/cuda/ which is the only thing this PR touches though - I don't mind including this new kernel as an extra comparison point which can be useful! It shows that using shared memory helps but only slightly. But I'm not sure whether it's worth it since we can't actually use it for the training code.
The bigger issue is /dev/cuda/encoder_backward.cu is out of date and doesn't include the kernels we actually use (which avoids the atomics). There's a few other /dev/cuda/ files which are out of date unfortunately.


Where is the jmkvproedit.jar file?

Hi, where can I find jmkvproedit.jar files? I only see this file
\jmkvpropedit-1.4.3\src\io\github\brunorex\jmkvproedit.java
Launch4j.exe won't let me compile the file.
Thanks for the help.
I am not a programmer.

Hi!
you can have it here:
https://github.com/BrunoReX/jmkvpropedit/releases
Best wishes!
Gilles


Decrease the api level requirement

Necessary

正在做了，目标支持版本号14以上，本周内发布
Currently wip, support api 14 and above, plan to make it done this week

Done in https://github.com/markzhai/LyricHere/commit/77b0578693fd0e5624b38688642910c795a384a4


mono46: mark as insecure (CVE-2018-1002208)

Motivation for this change
Things done

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

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

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: mono46
Partial log (click to expand)
~/.config/nixpkgs/config.nix, like so:

     {
       permittedInsecurePackages = [
         "mono-<IP_ADDRESS>"
       ];
     }

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: mono46
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

No attempt on x86_64-linux (full log)
The following builds were skipped because they don't evaluate on x86_64-linux: mono46
Partial log (click to expand)
~/.config/nixpkgs/config.nix, like so:

     {
       permittedInsecurePackages = [
         "mono-<IP_ADDRESS>"
       ];
     }

I'm just notifying maintainers of packages that might still rely on mono46

@jraygauthier for cpptools and pythonnet
@thoughtpolice @raskin for fsharp41
@puffnfresh for eventstore
@stesie for tomboy

I think many of those could be updated to newer versions of mono.


Update widget_toolkit and example project

Overview
One in a series of PRs to cover the widget_toolkit ecosystem update to support latest version of packages.
Checklist
Implementation

[x] Implementation matches ticket acceptance criteria and technical notes
[x] Manually tested against Acceptance Criteria
[x] UI checked on Android / iOS

Stability

[x] Checked if changes affect any features and verified affected features work as expected
~- [ ] Added unit tests for new code and verified existing tests work as expected~

Code quality

[x] Updated CHANGELOG.md, README.md and package versions in pubspec.yaml
[x] Dependencies are updated to latest versions or new tickets are created if there are breaking changes or deprecations
~- [ ] If an unrelated part of the codebase needs to be updated or refactored, create tickets with proposed changes~

As mentioned by this comment and this comment, we want to merge widget_toolkit first and then work on the remaining widget toolkit packages. This means we can temporarily ignore failing pipelines.


Pumpkin Pie

Hmm, this PR doesn't seem to have the right content in it.  Closing, maybe we can take a look at it together?


Rabin Karp's Algorithm

This is Rabin Karp algorithm for pattern matching in Strings using hashing:

[x] New algorithm
[ ] Update to an existing algorithm
[ ] Error

Details:

The Rabin-Karp algorithm is a string -searching algorithm that uses hashing to find patterns in strings. This algorithm not only will reduce the time complexity but also implements hashing in such a way that it reduces Spurious hit.

Hey @Princeton21, Please assign this issue to me


feat: [#374] The postgres driver supports set schema

📑 Description
Closes https://github.com/goravel/goravel/issues/374
Tested locally, will implement sqlserver schema in next PR.

Summary by CodeRabbit

New Features

Added support for a new Schema field in PostgreSQL database configurations.
Enhanced connection string for PostgreSQL to include the search_path parameter.
Introduced new test cases to validate schema-related functionality.

Bug Fixes

Improved handling of default schema values in PostgreSQL configurations.

Tests

Expanded test coverage for schema management and PostgreSQL configurations.
Updated existing tests to utilize new schema handling methods and improved error handling.

Chores

Refactored test utilities for better schema handling and error reporting.

✅ Checks

[x] Added test cases for my code

@coderabbitai full review

@coderabbitai resolve


How to limit 1 instance of phantomjs?

I am new to node-horseman. I am trying to scrape some numbers from an array of urls. But i used for loop with a integer to check for the instances. But it is not working
for (var i = 0; i <= urls.length; ) {
            console.log("runs --- " + i);
            console.log("instances --- " + instances);

                instances += 1;
                console.log(urls[i].url);
                console.log("Running deepbot");
                var deepbot = new crawler();
                deepbot.open(urls[i].url)
                    .evaluate(function() {
                        var reg = new RegExp(/(\d{3}-\d{3}-\d{4})/);
                        var numbers = document.getElementsByClassName('postingBody')[0].innerHTML.toString().match(reg);
                        // var emails =
                        return numbers;

                    }).then(function(numbers) {
                        console.log("numbers --- ");
                        console.log(numbers.toString());

                        if (!numbers || numbers == null) {
                            instances = 0;
                        }
                        if(numbers != null){
                        // numbers.forEach(function(number) {
                            fs.writeFile('numbers.json', JSON.stringify(numbers), function(err) {
                                if (err) throw err;
                                console.log('saved to numbers.json');
                                // instances = 0;
                                i++;
                            });
                        // });
                      }else{
                        console.log("------------------numbers is empty");
                      }

                    });
                    // .close();

        };
           deepbot.close();

The problem is that the i++ inside
    fs.writeFile('numbers.json', JSON.stringify(numbers), function(err) {
                                if (err) throw err;
                                console.log('saved to numbers.json');
                                // instances = 0;
                                i++;
                            });

is not working and its outputting
Running deepbot
runs --- 0
instances --- 7
http://phoenix.backpage.com/AdultJobs/beautiful-older-women-sought-for-photograp
hy-work/38506375
Running deepbot
runs --- 0
instances --- 8
http://phoenix.backpage.com/AdultJobs/beautiful-older-women-sought-for-photograp
hy-work/38506375
Running deepbot
runs --- 0
instances --- 9

I am not sure what you are saying, but it sounds like you are just having issues with your code. I see no bug in horseman. Horseman makes one instance of PhantomJS for every instance of horseman.

@awlayton But how can i do it without creating new instance of horseman. I want one instance to loop through the urls in the urls array and scrape some information. using the above code, it create many horseman and phantom instances and slow down the pc.
How can it be done?

You either create one horseman instance before the for loop and reuse it every iteration, or you .close() each instance before making a new one (the PhantomJS instance goes away when you do that).
Also keep in mind that horseman is asynchronous @Nisthar (Promise based). You will need to make the steps of each for iteration wait for the previous ones to complete. You can refer to #140 for some examples.

@awlayton that was the main problem. for loop not waiting for the Phantom instance to close. Thanks for the help. Let me check the examples.


Prevent sub-classing of a given class

We need the ability to prevent sub-classing of a class. WorldCap needs it!

@nordlander at least for the purpose of WorldCap, it would also be fine if this just worked for actors somehow and we could then convert all Caps to be actors instead of classes...


Suggestion to add Bronze Alloy

3 Copper + 1 Tin = 4 Bronze

I can add bronze, but the question becomes what is it used for? Not really a point of adding a useless alloy.
As a bit of trivia, Mech 1.0 actually did have bronze but I removed it when I redid the progression system in 2.0

https://en.wikipedia.org/wiki/Bronze#Uses
bearings, clips, electrical connectors, springs, cannons, bushings, electric motors, hammers, mallets, wrenches, bronze wool


[intel-mkl] support for Intel OpenAPI

Is your feature request related to a problem? Please describe.
Not really a feature but an update of the build configuration that allow to find MKL in the new (OpenAPI) default path
Proposed solution
Currently, the MKL library is not installed but detected. The detection is, for my own case (windows OS), based on a common path :
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl
That is know as environment variable MKLROOT
Since the Intel MKL come with the Intel OpenAPI bundle installer, the new MKLROOT become (always for windows OS):
C:\Program Files (x86)\Intel\oneAPI\mkl\latest
Where latest is a shortcut to the lastest installed version, here for me:
C:\Program Files (x86)\Intel\oneAPI\mkl\2021.1.1
The subsequent directory structure is similar to the oldest IntelSWTools directory.
Describe alternatives you've considered
None.
Additional context
None.

Duplicate of #15548

Duplicate of #15548


feat: add basic loongarch64 support

Refactor the repo code to merge
Use standard toolchain
Fix the compile command

I will submit other code about interrupt soon.

@hky1999 Support for la64 is now complete. Except for the two applications redis and sqlite, which were not tested, other apps have passed. If you have time, please check to see if there are any areas for improvement.

@equation314 Do you have time to check and see if there are any other problems?

Thanks! Please fix conflicts and CI.

Thanks! Please fix conflicts and CI.

@equation314 This CI error may be due to a rust version issue. I'm not very familiar with CI, but it seems that the latest version of rust is used in CI.

Thanks! Please fix conflicts and CI.

@equation314 This CI error may be due to a rust version issue. I'm not very familiar with CI, but it seems that the latest version of rust is used in CI.

Hello, CI should fit the latest version of Rust, currently I believe it shoule be rust version 1.77.0-nightly (bf8716f1c 2023-12-24).
Some warnings like this should be fixed.
warning: `axhal` (lib) generated 1 warning
warning: the feature `ip_in_core` has been stable since 1.77.0-nightly and no longer requires an attribute to enable
 --> api/arceos_api/src/lib.rs:6:12
  |
6 | #![feature(ip_in_core)]
  |            ^^^^^^^^^^
  |
  = note: `#[warn(stable_features)]` on by default

I try to build this branch tonight.

BIOS loongarch_bios_0310.bin  is downloaded from from https://github.com/foxsen/qemu-loongarch-runenv/blob/main/loongarch_bios_0310.bin and put it under tools/la64.
maybe this should be added into .gitignore or some corresponding scripts should be added ?
QEMU version :

➜  arceos git:(la64) ✗ qemu-system-loongarch64 --version
QEMU emulator version 8.1.94
Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers

The command is make A=apps/helloworld ARCH=loongarch64 run.
But I just get no output:

➜  arceos git:(la64) ✗ make A=apps/helloworld ARCH=loongarch64 run
    Building App: helloworld, Arch: loongarch64, Platform: loongarch64-qemu-virt, App type: rust
cargo build --target loongarch64-unknown-none --target-dir /home/hky/workspace/rcore-os/arceos/target --release  -Z build-std --manifest-path apps/helloworld/Cargo.toml --features "axstd/log-level-warn axstd/bus-pci"
warning: value assigned to `flags` is never read
  --> crates/kernel_guard/src/arch/loongarch64.rs:17:53
   |
17 |     unsafe { asm!("csrxchg {}, {}, 0x0", inout(reg) flags, in(reg) IE_BIT) };
   |                                                     ^^^^^
   |
   = help: maybe it is overwritten before being read?
   = note: `#[warn(unused_assignments)]` on by default

warning: `kernel_guard` (lib) generated 1 warning
warning: the feature `const_maybe_uninit_zeroed` has been stable since 1.75.0 and no longer requires an attribute to enable
  --> modules/axhal/src/lib.rs:30:12
   |
30 | #![feature(const_maybe_uninit_zeroed)]
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(stable_features)]` on by default

warning: `axhal` (lib) generated 1 warning
warning: the feature `ip_in_core` has been stable since 1.77.0-nightly and no longer requires an attribute to enable
 --> api/arceos_api/src/lib.rs:6:12
  |
6 | #![feature(ip_in_core)]
  |            ^^^^^^^^^^
  |
  = note: `#[warn(stable_features)]` on by default

warning: `arceos_api` (lib) generated 1 warning
warning: the feature `ip_in_core` has been stable since 1.77.0-nightly and no longer requires an attribute to enable
  --> ulib/axstd/src/lib.rs:52:12
   |
52 | #![feature(ip_in_core)]
   |            ^^^^^^^^^^
   |
   = note: `#[warn(stable_features)]` on by default

warning: `axstd` (lib) generated 1 warning
    Finished release [optimized] target(s) in 0.11s
rust-objcopy --binary-architecture=loongarch64 apps/helloworld/helloworld_loongarch64-qemu-virt.elf --strip-all -O binary apps/helloworld/helloworld_loongarch64-qemu-virt.bin
    Running on qemu...
qemu-system-loongarch64 -m 1G -smp 1 -bios tools/la64/loongarch_bios_0310.bin -kernel apps/helloworld/helloworld_loongarch64-qemu-virt.elf -nographic -vga none

Could you offer some help or advice with it? @Godones

Thanks! Please fix conflicts and CI.

@equation314 This CI error may be due to a rust version issue. I'm not very familiar with CI, but it seems that the latest version of rust is used in CI.

Hello, CI should fit the latest version of Rust, currently I believe it should be rust version 1.77.0-nightly (bf8716f1c 2023-12-24).
Some warnings like this should be fixed.
warning: `axhal` (lib) generated 1 warning
warning: the feature `ip_in_core` has been stable since 1.77.0-nightly and no longer requires an attribute to enable
 --> api/arceos_api/src/lib.rs:6:12
  |
6 | #![feature(ip_in_core)]
  |            ^^^^^^^^^^
  |
  = note: `#[warn(stable_features)]` on by default

I try to build this branch tonight.

BIOS loongarch_bios_0310.bin  is downloaded from https://github.com/foxsen/qemu-loongarch-runenv/blob/main/loongarch_bios_0310.bin and put it under tools/la64.
maybe this should be added into .gitignore or some corresponding scripts should be added ?
QEMU version :

➜  arceos git:(la64) ✗ qemu-system-loongarch64 --version
QEMU emulator version 8.1.94
Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers

The command is make A=apps/helloworld ARCH=loongarch64 run.
But I just get no output:

➜  arceos git:(la64) ✗ make A=apps/helloworld ARCH=loongarch64 run
    Building App: helloworld, Arch: loongarch64, Platform: loongarch64-qemu-virt, App type: rust
cargo build --target loongarch64-unknown-none --target-dir /home/hky/workspace/rcore-os/arceos/target --release  -Z build-std --manifest-path apps/helloworld/Cargo.toml --features "axstd/log-level-warn axstd/bus-pci"
warning: value assigned to `flags` is never read
  --> crates/kernel_guard/src/arch/loongarch64.rs:17:53
   |
17 |     unsafe { asm!("csrxchg {}, {}, 0x0", inout(reg) flags, in(reg) IE_BIT) };
   |                                                     ^^^^^
   |
   = help: maybe it is overwritten before being read?
   = note: `#[warn(unused_assignments)]` on by default

warning: `kernel_guard` (lib) generated 1 warning
warning: the feature `const_maybe_uninit_zeroed` has been stable since 1.75.0 and no longer requires an attribute to enable
  --> modules/axhal/src/lib.rs:30:12
   |
30 | #![feature(const_maybe_uninit_zeroed)]
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(stable_features)]` on by default

warning: `axhal` (lib) generated 1 warning
warning: the feature `ip_in_core` has been stable since 1.77.0-nightly and no longer requires an attribute to enable
 --> api/arceos_api/src/lib.rs:6:12
  |
6 | #![feature(ip_in_core)]
  |            ^^^^^^^^^^
  |
  = note: `#[warn(stable_features)]` on by default

warning: `arceos_api` (lib) generated 1 warning
warning: the feature `ip_in_core` has been stable since 1.77.0-nightly and no longer requires an attribute to enable
  --> ulib/axstd/src/lib.rs:52:12
   |
52 | #![feature(ip_in_core)]
   |            ^^^^^^^^^^
   |
   = note: `#[warn(stable_features)]` on by default

warning: `axstd` (lib) generated 1 warning
    Finished release [optimized] target(s) in 0.11s
rust-objcopy --binary-architecture=loongarch64 apps/helloworld/helloworld_loongarch64-qemu-virt.elf --strip-all -O binary apps/helloworld/helloworld_loongarch64-qemu-virt.bin
    Running on qemu...
qemu-system-loongarch64 -m 1G -smp 1 -bios tools/la64/loongarch_bios_0310.bin -kernel apps/helloworld/helloworld_loongarch64-qemu-virt.elf -nographic -vga none

Could you offer some help or advice with it? Thanks a lot! @Godones

The Qemu version should be:
❯ qemu-system-loongarch64 --version
QEMU emulator version 6.2.50 (v6.0.0-7567-gac069a8ffb)
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers

You can complie it according to tools/la64/la-qemu.sh or https://github.com/foxsen/qemu-loongarch-runenv/


Custom notifications

This is enabled by default on windows, because windows' notifications are broken for a large amount of users.
Fixes #2060
Supersedes #2230

Addresses #920
However this doesn't properly handle clip behaviour, namely that a clip has to be stopped, and rewound, before it can be played again.

Clips are not reused, so it is fine
On Fri, Aug 24, 2018, 10:05 Nathen Sample<EMAIL_ADDRESS>wrote:

Addresses #920 https://github.com/runelite/runelite/issues/920
However this doesn't properly handle clip behaviour, namely that a clip
has to be stopped, and rewound, before it can be played again.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/runelite/runelite/pull/3076#issuecomment-415805337,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALy0P7Ot7lf4Hlzwj4Rq-tRESWe3LXubks5uUCRmgaJpZM4UHbCG
.

ah yeah, since you recreate the clip each time - though that does beg the question why recreate it each time :P Not that the overhead of recreating is particularly large

Is loaded each time because people can add custom sounds by placing a wav
in .runelite, and I didn't want to make then restart their client when they
change sounds.
On Fri, Aug 24, 2018, 12:09 Nathen Sample<EMAIL_ADDRESS>wrote:

ah yeah, since you recreate the clip each time - though that does beg the
question why recreate it each time :P Not that the overhead of recreating
is particularly large
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/runelite/runelite/pull/3076#issuecomment-415838440,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALy0P_Zk7VesrCEwuIcIcbu2fhRhdaRCks5uUEFLgaJpZM4UHbCG
.

It would be faster, but it would be inconvenient for the few times users do
change the sound. It's still probably faster then sending a notification on
Linux, which requires starting a new process.
On Fri, Aug 24, 2018, 12:20 Tomas Slusny<EMAIL_ADDRESS>wrote:

Tbh, how often will they change sounds? Loading it only once is probably
more performant
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/runelite/runelite/pull/3076#issuecomment-415841613,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALy0P9Zh6_pZPafEAotDmzVntFoelGzUks5uUEQLgaJpZM4UHbCG
.

I can say I wouldn't like to restart the client every time I wanted to test a new notification sound while I was getting it set up initially. Given notifications aren't too frequent, the extra overhead of loading upon triggered notifications probably won't be too impactful.

I mean you would never test the notifications like that in-game as that just sounds plain annoying to wait for notif to test it, you would just play the file in external program.

Hearing a sound when you expect it is very different from hearing it as a
notification in practice.
On Sat, Aug 25, 2018, 02:49 Tomas Slusny<EMAIL_ADDRESS>wrote:

I mean you would never test the notifications like that in-game as that
just sounds plain annoying to wait for notif to test it, you would just
play the file in external program.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/runelite/runelite/pull/3076#issuecomment-415954223,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALy0P9KKrK78w1oXWodH03FO5frWUQaWks5uUQ-SgaJpZM4UHbCG
.

In what case would it actually fail?
On Sat, Aug 25, 2018, 02:52 Tomas Slusny<EMAIL_ADDRESS>wrote:

@deathbeam requested changes on this pull request.
In runelite-client/src/main/java/net/runelite/client/Notifier.java
https://github.com/runelite/runelite/pull/3076#discussion_r212793301:

if (clip == null)

{

	// Otherwise load from the classpath

	InputStream fileStream = new BufferedInputStream(Notifier.class.getResourceAsStream("notification.wav"));

	try (AudioInputStream sound = AudioSystem.getAudioInputStream(fileStream))

	{

		clip = AudioSystem.getClip();

		clip.open(sound);

	}

	catch (UnsupportedAudioFileException | IOException | LineUnavailableException e)

	{

		log.warn("Unable to play builtin notification sound", e);

		return;

	}

}

clip.start();

This looks like it would fail if the built-in notification fails, maybe do
same this as with external one and set it to null and add null-check. And
in case it fails completely maybe revert back to System.beep() at least.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/runelite/runelite/pull/3076#pullrequestreview-149505001,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALy0P4NlSQW9PqrrE73ddTc2hcDq3uJLks5uURBKgaJpZM4UHbCG
.

In a case when target system cannot play .wav for w/e reason

Is this still being implemented? Would love when using Windows to not have to use the default notifications.

Would love this tbh. Any chance to ever see it?

It would be cool if this could be rebased


clightning: init at 0.6rc1

c-lightning is a standard compliant implementation of the Lightning
Network protocol. The Lightning Network is a scalability solution for
Bitcoin, enabling secure and instant transfer of funds between any two
parties for any amount.
Motivation for this change
c-lightning is a bit more stable now, figured it was a good time to package
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: clightning
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Failure on x86_64-linux (full log)
Attempted: clightning
Partial log (click to expand)
gcc -DBINTOPKGLIBEXECDIR='"'../libexec/c-lightning'"' -Werror -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -std=gnu11 -g -fstack-protector -I ccan -I external/libsodium/src/libsodium/include -I external/libwally-core/include/ -I external/libwally-core/src/secp256k1/include/ -I external/jsmn/ -I external/libbase58/ -I external/libbacktrace/ -I external/libbacktrace-build -I . -I/usr/local/include    -DSHACHAIN_BITS=48 -DJSMN_PARENT_LINKS  -DCOMPAT_V052=1 -c -o ccan-tal-str.o ccan/ccan/tal/str/str.c
gcc -DBINTOPKGLIBEXECDIR='"'../libexec/c-lightning'"' -Werror -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -std=gnu11 -g -fstack-protector -I ccan -I external/libsodium/src/libsodium/include -I external/libwally-core/include/ -I external/libwally-core/src/secp256k1/include/ -I external/jsmn/ -I external/libbase58/ -I external/libbacktrace/ -I external/libbacktrace-build -I . -I/usr/local/include    -DSHACHAIN_BITS=48 -DJSMN_PARENT_LINKS  -DCOMPAT_V052=1 -c -o ccan-tal.o ccan/ccan/tal/tal.c
gcc -DBINTOPKGLIBEXECDIR='"'../libexec/c-lightning'"' -Werror -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -std=gnu11 -g -fstack-protector -I ccan -I external/libsodium/src/libsodium/include -I external/libwally-core/include/ -I external/libwally-core/src/secp256k1/include/ -I external/jsmn/ -I external/libbase58/ -I external/libbacktrace/ -I external/libbacktrace-build -I . -I/usr/local/include    -DSHACHAIN_BITS=48 -DJSMN_PARENT_LINKS  -DCOMPAT_V052=1 -c -o ccan-time.o ccan/ccan/time/time.c
gcc -DBINTOPKGLIBEXECDIR='"'../libexec/c-lightning'"' -Werror -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -std=gnu11 -g -fstack-protector -I ccan -I external/libsodium/src/libsodium/include -I external/libwally-core/include/ -I external/libwally-core/src/secp256k1/include/ -I external/jsmn/ -I external/libbase58/ -I external/libbacktrace/ -I external/libbacktrace-build -I . -I/usr/local/include    -DSHACHAIN_BITS=48 -DJSMN_PARENT_LINKS  -DCOMPAT_V052=1 -c -o ccan-timer.o ccan/ccan/timer/timer.c
tools/generate-wire.py hsmd/gen_hsm_client_wire.h hsm_client_wire_type< hsmd/hsm_client_wire_csv > hsmd/gen_hsm_client_wire.c
/nix/store/0aa1ngxygf1iqanfbpdb10klc7r343c0-bash-4.4-p19/bin/bash: tools/generate-wire.py: /usr/bin/env: bad interpreter: No such file or directory
make: *** [hsmd/Makefile:64: hsmd/gen_hsm_client_wire.c] Error 126
make: *** Waiting for unfinished jobs....
builder for '/nix/store/hkjqd540hrskila10byby7lbyihy894h-clightning-0.6rc1.drv' failed with exit code 2
error: build of '/nix/store/hkjqd540hrskila10byby7lbyihy894h-clightning-0.6rc1.drv' failed

Failure on aarch64-linux (full log)
Attempted: clightning
Partial log (click to expand)
gcc -DBINTOPKGLIBEXECDIR='"'../libexec/c-lightning'"' -Werror -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -std=gnu11 -g -fstack-protector -I ccan -I external/libsodium/src/libsodium/include -I external/libwally-core/include/ -I external/libwally-core/src/secp256k1/include/ -I external/jsmn/ -I external/libbase58/ -I external/libbacktrace/ -I external/libbacktrace-build -I . -I/usr/local/include    -DSHACHAIN_BITS=48 -DJSMN_PARENT_LINKS  -DCOMPAT_V052=1 -c -o ccan-timer.o ccan/ccan/timer/timer.c
tools/generate-wire.py hsmd/gen_hsm_client_wire.h hsm_client_wire_type< hsmd/hsm_client_wire_csv > hsmd/gen_hsm_client_wire.c
tools/generate-wire.py common/gen_status_wire.h status < common/status_wire.csv > common/gen_status_wire.c
/nix/store/23kq49wszxq7k41dqfk82q5vqwlq5sww-bash-4.4-p19/bin/bash: tools/generate-wire.py: /usr/bin/env: bad interpreter: No such file or directory
/nix/store/23kq49wszxq7k41dqfk82q5vqwlq5sww-bash-4.4-p19/bin/bash: tools/generate-wire.py: /usr/bin/env: bad interpreter: No such file or directory
make: *** [hsmd/Makefile:64: hsmd/gen_hsm_client_wire.c] Error 126
make: *** Waiting for unfinished jobs....
make: *** [common/Makefile:75: common/gen_status_wire.c] Error 126
builder for '/nix/store/hi6lph1rfwpqlxd0fngrclimjnhjknjg-clightning-0.6rc1.drv' failed with exit code 2
error: build of '/nix/store/hi6lph1rfwpqlxd0fngrclimjnhjknjg-clightning-0.6rc1.drv' failed

tools/generate-wire.py needs to be patched with patchShebangs

really weird that I don't get this issue when compiling on master, even with sandbox 🤔

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: clightning
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: clightning
Partial log (click to expand)
shrinking /nix/store/rq0gzk0qfamyiz4cvj8v5vdmf8yvaj64-clightning-0.6rc1/libexec/c-lightning/lightning_hsmd
shrinking /nix/store/rq0gzk0qfamyiz4cvj8v5vdmf8yvaj64-clightning-0.6rc1/libexec/c-lightning/lightning_gossipd
shrinking /nix/store/rq0gzk0qfamyiz4cvj8v5vdmf8yvaj64-clightning-0.6rc1/bin/lightning-cli
shrinking /nix/store/rq0gzk0qfamyiz4cvj8v5vdmf8yvaj64-clightning-0.6rc1/bin/lightningd
gzipping man pages under /nix/store/rq0gzk0qfamyiz4cvj8v5vdmf8yvaj64-clightning-0.6rc1/share/man/
strip is /nix/store/4mf2xm9p32lzrim927yk92xhx35yaz62-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/rq0gzk0qfamyiz4cvj8v5vdmf8yvaj64-clightning-0.6rc1/libexec  /nix/store/rq0gzk0qfamyiz4cvj8v5vdmf8yvaj64-clightning-0.6rc1/bin
patching script interpreter paths in /nix/store/rq0gzk0qfamyiz4cvj8v5vdmf8yvaj64-clightning-0.6rc1
checking for references to /build in /nix/store/rq0gzk0qfamyiz4cvj8v5vdmf8yvaj64-clightning-0.6rc1...
/nix/store/rq0gzk0qfamyiz4cvj8v5vdmf8yvaj64-clightning-0.6rc1

Success on aarch64-linux (full log)
Attempted: clightning
Partial log (click to expand)
shrinking /nix/store/5mm0jlgflfk9zmn97my6h7xjp682jyx9-clightning-0.6rc1/libexec/c-lightning/lightning_closingd
shrinking /nix/store/5mm0jlgflfk9zmn97my6h7xjp682jyx9-clightning-0.6rc1/libexec/c-lightning/lightning_channeld
shrinking /nix/store/5mm0jlgflfk9zmn97my6h7xjp682jyx9-clightning-0.6rc1/bin/lightningd
shrinking /nix/store/5mm0jlgflfk9zmn97my6h7xjp682jyx9-clightning-0.6rc1/bin/lightning-cli
gzipping man pages under /nix/store/5mm0jlgflfk9zmn97my6h7xjp682jyx9-clightning-0.6rc1/share/man/
strip is /nix/store/min150lkigznaayzpwvf8d4jdl1dqvx6-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/5mm0jlgflfk9zmn97my6h7xjp682jyx9-clightning-0.6rc1/libexec  /nix/store/5mm0jlgflfk9zmn97my6h7xjp682jyx9-clightning-0.6rc1/bin
patching script interpreter paths in /nix/store/5mm0jlgflfk9zmn97my6h7xjp682jyx9-clightning-0.6rc1
checking for references to /build in /nix/store/5mm0jlgflfk9zmn97my6h7xjp682jyx9-clightning-0.6rc1...
/nix/store/5mm0jlgflfk9zmn97my6h7xjp682jyx9-clightning-0.6rc1

@Mic92 fixed

closing since 0.6 is released now


Add version flag

$ parca-agent --version
> parca-agent, version  (commit: 7ff593d3d399e778d446e24759f35ddafb4bcdc6, date: 2023-04-12T15:18:42Z), arch: amd64

🤖 Generated by Copilot at 7ff593d
Summary
🚀♻📝

Added a --version flag and improved build info logging in parca-agent.

Show me the --version of your doom
The build info is your final tomb
Refactor the code in the main function
You can't escape the metal destruction

Walkthrough

Add a Version flag to show the application version with the --version option (link)
Move the code to fetch and assign the build info variables (commit, date, goArch) from the run function to the main function in cmd/parca-agent/main.go, to avoid duplication and make the build info available for the Version flag (link, link)
Check and handle the Version flag in the main function in cmd/parca-agent/main.go, to print the version information and exit the program if the flag is set (link)
Move the log message for the initialization of the parca-agent from the run function to the main function in cmd/parca-agent/main.go, to match the location of the build info assignment (link, link)

Looks great. Lol at the AI-generated text. Could you please add the output of --version? Thanks!

Looks great. Lol at the AI-generated text. Could you please add the output of --version? Thanks!

parca-agent, version  (commit: 7ff593d3d399e778d446e24759f35ddafb4bcdc6, date: 2023-04-12T15:18:42Z), arch: amd64

Is it expected that the version is empty?

Is it expected that the version is empty?

Do you see this case? We just print package-level variables and inject those during build time. In theory, you can have a custom build command to skip injecting and it could be empty.

Ah, ok, guess they are empty in this example. Would be nice to indicate that they are unavailable but not a biggie


Format of depth image

Hi, I'm a little new to working with depth data.  I have an image coming the Realsense D435 camera, and saved it as an inverse colorization png.  But that doesn't seem to work (not 2 channels).  Do you have tips on how to get it in the right format?  Thanks so much!
Eric

What library are you using to read the image data?
If you are using ROS, you are probably using this library:
https://github.com/IntelRealSense/realsense-ros The images read by the
library will be published to ROS topics. For more details, please see that
github.
If you are using other libraries, please search on google for their
documentation, or search for how other people use the library.
In general, the D435 camera should return two types of image: RGB image (3
channels), and depth image (1 channel).
On Sat, Oct 24, 2020 at 11:38 AM Eric Nguyen<EMAIL_ADDRESS>wrote:

Hi, I'm a little new to working with depth data. I have an image coming
the Realsense D435 camera, and saved it as an inverse colorization png. But
that doesn't seem to work (not 2 channels). Do you have tips on how to get
it in the right format? Thanks so much!
Eric
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/felixchenfy/ros_detect_planes_from_depth_img/issues/2,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFJY7WNNBUWV3LD3IFJJZM3SMMNJNANCNFSM4S5YLBRQ
.

Oh ok, I am using the realsense library directly into my Python script, and processing with OpenCV.
I'm curious how you save your depth data?  As a grayscale?  Is there a way to save it in opencv format?  I tried taking the raw depth output from realsense:
frames = pipeline.wait_for_frames()
depth_frame = frames.get_depth_frame()
and then converting to a numpy array.  I then normalized to be between 0-255, and dtype=np.uint8, but that doesn't let me save the image in that format.  Would love to see how you saved it?
Thanks again!
Eric

Hi, looks like you are able to read the image from the camera.
Try displaying that depth_frame first, and then save it.
I can't help with this low level debug. Sorry about that.
"Would love to see how you saved it?" --- Convert the data to the right
format (np.uint8 or np.uint16), and then call cv2.imwrite. I think you
are stuck at this "right format" step, which I can't help with you to debug
On Sat, Oct 24, 2020 at 12:13 PM Eric Nguyen<EMAIL_ADDRESS>wrote:

Oh ok, I am using the realsense library directly into my Python script,
and processing with OpenCV.
I'm curious how you save your depth data? As a grayscale? Is there a way
to save it in opencv format? I tried taking the raw depth output from
realsense:
frames = pipeline.wait_for_frames()
depth_frame = frames.get_depth_frame()
and then converting to a numpy array. I then normalized to be between
0-255, and dtype=np.uint8, but that doesn't let me save the image in that
format. Would love to see how you saved it?
Thanks again!
Eric
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/felixchenfy/ros_detect_planes_from_depth_img/issues/2#issuecomment-716041682,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFJY7WOHFW66SOAAGQ2FK23SMMROFANCNFSM4S5YLBRQ
.

great got it to work on a single image!  Looks good!


Add stale-while-revalidate option

Stale-while-revalidate, as described at http://jakearchibald.com/2014/offline-cookbook/, is a useful pattern to implement.

fastest has almost the same behavior. It will fetch from the network and update the cache every time, even if the returned result comes straight from the cache. The only time the behavior would be different is if the request was previously cached, but somehow the cache fetch took longer than the network fetch.

Makes sense. fastest it is.


docs/search: Revert innerHTML changes

i thought i had checked this when i landed these PRs but it seems they broke search

cc @Shivam7-1


Project import (Raw data files)

Hey guys,
this is a rudimentary way to load/save projects on the local machine.
Project save:

Loop through all raw data files
Create a BatchQueue that will only process a single raw data file
Compare the created BatchQueues. If multiple queues have the same module calls with the same parameter values, the queues will be merged.
Save all batch queues to an xml file

Project load:

RawDataFileOpenHandler is now a Task
Executes a BatchTask for each saved batch queue
implementation a bit janky atm, but it does the job

TODO:

Create standalone projects, that package the raw data files into the zip file and extract them afterwards.

For the best and reproducible results, i had to create a timestap each time a module is called. This is done by creating a timestamp in the MZmineCore.runMZmineModule method and passing it to MZmineModule.runModule and to the task. The timestamp is then also given to the applied method to later group them by module call.
The actual saved project is a single batch queue, that processes the raw data files in exactly the same order/selection as previously.
Using multiple batch queues to parallelise the import lead to consistency issues and requires way more effort to make it consistent and reproducible.
Let me know what you think, so i can start with the feature list loading/saving! :)


[Feature]: Allow dynamic string arrays in multipart

Is there an existing issue for this?

[X] I have searched the existing issues

Summary
APIs using multipart would commonly expect list of values to be sent as unique values using the same key;
// My source data could be an output of a Select for example with value ['a', 'b', 'c']

// In JSON we would have something like this
{
  myList: ['a', 'b', 'c']
}

// In multipart the request might look like this
--12345
Content-Disposition: form-data; name="myList"

a
--12345
Content-Disposition: form-data; name="myList"

b
--12345
Content-Disposition: form-data; name="myList"

c
--12345

Currently it is not possible to map an array value in such a way in appsmith
Why should this be worked on?
APIs expecting requests using this format can not be achieved, unless there is a fixed and contact length array to send.

Hi @noe-charmet, Just to Mention, we are currently working on the issue.


Discovery and norms: Embed policy metadata in Open Collective "Collective Voice" admin profiles

Open Collective values transparency. Their moto is "raise and spend money with full transparency". The Open Collective + Gateway + PolicyKit integration can advance this value and mission by embedding policy metadata into a collective's admin bot (previously proposed to be "Collective Voice").
Hovering over the Collective Voice admin, a visitor to the collective could see how the community makes decisions about different types of expenses. Here is a mockup of this feature.

This metadata could serve at least four functions:

Potential donors can see if the way that a collective makes decisions about expense approval aligns with their own decision making ideals
Creating an ecosystem of signaling how funds are collective managed, thus establishing norms
Creating a latent discovery mechanism by which people could search for collectives on Open Collective, i.e. I am a user that wants to see all of the collectives who adopt a consensus based approach to expense approval
Offering metadata for people studying different models for collective money management, e.g. a successful open source software organization with 100+ contributors and a certain business model tends to use x, y, or z collective funding model. This is another norm and precedent setting mechanism

From discussion:

Or: this feature mostly requires work on OC's end.

Would it make sense to add this as a feature request in OC's repo?


template_binding nodeBind, bind docs inconsistent

 Issue by cbracken
Originally opened as dart-lang/sdk#18918

The docs for nodeBind() show:
nodeBind(node).bind('checked', model, 'path.to.some.value');
The docs for NodeBindExtension.bind() show:
Bindable bind(String name, value, {bool oneTime: false})

 Comment by jmesserly

Removed Area-Polymer label.
Added Pkg-Polymer, Area-Pkg labels.

 Comment by kwalrath

Removed Type-Defect label.
Added Type-Documentation label.

 Comment by sigmundch

Fixed in https://code.google.com/p/dart/source/detail?r=37795

Added Fixed label.


Remove cPickle support

Fixes #7110
Status
Not tested
Description
Since we no longer support python2, remove attempts to import cPickle and just import pickle.
Is it backward compatible (if not, which system it affects?)
Only works with python3!
Related PRs
NA
External dependencies / deployment changes
NA

Removed the cPickle reference from MakeJobSlave.py with my latest push. Thanks for catching that @amaltaro!


Update package archive priorities

This moves MELPA stable to the most trusted/prioritized position, and removes reference to Marmalade from the priority listing, as we have no configuration for it.
I think this might prevent collisions with versions, too.  We'll see.

Merging without approval.


bring gravity binary to test_runner

@levicook @jtremback can you review this if it is still needed, or close if not?

Closing. I don’t think we will need it.

Correction -- just found that this is useful for the valset stress e2e tests.

Since this is a single commit, I'm going to cherry-pick it and try it out.

Cherry picked into #43
Fails with error checking context: 'can't stat '/home/levi/gravity-bridge/testdata/testchain/gravity0/data/cs.wal''.
Which I recall seeing now. Pretty sure that's a level-db write ahead log & pretty sure it's using stringent permissions on Linux I might be able to relax. Will investigate...

Marking as draft because #45 should make this unnecessary.

#45 is successfully delegating (albeit with a race condition on tx sequence numbers); closing


Add projectRoot option for relativePaths

Changes proposed in this pull request:

Add projectRoot option for relativePaths

This is useful for monorepos where the cwd of the tests execution may not be the directory of the project.
Usage
// jest.config.js
module.exports = {
  // ...
  reporters: [
    "default",
    [
      "@casualbot/jest-sonar-reporter",
      {
        relativePaths: true,
        projectRoot: __dirname,
        outputDirectory: "coverageDir/project1",
        outputName: "sonar-report.xml",
      },
    ],
  ]
}

I can confirm this PR is helpful for Nx monorepo projects.

This is very useful for monorepo like lerna. Would it be possible to create a new release with this PR ?

Apologies for the delays real life took over. Will be taking a look ASAP (within the week) and cutting a new release if everything working as intended

Apologies for the delay. PR has been reviewed and merged, code has been published with release version 2.4.0
cc: @sebastien-savalle @nbolton @aquacash5

Very nice!


Fix crash when deleting the player in AnimationPlayerEditorPlugin

Fix https://github.com/godotengine/godot/issues/82549
The player is just a weak pointer, which doesn't allocate and shouldn't free in this class:
player = Object::cast_to<AnimationPlayer>(p_object);

Thanks!


Update to latest commit

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Hi @isuruf - unfortunately this build breaks arm64-apple-darwin20.0.0-ld on my M1 with a code sign error:
(base) fischert@VXTGFM46Y6 ros-galactic-tf2-py % /Users/fischert/mambaforge/conda-bld/ros-galactic-tf2-py_1642384757734/_build_env/bin/arm64-apple-darwin20.0.0-ld
zsh: killed

Going back to mamba install ld64_osx-arm64=609=ha291f0b_2 it runs fine:
(base) fischert@VXTGFM46Y6 mambaforge % /Users/fischert/mambaforge/conda-bld/ros-galactic-tf2-py_1642384757734/_build_env/bin/arm64-apple-darwin20.0.0-ld
ld: warning: platform not specified
ld: warning: -arch not specified
ld: warning: No platform min-version specified on command line
ld: no object files specified

Should be fixed with #46


How can I make the menu not animate at all when closing?

How can I make the menu not animate at all when closing?

Setting bouncingEnabled to false makes it use a simple UIView.animation, and then setting animationDuration to 0 would theoretically make the animation instantaneous.
However, that's both for opening and closing the menu.
If you want to remove animation only for closing you'll have to add a new setting or set these two at the right moment.


Add FILETIME passthrough to notification decorator

datetime has inferior precision when compared to the original FILETIME
transmitted by ADS. Add the ability to have the FILETIME value passed
through in order to support the full resolution optionally if the
caller requests it.
Closes #116.

Pull Request Test Coverage Report for Build 360

5 of 5 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 93.214%

Totals

Change from base Build 355:
0.02%

Covered Lines:
783

Relevant Lines:
840

💛  - Coveralls


⚠ Bofrost.es has degraded performance

In 14b6e63, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1510 ms

Resolved: Bofrost.es performance has improved in c2999af after 6 minutes.


e2e: restore cluster condition

What this PR does / why we need it:
Some tests change the nodes spec and restore them during the test itself. This could cause that if the test fails before resetting the spec, all the subsequent tests will have a non-cleaned cluster, generating fails on cascade. Resetting the cluster conditions on AfterEach will improve test stability.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

NONE

/lgtm

/cherrypick release-0.58


Fix Crystal nightly

see https://github.com/crystal-lang/crystal/pull/11208 for reference

thanks!


Alternative .py writer

This change offers an alternative ".py" file writer, where the font is stored in an object. The resulting files look like this :
# Code generated by font_to_py.
# Font: Roboto-Black Char set: ...
# Cmd: font-to-py --alt --xmap -k latin15 fonts/Roboto-Black.ttf 24 TT.py

def get_ch(self, ch):
    def ifb(l):
        return l[0] | (l[1] << 8)

    oc = ord(ch)
    ioff = 2 * (oc - 32 + 1) if oc >= self.min_ch and oc <= self.max_ch else 0
    doff = ifb(self._index[ioff:])
    width = ifb(self._font[doff:])
    next_offs = doff + 2 + ((width - 1)//8 + 1) * self.height
    return self._font[doff + 2:next_offs], self.height, width

font = type(
    "",
    (object,),
    {
        "height": 24,
        "baseline": 19,
        "max_width": 19,
        "hmap": True,
        "reverse": False,
        "monospaced": False,
        "min_ch": 32,
        "max_ch": 8364,
        "_font": memoryview(
            b"\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3e\x00\x7f\x80"
            b"\xff\x80\xf3\x80\x03\x80\x07\x80\x0f\x00\x0e\x00\x1c\x00\x1c\x00"
            ...
            b"\x7f\x80\x1c\x00\x7f\x80\x7f\x80\x1c\x00\x1f\xe0\x0f\xe0\x07\xe0"
            b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
        ),
        "_index": memoryview(
            b"\x00\x00\x32\x00\x4c\x00\x66\x00\x80\x00\xb2\x00\xe4\x00\x16\x01"
            b"\x48\x01\x62\x01\x7c\x01\x96\x01\xc8\x01\xfa\x01\x14\x02\x46\x02"
            ...
            b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
            b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe8\x21\x1a\x22"
        ),
        "get_ch": get_ch,
    },
)()

The benefit of this solution is that you can easily pass a font as a parameter to a function (for example a print_str() function or a get_bounding_box() function).
The alternative format is selected by the --alt option

I don't understand the problem that this seeks to solve. As far as I can see you can already pass a font as a function arg, as in this fragment:
import font10 as font
def foo(f):
    print(f.heigt())
foo(font)  # Prints the height

I am wary of any change to the font file format: a lot of testing was done to prove that, when frozen, the data was not copied to RAM. It's easy to inadvertently create a format where the MicroPython runtime does this.

Thank you for your feedback. I never passed "module objects" as parameter to a function. Actually, I did not know that this was possible.
To me, it feels more natural to pass an object to a function (a bit like a font structure is used in Adafruit GFX).
A small benefits of having an object is that you can use f.height (without the parenthesis) instead of f.height()... but I agree that this might be a detail.
Anyhow, my proposal adds an alternative file format without impacting the current users and without changing the default. I already used it in a small project, and it seems to work well.

Passing the font as an arg is routine: it is one of the constructor args for Writer and CWriter classes. From my point of view this extra file format is added complexity with no benefit. Further, it introduces an unknown regarding performance as frozen bytecode. This would require detailed assessment.
I'm afraid this is a definite no from where I stand.

OK, I understand. I will keep this variant in my own repository and continue the development there.

Just FYI there is a reason why height is not accessed  with f.height. This could easily be achieved by creating a module variable height. However it causes problems when the bytecode resides in Flash.  So the runtime copies the bytecode to RAM. I think it copies the entire module, negating the purpose of freezing it.
A possible solution is to use a property to create a read-only variable, but I'm unsure if the runtime is intelligent enough not to copy to RAM. There is also a general convention against properties in MicroPython on performance grounds. Using a function is therefore preferable and has the merit of making the read-only attribute self-evident.
A final observation. The API for Python font files has been fixed for many years and a great deal of code relies on it.


Add docker_context option to Cross.toml target options

The docker_context option allows specifying a path to a local
docker context containing a Dockerfile. cross will then build
the docker file and use it as the docker image for that target.
Closes #196 .

Is there a way to test this? Or can anybody test this locally? I implemented this on a Mac, and cross does not work there.

@homunkulus try

bors: try

@gnzlbg can you resolve the conlficts?

bors: try

It works only on some platforms. Any clue?

bors: try

bors: try

bors: try

@gnzlbg can you resolve the conflicts?

Not really, I don't have much time to push this to completion. If anyone wants to pick it up feel free to do so.


Error when running ./run.sh in M2 MacOS （在 M2 MacOS 运行 ./run.sh 时出错）

After running ./run.sh in my terminal, I got the below error. (CN：在M2 mac运行./run.sh时，得到以下错误)
2024-01-02 15:53:22 | INFO | __main__ | Use Language: en_US
Traceback (most recent call last):
  File "/Users/junzheliang/Desktop/projects/Retrieval-based-Voice-Conversion-WebUI/infer-web.py", line 1515, in <module>
    app.queue(concurrency_count=511, max_size=1022).launch(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/gradio/blocks.py", line 1715, in queue
    raise DeprecationWarning(
DeprecationWarning: concurrency_count has been deprecated. Set the concurrency_limit directly on event listeners e.g. btn.click(fn, ..., concurrency_limit=10) or gr.Interface(concurrency_limit=10). If necessary, the total number of workers can be configured via `max_threads` in launch().
2024-01-02 15:53:22 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"
2024-01-02 15:53:23 | INFO | httpx | HTTP Request: GET https://checkip.amazonaws.com/ "HTTP/1.1 200 OK"
2024-01-02 15:53:23 | INFO | httpx | HTTP Request: POST https://api.gradio.app/gradio-initiated-analytics/ "HTTP/1.1 200 OK"

May I get some help, please?

I had the same problem. It seems that there's a change in the blocks package. Modify the infer-web.py script to use the default_concurrency_limit variable instead of concurrency_count.


WIP: Update to support v12+

add isJavaVersion(int) method

I have specifically chosen not to delete the isJavaX() methods, as they are public, and some are called in systemtest material, found in openjdk-systemtest repo.  Those can and should be removed/replaced with isJavaVersion(int) in a separate PR.
This also assumes that javaVersionOutput normalizes to 'openjdk version "XX', which also covers the case 'openjdk version "XX-internal'.  If that were to change in future versions, this will again have to be updated.

Keeping as WIP, until some grinders are run.

Grinders for jdk12:
https://ci.adoptopenjdk.net/view/work in progress/job/Grinder_Sandbox/127/
https://ci.adoptopenjdk.net/view/work in progress/job/Grinder_Sandbox/128/
Grinders for jdk8, jdk11 (openj9, hotspot):
https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/1035/
https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/1034
https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/1036/
https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/1037/


Memory allocation in impulseDynamics

This code detects memory allocation on the impulseDynamics. It's used the current signature in v2.7.1, I didn't try the latest changes, however, I believe the problem could be still there:
#define EIGEN_RUNTIME_NO_MALLOC

#include "pinocchio/multibody/model.hpp"
#include "pinocchio/multibody/data.hpp"
#include "pinocchio/algorithm/joint-configuration.hpp"
#include "pinocchio/algorithm/jacobian.hpp"
#include <pinocchio/algorithm/contact-dynamics.hpp>
#include "pinocchio/parsers/sample-models.hpp"

using namespace Eigen;
using namespace pinocchio;

using std::cout;
using std::endl;

int main() {
  Model model;
  buildModels::humanoidRandom(model);

  Data data(model);

  model.lowerPositionLimit.head<3>().fill(-1.);
  model.upperPositionLimit.head<3>().fill(1.);

  VectorXd q = randomConfiguration(model);
  VectorXd v(VectorXd::Random(model.nv));
  VectorXd a(VectorXd::Random(model.nv));

  pinocchio::computeJointJacobians(model, data, q);

  const std::string RF = "rleg6_joint";
  const std::string LF = "lleg6_joint";

  Data::Matrix6x J_RF (6, model.nv);
  J_RF.setZero();
  getJointJacobian(model, data, model.getJointId(RF), LOCAL, J_RF);
  Data::Matrix6x J_LF (6, model.nv);
  J_LF.setZero();
  getJointJacobian(model, data, model.getJointId(LF), LOCAL, J_LF);

  Eigen::MatrixXd J (12, model.nv);
  J.setZero();
  J.topRows<6> () = J_RF;
  J.bottomRows<6> () = J_LF;

  Eigen::internal::set_is_malloc_allowed(false);
  pinocchio::impulseDynamics(model, data, q, v, J, 0., true);
  Eigen::internal::set_is_malloc_allowed(true);
}

Remember that you need to compile in debug mode. If you name this file as test_impulse_derivatives.cpp, then this is a suggested compilation command:
g++ -I $(pkg-config --cflags pinocchio) -g test_impulse_dynamics.cpp -o test_impulse_dynamics

This is expected. As J and Gamma do not have fixed sizes.

The next release with new contact solver won't have this trouble.

I will close this issue. Feel free to reopen it if needed.

Ok, thanks for the support. I

Could you elaborate the explanation?
I don't see differences between the forward dynamics, where Pinocchio doesn't allocate memory.
For Crocoddyl team, it is quite important this issue. It creates issue for the multi-threading deployment (see. https://gepgitlab.laas.fr/loco-3d/crocoddyl/issues/286).
I know you're very busy, however, it would be extremely grateful if this issue can be solved in very short-term since we need to deploy MPC in our robot. Please do not close the issue before propagate the solution

It is just allocating memory at the first call. Not during the second normally. Can you check it?

Yes, I confirm that it only allocates memory during the first call of impulseDynamics

@jcarpent do you know when it could be available the new impulse function?

There is no way to avoid this. Matrix J has a variable number of rows, it is of type Matrix<Scalar,Dynamic,Dynamic>. This implies that the size of all related quantities such as JMinvJt cannot be known a priori and is also of type Matrix<Scalar,Dynamic,Dynamic>. Therefore

When Data is created, these matrices have size 0
When the method is first called, the memory is allocated through the assignment operator
When the method is called a second time, the memory is already allocated from the first call, therefore it is not reallocated

This is the same for forwardDynamics
You will only incur into a problem if you repeatedly call impulseDynamics and/or forwardDynamics with J being of different size.
If you find yourself in this situation, and you really want to avoid the allocations, my suggestion is to use different Data objects for the different cases.

Thanks @gabrielebndn for these explanations.
Reading again @cmastalli's comment:

Cause I don't see any difference between the forward dynamics, where Pinocchio doesn't allocate memory.
it is worth mentioning that both impulseDynamics and forwardDynamics do memory allocation at the first call. You have not seen one this allocation because you were certainly using the same Data.
To avoid memory allocation, and contrary to what @gabrielebndn mentioned, there are two ways:

fix a maximum size for the contact matrices (J, JMinvJt, etc) using Eigen features but it will be limiting the total number of possible contacts
add a function initForwardDyanmics which will perform the allocation before any use of
forwardDynamics. This is the strategy I've chosen to implement in the new code for contact dynamics solvers.

@cmastalli Be patient, it will come soon. Before the end of the month, I hope so. But for sure, as the allocation is done only once in your program, it should not be limiting.

@jcarpent thanks a lot for the effort!
I understand that it shouldn't limit myself, however I have wrong behavior when I use the impulses in a multithreading app. In this case I am using the new API of the impulse dynamics.

@gabrielebndn thanks for the explanation.

@cmastalli Can you provide a link for the multi-threading in your code? I will copy past it to make sure evrything goes fine ;)

@cmastalli Can you provide a link for the multi-threading in your code? I will copy past it to make sure evrything goes fine ;)

I developed the impulse dynamics here: https://github.com/loco-3d/crocoddyl/blob/devel/src/multibody/actions/impulse-fwddyn.cpp.
Is this what you need?

I believe you want to point to the memory alloc here:
https://github.com/loco-3d/crocoddyl/blob/devel/src/multibody/actions/impulse-fwddyn.cpp#L68
Yet @jcarpent was mentioning multi-threading.

Sorry, I close my answered too early. Multi-threading is done in the shooting calc-diff:
https://github.com/loco-3d/crocoddyl/blob/devel/src/core/optctrl/shooting.cpp#L65

I am coming again to this topic since it's preventing the deployment of multi-threading applications in Crocoddyl.
I would like to have a better idea of why we encounter problems only for the impulse dynamics. Note that this doesn't happen in the case of forwardDynamics. Any idea?

impulse and forward dynamics are based on the same routines. There is no reason. Again, please provide self content examples to highlight your issues.

@jcarpent thank you for your response. I checked again my implementation, and the issue could be in my side. Let me copy the part of my code for computing the impulse derivatives:
  pinocchio_.gravity.setZero();
  pinocchio::computeRNEADerivatives(pinocchio_, d->pinocchio, q, d->vnone, d->pinocchio.dq_after - v,
                                    d->multibody.impulses->fext);
  pinocchio_.gravity = gravity_;
  pinocchio::getKKTContactDynamicMatrixInverse(pinocchio_, d->pinocchio, d->multibody.impulses->Jc.topRows(ni),
                                               d->Kinv);

As you can see, I change the gravity which might create problems in a multithreading app. Note that my goal in this piece of code is to compute dtau_dq.
So my question to you is "how can I cancel dgrav_dq without modifying the gravity vector?

PD: I could create another Pinocchio model to solve this issue, but it is not a nice solution.

there is this feature already impremented in Pinocchio and called computeGeneralizedGravityDerivatives.

there is this feature already implemented in Pinocchio and called computeGeneralizedGravityDerivatives.

Awesome, thank you so much for a prompt response.
I will try this implementation, and keep you updated.

@jcarpent I implemented this solution. I confirm you that we don't have any issue in Crocoddyl.
For more details see: https://github.com/loco-3d/crocoddyl/pull/765.
This issue is still important but not relevant for Crocoddyl. Feel free to keep open or close it!

Done in pinocchio-3x which should be released soon.


Roll Flutter Engine from 7572fe5b9226 to c99baf29c33d (3 revisions)

https://github.com/flutter/engine/compare/7572fe5b9226...c99baf29c33d
2023-03-10<EMAIL_ADDRESS>Roll Fuchsia Linux SDK to 12.20230309.0.1 (flutter/engine#40231)
2023-03-10<EMAIL_ADDRESS>[Impeller] remove unused shader, format malioc diff (flutter/engine#40230)
2023-03-10<EMAIL_ADDRESS>Make FlutterTest the default test font (flutter/engine#40188)
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from 2R3ybztMdyKj to VFZ_BtgLOf7F
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jimgraham@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

AutoRoller is stopped; closing the active roll.


feat: disable stats when no tracer

 Created from VS Code using CodeStream

Could you please rename server/option_internal.go to server/option.go

done


Form editor for Deployments and Services

It would be helpful to have form editors for Deployments and Services - lots of yaml to keep track of..

Related - https://github.com/kubeshop/monokle/issues/204


Information about license

Hello, I can't find any information about it, I was wondering what is the license of this library to be used eventually in the context of a project I'm working on.

Hello,
Good catch, I forgot to add LICENSE file.
It will be a MIT License.
Thanks.


Fix: Adjusts DNS record table styles and removes update functions for Email Domains

Fixes the styling on the DNS record tables for custom domains and email domains, as well as removing the updateEmailDomain callback and form tags (same fix as #192, but for email domains this time).

I removed the redundant domain fields from the Manage components, and added headings. Also rearranged the Email page to match the Domains page.
Domains

Before
After

Email

Before
After


Display bug: Renamed columns

To reproduce: Rename a column, and inserting a new column before the renamed column. The result will be that the renamed column reverts back to its original column identifier.
Tested on version 3.7.0

This has been fixed.


loop with mandatory do

for i in foo do
    # ...
end

var i = 0
while i < 10 do
    # ...
end

loop do
    # ...
end

Following #1438, the last one returns a warning for a useless do block in the loop. We were so many to be trapped by #1437, I suggest to make the do mandatory in the loop to be closer to for and while constructs.

In for, while and with constructions there is something between the keyword and the block, so do is used to indicate the begin of the block.
In loop there is nothing so the do was considered useless (thus not added because KISS).
Note that in if statements, traditional then and else are used, there is no do.
I'm quite used to the do-less loop so I biased, I'm waiting for the opinion of others then.


typo in manual execution

mdatp --edr --earlyPreview true

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

ID: c91a5cfb-d32d-3864-c1d5-aec39558f66f
Version Independent ID: dbd2647e-88a6-ff22-4eab-ef628ac2e605
Content: Enable Microsoft Defender ATP Insider Machine
Content Source: windows/security/threat-protection/microsoft-defender-atp/endpoint-detection-response-mac-preview.md
Product: w10
Technology: windows
GitHub Login: @Dansimp
Microsoft Alias: dansimp

@officedocsbot assign @jvsam

See also issue ticket #5368
and PR #5378 (rejected).
See also issue ticket #5402
plus PR #5473 & #5474 .

I'm updating documentation to address this confusion. Will be live tomorrow.


Error: A value of type 'ListTileThemeData' can't be assigned to a variable of type 'ListTileTheme'.  -

/C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/settings_ui-1.0.0/lib/src/cupertino_settings_item.dart:76:51: Error: A value of type 'ListTileThemeData' can't be assigned to a variable of type 'ListTileTheme'.

'ListTileThemeData' is from 'package:flutter/src/material/list_tile.dart' ('/C:/src/flutter/flutter/packages/flutter/lib/src/material/list_tile.dart').
'ListTileTheme' is from 'package:flutter/src/material/list_tile.dart' ('/C:/src/flutter/flutter/packages/flutter/lib/src/material/list_tile.dart').
final ListTileTheme tileTheme = ListTileTheme.of(context);
^

Fixed. The package settings_ui needed to be updated.


Addition of dependabot.yml file

We need to add dependabot.yml file as it helps us to keep our dependencies up to date. Every day, it checks your dependency files for outdated requirements and opens individual PRs for any it finds.
@codervivek5  please assign me this issue under gssoc'23.

@codervivek5, I have a doubt about the level label as in the issue it is mentioned level2 and in PR you have given level1.


gcc: drop unused libelf dependency

gcc stopped using libelf in commit 48215350c24 ("re PR lto/46273 (Failed
to bootstrap)") around 2010, before gcc-4.6.0.
Description of changes

Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build gcc48 gcc49


[Mac] Microphone icon is not doing anything when clicked

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Version
4.11.0
Describe the bug
I want to use speech capabilities of the emulator on my mac but I can't because microphone is disabled.
To Reproduce

On composer start a bot that has app id and password set and has speech responses.
Microphone shows up but it's not clickable.

Expected behavior
I should be able to use microphone to talk to bot.
Additional context
https://www.electronjs.org/docs/api/system-preferences#systempreferencesaskformediaaccessmediatype-macos

After talking to @tonyanziano and creating a new microsoft app id and password. It worked and asked for mic permission automatically.


[wrappers] Don't re-source shellenv if already sourced

Summary
This fixes issue described by https://github.com/amithgeorge/devbox-nodejs-repro-20230406
It's not a perfect fix to all wrapper issues. Specifically:
USER=foo node -e "console.log(process.env.USER);"
will print the shellenv user instead of foo.
Will follow up with a fix for that.
cc: @amithgeorge
How was it tested?
Followed steps in https://github.com/amithgeorge/devbox-nodejs-repro-20230406
Added example that breaks in current release, passes in this PR

Although tempted to move that example to testscripts

@loreto yeah totally. I messed up


Android install instructions are incomplete.

Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

[x] I am running the latest version
[x] I checked the documentation and found no answer
[x] I checked to make sure that this issue has not already been filed
(This is an ongoing issue within your issues, updating the install instructions would resolve.)

Current Behavior
What is the current behavior?
Currently the install instructions for Android are incomplete. The MainApplication.java should be updated to reflect changes for soLoader, BLEPackage, and MainReactPackage. If you follow the current instructions you will run into TypeError: undefined is not an object (evaluating '_BleModule.BleModule.createClient')  when running a build on a device.
New behavior
Please describe the behavior you are expecting.
I am expecting to be able to install the lib from the README.md instructions.
Acceptance criteria
Please provide detailed steps to accomplish proposed feature.
In MainApplication.java add:
import com.polidea.reactnativeble.BlePackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;

public class MainApplication extends Application implements ReactApplication { ...
protected List<ReactPackage> getPackages() {
    return Arrays.<ReactPackage>asList(
           new MainReactPackage(),
           new BlePackage()
...

AND
  @Override
  public void onCreate() {
  super.onCreate();
  SoLoader.init(this, /* native exopackage */ false);
  }
}

Here is another example of the necessary steps for MainApplication.java
Breaking changes
Does a feature breaks compatibility with previous version?
This is an ongoing issue with all versions.

This did not fix the issue for me unfortunately. This issue as a whole seems to be a problem with Expo (after ejecting), because I see people saying "This is an issue with Expo but I fixed it" (and then not saying how >_>).

@Charanor I don't use expo for React-Native so I wont be much help to you! Ejecting may be your largest problem if you used create react app.


Allow matching against polymorphic collections

As discussed in #252, there are problems with matching against polymorphic collections.
This fix attempts to apply the PECS rule (producer extends, consumer super) to the Hamcrest IsIterableContaining matcher. In this instance, a collection of items should be treated as a producer according to this rule, while a matcher acts as a consumer. There was some confustion about PECS in the context of collections of matchers, but I'm hoping this change addresses those issues.
I'm keen for others to test this work out

Nice!
About PECS, INHO it is clear - the itemMatcher is consumer - it consumes the elements of the target collection to check them.It may check the element or any parent of the element (e.g. object != null). The output is producer - it produces global matcher for a whole collection and should be applied to collection of the elements or to collection of element's children.


Save IsSecure property of Portal Setting

Fixes #2874
Summary
Checks IsSecure. If true, encrypt the value before checking if it has changed.  Update stored procedure UpdatePortalSetting to properly save IsSecure in PortalSettings.
Note
I'm the developer that was @yog-it which is now my organization account.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: ryanjagdfeld sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


gatling for asynchrnous requests..

i want to achieve the asynchrnous requests to webservice without wait for response. the same request repetedly should be send to webservice irrespective of response from server. we would like to test how many cps a webservice can handle?
but could see that internally gatling uses response status and then next request request which is making sychrnous calls and we are not able to achieve the cps what we wanted.
using resources we can have parallel requests sent to webservice but we nedd same request send in asynchronous manner. can this be achievable in gatling?

Hi,
Please use our community mailing list for questions. This is a bugtracker, hence for issues and feature requests only.


how to show detecting result  in view

add to the body of the detected-event method following code:
Dispatcher.Dispatch(() => {
      barcodeResult.Text = e.Results[0].Value;
});

Where barcodeResult is your text element in your view.
If you want to alert it then do something like this:
await App.Current.MainPage.DisplayAlert("Barcode result", e.Results[0].Value, "OK");