N+1 Queries

Using EF Core, the following code should generate a single query to get all the countries along with all the IDs for the states in each country. In EF6 this works as expected. However, EF Core is generating a single query to get all the countries and then generating a query for each country to get the states id.
Steps to reproduce
public class Country
    {
        public int ID { get; set; }
        public string Title { get; set; }

        public ICollection<CountryStates> CountryStates { get; set; }
    }

public class State
    {
        public int ID { get; set; }
        public string Title { get; set; }

        public ICollection<CountryStates> CountryStates { get; set; }
    }

public class CountryDTO
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public List<int> CountryStates { get; set; }
    }

Using Automapper:

    cfg.CreateMap<Country, CountryDTO>();

    cfg.CreateMap<CountryStates, int>()
        .ProjectUsing(c=>c.StateID);

I tired both:

    _context.Countries.ProjectTo<CountryDTO>().ToList();

and

    _context.Countries.Include(x=>x.CountryStates).ProjectTo<CountryDTO>().ToList();

Further technical details
EF Core version: 2.0.0-Preview1
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10
IDE: Visual Studio 2017 Update 3 (Preview)

@maganuk Can you post the SQL that gets generated for all the queries?

@ajcvickers
SELECT [y].[ID], [y].[Title]
FROM [Countries] AS [y]
Then multiple:
SELECT [x].[StateID]
FROM [CountryStates] AS [x]
WHERE @_outer_ID = [x].[CountryID]

@ajcvickers I created a Gist for this:
https://gist.github.com/maganuk/3745e509971fda1b5bb8f4b53d6a510b

@maganuk it's a duplicate of #4007, EF doesn't know how to efficiently translate queries with collection navigations in projection, like automapper produces here.
As a workaround you would have to fetch all the data beforehand and apply the projection into DTO on the client.
This produces 2 queries, regardless of the number of countries in the database:
SELECT [c].[ID], [c].[Title]
FROM [Countries] AS [c]
ORDER BY [c].[ID]

SELECT [c.CountryStates].[CountryID], [c.CountryStates].[StateID]
FROM [CountryStates] AS [c.CountryStates]
INNER JOIN (
    SELECT [c0].[ID]
    FROM [Countries] AS [c0]
) AS [t] ON [c.CountryStates].[CountryID] = [t].[ID]
ORDER BY [t].[ID]

Alternatively, you can write the entire query by hand, this way you can apply filters and custom projections to the initial query, so that EF doesn't pull unnecessary data:
                var query = from c in ctx.Countries
                            join cs in ctx.CountryStates on c.ID equals cs.CountryID into grouping
                            from cs in grouping.DefaultIfEmpty()
                            select new { Country = c, StateID = cs.StateID };

                var result = query.ToList()
                    .GroupBy(k => k.Country, e => e.StateID)
                    .Select(g => new CountryDTO { ID = g.Key.ID, Title = g.Key.Title, CountryStates = g.Select(sid => sid).ToList() });

this produces the following, single SQL query (not that it doesn't fetch the CountryID from the CountryStates table):
SELECT [c].[ID], [c].[Title], [cs].[StateID]
FROM [Countries] AS [c]
LEFT JOIN [CountryStates] AS [cs] ON [c].[ID] = [cs].[CountryID]

@maganuk for the second workaround (the complex case) you can get custom filters and projections on both outer and inner collections:
                var query = from c in ctx.Countries
                            where c.Title == "United States"
                            join cs in ctx.CountryStates on c.ID equals cs.CountryID into grouping
                            from cs in grouping.Where(g => g.StateID != 10).DefaultIfEmpty()
                            select new { Country = c, StateID = cs.StateID };

                var result = query.ToList()
                    .GroupBy(k => k.Country, e => e.StateID)
                    .Select(g => new CountryDTO { ID = g.Key.ID, Title = g.Key.Title, CountryStates = g.Select(sid => sid).ToList() })
                    .ToList();

produces the following SQL:
SELECT [c].[ID], [c].[Title], [t].[StateID]
FROM [Countries] AS [c]
LEFT JOIN (
    SELECT [cs].*
    FROM [CountryStates] AS [cs]
    WHERE [cs].[StateID] <> 10
) AS [t] ON [c].[ID] = [t].[CountryID]
WHERE [c].[Title] = N'United States'

In ef6 we're actually apending a queryable extension at the end of the linq
statement for the filtering which generates the linq query based on the
odata filter.
I wonder if appending this to the query var will produce the same results.
Will try and report back.
On Tue, 27 Jun 2017 at 11:56 PM, Maurycy Markowski<EMAIL_ADDRESS>wrote:

@maganuk https://github.com/maganuk for the second workaround (the
complex case) you can get custom filters and projections on both outer and
inner collections:
            var query = from c

in ctx.Countries
where c.Title == "United States"
join cs in ctx.CountryStates on c.ID equals cs.CountryID into grouping
from cs in grouping.Where(g => g.StateID != 10).DefaultIfEmpty()
select new { Country = c, StateID = cs.StateID };
var result = query.ToList()
.GroupBy(k => k.Country, e => e.StateID)
.Select(g => new CountryDTO { ID = g.Key.ID, Title = g.Key.Title, CountryStates
= g.Select(sid => sid).ToList() })
.ToList();
produces the following SQL:
SELECT [c].[ID], [c].[Title], [t].[StateID]FROM [Countries] AS [c]LEFT JOIN (
SELECT [cs].*
FROM [CountryStates] AS [cs]
WHERE [cs].[StateID] <> 10
) AS [t] ON [c].[ID] = [t].[CountryID]WHERE [c].[Title] = N'United States'
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/aspnet/EntityFramework/issues/8531#issuecomment-311443922,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APKHFPAEBJ1ljCfuqquZZj3AT7Elf1NSks5sIUk4gaJpZM4NhOh7
.

This is a problem for me as well. I am using OData and it is producing exactly what Maganuk is explaining. In EF6, this works fine, but ef core does not handle this case.

@smasherprog which version of EFCore are you using? In 2.1 we optimized a number of N+1 queries to produces only 2 queries instead. If you are using 2.1 and your query is not hindered by one of the following limitations of the correlated collection optimization, can you create a new issue, posting your EF model and queries?
Here is the list of known limiations:

doesn't work if the parent query results in a CROSS JOIN,
doesn't work with result operators (i.e. Skip/Take/Distinct)
doesn't work if outer query needs client evaluation anywhere outside projection (e.g. order by or filter by NonMapped property)
doesn't work if inner query is correlated with query two (or more) levels up, (e.g. customers.Select(c => c.Orders.Select(o => o.OrderDetails.Where(od => od.Name == c.Name).ToList()).ToList())
doesn't work in nested scenarios where the outer collection is streaming (e.g. customers.Select(c => c.Orders.Select(o => o.OrderDetails.Where(od => od.Name != "Foo").ToList())) - to make it work, outer collection must also be wrapped in ToList(). However it is OK to stream inner collection - in that case outer collection will take advantage of the optimization.

I just tested and found that this was the OData implementation not ef core. Sorry about that, ill repost this issue on the odata repo.

It also could be due to paging that we are using in most Odata queries in which we use top and skip. So, not sure whose but this is now.

if you are using paging on the inner collection like so: customers.Select(c => c.Orders.Take(5).ToList() ) then it's most likely the problem. However, if the paging is on top level: customers.Select(c => c.Orders.ToList()).Take(5) then optimization should work and the problem is somewhere else


Alignment and Padding in Mobile View

After Getting  Started  Sign Up  and Create Account  button don`t  have suitable padding and not aligned text in the center { in mobile view }

Thanks @Ali-Ahmed-Mohammed, We will fix mobile issues, thanks.

This issue was fixed!


[WARN] Please delete the pirated books from your repo, it's illegal!

ASAP, pls.

already deleted，Thanks for reminding.


Update unreleased changes

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

Project coverage is 96.93%. Comparing base (3e589fa) to head (0de2d0c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #151   +/-   ##
=======================================
  Coverage   96.93%   96.93%
=======================================
  Files           5        5
  Lines         522      522
=======================================
  Hits          506      506
  Misses         16       16

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


smart_open strips leading / from filename

I'm getting a file not found error when trying to open a file with pathname starting with "//". The output looks like this:
smart_open.smart_open('//anaconda/envs/python3/lib/python3.5/site-packages/gensim/test/test_data/lee_background.cor','r')
FileNotFoundError                         Traceback (most recent call last)
 in ()
----> 1 smart_open.smart_open('//anaconda/envs/python3/lib/python3.5/site-packages/gensim/test/test_data/lee_background.cor','r')
//anaconda/envs/python3/lib/python3.5/site-packages/smart_open/smart_open_lib.py in smart_open(uri, mode, **kw)
138             # local files -- both read & write supported
139             # compression, if any, is determined by the filename extension (.gz, .bz2)
--> 140             return file_smart_open(parsed_uri.uri_path, mode)
141         elif parsed_uri.scheme in ("s3", "s3n", "s3u"):
142             kwargs = {}
//anaconda/envs/python3/lib/python3.5/site-packages/smart_open/smart_open_lib.py in file_smart_open(fname, mode)
642
643     """
--> 644     return compression_wrapper(open(fname, mode), fname, mode)
645
646
FileNotFoundError: [Errno 2] No such file or directory: 'anaconda/envs/python3/lib/python3.5/site-packages/gensim/test/test_data/lee_background.cor'

I reproduced this bug
Problem in urlsplit function
In [2]: from boto.compat import urlsplit

In [3]: urlsplit("//home/ivan/file.txt")
Out[3]: SplitResult(scheme='', netloc='home', path='/ivan/file.txt', query='', fragment='')

In [4]: urlsplit("/home/ivan/kek.txt")
Out[4]: SplitResult(scheme='', netloc='', path='/home/ivan/file.txt', query='', fragment='')

I think I'll add asserts to ParseUri.__init__ for avoid incorrect output according to docstring


owning-a-home: Adds rel="noopener noreferrer" to targets

Addresses security issue in [GHE]/CFGOV/platform/issues/2522
Changes

Adds rel="noopener noreferrer" to "_blank" href targets.
Fixes issue in social media molecule where "_blank" was not quoted.

Testing

Ensure OAH_FORM_EXPLAINERS flag is true.
Visit /owning-a-home/loan-estimate/ (e.g.) and inspect the links in the right-hand sidebar that open in a new window and see that they have `rel="noopener noreferrer" in the link.

@lfatty

thanks @anselmbradford


⚠ Bofrost.be has degraded performance

In 26d7867, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 915 ms

Resolved: Bofrost.be performance has improved in f0292c7 after 6 minutes.


Document requirements elicitation interview

Write a software requirements document by analyzing notes & voice recording taken during the requirements elicitation interview conducted on 26 Feb 2024.

Not needed since the interview material will be transformed into SRS document directly.


Update Dependency-Check to use Dependency-Track metadata as the sole source of evidence

A change may be required in Dependency-Check to make this possible.

https://github.com/jeremylong/DependencyCheck/issues/96
https://github.com/jeremylong/DependencyCheck/pull/97


Adding more benchmarks

I thinking about adding more TIM-based benchmarks to test for:

regions (single vs. all)
timeslices (1 vs. 40)
exclusion of scenario files (extra files present vs. no extra files present)

Since the benchmarks on TIM takes longest to run, how many new benchmarks can the CI handle?
@samwebster @siddharth-krishna

Since the benchmarks on TIM takes longest to run, how many new benchmarks can the CI handle?

We have 2,000 mins/month although we could look into getting more from MS due to being open source and environmentally helpful. I'd prefer to see the PR CI stay under 10 minutes (currently 7 mins max) but we could have a longer CI that only runs when changes go into master if needed.

Just checked how long it takes to run the tool on the latest TIM. Seems that the wildcards is a problem; it takes about 40 minutes to complete that step.

😭 extracting commodity groups takes about 45 minutes

Ouch! How long does VEDA take on the same model/config?
If you like I can try to profile our tool on (a subset of) that model this Friday and see if I can spot any opportunities to speed things up?

Thanks @siddharth-krishna! I believe Veda takes about half an hour. #40 reduces the time to about 30%, but still it is a lot!
I am using the latest TIM in the main branch against these DDs: https://github.com/olejandro/tim-dd. It won't run out of the box, because we still don't have a way to exclude some of the excel files.


Master

Hi @pperez3 I received your pull request -- but it doesn't appear to have any changes.

Phantom PR :)


Features for manual verification

Problem:
People and organizations want to publish assets containing meaningful content credentials, but are working with:

existing libraries of media, which do not have C2PA provenance
new media coming from cameras and editing flows which have not yet adopted C2PA, which also lack C2PA provenance.

These people and organizations need some way to attest that the media is authentic, and associate their organization's trustworthiness with this attestation.
I wrote up a proposal for enabling this sort of thing with a new action (c2pa.verified): https://github.com/eeeps/verified-c2pa-action-explainer. However if there are existing solutions to this problem that I have overlooked, or even just conversations about it that I have missed, please let me know!

@eeeps You don't need a specific action for this - just add the C2PA Manifest to the next version of the asset, marking the original (w/o manifest) as a parent ingredient.  This is what stock sites like Adobe Stock have been doing for quite a while now.
If you want an action, I believe that Adobe Stock uses c2pa.published.

@lrosenthol That would require the entity who wishes to make the attestation to implement signing (acquire a certificate, get on relevant trust lists, install and operationalize open source tooling). In this use case, I am envisioning a piece of software (e.g. Photoshop, or a cloud-based DAM solution) allowing its users to make these attestations, and tie them to specific facts about the image presented in the metadata. Also possibly separately-in-time from their publishing flow. Does that make sense?

It's possible that the recommendation here is that anyone who wants to make a verifiable statement about the media must implement a signing flow and sign manifests themselves. Is that the case?

If you want the verifiable statement to be part of the provenance of the asset, that can be verified as part of the C2PA validation process - then yes, those statements would need to be signed and incorporated into a C2PA Manifest.
Of course, there are a variety of other groups working on external attestation systems such as the CredWeb effort from the W3C.


Add specific Exception to handle

To make it possible to listen for these kind of middleware exception. Sorry that the PR includes also some older commits where i disabled the partial-flow. I did a undo of all that changes. This PR is focused only on the Exception that gets throw.
Excample of how we use the Exception

Coverage remained the same at 99.434% when pulling 632c397f76a050816ad2370ba688f27241fb81f3 on StefanNeuser:master into bbbfdb1b3618dcc4ac91b6ce05e7632127164123 on ohmybrew:master.


Enchantment name returning null

Describe the bug
So I'm the dev of HungerGames.
A user was reporting an issue with enchants in the config, throwing an NPE.
After spending the last hour trying to find the issue, I figured out it come from this plugin.
In my plugin, I'm looping the list of enchants and getting the keys and names, allowing users to use the Minecraft keys as well as the silly Bukkit names.
Yes yes I know... the getName method IS deprecated and I shouldn't use it, but here is what I noticed:
https://github.com/phil14052/CustomCobbleGen/blob/d3f05bb507cdc49c83a0b0f0ad5280e970445b07/src/me/phil14052/CustomCobbleGen/Utils/GlowEnchant.java#L41-L44
According to Bukkit's code:
    @NotNull
    @Deprecated
    public abstract String getName();

https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse/src/main/java/org/bukkit/enchantments/Enchantment.java#231
this is NotNull, so the name should NOT return null.
To Reproduce
I don't really have steps, just see above.
Expected behavior
The name SHOULD return the name.
Console errors
I don't have any from this plugin specifically.
Config file
null
Screenshots
nill
System (please complete the following information):
NULL (the error was brought up from a member on my discord)
Additional context

Hi, I will make a fix for this.

Hi, I will make a fix for this.


Adds some additional german translations.

Related issues
https://github.com/DivanteLtd/vue-storefront/issues/3076|#3076
closes #
Short description and why it's useful
completion for the german translation
Which environment this relates to
Check your case. In case of any doubts please read about Release Cycle

[ ] Test version (https://test.storefrontcloud.io) - this is a new feature or improvement for Vue Storefront. I've created branch from develop branch and want to merge it back to develop
[ ] RC version (https://next.storefrontcloud.io) - this is a stabilisation fix for Release Candidate of Vue Storefront. I've created branch from release branch and want to merge it back to release
[x] Stable version (https://demo.storefrontcloud.io) - this is an important fix for current stable version. I've created branch from hotfix or master branch and want to merge it back to hotfix

Upgrade Notes and Changelog

[x] No upgrade steps required (100% backward compatibility and no breaking changes)
[ ] I've updated the Upgrade notes and Changelog on how to port existing VS sites with this new feature

IMPORTANT NOTICE - Remember to update CHANGELOG.md with description of your change
Contribution and currently important rules acceptance

[x] I read and followed contribution rules

@schwerdt-ke nice work, thanks for that! 👍  Could you please rebase with hotfix/v1.10.4 branch? (instead of master)


docs(datadog) new metrics, tags and metrics flexible config

Mashape/kong#2090

Blocked by https://github.com/Mashape/kong/pull/2400

Closing this to open a new one against 0.11.0


KeyError: 'corsets & bodysuits'

您好，新更新的代码在做subcategory recognition的验证的时候，会报错KeyError: 'corsets & bodysuits'
Original Traceback (most recent call last):
File "/root/anaconda3/envs/fashionsap/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 202, in _worker_loop
data = fetcher.fetch(index)
File "/root/anaconda3/envs/fashionsap/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/root/anaconda3/envs/fashionsap/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/wang_ke_jie/FashionSAP/dataset/fashiongen_dataset_catereg.py", line 142, in getitem
label = self.__get_label(cap_index)
File "/wang_ke_jie/FashionSAP/dataset/fashiongen_dataset_catereg.py", line 124, in __get_label
label = torch.tensor([self.label_map[cate]], dtype=torch.long)
KeyError: 'corsets & bodysuits'

The bug has been fixed in commit. Thanks for your suggestion.


copr: remove nullable signature for expression

Signed-off-by: Phosphorus15<EMAIL_ADDRESS>
What problem does this PR solve?
What is changed and how it works?
Remove Options from json signature
Related changes
Check List
Tests

Unit test

You may use writer/guard for Bytes return type. Please refer to repeat function for example. You can use writer.finish(something) instead of partial write.

/merge

/merge


USHIFT-2286: Use timeout command for interrupting failed VM installations

The fix comes to work around stuck VM installations when the ostree payload cannot be pulled.
The --wait <time> option of virt-install does not terminate the tclsh process used by the unbuffer command.
When timeout is used, all the process chain of unbuffer->sudo->virt-install is terminated.
Note: this problem is reproducing itself on ARM platform (not on x86) as noted in the JIRA issue comments.

/unhold
/cherry-pick release-4.15


ios, build question

sorry, my English isn't very good.

run npm run build , platforms/ios/bundlejs Not here create index.js
first run npm run ios after that npm run build create index.js

I wonder if this is normal.

@qzcsgs It works like our expected now, for the official project, the npm run build command will build source to the dist folder, while the npm run ios command was called, the script will copy files from dist to platforms/ios/bundlejs, also it will re-run the command npm run build command to get the latest products.

@erha19 Ok,  thank you very much.


SubjectFilter.RelationFilter should not be added when optionalSubjectRelation is not provided

https://github.com/JalexSocial/SpiceDb/blob/29dc87288ec15fb12f954db784b7cf3a271562cd/SpiceDb/Api/SpiceDbPermissions.cs#L316-L318
Supplying a RelationFilter with an empty Relation causes SpiceDB to filter out all relations, so the OptionalRelation property should not be set when optionalSubjectRelation is empty. This is checked in DeleteRelationshipsAsync but not ReadRelationshipsAsync.
I will put in a PR to fix this.

Waiting for confirmation from SpiceDB but it may actually be that omitting the RelationFilter and supplying an empty string for Relation may mean completely different things.

Omitted - no filter applied
Empty relation - filter to only direct relations

Which would mean the way this is handled in both ReadRelationsAsync and DeleteRelationshipsAsync is incorrect.


Microsoft.CognitiveServices.Speech.core.dll not found, NuGet errors

Describe the bug
Running new code using the text to speech for the first time. In calling the SpeechConfig.FromSubscription function I get the exception:
System.DllNotFoundException
HResult=0x80131524
Message=Unable to load DLL 'Microsoft.CognitiveServices.Speech.core.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Source=Microsoft.CognitiveServices.Speech.csharp
StackTrace:
at Microsoft.CognitiveServices.Speech.Internal.SpeechConfig.speech_config_from_subscription(IntPtr& config, String subscriptionKey, String region)
at Microsoft.CognitiveServices.Speech.SpeechConfig.FromSubscription(String subscriptionKey, String region)
at JTLanguageModelsWindows.Media.TextToSpeechPlatform.d__38.MoveNext() in C:\JTLanguage\JTLanguageModelsWindows\Media\TextToSpeechPlatform.cs:line 832
However, I failed to notice that there were some NuGet errors when I installed the Microsoft.CognitiveServices.Speech package via NuGet. See the errors below.
To Reproduce

Create new .Net console project, .Net 4.7.2 (I called it JTExp).
Open Manage NuGet Packages for Solution and add Microsoft.CognitiveServices.Speech.
See the NuGet errors:

Successfully installed 'Microsoft.CognitiveServices.Speech 1.27.0' to JTExp
Failed to update binding redirects for JTExp\JTExp.csproj : Exception has been thrown by the target of an invocation.
Expected behavior
A clear and concise description of what you expected to happen.
Version of the Cognitive Services Speech SDK
Which version of the SDK are you using.
Platform, Operating System, and Programming Language

OS: Windows 10
Hardware - x64
Programming language: C#
Browser Edge

Additional context
I'm running an AST.NET web app using .NET Framework 4.7.2.
I installed the Microsoft.CognitiveServices.Speech 1.27.0 via Manage NuGet Packages for Solution in a freshly updated Visual Studio 2022 (17.5.3), however, I failed to notice there were some error messages:
Successfully installed 'Microsoft.CognitiveServices.Speech 1.27.0' to JTLanguageModelsWindows
Failed to update binding redirects for JTLanguageModelsWindows\JTLanguageModelsWindows.csproj : Exception has been thrown by the target of an invocation.
Executing nuget actions took 2.05 sec
Package 'Microsoft.CognitiveServices.Speech.1.27.0' already exists in folder 'C:\JTLanguage\packages'
Added package 'Microsoft.CognitiveServices.Speech.1.27.0' to 'packages.config'
Successfully installed 'Microsoft.CognitiveServices.Speech 1.27.0' to JTLanguageWeb
Failed to update binding redirects for JTLanguageWeb\JTLanguageWeb.csproj : Exception has been thrown by the target of an invocation.
Executing nuget actions took 1.37 sec
Package 'Microsoft.CognitiveServices.Speech.1.27.0' already exists in folder 'C:\JTLanguage\packages'
Added package 'Microsoft.CognitiveServices.Speech.1.27.0' to 'packages.config'
Successfully installed 'Microsoft.CognitiveServices.Speech 1.27.0' to JTLanguageWorker
Failed to update binding redirects for JTLanguageTools\JTLanguageWorker\JTLanguageWorker.csproj : Exception has been thrown by the target of an invocation.
These are the messages from my repo case:
Attempting to gather dependency information for package 'Microsoft.CognitiveServices.Speech.1.27.0' with respect to project 'JTExp', targeting '.NETFramework,Version=v4.7.2'
Gathering dependency information took 347 ms
Attempting to resolve dependencies for package 'Microsoft.CognitiveServices.Speech.1.27.0' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'Microsoft.CognitiveServices.Speech.1.27.0'
Resolved actions to install package 'Microsoft.CognitiveServices.Speech.1.27.0'
Package 'Microsoft.CognitiveServices.Speech.1.27.0' already exists in folder 'C:\JTLanguage\packages'
Added package 'Microsoft.CognitiveServices.Speech.1.27.0' to 'packages.config'
Successfully installed 'Microsoft.CognitiveServices.Speech 1.27.0' to JTExp
Failed to update binding redirects for JTExp\JTExp.csproj : Exception has been thrown by the target of an invocation.
Executing nuget actions took 897 ms
Time Elapsed: 00:00:01.2527044
========== Finished ==========

I was able to get this to reproduce for an ASP.Net framework based web app.
Talking to a colleague, there had been another report of this issue, that customer worked around it by switching to a dotnet core based app.
Looking at the deployed webapp in Azure, the native dll's that the SDK depends on aren't being deployed into the bin folder, not sure why they aren't.

Ok, I managed to get the Speech SDK to load in a .Net Framework based web app.
The steps...
ANY CPU didn't work, as it builds for the current machine, and not the target machine.
I selected a x86 build (my Azure web app was 32 bit windows) and built it locally.
Then in the webapp project's property page under Publish there is an option to deploy all files in the project folder and that deployed the core dll to the site.

hi @jtsoftware, were you able to resolve your issue with @rhurey's suggestion?

Sorry, I've been on vacation out of the country the last two weeks.
No, I haven't been able to resolve this. I tried creating a web app with ASP.Net 4.7.2 with MVC, and added x86 and x64 configurations, but I get a build error:
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(832,5): error : The BaseOutputPath/OutputPath property is not set for project 'WebApplication1.csproj'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='Debug'  Platform='x86'.  This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform.
Apparently, adding that configuration didn't add the necessary stuff to the project file.  How did you do it?
I get the same kind of error if I try it in my main solution.
The problem is that I have a 10-year old legacy solution with 22 projects totaling over ~1 million lines of code, so I'm kind of uncomfortable messing around with the core configuration.  A bit after I originally created the project, I tried switching to the new core libraries, but it was missing some key functionality I used, so I stayed with the .Net framework.
Rather than me trying to work around the problem, can you fix the problems that are keeping me from being able to use it? or give me a simpler solution such as just copying some libraries? Otherwise, I may have to stick with using Google Text-to-Speech, which works fine, though I really would like to use the Microsoft voices. This is for a language learning platform, so have good speech is important.

I tried the nuGet install again, and it worked, the only difference being that I ran it in a Visual Studio not as Administrator. (You can only debug web apps as an Administrator). I don't see the .core library in bin\Debug, but I am able to call functions without getting the Unable to load DLL message. I haven't got the code fully working, but I can generate a .wav file, so it looks like the problem is not fatal. Should I close this, or does it need more research?

Actually, I forgot that I added the core DLL path to the PATH variable, which is why it works for me. i.e.:
C:\JTLanguage\packages\Microsoft.CognitiveServices.Speech.1.27.0\runtimes\win-x64\native;
So a fix for nuGet is still probably needed.

I have a second machine and installed the nuGet package and set the path like above, but it still can't find the DLL. If I copy the DLLs manually to the web app bin directory, I get a System.ApplicationError exception with error code 5. Any ideas?

Is the WebApp running x64?
The default for the WebApp was x86 when I was looking at this.
The key takeaway from when I'd gotten a successful run was getting the correct native binaries in the runtime directory, and then having them published to the cloud.
I'd set my local build to x86 to achieve the first part, and then there was a project setting that published all the files in the target directory to the cloud, and not just ones that showed up as a managed reference.

I got the text to speech working. I didn't have the license files in place. Does this account for error 5? Or could there be something more random going on that's unrelated? Because the runtime libraries are not in the bin directory of the other machine the worked first.
I'm still using Any CPU, as I couldn't get either x64 or x86 to build.

This seems like related issue and there is workaround for .NET framework
https://stackoverflow.com/questions/75616169/unable-to-load-dll-microsoft-cognitiveservices-speech-core-dll-could-not-be-f/75623332#75623332
We would need to update the NuGet to automatically to deploy all binaries.

Closing the issue as there has been workarounds provided, we will plan the support to official Nuget.


Docker client package can not retrieve docker server version on docker for mac.

I already opened an issue on the for mac repro, https://github.com/docker/for-mac/issues/938,
but haven't had any luck, it looks like my problem was simply not understood. I am writing a go tool that uses the client package to communicate to docker. Since the for mac version moved to the new osx hypervisor docker-machine env is not existing on osx. So there is no safe way to pull the daemon version from env or that command.
In the moment my program works on mac only for the latest docker for mac installation. Is there a way to fetch the daemon version without knowing the API revision from the daemon directly. Would be good if the client could just query the API revision and doesn't need to rely on some user provided value.
some example using "github.com/docker/docker/client"
cli, err := client.NewClient(host, version, httpClient, nil)
	if err != nil {
		return nil, err
	}

Will fail if the version is wrong. Any idea how to fix this.

The API version is in the returned http headers
> GET /info HTTP/1.1
> Host: docker
> User-Agent: curl/7.51.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Api-Version: 1.25
< Content-Type: application/json
< Date: Wed, 25 Jan 2017 11:11:16 GMT
< Docker-Experimental: true
< Server: Docker/1.13.0 (linux)
< Transfer-Encoding: chunked

or you can use the json or templated output from docker version see https://docs.docker.com/engine/reference/commandline/version/

Thanks, that helped a lot.

I will close this now as the answers on this and the linked issue should be sufficient.

great


Streaming: Stop entirely relying on currently_streaming for the role assignment

This should fix it so that when people manually remove the role it wont be re-applied

Also getting rid of this for the announcements would be good aswell


fix(deps): update aws-sdk-go-v2 monorepo

This PR contains the following updates:

Package
Type
Update
Change

github.com/aws/aws-sdk-go-v2/config
require
patch
v1.27.28 -> v1.27.29

github.com/aws/aws-sdk-go-v2/credentials
require
patch
v1.17.28 -> v1.17.29

github.com/aws/aws-sdk-go-v2/service/ecr
require
patch
v1.32.1 -> v1.32.2

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

ℹ Artifact update notice
File name: go.mod
In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

1 additional dependency was updated

Details:

Package
Change

github.com/aws/aws-sdk-go-v2/service/sts
v1.30.4 -> v1.30.5


Improved output buttons layout

Add a small padding below.

Good choice, didn't think about using Bootstrap.


Add files via upload

@rvrakash17 First stage of verification passed, official domain for Dhanalakshmi Srinivasan Engineering College is dsengg.ac.in as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@rvrakash17 Thank you for your patience while waiting for a review and processing your request. Pull request merged.
Please start requesting the licenses in about an hour, to let the changes to propagate through our system.


IKVM.maven build crashing without any error and no information

Hi @wasabii ,
I'm trying to build with maven my application built on top of Calcite and with usage of IKVM,
Seems like the build not passing and not showing any errors.
CalciteIKVM.zip
As you can see in the picture the assemblies aren't being built.

For example I kept only one dependency of calcite-file  but actually I have a list of them.
   <ItemGroup>
        <PackageReference Include="IKVM" Version="8.7.1" />
        <PackageReference Include="IKVM.Maven.Sdk" Version="1.6.1" />
    </ItemGroup>
    <ItemGroup>
        <MavenReference Include="org.apache.calcite:calcite-core" Version="1.34.0" />
        <MavenReference Include="org.apache.calcite:calcite-server" Version="1.34.0" />
        <MavenReference Include="org.apache.calcite:calcite-csv" Version="1.34.0" />
        <MavenReference Include="org.apache.calcite:calcite-elasticsearch" Version="1.34.0" />
        <MavenReference Include="org.apache.calcite.avatica:avatica-server" Version="1.23.0" />
    </ItemGroup>

I actually am receiving an error though:
1>C:\Users\jhaltom.nuget\packages\ikvm.maven.sdk\1.6.0\buildTransitive\IKVM.Maven.Sdk.targets(96,9): error : ArtifactNotFoundException: Could not find artifact javax.jms:jms:jar:1.1 in central (https://repo1.maven.org/maven2/), try downloading from http://java.sun.com/products/jms/docs.html

Since I already opened #39, I'm going to close this in favor of it.


Complete run_enrichments in cg_enrich

Need to complete the cg_enrich->enrich()->run_enrichments function.  It needs to 1:

Pick out the enrichments that are applicable and run them on the input.
Merge the enrichments into the storage backend

May want to give the ability to pick specific enrichments rather than those which meet criteria.

Completed in gabe branch but still needs testing.


Create budget app

This PR contains the implementation of the Personal Stash budget app:

A mobile web application where you can manage your budget: there is a list of transactions associated with a category so that you can see how much money you spend and on what.

Live Link
Video

Highlights:

Interactions

Splash screen

A simple page with the name of your app (yes, you need to choose one), and links to the signup and log-in pages.

Sign up and login pages

The user should be able to register in the app with their full name, email and password (all mandatory).
The user can log into the app using email and password.
If the user is not logged in, they can't access pages that require the user to be logged in (all the pages described below).

Home page (categories page)

When the user logs in, they are presented with the categories page.
For each category, the user can see their name, icon and the total amount of all the transactions that belong to that category.
When the user clicks (or taps) on a category item, the application navigates to the transactions page for that category.
There is a button "add a new category" at the bottom that brings the user to the page to create a new category.

Transactions page

For a given category, the list of transactions is presented, ordered by the most recent.
At the top of the page the user can see the total amount for the category (sum of all of the amounts of the transactions in that category).
There is a button "add a new transaction" at the bottom that brings the user to the page to create a new transaction.
When the user clicks on the "Back" button (<), the user navigates to the home page.

"Add a new category" page

The user fills out a form to create a new category, indicating their name and icon (both mandatory).
The user clicks (or taps) the "Save" button to create the new category, and is taken to the home page on success.
When the user clicks on the "Back" button (<), the user navigates to the home page.

"Add a new transaction" page

The user fills out a form to create a new transaction with:

name (mandatory)
amount (mandatory)
categories (mandatory at least one)

The user clicks (or taps) the "Save" button to create the new transaction, and is taken to the transactions page for that category.
When the user clicks on the "Back" button (<), the user navigates to the transactions page for that category.

Testing requirements

Created unit and integration tests for all the most important components of the RoR application.

Hi @ShoiraTa, thanks for approving my PR. 🙏🏾


About  image reading format when training

In https://github.com/lukemelas/EfficientNet-PyTorch, its image reading package is PIL.Image, and it's RGB mode.
But in your code, it's opencv-python and it's BGR mode.
I think it doesn't impact the final performance, whatever if use  the pretrained weights. And RGB reading mode will make training converge quickly.

Yes, the image should be converted to RGB instead of BGR.


fix #1417 modulehelp false positives

PR Summary
Fixes #1417
When looking up module version, if the module is not installed, also check if it is loaded and get module version from loaded module
Add 'AttachAndDebug' to paramBlackList, so it does not throw false positives for DEBUG builds.
Small bugfix for the actual blacklist check, the property 'name' of the $parameter variable needs to be used to check against the blacklist.
I have tested this by running:
# in pwsh.exe
.\PSScriptAnalyzer\build.ps1 -clean
.\PSScriptAnalyzer\build.ps1
.\PSScriptAnalyzer\build.ps1 -test
# no errors

# in powershell.exe
.\PSScriptAnalyzer\build.ps1 -clean
.\PSScriptAnalyzer\build.ps1
.\PSScriptAnalyzer\build.ps1 -test
# no errors

PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Change is not breaking
[x] Make sure all .cs, .ps1 and .psm1 files have the correct copyright header
[x] Make sure you've added a new test if existing tests do not effectively test the code changed and/or updated documentation
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready.

I've re-run that failed job on Ubuntu 18.04 but it failed again with that 1 failure. I am now re-running the CI on master because sometimes it is upstream image changes that can cause that, I don't think it is related to your change

Oh! I haven't tested on Linux, just pwsh on Windows. Could look into that later

This failure started to happen in master on that specific image as well, therefore not something related to your change, so don't worry

I just realized I made one unnecessary change. Because of the trick with temporarily setting $env:psmodulepath, the module will always appear 'installed'. I'll revert that part.


Place the marker on a specific tile

I want to move the marker to the specific tiles by using tile name (like 15_45.png). The movement of the marker will be done in real time (as the android device moves). Is there any way to do it?

There's no built in way to do that, but it should be pretty simple, e.g., for 15_45 that'd be x of 15256 and y of 45256.  If you wanted to center it, add another 256/2 to each value.


Add a canary build for windows swarming bot

Is there an existing issue for this?

[X] I have searched the existing infra issues

Type of Request
infra task
Infrastructure Environment
LUCI, swarming, devicelab
What is happening?
We had an incident where a rollback due to a regression in the chromium windows image build broke our new swarming bots. Add a canary so that breaking changes raise notifications.
Steps to reproduce
create a canary build with windows image
Expected results
rainbows and unicorns.

Canary pool is up https://chromium-swarm.appspot.com/botlist?c=id&c=task&c=os&c=status&d=asc&f=pool%3Aluci.flutter.canary&s=id
Need to add the alerting


Tweak HOMEBREW_UPDATE_TO_TAG

Make it update the master branch as well as the stable branch.
Add documentation to manpage

Fixes #5344
CC @RandomDSdevel for thoughts.

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew tests with your changes locally?

     Looks good to me, @MikeMcQuaid.  Thanks again!


How to create multiple separate windows, instead of "tabs"?

Windows created by App::create_window() are just like tabs, sharing a same window, but I want they each had a separate window, can tauri do this? If so, how?
Sorry if I've missed anything, but i've been googling for a long time, checked the docs and issues of tauri and tao, got nothing at all.

Could you please fill out the rest of the information required like tauri info? This is definitely not the default behavior at all so it'd be good to know which platform you're on.

Sorry for for the lack of information. This is what I output under the tauri project:
Environment
  › OS: Mac OS 12.3.0 X64
  › Node.js: 16.13.2
  › npm: 8.1.2
  › pnpm: Not installed!
  › yarn: 1.22.17
  › rustup: 1.24.3
  › rustc: 1.59.0
  › cargo: 1.59.0
  › Rust toolchain: stable-aarch64-apple-darwin

Packages
  › @tauri-apps/cli [NPM]: 1.0.0-rc.7
  › @tauri-apps/api [NPM]: Not installed!
  › tauri [RUST]: no manifest (no lockfile),
  › tauri-build [RUST]: no manifest (no lockfile),
  › tao [RUST]: no manifest (no lockfile),
  › wry [RUST]: no manifest (no lockfile),

App
  › build-type: bundle
  › CSP: default-src 'self'
  › distDir: ["index.html"]
  › devPath: ["index.html"]

App directory structure
  ├─ .husky
  ├─ tooling
  ├─ core
  ├─ audits
  ├─ target
  ├─ node_modules
  ├─ .changes
  ├─ .scripts
  ├─ examples
  ├─ .github
  └─ .git

This is me running the "multiwindow" example (with some irrelevant js code commented out) of this project, I found that all windows created by rust become tabs of a window, and all windows created by js are in another window:
https://user-images.githubusercontent.com/12783466/163813075-30b928af-ce5c-43b4-9eba-464b3aa7f7bb.mp4

This behavior is a configuration option in your macOS System Preferences. Open the System Preferences app, click on General, and change Prefer tabs to in fullscreen or never.

@lucasfernog Thanks for pointing out, but I think the problem is only partially solved, why the first click of the create window button in my case above ignoring my system settings and open a new window? That's exactly what I want, to make sure a new window opens, regardless of the system settings. This system setting never affects my results when I click on the New Window option in, say, vscode, does it?
Let me change the question to, how do I make sure that I can create multiple separate windows when I want to?

I don't think we're doing anything special in this case, but i'll reopen so we can track it.

Looks like we can use NSWindow::setAllowsAutomaticWindowTabbing_(ns_window, NO); to force the tab option, but we might need to wait for v1 to be released.

Now that v1 was released, is this now available/achievable?

any code example pls??
I was trying this but my code is incomplete
#[allow(dead_code)]
#[tauri::command]
async fn open_docs() {
    let handle: tauri::AppHandle = tauri::AppHandle();
    let docs_window = tauri::WindowBuilder::new(
        &handle,
        "external", /* the unique window label */
        tauri::WindowUrl::External("https://tauri.app/".parse().unwrap()),
    ).build().unwrap();
}

@aliscie inject the app handle like this and it should work: https://tauri.app/v1/guides/features/command#accessing-an-apphandle-in-commands

https://tauri.app/v1/guides/features/command#accessing-an-apphandle-in-commands

in the frontend how can I run this?
like this?
//my rust frontend
let app_handle = somthing_that_i_dont_know

spawn_local(async move {
invoke_async("my_custom_command",(app_handle,)).await
    });

i don't know anything about rust frontends tbh, but you don't need to inject the app_handle yourself, Tauri injects it for you (in that regard rust frontends are the same as js frontends)

any code example pls??

This is what I have in my app:
#[cfg(target_os = "macos")]
{
	// Disable the automatic creation of "Show Tab Bar" etc menu items on macOS
	let window = app.get_window("main").unwrap();
	unsafe {
		let ns_window = window.ns_window().unwrap() as cocoa::base::id;
		NSWindow::setAllowsAutomaticWindowTabbing_(ns_window, cocoa::base::NO);
	}
}


Add CREATE SEQUENCE to declarative schema changer

Fixes DOC-10536

@fqazi although the epic https://cockroachlabs.atlassian.net/browse/CRDB-31332 is marked for v24.2 I notice that your PR https://github.com/cockroachdb/cockroach/pull/104350 is from 2023.
Should the doc change also be ported to older versions?  If so which ones? Thanks!

@fqazi although the epic https://cockroachlabs.atlassian.net/browse/CRDB-31332 is marked for v24.2 I notice that your PR cockroachdb/cockroach#104350 is from 2023.
Should the doc change also be ported to older versions? If so which ones? Thanks!

Its been there since 24.1, so we should backport it there too.

Its been there since 24.1, so we should backport it there too.

Thanks @fqazi added the changes to v24.1 docs as well

@taroface mind taking a look? very small change, should hopefully be quick


1.19.2 Epic Fight Struggles

Epic Fight just updated to 1.19.2 which made me extremely happy. I was planning to put this combo in my "Expedition Infinite" modpack when I realized some of the animations broke. The bow weapon isn't animated when used together. It still works fine, it's just janky. Would it be possible to add compatibility between the two?

Just a small glitch. Works great now!


Intersect with the term butanol tolerance

Do this intersection with "resistance to chemicals" concept

I would say "butanol tolerance" is a subclass of "resistance to chemicals"...

Good to see you here !. Thanks for your comments.
Butanol tolerance is indeed a subclass of "resistance to chemicals" from within EKP this could be searched as a separate term to identify indirect relationships. This step enables use to retrive less noise from EKP.. We plan to finetune this further with Aram

This is fixed!


MAINT: smith_waterman works when seqs have no moltype

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
4 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.001%) to 91.635%

Files with Coverage Reduction
New Missed Lines
%

.nox/test-3-8/Lib/site-packages/cogent3/evolve/likelihood_function.py
1
96.3%

.nox/test-3-8/Lib/site-packages/cogent3/maths/scipy_optimize.py
3
84.87%

Totals

Change from base Build<PHONE_NUMBER>:
0.001%

Covered Lines:
236195

Relevant Lines:
257756

💛  - Coveralls


Greedy error thrown when type is only Verifiable Credential

Hi,
I am trying to make an example Verifiable Presentation. I have a simple VC to work with, which would have 2 types, but at this moment my example only has one type set (VerifiableCredential).
When I try to compile my Verifiable Presentation, an error is thrown:
Error: "type" must be `VerifiableCredential` plus specific type.

as thrown by this instruction: https://github.com/digitalbazaar/vc-js/blob/master/lib/vc.js#L421
While I agree it would be better practice, the spec mentions that the second more specific type to which the Credential is attached is optional: https://www.w3.org/TR/vc-data-model/#types (see table:
VerifiableCredential and, optionally, a more specific verifiable credential type. For example,
"type": ["VerifiableCredential", "UniversityDegreeCredential"]

I think the implementation would be more correct if the error was not thrown (maybe just have a warning?).
Thoughts?

@lemoustachiste Hey, I don't know the official ruling on this, but I can tell you that if you want to add a second type now (just to see if you can get any further) you can use numerous ones from https://schema.org/. There is also an example on how to issue and verify a credential here:
https://github.com/digitalbazaar/demo-issuer-integration/blob/master/lib/proofHandler.js
You can also use this credential as a starting point:
https://github.com/digitalbazaar/demo-issuer-integration/blob/use-real-issuer/vue-components/public/assets/custom.js
While the second type might be optional in the spec (this could be an error) the second type is essentially required as it provides a JSON-LD term that should be found in one the @context schema or vocabularies that in turn identifies your VC in the graph.
@dlongley @dmitrizagidulin do you we want to require 2 types for VerifiableCredentials or is one type ok?

Hi @aljones15,
I'm working with a Blockcerts v3 (extension of VC), so I can't modify the JSON directly as I would otherwise render the certificate invalid. I have raised the issue on our side to add that to Blockcerts V3.
For the time being I have commented the error in the source file. Not a good practice for production by all means, but this is unblocking me in my immediate research and discovery phase.
Thanks for your answer, and that makes sense about the second @context.

The error is too greedy -- it's a bug. The spec does not require a second type.

@lemoustachiste Fix has been merged into master: https://github.com/digitalbazaar/vc-js/pull/46#event-3053328752 please close once the release is out.

Great thanks!


Load .obj feature

Create a way to attach .obj to any BeyondarObject instead of using the Renderable

Hi, you have some example pressing 3D object?

There are no examples for that, you need to code it yourself


sugestion: error messages + remove text 'parser'

1] enable/disable display error messages
-- from parser/eval()
-- others functions than uses i/o to print/return error
2] is possible turn off "clean text parser" ?
-- only run bytecode

I'm not sure what you mean by 1) -- could you elaborate a bit?

amounts to disabling compilation (and eval, new Function()) support and only running functions loaded from bytecode. That should be relatively easy to do I think.


add ability to preview the website with unpublished translation changes.

done. Also added options on per-translation to use unpublished value for translation. Useful for previewing final output before publishing.


Add components to show on host scene with a Stream Deck

Needed:

[ ] Component to show one bid with logic to show the next bid and hide the component
[x] Component to show random one prize from a specific prize tier with logic to show the next one and to hide the component

The prize panel shows them in order now instead of randomly


Support for more complex data patterns/sources

Bonjour @berteh :
We were very happy to find this tool, since we want to use templates to print out work orders for cars in particular formats, and wanted to give our admins the ability to edit templates in a WSYIWIG manner.
I'd love to discuss this more with you, including a possible paid contract. Please drop me a line at<EMAIL_ADDRESS>Thanks,
Animesh

Dear @animeshpathak,
thanks for getting in touch. You got an email.
B.

Thanks B. Will send you my specs soon.

Hello @animeshpathak
Haven't read from you since... Still need some help or did you choose another way?
B.

Hi @berteh ; my bad for not getting back. We decided to go with XSL-FO for now, and that worked for us.
Keep up the good work!

Glad you found a solution for your needs.
Out of curiosity: what wysiwyg component/interface did you find/select for a xsl-fo toolset?
have a nice day.
B.

We didn't go WYSIWYG; the developers decided to use the text editors :)


fix sort ordering

The sort ordering is currently broken; this commit fixes it to comply with the requirements of Array.prototype.sort

Thank you! I'll merge your PR now and will release a new version when #28 is ready.


cannot remove grid and line in scatter

I do not want to show the grid and the line, but the code below doesn't work.
vis.scatter(X = data, opts = dict(layoutopts = {'plotly': {'xaxis': {'showgrid':False, 'showline':False, 'showticklabels':False}}}))

Hi @Colin97, what version of visdom are you running? I cannot produce your problem with exactly the below code:
import visdom
vis = visdom.Visdom()
vis.scatter(X = [[1,1],[2,2],[3,3]], opts = dict(layoutopts = {'plotly': {'xaxis': {'showgrid':False, 'showline':False, 'showticklabels':False}}}))

Output plot:

Yes, it works for 2D points, but not for 3D points.
My visdom is <IP_ADDRESS>.

HI @Colin97: plotly itself doesn't have the ability to remove grids and lines from 3d plots.

Closing as this is a plotly issue and not a visdom issue.


Add MQTT features

Possible to add MQTT features to publish server cpu,ram,application status to a MQTT broker so multiple clients can subscribe to the server messages?
So if used for a Data Center, many servers will be easily monitored by developing a client side application which listent to the server topics and do the data processing (real time display and logging).

I'm sure it is but I don't know anything about MQTT. However, it is super easy to hook into each Linux Dash request.
If you would like to submit a pull request at least attempting an integration, I'm sure the community of developers would love to help maintain it. I will also leave this issue open for a while in case someone else want to help develop an MQTT integration branch.


Trying to integrate to 5.0.3 engine version

Im getting the following error when trying to compile the project after adding the plugin, I also added MoviePlayer and DeveloperSettings as public modules.
Error C1083 Cannot open include file: 'clang/Basic/FileManager.h': No such file or directory

Actually just found the fix:
for includes I changed:
instead of:
#include "SScaleBox.h"
#include "SCompoundWidget.h"
#include "ModuleManager.h"
I did:
#include "Widgets/Layout/SScaleBox.h"
#include "Widgets/SCompoundWidget.h"
#include "Modules/ModuleManager.h"
Also, added "DeveloperSettings" as a public module on LoadingScreen.Build.cs, the plugin build file NOT the project build file.


Update sample: getbook.json

Update the getbook.json to reflect some changes to the REST trigger in v0.10.*

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


Python Crash

So the crash actually happened right after I hit the 'Blast' button. I'm not sure what the error was because I didn't see any signs. But what I do know is, when I executed the blast, Python stopped responding and eventually crashed. By the way, I'm not using a GPU.

Did the command prompt that is launched with the application say anything?

I didn't see anything else besides the message 'Neither CUDA nor MPS are available - defaulting to CPU. Note: This module is much faster with a GPU.' Then, it crashed after a few seconds. I've tried all versions of BubbleBlaster but the outcome remains the same. The only exception is when I use BubbleBlaster 1.2.2 NON-COMPACT, which displays the following message
torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: ''If you don't plan on using image functionality from `torchvision.io`, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have `libjpeg` or `libpng` installed before building `torchvision` from source?
torch\_jit_internal.py:857: UserWarning: Unable to retrieve source for @torch.jit._overload function: <function _DenseLayer.forward at 0x0000013E8219A520>.
  warnings.warn(
torch\_jit_internal.py:857: UserWarning: Unable to retrieve source for @torch.jit._overload function: <function _DenseLayer.forward at 0x0000013E8219B4C0>.
  warnings.warn(

Looks like its a image issue. What's the image name? Can you send it here so I can test it?

Here

The name of the file is '001.png'

Hmm, it works on my end. Not sure why its not working for you. What are your computer specs?

i3 6100
8gb ram
no gpu

Hmm, can you download the entire repository and run the python file manually?
git clone https://github.com/Aeonss/BubbleBlaster
cd into the folder
run the command "python bubbleblaster.py"
See if that still crashes the program.

It keeps crashing, but I think it's because I didn't fulfill the requirements in the requirements.txt file.

After I installed the requirements and then ran the command 'python bubbleblaster.py', this is what appeared:
import customtkpip install torchinter as ctk
                       ^
SyntaxError: invalid syntax

Do you have a recommended version of Python?

I'm using Python 3.11.1

I think the problem lies in the specifications of my own PC, it's quite unfortunate, but I appreciate you for answering all this time. I will be closing this post later.

Sorry, to hear this, 🙏🙏


How to add a functionScore to boost Data Products?

The Search documentation (https://datahubproject.io/docs/how/search/) has a bit of information on how to do a custom config. I am interested in doing a functionScore filter that applies a boost to Data Products in search. How can that be achieved?

This should be possible. @david-leifker can provide some additional info.
Alternatively, you could try to use Search Views to create a space narrowly focused on Data Product entities, hiding all other assets.
Cheers
John

Please see this example -> https://github.com/datahub-project/datahub/pull/11511
Using prefix of urn:li:dataProduct: and applying a boot based on the urn prefix should work.

@david-leifker Thank you, I will try this.


Fix AllowedToDelegate format for Users and Computers (Close #113)

As proposed in https://github.com/fox-it/BloodHound.py/issues/113, this PR implements changes in the delegation handling logic in computer.py and memberships.py. The changes implemented are as follows:

If the object is referenced by SID (check logic unchanged), the object is resolved via existing method resolve_sid().
If the object is referenced by another name, it is split and resolved by its samAccountName via resolve_samname().

Since we aren't sure of the exact samAccountName (could be USERNAME or COMPUTERNAME$ for example), the allow_filter flag was introduced to allow the use of LDAP wildcards in the resolve_samname() function.
The check for a period (".") in the name has been removed, since this could cause issues in cases where a user (not a FQDN) is allowed to delegate. To avoid duplicates (e.g. "HOST" and "HOST.fqdn" both appearing), a variable called delegatehosts_cache is introduced to keep track of hosts that have already been processed.

After resolving the object, the resolve_ad_entry() function is used to get the object's properties. If a samAccountName was used before, the resolved object properties are used to translate that back to its objectID.

Tested to work in my environment. Also tested with the latest version of bloodhound_import (https://github.com/fox-it/bloodhound-import/commit/d52c24fbdc95d0fd2c125b6468dc897c08eae939), closing referencing PR https://github.com/fox-it/bloodhound-import/pull/37.

thanks Cas, took a while to get this tested and merged, but appreciate the work you did on this!


Running the transition while they are not being shown

while the use is watching the upper sides the animation runs and when they slid to them they see them static and without any motion.
I remember we didn't have such issue in past.
what could I do? Can u possibly guide me?

Can you elaborate your issue with the help of screenshots so that we better understand the issue we are experiencing.

If I did understand what you meant @javadvf , I think the issue is with your animate on scroll library. animate.css doesn't have the means to control animations on scroll. Please check your javascript and see if everything's ok as it's not feasible to give support for using other libraries.


video and andio is separated

With Ver 1.9.24,after download,the video and andio is separated,and in diffrent format,

You can play these using VLC Media Player. Just follow these steps:

Open VLC Media Player.

Go to Media > Open Multiple Files.

In the Open Media dialog:

Click Add and select your video file.
Check the box Show more options at the bottom.
Check Play another media synchronously.
Click Browse next to Extra media and add your audio file.

Click Select.

Click Play.

With Ver 1.9.24,after download,the video and andio is separated,and in diffrent format,

You can play these using VLC Media Player. Just follow these steps:

Open VLC Media Player.

Go to Media > Open Multiple Files.

In the Open Media dialog:

Click Add and select your video file.
Check the box Show more options at the bottom.
Check Play another media synchronously.
Click Browse next to Extra media and add your audio file.

Click Select.

Click Play.


remove CI badge

We don't actually run CI on the master branch (because bors checks things before they can even be on master), so this doesn't really show anything. rustc doesn't have a badge either. I think we can live without it. :D

@bors r+

:pushpin: Commit 096c3931747607f8bc0042a8417bd6c4166943b8 has been approved by RalfJung
It is now in the queue for this repository.

:hourglass: Testing commit 096c3931747607f8bc0042a8417bd6c4166943b8 with merge 6d75804902724bdd32448f6dd806a3fca491bd1b...

:sunny: Test successful - checks-actions
Approved by: RalfJung
Pushing 6d75804902724bdd32448f6dd806a3fca491bd1b to master...


Package requirements issue

I am trying to run the following script:
from transformers import AutoModelForMaskedLM, AutoTokenizer
import torch
import matplotlib.pyplot as plt
import numpy as np

# Check if GPU is available
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

# Load the model and tokenizer
model_name = "kuleshov-group/caduceus-ps_seqlen-131k_d_model-256_n_layer-16"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModelForMaskedLM.from_pretrained(model_name, trust_remote_code=True)
model.to(device)

# Input DNA sequence
dna_sequence = "ATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGC"

# Tokenize the input sequence
input_ids = tokenizer.encode(dna_sequence, return_tensors="pt").to(device)
sequence_length = input_ids.shape[1] - 2  # Excluding the special tokens

# List of DNA bases
dna_bases = list("ATCG")

# Initialize heatmap
heatmap = np.zeros((4, sequence_length))

# Calculate LLRs for each position and DNA base
for position in range(1, sequence_length + 1):
    # Mask the target position
    masked_input_ids = input_ids.clone()
    masked_input_ids[0, position] = tokenizer.mask_token_id

    # Get logits for the masked token
    with torch.no_grad():
        logits = model(masked_input_ids).logits

    # Calculate log probabilities
    probabilities = torch.nn.functional.softmax(logits[0, position], dim=0)
    log_probabilities = torch.log(probabilities)

    # Get the log probability of the wild-type base
    wt_base = input_ids[0, position].item()
    log_prob_wt = log_probabilities[wt_base].item()

    # Calculate LLR for each variant
    for i, base in enumerate(dna_bases):
        log_prob_mt = log_probabilities[tokenizer.convert_tokens_to_ids(base)].item()
        heatmap[i, position - 1] = log_prob_mt - log_prob_wt

# Compute the number of pairs
num_pairs = (sequence_length * (sequence_length - 1) * 4 * 4) // 2
print(f"Number of distinct LLR value pairs: {num_pairs}")

# Initialize arrays to store the pairs and their sums
pair_positions = np.zeros((num_pairs, 2), dtype=int)
pair_bases = np.zeros((num_pairs, 2), dtype=int)
pair_sums = np.zeros(num_pairs)

# Compute the sums of pairs of LLR values for distinct pairs of bases
index = 0
for i in range(sequence_length):
    for j in range(i + 1, sequence_length):
        for base1 in range(4):
            for base2 in range(4):
                pair_positions[index] = [i, j]
                pair_bases[index] = [base1, base2]
                pair_sums[index] = heatmap[base1, i] + heatmap[base2, j]
                index += 1

# Sort the pairs based on their sums
sorted_indices = np.argsort(pair_sums)

# Get the top 10 most beneficial and deleterious pairs
top_beneficial_indices = sorted_indices[-10:]
top_deleterious_indices = sorted_indices[:10]

# Print the results
print("Top 10 most beneficial pairs:")
for index in top_beneficial_indices:
    pos1, pos2 = pair_positions[index]
    base1, base2 = pair_bases[index]
    llr1, llr2 = heatmap[base1, pos1], heatmap[base2, pos2]
    print(f"({dna_sequence[pos1]}{pos1+1}{dna_bases[base1]}, {llr1:.2f}), ({dna_sequence[pos2]}{pos2+1}{dna_bases[base2]}, {llr2:.2f}), {llr1+llr2:.2f}")

print("\nTop 10 most deleterious pairs:")
for index in top_deleterious_indices:
    pos1, pos2 = pair_positions[index]
    base1, base2 = pair_bases[index]
    llr1, llr2 = heatmap[base1, pos1], heatmap[base2, pos2]
    print(f"({dna_sequence[pos1]}{pos1+1}{dna_bases[base1]}, {llr1:.2f}), ({dna_sequence[pos2]}{pos2+1}{dna_bases[base2]}, {llr2:.2f}), {llr1+llr2:.2f}")

However, even after running the pip install command for mamba-ssm I continue to get the following error:
(caduceus) [<user>@<host> variant-effects]$ python dna_mutation_pairs_effects.py
<path>/mambaforge/envs/caduceus/bin/python
<path>/mambaforge/envs/caduceus/lib/python3.8/site-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
Traceback (most recent call last):
  File "dna_mutation_pairs_effects.py", line 13, in <module>
    model = AutoModelForMaskedLM.from_pretrained(model_name, trust_remote_code=True)
  File "<path>/mambaforge/envs/caduceus/lib/python3.8/site-packages/transformers/models/auto/auto_factory.py", line 550, in from_pretrained
    model_class = get_class_from_dynamic_module(
  File "<path>/mambaforge/envs/caduceus/lib/python3.8/site-packages/transformers/dynamic_module_utils.py", line 489, in get_class_from_dynamic_module
    final_module = get_cached_module_file(
  File "<path>/mambaforge/envs/caduceus/lib/python3.8/site-packages/transformers/dynamic_module_utils.py", line 315, in get_cached_module_file
    modules_needed = check_imports(resolved_module_file)
  File "<path>/mambaforge/envs/caduceus/lib/python3.8/site-packages/transformers/dynamic_module_utils.py", line 180, in check_imports
    raise ImportError(
ImportError: This modeling file requires the following packages that were not found in your environment: mamba_ssm. Run `pip install mamba_ssm`
(caduceus) [<user>@<host> variant-effects]$

I've tried also using pip install mamba_ssm as suggested, but this does not work either. It seems mamba-ssm is listed whenever I run pip list, so I'm not sure what the issue is.

Please try pip install mamba-ssm instead (i.e.,- dash instead of _ underscore)

I have tried that as well. It doesn't work.


Update NIST-action-plan.md

removed outdated ignite information.

@BrendaCarter - PR is ready for final review based on issue #647.
Thank you.
cc: @kenwith


[Refactor] Improve import module

In this PR, the original design of managing host data in wasmedge-sys::ImportModule is improved. The APIs involved in this change are also updated.

Hello, I am a code review bot on flows.network.
It could take a few minutes for me to analyze this PR. Relax, grab a cup of coffee and check back later. Thanks!

@L-jasmine Thanks for the review!


Issue 275 create settings

Closes #282
Complete the population characteristics bug fixes
The following are the changes after the fixes
Top Level location does not show Inherit Setting

Lower levels show Inherit Setting. Clicking on Inherit Setting makes an HTTP DELETE API call

Children locations show UUID of the parent if inherited from is missing

< Lower levels show Inherit Setting. Clicking on Inherit Setting makes an HTTP DELETE API call
@kelvin-muchiri do we have a confirmation dialog for the delete action?

do we have a confirmation dialog for the delete action?

@ciremusyoka I don't think the user should be aware of the delete action. The feedback given to the user for this action is that the Inherited from value should now the label of the parent, and the value should change


Fix fault where you can bypass unsaved changes warning by attempt to save an invalid date

Sorry, put this on wrong repo :(


[Continuation] Make the Crypto Provider configurable

Problem
This issue is created to track the progress of Make the Crypto Provider configurable [1] for APIM 4.2.1 release.
[1] https://github.com/wso2/api-manager/issues/1219
Solution
The usages where the org.bouncycastle.jce.provider.BouncyCastleProvider is hardcoded should be configurable along with the "BC" string which is passed as the crypto provider for different usecases.
Affected Component
APIM
Version
4.2.1
Implementation
No response
Related Issues
No response
Suggested Labels
No response

Hi all,
Please note that the code side changes are done and the scripts are added through the PRs. The documentation to enable and disable FIPS compliance should be added.
Keeping this open until the PRs are merged.
Thanks,
Heshan

Update 28/06/2023

PRs were made to the wso2-support/carbon-multitenancy repo and the wso2-support/carbon-kernel repo. Fix has been checked in the local setup.
There was a problem in the fips.sh, it gives errors when it runs on the mac os. This is because this script was not tested on mac os before. Therefore I have changed this script to work on the mac os also. And I have checked this same script can be use for ubuntu. It is running on ubuntu also.
Therefore single fips.sh is sufficient for both OS. The patch has been made right now. And it is now moved to staging. I have checked the FIPS compliance in the staging pack. It is working without errors.

Hi @udith6415,
The changes were ported to APIM 4.2.0 and the PRs are sent for APIM 4.3.0 release.
Thanks,
Heshan


Add README

Outline what the conference is about, as well as our open source mentality
Outline initial contribution guidelines
Outline initial localization guidelines

looking for comments on the wording of the readme. I feel that it's a little strongly worded, so if you can recommend ways to soften some of the things that are in there, that would be awesome.

LGTM. We should add a license. MIT probably.


JFoenix does not work

Why can not I use JFoenix on my netbeans? The 8.xx works, however you do not have the option of buttons, text box / password, since 9.xx does not work but it has the options that 8.xx, how do I use 9 without my Error code?

9.xx is for java 9,  make sure you are using compatible versions of JFoenix and java.


There should be certain rules for the chat room.

The chat room sometimes go way out of the major CS topics. I am just suggesting that The FCC Administration should design an honor code or some rules to keep the discussion within the limitations of certain topics such as CS, Web dev etc.
It'll be great and will make us more progressive.

Limiting conversation is tantamount to censorship. If someone is repeatably offensive we can take action, but it can be educational for someone to either participate in or witness a conversation on what could be a sensitive topic.

@terakilobyte You're totally right. Sorry my bad.


[experiment] Check resolution stack equality before checking property itself

Maybe faster?

@typescript-bot perf test this faster

Nope, I guess.


feat: add react widget component

WLD-3054
Changes

Add ReactWidget component

@tino-otto Can I ask you to help with how to correctly export this React component along with other exported now functions.
I've tried to pass this component to "index.ts export default" but when I try to install this package in React app I've created to test React Widget, it just not loads correctly.


i18n(fr): Refactoring code errors in blockquotes FR -> EN.

Description (required)
Refactoring code errors in blockquotes FR -> EN. And also put the question "Qu'est-ce qui a mal tourné ?" as the only question in each file.
Question :

[ ] Can we remove import DontEditWarning from '~/components/DontEditWarning.astro' from files ?

Related issues & labels (optional)

Suggested label: i18n

Can we remove import DontEditWarning from '~/components/DontEditWarning.astro' from files ?

Yup, you can!


DecodeFrameAsync access violation

Does media sdk have limits on the number of decode sessions in a single process?
In my project, I use media sdk to decode h264 file. I find  when I create more than 12 decoders, the access violation occures in function DecodeFrameAsync.
However, if I create two processes, one of each creates 6 decoders. the access violation won't happen.
I also tried to use ffmpeg h264_qsv, the same problem occured
Platform:        win10 1909
cpu:                Intel core i7-8700
gpu:                Intel UHD Graphics 630 (driver version: <IP_ADDRESS>42)

@wangyan-intel , @asmirno1 , could you investigate it?

Sure. We will take a look.

Hi @wangyan-intel  do you have any updates?

@lzfgnu Sorry for slow response. It this issue still existed?

@lzfgnu Because no response, I will close this issue at first. If it is still existed, please free to reopen it. Thanks.


Require v2.2 in build lab as well to fix build error

Without specify the .NET Core version to use, in build lab with VS2019, 3.0 is used by default, we got the following build error. Using .NET Core 2.2 avoid these build errors
C:\Program Files\dotnet\sdk\3.1.200\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Microsoft.NET.Sdk.Razor.Compilation.targets(130,10): Error MSB4064: The "DisableSdkPath" parameter is not supported by the "Csc" task. Verify the parameter exists on the task, and it is a settable public instance property.
C:\Program Files\dotnet\sdk\3.1.200\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Microsoft.NET.Sdk.Razor.Compilation.targets(114,5): Error MSB4063: The "Csc" task could not be initialized with its input parameters.

Request SDK v2.2 doesn't work in the build pipeline. It failed at SDK installation time due to not be able to find the specified SDK version. Instead of doing this, Switched back to VS2107 for now until moving ApiPort code to .NET Core v3.*

I'm not familiar with the build process, but this seems reasonable. Is there a reason we're not on 3.x?

Since asp.net core 3.x changed quite a bit from v2.2, we should move to 3.x, just we need to work on other high priority items before getting to it.

You should be able to use the 3.0 SDK but still target netstandard or core 2, or whatever.

You should be able to use the 3.0 SDK but still target netstandard or core 2, or whatever.

Yes, however, we ran into the build errors as stated in the issue's description.


afterScenario is not executed in scenario outlines with dynamic examples

When I call the following feature file, I would expect the afterScenario function to be executed after each Scenario run and the text 'hi!' to be logged:
Feature: AfterScenario Test

  Background:

    * def counter = function(i) { if (i == 3) return null; return { num: i } }
    # * def counter = read('counter.csv')
    # * def counter = read('counter.json')
    * configure afterScenario =
        """
            function(){
                karate.log('hi!')
            }
        """

  Scenario Outline: Run scenario <num>

    * print '<num>'

    Examples:
    | counter |

Unfortunately, this does not happen with such dynamic data-driven tests. Neither if the examples come from a Javascript function (not even with Java Interop), nor from a CSV or a Json file.
Only with static tables it works.

@drundanibel PLEASE follow this process to reopen: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue
quite likely this is fixed in 1.1.0.RC2

Thanks Thomas, your hint to 1.1.0.RC2 has already helped, it works with that!


allow underscores in feature names (v2)

Since https://github.com/dmlc/xgboost/commit/db490d1c7593e0c679194310d271fca745657b8f feature names with underscores like "VAR_01" are
prohibited. This patch allows underscores as special character in
feature names.

Thanks @Far0n but @JohanManders is working on similar PR which covers more than just underscores.  See #548
BTW, @JohanManders Any progress on that PR? Let us know if there's anything we can help to get that merged.


mark old transformation as migrated

Jira - https://keboola.atlassian.net/browse/COM-725

@pivnicek mohl bych poprosit ještě o jedno review 🙏

@pivnicek no, it just marks old transformation as migrated, after successfully migrate to the new transformation

@pivnicek yeah... C&P from epic:
* old transformation won't be killed - just marked in UI "migrated"
* old transformation can be run again even after migration


Erroneous syntax highlighting with subroutine names and preprocessor conditionals

Describe the bug
end subroutine surrounded by preprocessor conditionals is erroneous
Screenshots

Code sample
  function blasmul_mm(A, B) result(C)
    !!< Use DGEMM to multiply A * B and get C.

    real, dimension(:, :), intent(in) :: A, B
    real, dimension(size(A, 1), size(B, 2)) :: C

    interface
#ifdef DOUBLEP
      SUBROUTINE DGEMM ( TRANSA, TRANSB, M, N, K, ALPHA, A, LDA, B, LDB, &
                         BETA, C, LDC )
#else
      SUBROUTINE SGEMM ( TRANSA, TRANSB, M, N, K, ALPHA, A, LDA, B, LDB, &
                         BETA, C, LDC )
#endif
      CHARACTER*1        TRANSA, TRANSB
      INTEGER            M, N, K, LDA, LDB, LDC
      REAL               ALPHA, BETA
      REAL               A( LDA, * ), B( LDB, * ), C( LDC, * )
#ifdef DOUBLEP
      END SUBROUTINE DGEMM
#else
      END SUBROUTINE SGEMM
#endif
    end interface

    assert(size(A, 2) == size(B, 1))

#ifdef DOUBLEP
    call DGEMM('N', 'N', size(A, 1), size(B, 2), size(A, 2), 1.0, A, size(A, 1), B, size(B, 1), &
               0.0, C, size(A, 1))
#else
    call SGEMM('N', 'N', size(A, 1), size(B, 2), size(A, 2), 1.0, A, size(A, 1), B, size(B, 1), &
               0.0, C, size(A, 1))
#endif
  end function blasmul_mm

Fortran Form
Free form (F90+)
Build info (please complete the following information):

OS: Linux x64
Extension Version :2.5.0 internal dev version
Visual Studio Code Version: 1.63.0-insider

This is a much more interesting "bug" than what it seems. Its root is that the regex responsible for opening the scopes matches the end of the match with the name of the subroutine (function, submodule, etc.) so it expects that inner scopes are closed first, followed by outer scopes, e.g.
subroutine scope_1()
  subroutine scope_2()
    subroutine scope_3()
    end subroutine scope_3
  end subroutine scope_2
end subroutine scope_1

However, when preprocessor directives are used the order is upsetted and it no longer makes sense to close the scopes in the same order
subroutine scope_1()
#iddef DEF
  subroutine scope_2()
#else
  subroutine scope_3()
#endif

#iddef DEF
  end subroutine scope_2()
#else
  end subroutine scope_3()
#endif
end subroutine scope_1

Now scope 2 and scope 3 are on the same level since they are guarded by a preproc conditional.
Solution
I think it is reasonable to expect our grammar not being responsible for catching coding errors such as using the wrong subroutine,function, etc. when closing a scope. I will edit the scopes to exit upon a C++ variable name (names can be preprocessor macros)


run spark client job

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


ERROR: cannot launch node of type [msf_updates/pose_sensor]: msf_updates

system: ubuntu 18.04
ros: melodic
problem:
ERROR: cannot launch node of type [msf_updates/pose_sensor]: msf_updates
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/cakgod/hdl_graph_slam/src
ROS path [2]=/home/cakgod/ndt_omp/src
ROS path [3]=/opt/ros/melodic/share
Is there anyone who can help solve this problem? Thank you~~

I met this issue just half an hour ago in ros-melodic，and it just disappeared after reboot .

@FishInWave   This problem still exist after reboot for me. But it causes nothing in my work so i close it. ~~~~

I was able to fix this problem by doing the following:
sudo apt install libgoogle-glog-dev
cd ~/ros_workplace/src
git clone https://github.com/ethz-asl/ethzasl_msf.git
cd .. && catkin_make -DCMAKE_BUILD_TYPE=Release


proof-of-concept for noise effects

in case i need to refactor before moving forwards

I refactored to use audio nodes. was a big change!


Feature request: Inline completions: Exclude some kinds of intellisense items

Currently, IntelliCode's InlineCompletionProvider is called for every kind of completion item in the IntelliSense list.
We'd like to either not be called for, or have the ability to ignore, the following types of completion items which are not based on type information:

file
folder
color
unit
snippet
text

In Visual Studio, we exclude completion items that are not derived from type information - this effectively functions as a filter, excluding some unusable predictions which are not representing valid type information (i.e. attempting to call a method which doesn't exist)
As well, snippet items will often consist of multiple lines, which will displace the following lines and be distracting when scrolling through the list; here's a video:
https://user-images.githubusercontent.com/27872315/141377011-6df2ac90-e509-4fd5-8b20-a4d59837455f.mp4
This issue may be related to our extension setting a default of editor.suggest.preview to true, which is necessary because of #137004 .
cc @hediet @ayim @juihanamshet1 @DavidObando

I think the way to go here would be passing the suggestion kind back to the inline suggestion provider.

That sounds good to me if the InlineCompletionProvider could also control whether its response results in gray text being shown with the suggest widget visible. (#137004)

has no real semantic meaning.

Can you expand on this a bit more please? In my experience, snippet and text items are unhelpful to derive inline suggestions from, so it seems reasonable to me to filter at least those out.

SelectedCompletionInfo now has the members completionKind and isSnippetText.
You should check both to skip snippet suggestions.
Please let me know if that works for you.


Fix March update feature of the month

Feature Of The Month was incorrectly tagged as a chapter and hence
it appeared in the main Monthly Updates list. It is now tagged as a section.

See https://facebookincubator.github.io/velox/monthly-updates.html for the issue.


Routing IRouteConstraint like functionality

Routes today support IRouteConstraint (note that this is different from MVC's IActionConstraint) for ensuring checking that a route parameter is value for that constraint, e.g. the id parameter on a route is an integer.

This needs to be addressed sooner than I imagined, so raising priority. cc @rynowak

@kichalla done?

@kichalla done?

I kept this PR open to react to Routing's constraint functionality. I had a PR out for it but closed it as your PR addresses this already https://github.com/aspnet/Mvc/pull/8120


Update rancher/cli and k8s-kubectl

This updates rancher/cli to v2.0.4 and k8s-kubectl to v1.12.1.
This also have this issue fixed.
It will be good for CI as now you can select the context on login just passing the project id.

Sorry... I made a mistake.


Check if role description is set

https://github.com/TFWIsaac/PHP-SQM-Parser/blob/611b67302ec0a30c60214632c03ccc48edee48bd/index.php#L66
Before saving or after, it shoud be checked if the description is set.

Solved with https://github.com/TFWIsaac/PHP-SQM-Parser/commit/b3c83ee7f1da1259ffd14decf6080d0a621bb1d9


Many passes with autobuild

Describe the bug
Probably not the fault of myst-nb and maybe not even a problem, but it seems suspicious to me the many times sphinx-autobuild iterates upon a single notebook change, specially because one of them is on a python file I wasn't aware of and another one on a checkpoint file. Do I need to configure autobuild to properly work with myst-nb? I wasn't able to find that in the documentation.
[sphinx-autobuild] Detected change: docs/_build/jupyter_execute/test.ipynb
Running Sphinx v3.5.4
loading pickled environment... done
...
[sphinx-autobuild] Detected change: docs/_build/jupyter_execute/test.py
Running Sphinx v3.5.4
loading pickled environment... done
...
[sphinx-autobuild] Detected change: docs/.ipynb_checkpoints/test-checkpoint.ipynb
Running Sphinx v3.5.4
loading pickled environment... done

A clear and concise description of what the bug is.
To Reproduce

Create a basic sphinx project with an index and a barebones ipynb notebook.
Enable myst-nb, of course.
Run sphinx-autobuild on the project.
Make a change in the notebook and save it.
Observe the autobuild output log.

Expected behavior
Just one change is detected, not three, and the build process run once.
Environment
python==3.9.5
myst-nb==0.12.3
MacOS==11.3.1

Package versions or output of jupyter-book --version:

The template is wrong here, isn't it?

Running sphinx-autobuild with
--ignore '/Users/carlos/Desktop/test-sphinx/docs/_build/jupyter_execute/*'
--ignore '/Users/carlos/Desktop/test-sphinx/docs/.ipynb_checkpoints/*'

"fixed" the problem. But I feel there is room for improvement here:

Maybe sphinx-autobuild should ignore _xxx and .xxx by default?
Also note that I had to pass an absolute path as a glob pattern. It would be more useful if relative paths were passed to ignore.py#L12, although I'm not sure how safe it is to assume that everything hangs from the same root.

Should I report this to the autobuild tracker?

I've encountered this same bug and nearly pulled my hair out. Would be great to have a fix!

Yeh I think this is something that needs to be asked in sphinx-autobuild first

I hear here, but there is a bug related to this repo’s config. The jupyter_execute subfolder created by myst-nb contains an ipynb file of rendered out myst markdown files. When sphinx-autobuild reloads, it will see those ipynb notebooks as new pages to renders, which then sparks an recursive loop of jupyter_execute folders inside jupyter_execute folders into eternity.
What might help is an option to myst-nb that lets you set the location of the jupyter_execute folder outside of the area that sphinx is monitoring, like a dot folder or a tmp folder or something.
Is there an option that allows that now?

outside of the area that sphinx is monitoring

It is already outside of the area that sphinx monitors, since it is in the output directory.
As already suggested, you should open an issue on sphinx-autobuild, regarding ignoring the outdir


Show queue and run sums and averages in stats

In GitLab by @mcastril on May 14, 2024, 18:04
Hi @LuiggiTenorioK
I think that someone mentioned it in the session with users at the BSC. In the (old) GUI there's an option under the Tree/Graph views to show a Summary of the workflow. It provides averages and sums for the queue and run-time per section.
I am not suggesting adding this information in the Tree/Graph views in the new GUI but in the stats section. I think it fits better there and I also asked for this feature for Autosubmit, to have homogeneous views of the stats with both resources.

In GitLab by @mcastril on May 15, 2024, 20:01
Thanks, Luiggi; I overlooked the table view before.
I understand the concern; I was referring to the "aggregated by job section," of course. But it's true that some workflows may have many sections.
My point was that I considered this as "statistics", and also that it would be nice to visualize them with Autosubmit too. But we can use a different acronym like "summary". And maybe in the statistics only add the total average queue time (we already have wallclock and CPU time there).
Let's discuss tomorrow.

Hi Miguel, this feature is already in the new GUI with the name "Table View".

I can move it to the Stats View but I think it can make the section quite large.


Webpack isn't producing valid sourcemaps?

tl;dr

According to https://sourcemaps.io/ and sourcemap-validator, the sourcemaps produced by webpack are invalid
using devtool: "source-map", a barebones webpack config, and Version: webpack 4.12.2
sample repro repo available at https://github.com/kenhoff/webpack-sourcemap-testing

(this might be an issue with sourcemap-validator, but the error that it's throwing (in the "current behavior" section below) seems pretty legit)
Bug report
What is the current behavior?
Running webpack with the following config:
const webpack = require('webpack');
const path = require('path');

module.exports = {
    entry: './src/index.js',
    output: {
        path: path.resolve(__dirname, 'dist'),
        filename: 'bundle.js'
    },
    devtool: 'source-map'
};

produces dist/bundle.js and dist/bundle.js.map.
those files are able to be used in Chrome dev tools with source mappings 👍
but running those files through sourcemap-validator (or https://sourcemaps.io/, and consequently Sentry) produces the following error:

/Users/kenhoff/node_modules/sourcemap-validator/index.js:146
          throw new Error(errMsg);
          ^

Error: Warning: mismatched names
Expected: installedModules || 'installedModules' || 'installedModules' || "installedModules" || "installedModules"
Got:    var installedM ||       var installedMod ||     var installedMod ||     var installedMod ||     var installedMod
Original Line:          var installedModules = {};
Mapping: 1:17→2:0 "installedModules" in webpack:///webpack/bootstrap
    at /Users/kenhoff/node_modules/sourcemap-validator/index.js:146:17
    at Array.forEach (<anonymous>)
    at SourceMapConsumer_eachMapping [as eachMapping] (/Users/kenhoff/node_modules/sourcemap-validator/node_modules/source-map/lib/source-map/source-map-consumer.js:570:10)
    at validate (/Users/kenhoff/node_modules/sourcemap-validator/index.js:83:12)
    at Object.<anonymous> (/Users/kenhoff/dev/webpack-sourcemap-testing/test-sourcemaps.js:6:1)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)

If the current behavior is a bug, please provide the steps to reproduce.
Repro repo here: https://github.com/kenhoff/webpack-sourcemap-testing
Repro instructions for that repo are on the readme.
If starting from scratch, use the following webpack config:
const webpack = require('webpack');
const path = require('path');

module.exports = {
    entry: './src/index.js',
    output: {
        path: path.resolve(__dirname, 'dist'),
        filename: 'bundle.js'
    },
    devtool: 'source-map'
};

and use sourcemap-validator to test dist/bundle.js for validity.
What is the expected behavior?
Expected behavior is for sourcemap-validator to read the sourcemap as valid (e.g., not throw an error).
(It looks like it might have something to do with some misaligned whitespace, but I'm really not sure :\ )
Other relevant information:
webpack version: Version: webpack 4.12.2
Node.js version: v9.4.0
Operating System: macOS 10.13.4
Additional tools: none

Ok two changes are necessary to achieve better source maps that validate correctly:
https://github.com/webpack/webpack-sources/blob/b643bfba58c5820f9cf8f00a19979c1208e47692/lib/OriginalSource.js#L12-L38
change this to:
function _splitCode(code) {
	return code.split(/([\w$_0-9]+)/);
}

Maybe even improve the regexp a bit to match IdentifierName from the EcmaScript Spec: https://www.ecma-international.org/ecma-262/5.1/#sec-7.6
and
https://github.com/webpack-contrib/uglifyjs-webpack-plugin/blob/16d4eb345905a284bf1d33be66cb4a9572d91c2c/src/uglify/minify.js#L136-L138
change this to:
uglifyOptions.sourceMap = {
  content: inputSourceMap,
  includeSources: true
};

Please send PRs 😄

cc @evilebottnawi

@sokra should we enable this by default? or better add to docs?

@evilebottnawi this can't be specified via options, can it?

@sokra we can modify sourceMap: true -> sourceMap: { content: inputSourceMap, includeSources: true }

ah I tried again and the uglifyjs-webpack-plugin change is actually not needed at all.
Sorry for bothering...

the webpack-sources change very likely affects performance very negatively.

I aslo with this bug, webpack version is 4.17.1, error trace line number it not right

@kenhoff will you be sending in a PR with the changes @sokra proposed? I can take over if you like.

@Hoten go for it, all you! 👍

On a related note, why is the bootstrap code prefixed with some whitespace?
https://github.com/webpack/webpack/blob/aecdeb35a662953285603ca09a004ee752d2fb60/lib/MainTemplate.js#L414

@kenhoff did the PR https://github.com/webpack/webpack-sources/pull/41 fix the original issue<EMAIL_ADDRESS>uses<EMAIL_ADDRESS>but the issue is still reproducible for https://github.com/kenhoff/webpack-sourcemap-testing.

@sokra @Hoten shouldn't this issue be reopened because https://github.com/webpack/webpack-sources/pull/41 didn't really fix it?
Just in case I've forked @kenhoff repo and updated webpack version to the latest https://github.com/adaniliuk/webpack-sourcemap-testing
There is the output:
$ webpack
Hash: 9bd50b65233535f2f320
Version: webpack 4.22.0
Time: 361ms
Built at: 2018-10-22 10:42:17
        Asset       Size  Chunks             Chunk Names
    bundle.js  984 bytes       0  [emitted]  main
bundle.js.map   4.52 KiB       0  [emitted]  main
Entrypoint main = bundle.js bundle.js.map
[0] ./src/index.js 46 bytes {0} [built]

WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/

$ node test-sourcemaps.js
/webpack-sourcemap-testing/node_modules/sourcemap-validator/index.js:146
          throw new Error(errMsg);
          ^
Error: Warning: mismatched names
Expected: installedModules || 'installedModules' || 'installedModules' || "installedModules" || "installedModules"
Got:  	var installedM ||  	var installedMod ||  	var installedMod ||  	var installedMod ||  	var installedMod
Original Line:  	var installedModules = {};
Mapping: 1:17→2:0 "installedModules" in webpack:///webpack/bootstrap
    at /webpack-sourcemap-testing/node_modules/sourcemap-validator/index.js:146:17
    at Array.forEach (<anonymous>)
    at SourceMapConsumer_eachMapping [as eachMapping] (/webpack-sourcemap-testing/node_modules/sourcemap-validator/node_modules/source-map/lib/source-map/source-map-consumer.js:570:10)
    at validate (/webpack-sourcemap-testing/node_modules/sourcemap-validator/index.js:83:12)
    at Object.<anonymous> (/webpack-sourcemap-testing/test-sourcemaps.js:6:1)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

@kenhoff was this issue really solved to you?

Hi friends - sorry about the delay on this. I ran through my sample repo (https://github.com/kenhoff/webpack-sourcemap-testing) and updated to the latest versions of everything. Appears to still be an issue. Looks like there's a newer version of the issue here ----> #8302