Add FLAC Support

The code compiles... I did not test it yet. Opened PR eventually for early feedback on my shitty code quality or something like that :P
Will get my switch tonight and test it out later on, eventually push some small fixes.

Very cool to see this already! I was just getting started working on PR to add additional format support including FLAC. I notice that for FLAC you're only looking for Vorbis comments, however those are only used in OGG-FLAC files (aka FLAC files in the OGG container), while standard FLAC files (which are more common) actually use ID3 tags. So your implementation will not retrieve tags for many FLAC collections.
I'm working on adding TagLib to the project (an open source C++ audio tagging library) to allow reading tags from all possible file formats that TriPlayer would support. I've already written all the wrapper code for another app I'm working on to get tags and cover art from all common audio file types using TagLib, so I should be able to use that mostly as-is for TriPlayer once I can get TagLib building.
Once I get that working, I'll pull your FLAC decoding code into my branch and add OGG, OPUS, and WAV support as well since those have Switch ports ready to go in devkitpro (except for WAV decoding, but there's a public domain single-file C implementation called libwav available from the Dreamcast homebrew scene that should be easy to implement as it's a very simple format and WAV files unofficially use ID3 tags as well so tag support is easy). Lastly I'll be working on adding AIFF support as I happen to have a large collection of AIFF files that I use for DJing and they are very similar to WAV files as far as decoding goes as long as they're acutally AIFF and not AIFF-C which are lossy compressed audio in the AIFF container (though those are extremely rare in real-world usage).

Very cool to see this already! I was just getting started working on PR to add additional format support including FLAC. I notice that for FLAC you're only looking for Vorbis comments, however those are only used in OGG-FLAC files (aka FLAC files in the OGG container), while standard FLAC files (which are more common) actually use ID3 tags. So your implementation will not retrieve tags for many FLAC collections.

Actually it's the standard to use vorbis tags in FLAC's, and not defined anywhere in the standard to use ID3. As far i have seen only EAC does embed ID3 into flacs by default.
As a convenience, the reference decoder knows how to skip ID3v1 and ID3v2 tags. Note however that the FLAC specification does not require compliant implementations to support ID3 in any form and their use is strongly discouraged. From the xiph page.
I crosschecked my 200GB flac library for this too, and everything has vorbis tags.

I'm working on adding TagLib to the project (an open source C++ audio tagging library) to allow reading tags from all possible file formats that TriPlayer would support. I've already written all the wrapper code for another app I'm working on to get tags and cover art from all common audio file types using TagLib, so I should be able to use that mostly as-is for TriPlayer once I can get TagLib building.

TagLib is pretty nice!  I think it would be preferable above a selfwritten impl but in the end it's the choice of the owner ;)

Actually it's the standard to use vorbis tags in FLAC's, and not defined anywhere in the standard to use ID3. As far i have seen only EAC does embed ID3 into flacs by default. Ogg-FLAC is a completely different container

Interesting, I was just going off of something I picked up in the TagLib docs while working on another project, but I didn't actually check my personal FLAC collection to verify. I think I misread some note they made in one of their FLAC classes. They have a TagLib::FLAC as well as TagLib::Ogg::FLAC namespace and mentioned something about OGG-FLAC not being common--which is true, as you said--and I inferred that to mean that Vorbis tags were not common either. That's what I get for making assumptions without testing! I have a significant FLAC collection and could have easily verified before spreading misinformation.

TagLib is pretty nice!  I think it would be preferable above a selfwritten impl but in the end it's the choice of the owner ;)

No worries, I've already been chatting with tallbl0nde about it on Reddit and he's cool with using TagLib. He mentioned he had actually tried to use it originally, but had issues compiling it. After spending all afternoon trying to get it to compile, I can definitely see why he had issues. It's a CMake project and doesn't play nice with DevKitA64's Switch CMake toolchain. I eventually gave up fighting with CMake and created a custom Makefile for it and now it's compiling fine!
I just finished confirming that it works by replacing the tag reading code in MP3.cpp with TagLib. Not only does it work, but it also greatly simplified the code needed to read the tags which is great. I can understand the viewpoint of reducing library usage in general and I tend to lean that way myself actually, but in my opinion it's worth it for audio tags as it makes it much simpler to support many audio formats without needing to write a bunch of code for each one and makes it easier to read other custom data in the future without writing new parsing code. In feel like it's kind of like writing your own JSON parser instead of using one off the shelf, just not worth the effort when so many well-tested libraries exist for it (not counting the effort it took to get TagLib compiling of course haha, but at least that's a one time thing).
I've already written all of the necessary code for another project to read tags (including custom ones) and cover art using TagLib from all the common formats, so we should be able to get a few more formats fully supported very quickly with little extra effort. Also, since TagLib will be in the Application portion of the project, there's no need to keep the binary size down to the absolute minimum for memory requirements like with the Overlay portion, so having an extra dependency shouldn't be a big deal.
Now that I have a proof of concept working, I'm going to clean it up a bit and completely replace the existing MP3 tag reading code with calls to TagLib. Then I'll add your FLAC decoding and playback code and implement tag reading via TagLib for that as well. Then I'll see if I can quickly add OGG and Opus support since those libs are already in the Switch portlibs, then move on to WAV, AIFF, and AAC. I've already got the TagLib code written for all of those formats, so it should be trivial to add them now.
If possible, I'll try and cherry-pick what I can directly from your branch so that you have full credit on the commits for the FLAC support, but if for some reason I can't, I'll make sure to credit you in the commit message(s).

Thanks for the PR! As @einsteinx2 mentioned, he's essentially going to look at handling everything relating to supporting more audio formats.
 First, could you add some comments similar to where I've placed them? They don't have to be too fancy, just more or less so I and others can easily tell what a function/block of code does. And second, I noticed your code style seems to sometimes change. Could you make it a bit more consistent with mine? (mainly just with putting braces on the same line, I'm personally not a fan of having them on new lines). I know they're not huge things, it's just I tend to like everything to be pretty consistent. Otherwise, it looks like you've integrated FLAC support pretty much how I imagined! :)
Once again thanks for the PR, we'll see how @einsteinx2 goes with everything and go from there.

we'll see how @einsteinx2 goes with everything and go from there.

@tallbl0nde Just finished cleaning up the TagLib implementation for MP3 files. It significantly reduced the size and complexity of MP3.cpp. Now it doesn't even need the init/exit stuff anymore as there aren't any static references hanging around. In fact, that class is now just 2 methods: getArtFromID3 and getInfoFromID3.
I used one of the other library's Makefiles as a template and wrote a custom Makefile for TagLib located at Application/libs/taglib.mk which builds it as needed for the Switch, bypassing their CMake configuration entirely. The cool thing is we can still use the stock upstream TagLib without any changes, as the Application Makefile (very minimal changes there) and taglib.mk (the real meat and potatoes) handle everything. Also the Makefile is written in such a way that it should not break if they shuffle things around in the TagLib repo later and we decide to update to the latest version which is nice.
I'll go ahead and open a PR in a moment for the MP3 changes so you can review it, but I'll work off of that branch to add in vrilly's FLAC support as it will share the TagLib changes.
I've tested the changes extensively on my device, and it seems to be working great, so full steam ahead on adding all the other audio formats!

PR is ready :) https://github.com/tallbl0nde/TriPlayer/pull/16

I'm going to close this as I've merged in working code to handle FLAC audio files.


Don't enable nodeinit on EKS when not needed

Recent changes to helm charts make nodeinit not necessary on EKS, let's enable it only on older versions.
Don't merge it until https://github.com/cilium/cilium/pull/24134 is backported and released (version check might require changes)

1.13.2 has required changes, I think it's OK to merge this one (after I figure out what happened with CI runs)

rebased, should be ready to merge after CI passes


Uniques V2 Roadmap 2022 (Tracking Issue)

Goals
The main goal is to apply the best standards we currently have in the NFTs space while keeping the pallet as generic as possible.
Roadmap
Changes to the existing core (Uniques V1):

[x]  auto-incremental collections ids (https://github.com/paritytech/substrate/pull/12223)
[x] new approvals structure (Discussion thread) (https://github.com/paritytech/substrate/pull/12178)
[x] feature flags (bitflags) https://github.com/paritytech/substrate/pull/12367
[ ] 	nested ownership (Discussion thread)
[x] support tips when buying an NFT (https://github.com/paritytech/substrate/pull/12168)

New features:

[x]  new minting methods (Discussion thread) https://github.com/paritytech/substrate/pull/12483
[x] Atomic NFTs swap https://github.com/paritytech/substrate/pull/12285
[x]  smart attributes (as described here) https://github.com/paritytech/substrate/pull/12702
[ ]  multi-assets support
[ ]  new methods to sell NFTs with off-chain signatures (Discussion thread)
[ ]  basic support for marketplace functionality (Discussion thread) (https://github.com/paritytech/substrate/pull/12189)

Nice to have:

[x]  refactor roles (extract into a separate data store) https://github.com/paritytech/substrate/pull/12437
[x]  extract logic into features/[feature].rs files https://github.com/paritytech/substrate/pull/12570
[x]  advanced claiming options (Merkle tree claims, claims with the off-chain signature) https://github.com/paritytech/substrate/pull/13158
[x] support 1155 token standard https://github.com/paritytech/substrate/pull/12565

What would the new approvals structure exactly be? Could you please provide a bit more details on that? Is there a document where these tasks are a bit more detailed?

This issue has been mentioned on Polkadot Forum. There might be relevant details there:
https://forum.polkadot.network/t/uniques-pallet-nfts-september-update/410/2

What is multi-assets support?

This issue has been mentioned on Polkadot Forum. There might be relevant details there:
https://forum.polkadot.network/t/uniques-pallet-nfts-september-update/410/4

@JayPavlina tips is an opt-in approach to royalties, rather than building royalties, and knowing that users can bypass it easily using things like wrapping the token.
In this case, there is still a way for an original NFT creator to get paid some portion of a sale, which is via the TIP feature. You can imagine, if you buy any NFT on a platform which supports tips, they will make sure that the final purchase transaction handles the TIP amount, and the artist is paid. Obviously this is something that needs to be supported by the platform, but this is already true for enforcement of royalties

@JayPavlina Multi-assets support is the ability to specify the price for your NFT in a non-native token.
No dex or conversion between tokens will be supported. If you set the price in USDC, then it will be possible to buy that NFT with USDC only.
Re smart attributes, I'll add them to the roadmap. Thanks for the heads up!

Can you include support for SFTs (semi-fungible tokens, which are supported in EIP-1155) in the roadmap as well? Major NFT marketplaces have been supporting it for a while already.

I'll put it into Nice-to-have section for now. I think we should merge the new pallet into the master once we get the opened pull requests ready + the smart attributes implemented. After that, we could start to gather feedback and think about the next wave of improvements

The mint call/dispatchable currently requires an item to be specified, which could lead to transactions failing with AlreadyExists in a hyped public mint which sells out in seconds. Perhaps consider adding an option which allows items to be automatically assigned based on a requested quantity, to allow minting more than one item in a single transaction. This may also require mint limits per transaction and transaction limits per mint phase tho, depending on mint mechanics.
PS - There also currently does not seem to be a way to determine how many items have been minted (CollectionDetails.items) from another pallet, which could be used to determine the next item identifier to use with the current api.

Hey, I think we are going to the wrong path here, I don't think Uniques pallet should support more features (auto-incremental collection id, nested ownership, etc)...
In my opinion, instead we should go to a path where we make Uniques minimal and easy to extend with new features, otherwise soon we will need to implement Uniques V3, because V2 doesn't support all features the community needs.
Example of things we want:

Bonding Curves (I way for paying for minting tokens based in a curve)
Handlers, like the DustRemoval in pallet-balances or transfer OpenZeppelin's ERC20, which makes possible to us to extend and react to events that happens in the uniques pallet.

Try to predict all use cases often imply flawed design, I would prefer a very simple and generic pallet that allow us to extend the mint/burn/freeze operations, pretty much like how Ethereum's ERC-721 provides an interface and allow us to customize the behavior.

In my ideal world, instead of Features Flags, I think the uniques pallets should be extensible pretty much like how Substrate's SignedExtra allow us to extend Transactions, this way the community can focus on build extensions, instead create their own Unique's Pallet.

This issue has been mentioned on Polkadot Forum. There might be relevant details there:
https://forum.polkadot.network/t/statemint-update-roadmap/1200/1

This issue has been mentioned on Polkadot Forum. There might be relevant details there:
https://forum.polkadot.network/t/polkadot-release-analysis-v0-9-37/1736/1


New version: Google.Chrome version 131.0.6778.140

Pull request has been created with komac v2.8.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

Closing this


Add condition number as quasiconvex atom

Is your feature request related to a problem? Please describe.
Currently, lambda_max / lambda_min is not quasiconvex in CVXPY:
import cxvpy as cp

A = cp.Variable((2, 2))
objective = cp.lambda_max(A) / cp.lambda_min(A)
objective.is_quasiconvex() # False

Describe the solution you'd like
I'd like to add a (quasiconvex) atom, cp.condition_number(A).
Describe alternatives you've considered
Make cp.lambda_max / cp.lambda_min work.

Technically, condition number is only quasi-convex on the set of positive definite matrices. Refer to MOSEK's modeling cookbook for an example showing how to do this. (Printed page 57, PDF page 60, https://docs.mosek.com/MOSEKModelingCookbook-letter.pdf)

Thanks for sharing, @rileyjmurray. I hadn't previously read that cookbook; it's excellent!
I loved this bit:

In other words, we present simple convex building blocks, which can then be
combined into more elaborate convex models. We call this approach extremely disciplined
modeling. With the advent of more expressive and sophisticated tools like conic optimization,
we feel that this approach is better suited.

Oh yeah, I love their modeling cookbook. I think it should be required reading for anyone who uses  convex optimization in their research. It's super short, shows you a huge number of tricks, and covers a large range of applications. I also got a laugh out of the "extremely disciplined modeling" bit!

Hey @rileyjmurray! I would like to work on this issue as was suggested by you. Kindly guide me through the process of working on this issue.

Hi Parth. Sorry, my bandwidth is actually pretty limited right now. Maybe @phschiele could help?

@rileyjmurray Sure, we'll figure out some details on Discord.
Perhaps besides the atom itself, we could leverage this to add (at least high-level) instructions for adding an atom.

completed


Question How to call a function from a custom event function?

I'm submitting a ...  (check one with "x")
[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request
[x]question

Hi,
In this example: https://stackblitz.com/edit/angular-pyszeh
I need to call a function from a custom event function but I am unable to call that
ie. from clickEvent($event) function I am unable to call calledFromClickEvent function
when console.log(this) it shows MyInputComponent(I think this is the problem).When I try to call
it is showing an error. How to solve this..? pls help

Angular version: 5

https://stackblitz.com/edit/angular-nynatp
      this.fields[0].templateOptions.clickEvent = ($event) => this.clickEvent($event);
      this.fields[1].templateOptions.clickEvent = ($event) => this.clickEvent($event);

Thank u.. this worked... another thing I want to change the label of field 1 eg: In this
https://stackblitz.com/edit/angular-nnskbp
inside calledFromClickEvent function I am adding this.fields[1].templateOptions.label =  'New Text';
to change the text of field 1 but its not changing how to do that?

you have to add label wrapper for ag-select type:
https://stackblitz.com/edit/angular-ueukda

yes this works.. similarly I have a select component in this case I need eg:
this.fields[1].templateOptions.options= this.getOptions() ; but this is not working


Moved mismatch computation to be called only once. Modifed front end frequency

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/mango-prb/114/
Test FAILed.

Merged build finished. Test FAILed.

Jenkins, test this please.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/mango-prb/115/
Test PASSed.


Fix some code style issues reported by codacy

Is your feature request related to a problem? Please describe.
Codacy has reported a few issues to fix that relate to the code style: https://app.codacy.com/gh/mlcommons/GaNDLF/issues/current?levels=Warning&categories=CodeStyle
Describe the solution you'd like
Fixing this should improve readability.
Describe alternatives you've considered
N.A.
Additional context
N.A.

Hi @sarthakpati can you please assign this issue to me.


Add Mandibular Scalar volume selector, Mandible Model/segment and Fibula model/segment

Would it be good if we add   to the top,

[x] Mandibular Scalar Volume selector

[x] Mandibular model/segment selector

[x] Fibula model/segmenet selector

I can't think of a reason to add the fibula scalar volume now.

To simplify things, we should probably require mandible and fibula segmentation (not models) as inputs. If for any reason someone has a model, it can be converted to segmentation in Segmentations module.

This is done

@cmfsx is there any reason to forbid users to use only 3D models to plan the surgery? E.g. they may choose the wrong resection margins in some cancer case because they can't validate the plan with the CT after finishing it


siextentn and siextents derivation

Is your feature request related to a problem? Please describe.
Hello, I'm new to the tool, so appologies, if the issue is premature.
I'm trying to create a diagnostic for one of the IPCC figures. One of the features I need, is to derive siextentn and siextents  (they are in the CMOR Tables for CMIP6, but not for CMIP5). The variable is not in ESMValCore/esmvalcore/preprocessor/_derive yet. What should I do now?
Would you be able to help out?
Being said, I'm new to the tool, but good enough in python programming. I think, I have enough skills to create a derivation script. The question is what to do with CMIP5 data?
Thanks in advance,
Liza
main_log_debug.txt
recipe: (the diagnostic doesn't do anything yet, just writes out 'Run successful')
documentation:
description: |
plots scatter plot 3_18 for IPCC AR6 WGI Ch 3
authors:
- malinina_elizaveta
preprocessors:
3_18_preproc_NH:
regrid:
target_grid: 1x1
lon_offset: True
lat_offset: True
scheme: nearest
extract_month:
month: 2
extract_region:
start_longitude: 0
end_longitude: 360
start_latitude: 50
end_latitude: 90
3_18_preproc_SH:
regrid:
target_grid: 1x1
lon_offset: True
lat_offset: True
scheme: nearest
extract_month:
month: 9
extract_region:
start_longitude: 0
end_longitude: 360
start_latitude: -90
end_latitude: -50
datasets:

{dataset: ACCESS-CM2, institute: CSIRO-ARCCSS, grid: gn, project: CMIP6, mip: SImon, exp: historical, start_year: 1979, end_year: 2014, ensemble: r1i1p1f1} # locally
{dataset: ACCESS-ESM1-5, grid: gn, project: CMIP6, mip: SImon, exp: historical, start_year: 1979, end_year: 2014, ensemble: r1i1p1f1} #@locally
{dataset: CanESM5, grid: gn, project: CMIP6, mip: SImon, exp: historical, start_year: 1979, end_year: 2014, ensemble: "r(1:2)i1p1f1"}
{dataset: INM-CM4-8, grid: gr1, project: CMIP6, mip: SImon, exp: historical, start_year: 1979, end_year: 2014, ensemble: r1i1p1f1}
{dataset: INM-CM5-0, grid: gr1, project: CMIP6, mip: SImon, exp: historical, start_year: 1979, end_year: 2014, ensemble: r1i1p1f1}
{dataset: MPI-ESM1-2-LR, grid: gn, project: CMIP6, mip: SImon, exp: historical, start_year: 1979, end_year: 2014, ensemble: r1i1p1f1}

diagnostics:
ipcc_ar6_wg1_fgd_3_18:
description: plot the sie scatter plots
variables:
siextentn:
preprocessor: 3_18_preproc_NH
derive: true
siextents:
preprocessor: 3_18_preproc_SH
derive: true
scripts:
ipcc_ar6_wg1_fgd_3_18:
script: seaice/sie_ipcc_ar6_wg1_fgd_3_18.py

I remember Daniel did something with sea ice extent before. Found a ncl diagnostic that calculates it in
https://github.com/ESMValGroup/ESMValTool/blob/master/esmvaltool/diag_scripts/seaice/seaice_aux.ncl
Might be possible to use this as a base?

I am not sure if it is a good idea to do a derived variable for the siextentn/s, although is the most direct way. I doubt mainly because  if you go this way and produce the timeseries as a derived variable it is not easy to extend / customize to get the extent for a specific region, which is something that my colleagues usually request a lot.
My advise will be to compute it in the diagnostic.
Anyway, If you want to create siextents and siextentn just to compare CMIP5 and CMIP6 oututs, what you need to do, apart from the derication script,  is to create the definitions for those vars in esmvalcore/cmor/tables/custom. You can take any of the existing ones as a model and just copy the values from their CMIP6 definition

Thank you @bettina-gier and @jvegasbsc ! I'll proceed with diagnostic calculation then.


docs: vite only replace __dirname, __filename, import.meta.url in cjs

Description
fix #6946

Additional context

What is the purpose of this pull request?

[ ] Bug fix
[ ] New Feature
[x] Documentation update
[ ] Other

Before submitting the PR, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Read the Pull Request Guidelines and follow the Commit Convention.
[x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[ ] Ideally, include relevant tests that fail without this PR but pass with it.

@patak-dev Can we merge this?

Update Docs. please in Multi-Page App. There is still no update for __dirname in docs. Thanks.

Update Docs. please in Multi-Page App. There is still no update for __dirname in docs. Thanks.

fixed in https://github.com/vitejs/vite/pull/9121


facebook's elements need update

Could you please help me to do necessary updates to work with Facebook profiles

It is working. I guess UID was supposed to be alphanumerical

Could you please help me to do necessary updates to work with Facebook profiles

Any update if got this to work ?


fix coverage

Codecov Report

Merging #73 (12789ee) into master (9df60ef) will increase coverage by 0.10%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #73      +/-   ##
==========================================
+ Coverage   36.27%   36.37%   +0.10%
==========================================
  Files           6        6
  Lines         681      679       -2
==========================================
  Hits          247      247
+ Misses        410      408       -2
  Partials       24       24

Impacted Files
Coverage Δ

cmd/dnspyre/plot.go
0.00% <ø> (ø)

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


Renamed tests for better readability

Codecov Report
Base: 98.61% // Head: 98.61% // No change to project coverage :thumbsup:

Coverage data is based on head (1915568) compared to base (6b582b7).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #33   +/-   ##
=========================================
  Coverage     98.61%   98.61%
  Complexity       33       33
=========================================
  Files            10       10
  Lines            72       72
  Branches          1        1
=========================================
  Hits             71       71
  Misses            1        1

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Add system metadata class

Processor.process() takes metadata, which is used to directly initialize SysOutputInfo. However, these are essentially different data (especially, "metadata" $\subset$ SysOutputInfo, but not $=$) and the current implementation makes some confusion around this:
The most significant abuse around this behavior is that FileLoaderMetadata is implicitly converted into SysOutputInfo. This shouldn't work unless explicit conversion: https://github.com/neulab/ExplainaBoard/blob/4cec0a01cbe2617e9a67a440be25ee4252f792b2/integration_tests/ner_test.py#L148-L154
To this end, we need:

A struct defining the system metadata.
Change the behavior of Processor to take the system metadata, not a dict.
Either:

A conversion method between system metadata and FileLoaderReturn/SysOutputInfo
Include system metadata as a direct member of FileLoaderReturn/SysOutputInfo

Sounds like a good idea, I agree


qemu: 2.7 -> 2.8, drop 2.7

cc https://github.com/NixOS/nixpkgs/issues/22128 it seems everything passes nicely with 2.8: https://prs.nix.gsc.io/eval/527?compare=master#tabs-now-succeed cc @fpletz @edolstra @globin

Small nitpick :)
From qemu changelog:
 Build dependencies

    QEMU does not depend anymore on libuuid.

http://wiki.qemu.org/ChangeLog/2.8#Build_dependencies

Merged / backported.


Socket Id changes always

Hi,
I try to create a chat application. So, i need to know the socket id of the person.  But the socket id always changes .
In my cfig/bootstrap.js, i have this script:
module.exports.bootstrap = function (cb) {
	var passport = require('passport'),
    initialize = passport.initialize(),
    session = passport.session(),
    http = require('http'),
    methods = ['login', 'logIn', 'logout', 'logOut', 'isAuthenticated', 'isUnauthenticated'];

  sails.removeAllListeners('router:request');
  sails.on('router:request', function(req, res) {
    initialize(req, res, function () {
      session(req, res, function (err) {
        if (err) {
          return sails.config[500](500, req, res);
        }
        for (var i = 0; i < methods.length; i++) {
          req[methods[i]] = http.IncomingMessage.prototype[methods[i]].bind(req);
        }
        sails.router.route(req, res);
      });
    });
  });

  sails.io.on('connect', function (socket){
	  console.log(sails.sockets.id(socket));
  });

  cb();
};

I should have one socket id displayed in the console.
But this value always changes . The result:
"
FK27GROQcLu5EnzJAAAr
9g_wxoefQ9Kp2EAvAAAs
A5EcRPX0LJZPmzTqAAAt
PPeggxEFoeGiD-tfAAAu
1uOMUAxaivskwOxgAAAv
rV8GaEU4Hpb8OjRdAAAw
bG6X_wSffC8UEkSLAAAx
awQqASE-ni1nr73FAAAy
MTXiltDd8lwKZYwGAAAz
Sb_Ddk7gjhKi_KnxAAA0
ZQxJxTG1Kz7qnN0AAA1
0YUs1XBwhQ39o94JAAA2
T807XvHCCv_Ltfb5AAA3
jX3EKeIuxU4j6GtsAAA4
IAmebE9oXI__NBg4AAA5
6Zcm_gjBr0uhSBq9AAA6
p2p_r70T-19Q4kHFAAA7
VSRnhJsygnbbt7LqAAA8
Vk7EHHY17Pld1BSTAAA9
V5H9rq8E4bVa7j4OAAA-
LEnaKkKxNuRIvciAAAA
r_SEvTPv6NB9dXnqAABA
cDcIO5oKe94z2OQwAABB
"
. So, what to do to not have the socket id always changing ?.
Thanks for advance.

Hi @torresl, thanks for using Sails.  This forum is for reporting bugs in the Sails core.  For support in the future, please visit StackOverflow, our Google Group, or our chat room.

First of all, by deliberately subverting the Sails router you're kind of defeating the purpose of using the framework at all.  But as for your question about socket IDs, you're logging every time a new socket connects, so of course they'll always have a new ID.  You may be confused about how websockets work--they're not like browser sessions, which use cookies to maintain state across requests to the same site by the same browser.  Sockets last only as long as the client--i.e. a single browser window or tab--is open.

Thanks for your response.  I created a chat application.  I use the sails.sockets.blast(eventName, data); method and my eventName parameter is the  userid i want to send a message. It works well. But i suppose, as this method sends the event to all users, if there are a lof users , it may have performance problems. what do you think about it ?. Probably, it's better for performance reasons to use the sails.sockets.emit( socketIds, [event], data) method. You just have to pass the socketId of the user you want to send a message. But as the socket id always changes, you need always to save in a database like redis the  new association userid and socketid when the socketid changes. Are there risks to have bugs ?.  What is your point of view about it ?.

You will rarely if ever use emit or blast.  The most common methods for chat are join, leave and broadcast: subscribe each socket to a user "room", and then broadcast messages for that user to that room.  This allows for a single user to have multiple sockets (i.e. multiple windows/tabs) open.  You can use Sails' models and built-in pub/sub functionality to make this easier.  See the SailsChat sample app for details, as well as the resourceful pub/sub documentation.


Python3 topic and group names must be bytes objects

In Python3, string startswith does not support bytes object arguments and bytes startswith does not support string object arguments.
Because of this, topic name strings given as a key to client.topics result in a traceback:
File "... /python3.4/site-packages/pykafka/cluster.py", line 141, in _should_exclude_topic
    return topic_name.startswith(b"__")
TypeError: startswith first arg must be str or a tuple of str, not bytes

After passing the topic name as a bytes object instead, that issue stopped. Then other strangeness happened when attempting to get a balanced consumer from a topic with a specified consumer_group. When the consumer group was specified as a string object keyword argument to get_balanced_consumer, a NoPartitionsForConsumerException occurred. This was fixed by passing the consumer group as a bytes object as well.

Hi @kylebamos, thanks for checking this in. Please see this comment explaining why these functions don't support python3 strings. Essentially it's a need for consistency across the entire public API with methods that send their inputs directly to kafka. Since we pass messages to kafka without encoding them according to any particular string encoding, we'd like the entire public API to behave consistently. I've also opened this pull request to provide a clearer error message in these cases.

Just a note, because I remember when we had that earlier discussion I couldn't find clear docs on what encodings are allowed in topic/group names. According to this it's a really limited set: https://issues.apache.org/jira/browse/KAFKA-495?focusedCommentId=13463303
decided to ALLOW only ASCII alphanumeric characters and underscore and dash


Remove unused and duplicate code in DistributedZkUpdateProcessor

Description
There is dead code and duplicate code in DistributedZkUpdateProcessor. This PR removes some of it.
Solution
Please provide a short description of the approach taken to implement your solution.
Tests
No new code.
Checklist
Please review the following and check all that apply:

[x] I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
[ ] I have created a Jira issue and added the issue ID to my pull request title.
[x] I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
[x] I have developed this patch against the main branch.
[x] I have run ./gradlew check.
[ ] I have added tests for my changes.
[ ] I have added documentation for the Reference Guide

Could you create a JIRA issue for this PR to give it more visibility?
I agree it's only a cleanup, but since I investigated to be sure of the dead code removal, for me it means it's not fully trivial so I expect to have a JIRA in this case.

@bruno-roustant JIRA ticket has been created: https://issues.apache.org/jira/browse/SOLR-17054

Thanks Vincent, let's merge it!


[not ready] Implement match_arm_forces_newline option (#2039)

This is an attempt at implementing #2039. I don't quite understand rewrite_match_body function yet, I just played around with some parameters until it indented as I wanted.

I think this PR was previously misunderstood -- I now added examples which hopefully make the intention here more clear. This flag when combined with wrap_match_arms: false does not change block-ness of an arm, but it consistently indents all arm bodies no matter how long the arm is or whether it was a block or not.
This style may seem weird to others (especially the empty block case) but I like this a lot because I know exactly where to look for the body when I see a match expression.
I understand if we don't want to merge this (I may be the only user of this). I kinda wish that rustfmt was more customizable and allowed to have this effect via some combination of existing flags. I think that's currently not possible. If anyone know a flag that's (1) more useful than that and (2) allows indenting match arms this way when combined with some other flags I'd be more than happy to implement that.

Thanks for adding tests! Could you add documentation of the option to https://github.com/rust-lang-nursery/rustfmt/blob/master/Configurations.md please? r+ with that.

Done! Thanks for the review. Let me know if you want me to rename the flag, it may be impossible to rename after publishing it.

Great, thanks!


Bug in lis2dw12_acceleration_raw_get

The function "lis2dw12_acceleration_raw_get" is giving incorrect sensor results along X-, Y- and Z-axis since it doesn't ignore 2 Least significant bits on OUT_X_L (28h), OUT_Y_L (2Ah) and OUT_Z_L (2Ch).
****** Current Implementation ******:
val[0] = (int16_t)buff[1];
val[0] = (val[0] * 256) + (int16_t)buff[0];
val[1] = (int16_t)buff[3];
val[1] = (val[1] * 256) + (int16_t)buff[2];
val[2] = (int16_t)buff[5];
val[2] = (val[2] * 256) + (int16_t)buff[4];
****** Actual implementation must be ******
val[0] = (int16_t)buff[1];
val[0] = (int16_t)((val[0] << 8) + buff[0]);
val[0] = (int16_t)(val[0] >> 2);
val[1] = (int16_t)buff[3];
val[1] = (int16_t)((val[1] << 8) + buff[2]);
val[1] = (int16_t)(val[1] >> 2);
val[2] = (int16_t)buff[5];
val[2] = (int16_t)((val[2] << 8) + buff[4]);
val[2] = (int16_t)(val[2] >> 2);

The function "lis2dw12_acceleration_raw_get" is giving incorrect sensor results along X-, Y- and Z-axis since it doesn't ignore 2 Least significant bits on OUT_X_L (28h), OUT_Y_L (2Ah) and OUT_Z_L (2Ch).
****** Current Implementation ******:
val[0] = (int16_t)buff[1];
val[0] = (val[0] * 256) + (int16_t)buff[0];
val[1] = (int16_t)buff[3];
val[1] = (val[1] * 256) + (int16_t)buff[2];
val[2] = (int16_t)buff[5];
val[2] = (val[2] * 256) + (int16_t)buff[4];
****** Actual implementation must be ******
val[0] = (int16_t)buff[1];
val[0] = (int16_t)((val[0] << 8) + buff[0]);
val[0] = (int16_t)(val[0] >> 2);
val[1] = (int16_t)buff[3];
val[1] = (int16_t)((val[1] << 8) + buff[2]);
val[1] = (int16_t)(val[1] >> 2);
val[2] = (int16_t)buff[5];
val[2] = (int16_t)((val[2] << 8) + buff[4]);
val[2] = (int16_t)(val[2] >> 2);

@prashant091088
The lis2dw12_acceleration_raw_get() returns the raw values read out from the sensors. The value must be shifted after using the raw_get(). If you see the lis2dw12_STdC/examples/lis2dw12_read_data_polling.c file there is the following code:
      lis2dw12_acceleration_raw_get(&dev_ctx, data_raw_acceleration);
      acceleration_mg[0] = lis2dw12_from_fs2_to_mg(
                             data_raw_acceleration[0]);
      acceleration_mg[1] = lis2dw12_from_fs2_to_mg(
                             data_raw_acceleration[1]);
      acceleration_mg[2] = lis2dw12_from_fs2_to_mg(
                             data_raw_acceleration[2]);

The implementaion of lis2dw12_from_fs2_to_mg() is like this:
float_t lis2dw12_from_fs2_to_mg(int16_t lsb)
{
  return ((float_t)lsb) * 0.061f;
}

0.061f is used instead of 0.244f, because the ">> 2" shift that you are talking about.
Does it make sense to you?

@avisconti
Thanks for your clarification.
and just for suggestion, we can save some CPU cycles by using left shifting instead of multiplying by 256.
-- val[0] = (val[0] * 256) + (int16_t)buff[0];
++ val[0] = (val[0] << 8) + (int16_t)buff[0];

@avisconti
Thanks for your clarification.
and just for suggestion, we can save some CPU cycles by using left shifting instead of multiplying by 256.
-- val[0] = (val[0] * 256) + (int16_t)buff[0];
++ val[0] = (val[0] << 8) + (int16_t)buff[0];

@prashant091088
Yes, I was about to replying also on this yesterday, but after few checks I had some doubts.
Let me explain. I have been told that the reason for using *256 insteade of bitwise operation is because the former method guarantees that it works for both endiannes. But after looking on Google I was not so sure. I will keep investigating on this anyway. Thanks for suggestion.


Folder size increasing

Hi,
The folder size for  /opt/sdfs/volumes/awspool/ddb is increasing and if i delete any files, they are getting recreated by downloading from s3 bucket.
Its already reached 300GB full and need some alternate solution to reducing the size of the volume.
Thanks.

Can you post the details from the configuration files like /etc/sdfs/awspool-volume-cfg.xml


A way to control Apple Cinema Display 20" model A1038 brightness

Before opening the issue, have you...?

[X] Searched for existing issues
[X] Read through the Monitor-Troubleshooting Wiki
[X] Updated MonitorControl to the latest version (if applicable)

Describe the issue
Hello,
is there a way to control Apple Cinema Display's brightness from Mac OS High Sierra running on a Mac mini 2012?
The display is an old Apple Cinema Display 20" model A1038 Clear Enclosure.
I tried to install Snow Leopard Server on Parallel Desktop 13, but the brightness cursor in Monitor preferences doesn't show up.
Furthermore, Monitor Control 2.1 utility doesn't work with the Apple Cinema Display 20" model A1038.
Any suggestions?
Thanks.
Expected behavior

Monitor Control 2.1 utility doesn't work with the Apple Cinema Display 20" model A1038.
In the virtualized Mac OSX Snow Leopard, the brightness cursor in Monitor preferences doesn't show up.

Anything else?

Environment Information (please complete the following information)
- macOS version: 10.13 High Sierra
- Mac model: Mac mini 2012
- MonitorControl version: 2.1
- Monitor(s): Apple Cinema Display 20" model A1038 Clear Enclosure.
- Monitor Cable(s)/Connection(s): ADC-DVI-Thunderbolt
- Apple Silicon/M1 (yes or no): No

I am afraid this won't be possible. As far as I know the display requires a combination of USB connection and native display detection. These are certainly obfuscated by the virtual machine environment (even if you could route the direct USB connection, the direct DVI connection won't be there, maybe if you could somehow emulate an EDID towards the virtual machine)?
I'll convert this into a discussion, maybe more clever people can say something about it. :)


get_raster_crs

Consider harvesting and returning the crs from def get_raster_resolution(raster_path). Like so:

def get_raster_resolution(raster_path):
    raster = gdal.Open(raster_path)
    raster_geotrans = raster.GetGeoTransform()
    x_res = raster_geotrans[1]
    y_res = -raster_geotrans[5]

    prj = raster.GetProjection()
    crs = osr.SpatialReference(wkt=prj)

    return x_res, y_res, crs

this will render def get_raster_crs(raster_path): and rasterio unnecessary.
your import will then be:
from osgeo import gdal, osr

What would be the gdal equavalent to this / how can I do this with gdal?

def extract_dtm(dsm_path, ground_dem_path, non_ground_dem_path, radius, terrain_slope):
    """
    Generates a ground DEM and non-ground DEM raster from the input DSM raster.
    Input:
        dsm_path: {string} path to the DSM raster
        radius: {int} Search radius of kernel in cells.
        terrain_slope: {float} average slope of the input terrain
    Output:
        ground_dem_path: {string} path to the generated ground DEM raster
        non_ground_dem_path: {string} path to the generated non-ground DEM raster
    """
    cmd = "saga_cmd grid_filter 7 -INPUT {} -RADIUS {} -TERRAINSLOPE {} -GROUND {} -NONGROUND {}".format(
        dsm_path, radius, terrain_slope, ground_dem_path, non_ground_dem_path
    )
    os.system(cmd)

@AdrianKriger  Thanks for your inputs.
For (2), There is no gdal equivalent that I know of.


fix: Load "none" (-1) value properly when reopening Others annotation page

This PR solves the issue in affective annotation Others mode when marking a "nie wiem" checkbox (in which case, the value is saved as -1 in db), and then user closes the project and reopen it, the checkbox won't be marked. The issue happens with both slider and textlabel inputs in Others mode. However, the issue does not affect the other modes, because only the Others mode contain "nie wiem" checkboxes that are treated as -1 value.
With this fix, "nie wiem" checkboxes should be reloaded correctly for both slider and textlabel inputs.
Notable:

Because the question "Czego życzę autorowi tego tekstu?" is open question but it can be marked as "none" (-1), there is this "quirk" : when user marks the field as "nie mam życzeń", and then closes the annotation page, and then reopens it, now the checkbox is marked, the textfield is disabled, but the string "-1" is visible inside the textfield. But I think this is rather minor. 😓 I tried to make the text inside the textfield white/transparent when the value is "-1" but I couldn't make it work....

What's changed:

frontend/components/tasks/affectiveAnnotation/inputs/Slider.vue : Added v-model to change the checkbox value dynamically
frontend/components/tasks/affectiveAnnotation/inputs/TextfieldWithSeq2Seq.vue : Added v-model to change the checkbox value dynamically
frontend/pages/projects/_id/affective-annotation/index.vue : Adjustment in the code that handles marking and unmarking checkbox

Screenshots:

Thank you for your nice work! I have tested and it works oke! I also see the minor problem with the "-1" in text field, when I added an answer then I changed my mind and click to "Nie mam,,," then in the database my previous answer also becomes "-1". But yeah it's pretty minor, I will see later if I can do something in the backend, if the value is "-1" then it will be removed or something. But now I think it's oke. Approved for merging!

Thank you! But I have a question now.... 😅 I thought that we want to distinguish "not giving any answer at all" (which is like the user hasn't responded at all to the question) and "i don't have any answer" (which is like the user is marking the checkbox)? For the latter case, we set the value as -1. Because of that, I think the backend side doesn't need to change anything....

Thank you for your nice work! I have tested and it works oke! I also see the minor problem with the "-1" in text field, when I added an answer then I changed my mind and click to "Nie mam,,," then in the database my previous answer also becomes "-1". But yeah it's pretty minor, I will see later if I can do something in the backend, if the value is "-1" then it will be removed or something. But now I think it's oke. Approved for merging!

Thank you! But I have a question now.... 😅 I thought that we want to distinguish "not giving any answer at all" (which is like the user hasn't responded at all to the question) and "i don't have any answer" (which is like the user is marking the checkbox)? For the latter case, we set the value as -1. Because of that, I think the backend side doesn't need to change anything....

Ah yeah I forgot that so just let it be XD I thought that they were the same but yeah I could be different XD

Hello, I have tried your code and unfortunately I found a bug in which when I only clicked I dont have wish without typing anything, nothing will be saved in the database :"))  I included the video here:
https://watch.screencastify.com/v/8nFylU7KewQTfa3siGlQ
as for the -1 bug, it can be solved by adding a check to :value property in TextField...seq.vue
        <v-text-field
          :disabled="!enableTextfield"
          small
          dense
          readonly
          :value="stringifiedAnswers === '-1' ? '' : stringifiedAnswers"
          :rules="rulesTextfield"
          hide-details="auto"
        />

This approach will be neater with the use of computed value or get and set (check TextfieldModal) but this is fine XD

Hello, I have tried your code and unfortunately I found a bug in which when I only clicked I dont have wish without typing anything, nothing will be saved in the database :")) I included the video here: https://watch.screencastify.com/v/8nFylU7KewQTfa3siGlQ
as for the -1 bug, it can be solved by adding a check to :value property in TextField...seq.vue
        <v-text-field
          :disabled="!enableTextfield"
          small
          dense
          readonly
          :value="stringifiedAnswers === '-1' ? '' : stringifiedAnswers"
          :rules="rulesTextfield"
          hide-details="auto"
        />

This approach will be neater with the use of computed value or get and set (check TextfieldModal) but this is fine XD

Oh, I see, thank you very much for catching the bug. I will investigate it -- most probably due to a flawed logic in the nullifyWishToAuthor and the restoreWishToAuthor..... Also thank you again for the solution with not showing -1, I had a tunnel vision and couldn't see such a simple solution! XD XD

Hello, I have tried your code and unfortunately I found a bug in which when I only clicked I dont have wish without typing anything, nothing will be saved in the database :")) I included the video here: https://watch.screencastify.com/v/8nFylU7KewQTfa3siGlQ
as for the -1 bug, it can be solved by adding a check to :value property in TextField...seq.vue
        <v-text-field
          :disabled="!enableTextfield"
          small
          dense
          readonly
          :value="stringifiedAnswers === '-1' ? '' : stringifiedAnswers"
          :rules="rulesTextfield"
          hide-details="auto"
        />

This approach will be neater with the use of computed value or get and set (check TextfieldModal) but this is fine XD

Hello, I have fixed the bug 😅 I apologize for it. I think it should work correctly now. Would you please check again?

I have tested it again, and it works fine, good job! Considering our current workload, I will not add any more comments, so I will approve it for the time being. But next time, it would be great if you can add a variable called noWishFlag = -1, for example, because I think people who are new to this codebase will have a hard time understanding the -1 flag everywhere XD Just for consideration.

You are right 😅 I have refactored it and put the -1 and "-1" values into nullFlag variables. Thank you! I will merge the PR soon. :)


[Bug] The interface returns an error when update user info

Search before asking

[X] I searched in the issues and found nothing similar.

Paimon UI version
main
Compute Engine
Flink
Minimal reproduce step

"Required request body is missing."
I found the backend interface does not have execution logic. So I guess the front end does not use body requests.
What doesn't meet your expectations?
The front end should use body requests.
Anything else?
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

Through my testing I found this issue has been resolved, so I will close it.


Binary Search Trees

Based on the implementation of Binary Search tree and its functions
Implemented following functions
bool IsEmpty();
void Search(template value)
Void InsertWithoutDuplication(template value)
Void InsertWithDuplication(template value)
Traversing a binary tree in pre-order, in-order, and post-order.
Implement a function that prints the smallest value of a BST.
Implement a function that prints the largest value of a BST.
Implement a function to calculate the height of a BST.
Implement a function that calculates the depth of a BST.

Don't forget to star this repository.


How to use hands free bluetooth?

Hi,
We're trying to use this library inside an app made to be used in a car.
We want to listen to audio messages with the car's bluetooth and record the radio at the same time (with the phone mic).
Problem is, we seem to be unable to record radio and use bluetooth at the same time.
We believe hands free protocol might be a solution, I couldn't find any information on its use with this library, any idea?
Thanks!

Why do you think it is an issue with the library?

Hey, thanks for your answer.
I don't think it's an issue, sorry if I'm in the wrong category, I want to know how to switch from A2DP protocol to HFP protocol with the library, any idea?
Thanks

This is a BLE library (hence react-native-ble-plx) it has no support for A2DP and I have no information about HFP but I doubt it is implemented on BLE

Ok, my bad, any chance you have knowledge of a way to have support A2DP/Hands Free Protocol with React Native?
Thanks

Unfortunately not

Ok thanks man


Support for GORM V2

Any plans to update for use with GORM V2?  The Open function has a bit different usage than V1.

I'm using it with gorm v2.
conn, _ := sql.Open(mocket.DriverName, "mockdsn")
db, err = gorm.Open(mysql.New(mysql.Config{
		Conn:                      conn,
		SkipInitializeWithVersion: true,
}))


Other resources for Wordle solutions

https://jonathanolson.net/experiments/optimal-wordle-solutions
https://notfunatparties.substack.com/p/wordle-solver

"Best" certainly needs to be clarified :D
https://jonathanolson.net/experiments/optimal-wordle-solutions is (barring any bugs) the "best" word today, curious what helps the most for us humans when we can't use an optimizer for more than the first guess?
Is getting the most number of letters the most helpful? Or is it reducing the buckets of words the you need to search through? Seems like the later!


Moving multiple files or renaming modules doesn't refactor imports

Environment data

Language Server version: v2023.12.1
OS and version: Windows 11 Home 10.0.22631 Build 22631
Python version (& distribution if applicable, e.g. Anaconda): Python 3.12.1 & Pylance language server 2023.12.1 (pyright a78e2b10)

Code Snippet

1st gif:
https://github.com/microsoft/pylance-release/assets/80996688/fada3e2f-5427-4e1d-80eb-adf116e8ff9a
2nd gif:
https://github.com/microsoft/pylance-release/assets/80996688/170f7436-acb2-4c8d-b281-83562adcbd9a
Expected behavior
1st gif:
Moving multiple files should refactor both imports
2nd gif:
Renaming module should refactor imports
Actual behavior
Both cases it doesn't refactor imports statements
Logs

Nothing is output in logs

Sounds like an enhancement to enable automatic updating of import paths when you rename or move a file in VS Code.

Sounds like an enhancement to enable automatic updating of import paths when you rename or move a file in VS Code.

The feature already exists, as you can see in the videos. It just breaks when moving multiple files.

Good point, it only repros when:

moving multiple files at once.
rename a directory.


"" Is imported by "", but could not be resolved – treating it as an external dependency.

Environment
2.0.0
Node 19
Reproduction

Describe the bug
When using unbuild I get:
"~~/utils/misc" is imported by "src/utils/intl.ts", but could not be resolved – treating it as an external dependency.
But it is defined in the tsconfig.json:
{
  "compilerOptions": {
    "lib": ["ESNext"],
    "module": "esnext",
    "target": "esnext",
    "rootDir": "./",
    "baseUrl": "./src",
    "outDir": "./dist",
    "moduleResolution": "bundler",
    "moduleDetection": "force",
    "allowImportingTsExtensions": true,
    "noEmit": true,
    // "composite": true,
    "strict": true,
    "downlevelIteration": true,
    "skipLibCheck": true,
    "jsx": "react-jsx",
    "allowSyntheticDefaultImports": true,
    "forceConsistentCasingInFileNames": true,
    "noUnusedLocals": false,
    "allowJs": true,
    "paths": {
      "~~": ["."],
      "~~/*": ["./*"]
    },
    "types": [
      "bun-types" // add Bun global
    ]
  },
  // "include": [
  //   "src"
  // ],
  "exclude": [
    "dist"
  ]

Additional context
No response
Logs
No response

Like what Daniel said you should tell rollup how to resolve alias.
// build.config.ts
import { URL, fileURLToPath } from 'node:url';
import { defineBuildConfig } from 'unbuild';

export default defineBuildConfig({
  alias: {
    '~~': fileURLToPath(new URL('./', import.meta.url)),
  },
  rollup: {
    inlineDependencies: true,
  },
});

Btw you still need inlineDependencies: true to use alias in unbuild, which is a bug fixed in #384 and released in v3.0.0-rc.2.


Customer Personality Analysis

ML-Crate Repository (Proposing new issue)
:red_circle: Project Title : Customer Personality Analysis
:red_circle: Aim : The aim of this project is analyze the given dataset using machine learning methods.
:red_circle: Dataset : https://www.kaggle.com/datasets/imakash3011/customer-personality-analysis
:red_circle: Approach : Try to use 3-4 algorithms to implement the models and compare all the algorithms to find out the best fitted algorithm for the model by checking the accuracy scores. Also do not forget to do a exploratory data analysis before creating any model.

📍 Follow the Guidelines to Contribute in the Project :

You need to create a separate folder named as the Project Title.
Inside that folder, there will be four main components.

Images - To store the required images.
Dataset - To store the dataset or, information/source about the dataset.
Model - To store the machine learning model you've created using the dataset.
requirements.txt - This file will contain the required packages/libraries to run the project in other machines.

Inside the Model folder, the README.md file must be filled up properly, with proper visualizations and conclusions.

:red_circle::yellow_circle: Points to Note :

The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Follow Contributing Guidelines & Code of Conduct before start Contributing.

:white_check_mark: To be Mentioned while taking the issue :

Full name :
GitHub Profile Link :
Participant ID (If not, then put NA) :
Approach for this Project :
What is your participant role? (Mention the Open Source Program name. Eg. HRSoC, GSSoC, GSOC etc.)

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

Complete your previous issue first @raysofani

@abhisheks008 I have completed JWoC one project can you assing me this task.
Hi @abhisheks008 , I would like to take up this issue!!
Full name : Pawas Pandey
GitHub Profile Link : https://github.com/pawaspy
Participant ID (If not, then put NA) : NA
Approach for this Project :+1:
EDA Processing
Feature engineering
Use 3-4 algorithm to Analyse and do the required Prediction.
What is your participant role? JWoC

Assigned @pawaspy


Question: Can 2 different applications consume Depth and Color independently using Real Sense SDK simultaneously.

Camera Model: D415
Firmware Version: <IP_ADDRESS>
Operating System & Version: Windows 10 Enterprise 1809                    |
SDK Version: 2.38.1
Language: C#
We are considering building 2 separate C# applications.  One will be designed to consume Depth data from the Intel RealSense D415 while other will consume RGB/IR.  Both of these application will be running simultaneously processing streams for 2 different use cases.  Is this possible with Intel Real Sense SDK?  Or only one process can be attached to a camera at a time?  In device manager, the Depth and RGB are listed as separate hardware so I am wondering if a process can simply attach to Depth and another process attach to RGB.

Hi @rajrajeswaran  The rules of the Multi-Streaming Model of the RealSense SDK allow for more than one process to use the same camera so long as each stream type ('endpoint') is only accessed once.  So if one process accesses Depth and the other process accesses RGB and IR then that should be fine.  The second process would not be able to access Depth as it would be claimed by the first process.
https://github.com/IntelRealSense/librealsense/blob/master/doc/rs400_support.md#multi-streaming-model

@MartyG-RealSense As always thank you for the quick turn around.  Appreciate the information.  I will close this.

You are very welcome.  As always, I am pleased to be able to help.  :)


Autoscale api model

What this PR does / why we need it:
Updates to the unversioned to support autoscaling in AKS.
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
None this is needed for work in AKS.
Special notes for your reviewer:
I didn't add parameter validation as for agentpools only it makes more sense to just happen in AKS for this. If we move this into standard acs-engine clusters when autoscalePool is set true we should make sure max and min counts are set and that Count is between them. And we should ensure Max and min aren't set when autoscalePool isn't set.
If applicable:

[x] unit tests
[x] tested backward compatibility (ie. deploy with previous version, upgrade with this branch)

Release note:

NONE

This has passed E2E before, and none of this is called anywhere in ACS-Engine. So I'm not going to trigger the e2e pr tests again. @jackfrancis can you take another look?


pytest colored output (with --color=yes) makes the test output log unreadable (by humans)

VS Code version
1.62.3
Extension version
v2021.11.1422169775
OS type
macOS
OS version
12.0
Python distribution
Other
Python version
3.9
Language server
Pylance
Expected behaviour
I expect the output log in  "Python Test Log"  to not display the control characters, for instance by stripping them, that is obtaining the following output:
============================= test session starts ==============================
platform darwin -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.1
rootdir: /Users/ogrisel/code/scikit-learn, configfile: setup.cfg
plugins: anyio-3.3.0, xdist-2.3.0, timeout-1.4.2, forked-1.3.0
collected 1 item

sklearn/impute/tests/test_base.py .                                      [100%]

- generated xml file: /var/folders/_y/lfnx34p13w3_sr2k12bjb05w0000gn/T/tmp-17017Jlww71GJ2jF6.xml -
============================== 1 passed in 0.07s ===============================

Alternatively, colors could be rendered in the log as they are when running the tests in a shell terminal:

Actual behaviour
The "Python Test Log" displays the color control characters such as  without rendering them:
============================= test session starts ==============================
platform darwin -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.1
rootdir: /Users/ogrisel/code/debugpytestvscode, configfile: setup.cfg
plugins: anyio-3.3.0, xdist-2.3.0, timeout-1.4.2, forked-1.3.0
collected 1 item

test_debug_vscode.py .                                                   [100%]

- generated xml file: /var/folders/_y/lfnx34p13w3_sr2k12bjb05w0000gn/T/tmp-24919mvRdR0hh0QGh.xml -
============================== 1 passed in 0.01s ===============================

Steps to reproduce
Create a new test Python test project, configure a Python interpreter with pytest installed and add a setup.cfg file containing:
[aliases]
test = pytest

[tool:pytest]
addopts = --color=yes

and a test file with a single test function, for instance a file named test_debug_vscode.py with the following content:
def test_donothing_but_pass():
    assert True

Then:
Shift-Ctrl-P > Python: Configure Tests > pytest > Use existing config file setup.cfg

Then launch the test by clicking on the green > icon in the VS Code UI and open the "Python Test Log" output view.
Logs
The Python log itself has no problem:
> ~/mambaforge/envs/dev/bin/python -m pytest --rootdir ~/code/debugpytestvscode --override-ini junit_family=xunit1 --junit-xml=/var/folders/_y/lfnx34p13w3_sr2k12bjb05w0000gn/T/tmp-24919pLfLJqAh0u2i.xml
cwd: ~/code/debugpytestvscode

Code of Conduct

[X] I agree to follow this project's Code of Conduct

The same (or a similar) bug was previously reported as #11497 but wasn't fixed because it was judged by @karrtikr to lack details to make it reproducible while the --color=yes options was already suspected as the culprit by @ksamuel in the discussion.
Hopefully the minimal reproducer above should make the cause of the problem clearer.

This StackOverflow question might help trim ANSI escape sequences from Python test log outputs:
https://stackoverflow.com/a/14693789/163740

This should be addressed as a part of re-writing the test adapter. #17242
Currently we parse the pytest output, that causes this problem.

Currently we parse the pytest output, that causes this problem.

Parsing is not the problem: the test runner can complete successfully with green markers everywhere. It's just the display in the "Python Test Log" output view that is unreadable.

@ogrisel I see, thanks for clarifying.

This StackOverflow answer might help trim ANSI escape sequences from Python test log outputs:

We don’t want to trim the color, we want to display the color.

The Python Test Log should produce the same colored output as when running pytest in the terminal, otherwise it is useless. Ideally it would also respect the pytest-sugar plugin IMO.

Color output is now possible on the new testing rewrite! The output will now go to the Test Result panel and this can use the color if enabled via including it in the pytest args.

@eleanorjboyd Thank you very much for this update! Just to clarify, by "testing rewrite" you mean – what? Is this something we'll likely see in the next release of the Python extension? :)

Hello! Sorry for the lack of clarity there, you can read about the rewrite which is under an experiment here: https://devblogs.microsoft.com/python/python-in-visual-studio-code-june-2023-release/ under Test Discovery and Execution Rewrite.
To use the rewrite yourself just add ”python.experiments.optInto": ["pythonTestAdapter"] to your user settings. You can confirm you have the rewrite enabled by setting your log level to trace, via the Developer: Set Log Level command in the command palette. Then check to see if Experiment 'pythonTestAdapter' is active is in your python logs.
Additional information on the change in output can be found here: https://github.com/microsoft/vscode-python/wiki/New-Method-for-Output-Handling-in-Python-Testing

Thank you very much, @eleanorjboyd!

Hello,
I tried ”python.experiments.optInto": ["pythonTestAdapter"], and I now have colored output in the test result window, which is cool. But noticed:

When running in debug, the output is not colored
The output displayed in the editor (the one that is displayed in a red window that you can fold/unfold next to the test declaration) is not colored, which is too bad, since that's the one I use the most
Is this expected ?

Hello @mehdigmira, I have just returned from vacation and will take a look at this shortly thank you for your detailed notes.
one quick question, @connor4312 do you know if the pop up window they are mentioning supports coloring the same way as the test result panel?


Change network discovery behavior

We shouldn't hardcode the behavior of network interface discovery and instead use parameters in the configuration file to let the user choose what they want to ignore
That way we will manage corner cases of users having loopback IP (ipvs, bgp etc)
And also create vlan interfaces, which is not working right now
I propose something like:
network:
  ignore_interfaces: "(dummy.*|docker.*)"
  ignore_ips: "(127\.0\.0\..*)"

A list of regular expressions to exclude would probably be simpler for users.


fix: validate rabin args

go-ipfs requires a min chunk size of 16 and will use that for the max/avg if they are set smaller than the min, so perform the same sort of validation.

Can do, though it's validated/defaulted by superstruct when the module is in use.

In that case I don't think it's necessary to re-validate

Ah, did it anyway - can't hurt 😄

Cool LGTM :)


Refactor: proper constant names

Description
Refactor: proper constant names
Type of change

[x] Refactor
[ ] New feature
[ ] Bug fix
[ ] CVE fix
[ ] Optimization
[ ] Documentation Update
[ ] Configuration Update
[ ] Bump-up dependent library
[ ] Bump-up library or tool used for development (does not change the final image)

/lgtm

/approve

/lgtm

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.82%. Comparing base (d3076b3) to head (7df0fb0).
Report is 52 commits behind head on main.

Additional details and impacted files

@@            Coverage Diff             @@
##             main    #1544      +/-   ##
==========================================
+ Coverage   94.75%   94.82%   +0.07%
==========================================
  Files          59       60       +1
  Lines        2631     2669      +38
==========================================
+ Hits         2493     2531      +38
  Misses        138      138

/override "ci/prow/e2e-ols-cluster-4-15"
/override "ci/prow/e2e-ols-cluster-4-16"
/override "ci/prow/images"


fix: handle .cts and .mts as typescript

🔗 Linked issue
Resolves #138
❓ Type of change

[ ] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)
[x] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[x] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
Handle .cts and .mts as typescript sources and generate them into the output
📝 Checklist

[ ] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

Merging to quickly move forward (please ping or feel free to PR for fixing if it is not complying any spec)


Remove login check for top level links

This way, all visitors, even those not logged in, will be able to the
top-level links to agents, jobs and so on.
Rationale: We do not have working authorization checks for the pages
anyway. If someone simply adds /jobs/ to the URL, they can view the jobs
list anyway. As it stands right now, this check is just a minor
annoyance at best and at worst will give users a false sense of
security.
We can readd this check once we do have real authorization.

Coverage remained the same at 65.01% when pulling 74681d2a8d9bd43fecc461f410fe7d40ae7418fc on guidow:no_login_check_for_tl_links into 255117a03a93960d8f0f91843069e24e0ad8b97d on pyfarm:master.

Coverage remained the same at 65.01% when pulling 74681d2a8d9bd43fecc461f410fe7d40ae7418fc on guidow:no_login_check_for_tl_links into 255117a03a93960d8f0f91843069e24e0ad8b97d on pyfarm:master.

Totally agree with this.  Matter of fact while I was working on debugging the jobtype loading improvements for the agent I basically did exactly what most have probably been doing and manually constructed the url....


Validation layer is not properly setup

It looks like winit always enables the extension, and sdl2 never enables the extension. Consequently, using winit would probably crash for anyone without the vulkan SDK installed, and using SDL2 will crash if validation is enabled.
On top of this, RendererBuilder::use_vulkan_debug_layer() looks backwards, so it does the opposite of what is intended.

Published skulpin build containing this fix last night


Build vscode: use split terminal for build tasks

I am always using Cmd+Shift+B to build VSCode and that opens 2 terminals:

I wonder if these 2 terminals should be split terminals in 1 group given we have cool support for this now?

//cc @Tyriar @meganrogge

Tasks supports this too. I'm going to push the tasks.json change for this and we'll see what the team things.

👏


[tests-only] Update composer.json

Description
Fixes a naming collision. The go modules try to use the vendor folder from the test php deps.
Solution: Change the name

Note: going down from PHP 7.4 to min 7.2 is OK. But in practice, I think that the test code has has PHP 7.3 and/or 7.4 parameter and return type declarations etc added to it. So the test code might not actually run with PHP 7.2.

I don't want to go down, i just took the composer.json from the edge branch and  modified it.

fixed

I don't want to go down, i just took the composer.json from the edge branch and modified it.

I am surprised. master gets merged into edge every few weeks, so composer.json should get updated in edge. If that is not happening, then I might make a PR to the edge branch to apply the PHP 7.4 change.

@ishank011 @labkode this should be merged to master to prevent collisions with the vendor folders from php deps and golang deps.

@ishank011 @labkode can we please have this merged?


Nova 5.0

Just came out today it seems. Probably not much to do other than version.

Done, thanks to @bashgeek. Seemed to work - give it a go on tag 5.0.0.


[Feature request] add a FilenamePrefix field under EFI in config.yaml

I'm dualbooting arch/void with zfsbootmenu.
On arch, I use LTS kernel, but not on void.
Both can build ZBM EFI image, I would them to have a filename which match.
On Arch:

vmlinuz-linux-lts.EFI
vmlinuz-linux-lts-backup.EFI

On Void:

vmlinuz.EFI
vmlinuz-backup.EFI

We can't force the EFI filename in the config file.
https://github.com/zbm-dev/zfsbootmenu/blob/master/etc/zfsbootmenu/config.yaml
Could you add a field FilenamePrefix ?
EFI:
  ImageDir: /efi/EFI/ZBM
  FilenamePrefix: zbm
  Versions: false
  Enabled: true

Which will produce zbm.efi and zbm-backup.efi.

Adding Prefix: zbm under the Kernel: header should accomplish this for you.


Proposal to get current available clusters on Google Maps

Use case
Currently there is no way to retrieve available clusters on Google Maps.
The GoogleMapsInspectorPlatform offers a method getClusters for testing, but there is no corresponding method in the main GoogleMapController.
There should be a way to get current cluster data directly from the primary controller managing Google Maps.
Proposal
Add the getClusters method directly to GoogleMapController to provide access to clustering data. This would make it easier to handle cluster-related operations within the primary map controller.
Or provide another way to get current clustered markers on map or listen to cluster changes.

@wangela FYI


Installing SAP HANA, express edition with Docker - persistence and restart

Once I got the docker container with HANA XE up and running and finished a minimal amount of testing (creating a schema and some tables), I shut the container down using the docker stop command.  On the console where I issued the initial docker run ... command, I observed:

Received signal: TERM
Removing trap for signal EXIT ...
Ignoring signals: QUIT INT TERM HUP ...
Stopping HANA ...
Initiating hard stop ...
14.02.2018 05:48:41
Stop
OK
Waiting for shutdown procedure to finish ...

However, I am not unable to get the container to stay up starting it with the docker start ... command.  It appears that I do have persistence date in the data and logs directory of my /hana/mounts directory.
What is the processing for starting up the container and restoring data from the persistence data?
Thanks!
lbe

Hi there,
To start and restore from persistence data, create the container on the same mounts.


Expose WrapCorsIfEnabled separate to HTTPServer

… and address feedback from improved linter, some of which highlighted genuine issues.

Codecov Report

Merging #68 (9a80c49) into main (18ea0dc) will decrease coverage by 0.12%.
The diff coverage is 95.49%.

@@             Coverage Diff             @@
##              main      #68      +/-   ##
===========================================
- Coverage   100.00%   99.88%   -0.12%
===========================================
  Files           60       60
  Lines         4232     4317      +85
===========================================
+ Hits          4232     4312      +80
- Misses           0        3       +3
- Partials         0        2       +2

Impacted Files
Coverage Δ

pkg/wsclient/wstestserver.go
95.28% <93.15%> (-4.72%)
:arrow_down:

pkg/auth/basic/basic_auth.go
100.00% <100.00%> (ø)

pkg/ffapi/apiserver.go
100.00% <100.00%> (ø)

pkg/ffapi/favicons.go
100.00% <100.00%> (ø)

pkg/ffapi/handler.go
100.00% <100.00%> (ø)

pkg/ffapi/query_fields.go
100.00% <100.00%> (ø)

pkg/ffapi/swaggerui.go
100.00% <100.00%> (ø)

pkg/fftypes/bytetypes.go
100.00% <100.00%> (ø)

pkg/fftypes/ffi.go
100.00% <100.00%> (ø)

pkg/fftypes/ffi_param_validator.go
100.00% <100.00%> (ø)

... and 6 more


Duplicate to previous section

Sections on Register Peering Service and Create a Peering Service Connection are duplicate?

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

ID: 694fbf84-abcd-6627-6a45-020bd723796f
Version Independent ID: 2b68532f-5093-ec9b-c4fc-7c6a665cbbbc
Content: Azure Peering Service: Create
Content Source: articles/peering-service/create-connection.md
Service: peering-service
GitHub Login: @derekolo
Microsoft Alias: derekol

Thank you for your detailed feedback.  We are looking into the issue, and we will respond when we have more information.

@mddazure Thanks for the feedback! It looks like the register & create doc have the same content.
I have assigned the issue to the content author to evaluate and update as appropriate.

#reassign:halkazwini

Duplicate content removed from the article.
#please-close

#please-close
This article file no longer exists


Type checking error when using github.paginate

When trying to use the paginate function like that:
org_id = "blabla"
github = GitHub("token")
for repo in github.paginate(github.rest.repos.list_for_org, org=org_id):
    print(repo)

I get the following type checking error in PyCharm 2023.1:
Unexpected type(s): ((org: str, type: Literal["all", "public", "private", "forks", "sources", "member"] | Unset, sort: Literal["created", "updated", "pushed", "full_name"] | Unset, direction: Literal["asc", "desc"] | Unset, per_page: Unset | int, page: Unset | int) -> Response[list[MinimalRepository]]) Possible type(s): ((org: str, type: Literal["all", "public", "private", "forks", "sources", "member"] | Unset, sort: Literal["created", "updated", "pushed", "full_name"] | Unset, direction: Literal["asc", "desc"] | Unset, per_page: Unset | int, page: Unset | int) -> Response | (org: str, type: Literal["all", "public", "private", "forks", "sources", "member"] | Unset, sort: Literal["created", "updated", "pushed", "full_name"] | Unset, direction: Literal["asc", "desc"] | Unset, per_page: Unset | int, page: Unset | int) -> Awaitable[Response]) ((org: str, type: Literal["all", "public", "private", "forks", "sources", "member"] | Unset, sort: Literal["created", "updated", "pushed", "full_name"] | Unset, direction: Literal["asc", "desc"] | Unset, per_page: Unset | int, page: Unset | int) -> Response | (org: str, type: Literal["all", "public", "private", "forks", "sources", "member"] | Unset, sort: Literal["created", "updated", "pushed", "full_name"] | Unset, direction: Literal["asc", "desc"] | Unset, per_page: Unset | int, page: Unset | int) -> Awaitable[Response])
running it works though.
I could fix that error, changing the following code (there are 3 overriden paginate methods, I did change all of them accordingly):
    @staticmethod
    def paginate(
        request: R[CP, CT],
        page: int = 1,
        per_page: int = 100,
        map_func: Optional[Callable[[Response[CT]], List[RT]]] = None,
        *args: CP.args,
        **kwargs: CP.kwargs,
    ) -> Paginator[RT]:
        return Paginator(request, page, per_page, map_func, *args, **kwargs)  # type: ignore

to
    @staticmethod
    def paginate(
        request: R,
        page: int = 1,
        per_page: int = 100,
        map_func: Optional[Callable[[Response[CT]], List[RT]]] = None,
        *args: CP.args,
        **kwargs: CP.kwargs,
    ) -> Paginator[RT]:
        return Paginator(request, page, per_page, map_func, *args, **kwargs)  # type: ignore

so not providing type arguments to R itself, which is not clear to me why this even works as R is not a generic type imho.

paginator func has overload types: https://github.com/yanyongyu/githubkit/blob/42de20d2012e95f0040909e61bcee3c1f1c72551/githubkit/github.py#L153-L176
the type annotations in the implement should be ignored by checker

I am using the builtin type check of PyCharm. The IDE highlights the errors. Its maybe a bug in the checker itself. It appeared to me that you would like to use the TypeVar from the function parameter for other uses. I am not an expert with python type annotations so maybe that is correct to do so.

Everything is OK in my VSCode with Pylance/Pyright :)

I tested your change in PyCharm, its basically the same error as before. As I said it might be a bug in the relevant analyser. I checked their issue tracker, and there there seem to be a couple of open issues. This also is a quite complex case.

Thanks to @RF-Tar-Railt, this issue has been confirmed and tracked by Jetbrains in PY-61022 & PY-61023. This issue maybe fixed in pycharm feature release.


Encrypt-chrisda to Master

Docs Build status updates of commit 4238bb3:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Get-MailDetailEncryptionReport.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-MailTrafficEncryptionReport.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/exchange.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/mapping/serviceMapping.json
:white_check_mark:Succeeded

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

Docs Build status updates of commit 9cb5ad5:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Get-MailDetailEncryptionReport.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-MailTrafficEncryptionReport.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/exchange.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/mapping/serviceMapping.json
:white_check_mark:Succeeded

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


Add custom panels in terminal VS Code Extension

I am trying to add a custom webview panel in the "terminal" vs code. Could you please help me with that?

You'll need to add the view to a custom view container that is registered to the panel, docs here https://code.visualstudio.com/api/extension-guides/tree-view#view-container


Documentation

Documentation with API reference for every function and a basic usage guide (will extend it to calculate power and cross spectra soon). Will be deployed directly using GitHub actions on link- https://github.com/StingraySoftware/Stingray.jl
(Depends on Earlier PR, also has merge commits, I will resolve them once earlier PR is accepted).

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@fc9473e). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #9   +/-   ##
=======================================
  Coverage        ?   93.32%
=======================================
  Files           ?        6
  Lines           ?      719
  Branches        ?        0
=======================================
  Hits            ?      671
  Misses          ?       48
  Partials        ?        0

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Switching Speakers

NOTE: For a feature to be created it has to be doable in the Amazon app because we are basically replicating the app for HA. If you can't find it in the app, we probably can't create it here.
Is your feature request related to a problem? Please describe.
N/A
Describe the solution you'd like
Im looking to see if there is a way to take whatever is currently playing on speaker A and play it on speaker B. Similar to how you can do it in the spotify app as well as the Alexa App (and Amazon Music).
Describe alternatives you've considered
Just using Spotify/AmazonMusic/Alexa apps to do the switching.
Additional context
What i would like to see is if there is a way to send a command to alexa to just switch whatever is currently playing on a speaker to a different speaker. Basically just changing the target.
Right now i have a dropdown list of all the speakers in HA, an automation that waits for that dropdown to change, and then it calls a script. The script has a variable that is set based on whichever media player has a state of playing to get the currently_playing speaker. Then based on the dropdown, i choose the new speaker to play music to and set its media_content_id and media_content_type. The problem is that the state attributes for the currently playing speaker doesnt provide enough information or im not using it correctly.
Here is my script:
alias: Switch Speaker
sequence:
  - variables:
      currently_playing: |
        {% set speakers = ['media_player.the_kitchen',
          'media_player.the_playroom', 'media_player.deck',
          'media_player.patio',
          'media_player.basement', 'media_player.gretas_room',
          'media_player.lucys_room', 'media_player.noahs_room',
          'media_player.master_bedroom']
        %} {%- for speaker in speakers -%}
          {% if is_state(speaker, "playing") %}
            {{ speaker }}
          {% endif %}
        {%- endfor -%}
  - service: media_player.play_media
    target:
      entity_id: >
        {% if is_state("input_select.speakers", "Kitchen") %}
        media_player.the_kitchen {% elif is_state("input_select.speakers",
        "Playroom") %} media_player.the_playroom {% elif
        is_state("input_select.speakers", "Deck") %} media_player.deck {% elif
        is_state("input_select.speakers", "Patio") %} media_player.patio {% elif
        is_state("input_select.speakers", "Basement") %} media_player.basement
        {% elif is_state("input_select.speakers", "Gretas Room") %}
        media_player.gretas_room {% elif is_state("input_select.speakers",
        "Lucys Room") %} media_player.lucys_room {% elif
        is_state("input_select.speakers", "Noahs Room") %}
        media_player.noahs_room {% elif is_state("input_select.speakers",
        "Master Bedroom") %} media_player.master_bedroom {% else %}
        media_player.the_kitchen {% endif %}
    data:
      media_content_id: |
        {{ state_attr(currently_playing, "media_title") }}
      media_content_type: music
mode: single

here are some of the state attributes for one of my speakers:
source_list: Local Speaker
volume_level: 0.68
is_volume_muted: false
media_content_type: music
media_duration: 3610
media_position: 195
media_position_updated_at: 2022-04-20T20:31:21.931634+00:00
media_title: Soothing Rainfall-relaxing Rain Nature Sounds-no Thunder
media_artist: Deep Sleep Systems
media_album_name: Jakes Sleep
source: Local Speaker
shuffle: false
entity_picture_local: /api/media_player_proxy/media_player.the_kitchen?token=[redacted]&cache=0cbb4b234a9dcf1d
available: true
last_called: false
last_called_timestamp:<PHONE_NUMBER>376
last_called_summary:
connected_bluetooth: null
bluetooth_list:
entity_picture: https://i.scdn.co/image/ab67616d0000b273b87ebac502c21d63f3780edb
friendly_name: The Kitchen
supported_features: 56253

Here are a few of the traces from the specific script.
Executed: April 20, 2022, 3:31:08 PM
Result:
params:
  domain: media_player
  service: play_media
  service_data:
    media_content_id: Soothing Rainfall-relaxing Rain Nature Sounds-no Thunder
    media_content_type: music
    entity_id:
      - media_player.deck
  target:
    entity_id:
      - media_player.deck
running_script: false
limit: 10

Im hoping there is a simple way of doing this. TIA!

Looks like i might be able to do something like this: https://community.home-assistant.io/t/setting-up-lovelace-accessible-alexa-multi-room-audio/276863
https://www.cnet.com/home/smart-home/how-to-move-music-with-alexa-on-amazon-echo-devices/


[MM-36058][MM-40572] Tray fixes

Summary
A few tray related fixes for Windows:

Added the option to override the tray icon colour
Re-added 'Minimize to tray'

Also added a mechanism we can use to migrate config items to different values when things change in the app.
Ticket Link
https://mattermost.atlassian.net/browse/MM-36058
https://mattermost.atlassian.net/browse/MM-40572
Closes https://github.com/mattermost/desktop/issues/1601
Closes https://github.com/mattermost/desktop/issues/1687
Restored 'Minimize to tray' option for Windows, added ability to override tray icon colour

/cherry-pick release-5.0

Cherry pick is scheduled.

Error trying doing the automated Cherry picking. Please do this manually
+++ Updating remotes...
Fetching upstream
Failed to add the RSA host key for IP address '<IP_ADDRESS>' to the list of known hosts (/app/.ssh/known_hosts).
From github.com:mattermost/desktop
   aa16706a..dc005df4  release-5.0 -> upstream/release-5.0
Fetching origin
Failed to add the RSA host key for IP address '<IP_ADDRESS>' to the list of known hosts (/app/.ssh/known_hosts).
+++ Updating remotes done...
+++ Creating local branch automated-cherry-pick-of-desktop-#1933-upstream-release-5.0-1643925172
Switched to a new branch 'automated-cherry-pick-of-desktop-#1933-upstream-release-5.0-1643925172'
Branch 'automated-cherry-pick-of-desktop-#1933-upstream-release-5.0-1643925172' set up to track remote branch 'release-5.0' from 'upstream'.

+++ About to attempt cherry pick of PR #1933 with merge commit adf494e944e6fc813d3852b31e71ec5839540d38.

error: could not apply adf494e9... [MM-36058][MM-40572] Tray fixes (#1933)
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
!!! git cherry-pick failed

+++ Aborting in-progress git cherry-pick.

+++ Returning you to the master branch and cleaning up.


lora_recv_async delivers chunks of 32 bytes

Describe the bug
While lora_recv is working as expected, when using lora_recv_async, i receive chunks of 32 bytes in my callback. E.g.
void lora_receive_cb(const struct device *dev, uint8_t *data, uint16_t size,
		     int16_t rssi, int8_t snr)

For a packet with size more than 32 bytes, it will call the callback one time with size being 32 and then another time with the rest and so on. It's worth mentioning though that the data in data looks correct, the second time it is appended and the array contains all data. However in the second call i have on information and i would expect to see only one callback.
Anything i'm doing wrong? What could be the problem?
Thanks :)

To Reproduce
Run the samples for receiver and send packets longer than 32 bytes. Callback will be called multiple times even for one packet.
Synchronous reception works fine.

Expected behavior

Callback is called only one time per packet
Impact

Renders async receive function unusable for my usecase.

Nevermind, i found the problem on my end


Helper format_duid() for DUID input

format_duid() takes an input string and tries to be nice to the user, massaging the input string as best it can to try and put it into the format that is expected for putting into the config. This should be a convenience for users, specially if they paste a 14-component DUID from a log file into here.
The validation code that set $input_errors[] was in the section that was actually applying the changes. If you input a non-valid string, that would be reported, but also "The changes have been applied successfully."
The validation code has been moved higher up so that non-valid conditions are correctly reported and save is not done.

Nice!

Comments addressed. In the end $formatted_dhcp6duid var is not needed at all.

str_pad() used. The code is getting more compact.


Helm Deployment Example

We need a Helm relicaset example for demos

You can try either persistent MongoDB cluster Helm chart https://github.com/kubernetes/charts/tree/master/stable/mongodb-replicaset
or
http://blog.kubernetes.io/2016/09/creating-postgresql-cluster-using-helm.html

we have another issue tracking this work

I did a quick search for replicaset in the issues, but I wasn't not able to find the other issue tracking this work. Would it be possible to link to it in a comment here?


Android Basics: classes-and-inheritance

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-classes-and-inheritance?return=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-classes-and-inheritance#4
In which task and step of the codelab can this issue be found?
Implement floorArea() for RoundTower
8
Note: For the area values, it would be a nicer user experience to only show a couple of decimal places. This is out of scope for this codelab, but you could print the floor area using this: println("%.2f".format(floorArea))
Describe the problem
println("%.2f".format(floorArea)) -> println("Floor area: %.2f".format(floorArea()))
Steps to reproduce?

Go to...
Click on...
See error...

Versions
Android Studio version:
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.

@gszesiek
Thank you so much for reporting this issue. This issue is fixed and will be published soon..


downgrade maven-bundle-plugin to version 3.2.0 to fix build on travis

(workaround for travis-ci/travis-ci#7517)

This is a read only repository. Please close it and create a request in JIRA and add a diff or explain what you need.

Sorry, I have update the title and the description.
By the way: Even read-only non-git repositories by can merge pull requests by:

Convert the pull request to a patch by appending .patch to the pull request URL e.g. https://github.com/apache/pdfbox/pull/37.patch
Close the pull request adding closes #pull-request-number to a commit message (e.g. closes #37).

Of course I can create a jira issue for this, but I thought demonstrating with a pull request that this change fixes the pdf-box build on travis to be more effective.

Yes you should still create a JIRA issue. Every commit is related to a JIRA issue, never to a github issue.

Am 05.05.2017 um 10:42 schrieb Tilman Hausherr:

Yes you should still create a JIRA issue. Every commit is related to a JIRA
issue, never to a github issue.

The issue should be solved. The maven guys did some magic with the repository.
So, no need to downgrade the version of the plugin.
Andreas

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/apache/pdfbox/pull/37#issuecomment-299412477, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AEEKyXs28sdyiKqCfxSXeh4s2qRILjCTks5r2uDZgaJpZM4NPuba.


Release 0.18.0

Fixes #414

Coverage remained the same at 86.547% when pulling a0be7635ff338d0ed43adfef767fceb7b00abd22 on philipc:release into<PHONE_NUMBER>21983d32e5dee7f9583a2e3b6877bd on gimli-rs:master.


github templates

github templates from gluonnlp
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Job PR-135/1 is complete.
Docs are uploaded to http://gluon-ts-staging.s3-accelerate.dualstack.amazonaws.com/PR-135/1/index.html

Codecov Report

Merging #135 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #135   +/-   ##
=======================================
  Coverage   79.02%   79.02%
=======================================
  Files         110      110
  Lines        6385     6385
=======================================
  Hits         5046     5046
  Misses       1339     1339


tplimpl: Return false in "in" func when looking for nil

When looking for nil in set of string, the in function should return false.
E.g.: in({[]string{"a", "b", "c"}, nil) will return false
Fixes #3225

Thanks @moorereason, so the l itself doesn't allowed to store nil value?
I'm going to fix it.
And should I rebase my commit or it's ok to add new commit for this pull request?

@ajiyakin this is totally my fault, I did not follow up on this PR. Your code looks very good, but in the meantime, we have moved the code around. The func in question is now below tpl/collections. Could you move your fix to the correct file?

Sorry @bep, I'm late.
I'm gonna check it out.

I think there's already line that handle this within master branch. So we can close #3225 then.


Nether: no glowstones/glowdust

It appears there is no glowstone or glowdust generated at all in the Nether at the moment.

@NiLSPACE This is something for you, isn't it? A new clump-like generator :)
For each chunk, generate a few sets of XZ sizes, then for each set generate XYZ coordinates that will fit the XZ size within the chunk (thus forming a box that is completely inside the chunk), then check the top center block of this "box" if it has a solid block above an air block, and finally generate random glowstone within the box, possibly with the noise being more dense toward the top center of the box.
This way the generator will work with our per-chunk generating, and it will be even capable of generating glowstone in normal world, should anyone wish to set it up so.

I could sure as well try ^^
I was actualy working on the dungeonrooms generator to not generate above the composition.

How is this?:

Looks ripe for picking! ;)
On Sun, Apr 19, 2015 at 7:06 PM, NiLSPACE<EMAIL_ADDRESS>wrote:

How is this?:
[image: Img1]
https://camo.githubusercontent.com/0672bd5a218e2e0d683dfc70d5c601c3845f210e/687474703a2f2f7075752e73682f686a7773422f393630316539383634332e6a7067
[image: Img2]
https://camo.githubusercontent.com/19b14460dcba5a80e545a9407481e9f7f8b9cc6d/687474703a2f2f7075752e73682f686a7777492f653636646539656465662e6a7067
—
Reply to this email directly or view it on GitHub
https://github.com/mc-server/MCServer/issues/1863#issuecomment-94297055.

@jammet This sounds like a bug. You should open an issue for that

@SphinxC0re I think that is because the quartz block doesn't use the Ore blockhandler yet.
@jammet The glowstone blocks drop a few glowstone dusts like they should.


Symptoms Checker Navigation Buttons get hidden/inaccessible behind symptoms

After starting the symptoms checker, the forwards and backwards navigation buttons get hidden behind the symptoms themself. Need to adjust them to adjust dynamically under the symptoms.

I've resolved this issue locally - just need to get access to add labels and get reviewers..