Conversion from u32 to f32 via cast() can be inexact

My understanding from the docs is that conversions via cast() should always be exact, but this is not currently the case.
let x: f32 = (!0u32).cast();
println!("{}", !0u32); // prints<PHONE_NUMBER>
println!("{}", x); // prints<PHONE_NUMBER>

There is a check ...
macro_rules! impl_via_as_revert_check {
    ($x:ty: $y:ty) => {
        impl Conv<$x> for $y {
            #[inline]
            fn conv(x: $x) -> $y {
                let y = x as $y;
                debug_assert_eq!(x, y as $x);
                y
            }
        }
    };
}

impl_via_as_revert_check!(u32: f32);

... but apparently it doesn't work:
fn main() {
    println!("{}, {}, {}", !0u32, !0u32 as f32, (!0u32 as f32) as u32);
}

4294967295,<PHONE_NUMBER>,<PHONE_NUMBER>

Thanks for reporting.

Interestingly, (!0u32 as f32) as u64 is<PHONE_NUMBER> (=2**32) despite (!0u32 as f32) printing as<PHONE_NUMBER>, and there shouldn't be any futher rounding happening here — so presumably the std::fmt::Display impl of f32 is wrong. Presumably this is https://github.com/rust-lang/rust/issues/70336.

OK, so I think I've figured this one out. Ugh.
Rust recently defined their cast semantics: casting a float to an int now sets it to maxint if the result is too large to fit. This is IMHO a terrible, terrible design decision, but there we are.
So easy_cast::cast()'s check that a number is properly cast back to its original value works for every u32/f32 case except !0u32. Ugh. You should see the same problem for the max value of every integer type and the min value of every signed type.
Why don't Rust's casts just fail when they aren't exact? Wouldn't that be nice?
use easy_cast::Cast;

fn main() {
    let x = !0u32 - 1;
    let y = x as f32;
    println!("{}", x); // prints 429467294
    println!("{}", y); // prints 429467300
    println!("{}", y as u32); // prints 429467295 (neat?)

    let xx = !0u32;
    let y: f32 = x.cast(); // does not fail as it should
    println!("{}", xx); // prints 429467295
    println!("{}", y); // prints 429467300
    println!("{}", y as u32); // prints 429467295 (neat?)

    let _: f32 = x.cast(); // fails as desired
}

Looks like you already caught this and fixed it in PR #6. Nice!

Why don't Rust's casts just fail when they aren't exact? Wouldn't that be nice?

Because as was defined quite early and not fixed before 1.0. It does several jobs, e.g. u8::MAX as i8 as i32 as u32 == u32::MAX.
I think most of the uses of this "revert check" were wrong actually hence why I replaced them. Only the f64 → f32 → f64 check is okay since f32 as f64 is always exact.


Exclude pages

Hello,
Would it be possible to be able to exclude pages for automatic ads?
For example, on a login page, there is not enough content and Google Adsense calls me to order for non-compliance with the rules, because the page does not have enough content.
Thank you

You can do that on ads settings page

This is already possible in userland by not showing ads there, see e.g. https://github.com/albionstatus/albionstatus-website/blob/ffe8a661fba2ba4f4706d1adab0b45f599a81424/components/ad/WrapperSidebar.vue


Unable to install tiktoken in ubuntu 18.04 server

I'm unable to install tiktoken python library  in Ubuntu server for django via pip install tiktoken.
It worked in local windows system but failing in the Ubuntu server
Below is whay it says after: pip install tiktoken
ERROR: Could not find a version that satisfies the requirement tiktoken (from versions: none)
ERROR: No matching distribution found for tiktoken

This isn't sufficient detail in this issue report for me to know for sure what's wrong, but my guess is you're using an old version of Python. tiktoken only supports Python 3.8 and newer.

Yeah, you are right, its Python 3.6.9


Add new attributes for subscriptions

fix #6

Codecov Report

Merging #7 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##             master     #7   +/-   ##
=======================================
  Coverage       100%   100%
- Complexity      264    270    +6
=======================================
  Files            22     22
  Lines           808    838   +30
  Branches         49     49
=======================================
+ Hits            808    838   +30

Impacted Files
Coverage Δ
Complexity Δ

.../src/main/java/jp/alessandro/android/iab/Item.java
100% <100%> (ø)
20 <7> (+6)
: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 033a74c...41aad4d. Read the comment docs.


Hi

Hey, love the project and the support for more mongo drivers in deno.
Was wondering if you plan to write more docs on the functions/hooks in this lib? The example is good but maybe some commends on what the code is doing would be nice as well.

Thank you for your use. I'm sorry to be busy these two weeks. I may not have time to do this work.
This is my inspiration from Mongoose, and inherite from deno_mongo this project.
The method naming is more semantic. For example, the search is findOne and findMany, the update is updateOne and updateMany, the search and update is findOneAndUpdate and findByIdAndUpdate, and the deletion is deleteMany, delete, deletebyId and findOneAndDelete.
The specific parameters should be able to see the type annotation in the IDE, such as this:
export interface DeleteOptions {
  /**
   * Optional. If true, then when a delete statement fails, return without performing the remaining delete statements.
   * If false, then when a delete statement fails, continue with the remaining delete statements, if any. Defaults to true.
   */
  ordered?: boolean;

  /**
   * Optional. A document expressing the write concern of the delete command. Omit to use the default write concern.
   */
  writeConcern?: Document;

  /**
   * Optional. Specifies the collation to use for the operation.
   * See https://docs.mongodb.com/manual/reference/command/delete/#deletes-array-collation
   */
  collation?: Document;

  /**
   * Optional. A user-provided comment to attach to this command.
   */
  comment?: Document;

  /**
   * The number of matching documents to delete. Specify either a 0 to delete all matching documents or 1 to delete a single document.
   */
  limit?: number;

  /**
   * Optional. A document or string that specifies the index to use to support the query predicate.
   * The option can take an index specification document or the index name string.
   * If you specify an index that does not exist, the operation errors.
   */
  hint?: Document | string;
}

I just encapsulated a layer on it.
Although I implemented hooks, I only used it in one place in my work.
Personally, what makes sense is virtual, which reduces a lot of my workload.
Thank you again for your use. I'll start the work in two weeks when I have time. If you have any bugs, please feel free to contact me.

Sorry for the late reply, but thanks for the help!


Updates the notification job to query users using the phone number field

This PR's branch has been stale for 4 months.
Please consider deleting it if it's obsolete to minimise the size of the repo clone.
cc @NoahNsimbe


feat: improvement to cli tool

Hi @xhayper, thanks for your contribution. can you add  release.yml  file in workflows so we can release new versions?

I am really sorry but i do not know how to do that as i am not that good at github actions.


PackageProvider issues

Hello,
Do you have any idea about this error please:
WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''.
WARNING: Unable to download the list of available providers. Check your internet connection.
Install-PackageProvider : No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the
tags.
Regards

Hello @SydneyhSmith Thanks your comment.
Actually, I had no errors when I've used the wifi!!
So some sources are blocked using Ethernet!!

Hello @SydneyhSmith Thanks your comment.
Actually, I had no errors when I've used the wifi!!
So some sources are blocked using Ethernet!!

If I run what @SydneyhSmith asked above (getting this same error running this on Powershell V7), I get this.
PS C:\Windows\System32> Invoke-WebRequest https://onegetcdn.azureedge.net/providers/providers.masterList.feed.swidtag
StatusCode        : 200
StatusDescription : OK
Content           :
<SoftwareIdentity xmlns="http://standards.iso.org/iso/19770/-2/2015/schema.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:discovery="http://p…
RawContent        : HTTP/1.1 200 OK
Accept-Ranges: bytes
Age: 190280
Date: Thu, 22 Jul 2021 19:14:22 GMT
ETag: 0x8D6B86A3211513D
Server: ECAcc
Server: (sec/9770)
Vary: Accept-Encoding
X-Cache: HIT
x-ms-blob-type…
Headers           : {[Accept-Ranges, System.String[]], [Age, System.String[]], [Date, System.String[]], [ETag,
System.String[]]…}
Images            : {}
InputFields       : {}
Links             : {}
RawContentLength  : 1847
RelationLink      : {}

@rconiv thanks for reaching out! Are you getting the exact same error message as the original poster? If so could you please provide the full error output/stack trace?
Could you please also run:
gmo "PowerShellGet", "PackageManagement" -ListAvailable
This may be related to some TLS issues which were resolved in later PowerShellGet versions so as long as you have a version >= <IP_ADDRESS> that should be resolved.

I don't get the warnings, but the rest is the same.
PS C:\Windows\System32> Install-PackageProvider -Name NuGet -Force
Install-PackageProvider: No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags.
PS C:\Windows\System32> gmo "PowerShellGet", "PackageManagement" -ListAvailable
Directory: C:\Users\jonm\OneDrive - Universal Language Service\Documents\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands

Script     2.2.5                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-M…
Directory: C:\program files\powershell\7\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands

Script     1.4.7                 PackageManagement                   Desk      {Find-Package, Get-Package, Get-Package…
Script     2.2.5                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-M…
Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands

Script     1.4.7                 PackageManagement                   Desk      {Find-Package, Get-Package, Get-Package…
Binary     <IP_ADDRESS>               PackageManagement                   Desk      {Find-Package, Get-Package, Get-Package…
Script     2.2.5                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-M…
Script     <IP_ADDRESS>               PowerShellGet                       Desk      {Install-Module, Find-Module, Save-Modu…

I think the problem is with caused by OneDrive. I have seen all kinds of strange errors when the Modules folder (under Documents) has been redirected to OneDrive. Try removing your Documents folder from OneDrive sync.

I was wondering that myself.  Interesting they decided to put the modules folder in the documents folder.  Would think that this issue would show up fairly often, unless most people don't have their documents backing up to onedrive.
I turned off Documents from OneDrive sync, and copied the powershell folder in to it (by default the files stay on the onedrive folder it seems), and when I run gmo "PowerShellGet", "PackageManagement" -ListAvailable it still shows it looking for it in the onedrive folder.  Is there something I have to do, to get it to look at the local documents folder, and not the onedrive one?

Be sure to start a new PowerShell session after you disabled OneDrive and restored the Documents folder.


Revert resource reference resolution

Revert resource reference resolution (#401 and #412)
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/remove-lgtm

/retest

/lgtm


Overly strict bounds on tasty

Seems to pass tests without issue with tasty-1.2.3

The bounds were updated some time ago.


[Snyk] Security upgrade org.apache.jena:jena-fuseki-core from 4.9.0-SNAPSHOT to 5.2.0

Snyk has created this PR to fix 6 vulnerabilities in the maven dependencies of this project.
Snyk changed the following file(s):

jena-fuseki2/jena-fuseki-access/pom.xml

Vulnerabilities that will be fixed with an upgrade:

Issue
Score
Upgrade

Stack-based Buffer Overflow SNYK-JAVA-COMGOOGLEPROTOBUF-8055227
  124
org.apache.jena:jena-fuseki-core:  4.9.0-SNAPSHOT -> 5.2.0  No Known Exploit

Denial of Service (DoS) SNYK-JAVA-ORGECLIPSEJETTY-8186142
  112
org.apache.jena:jena-fuseki-core:  4.9.0-SNAPSHOT -> 5.2.0  No Known Exploit

Improper Validation of Syntactic Correctness of Input SNYK-JAVA-ORGECLIPSEJETTY-8186141
  62
org.apache.jena:jena-fuseki-core:  4.9.0-SNAPSHOT -> 5.2.0  Proof of Concept

Improper Validation of Syntactic Correctness of Input SNYK-JAVA-ORGECLIPSEJETTY-8186158
  62
org.apache.jena:jena-fuseki-core:  4.9.0-SNAPSHOT -> 5.2.0  Proof of Concept

Denial of Service (DoS) SNYK-JAVA-ORGECLIPSEJETTY-8186168
  50
org.apache.jena:jena-fuseki-core:  4.9.0-SNAPSHOT -> 5.2.0  No Known Exploit

Denial of Service (DoS) SNYK-JAVA-ORGECLIPSEJETTY-8186167
  40
org.apache.jena:jena-fuseki-core:  4.9.0-SNAPSHOT -> 5.2.0  No Known Exploit

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Denial of Service (DoS)

Checkmarx One – Scan Summary & Details – 45a49b8d-db8c-4333-a341-21fd4fe04a1c
New Issues

Severity
Issue
Source File / Package
Checkmarx Insight

CVE-2022-46337
Maven-org.apache.derby:derby-<IP_ADDRESS>
Vulnerable Package

CVE-2023-36478
Maven-org.eclipse.jetty:jetty-http-10.0.15
Vulnerable Package

CVE-2023-43646
Npm-get-func-name-2.0.0
Vulnerable Package

CVE-2023-45133
<EMAIL_ADDRESS>Vulnerable Package

CVE-2024-23331
Npm-vite-4.0.4
Vulnerable Package

CVE-2024-37890
Npm-ws-8.12.0
Vulnerable Package

CVE-2024-4068
Npm-braces-3.0.2
Vulnerable Package

CVE-2024-45296
Npm-path-to-regexp-0.1.7
Vulnerable Package

CVE-2024-45296
Npm-path-to-regexp-1.8.0
Vulnerable Package

CVE-2024-45590
Npm-body-parser-1.20.1
Vulnerable Package

CVE-2024-45801
Npm-dompurify-2.4.3
Vulnerable Package

CVE-2024-47554
Maven-commons-io:commons-io-2.11.0
Vulnerable Package

CVE-2024-47875
Npm-dompurify-2.4.3
Vulnerable Package

CVE-2024-7254
Maven-com.google.protobuf:protobuf-java-3.23.2
Vulnerable Package

CVE-2022-29622
Npm-formidable-1.2.6
Vulnerable Package

CVE-2023-26159
Npm-follow-redirects-1.15.2
Vulnerable Package

CVE-2023-28155
<EMAIL_ADDRESS>Vulnerable Package

CVE-2023-36479
Maven-org.eclipse.jetty:jetty-servlets-10.0.15
Vulnerable Package

CVE-2023-40167
Maven-org.eclipse.jetty:jetty-http-10.0.15
Vulnerable Package

CVE-2023-42503
Maven-org.apache.commons:commons-compress-1.23.0
Vulnerable Package

CVE-2023-44270
Npm-postcss-8.4.21
Vulnerable Package

CVE-2023-45857
Npm-axios-0.27.2
Vulnerable Package

CVE-2023-46749
Maven-org.apache.shiro:shiro-web-1.11.0
Vulnerable Package

CVE-2023-46750
Maven-org.apache.shiro:shiro-web-1.11.0
Vulnerable Package

CVE-2024-25710
Maven-org.apache.commons:commons-compress-1.23.0
Vulnerable Package

CVE-2024-26308
Maven-org.apache.commons:commons-compress-1.23.0
Vulnerable Package

CVE-2024-28849
Npm-follow-redirects-1.15.2
Vulnerable Package

CVE-2024-29041
Npm-express-4.18.2
Vulnerable Package

CVE-2024-31207
Npm-vite-4.0.4
Vulnerable Package

CVE-2024-34343
Npm-ufo-1.0.1
Vulnerable Package

CVE-2024-4067
Npm-micromatch-4.0.5
Vulnerable Package

CVE-2024-43796
Npm-express-4.18.2
Vulnerable Package

CVE-2024-43799
Npm-send-0.18.0
Vulnerable Package

CVE-2024-43800
Npm-serve-static-1.15.0
Vulnerable Package

CVE-2024-45811
Npm-vite-4.0.4
Vulnerable Package

CVE-2024-45812
Npm-vite-4.0.4
Vulnerable Package

CVE-2024-47068
Npm-rollup-3.11.0
Vulnerable Package

CVE-2024-47764
Npm-cookie-0.5.0
Vulnerable Package

CVE-2024-6531
Npm-bootstrap-5.2.3
Vulnerable Package

Cx14b19a02-387a
Npm-body-parser-1.20.1
Vulnerable Package

Use_of_Cryptographically_Weak_PRNG
/jena-arq/src/main/java/org/apache/jena/sparql/expr/E_Random.java: 34
Attack Vector

Fixed Issues

Severity
Issue
Source File / Package

CVE-2022-38900
Npm-decode-uri-component-0.2.2

CVE-2007-2379
Npm-jquery-3.6.3

CVE-2014-6071
Npm-jquery-3.6.3

Host Namespace is Shared
/docker-compose.yaml: 20

Improper_Restriction_of_Stored_XXE_Ref
/jena-iri/src/main/java/org/apache/jena/iri/impl/BuildViolationCodes.java: 35

Improper_Restriction_of_Stored_XXE_Ref
/jena-iri/src/main/java/org/apache/jena/iri/impl/BuildViolationCodes.java: 39

Improper_Restriction_of_Stored_XXE_Ref
/jena-iri/src/main/java/org/apache/jena/iri/impl/BuildViolationCodes.java: 38

Networks Not Set
/docker-compose.yaml: 20


Epic: Memory in Semantic Kernel

[!NOTE]
This issue tracks all of the items necessary for simplifying memory usage in Semantic Kernel.

### .Net
- [ ] https://github.com/microsoft/semantic-kernel/issues/3014

### Python

### Java

Closing; will create new issues for this later.


Update Firefox versions for api.HTMLElement.hidden

17377

 Quality gate: NA
Details

 Quality gate: NA
Details


the demo doesn't work

I have no access to the demo site, can you provide some alternative pictures. Better if you have a video tutorial on your source code - I'm a non-programming person. Thank you .

It does work, its a REST api I made to scrape manga info from mangakakalot. You need to send a POST request to the url routes, the actual front end where you can read manga is still being constructed here.


Use Expression Class for Bultin Double

Instead of creating the object itself and getting that class from that, we might be able to get it from using an expression statement somehow.

Alternativy we could simply pass in the "buitin" boolean when creating the director along with the base class string (rather than instancing it).

No longer necessary. Users aren't passing the builtin classes, we are via the scene instancing and in our case it is ALWAYS as a String. So we just removed a bunch of the object instancing rubbish in favor of a simple check in aafd89217285c6f5980aa1987a6ff17915d1ae48


add Travis and CodeCov badges to Readme

add badges to our Readme now that we have Trave and CodeCov set up.

Codecov Report

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

@@           Coverage Diff           @@
##           master      #78   +/-   ##
=======================================
  Coverage   93.76%   93.76%
=======================================
  Files         103      103
  Lines        4765     4765
  Branches       75       75
=======================================
  Hits         4468     4468
  Misses        297      297

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 b2ecc43...aa27343. Read the comment docs.


[Merge]MONDO:0019847 congenital adrenal hypoplasia of maternal cause with MONDO_0010264 X-linked adrenal hypoplasia congenita

Mondo term (ID and Label)
http://purl.obolibrary.org/obo/MONDO_0019847 with http://purl.obolibrary.org/obo/MONDO_0010264
Reason for deprecation
MONDO:0019847 congenital adrenal hypoplasia of maternal cause-  Property value is exactMatch Orphanet:95701 which does not exist. Maybe caused by a typo as I think it should be Orphanet:95702
This might have been caused by MeSH: C536757 (which is now obsolete) but I am not sure. I cannot figure out what now should be the MeSH term for MONDO_0010264, any suggestions?
Term to be merged with
MONDO_0010264 X-linked adrenal hypoplasia congenita

This may be the correct MESH term:
https://meshb.nlm.nih.gov/record/ui?ui=D000075262

@lcdaugherty I'm not sure that MONDO:0019847 congenital adrenal hypoplasia of maternal cause is equivalent to MONDO_0010264 X-linked adrenal hypoplasia congenita.
When I tried to merge the two, there were issues when I ran the reasoner because 'congenital adrenal hypoplasia of maternal cause' is classified as a child of 'acquired chronic primary adrenal insufficiency' (according to Orphanet).
Maybe it is best to just obsolete this class and add a 'consider' to MONDO_0010264 X-linked adrenal hypoplasia congenita.

@lcdaugherty please let me know if the proposed action above works for you.
Thanks!

@nicolevasilevsky yes this works for us, thanks


Migrate data between datastores

It would be great if there were a way to migrate data between datastores.
Posted an SO question about this as well http://stackoverflow.com/questions/27992698/how-to-migrate-data-between-datastores-using-dragonfly

You probably have something like this Dragonfly.app.configure do somewhere in your app. You would update this to your new configuration. You'd preserve your old configuration in a block like Dragonfly.app("filestore").configure do.
Then you for each resource you might do something like:
old_app = Dragonfly.app("filestore")
Image.find_each do |image|
  job = old_app.fetch(image.photo_uid)
  image.photo = job.to_file(job.name)
  image.save
end

You could also look at how files are stored in S3 and write something to copy the files from your local data store to S3 and then simply update the data store provider in the app. Yeah, I think I'd go with this option if you can.

@lcowell thanks for perfect tip.
Finally I changed the migrating procedure a bit (do not save and validate whole object, do not create temp file):
 old_app = Dragonfly.app("filestore")
 Image.find_each do |image|
   job = old_app.fetch(image.photo_uid)
   image.update_attributes!(image_uid: Dragonfly.app.store(job.data, job.meta))

end


feature: implement back button routing

Summary
This PR adds a history/routing for the back button. It allows to move back sequentially. Optionally it is possible to add a close function as first element when the list becomes refreshed.
Changelog
- Added a heap to track the functions that will be called through the back button (last in first out)
- Added a back button store to interact with the heap interface (Add, Remove, Refresh)
- Changed the basic router to consider back button actions
- Added the back button store to several components to consider drawer and popup interaction

Relevant Issues
Closes #3931
Testing
Platforms

Please select any platforms where your changes have been tested.

Desktop

[ ] MacOS
[ ] Linux
[ ] Windows

Mobile

[x] iOS
[x] Android

Instructions

Please describe the specific instructions, configurations, and/or test cases necessary to test and verify that your changes work as intended.

...
Checklist

Please tick all of the following boxes that are relevant to your changes.

[x] I have followed the contribution guidelines for this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have added or modified tests that prove my changes work as intended
[x] I have verified that new and existing unit tests pass locally with my changes
[x] I have verified that my latest changes pass CI workflows for testing and linting
[ ] I have made corresponding changes to the documentation

I've implemented a test here: https://github.com/iotaledger/firefly/pull/4020/files
I think in this way we avoid to add code mixed with desktop, and avoid to test on it as it should be well tested and is prone to introduce issues, if we only add code on mobile side would be better imo


Carousel component is not working on Astro Framework

I know many people are using NextJS but I tried to use Astro framework for testing several things.
I followed all the instructions of integrate with Shadcn UI with Astro and other components work fine.
But recently added component called Carousel is not working at all in astro. I am wondering if this is only my issue.
It doesn't autoplay, and when I click the arrow button, it doesn't work.

Astro does not ship JS by default. Use client:load.

I am facing the same problem, using client:load on my react component. It seems like the api object returned from useEmblaCarousel remains undefined, which leads to the mentioned above behaviour

Then I suggest to make a minimal reproduction repository. I have the component working in Astro.

@levino as your suggestion, using client:load at the component and now it works perfectly.
For anyone who has similar question, refer this astro doc

I am still struggling to get the carousel to work. I have installed the component and am trying to use it within a .astro component as so:
---
import {
  Carousel,
  CarouselContent,
  CarouselItem,
  CarouselNext,
  CarouselPrevious,
} from "@/components/ui/carousel";
---

  {Other elements..}
  <Carousel client:load>
    <CarouselContent client:load>
      <CarouselItem client:load>...</CarouselItem>
      <CarouselItem client:load>...</CarouselItem>
      <CarouselItem client:load>...</CarouselItem>
    </CarouselContent>
  </Carousel>

Is this the correct way? I am getting the following error:
useCarousel must be used within a <Carousel />

@hgrias
I just worked through this with the help of this guide I found: https://spacemadness.dev/docs/add-a-shadcn-ui-component/
Here is what worked for me.

their own componentName.tsx in src.components
this imports the shadcn component and is implemented however you like
then componentName.tsx is imported into your .astro file and the client:load is applied.

In src/components/PortfolioCarousel.tsx
import {
  Carousel,
  CarouselContent,
  CarouselItem,
  CarouselNext,
  CarouselPrevious,
} from "@/components/ui/carousel"
import { Card, CardContent } from "@/components/ui/card"

export default function PortfolioCarousel() {
	return (
<Carousel className="w-full max-w-xs">
    <CarouselContent>
      {Array.from({ length: 5 }).map((_, index) => (
        <CarouselItem key={index}>

            <Card>
              <CardContent className="flex aspect-square items-center justify-center p-6">
                {index + 1}
              </CardContent>
            </Card>

        </CarouselItem>
      ))}
    </CarouselContent>
    <CarouselPrevious />
    <CarouselNext />
  </Carousel>
	)
}

in index.astro
---
import PortfolioCarousel from "../components/PortfolioCarousel";
---
<!doctype html>

Hello There

			<PortfolioCarousel client:load />

I don't know if this is the only way, but it's working for me.

i need to insatall some pakages or something? i dont find the place where is the install


Azure VM with O365 Pre-installed #devops

New ARM template to provision a new Azure VM with either Office 2013 or Office 2016 pre-installed to assist with development and testing of O365 Addins.
Script included to provision a new Azure VM with Office and then download the RDP file.  Provisioning takes anywhere between 8-20 mins (dependent on Azure) to create a brand new VM with Office version pre-installed (using silent installation).
ARM template requires reference to new powershell script, currently in my fork.  This will need to be updated once in the master branch - which I can patch once accepted.

Hi @daltskin, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.microsoft.com.

TTYL, MSBOT;

@daltskin, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.
Thanks, MSBOT;


Add Alt text to all images on the results page

I'm submitting a feature request.
What feature do you recommend to add?
Add alt text to all images and Highcharts graphs on results page:

What is the value of this feature?

Website will be more accessible for screen readers;
Improved SEO;

Solution (or options to fix the bug)

[ ] Add alt text to all images on the results page: https://council-emissions-calculator-spike-flax.vercel.app/

survey pages are out of scope for this one;

[ ] Add alt text to Highcharts graphs (this might be a bit tricky, analysis is required and review of documentation for Highcharts: https://www.highcharts.com;

Link to Trello card

 [DEV]: Add Alt text to all images

 [DEV]: add alt text for charts in results page


error: Text error message for non 200 form submission

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 #313 #311
Test URLs:

Before: https://main--mammotome--hlxsites.hlx.page/us/en/
After: https://313-mammotomoe--mammotome--hlxsites.hlx.page/us/en/

LGTM


Support multiple edges/paths between a pair of nodes

Please describe the feature that you want to propose
A similar effect I want is the BiDirectional egdes in this example.
But in this example it's very complicated to achieve that, as we need to write some customized logic to calculate the path. It would be great to let the library automatically calculate the paths and do the layout if multiple edges exists between a pair of nodes.
Or is there any other best practice for this?
Thanks!

@sinoryx  multiple edges exists between a pair of nodes I think will not have more than two connections ?

duplicate of #3758


Add DSpeech Portable 1.73.209

Microsoft Reviewers: Open in CodeFlow

Ref #897

I worked with the smartscreen team to get this to pass, but I cannot get it to install silently.  Any thoughts?


Pictures/logos broken on new container window

Expected behavior
I expect pictures/logos for images to show on new container window
Actual behavior
Broken image pictures occur rather than pictures/logos

Information about the Issue
I'm on a corporate network with a proxy and I suspect that may have something to do with this. I'm able to download Docker images without any problems.

Could you try to setup Kitematic to work behind a proxy and see if this helps?
https://github.com/docker/kitematic/wiki/Common-Proxy-Issues-&-Fixes

Interestingly now it is working even though I didn't change anything yet.


Select in finds methods optional fields

Hello, when I select an optional field in my database like that:
select: {
    id: true,
    username: true,
    data: {
         select: {
              accountId: true
         }
    }
}

where the model is :
type CUID = String @id @default(cuid())

model AccountConfiguration {
  id                          CUID
  username           String                       @unique
  data                     AccountData?
}

then typescript definition don't tell that it can be optional (null or undefined)

It should be { accountId: number; } | undefined
Thanks

Fixed in latest alpha.
You can try it out with npm i -g prisma2@alpha.

Doesn't work for me on alpha 241, you tested it on a findOne?

Oh is working in 242, but I have a question why for an Array type it can be | null return just an empty array is better because now we have to check if its not null to iterate...


How can I apply tf.function decorator to this interface?

Hi ! Thank you for creating this interface. It works pretty fast for me.
While running the text similarity with "en_use_cmlm_md" model, I found the log that says something about tf.function retracing.
Compared to the original models, the new models (cmlm) are much slower. So I tried to look for any way to improve the speed.
I would assume tf.function could boost up the performance, given that I restrict the shape and datatype of Tensors.
triggered tf.function retracing. Tracing is expensive and the excessive number of tracings is likely due to passing python objects instead of tensors. Also, tf.function has experimental_re
lax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. Please refer to https://www.tensorflow.org/tutorials/customization/performance#python_or_tensor_args and https://www.tensorflow.org/api_docs/python/tf/function for more details.

Is there any way that I can increase the performance of calculating semantic similarity by using tf.function on this interface?
It seems your interface would work much faster than what I implemented by the tensorflow hub, given that I solve the problem from the above warning logs on this interface.
Cheers !

Hi @TheoSeo93 !
Thank you for opening this issue. I also noticed that warning previously.
I tried to play with the function that inside this library calls the preprocessor and embeds the documents. The issue is probably around this piece of code:
https://github.com/MartinoMensio/spacy-universal-sentence-encoder/blob/master/spacy_universal_sentence_encoder/language.py#L211
I have tried to decorate this function with the @tf.function and also with @tf.function(experimental_relax_shapes=True) but after a few calls I always receive the warning.
Have you tried to use directly the model as described in https://tfhub.dev/google/universal-sentence-encoder-cmlm/en-large/1 ?
At the moment my interface does not allow to process a batch of texts at the same time, and I call the encoder with one text at a time. Maybe you will increase a lot the performances if you use directly the encoder and submit your documents in batches:
import tensorflow_hub as hub
import tensorflow as tf

english_sentences = tf.constant(["dog", "Puppies are nice.", "I enjoy taking long walks along the beach with my dog."])

preprocessor = hub.KerasLayer(
    "https://tfhub.dev/tensorflow/bert_en_uncased_preprocess/3")
encoder = hub.KerasLayer(
    "https://tfhub.dev/google/universal-sentence-encoder-cmlm/en-large/1")

# here all the sentences are sent together as a batch
# and also maybe it needs to be wrapped in a @tf.function this piece ???
english_embeds = encoder(preprocessor(english_sentences))["default"]

print (english_embeds)

I am sorry but I didn't manage to solve this yet.
Best,
Martino

Thank you for such a kind response :)
I tried using tf.function decorator on your module, and did comparison of 10 sentences from Brown corpus.
For some reason, the warning log does not show up in the Windows environment, but I did see some speed improvement after editing some of your code.
Here is what I ran to measure time.

import spacy_universal_sentence_encoder
from nltk.corpus import brown
import time

encoder = spacy_universal_sentence_encoder.load_model('en_use_cmlm_md')
sentences = brown.sents()[:10]
sen_embed = encoder("I have this")

start = time.time()

print("time :", time.time() - start)
for candidate in sentences:
    sent = " ".join(candidate)
    score = sen_embed.similarity(encoder(sent))
    print(score)

print("time :", time.time() - start)

It took 5.2730 seconds before I added tf.function decorator, and it became about 4.676284 seconds after editing it.
(No drastic change though)
So I'm not 100% sure but, I guess it works on your code.
To see if it works or not, I would have to try it in the Ubuntu environment.
    # Specify input_signature in tf.function to limit tracing. - I followed the tensorflow hub documentation from here
    # https://www.tensorflow.org/guide/function#controlling_retracing
    @tf.function(input_signature=(tf.TensorSpec(shape=[None], dtype=tf.string),))
    def embed(self, texts):
        """Embed multiple texts"""
        # print('embed TFHubWrapper called')
        if hasattr(self.model, 'preprocessor'):
            result = self.model(self.model.preprocessor(texts))['default']
        else:
            result = self.model(texts)
        # result = np.array(result)   # for some reason, np.array crashes after changing the argument type.
        return result

    # extension implementation
    def embed_one(self, span):
        text = span.text
        # print('enable_cache', TFHubWrapper.enable_cache)
        if self.enable_cache and text in self.embed_cache:
            return self.embed_cache[text]
        else:
            result = self.embed(tf.constant([text]))[0] #Converted a sentence into a tf.constant
            if self.enable_cache:
                self.embed_cache[text] = result
            return result

Thank you for suggesting the idea of putting sentences together as a batch. I guess that would help much better.
Have a great weekend !

Hi @TheoSeo93,
Thank you very much for your useful information.
I measured the time difference between the previous version and your suggested version on my machine (macOS) and I confirm the following:

the warning does not appear anymore
there is a significant reduction in the execution time

Before your modifications: 4.73 sec
With your modification (c3d6ffc): 3.94 sec
With .numpy() called after the embed function (bbc6efe): 3.25 sec (I guess that spaCy finds it easier to work with numpy types instead of tensors with nested numpy)
Altogether is a huge improvement. Thank you for investigating and solving this.
Best,
Martino


[BUG] Long loop error with warning notification

Describe the bug
I have a long loop with a notification warning popping up almost every seconds with text Cannot convert undefined or null to object
To Reproduce
Do not know exactly, it happened several times today with my this project https://github.com/camel-tooling/camel-dap-client-vscode/
Steps to reproduce the behavior:

Open the folder on https://github.com/camel-tooling/camel-dap-client-vscode/
and i do not know

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
Error: Cannot find module '/tmp/exhort_eGy7My/scripts/postinstall.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
    at Module._load (node:internal/modules/cjs/loader:984:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.12.0
npm ERR! code 1
npm ERR! path /tmp/exhort_eGy7My
npm ERR! command failed
npm ERR! command sh -c node ./scripts/postinstall.js

npm ERR! A complete log of this run can be found in: /home/apupier/.npm/_logs/2024-04-11T08_11_18_184Z-debug-0.log
[Warn  - 10:11:44 AM] Component Analysis Error: Error: Command failed: npm i --package-lock-only --prefix /tmp/exhort_eGy7My
node:internal/modules/cjs/loader:1146
  throw err;
  ^

Error: Cannot find module '/tmp/exhort_eGy7My/scripts/postinstall.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
    at Module._load (node:internal/modules/cjs/loader:984:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.12.0
npm ERR! code 1
npm ERR! path /tmp/exhort_eGy7My
npm ERR! command failed
npm ERR! command sh -c node ./scripts/postinstall.js

npm ERR! A complete log of this run can be found in: /home/apupier/.npm/_logs/2024-04-11T08_11_18_184Z-debug-0.log

node:internal/modules/cjs/loader:1146
  throw err;
  ^

Error: Cannot find module '/tmp/exhort_uOy2n8/scripts/postinstall.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
    at Module._load (node:internal/modules/cjs/loader:984:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.12.0
npm ERR! code 1
npm ERR! path /tmp/exhort_uOy2n8
npm ERR! command failed
npm ERR! command sh -c node ./scripts/postinstall.js

npm ERR! A complete log of this run can be found in: /home/apupier/.npm/_logs/2024-04-11T08_15_40_946Z-debug-0.log
[Warn  - 10:16:30 AM] Component Analysis Error: Error: Command failed: npm i --package-lock-only --prefix /tmp/exhort_uOy2n8
node:internal/modules/cjs/loader:1146
  throw err;
  ^

Error: Cannot find module '/tmp/exhort_uOy2n8/scripts/postinstall.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
    at Module._load (node:internal/modules/cjs/loader:984:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.12.0
npm ERR! code 1
npm ERR! path /tmp/exhort_uOy2n8
npm ERR! command failed
npm ERR! command sh -c node ./scripts/postinstall.js

npm ERR! A complete log of this run can be found in: /home/apupier/.npm/_logs/2024-04-11T08_15_40_946Z-debug-0.log

node:internal/modules/cjs/loader:1146
  throw err;
  ^

Error: Cannot find module '/tmp/exhort_PH7ZP1/scripts/postinstall.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
    at Module._load (node:internal/modules/cjs/loader:984:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.12.0
npm ERR! code 1
npm ERR! path /tmp/exhort_PH7ZP1
npm ERR! command failed
npm ERR! command sh -c node ./scripts/postinstall.js

npm ERR! A complete log of this run can be found in: /home/apupier/.npm/_logs/2024-04-11T08_16_32_013Z-debug-0.log
[Warn  - 10:16:44 AM] Component Analysis Error: Error: Command failed: npm i --package-lock-only --prefix /tmp/exhort_PH7ZP1
node:internal/modules/cjs/loader:1146
  throw err;
  ^

Error: Cannot find module '/tmp/exhort_PH7ZP1/scripts/postinstall.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
    at Module._load (node:internal/modules/cjs/loader:984:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.12.0
npm ERR! code 1
npm ERR! path /tmp/exhort_PH7ZP1
npm ERR! command failed
npm ERR! command sh -c node ./scripts/postinstall.js

npm ERR!  ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/xterm
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/xterm-addon-canvas
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /home/apupier/.npm/_logs/2024-04-11T08_16_46_692Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /home/apupier/.npm/_logs/2024-04-11T08_16_46_692Z-debug-0.log
[Warn  - 10:17:14 AM] Component Analysis Error: Error: Command failed: npm i --package-lock-only --prefix /tmp/exhort_Yg8dz6
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/xterm
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/xterm-addon-canvas
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /home/apupier/.npm/_logs/2024-04-11T08_16_46_692Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /home/apupier/.npm/_logs/2024-04-11T08_16_46_692Z-debug-0.log

[Warn  - 10:17:16 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:18 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:20 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:23 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:26 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:28 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:30 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:32 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:34 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:36 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:38 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:40 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:43 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:45 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:48 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:50 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:52 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:55 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:17:59 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:18:03 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:18:07 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:18:10 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:18:16 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:18:21 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:18:28 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:18:35 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:18:38 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:18:41 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:18:44 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:18:46 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:18:49 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:18:51 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:18:54 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:18:56 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:18:58 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:00 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:09 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:13 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:16 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:18 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:19 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:21 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:23 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:25 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:27 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:29 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:31 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:36 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:40 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:43 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:45 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:47 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:49 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:51 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:53 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:55 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:57 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:19:59 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:01 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:03 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:06 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:08 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:11 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:13 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:16 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:19 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:21 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:24 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:26 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:29 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:31 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:33 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:35 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:37 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:39 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:42 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:44 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:46 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:48 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:50 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:52 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:54 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:56 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:20:59 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:21:05 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:21:07 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:21:10 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:21:18 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object
[Warn  - 10:21:20 AM] Component Analysis Error: TypeError: Cannot convert undefined or null to object

VSCode(please complete the following information):

OS: Fedora 39
VSCode version 1.88.0
Dependency Analytics Version 0.9.4

CHE7/Theia(please complete the following information):

OS: [e.g. macOS]
Browser [e.g. chrome]
CHE/Theia version
Dependency Analytics Version [e.g. 0.0.22]

Additional context
Add any other context about the problem here.

Hello @apupier,
Thank you for bringing up this issue.
As a temporary solution, I suggest refraining from using relative paths (./scripts/postinstall.js) and opting for absolute paths instead. This should help mitigate the problem for the time being.
We're currently working on a new version that will include support for relative paths, which will be available soon.

Understood, @apupier.
Thank you for your patience. Relative path support will be available soon.

Hello,
This issue has been resolved in the latest release, version 0.9.5. We appreciate your help in improving the project. If you have any further issues or suggestions, please feel free to reach out.
Best regards.


TC-MF Mac chip tool testing: Getting segmentation fault when doing few sequences

As a part of Multi Fabric testing, while switching between ECM and BCM or doing the 20 wrong passcode sequence test cases, I am hitting the segmentation fault issue.
The segmentation fault issue is being seen both on chip tool log as well as on the app (I checked on both lighting and all cluster apps and it is happening on both). Below are the chip tool and accessory side logs,
Chip tool log:
ubuntu@matter-te-6:~/TE7/connectedhomeip/out/debug$ ./chip-tool pairing onnetwork 1 20202025
[1637639678.061508][3620:3620] CHIP:CTL: Generating NOC
[1637639678.061926][3620:3620] CHIP:CTL: Generating ICAC
[1637639678.067101][3620:3620] CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT START ====
[1637639678.067147][3620:3620] CHIP:DL: AUDIT: * Validate buf1 and buf2 are <<<different every run/boot!>>>
[1637639678.067174][3620:3620] CHIP:DL: AUDIT: * Validate r1 and r2 are <<<different every run/boot!>>>
[1637639678.067198][3620:3620] CHIP:DL: AUDIT: * buf1: 73C8A3028EAEB53F2429B66C17F56677
[1637639678.067221][3620:3620] CHIP:DL: AUDIT: * buf2: DA10C2E301D48F99374D6AD6830D5EB9
[1637639678.067287][3620:3620] CHIP:DL: AUDIT: * r1: 0x7AA7C1AC r2: 0x1DFE11B9
[1637639678.067310][3620:3620] CHIP:DL: AUDIT: ===== RANDOM NUMBER GENERATOR AUDIT END ====
[1637639678.067896][3620:3620] CHIP:DL: writing settings to file (/tmp/chip_counters.ini-hwgyO2)
[1637639678.068494][3620:3620] CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini)
[1637639678.068546][3620:3620] CHIP:DL: NVS set: chip-counters/reboot-count = 15 (0xF)
[1637639678.069553][3620:3620] CHIP:DL: Got Ethernet interface: eth0
[1637639678.070332][3620:3620] CHIP:DL: Found the primary Ethernet interface:eth0
[1637639678.071066][3620:3620] CHIP:DL: Got WiFi interface: wlan0
[1637639678.077299][3620:3620] CHIP:DL: Found the primary WiFi interface:wlan0
[1637639678.077368][3620:3620] CHIP:IN: UDP::Init bind&listen port=5541
[1637639678.077491][3620:3620] CHIP:IN: UDP::Init bound to port=5541
[1637639678.077521][3620:3620] CHIP:IN: UDP::Init bind&listen port=5541
[1637639678.077627][3620:3620] CHIP:IN: UDP::Init bound to port=5541
[1637639678.077655][3620:3620] CHIP:IN: TransportMgr initialized
[1637639678.077724][3620:3620] CHIP:DIS: Init fabric pairing table with server storage
[1637639678.078111][3620:3620] CHIP:DL: writing settings to file (/tmp/chip_counters.ini-dRPSq5)
[1637639678.078709][3620:3620] CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini)
[1637639678.078764][3620:3620] CHIP:DL: NVS set: chip-counters/GlobalMCTR = 15000 (0x3A98)
[1637639678.078902][3620:3620] CHIP:CTL: System State Initialized...
[1637639678.084666][3620:3620] CHIP:DL: Avahi client registered
[1637639678.086379][3620:3620] CHIP:ZCL: Using ZAP configuration...
[1637639678.087234][3620:3620] CHIP:DIS: Verifying the received credentials
[1637639678.089968][3620:3620] CHIP:DIS: Added new fabric at index: 1, Initialized: 1
[1637639678.090015][3620:3620] CHIP:DIS: Assigned compressed fabric ID: 0xC30C7FDDB86679A6, node ID: 0x000000000001B669
[1637639678.090050][3620:3620] CHIP:CTL: Joined the fabric at index 1. Compressed fabric ID is: 0xC30C7FDDB86679A6
[1637639678.090474][3620:3625] CHIP:DL: CHIP task running
[1637639678.090715][3620:3625] CHIP:DL: HandlePlatformSpecificBLEEvent 32785
[1637639678.102528][3620:3625] CHIP:DL: Avahi browse: cache new
[1637639678.102801][3620:3625] CHIP:DL: Avahi browse: cache new
[1637639678.102931][3620:3625] CHIP:DL: Avahi browse: cache new
[1637639678.103137][3620:3625] CHIP:DL: Avahi browse: cache new
[1637639678.103230][3620:3625] CHIP:DL: Avahi browse: cache new
[1637639678.103408][3620:3625] CHIP:DL: Avahi browse: cache new
[1637639678.103611][3620:3625] CHIP:DL: Avahi browse: cache exhausted
[1637639679.106045][3620:3625] CHIP:DL: Avahi browse: all for now
[1637639679.212893][3620:3625] CHIP:DL: Avahi resolve found
[1637639679.213067][3620:3625] CHIP:TOO: Discovered Device: fe80::e65f:1ff:fe2e:ed54:5540
[1637639679.213609][3620:3625] CHIP:SC: Assigned local session key ID 25
[1637639679.213872][3620:3625] CHIP:IN: Prepared plaintext message 0xaaaae59c4e30 to 0x0000000000000000 of type 0x20 and protocolId (0, 0) on exchange 49567i with MessageCounter:3635204436.
[1637639679.213975][3620:3625] CHIP:IN: Sending plaintext msg 0xaaaae59c4e30 with MessageCounter:3635204436 to 0x0000000000000000 at monotonic time: 4874536 msec
[1637639679.214250][3620:3625] CHIP:SC: Sent PBKDF param request
[1637639679.218057][3620:3625] CHIP:EM: Received message of type 0x21 with protocolId (0, 0) and MessageCounter:442006820 on exchange 49567i
[1637639679.218191][3620:3625] CHIP:EM: Rxd Ack; Removing MessageCounter:3635204436 from Retrans Table on exchange 49567i
[1637639679.218255][3620:3625] CHIP:EM: Removed CHIP MessageCounter:3635204436 from RetransTable on exchange 49567i
[1637639679.218338][3620:3625] CHIP:SC: Received PBKDF param response
[1637639679.218431][3620:3625] CHIP:SC: Peer assigned session ID 4
[1637639679.220771][3620:3625] CHIP:EM: Piggybacking Ack for MessageCounter:442006820 on exchange: 49567i
[1637639679.220832][3620:3625] CHIP:IN: Prepared plaintext message 0xaaaae59c4e30 to 0x0000000000000000 of type 0x22 and protocolId (0, 0) on exchange 49567i with MessageCounter:3635204437.
[1637639679.220886][3620:3625] CHIP:IN: Sending plaintext msg 0xaaaae59c4e30 with MessageCounter:3635204437 to 0x0000000000000000 at monotonic time: 4874543 msec
[1637639679.221045][3620:3625] CHIP:SC: Sent spake2p msg1
[1637639679.223356][3620:3625] CHIP:EM: Received message of type 0x23 with protocolId (0, 0) and MessageCounter:442006821 on exchange 49567i
[1637639679.223415][3620:3625] CHIP:EM: Rxd Ack; Removing MessageCounter:3635204437 from Retrans Table on exchange 49567i
[1637639679.223452][3620:3625] CHIP:EM: Removed CHIP MessageCounter:3635204437 from RetransTable on exchange 49567i
[1637639679.223498][3620:3625] CHIP:SC: Received spake2p msg2
[1637639679.225239][3620:3625] CHIP:SC: Failed to verify peer's MAC. This can happen when setup code is incorrect.
[1637639679.225279][3620:3625] CHIP:SC: Sending status report. Protocol code 2, exchange 49567
[1637639679.225324][3620:3625] CHIP:EM: Piggybacking Ack for MessageCounter:442006821 on exchange: 49567i
[1637639679.225370][3620:3625] CHIP:IN: Prepared plaintext message 0xaaaae59c4e30 to 0x0000000000000000 of type 0x40 and protocolId (0, 0) on exchange 49567i with MessageCounter:3635204438.
[1637639679.225418][3620:3625] CHIP:IN: Sending plaintext msg 0xaaaae59c4e30 with MessageCounter:3635204438 to 0x0000000000000000 at monotonic time: 4874547 msec
[1637639679.225574][3620:3625] CHIP:SC: Failed during PASE session setup. ../../src/crypto/CHIPCryptoPALOpenSSL.cpp:1337: CHIP Error 0x000000AC: Internal error
[1637639679.225620][3620:3625] CHIP:TOO: Secure Pairing Failed
[1637639679.226623][3620:3625] CHIP:TOO: Pairing Failure: ../../src/crypto/CHIPCryptoPALOpenSSL.cpp:1337: CHIP Error 0x000000AC: Internal error
[1637639679.226949][3620:3620] CHIP:-: ../../src/crypto/CHIPCryptoPALOpenSSL.cpp:1337: CHIP Error 0x000000AC: Internal error at ../../examples/chip-tool/commands/common/CHIPCommand.cpp:84
[1637639679.227019][3620:3620] CHIP:TOO: Run command failure: ../../src/crypto/CHIPCryptoPALOpenSSL.cpp:1337: CHIP Error 0x000000AC: Internal error
[1637639679.350275][3620:3620] CHIP:CTL: Shutting down the System State, this will teardown the CHIP Stack
[1637639679.350592][3620:3620] CHIP:DL: writing settings to file (/tmp/chip_counters.ini-73yYEF)
[1637639679.351391][3620:3620] CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini)
[1637639679.351452][3620:3620] CHIP:DL: NVS set: chip-counters/total-operational-hours = 0 (0x0)
[1637639679.351479][3620:3620] CHIP:DL: Inet Layer shutdown
[1637639679.351580][3620:3620] CHIP:DL: BLE layer shutdown
[1637639679.351605][3620:3620] CHIP:DL: System Layer shutdown
Segmentation fault (core dumped)
ubuntu@matter-te-6:~/TE7/connectedhomeip/out/debug$
Accessory logs:
[1637639636.212282][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from <IP_ADDRESS>
[1637639636.213542][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from <IP_ADDRESS>
[1637639636.213862][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe2e:ed54
[1637639636.214101][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe2e:ed54
[1637639636.215305][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe2e:ed54
[1637639636.216521][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe2e:ed54
[1637639636.216732][3692:3692] CHIP:DL: MAC is not known, using a default.
[1637639636.216777][3692:3692] CHIP:DIS: Advertise operational node 56791D9DD63C9A95-0000000000000001
[1637639636.216856][3692:3692] CHIP:DIS: CHIP minimal mDNS configured as 'Operational device'.
[1637639636.217428][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from <IP_ADDRESS>
[1637639636.218601][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from <IP_ADDRESS>
[1637639636.218907][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe2e:ed54
[1637639636.220137][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe2e:ed54
[1637639636.220325][3692:3692] CHIP:DIS: Have operational credentials
[1637639636.220371][3692:3692] CHIP:DL: MAC is not known, using a default.
[1637639636.220523][3692:3692] CHIP:DIS: Advertise commission parameter vendorID=9050 productID=65279 discriminator=3840/00
[1637639636.220623][3692:3692] CHIP:DIS: CHIP minimal mDNS configured as 'Commissionable node device'.
[1637639636.221235][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from <IP_ADDRESS>
[1637639636.221591][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from <IP_ADDRESS>
[1637639636.222794][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from <IP_ADDRESS>
[1637639636.223596][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from <IP_ADDRESS>
[1637639636.223836][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe2e:ed54
[1637639636.223992][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe2e:ed54
[1637639636.224731][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe2e:ed54
[1637639636.225448][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from fe80::e65f:1ff:fe2e:ed54
[1637639636.225549][3692:3692] CHIP:ZCL: Commissioning window is now open
[1637639636.225601][3692:3692] CHIP:DMG: ICR moving to [AddingComm]
[1637639636.225628][3692:3692] CHIP:DMG: ICR moving to [AddedComma]
[1637639636.225688][3692:3692] CHIP:EM: Piggybacking Ack for MessageCounter:0 on exchange: 33306r
[1637639636.225779][3692:3692] CHIP:IN: Prepared encrypted message 0xaaaadb4e9b00 to 0x000000000001B669 of type 0x9 and protocolId (0, 1) on exchange 33306r with MessageCounter:1.
[1637639636.225830][3692:3692] CHIP:IN: Sending encrypted msg 0xaaaadb4e9b00 with MessageCounter:1 to 0x000000000001B669 at monotonic time: 4828102 msec
[1637639636.225938][3692:3692] CHIP:DMG: ICR moving to [CommandSen]
[1637639636.225972][3692:3692] CHIP:DMG: ICR moving to [AwaitingDe]
[1637639636.226153][3692:3692] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:3461822351 on exchange 33305r
[1637639636.226197][3692:3692] CHIP:EM: Rxd Ack; Removing MessageCounter:942781113 from Retrans Table on exchange 33305r
[1637639636.226220][3692:3692] CHIP:EM: Removed CHIP MessageCounter:942781113 from RetransTable on exchange 33305r
[1637639636.230359][3692:3692] CHIP:EM: Received message of type 0x10 with protocolId (0, 0) and MessageCounter:1 on exchange 33306r
[1637639636.230437][3692:3692] CHIP:EM: Rxd Ack; Removing MessageCounter:1 from Retrans Table on exchange 33306r
[1637639636.230460][3692:3692] CHIP:EM: Removed CHIP MessageCounter:1 from RetransTable on exchange 33306r
[1637639636.232517][3692:3695] CHIP:DL: RegisterAdvertisement complete
[1637639636.232624][3692:3692] CHIP:DL: HandlePlatformSpecificBLEEvent 16394
[1637639678.209039][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from fe80::dea6:32ff:fe74:40fa
[1637639679.209320][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from fe80::dea6:32ff:fe74:40fa
[1637639679.211328][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from fe80::dea6:32ff:fe74:40fa
[1637639679.211696][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from fe80::dea6:32ff:fe74:40fa
[1637639679.214080][3692:3692] CHIP:DIS: Broadcasting mDns reply for query from <IP_ADDRESS>
[1637639679.215408][3692:3692] CHIP:EM: Received message of type 0x20 with protocolId (0, 0) and MessageCounter:3635204436 on exchange 49567r
[1637639679.215494][3692:3692] CHIP:EM: Handling via exchange: 49567r, Delegate: 0x0xaaaadb4ea8d8
[1637639679.215586][3692:3692] CHIP:SC: Received PBKDF param request
[1637639679.215671][3692:3692] CHIP:SC: Peer assigned session ID 25
[1637639679.217587][3692:3692] CHIP:EM: Piggybacking Ack for MessageCounter:3635204436 on exchange: 49567r
[1637639679.217682][3692:3692] CHIP:IN: Prepared plaintext message 0xaaaadb4e9ae8 to 0x0000000000000000 of type 0x21 and protocolId (0, 0) on exchange 49567r with MessageCounter:442006820.
[1637639679.217766][3692:3692] CHIP:IN: Sending plaintext msg 0xaaaadb4e9ae8 with MessageCounter:442006820 to 0x0000000000000000 at monotonic time: 4871093 msec
[1637639679.218026][3692:3692] CHIP:SC: Sent PBKDF param response
[1637639679.222056][3692:3692] CHIP:EM: Received message of type 0x22 with protocolId (0, 0) and MessageCounter:3635204437 on exchange 49567r
[1637639679.222104][3692:3692] CHIP:EM: Rxd Ack; Removing MessageCounter:442006820 from Retrans Table on exchange 49567r
[1637639679.222131][3692:3692] CHIP:EM: Removed CHIP MessageCounter:442006820 from RetransTable on exchange 49567r
[1637639679.222165][3692:3692] CHIP:SC: Received spake2p msg1
[1637639679.223942][3692:3692] CHIP:EM: Piggybacking Ack for MessageCounter:3635204437 on exchange: 49567r
[1637639679.223983][3692:3692] CHIP:IN: Prepared plaintext message 0xaaaadb4e9ae8 to 0x0000000000000000 of type 0x23 and protocolId (0, 0) on exchange 49567r with MessageCounter:442006821.
[1637639679.224020][3692:3692] CHIP:IN: Sending plaintext msg 0xaaaadb4e9ae8 with MessageCounter:442006821 to 0x0000000000000000 at monotonic time: 4871100 msec
[1637639679.224125][3692:3692] CHIP:SC: Sent spake2p msg2
[1637639679.226544][3692:3692] CHIP:EM: Received message of type 0x40 with protocolId (0, 0) and MessageCounter:3635204438 on exchange 49567r
[1637639679.226587][3692:3692] CHIP:EM: Rxd Ack; Removing MessageCounter:442006821 from Retrans Table on exchange 49567r
[1637639679.226614][3692:3692] CHIP:EM: Removed CHIP MessageCounter:442006821 from RetransTable on exchange 49567r
[1637639679.226657][3692:3692] CHIP:SC: Received error (protocol code 2) during PASE process. ../../examples/all-clusters-app/linux/third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:827: CHIP Error 0x00000038: Invalid PASE parameter
[1637639679.226715][3692:3692] CHIP:SC: Failed during PASE session setup. ../../examples/all-clusters-app/linux/third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:827: CHIP Error 0x00000038: Invalid PASE parameter
[1637639679.226745][3692:3692] CHIP:SVR: Commissioning failed (attempt 1): ../../examples/all-clusters-app/linux/third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:827: CHIP Error 0x00000038: Invalid PASE parameter
Segmentation fault (core dumped)
Even though it happened randomly, I am seeing this issue more clearly when I follow the following sequence,
1 -> Provision first controller and open commissioning window using BCM
2 -> Provision the second controller and open commissioning window using ECM
3 -> Provision the third controller. Observe that the third controller will show segmentation fault on its logs and the accessory too will show segmentation fault in its log and end the process.
Please do let me know if you need more info.

@Garik098 I believe this is passing tests now, can you please confirm?

I met the same problem today. Is there any solution


fix(logger): use godep for dependencies

This issue was brought up when building a new release of images for
deployment. The logger relied on go get to fetch dependencies. Because
there was a breaking change in the etcd client1, the logger failed to
connect to the cluster. We have moved over to a global Godeps for
managing dependencies, so this changes the compilation on the host to
follow the other components' build process.

Code LGTM. Shouldn't we merge and rebuild this for v1.3.0?

yessir, otherwise we're dead in the water for logging

Nice detective work, code LGTM.


DISTINCT for Preload

Is it possible to achieve distinct functionality for many2many relations with gorm?
I'd like to force smth like this:
db.Preload("Posts").Find(&tag, id)
to generate the next query:
SELECT DISTINCT `posts`.* FROM `posts` INNER JOIN `posts_tags` ON `posts`.`id` = `posts_tags`.`post_id` WHERE  `posts_tags`.`tag_id` = 1

I'm also looking to be able to do custom sql for preload queries


Reactivity lose in deep class composition using reactive

Version
3.2.24
Reproduction link
sfc.vuejs.org/
Steps to reproduce
Click "Test tada" button
What is expected?
strings represent randomized generated values will be display on the bottom of vue component.
(the reactivity of wrapper.target.options will be trigger re-render)
What is actually happening?
nothing is displayed on the bottom of vue component.
(the reactivity of wrapper.target.options never trigger re-render)

The problem is found by changing a class property inside an async class method.
As providing in the example, it's okay to set the value from outside, such as:
wrapper.target.updateOptions(something) // this would be okay, and would trigger reactive re-render

But if we perform some asynchronous operations inside the class wrapped by reactive calls (or we called as BusinessModel here, we called wrapper.target.fetchAndUpdate), and eventually called another synchronous method inside the class itself to perform the final modification (here we called wrapper.target.updateOptions inside the wrapper.target.fetchAndUpdate), the reactivity loses, and eventually any effect depends on wrapper.target.options won't receive any notification.
wrapper.target.fetchAndUpdate() // this would not be okay, and wouldn't trigger reactive effects

It's because you used a non existant method resetOptions. It works if you use the right method


Nothing on /

Currently there's nothing on /. How about adding an default route that sends user to /login if not authenticated?
I've temporarly solved this with nginx and:
    location / {
        proxy_set_header  X-Original-URI $request_uri;
        proxy_set_header  Host $http_host;
        proxy_set_header  X-Real-IP $remote_addr;
        proxy_pass http://auth/;
        rewrite ^/$ /login redirect; break;
    }

However if an default route existed I could drop my backend NGINX proxy all together in favor of my frontend proxy Træfik
Currently I have Træfik-->NGINX-->Authelia, but with this fix I could Træfik-->Authelia. Big wins 😸

Hello @jkaberg , I don't really understand, can't you do the config with Traefik like you would with nginx. Is Traefik so limited?

I can't do the rewrite with Træfik,
rewrite ^/$ /login redirect; break;

Otherwise in my opinion Træfik is quite powerfull, but it's lacking fine grained controll like the above

Hello @jkaberg,
I found the following configuration snippet in the documentation of traefik.
Would not it work in your case to remove nginx?
To redirect an entrypoint rewriting the URL:
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
regex = "^http://localhost/(.*)"
replacement = "http://mydomain/$1"

It seems like it can be done in Traefik directly. I think @jkaberg's original point is still valid though that / should redirect somewhere. /login seems like a reasonable choice.
Sorry, reason why I kind of hijacked this thread just now was to actually ask:
@jkaberg How would you get rid of nginx? I didn't think auth was configurable in Traefik (there only seems to be basic and digest auth)

@clems4ever yes thats true. however it would be better if Authelia did it instead.
@SerialVelocity I didn't get rid of NGINX just yet, it still sits infront of the real servers using auth_request to send stuff to authelia. There is some work beeing done on this front,

FIY, I'm currently reworking the routes and I will serve the login page on / in the next version. It will be simpler. @jkaberg , I'll keep you posted once done.


Remove the usage of spring-context-support

[ ] I have searched the issues of this repository and believe that this is not a duplicate.

Describe the proposal

Remove the dependency of spring-context-support

replace springboot?

Remove the dependency of spring-context-support

com.alibaba.spring:spring-context-support

please assign to me

Remove the dependency of spring-context-support

com.alibaba.spring:spring-context-support

Whether to delete the functions implemented based on SpringContext Suport, such as org.apache.dubbo.config.spring.beans.factory.config DubboConfigDefaultPropertyValueBeanPostProcessor, remove the Spring Context Suport dependency, and re implement these functions based on the native Spring API?

Remove the dependency of spring-context-support

com.alibaba.spring:spring-context-support

Whether to delete the functions implemented based on SpringContext Suport, such as org.apache.dubbo.config.spring.beans.factory.config DubboConfigDefaultPropertyValueBeanPostProcessor, remove the Spring Context Suport dependency, and re implement these functions based on the native Spring API?

It can be implemented based on the spring native interface, or you can copy the necessary classes from spring-context-support and keep the open source protocol information.


Cobrix and Databricks DBFS

I am very interesting in trying out Cobrix within Databricks/PySpark and just have a few configuration questions to ask if you don't mind.  I have created a cluster and installed the following jar files from the download zip file.  Other than these files, is there any other dependencies?  I will probably not run this locally.
spark-cobol-1.1.2.jar
cobol-parser-1.1.2.jar
scodec-core_2.11-1.10.3.jar
scodec-bits_2.11-1.1.4.jar
I did see an issue where Cobrix does not support S3, so if I was to copy the copybook and data file to the Databricks DBFS mount e.g. /mnt/edl/raw/cobol/copybook and /mnt/edl/raw/cobol/sources, will Cobrix be able to find the files and use them?  Thank you for creating this utility, we spent some time creating a notebook using Python to basically do the same thing but it always requires us to modify it.  Any assistance would be appreciated.

Yes, the dependencies that you listed are the only ones required for v.1.1.2.
But I'd recommend using the latest version v.2.1.3. You would also need antlr4-runtime-4.7.2. Thanks for pointing this out. We will update the README.
You can load copybooks from a local file system or a locally mounted filesystem by prepending the path with file://. You can specify .option("copybook", "file:///mnt/edl/raw/cobol/copybook").
Source files, however, are expected to be on HDFS or on any other distributed filesystems supported by Spark. Adding support for S3 (and along the way other filesystems supported by Spark) is on our roadmap. We hope to add this support until the end of this year.
Since we are not using DBFS, how would you load, say, CSV file from it? spark.read. ...?

Thanks for your response.  Yes, we were hoping we just read the file from the dsfs but since that not supported we might wait until this file system is supported or try going down the path of creating a EC2 HDFS server which is completely outside of current architecture for ingesting on-prem and mainframe data files.
We currently are creating an Avro schema based on the copybook layout using a generator we built and then ssh the mainframe file to S3.  From there the Lamba will trigger and copy the file over to the Databricks mount and we apply a notebook to create the data frame and create a databricks table in raw.  Using your components is much cleaner without all the hops.

Thanks for sharing the use case and the architecture. Yeah, outputting directly to S3 could definitely help here. We will be on in soon.

The support of writing to S3 is supported in Cobrix 2.2.0 and later


Fishamble feature 393 article search picker

✨ Codu Pull Request 💻

Pull Request details:

Added a responsive search  bar and date picker to the article section of the site.

I am still trying to figure things out, so you will have to forgive my poor commit history. I originally had a number of separate commits, but ended up doing a reset and combining them into a single one.
The search part was pretty simple, but I used shadcn to implement the date picker, which added 8 packages, including radix ui. It added utility classes for the light/dark mode to the styles/globals.css. Some of these are not strictly necessary, but I left them in, as I was not sure how the light/dark mode will be implemented. It also added a number of custom themes to the tailwind.config.js. I don't know if these will cause conflicts down the line?
This is a learning exercise for me, so I have no issue with scrapping the lot, or going back to make any changes. Feedback, or resources to help me through the contribution process would be greatly appreciated.
Any Breaking changes:
None
Associated Screenshots:
https://www.youtube.com/watch?v=3zhH449joUk

Awesome, thanks! I’ll check this out and go over the code later. My only concern is all of the additional packages that were required for this addition. The logic looks pretty good though!

Yes, I dont know the protocol re adding extra packages. I originally thought to use shadcn, as I had read it was a no install component library, however the calendar component uses react-day-picker and radix ui.

Aha I got you! I don't think we need the calendar picker. The more libs we can strip out, the better!
I don't have clear guidelines on the adding packages stuff yet. I think as a rule of thumb, it's worth a discussion. I'll add it to the contribution guidelines. 🦾
If you don't mind stripping out the calendar and all the dependencies it adds that would be awesome. If you don't have time let me know and I'll add some changes on top of this branch.
The video looks great. 👍 Well done! 🥂 Thanks for this!


Flow super-commands feedback

Issue To Be Solved

[ ] Nit: some links to more resources are missing in README (“here” should probably be a link to a resource)

[ ] Nit: rename origin remote to something else (git remote rename origin flow) or just reinitialize git repo to get rid of scaffold repo commits

[ ] flow dev is adding a single contract to multiple accounts?

[ ] How does flow dev name accounts? It’d be good to reuse that naming convention in other tools (e.g. Flowser, VS Code extension,…) too

Thank you for your feedback.
The instructions need polishing for sure. I'm making a PR as we speak https://github.com/onflow/flow-cli/pull/774
The removal of origin is referenced here https://github.com/onflow/flow-cli/issues/749  but thank you for sharing.
Adding of the secrets contract is really weird. Are you sure this is added by flow dev command? I'm not sure where this contract would come from, the commands are not adding it explicitly. Interesting.
Flow dev just creates the accounts you explicitly want to be created by adding a folder inside the contracts folder (as mentioned in the PR docs). There shouldn't be any additional accounts created. But I agree, aligning is good. I don't see a conflict here. Flowser can create the accounts it needs and add them to flow.json, or even better, I believe would be to just have them in-memory so they don't "pollute" flow.json, since they will probably just be used to test and interact.

so when using overflow the integration tests have to be in the same folder as flow.json because flowkit does not support relative paths for loading. So if my test is in /tests and i load flow.json from ../ it has to resolve anything from that /tests folder and that does not work for other things. Is it possible to fix flowkit so that it can specify relative paths for where it expects flow.json to be?

so when using overflow the integration tests have to be in the same folder as flow.json because flowkit does not support relative paths for loading. So if my test is in /tests and i load flow.json from ../ it has to resolve anything from that /tests folder and that does not work for other things. Is it possible to fix flowkit so that it can specify relative paths for where it expects flow.json to be?

Yes. Can you open a separate issue. I was looking into that the last time. The only thing is that it gets a bit more complex when you compose multiple configurations. But in any case for sure something that should be fixed.


[Bug]: Everything is fine in localhost but after deployment on netlify, initial page is loading is too slow

Contact Details
<EMAIL_ADDRESS>What happened?
I did not understand why but after deployment on netlify, initial page is loading about 2-3 secs. On local machine everything is fine. I just want to create a simple portfolio which you can reach via https://rasitulug.netlify.app/
tsParticles Version
^3.0.0
tsParticles Configuration
function App() {
  const [init, setInit] = useState(false);

  // this should be run only once per application lifetime
  useEffect(() => {
    initParticlesEngine(async (engine) => {
      // you can initiate the tsParticles instance (engine) here, adding custom shapes or presets
      // this loads the tsparticles package bundle, it's the easiest method for getting everything ready
      // starting from v2 you can add only the features you need reducing the bundle size
      //await loadAll(engine);
      //await loadFull(engine);
      await loadSlim(engine);
      //await loadBasic(engine);
    }).then(() => {
      setInit(true);
    });
  }, []);

  const particlesLoaded = async (container?: Container): Promise<void> => {
    console.log(container);
  };

  const options: ISourceOptions = useMemo(
    () => ({
      background: {
        color: {
          value: "#151616",
        },
      },
      fpsLimit: 120,
      interactivity: {
        events: {
          onClick: {
            enable: false,
            mode: "push",
          },
          onHover: {
            enable: false,
            mode: "repulse",
          },
        },
        modes: {
          push: {
            quantity: 4,
          },
          repulse: {
            distance: 200,
            duration: 0.4,
          },
        },
      },
      particles: {
        color: {
          value: "#ffffff",
        },
        links: {
          color: "#ffffff",
          distance: 150,
          enable: true,
          opacity: 0.5,
          width: 1,
        },
        collisions: {
          enable: false,
        },
        move: {
          direction: "none",
          enable: true,
          outModes: {
            default: "bounce",
          },
          random: false,
          speed: 1,
          straight: false,
        },
        number: {
          density: {
            enable: true,
          },
          value: 140,
        },
        opacity: {
          value: 0.5,
        },
        shape: {
          type: "circle",
        },
        size: {
          value: { min: 1, max: 5 },
        },
      },
      detectRetina: true,
    }),
    []
  );

  if (init) {
    return (

        <Particles
          id="tsparticles"
          options={options}
          particlesLoaded={particlesLoaded}
          className="absolute top-0 left-0 w-full h-full -z-10"
        />

          <Navbar />
          <Dashboard />
          <AboutMe />
          <Skills />
          <Experience />
          <Projects />

    );
  }
  return

;
}

export default App;

What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct

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

This is a known issue with 3.3.0, first of all, place only <Particles /> component in the init conditional, you portfolio can work fine even without particles for few seconds.
You can install previous tsparticles version to avoid dynamic imports if you experience too much delay, or you can reduce the packages installed installing only the ones needed.
This is under investigation in 3.4.0.

Thanks for the quick answer. Unfortunately, downgrading did not fix the problem. But I changed slim to basic. There is still a delay but it is now acceptable. Waiting for 3.4.0


[Enhancement] Add Newly Released Title

Hi! ~
I was wondering if you could add the newly released "Nintendo Switch Sports" title to the games list.
Thank you!

I have added the game(s) you requested in the most recent release: https://github.com/hobby-grade/Nintendo-Switch-Discord-Status/releases/tag/1.0.2
Thank you for checking out the project, reach out if you have any more suggestions!

Thank you very much!


Have improved the UI and UX for the Home Buttons

I have added some effects to the home buttons and improved its UI and UX #249

Thank you @Sheryar-bit


Nesting navigation stacks

Changes done :

Nesting tab and stack navigators from common menu screens (settings, profile and accessibility)
Initialize single instance axios function
Added menu prop in header to toggle menu button visibility

Please add comments to the code


ShortestPath with multiple edges is returning empty list

OrientDB Version: 3.1.2
Java Version: 1.8.0_211
OS: Windows 10 Pro
Expected behavior
ShortestPath should support a list of edges like shows in the documentation: SELECT shortestPath(#8:32, #8:10, 'IN', ['Friend', 'Colleague'])
Actual behavior
Empty list is returned when array of edges is used, but works if only one edge without array is given.
Steps to reproduce
I added one class Person and edges Knows and Loves. A graph was created: P1(Id = #22:0) -Knows-> P2 (Id = #22:1) -Loves-> P3 (Id = #22:2)
This queries returns empty array
SELECT shortestPath(#22:0, #22:2, 'OUT', ['Knows', 'Loves'])
SELECT shortestPath(#22:0, #22:1, 'OUT', ['Knows'])
This query returns P1 and P2
SELECT shortestPath(#22:0, #22:1, 'OUT', 'Knows')
Whenever a list of edges is given, the result is empty. Am I doing something wrong? I searched through all of the examples and the documentation, and the query seems to be correct.
Thanks

Hi @tomazk8
I just pushed a fix for this problem. The fix will be released with v 3.1.3
Thanks
Luigi


Revert "Remove Origin Trial from Media Capabilities"

Reverts google/WebFundamentals#5949

Whoops!
There were 7 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2017/12/chrome-63-64-media-updates.md#L220 - '

:tada: This has been pushed live to https://developers.google.com/web/


falconry plugin

https://www.youtube.com/watch?v=QiJ06C2k19Y&feature=youtu.be

The linked video is unavailable.
Also, what functionality does this plugin provide which isn't already available via the NPC Indicators plugin?

video link should be fixed now

you're right.... there is an npc indicator l0l

you're right.... there is an npc indicator l0l

So I guess this can be closed?


Program Design

[ ] - Develop program goals, objectives, and outcomes
[ ] - Create detailed program plans, including timelines and resources needed
[ ] - Identify potential challenges and mitigation strategies

Assign Irene & Otobong to this..

Random comment for Ene to confirm if she gets a notification.

Got it
On Fri, Jul 5, 2024, 3:03 PM Yigakpoa Samuel @.***>
wrote:

Random comment for Ene to confirm if she gets a notification.
—
Reply to this email directly, view it on GitHub
https://github.com/clentafrica/programs/issues/2#issuecomment-2210939194,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BJQMZA263GTAWTZIOU3I4H3ZK2RUNAVCNFSM6AAAAABKCTK5BGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJQHEZTSMJZGQ
.
You are receiving this because you were assigned.Message ID:
@.***>

@clentafrica/wg-programs is anyone available to work on this please?

Hi @yigakpoa the main focus of these programs will be to scale educational programs and expand outreach right?

Let work on the educational program. For outreach
On Mon, 23 Sept 2024, 12:43 Damilare, @.***> wrote:

Hi @yigakpoa https://github.com/yigakpoa the main focus of these
programs will be to scale educational programs and expand outreach right?
—
Reply to this email directly, view it on GitHub
https://github.com/clentafrica/programs/issues/2#issuecomment-2367967980,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BKMQDQQT7CKEHBFT2MSVE4DZX75GRAVCNFSM6AAAAABKCTK5BGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRXHE3DOOJYGA
.
You are receiving this because you are on a team that was mentioned.Message
ID: @.***>

Thats a good idea @adejumo99 & @EmmanetD . You can add ideas to the meeting notes here and we’ll all discuss it later today by 2pm GMT+1 💃

Oh yes. We will discuss this during the meeting today. 📌

Program Title: ### 30 Days Learning Challenge
Program Goals:

To enhance members' knowledge and expertise in various categories, including education, climate change, renewable energy, disability & gender equality, web development, monitoring and evaluation, and sustainability & ESG.
To provide a platform for members to engage in continuous learning and skill development through free online courses.
To foster a supportive community environment where members can collaborate, share resources, and motivate each other to excel and thrive in their chosen categories.

Objectives:

To encourage members to register for and complete online courses in their chosen categories.
To facilitate the formation/enhancement of dedicated Discord groups for each category to promote discussion and collaboration.
To monitor members' progress through weekly reports and provide support and guidance as needed.
To cultivate a culture of continuous learning and improvement among participants/members.

Possible Outcomes:

Increased knowledge and expertise in the selected categories among program participants.
Enhanced skills in critical areas such as education, climate change, renewable energy, and others.
Strengthened community bonds and collaboration through active participation in Discord groups.
Improved motivation and engagement through regular progress reporting and accountability measures.

Let's kindly review this. Thank you. @yigakpoa @adejumo99 @clentafrica/wg-programs

Thank you for working on this. I think it looks great @EmmanetD 💃
Here are a few links that could help us in suggesting focused courses to our community:

CARE Climate Change:
UNITAR:
Alison:
UN Climate Change

As discussed in the last meeting, I think @clentafrica/wg-design can work on something for us to put out on social media 💃

Thank you so much @yigakpoa

@clentafrica/wg-design Do we have any update on this? Thank you so much.


Frame rate problem

I am working on VCTK corpus (48kHZ)
I can't train my network and preprocess the data using this frame rate and always I got this error (mainly in preprocess and get_STFT_frames function )
What should I modify in the code ?
thank you for help

)

hey i have got one question what is the reason that you have 0 shape or empty array of 0th and 1st speaker


Week four comment translation

Implement the translation feature from week four

Fix the formatting of the two select sections