1.4.5 ignores set headers

im setting header and its being ignored
Expected Behavior
added header to request headers
Current Behavior
header is ignored
Possible Solution
was working before so it happened in current update
Steps to Reproduce (for bugs)

add header
reload page / docs
check request headers in network tab

Context
cannot check results in production env - requires jwt auth header
Your Environment
Version 62.0.3202.89 (Official Build) (64-bit)

@Graziel What header were you trying to set? I just checked and it sets the headers for me. Are you using the chrome extension or the app?

Also the changes made in v1.4.5 was done in the docs section. https://github.com/imolorhe/altair/releases/tag/v1.4.5

any header ive tried "Authorization" and "test" none is getting passed
chrome extension
Request headers:
POST /graph2/en_GB HTTP/1.1
Host: <IP_ADDRESS>
Connection: keep-alive
Content-Length: 1282
Accept: application/json
Origin: chrome-extension://flnheeellpciglgpaodhkhmapeljopja
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36
Content-Type: application/json
DNT: 1
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9,pl;q=0.8

is there any way i can downgrade extension and check if its only this version?

@Graziel Just checked those two headers: test and Authorization. Both were sent.

Maybe you should uninstall and install altair again? I can't imagine why specific headers would be ignored. Do you think one of your browser settings could be affecting it?

looks like its only for me, ive asked my colleague and he doesnt have this problem
im using axios (in my app) for requests and it sets headers correctly so its only extensions or angular/http

Hmmm.. weird. Do you have any notable errors in the dev console, that could point to this issue?

the only error i get is 'Invalid window ID provided.' but its after xhr request, to be sure its not my setup ive checked it on https://www.graphqlhub.com/graphql
ive tried reinstalling, disabling all extensions, restarting chrome, restarting computer, playing with chrome settings, nothing points to whats going on, without source map i cant debug it propertly
and whats wierd it was working last week

found the problem, headers are only set in 1st window tab and they are propagated to other tabs

To be clear, did you open the extension multiple times, or you are referring to the new window option within the extension itself? Maybe a screenshot of your extension would help.

I just tried setting headers in 'Window 2' in my system, and that works separate from the headers I set in 'Window 1'. Unfortunately you can't downgrade to verify if the issue is from Altair. What you can do however is download the older version of the desktop app for the platform you are using (mac, windows or linux). The older version downloads are always available for those. The only thing is that those have larger sizes.
https://github.com/imolorhe/altair/releases

ive finally got it working but there are some things that you need to remember

headers are set ONLY when you click 'send request'
headers are app wise state not window tab state

so i coudnt set it because i was trying 'reload docs' and my app required "authenticate" header to get docs and it wasnt set cause of 1) i got headers set in other window cause i just could 'send request' knowing docs and it triggered 2)

@Graziel Oh I see. So you were trying to use the headers for the docs. I didn't consider that. Like you said, the headers are currently only sent when the request for a query is sent, not when you try to get the docs.
I would update that functionality. Sorry for the trouble. 😄
By the way, when you say you got it working, how do you mean? What did you do?

to get it working:

"set headers"
"send request"
"reload docs"

yeah like i said it was working previously and probably app update reset state thats why i wasnt getting any headers (even with wrong values) in request

It shouldn't have worked previously because this code hasn't been modified in a while. I think it just became obvious because we added the 'Reload Docs' button recently. Thanks for helping me find it though! 😄

I have found this problem too.

@mokeyish Sorry about that. It would be fixed in the next update. :)

@imolorhe Nerver mand,Thanks for your app,it is really very useful.

I'm glad to hear that! 😁

@imolorhe Add oauth2.0 authentication will be good.:hugs:

@mokeyish You could create an issue for it with more details. Also I haven't used OAuth 2.0 with any API client before so I am not certain at the moment how that would be meant to work. 😄


How can I make sure this runs last

I want to make sure this runs last when doing the configuration.

@AceHack In that case you'll need to add a DependsOn statement to the xPendingReboot configuration and specify all resources that you need to have run first.

So I have many conditional resources that get included based on cofing data, there are also about 10 other things that this could depend on.  I was hoping for a better way to make something run last.  Thanks.

@AceHack Unfortunately, it's the Local Configuration Manager (LCM) that is responsible for executing each resource. The only way to control any order is with dependencies - resources themselves have no way of controlling this.

@AceHack are you using Partial Configurations to determine the conditional resources or some other means of aggregating all the roles/IDs?

Assuming you're using If statements to limit which resources get run then you could do something like this:
$PendingRebootDependsOn = @()
if ($SomeCondition) {
    SomeResource Name{
    }
    $PendingRebootDependsOn += "[SomeResource]Name"
}

xPendingReboot FinalReboot {
    Name = "Final Reboot"
    DependsOn = $PendingRebootDependsOn
}

Closing this as solved as per previous comments. Please reopen or comment if this was closed in error.

@johlju this was not solved, it cannot be done with current design without very complex depends on rules.  There is no simple way to have something run last.

I meant solved as in the solution provided in previous comment is the way to do it. :) There is a user voice item for this here Ability to run a DSC configuration item last. Vote on it and maybe that will be an improvement in a future LCM.


Upload sdists to PyPI

Hi.
It appears that PyPI only contains wheels for tensorflow:
https://pypi.org/project/tensorflow/#files
Thanks for uploading those! Wheels are great.
But sdists are good to have too -- specifically, I'm not sure whether tensorflow works on PyPy (I'm about to try it out -- EDIT: now I've seen #252, which I might try to help on) but not having sdists uploaded makes that harder to try without hunting down this repository.

@caisq Can you comment?  I'm unfamiliar with sdists.

I assume by sdist you assume source distribution to be built during pip install?
That might be tricky, as we rely on bazel. Bazel is quite heavy, and has limited os support, so it still wont work on many OSs.

https://github.com/tensorflow/tensorflow/issues/6540 may be relevant

#6540 appears mostly to be about eggs, which yeah I don't think tensorflow should have.
@gunan I'm still trying to understand tensorflow's logistics (I'm mostly focused on directly hitting #252 but I've certainly managed to build it via bazel by now) but my first assumption would have been that an sdist would have invoked the requisite bazel command to build itself (under the assumption that bazel is already installed, which tends to happen for sdists, you rely on the fact that the user has already done all the external non-Python work)
Basically, I would have imagined it to work the same as it does right now, just with one less manual step of having to clone the tensorflow source to get at the setup.py, ideally I'd just install bazel, then run pip install, and if tensorflow didn't upload a wheel compatible with my system, pip (setuptools) should invoke whatever tool tensorflow uses to build one (and if it succeeds, great).

Unfortunately I think this is too hard at present given the complexities of bazel.  Closing for now.


Make a wiki page with all references we're discussing

So we have archive to tweet from and link to

https://github.com/thecarebot/carebot/wiki/References-and-resources


Added simple decision algo and first version of end devices simulators.

Separation of the repository under license of Atende Industries

@mateuszkobak please review


run error

Hi, folks.
I'm trying to use this module on scRNA analysis but faced a little bit of trouble.
tried several kinds of combinations but showed the same pattern as the attached files.
smatools sort, samtools redeader etc
Thanks,

resolved it: samtools view -@ 7 -h /path/bam_file | sed 's/chr//g' | samtools view -Shb - -o /path/bam_new_name


Encryption is broken

Yeah, I know, not what you want to see as the first bug report on a DLL specifically for a given compression algorithm, but cut me some slack, I'm dealing with foreign code literally older than my time on this Earth.
Encrypting files is not giving a result that can be then decrypted back into the same file again. This is present not only here in the DLL but also in the original lzari.c code compiled to exe form in VS2022. I suspect the issue stems from lzari.c's use of global variables with questionable initialisation but am out of my league in working out the core problem.
Context: Main use case for this project involves extracting assets from the TUNERES.DAT file located in the Win95 software SimTunes. Decryption there is confirmed working, so we have joined and separated binary blob examples of assets that were presumably compressed using a working LZARI compressor and thrown into a single binary blob at some point.

Update: quick chat with @lucasvb reveals that I somehow broke lzari.c when compiling it in VS2022, because his lzari.exe does in fact compress and decompress correctly. Investigating a fix.


Mirror option broken

Pull request #12 introduced the ability to make 2 sided stickers with python3 LabelGenerator.py --mirror
That functionality broke with #16 and now all generated labels are single sided.
It seems that the intent was to remove the --mirror option and replace it with a very obscure internal variable     draw_both_sides: on line 553 https://github.com/Finomnis/ResistorLabels/pull/16/files#diff-bff332ece4991cee856597e7b65a2c11c7847dec95ec96cd7bfc2810d3f0b220R553
However changing that value from False to True does not work, the PDF is still generating single sided images.

I've made the decision to change it because I personally found mirror quite obscure, as it isn't a mirror operation - it's a rotation. Nothing is getting mirrored. Further, I don't like the usage of global variables, I'd rather have it be passed around as an argument, so that each function is self-contained.
Further, while I am a big fan of CLI parsers, I didn't like the fact that that one is configurable through command line, while everything else is configurable in main. I do understand that this is partially against what other programs usually do - but adding CLI parsing would only be done cleanly if another dependency would have been introduced, and I wanted to keep the dependencies to an absolute minimum.
I do agree that it is slightly too obscure, and we should maybe instead add a section in main with a comment that explains it.
It *seems* that the intent was to remove the --mirror option  and replace it with a very obscure internal variable - it doesn't seem like it, that was the exact intend and that is also what was done and tested. I understand it that it is always frustrating if design decisions you found good get viewed different by other people, so I'm trying to make you understand my thought process here. I hope we can have a civilized design decision discussion here if you disagree.
Again, I am in the process of rewriting this tool into a purely CLI/yaml controlled program with pre-compiled executables for all big operating systems, however, I don't know when this is going to be finished. I want to keep this here as simple to understand as possible.

After more testing I figured out that draw_both_sides appears twice. Only the instance on line 630 that needs to be changed.
    render_stickers(c, layout, resistor_values, draw_outlines=False, draw_both_sides=False)

    render_stickers(c, layout, resistor_values, draw_outlines=False, draw_both_sides=True)

@spuder You are right. My bad. I forgot to remove the default arguments of the function.
Does #22 clean up your complaints sufficiently?

That is great, thank you.


server-side selectize

When creating the below app I get the following warning when launching it
Warning: The select input "summarised_large_scale_characteristics_groupping_concept_id" contains a large number of options; consider using server-side selectize for massively improved performance. See the Details section of the ?selectizeInput help topic.
Warning: The select input "summarised_large_scale_characteristics_variable_name" contains a large number of options; consider using server-side selectize for massively improved performance. See the Details section of the ?selectizeInput help topic.

library(omopgenerics)
db <- DBI::dbConnect(RPostgres::Postgres(),
                     dbname = Sys.getenv("CDM5_POSTGRESQL_DBNAME"),
                     host = Sys.getenv("CDM5_POSTGRESQL_HOST"),
                     user = Sys.getenv("CDM5_POSTGRESQL_USER"),
                     password = Sys.getenv("CDM5_POSTGRESQL_PASSWORD"))
cdm <- CDMConnector::cdm_from_con(
  con = db,
  cdm_schema = Sys.getenv("CDM5_POSTGRESQL_CDM_SCHEMA"),
  write_schema = c(schema =  Sys.getenv("CDM5_POSTGRESQL_SCRATCH_SCHEMA"),
                   prefix = "incp_"),
  achilles_schema = Sys.getenv("CDM5_POSTGRESQL_CDM_SCHEMA")
)
cdm$asthma <- CohortConstructor::conceptCohort(cdm = cdm,
                                               conceptSet = list("asthma" = 317009),
                                               name = "asthma")

lsc <- CohortCharacteristics::summariseLargeScaleCharacteristics(cdm$asthma,
                                                                 eventInWindow = "drug_exposure")
omopViewer::exportStaticApp(lsc)

https://shiny.posit.co/r/articles/build/selectize/

add it for:

variable_name
estimate_name

if there are more than 10 options


StringChecker: leading hashbangs still report correct error line numbers

Coverage increased (+0.01%) when pulling 84131306c20f7c703a7c20fd9d1dc8ee9995d1de on mikesherov:hashBangFix into 2fca14a5dc2ac1f8db29ed4864684f25bdd0f674 on jscs-dev:master.

Coverage increased (+0.01%) when pulling 77c57948a33caef4b3dd579325e8d4193bb7b8e8 on mikesherov:hashBangFix into 30049c1da94b590b783c1ba948da1d639b8c06bc on jscs-dev:master.

@mrjoelkemp can I get a :+1: here.

:+1: assuming Oleg's comment is not applicable.

Closed by<PHONE_NUMBER>b475999e2deea19f124ff1cbb502fd


Add task to convert docx files to pdf's

This connects code from a few different areas to allow processing all SourceFiles with docx attachments and converting them into pdf's. The docx file is preserved as source_file.active_storage_attachment--i.e. it's not changed at all--and the new PDF is uploaded as source_file.redacted_file.
I didn't attempt to convert SourceFiles which

already have a redacted file attachment, or
have a docx file with embedded attachments

Right now this is also just a script that you can run once. It's idempotent so you should be able to run it over and over if need be, but because we need to download the file to check if it has attachments it will still try to reprocess those files each time you run the script. I thought about adding a pdf_conversion_attempted_at column or something but opted not to for now. lmk if you feel differently though!
I think maybe a next step would be to run this in the background each time a source file is created so that all happens automatically, and then we could even just delete this rake task eventually.
Asana ticket

@jutonz thanks for working on this! Code looks good, but my only concern is that the PDF file will automatically get placed as the redacted file. @FerPerales will the admin operators still be able to further redact that pdf file? What if they mess up and want to remove the redacted file? I think we had discussed that we like having the PDF icon for the "View original document" and wanted to keep that consistent with PDFs throughout.

They won't be able to redact the file, but they can redact the docx file prior to this process, In case this process already created a PDF as the redacted file, we now have a feature that allow admins to remove the redacted file. We can check with Patrick what would be the expected flow and edge cases

They won't be able to redact the file, but they can redact the docx file prior to this process

I don't think the operators are set up to do redaction except through the Foxit redaction process with the PDF. I'm pretty sure we want a consistent process in place. Is it possible to create a new file attachment on the SourceFile that can link to the Word doc, and then we can move the converted PDF to the main attachment?

In case this process already created a PDF as the redacted file, we now have a feature that allow admins to remove the redacted file

If they remove this [redacted] PDF file, then will there be a process to get the original Word Doc re-converted to PDF?

Ok cool, I can start working on the system you described @littleforest. I don't think that's a massive change, and there are other things I can reference that work similarly. Just to confirm, here's what I'm thinking:

Find source files that have a docx attachment without any embedded files
Create a new SourceFile and attach the original docx file

In the future this SourceFile will be marked as archived

Convert the docx file into a pdf, and update the attachment on the original SourceFile to point to that pdf

Setup like an original_source_file association on the new SourceFile to point at the original docx?

Does that sound reasonable? Also happy to hop on a call if that's easier to chat about this!

Ok cool I think this should be ready for another round of review! Instead of using redacted_file for the converted PDF we now create a totally separate SourceFile. This is done indirectly by appending the new PDF to standards_import.files, which has the effect of creating a new SourceFile. The new SourceFile will have its original_source_file association set to the original docx SourceFile, which will itself be marked as archived.
Linking the new and original source files was a little awkward because SourceFile creation happens as a callback on StandardsImport, so we don't have the ability to pass args or anything into that process to indicate that we want two source files linked. Instead this sets a link_to_pdf_filename field on the original SourceFile, which the CreateSourceFilesJob will use to link up the new SourceFile once it creates it.
A future refactor which might make this a bit simpler to do would be to pull the CreateSourceFilesJob out of a callback on StandardsImport and instead do that logic manually via a service object or something like that. That would allow us to have a bit more control over where and how SourceFiles get created. I didn't do that here since this PR was already getting big, but maybe something to consider for the future :)


Make a Casdoor starter kit for SpringBoot users

Maybe this will be similar to: https://github.com/jcasbin/casbin-spring-boot-starter
A SpringBoot project can easily integrate with Casdoor authentication by using this project. The difference between this project (casdoor-spring-boot-starter) and https://github.com/casdoor/casdoor-java-sdk is that casdoor-java-sdk is a general-purpose SDK for all Java projects. But casdoor-spring-boot-starter is tailored for Java SpringBoot projects only. So it's easier to use. Ideally, casdoor-spring-boot-starter will be built based on casdoor-java-sdk.
Finally we will create a SpringBoot example project to test this repo (casdoor-spring-boot-starter).

@tangyang9464

@tangyang9464 next plz add the README

@tangyang9464 next plz add the README

OK


Difficulty stopping 'Fake Standby' colour inverting

Firstly this service is extremely useful to me so thank you very much for making it!
The thing I was trying to get working with this I would understand if there's no solution to it but there just might be something clever I should try before giving up.
https://www.f-droid.org/en/packages/android.jonas.fakestandby/
“FakeStandby is an Android app to turn off your screen while keeping apps running. This includes foreground jobs,”
So basically what it does is overlays an blank black screen over whatever application is ruining to mimic standby. In it's application it has a screen Inverter option that overlays white instead of black blank screen. But Android's 'clever' force dark sets both modes as a white black screen. I think that I can't set an ignore setting 'Force Dark' on this application because it's doing an overlay over other applications rather than opening it's own interface? I'm not sure if there's a way of detecting that it's active and then shutting off force dark?
I hope I've managed to make what I've worked out so far make sense? Any suggestions on what I could try testing next to see if I can get it to work?

Referenced to: https://github.com/JonasBernard/FakeStandby

You are correct in that this is how it's implemented in Android, it's not something for me to fix in DarQ. The developer should use setForceDarkAllowed to prevent force dark from being applied to the view, which should also "fix" it in DarQ since it's the same feature.


 is not a Resource

error calling fingerprint: <nil> is not a Resource

Got the above and similar when porting gohugoioTheme to a module in Hugo Docs today.

@bep How was this solved? I am running into a very similar issue on Cactus theme
executing "partials/head.html" at <toCSS>: error calling toCSS: type <nil> not supported in Resource transformations

You need to do a nil check in the templates. The thing is, resource.Get("someresource.css") returns nil if not found.
We could probably improve the error message, but you need to do something ala:
{ { $scss := resource.Get("foo.scss") }}

{{ if $scss }}
// call toSCSS
{{ end }}

If my files are under the assets folder:  resources/_gen/assets/sass/main.scss, I don't understand why it can't find it.
    <link rel="stylesheet" href="{{ $style.Permalink }}">```

@dallashudgens The documentation states the following:

Asset files must be stored in the asset directory. This is /assets by default, but can be configured via the configuration file’s assetDir key.

then given the example on that page:
{{ $style := resources.Get "sass/main.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">

I ended up with the same error.
So I've decided to add a / to the beginning of the resources.Get "/sass/main.scss" and voila it worked  😄
I am totally new to Hugo and am just giving a go, I understand the frustration when trying something new and it doesn't work as expected.

I'm finding that hugo server needs to be stopped and restarted after asset files have been placed in /assets in order for resources.Get to work. Probably worth mentioning in the docs. :)

This is highly confusing.
I've tried the following paths:
/static/assets/scss
/resources/_gen/assets/scss
/themes/mytheme/static/assets/scss
/themes/mytheme/resources/_gen/assets/scss
the call to resource.Get is inside my baseof inside mytheme
None of this works.
Ideas?

Same issu e

I had the same error message and the problem was that for testing purpose I was leaving in my code commented lines like these:
<!-- {{ $style := resources.Get "scss/main.scss" | toCSS }} -->
<!-- <link rel="stylesheet" href="{{ $style.Permalink }}"> -->

Removing them solved the issue for me
I don't know if it's an expected behavior BTW, should I open an issue?
Here is the full error message I got:
ERROR 2021/01/07 07:01:43 render of "page" failed: execute of template failed: template: _default/single.html:4:7: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/home[..]/themes/beautifulhugo/layouts/partials/head.html:49:51": execute of template failed: template: partials/head.html:49:51: executing "partials/head.html" at <toCSS>: error calling toCSS: type <nil> not supported in Resource transformations

I had the same error message and the problem was that for testing purpose I was leaving in my code commented lines like these:
<!-- {{ $style := resources.Get "scss/main.scss" | toCSS }} -->
<!-- <link rel="stylesheet" href="{{ $style.Permalink }}"> -->

Removing them solved the issue for me
I don't know if it's an expected behavior BTW, should I open an issue?
Here is the full error message I got:
ERROR 2021/01/07 07:01:43 render of "page" failed: execute of template failed: template: _default/single.html:4:7: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/home[..]/themes/beautifulhugo/layouts/partials/head.html:49:51": execute of template failed: template: partials/head.html:49:51: executing "partials/head.html" at <toCSS>: error calling toCSS: type <nil> not supported in Resource transformations

That is expected behaviour. If you want to comment out Golang template markup use Golang template markup comments ;)
{{/* {{ commented out code }} */}}

That is expected behaviour. If you want to comment out Golang template markup use Golang template markup comments ;)
{{/* {{ commented out code }} */}}


fix: title - add theme, flatten children

add the them to the title element- same deal as with code, it's needed to hide duplicate title when using multiple themes.
return the title and pre as children without the extra fragment

fixes #18

Good point, thanks!


Wrong version of maturin installed

          See this PR, where I remove the version passed to `maturin-action` and pin the maturin version in `pyproject.toml`:

https://github.com/stinodego/polars/pull/84
Check the release workflow, which has a step "Build wheel". You can see under the "Install maturin" step that version 1.2.3 was installed:
https://github.com/stinodego/polars/actions/runs/6378845249/job/17310201145?pr=84
...even though maturin is pinned to 1.2.1 in pyproject.toml.

maturin-action should install the constrained version by default: PyO3/maturin-action#46

If I look through this code, I would expect to see some logging from the findVersion function but I don't see anything 🤔
Originally posted by @stinodego in https://github.com/PyO3/maturin/issues/1792#issuecomment-1742762331

Turns out nodejs semver library doesn't support ==1.2.1, only =1.2.1 is supported. 😂

Published in v1, please give it a try.

Published in v1, please give it a try.

@messense I re-ran my example and now it correctly installs v1.2.1! Thanks for the fix 👌


Create a lephare engine

** Feature request**
Some rail estimators also have an "engine". This is a means to create samples of photometry. In the first instance this would be a means to sample uniformly from the lephare model magnitudes. In a more advanced version it would be possible to fit a set of model weights to a set of photometry measurements and then to sample from that "prior" distribution of models.
Can we do this using the MagSVC class? In pseudocode:
def lephare_sampler(config, type, n, weights=None):
    """Draw n samples from the models with weights.

    If weights=None draw uniformly
    """
    service=lp.MagSvc.from_config(type, config_file)
    mags=[]
    for i in np.arange(n):
        # Set redshift grid from config
        # Sample from z grid
        # Sample from models
        # Sample from other parameters of model...
        # Calculate mags
        mags.append(service(z,model,model_params))
    return np.array(mags)

magnitudes=lephare_sampler(config, "GAL", 10000)

Before submitting
Please check the following:

[x] I have described the purpose of the suggested change, specifying what I need the enhancement to accomplish, i.e. what problem it solves.
[x] I have included any relevant links, screenshots, environment information, and data relevant to implementing the requested feature, as well as pseudocode for how I want to access the new functionality.
[x] If I have ideas for how the new feature could be implemented, I have provided explanations and/or pseudocode and/or task lists for the steps.

Speaking to Olivier today we thought a simple way to do this is to take the model magnitudes from fits to real data. I can quite quickly create an engine which fits the COSMOS data set and then computes LSST magnitudes for all the sources and samples n objects from the catalogue. @aimalz Do you think that is a good solution?


chore: improve diagnostic message for noRedundantRoles

Summary
Closes #361
This PR adds a quick explanation to the diagnostic message for noRedundantRole on why it is actually redundant.

Forgot to change the tests, will get to that later today!

Thank you for your contribution!


Code generated for withOptUUIDBytes fails to compile.

I tried to use Lighter plugin for a SQL that uses a UUID column type:
CREATE TABLE Talents (
    id              UUID PRIMARY KEY NOT NULL,
    name         TEXT NOT NULL
    -- …
);

The following code is generated for withOptUUIDBytes:
  public static func withOptUUIDBytes<R>(
    _ uuid: UUID?,
    _ body: ( UnsafeRawBufferPointer ) throws -> R
  ) rethrows -> R
  {
    if let uuid = uuid { return try withUnsafeBytes(of: &uuid, body) }
    else { return try body(UnsafeRawBufferPointer(start: nil, count: 0)) }
  }

It fails to compile with: Cannot pass immutable value as inout argument: 'uuid' is a 'let' constant on the call to withUnsafeBytes.
(Using Xcode “Version 14.0 beta 5 (14A5294e)” if this matters, but I do not think so.)
Possible fix:
    if case .some(var uuid) = uuid { return try withUnsafeBytes(of: &uuid, body) }

This had a few more issues, probably fixed in develop, but I'm going to give it another try prior making a release.
Thanks for reporting!

OK, seems to work fine.


EVP_PKEY_decrypt() unecessarily requires 'd' parameter.

OpenSSL 3.0.15 (system provided)
Observed recently when upgrading to newer OpenSSL (to 3.0.15 from 1.01) that I now have to set the 'd' parameter for EVP_PKEY_decrypt() to work (RSA). The 'crt' parameters are being set as before and internally (inside EVP_PKEY_decrypt())  'd' is being computed from those parameters correctly. Only now with OpenSSL 3.0.15, if I don't set 'd' to some value, EVP_PKEY_decrypt() fails with this error string: "error:020000B3:rsa routines::missing private key". Worse... the 'd' value I set is ignored, as I have tried it with several different values and the decrypt still succeeds.
code snip:
    int rc;
    char dval = 1;
    RSA* rsa_key = RSA_new();

    BIGNUM* n = BN_bin2bn(&N, 128, NULL);
    BIGNUM* e = BN_bin2bn(&E,   3, NULL);
    BIGNUM* d = BN_bin2bn(&dval, 1, NULL); // value doesn't matter!
    BIGNUM* p = BN_bin2bn(prvkey_P, prvkey_sz, NULL);
    BIGNUM* q = BN_bin2bn(prvkey_Q, prvkey_sz, NULL);
    BIGNUM* dmp1 = BN_bin2bn(prvkey_dmp1, prvkey_sz, NULL);
    BIGNUM* dmq1 = BN_bin2bn(prvkey_dmq1, prvkey_sz, NULL);
    BIGNUM* iqmp = BN_bin2bn(prvkey_iqmp, prvkey_sz, NULL);

    rc = RSA_set0_key(rsa_key, n, e, NULL); // Issue is now need NULL to be replaced with d with random value.
    rc = RSA_set0_factors(rsa_key, p, q);
    rc = RSA_set0_crt_params(rsa_key, dmp1, dmq1, iqmp);

    EVP_PKEY* privKey = EVP_PKEY_new();
    rc = EVP_PKEY_set1_RSA(privKey, rsa_key);

    EVP_PKEY_CTX* ctx = EVP_PKEY_CTX_new(privKey, NULL);
    EVP_PKEY_free(privKey);

    rc = EVP_PKEY_decrypt_init(ctx);
    rc = EVP_PKEY_CTX_ctrl_str(ctx, "rsa_padding_mode", "oaep");
    rc = EVP_PKEY_CTX_ctrl_str(ctx, "rsa_oaep_md", "sha256");

    outLen = sizeof(kmrec);
    rc = EVP_PKEY_decrypt(ctx, kmrec, &outLen, enc_buf, 128);

    if (rc <= 0) {
      // get "error:020000B3:rsa routines::missing private key"
      // here on 3.0.15, but not 1.01 (where rc == 1)
      const char* estr = ERR_error_string(ERR_get_error(), ebuff);
    }
    ```

My assumption is that this is coming from here:
https://github.com/openssl/openssl/blob/59f5f6c73cd2e1e2bd8ef405fdb6fadf0711f639/crypto/rsa/rsa_ossl.c#L434-L456
This was introduced as a fix for CVE-2022-4304 in commit b1892d21f8, which was first introduced in 3.0.8, 1.1.1t and 1.0.2zg. So this looks like a probably regression over versions prior to that.
Ping @beldmit and @tomato42 for your input.

So, indeed the d value is not needed for calculation when doing PKCS#1 v1.5 decryption, but that's only if you feed it valid inputs. Once the function starts receiving invalid inputs, then the output it produces starts depending on the d value.
If you use it with just OAEP then d is indeed not needed.
The d is necessary for the implicit rejection algorithm to be consistent with other implementations (so that heterogenous environments can't be attacked).
Not sure what the fix should be... probably checking the consistency of d, p and q would be the best option... or setting the d as a result of RSA_set0_factors() or RSA_set0_crt_params() call


exp/services/recoverysigner: add pagination to /accounts

Add pagination to the /accounts endpoint according to the definition in SEP-30 added in stellar/stellar-protocol#553.

Closing all recoverysigner issues


Sending invalid file stream makes the response hang

Thank you for the great work! I have a challenge in regards to error handling. In case I receive a stream that is not valid audio, the API seems to just hang instead of returning an error I can try and do my best to handle:
        const openai = new OpenAI({
            baseURL: "http://localhost:8000/v1",
            apiKey: "none"
        });

        const transcription = await openai.audio.transcriptions.create({
            file: stream,
            model: "Systran/faster-whisper-small",
        });

From the docker logs I get:
2024-11-23 14:22:26 [2024-11-23 10:22:26.517] [ctranslate2] [thread 41] [warning] The compute type inferred from the saved model is float16, but the target device or backend do not support efficient float16 computation. The model weights have been automatically converted to use the float32 compute type instead.
2024-11-23 14:22:26 2024-11-23 10:22:26,712:INFO:faster_whisper_server.model_manager:_load:Model Systran/faster-whisper-small loaded in 10.75s
2024-11-23 14:22:26 2024-11-23 10:22:26,713:INFO:faster_whisper_server.model_manager:_decrement_ref:Model Systran/faster-whisper-small is idle, scheduling offload in 300s
2024-11-23 14:22:26 INFO:     <IP_ADDRESS>:52150 - "POST /v1/audio/transcriptions HTTP/1.1" 500 Internal Server Error
2024-11-23 14:22:26 ERROR:    Exception in ASGI application
2024-11-23 14:22:26 Traceback (most recent call last):
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi
2024-11-23 14:22:26     result = await app(  # type: ignore[func-returns-value]
2024-11-23 14:22:26              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
2024-11-23 14:22:26     return await self.app(scope, receive, send)
2024-11-23 14:22:26            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
2024-11-23 14:22:26     await super().__call__(scope, receive, send)
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/starlette/applications.py", line 113, in __call__
2024-11-23 14:22:26     await self.middleware_stack(scope, receive, send)
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 187, in __call__
2024-11-23 14:22:26     raise exc
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 165, in __call__
2024-11-23 14:22:26     await self.app(scope, receive, _send)
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
2024-11-23 14:22:26     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
2024-11-23 14:22:26     raise exc
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
2024-11-23 14:22:26     await app(scope, receive, sender)
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/starlette/routing.py", line 715, in __call__
2024-11-23 14:22:26     await self.middleware_stack(scope, receive, send)
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/starlette/routing.py", line 735, in app
2024-11-23 14:22:26     await route.handle(scope, receive, send)
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/starlette/routing.py", line 288, in handle
2024-11-23 14:22:26     await self.app(scope, receive, send)
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/starlette/routing.py", line 76, in app
2024-11-23 14:22:26     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
2024-11-23 14:22:26     raise exc
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
2024-11-23 14:22:26     await app(scope, receive, sender)
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/starlette/routing.py", line 73, in app
2024-11-23 14:22:26     response = await f(request)
2024-11-23 14:22:26                ^^^^^^^^^^^^^^^^
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 301, in app
2024-11-23 14:22:26     raw_response = await run_endpoint_function(
2024-11-23 14:22:26                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 214, in run_endpoint_function
2024-11-23 14:22:26     return await run_in_threadpool(dependant.call, **values)
2024-11-23 14:22:26            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool
2024-11-23 14:22:26     return await anyio.to_thread.run_sync(func, *args)
2024-11-23 14:22:26            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/anyio/to_thread.py", line 56, in run_sync
2024-11-23 14:22:26     return await get_async_backend().run_sync_in_worker_thread(
2024-11-23 14:22:26            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 2405, in run_sync_in_worker_thread
2024-11-23 14:22:26     return await future
2024-11-23 14:22:26            ^^^^^^^^^^^^
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 914, in run
2024-11-23 14:22:26     result = context.run(func, *args)
2024-11-23 14:22:26              ^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-23 14:22:26   File "/root/faster-whisper-server/faster_whisper_server/routers/stt.py", line 210, in transcribe_file
2024-11-23 14:22:26     segments, transcription_info = whisper.transcribe(
2024-11-23 14:22:26                                    ^^^^^^^^^^^^^^^^^^^
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/faster_whisper/transcribe.py", line 319, in transcribe
2024-11-23 14:22:26     audio = decode_audio(audio, sampling_rate=sampling_rate)
2024-11-23 14:22:26             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-23 14:22:26   File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/faster_whisper/audio.py", line 46, in decode_audio
2024-11-23 14:22:26     with av.open(input_file, mode="r", metadata_errors="ignore") as container:
2024-11-23 14:22:26          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-23 14:22:26   File "av/container/core.pyx", line 420, in av.container.core.open
2024-11-23 14:22:26   File "av/container/core.pyx", line 266, in av.container.core.Container.__cinit__
2024-11-23 14:22:26   File "av/container/core.pyx", line 286, in av.container.core.Container.err_check
2024-11-23 14:22:26   File "av/error.pyx", line 326, in av.error.err_check
2024-11-23 14:22:26 av.error.InvalidDataError: [Errno<PHONE_NUMBER>] Invalid data found when processing input: 'None'

...And the request over the openai package never seems to complete.

I have a similar issue. The API returns 500 with no information about what the error was. Even if it just returned this:
Invalid data found when processing input: 'None'

That would be useful.

Will take a look

Thanks a lot, @fedirz !
I think handing the API a .txt file or some invalid audio should result in a 400 Bad Request. At least then I know to blame the user 😆


Iterating over list of objects.

Hi I have been trying to iterate over a list of objects using this library in a cpp file. Structure is like this :
list : [
    {"foo": 4, "bar" : 6},
    {"foo": 8, "bar" : 6, "foo2" : 5},
    {"foo": 4, "bar" : 9}
]
So for this my code would go like :
for (json::iterator listObject = list.begin(); listObject != list.end(); listObject++) {
for (json::iterator option = listObject.begin(); option != listObject.end(); option++){
//implementation
}
}
I thought I could use iterator for an object as well but I am facing an error for inner "for loop" which says error: 'using iterator = nlohmann::basic_json<>::iter_impl<nlohmann::basic_json<> > {aka class nlohmann::detail::iter_impl<nlohmann::basic_json<> >}' has no member named 'begin'; did you mean 'set_begin'?
Could anyone tell me where I am doing wrong.
Thanks.

This example doesn't seem to be shown in documentation as well. I'd like documentation to explain with examples with most use cases. Would help new developers to use this library.


[Post 0.6] Speed up AutoMM tutorial build

Currently as of v0.6 release, AutoMM tutorials take >90 minutes to run, accounting for ~75% of the wall-clock time of the CI. This is too long and makes development cumbersome.
It should be shorted to ideally wall-clock 30 minutes, and 45 minutes at most.

Can we separate the tutorial build pipeline to build tutorial for each folder under "multimodal"?

text_prediction
object_detection
multimodal_prediction
matching
image_prediction
advanced_topics


(WIP) External wallet: connection

Checklist

[x] I have read the CONTRIBUTING guide
[ ] Good naming (as clear and simple as possible)
[ ] Correct behavior if external API endpoints are down, return 404, 504 (or no answer), 401 errors (ddos simulation)
[ ] I tested desktop/mobile resolution
[ ] I tested light/dark theme
[ ] I tested different languages
[ ] I checked the functionality once again (AFFECT MONEY)
[ ] I checked the work on the Testnet
[ ] I checked the work on the Mainnet
[ ] I checked the work in the plugin
[ ] I checked the PR once again

Tests
Please start auto tests as follows:

add a label swap test to start swap tests
add a label withdraw test to start withdraw tests

You can skip these tests if you completely sure that your changes aren't related to this functional
Original issue
#4765
Video / screenshot proof

builded https://testnet4775.swaponline.site ;

commit 8ce9039dd rebuilded https://testnet4775.swaponline.site https://mainnet4775.swaponline.site

commit 8b8dcfd53 rebuilded https://testnet4775.swaponline.site https://mainnet4775.swaponline.site

commit e1f973eca rebuilded https://testnet4775.swaponline.site https://mainnet4775.swaponline.site

commit 8caebb029 rebuilded https://testnet4775.swaponline.site https://mainnet4775.swaponline.site

commit 3520c4c25 rebuilded https://testnet4775.swaponline.site https://mainnet4775.swaponline.site

commit 71412f809 rebuilded https://testnet4775.swaponline.site https://mainnet4775.swaponline.site

commit 46d0fe245 rebuilded https://testnet4775.swaponline.site https://mainnet4775.swaponline.site

подключился с матика, с китайского валета, все ок

commit f52b1dd83 rebuilded https://testnet4775.swaponline.site https://mainnet4775.swaponline.site


Multiple $firebase instances attached to same path do not trigger loaded event

When two controllers access the same Firebase path, only the first $on('loaded', ...) handler gets fired.
This is due to the fact that locally cached data fires value events synchronously in Firebase. So on the first load, the server is contacted asynchronously by angularFire's _getInitialValue method.
However, on the second load, since the value is already local, the broadcast event happens synchronously, and therefore before your $on('loaded'...) handler gets attached.
See also: http://stackoverflow.com/questions/20768258/on-loaded-fires-once-for-new-references-firebase.

All, I have the same problem in AngularFire 1.2.0. the @katowulf 's comment wouldn't work, because the $loaded() in obj.$loaded().then(function(values){...}) will not be triggered for the 2nd time, so doesn't matter if you use obj or values, the then() part will never be called. Any other suggestions?


Backend : Getting two entries for  matchAllTags function

Getting two entries for  matchAllTags function.
Request : http://localhost:8585/api/v1/policies/functions
Response :
{
    "data": [
        {
            "name": "isOwner",
            "input": "none",
            "description": "Returns true if the logged in user is the owner of the entity being accessed",
            "examples": [
                "isOwner()",
                "!isOwner",
                "noOwner() || isOwner()"
            ]
        },
        {
            "name": "matchAllTags",
            "input": "List of comma separated tag or glossary fully qualified names",
            "description": "Returns true if the entity being accessed has all the tags given as input",
            "examples": [
                "matchAllTags('PersonalData.Personal', 'Tier.Tier1', 'Business Glossary.Clothing')"
            ]
        },
        {
            "name": "matchAllTags",
            "input": "List of comma separated tag or glossary fully qualified names",
            "description": "Returns true if the entity being accessed at least one of the tags given as input",
            "examples": [
                "matchAnyTags('PersonalData.Personal', 'Tier.Tier1', 'Business Glossary.Clothing')"
            ]
        },
        {
            "name": "noOwner",
            "input": "none",
            "description": "Returns true if the entity being accessed has no owner",
            "examples": [
                "noOwner()",
                "!noOwner",
                "noOwner() || isOwner()"
            ]
        }
    ],
    "paging": {
        "total": 4
    }
}

Correct response :
3rd entry should be matchAnyTags instead of matchAllTags.
cc : @sureshms

This issue is resolve as part of #6861


fix pagefind build

remove -y as that's causing build errors with new starlight projects

Hi @rishi-raj-jain! Would you mind filing a bug report with context for what this fixes? Super appreciate the PR, but it’s hard for us to prioritise and understand the full context without that detail.


OSProcess is broken in headless VM

stderr always contains 'bad env or bad args: Bad file descriptor'.  The issue doesn't occur with the standard VM.
A quick test suggests that OSSubprocess appears to operate correctly, and is the preferred direction for Pharo.  Previously Windows was not supported at all, however some recent work has been submitted, so it may be worthwhile revisiting it.

We should also try it with the minheadlessVM from Pharo.

Pharo headless VM:
$ pharo --version
Pharo 8.1.0 built on Aug 14 2019 11:43:44 Compiler: 5.4.0 20160609
Built from: 0aa4db5 - Commit: 0aa4db5 - Date: 2019-08-14 11:40:51 +0200

Doesn't include the OSProcess plugin, so doesn't support the package.

OSSubprocess works in the pharo headless vm, so we'll switch to that.  Closing.


v3.6.0 Node Sass does not yet support your current environment

Gulp in Visual studio issues this error on Win10 x64 while trying to  open gulpfile.js. The error message tells that it wants x32 - cannot remember exact wording. 'npm rebuild node-sass' doesn't help. Reverting of node-sass to v3.5.0 fixed the error.

Please quote the exact message - and this is pretty common issue with Visual Studio - just make sure the same node engine is used to build node-sass as well as execute it. Make sure to read our Troubleshooting Guide

@saper - Could you please re-open this issue. Here is the message that I continue to see even after running the suggested npm rebuild node-sass command:
Error: Missing binding C:\Users\Owner\Source\Repos\nwca-nopcommerce\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-ia32-11\binding.node
Node Sass could not find a binding for your current environment: Windows 32-bit with Node 0.10.x
Found bindings for the following environments:
  - Windows 64-bit with Node.js 4.x
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to build the binding for your current environment.
    at Object.<anonymous> (C:\Users\Owner\Source\Repos\nwca-nopcommerce\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:14:11)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (C:\Users\Owner\Source\Repos\nwca-nopcommerce\node_modules\gulp-sass\index.js:187:21)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

I think the issue may be that Visual Studio 2015 (Community Edition) uses the x86 PowerShell to execute the built-in "Task Runner Explorer" CLI. I have no idea why that would matter, but it's a guess...
My Environment:

Windows 10 Pro x64
Node.js v4.4.4
Gulp CLI v3.9.0
gulp-sass v2.3.1

I tried to resolve this by opening the x86 PowerShell and running npm rebuild node-sass, then running the task again in VS, but the issue persisted.

Please read the troubleshooting doc, it describes the problem with visual studio.... You end up using two different node engines at the same time, so you need binaries for both.

You can force Visual Studio to use your installed version of NodeJS instead of its built in version. Add the path of NodeJS to the top of External Web Tools under Tools -> Options. I was having the same issue as @DerekFoulk and this corrected it for me.
Your External Web Tools should look similar to this:

This is the guide that pointed me in the right direction:
http://ryanhayes.net/synchronize-node-js-install-version-with-visual-studio-2015/

Thank you guys! I was unaware of the guide and workaround. Much appreciated!


minor version not compatible with 4.x

Just upgraded to 4.9 from 4.3.  The Markers utility class or the hierarchy of LogstashMarker has changed somewhere along the way.  My existing code was assigning the result of Markers.append to an ObjectAppendingMarker but now I get a compile error.  Typically these types of changes would result in a major release.
ObjectAppendingMarker marker = Markers.append(LogFieldNames.HTTP_DATA, logData);

100% agree on backwards incompatible changes should trigger a major version bump.  This project follows semantic versioning practices, so you are correct, a major version bump should have occurred.
In this case, the backwards incompatibility was inadvertently overlooked.  I apologize for that.
Having said that, I do not want to bump the major version or change the code back to the old code at this point, since so many versions have passed since then.  Therefore, you'll need to update your code.
I have updated the release notes of version 4.4 (when this incompatibility was introduced) to specifically call out this backwards incompatibility.

understood. thanks for the quick response.


How to to make sheet open but inside dropdown menu

How to to make sheet open but inside dropdown menu?
Im trying but the sheet imidietly close.
thank you.

Hello, I had the same issue and I fixed it by changing the  root component to the top of the  component.
Don't forget to add the modal={false} to the  or the Sheet will toggle "pointer-events:none;" on  and the page will not have events after closing the sheet
<Sheet>
        <DropdownMenu modal={false}>
          <DropdownMenuTrigger>
            <>
              Open menu
              <MoreHorizontal className="h-4 w-4" />
            </>
          </DropdownMenuTrigger>
          <DropdownMenuContent align="end" className="p-2">
            <DropdownMenuLabel>Actions</DropdownMenuLabel>
            <DropdownMenuItem>
              <SheetTrigger>Edit</SheetTrigger>
            </DropdownMenuItem>
          </DropdownMenuContent>
        </DropdownMenu>
        <SheetContent>...</SheetContent>
      </Sheet>

Got somewhat the same issue when trying to trigger a modal when a dropdown element was "active", this triggered "pointer-events:none;" on body. Applied modal={false} and fixed the problem!
Nice, thanks Floriaaan!

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

I'm currently using the <Sheet> component triggered by a <DropdownMenuItem>.  The solution of adding modal={false}  to <DropdownMenu> doesn't work for me. Are they other options?

Any idea how can i have a dropdownmenu with two or more options, and each option open a different sheet modal?

@Acapovilladev did you figure this out? facing the same issue

im having the same issue opening a sheet from a dropdown menu item. sheet closes automatically

@Acapovilladev did you solve it? I also would like to open different sheets based dropdown menu item selected.

I solved the problem of open different sheets using a popover instead of dropdown menu.
The single problem is the popover don't close on open the sheet
`

Edit

Edit Sheet

Your edit sheet content

        </SheetContent>
      </Sheet>

      <Sheet>
        <SheetTrigger asChild>
          <Button
            size="sm"
            variant="ghost"
            className="w-full justify-start font-normal"
          >
            <X className="mr-2 size-4" />
            Delete
          </Button>
        </SheetTrigger>
        <SheetContent className="space-y-2">
          <SheetHeader>
            <SheetTitle>Delete Sheet</SheetTitle>
          </SheetHeader>

Your delete sheet content

        </SheetContent>
      </Sheet>

  </PopoverContent>
</Popover>`

I solve the issue using the open from Drawer and onSelect from dropdown item, here's an example:
export default function Component() {
  const [open, setOpen] = React.useState('');

  return (
    <>
      <DropdownMenu>
        <DropdownMenuTrigger asChild>
          <ButtonIcon variant="outline" icon={LuMoreHorizontal} />
        </DropdownMenuTrigger>
        <DropdownMenuContent className="w-56" align="end">
          <DropdownMenuGroup>
            <DropdownMenuItem onSelect={() => setOpen(true)}>
              <LuFileEdit className="mr-2 h-4 w-4" />
              View info
            </DropdownMenuItem>
          </DropdownMenuGroup>
        </DropdownMenuContent>
      </DropdownMenu>
      <Drawer
        open={open}
        onOpenChange={setOpen}
      >
        ...
      </Drawer>
    </>
  );
}

For my specific case, I mixed with DataTable also, the idea is the same, I just forward the data to "columns" and add the capacity to open different sheets. You can check on this code here.


Group capstone: set up your Kanban board

Group capstone: set up your Kanban board.
We have 3 team mates: 💪

@raihan2bd  is playing the Student A role.
@Salwa99  is playing the Student B role.
@lugard1 is playing the Student C role.

Our Github Project Link:
GitHub Project

Hi @raihan2bd @lugard1 @Salwa99 ,
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉

Highlights
Kanban setup :heavy_check_mark:
Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


It takes time to close gateway

There seems to be a 3 second wait on shutdown for managedchannel.
Therefore, the wait time increases with the number of peers.
Is there anything I can do to shorten the shutdown time?
Can you shorten the waiting time?
Gateway.close->NetworkImpl.close->Channel.shutdown...PeerEventServiceClient.shutdown->lchannel.shutdown().awaitTermination(3,TimeUnit.SECONDS)

You could try forcefully closing the Channel yourself. Get the Channel with Network.getChannel(), then call shutdown(true) on the Channel object.


lgamma

While I'm at it, handle large-argument asymptotic expansion ot tgamma() in this issue as well.

Is cycling in #551


Implement factory and config for "attributes" processor

The existing OpenCensus implementation is in "attributekeyprocessor" package.
See config.go/factory.go in "addattributesprocessor" package as an example.

Closed via #152


Support prefix for White/Blacklist

Hi there,
Can you consider to support to specify job name prefixes for white/black lists? Aka. exclude jobs in a "sandbox/" folder? Thanks.
Wei

Hi @broom9, this could certainly be useful. It's not something we'll be working on in the immediate future, but feel free to submit a PR if you get started before we do. Thanks!


Fix error in code commenting

I found it when I view the code of leveldb。

in case you thought this is a typo, "iff" stands for "if and only if", see https://en.wikipedia.org/wiki/If_and_only_if

I get it,Thanks.


[libra framework] fix specs and timeouts in LibraSystem

Motivation
This PR fixes the verification failures and timeouts in LibraSystem.move, and completes the local specs for functions.
Closes issue #5294.
Have you read the Contributing Guidelines on pull requests?
Yes.
Test Plan
cargo test

@bors-libra r=junkil-park

:pushpin: Commit d25147b has been approved by junkil-park

:hourglass: Testing commit d25147bc699c5c759d8a27402b7eae217b0c20b3 with merge 074cb4b2c670bf6c200433dcf82077f6bf6c40a3...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: junkil-park
Pushing 074cb4b2c670bf6c200433dcf82077f6bf6c40a3 to master...


Fix #289 and modify some tests

There was a backwards compatibility problem with lnprobability (#289). I fixed it doing exactly the same as in chain.
During testing I realized that the lnprobability test actually checked it had the wrong shape (emcee3 like), and there was no test for get_log_prob shape. Therefore, I added a test for get_log_prob shape. And while I was at it, I used pytest.warns to capture and check the deprecation warning of the emcee2 methods present in the tests (here I only modified the already present tests, no addition).
Eventually, I replaced the instance of logging.warn by logging.warning, which is already present and recommended in 2.7 and therefore should not be a problem for anybody.
EDIT: After seeing the results in travis, I set the strings with latex in it to raw strings to prevent the deprecation warning (the docs still build fine locally), now it should also fix #288.
To sum up:

fixes issue with lnprobability shape
modified tests to check for deprecation warnings of emcee2 parameters like chain, lnprobability and thin (instead of thin_by)
modified logging.warn to logging.warning
set strings with latex to raw strings
modified .coveragerc to avoid logging.warning now

I hope it helps!

I have read about appveyor, conda and their issues, and I think I understand why appveyor builds are failing. However, I am not totally sure yet, and in addition, I would like to comment the possible solutions with you to check which one do you prefer.
I have found some issues with error messages similars to the ones I got, but I think this issue is not related to any of them. Instead, I believe the problem is because tqdm 4.26 is the last version present in https://repo.continuum.io/pkgs/main/win-32/ for python 3.5. Newer versions are only present for python 2.7, 3.6 or 3.7. All previous pull requests used tqdm 4.26, thus, there was no problem. Now however, conda tries to install tqdm 4.31 in python 3.5 which results in the current error.
In travis there is an environment with python 3.5 but in linux conda does not try to install tqdm. Then, even though tqdm versions larger than 4.26 are not present in https://repo.continuum.io/pkgs/main/linux-64/, there is no error risen.
The possible solutions that come to my mind are:

Install tqdm via pip before the command conda install -q conda-build numpy scipy h5py setuptools pytest
Use python 3.6 instead of 3.5
Pin appveyor build to tqdm 4.26

I should have no problem implementing any of the three. Whenever you have time say which one you prefer or a 4th one I haven't though about and I will implement to see if it solves the problem.

@dfm any comments on this?

@OriolAbril: thanks for your patience! I'm just catching up on the backlog and I've got the builds passing again.
Would you mind opening a new pull request based on the current master that just fixes #289 and adds the lines to the test? Thanks a lot!

I have rebased the pull request on top of current master, hope this works.

This is awesome. Thanks for this!!


Extend automated integration tests for GKE to use various versions of Kubernetes: 1.14, 1.15, 1.16, 1.17

Right now the integration test for GKE uses just Kubernetes version 1.14.
As recently described in #1529 and https://github.com/keptn/examples/issues/101, it is possible to run Keptn and the sockshop example on Kubernetes versions 1.16 and 1.17.
We should have a way to automatically verify this using our nightly integration/platform test.

I've tried including various versions of GKE, but right now only 1.14 and 1.15 are supported (as they are available in the regular channel).
For all other versions, we have to wait for GKE to make them available to us.
See

https://cloud.google.com/kubernetes-engine/docs/release-notes-regular
https://cloud.google.com/kubernetes-engine/docs/release-notes-stable

However, I'll prepare our .travis.yml such that we can easily enable tests for 1.16 and 1.17 once they are available.


The documentation query returns documentation for value assigned to a property

I'm seeing an issue where the documentation returned by queries of with type documentation returns documentation for the value assigned to a property rather than the property. Consider the following examples.
let comp = React.Component()
comp.displayName|

Assume that the ecmascript.json and react.json definitions have been loaded. When the end position corresponds to the position marked by the vertical bar (|), the documentation is returned for the displayName property, e.g. "The displayName property is used in debugging messages."
let comp = React.Component()
comp.displayName| = "foo"

If we assign a string to the displayName property and provide the same end position, we get the documentation for the String type, e.g. "The String global object is a constructor for strings..."
This happens no matter which end position within the displayName that is provided.
Even if I provide a start and an end position as shown below, the documentation for the String is provided.
let comp = React.Component()
comp.|displayName| = "foo"

If I remove the ecmascript.json definition and only load react.json, no documentation is provided.
In the above examples, I'm sending the following query to the server.
{
    "query": {
      "type": "documentation",
      "file": fileName,
      "start": start,
      "end": end
    }
}

This occurs in version 0.22.2 and 0.22.3. I haven't tested with earlier versions.

I found this is a definition error.
Will fix soon (also updating the definition of React)

Fixed by 64926fd


Recommendation to implemented facet search?

Apart from manually filtering the results, would you have any recommended approach to implement faceted search, which is a feature of Hibernate Search (http://docs.jboss.org/hibernate/stable/search/reference/en-US/html_single/#query-faceting).
Thanks for your time!

Hello, not that I know, sorry.
@mathpere do you confirm?


How to integrate sampling period in the attribute field?

Most studies have a sampling period rather than a "Collection date".
networks - "Collection date"
datasets - "Collection date"
interactions - "Date of the recorded interaction"
environments - "When the environmental variable has been measured"
Thus, what should be the default date when it's unknown?

Not sure if it's possible. I haven't seen any times period field type in sequelize.


Unable to find background.js when placed in subfolder

Type:

[x] bug
[ ] feature
[ ] enhancement
[x] question

Environment:

OS: Ubuntu 19.10
Browser: Chrome
Library Version: v1.1.4

I'm going to open a PR:

[ ] yes
[x] no

Description:
Hi, this is either a bug or a question. I created an example project to demonstrate the issue:
https://github.com/rhaksw/test-extension
Running yarn && yarn start in that project generates the following error:

Background script webpack entry not found/match the provided on 'manifest.json' or 'entry.background' option of the plugin

Is this a bug, or is something wrong with my setup? #43 was a similar issue and I didn't find the solution yet. Thanks!

I'm seeing the same issue

Maybe the solution is just to use the entries option instead of manifest.
Example project: https://github.com/rhaksw/test-extension-fixed
This allows you to output files in subdirectories of dist/. The above project produces,
dist/src/background.js
dist/src/content.css
dist/src/options.js
dist/src/options.html
dist/src/content.js
dist/manifest.json


can't get snippets with fmt or fmta to run

I am trying to create Lua Snippets, as long as I don't use fmt or fmta it seems to be working fine, but as soon as I try to use these functions I get errors as soon as I try to expand the snippet.
I am using lazy.nvim to install Luasnip like this:
return {
  {
    "L3MON4D3/LuaSnip",
    config = function()
      require("luasnip").setup(opts)
      require("luasnip.loaders.from_lua").load({
        paths = { "~/.config/nvim/snippets" },
      })
    end,
  },
}

and the snippts in ~/.config/nvim/snippets/angula.lua looks like this:
local ls = require("luasnip")
local s = ls.snippet
local i = ls.insert_node
local fmt = require("luasnip.extras.fmt").fmt

return {
  s({ trig = "if", docstring = "some docs" }, {
    fmt(
      [[
    @if ({}) {{
      {}
    }}
    ]],
      {
        i(1),
        i(2),
      }
    ),
  }),
}

completion menu shows this:

when I select the snippet, I get the following error message:
E5108: Error executing lua ~/.local/share/nvim/lazy/LuaSnip/lua/luasnip/nodes/snippet.lua:1057: attempt to call method 'expand_tabs' (a nil value)
stack traceback:
	~/.local/share/nvim/lazy/LuaSnip/lua/luasnip/nodes/snippet.lua:1057: in function 'expand_tabs'
	~/.local/share/nvim/lazy/LuaSnip/lua/luasnip/nodes/snippet.lua:711: in function 'trigger_expand'
	~/.local/share/nvim/lazy/LuaSnip/lua/luasnip/init.lua:272: in function 'snip_expand'
	~/.local/share/nvim/lazy/cmp_luasnip/lua/cmp_luasnip/init.lua:169: in function 'execute'
	~/.local/share/nvim/lazy/nvim-cmp/lua/cmp/source.lua:396: in function 'execute'
	~/.local/share/nvim/lazy/nvim-cmp/lua/cmp/entry.lua:482: in function 'execute'
	~/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:503: in function <~/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:502>
	~/.local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/feedkeys.lua:47: in function <~/.local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/feedkeys.lua:45>

Ah, you only have to omit those {} wrapping the fmt, then it should work :)

🙈Thank you, I really appreciate you taking the time


Image carousel

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #
Test URLs:

Before: https://main--maruti-playground--buuhuu.hlx.live/draft/anagarwa/image-carousel
After: https://image-carousel--maruti-playground--buuhuu.hlx.live/draft/anagarwa/image-carousel-3

@buuhuu can you please review the model and definition of Image-carousel ?

@sdmcraft @buuhuu  I have added a sample test case.
npm run test should run the test.

@sdmcraft concerns should be resolved now


Arc dashboard fixes

Fixes bug where clicking on dashboard link on Controller dashboard would fail unless the controller tree node had been expanded already
Fixes https://github.com/microsoft/azuredatastudio/issues/11532
Fixes https://github.com/microsoft/azuredatastudio/issues/12016

Pull Request Test Coverage Report for Build 233030421

1 of 24 (4.17%)  changed or added relevant lines in 7 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.01%) to 40.655%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

extensions/arc/src/ui/dashboards/controller/controllerDashboard.ts
0
1
0.0%

extensions/arc/src/ui/dashboards/miaa/miaaDashboard.ts
0
1
0.0%

extensions/arc/src/ui/dashboards/postgres/postgresDashboard.ts
0
1
0.0%

extensions/arc/src/ui/dashboards/postgres/postgresOverviewPage.ts
0
1
0.0%

extensions/arc/src/ui/tree/azureArcTreeDataProvider.ts
0
1
0.0%

extensions/arc/src/ui/tree/controllerTreeNode.ts
1
2
50.0%

extensions/arc/src/ui/dashboards/miaa/miaaDashboardOverviewPage.ts
0
17
0.0%

Files with Coverage Reduction
New Missed Lines
%

extensions/arc/src/ui/tree/azureArcTreeDataProvider.ts
1
77.63%

Totals

Change from base Build 233025486:
0.01%

Covered Lines:
19622

Relevant Lines:
44239

💛  - Coveralls


Update Bourbon to 5.0

Bourbon 5.0 is currently in beta release. Once it goes full release, update Kolide to latest release and fix all deprecation notices.

Closed in #1973


ReTransform Values outside the sqrt(50) range

Sometimes the predictions is e.g. -2 % wich is an impossible value.
Can we make a retransformation that can handle these situations?

The equation for reTransform can be plotted. (-25 to 25). Very interesting in itself. Which means that a reTransformation is possible for the Range from 2*[-sqrt(50)] to 2*[+sqrt(50)]. With a litte if/else conditioning.


Tv shows Are missing Seasons and Episodes

Tv shows Are missing Seasons and Episodes Please Fix

It's hard to get everything from a show, but you are able to add 'providers' to the API in the config.js file.

Hi thank you for the help I will look in the config
On Sat, Mar 12, 2016 at 5:15 AM, ChrisAlderson<EMAIL_ADDRESS>wrote:

Closed #14 https://github.com/popcorn-official/popcorn-api/issues/14.
—
Reply to this email directly or view it on GitHub
https://github.com/popcorn-official/popcorn-api/issues/14#event-587395650
.

--
Have An Awesome Day,

/      \ |  \                |  \            |  \    |
|  $$$$$$| $$____    ______   $$  _______  | $$    $$  ______   _______
| $$   $$| $$    \  /      \ |  \ /       |   $$ \  |  \ |      \ |
| $$      | $$$$$$$|  $$$$$$| $$|  $$$$$$$ $$$$$$  | $$  $$$$$$| $$$$$$$
| $$   __ | $$  | $$| $$   $$| $$ $$    \   | $$ __ | $$ /      $$| $$  | $$
| $$__/  | $$  | $$| $$      | $$ _$$$$$$\  | $$|  | $$|  $$$$$$$| $$  | $$
$$    $$| $$  | $$| $$      | $$|       $$   $$  $$| $$ $$    $$| $$  | $$
$$$$$$  $$   $$ $$       $$ $$$$$$$     $$$$  $$  $$$$$$$ $$   $$


Preview function for Wagtail stream field form

As the Program team has built out forms quite a bit the last few months something that keeps coming up is an inability to preview forms like Reviewer Forms, Application forms (without creating a fund/lab), etc.
So far I've been having to copy forms from the test DB to the live DB for staff that wanted to see the form before publishing it. It would be a nice addition if these things were able to be previewed similar to the preview that happens when building a Fund/Lab in Wagtail. Is this a possibility at all/been discussed before?

I do not think it has come up before. If staff finds it useful we should add it.

Yeah this would be sweet! Like I said I think there have been 2 or 3 forms this month I've had to move between the databases so staff could preview so this would definitely be used.


EbayFakeMenuButton MVP

What's not yet supported from Marko version:
EbayFakeMenuButton Props:
noToggleIcon: whether to hide the chevron toggle icon
priority: button priority, "primary" / "secondary" (default) / "none"
variant: will change the button style, "overflow", "form" or "button. Default is form"
fixWidth: constrain items container width to button width
reverse: expand menu flyout to the left
size: button size, "large" (default: "none")
EbayFakeMenuButtonItem Props:
type: Set to "button" for fake menu-item
checked: whether or not item is checked
value: the value to use with event responses for for the checked array
badgeNumber: used as the number to be placed in the badge
badgeAriaLabel: Yes (only if badge number is provided) | passed as the aria-label directly to the badge
Extracted to a new issue #152
Storybook: https://opensource.ebay.com/ebayui-core-react/EbayFakeMenuButton-MVP/index.html?path=/story/ebay-fake-menu-button--default

Unfortunately there is a problem with closing the menu. You cannot close the menu if it's expanded unless you click the trigger button.
On the Marko version (opensource.ebay.com/ebayui-core/?path=/story/buttons-ebay-fake-menu-button--standard), you can close the expanded menu by either:
* Pressing tab until your focus move beyond the last menu item

* Clicking outside the menu

* Clicking the trigger button

* Pressing Esc keyboard

I think make sense to use 'makeup-expander' library (just like the Marko ebay-fake-menu-button) for simpler implementation

Fixed everything except for Pressing tab until your focus move beyond the last menu item, adding it to issue #152

resolves #33

also closes #135


Run/emulate leaves hanging ios-deploy processes

https://forum.ionicframework.com/t/ionic-run-ios-device-hangs-lldb-and-orphans-ios-deploy-processes/32555

Thanks for opening the issue. It seems that issue has been resolved. I am going to close this issue but please feel free to reopen another issue if this occurs again.


HTTPError when using builtin datasets

Describe the bug
Hi,
When trying to your your demo code for the builtin datasets I get, eg, the following error
HTTPError: 403 Client Error: Forbidden for url: https://bio2vec.cbrc.kaust.edu.sa/data/mowl/ppi_yeast_slim.tar.gz

I get the same trying to wget the tar file
How to reproduce
import mowl
mowl.init_jvm("5g")
from mowl.datasets.builtin import PPIYeastSlimDataset
ds = PPIYeastSlimDataset()
train_ontology = ds.ontology
valid_ontology = ds.validation
test_ontology = ds.testing

Environment
Python 3.10.12
pip installed mowl-borg version 0.3.0
Additional information
No response

Hi, thank you for reporting. It should work now.

Thanks, it works!


Rework mass properties

Context
Quoting @Jondolf:

Mass properties are one of the messiest user-facing parts, and we really need to rework them a lot

One thing that needs to be more accessible is getting the density of a collider / rigid body.

I made a write-up laying out a lot of the current problems, along with a proposal for overhauling mass properties: #499


Improve documentation of config command

Hopefully makes #1126 more clear so that it can be closed.

Codecov Report

Merging #1137 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master   #1137      +/-   ##
=========================================
+ Coverage   62.57%   62.6%   +0.03%
=========================================
  Files         184     184
  Lines       10239   10247       +8
=========================================
+ Hits         6407    6415       +8
  Misses       3033    3033
  Partials      799     799

Impacted Files
Coverage Δ

commands.go
87.54% <ø> (ø)
:arrow_up:

pkg/jsonapi/manifest/setup_others.go
37.84% <ø> (ø)
:arrow_up:

pkg/jsonapi/manifest/manifest.go
63.89% <100%> (+10.32%)
:arrow_up:

Continue to review full report at Codecov.

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


dashboard: Remove puma from app Gemfile

I'm not sure why it was in there, but puma isn't used.

LGTM


[Feature request] make a notification when memory usage exceeds 95%

Description of the feature, modification, idea or suggestion
My memory usage often gets close to 100% and then Chrome, VSCode, etc. will crash.
I hope processhacker can make a notification when memory usage exceeds 95%
Proposed implementation details (optional)
(maybe need to write some code for the plugin "ExtendedNotifications")

Only notify once within 1 minute to avoid repeated notifications
notify by stage

> 90%
> 95%
> 99%

Do not tray icons already do that? Click on the View > Tray icons > Physical usage (text)

Do not tray icons already do that? Click on the View > Tray icons > Physical usage (text)

I know this. Just the tray icon isn't obvious enough, and I often ignore it.
I hope there is a notification like what View > Tray icons > Notifications > New Processes do:


Would it be possible to have the NERDTree jump to an existing tab, if that file is already open?

It would be great to have NERDTree jump to tabs of files that are already being edited.

Good idea :) Not easy, but should be possible. It would require redifining some NERDTree mappings, so things could break if people have something custom already mapped. Not sure right now whether I will implement it.


Add from_map docstring

xref https://github.com/dask/dask/issues/11167

one minor comment but feel free to merge once addressed


Edit index.html

Description
Hovering effect makes it more attractive which can be taken help from here.
Requirements

[ ] Should be below the logo of main gate and dsc rsu
[ ] Should be hyperlinked to navigation button About Us
[ ] Should be responsive

Mocks

Any updates?

Work in progress... But I want a little more time


Document request-upload response

Following up on this: https://github.com/livepeer/studio/issues/1126

We might want something very similar to this: https://docs.mux.com/guides/video/upload-files-directly


Problems with porting app to Firefox

Hi, I'm a great fan of this plugin in Chrome. Unfortunately I work in corporation and I have Chrome blocked, so I use Firefox. The plugin is in Firefox official plugins but it's not working.
I'm like completly new to chrome/firefox plugins (just yesterday I consumed basic informations on MDN), but I pinpointed the problem to files: background.js and app.js. The part with
chrome.storage.sync.get is the problem.
Changing it to chrome.storage.local.get solves the issue, but it's just temporary.
My small research into problem found that the manifest.json doesn't have an ID. (https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/sync)
Can you fix the problem or allow me to do it (more like instruct me)?

sorry, haven't seen there is firefox plugin


Make ToggleButton groups and Button groups extend the full width of their parent

This should've been fixed in the new Radix too 👍


Fix 'Complex Code' issue in Models\ViewModels\OssFullInfo.cs

CodeFactor found an issue: Complex Code
It's currently on:
Models\ViewModels\OssFullInfo.cs

Closing as this was a false positive


Add C++ support for raw CUDA pointer backed state-vector

Context: This PR allows an existing CUDA memory block to be accessed by LightningGPU through a new class StateVectorCudaRaw.
Description of the Change: New class allowing raw CUDA pointer access to cuQuantum routines. Associated tests extended for new class. Modified internal binding names and import structure. IN addition, following on from these supports, a new builder is added to allow Torch tensors to be mapped to the C++ class backend through the raw pointer class.
Benefits: Allows use of externally managed CUDA memory with LightningGPU
Possible Drawbacks: Additional maintenance overhead with additional class. Potential future restructure may be required.
Related GitHub Issues:

Hey @mlxd, I just have one comment, one question, and one suggestion.


feat(client): Allow iframe node in send function

I first tried to use the library like this and it errored.  The docs really don't say much about iframe.contentWindow so I had to do some searching.  I think this makes sense and may save confusion.
Allows:
var frame = document.getElementById('myFrame');
postRobot.send(frame, 'test', data);

Also moved the options.window check to after all the ways to set options.window are complete.  Make sure at the very end options.window.document exists.

Few potential cross-domain errors might be caused by this. My suggestion is, the logic should be:
if (mockmode) { /* use current window */ }
else if (typeof this.window === 'string') { /* Look for iframe with querySelector / getElementById */ }
else if (options.window instanceof HTMLElement) { /* Use contentWindow if iframe */ }
else if (typeof options.window === 'object') { /* Assume options.window is a window */ }
else { /* error */ }

@bluepnume PR updated with your reviews.

One more comment, otherwise looks perfect

Done

Cool! Merging.


Improve sanity checks when using modules and layers

Describe the feature
When working with many modules and/or layers, sometimes there can be a regression in the module that breaks the whole Nuxt application.
For example, I recently spent a few hours figuring out why the useRuntimeConfig() typings were being overridden and resulted in unknown causing build to break.
I have discovered that the module order was problematic:
  modules: [
    "@nuxt/eslint",
    "@nuxtjs/i18n",
    "@nuxt/ui", // <-- Placing this module after the @nuxtjs/i18n resolves the issue
    "@nuxt/image",
    "nuxt-security",
    "@nuxt/fonts",
    "@vueuse/nuxt",
    "radix-vue/nuxt",
    "nuxt-auth-utils",
    "@nuxtjs/seo",
    "@vue-final-modal/nuxt",
    "@vee-validate/nuxt",
    "nuxt-umami",
  ],

Its unclear which module, technically, has a bug without further investigation, but from the Nuxt side, there should be some checks in place to prevent "nuxt" features from being broken by external factors like modules or layers.
Additional information

[ ] Would you be willing to help implement this feature?
[ ] Could this feature be implemented as a module?

Final checks

[X] Read the contribution guide.
[X] Check existing discussions and issues.

Modules should not be dependent on ordering and if they are it's a bug in the module that should be reported and resolved. The problem is that, based on the issue you describe, we wouldn't be able to identify what module is causing an that issue.
I would love Nuxt to be able to do more to report issues like this, however.
Let's treat https://github.com/nuxt/nuxt/issues/25507 as the first step here; I'll close this issue in favour of that one.
But if you have other specific ideas then let's open additional issues to discuss/track.


Buttons with no top margin

re https://github.com/starlake-ai/starlake/pull/681#issuecomment-1822216789

Just tested. It works
Tkanks


Support for FontAwesome Images?

Hey,
Just another feature request, Support for: https://github.com/charri/Font-Awesome-WPF
I noticed that you can set an image, tried setting a fontawesome image however was not supported because it was an image source.
You can do this by using the following method
ImageAwesome.CreateImageSource(FontAwesomeIcon.Android)

My proposal was another property which could be used for setting a fontawesome image as the image?

Thanks. I will make practically a full review of this Menu, to support this and all required templates I was thinking on implement a template as parameter, so you can decide how to display each element. Sadly I am not on this point yet. but I will add it as soon as possible. thaks for your request. I am using this menu for a production project and it works but I think it should be more flexible.


feature: add equal set in functional dependencies

Proposed changes
Issue Number: close #xxx

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

run buildall

run buildall

run buildall

run buildall

run buildall

run buildall

run buildall


Upload file Exception

Hi,
I have an Exception when I want to upload an image. I think Wordpress changed their code. I use 4.5.1.
[HieuLe\WordpressXmlrpcClient\Exception\XmlrpcException] Could not write file  (Empty filename)

@marianvlad you solved this problem?


Magenta in preview window, the shader does not work(URP installation and configuration faults have been excluded)

URP has been installed and configured

To test this, I decided to create a new material. It's normal.
What happen

Best way to solve it- delete the Library folder. Then open the project again


Tessel v8 Aborts Optimization With No Reason

Summary
I’m not sure if this is the correct Github project; if it’s not feel free to guide me to the correct one.
Here’s what I’m doing:

Root into a Tessel 2
vi 000_add.js and save the following script into /:

function printStatus(fn) {
    switch(%GetOptimizationStatus(fn)) {
        case 1: console.log("Function is optimized"); break;
        case 2: console.log("Function is not optimized"); break;
        case 3: console.log("Function is always optimized"); break;
        case 4: console.log("Function is never optimized"); break;
        case 6: console.log("Function is maybe deoptimized"); break;
        case 7: console.log("Function is optimized by TurboFan"); break;
        default: console.log("Unknown optimization status"); break;
    }
}

function add( a, b ) {
    return a + b;
}

add( 1, 2 );
add( 1, 2 );

%OptimizeFunctionOnNextCall(add)
console.log('----');
add( 1, 2 );

printStatus(add);

Execute node --trace-opt --trace-deopt --allow-natives-syntax 000_add.js

I get the following output on the console:
[disabled optimization for 0x2ff2a4b1 <SharedFunctionInfo SAR>, reason: Call to a JavaScript runtime function]
[disabled optimization for 0x2ff29b69 <SharedFunctionInfo ADD>, reason: Call to a JavaScript runtime function]
[disabled optimization for 0x2ff29df1 <SharedFunctionInfo SUB>, reason: Call to a JavaScript runtime function]
[disabled optimization for 0x2ff29ec9 <SharedFunctionInfo MUL>, reason: Call to a JavaScript runtime function]
[disabled optimization for 0x2ff593d1 <SharedFunctionInfo>, reason: TryCatchStatement]
[disabled optimization for 0x2ff56a41 <SharedFunctionInfo FormatMessage>, reason: TryCatchStatement]
[disabled optimization for 0x2ff2a589 <SharedFunctionInfo SHR>, reason: Call to a JavaScript runtime function]
[disabled optimization for 0x2ff2a6cd <SharedFunctionInfo IN>, reason: Call to a JavaScript runtime function]
[disabled optimization for 0x2ff67281 <SharedFunctionInfo NativeModule.require>, reason: Call to a JavaScript runtime function]
[disabled optimization for 0x2ff66bc1 <SharedFunctionInfo NativeModule>, reason: Call to a JavaScript runtime function]
[disabled optimization for 0x2ff6765d <SharedFunctionInfo NativeModule.compile>, reason: TryFinallyStatement]
[disabled optimization for 0x2ff2a151 <SharedFunctionInfo BIT_OR>, reason: Call to a JavaScript runtime function]
[disabled optimization for 0x3574f5fd <SharedFunctionInfo createBuffer>, reason: TryFinallyStatement]
[disabled optimization for 0x357530f1 <SharedFunctionInfo exports.deprecate>, reason: Call to a JavaScript runtime function]
[disabled optimization for 0x2ff2a661 <SharedFunctionInfo DELETE>, reason: Call to a JavaScript runtime function]
[disabled optimization for 0x2ff3588d <SharedFunctionInfo Join>, reason: TryFinallyStatement]
[disabled optimization for 0x357686ad <SharedFunctionInfo Module._load>, reason: TryFinallyStatement]
[disabled optimization for 0x2ff2a229 <SharedFunctionInfo BIT_AND>, reason: Call to a JavaScript runtime function]
[disabled optimization for 0x3576cd45 <SharedFunctionInfo fs.readFileSync>, reason: TryFinallyStatement]
[disabled optimization for 0x2ff2a079 <SharedFunctionInfo MOD>, reason: Call to a JavaScript runtime function]
[disabled optimization for 0x2ff2a955 <SharedFunctionInfo APPLY_PREPARE>, reason: Call to a JavaScript runtime function]
[disabled optimization for 0x2ff2a301 <SharedFunctionInfo BIT_XOR>, reason: Call to a JavaScript runtime function]
----
[aborted optimizing 0x768a4dc1 <JS Function add (SharedFunctionInfo 0x35783165)> because: no reason]
Function is never optimized
[disabled optimization for 0x35762f15 <SharedFunctionInfo nextTickCallbackWithManyArgs>, reason: TryFinallyStatement]

So v8 aborts optimization even with the simplest function without giving any reason (see the output after ---)
For reference if I run the same command in Raspberry Pi, I get the following output:
root@raspberrypi:~/fluent# node --trace-opt-verbose --trace-deopt --allow-natives-syntax 000_add.js
[compiling method 0x4909c1b1 <JS Function add (SharedFunctionInfo 0x38d3fe19)> using Crankshaft]
[optimizing 0x4909c1b1 <JS Function add (SharedFunctionInfo 0x38d3fe19)> - took 0.313, 0.709, 0.415 ms]
Function is optimized

One thing that grabs my attention is I get a much shorter output in raspberry pi, although the script that I execute is identical. — And also raspberry pi properly optimizes the function.
I suspect that the optimization bailout might be due to Tessel’s MIPS architecture, though it would be lovely if a subject matter expert can chime in and enlighten on

why the console outputs of Rasbperry Pi and Tessel (with the same Node.JS version) are very very different?
why cannot Tessel’s v8 runtime Optimize JavaScript?
(my guesstimate is either due to the CPU architecture, or due to the limited memory; though I’m not a subject matter expert on MIPS architecture, so my guesstimates are simply speculative)

Expectation
What happens: Tessel’s v8 runtime bails out optimization without giving a reason, even if it is explicitly forced to do the optimization.
Expectation: Tessel’s v8 runtime should optimize the called function.

Hi @v0lkan. Thank you so much for the in-depth write-up, it's very helpful. The Tessel team is pretty spread out during the holidays, so there's been a bit of a delay in responding to this. We will be checking this out and would love to work with you on this in the New Year. :smile:

Hi @HipsterBrown, no worries; and happy new year!
It would be lovely to help make Tessel faster.
If we can enable v8 optimizations, that might even be a part of my (probably upcoming) Fluent 2017 tech talk on June 2017.
Excited and curious about how this issue will pan out.
Let me know if there’s anything I can do to help.

Cheers,
Volkan.

I’m not sure if this is the correct Github project; if it’s not feel free to guide me to the correct one.

It's not whether this is the correct place or not, it's whether there is anything we can actually do about it (besides investigate together). I'm not sure where the correct place would be—more on this to follow.

I suspect that the optimization bailout might be due to Tessel’s MIPS architecture
...
why cannot Tessel’s v8 runtime Optimize JavaScript?

I found these, which are interesting:

https://bugs.chromium.org/p/v8/issues/detail?id=4704
http://techfindings.one/archives/tag/node-js

I'm still digging, but I need to change gears for a few hours and didn't want to leave this unposted

Hey @HipsterBrown @rwaldron — do you have any update on this? — Will she live, doctor?

Sorry, I haven't made any progress here.


requirements.txt is missing the onnx module

Issue Type
Others
Source
source
MCT Version
2.0.0
OS Platform and Distribution
macOS 14.3.1
Python version
3.10.11
Describe the issue
requirement.txt is missing the onnx library and will raise a ModuleNotFoundError in the example_keras_yolov8n tutorial

Expected behaviour
Following the notebook will run without manually having to install the onnx module

Code to reproduce the issue
import model_compression_toolkit as mct

or follow the example_keras_yolov8n.ipynb tutorial  and the Post training quantization using Model Compression Toolkit section will raise a ModuleNotFoundError
Log output
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-3-d0b3af1c43fe> in <cell line: 1>()
----> 1 import model_compression_toolkit as mct
      2 from typing import Iterator, Tuple, List
      3
      4 REPRESENTATIVE_DATASET_FOLDER = './coco/val2017/'
      5 REPRESENTATIVE_DATASET_ANNOTATION_FILE = './coco/annotations/instances_val2017.json'

10 frames
/content/./local_mct/model_compression_toolkit/exporter/model_exporter/pytorch/fakely_quant_onnx_pytorch_exporter.py in <module>
     17
     18 import torch.nn
---> 19 import onnx
     20
     21 from mct_quantizers import PytorchActivationQuantizationHolder, PytorchQuantizationWrapper

ModuleNotFoundError: No module named 'onnx'

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

Will be fixed by #1060

@reuvenperetz
Thank you for checking out and fixing the issue.
If you don't mind, I have a quick question. What would be the proper way / channel to ask questions regarding the MCT? Could I open an "issue" in this repository to ask for some help? Or is there any forum / discussion board where I could ask some general questions?
I appreciate your work and hope to make a contribution in the future. I will closed the PR I submitted but leave this issue open for now :)

Currently, the best way to ask questions is using an issue.
Your contributions are greatly appreciated! Please don't hesitate to ask any questions :)


tests and docs for cashay-loader

Now it's official! 💯

Call me crazy, but i think we should word it so the webpack method is the default & the CLI is the back-up, almost footnote-ish ("opinionated software" and whatnot :wink:). I don't really see them as equals, since if you take the webpack route you'll never have to worry about a stale schema. That alone would be enough to make me use webpack in my project.

i'll merge for now & we can wordsmith later.

I'm getting Module build failed: ReferenceError: regeneratorRuntime is not defined when implementing the loader from the docs, and as far as I can see regeneratorRuntime isn't actually included anywhere in lib.

hmmm, must be missing a babel-polyfill somewhere

@jordanh I can't get the loader working after adding babel-polyfill to cashay/src/index.js
import { transformSchema } from 'cashay'
import schema from './index'

// Side-step 'Error: Schema must be an instance of GraphQLSchema.'
const graphql = require('graphql').graphql

export default async () => await transformSchema(schema, graphql)

It just keeps complaining Module build failed: TypeError: doc.then is not a function. I'm a bit confused since the async/await should return a promise no matter what. Could it be something related to the babel-polyfill?

can confirm, var doc = this.exec(content, this.resource); is returned an object, not a promise, which isn't supposed to happen...

This is my getCashaySchema.babel.js:
require('babel-register');
require('babel-polyfill');
module.exports = require('./getCashaySchema')();

@simenbrekken: @mattkrick and I talk about this this morning, I clarified the docs and example for this.
See #58 !


Week 1

Package
Name
Sophie van der Burg
Class
Tech2b
Repo link
https://github.com/Sophievanderburg/blok-tech
Summary
I read all the articles and made notes for myself. This took a long time to finish. Then I did the freecodecamp excercises. This went pretty good actually. Then I started on the assignments. With help of my classmates I managed to do everything.
Resources used
You can find all the resources i used on: https://github.com/cmda-bt/be-course-20-21/blob/main/week-1.md
Any thoughts?
Many new terms are used in the articles. At least, the terms are new to me. Since everything is quite abstract to me, it was difficult to understand the first time I read it. That is why I had to read almost all articles 2 or 3 times before I roughly understood what was being told. I was able to ask a lot of questions to my classmates. This has helped me a lot. I think I kind of get it now, but I wouldn't put any money on that.