Branding: Master Pages, Page Layouts, Display Templates

Synopsis
Add support for branding elements such as master pages, page layouts, display templates.
Description
Core project already has implementation for most types of branding elements in OfficeDevPnP.Core/Extensions/BrandingExtensions.cs.
This enhancement would require a schema update and implementation of object handlers
Example
<pnp:Catalogs xmlns:pnp="http://schemas.dev.office.com/PnP/2017/05/ProvisioningSchema">
	<pnp:MasterPages>
		<!-- Uploads file ${SourceFilePath} into the ${Folder} folder in the master page gallery, sets master page content type and property values -->
		<pnp:MasterPage
			SourceFilePath='files\_catalogs\masterpage\Tenant.master'
			Title="Tenant master page"
			Description="Custom master page that applies branding elements and overall look and feel of the site as defined in the corporate web site design guidelines"
			UIVersion="15"
			DefaultCSSFile="~sitecollection/Style Library/tenant.css"
			Folder = "" />
	</pnp:MasterPages>

	<pnp:PageLayouts>
		<pnp:PageLayout
			SourceFilePath="files\_catalogs\masterpage\Tenant-Splash.aspx"
			Title="Corporate home page layout"
			Description="Corporate home page layout contains additional design elements"
			AssociatedContentTypeID="{contenttypeid:Page}"
			Folder="" />
		<pnp:HtmlPageLayout
			SourceFilePath="ArticlePage-NewsArticle.aspx"
			Title="News article page layout"
			Description="News article page layout that typically contains the following sections: heading, short content, full content, related links and tags"
			AssociatedContentTypeID="{contenttypeid:Article Page}"
			Folder="" />
	</pnp:PageLayouts>

	<pnp:DisplayTemplates>
		<pnp:DisplayTemplate
			SourceFilePath="files\_catalogs\masterpage\Display Templates\Content Web Parts\Control_ListWithEnhancedPaging.html"
			Title="List with enhanced paging"
			Description="Implements enhanced paging with page numbers, first, previous, next and last page controls"
			AssociatedContentTypeID="0x0101002039C03B61C64EC4A04F5361F385106601"
			Folder="Content Web Parts" />
		<pnp:DisplayTemplate
			SourceFilePath="files\_catalogs\masterpage\Display Templates\Content Web Parts\Control_NewsTicker.html"
			Title="News ticker control"
			Description="Implements corporate content rotator control that displays a pre-defined number of featured news articles with pre-defined delay bettween slides"
			AssociatedContentTypeID="0x0101002039C03B61C64EC4A04F5361F385106601"
			Folder="Content Web Parts" />
		<pnp:DisplayTemplate
			SourceFilePath="files\_catalogs\masterpage\Display Templates\Content Web Parts\Item_NewsTicker.html"
			Title="News ticker slide"
			Description="Renders a feature news article slide that is displayed inside of the news ticker control"
			AssociatedContentTypeID="0x0101002039C03B61C64EC4A04F5361F385106603"
			Folder="Content Web Parts" />
		<pnp:DisplayTemplate
			SourceFilePath="files\_catalogs\masterpage\Display Templates\Content Web Parts\Control_SearchResultsWithEnhancedPaging.html"
			Title="Search results with enhanced paging"
			Description="Implements enhanced paging with page numbers, first, previous, next and last page controls"
			AssociatedContentTypeID="0x0101002039C03B61C64EC4A04F5361F385106601"
			Folder="Search" />
		<pnp:DisplayTemplate
			SourceFilePath="files\_catalogs\masterpage\Display Templates\Content Web Parts\Item_Announcement.html"
			Title="Announcement item search results item"
			Description="Enhanced view of the corporate announcement items"
			AssociatedContentTypeID="0x0101002039C03B61C64EC4A04F5361F385106603"
			Folder="Search" />
		<pnp:DisplayTemplate
			SourceFilePath="files\_catalogs\masterpage\Display Templates\Content Web Parts\Filter_TimeSpan.html"
			Title="Time span filter"
			Description="Enhanced filter where time span cen be selected for a specific fiscal or calendar year, quarter, month or between arbitrary start and end dates"
			AssociatedContentTypeID="0x0101002039C03B61C64EC4A04F5361F385106604"
			Folder="Filters" />
	</pnp:DisplayTemplates>

</pnp:Catalogs>

We closed this issue as it had not been any activity within last 180 days. This is a generic process we have decided to perform for issues, which have not been explicitly marked still to be "work in progress" based on tags. We are performing this cleaning to make sure that old issues that have already been solved (but not closed) or are no longer relevant are cleaned out and make the issues more manageable. If this issue still valid, we would ask you to open a new issue and follow the guidance in the issue template related to the recommended location. We do apologize for any inconveniences this might cause. Please do remember that issues on the issue lists are also messages for others in the community, so you can also check if you can assist on any of them. “Sharing is caring!”


Linker cannot process code containing non-English identifiers (Windows-only)

In my project sometimes Russian names are used for class and object identifiers. For example:
package company.root_module.domain

object НазваниеКлассаНаРусскомЯзыке

object Main {
  def main(args: Array[String]): Unit = {
    println(НазваниеКлассаНаРусскомЯзыке)
  }
}

Unfortunately, this code is not processed by the ScalaJS linker if the linker is configured to generate ES modules, breaking them down into small modules within the application package to work effectively with bundlers like Parcel:
// Emit modules in the most Parcel-friendly way
scalaJSLinkerConfig ~= {
  _.withModuleKind(ModuleKind.ESModule)
    .withModuleSplitStyle(ModuleSplitStyle.SmallModulesFor(List("company.root_module")))
}

How to reproduce

Clone repository https://github.com/nartamonov/reproduce-scalajs-bug
Run sbt fastLinkJS

The following error will appear:
C:\Dev\repoduce-js-bug\project_files (master -> origin)
λ sbt fastLinkJS
Picked up JAVA_TOOL_OPTIONS: -Dstdout.encoding=UTF-8 -Dstderr.encoding=UTF-8
Picked up JAVA_TOOL_OPTIONS: -Dstdout.encoding=UTF-8 -Dstderr.encoding=UTF-8
[info] welcome to sbt 1.10.1 (Eclipse Adoptium Java 22.0.1)
[info] loading settings for project project_files-build from plugins.sbt ...
[info] loading project definition from C:\Dev\repoduce-js-bug\project_files\project
[info] loading settings for project project_files from build.sbt ...
[info] set current project to root-module (in build file:/C:/Dev/repoduce-js-bug/project_files/)
[info] compiling 1 Scala source to C:\Dev\repoduce-js-bug\project_files\target\scala-2.13\classes ...
[info] Fast optimizing C:\Dev\repoduce-js-bug\project_files\target\scala-2.13\root-module-fastopt
[error] java.nio.file.FileSystemException: C:\Dev\repoduce-js-bug\project_files\target\scala-2.13\root-module-fastopt\.tmp-company.root_module.domain.-u00041dН-u000430а-u000437з-u000432в-u000430а-u00043dн-u000438и-u000435е-u00041aК-u00043bл-u000430а-u000441с-u000441с-u000430а-u00041dН-u000430а-u000420Р-u000443у-u000441с-u000441с-u00043aк-u00043eо-u00043cм-u00042fЯ-u000437з-u00044bы-u00043aк-u000435е$.js3696010906854088543.tmp: Синтаксическая ошибка в имени файла, имени папки или метке тома
[error]         at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
[error]         at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
[error]         at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
[error]         at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:234)
[error]         at java.base/java.nio.file.Files.newByteChannel(Files.java:379)
[error]         at java.base/java.nio.file.Files.createFile(Files.java:657)
[error]         at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:136)
[error]         at java.base/java.nio.file.TempFileHelper.createTempFile(TempFileHelper.java:159)
[error]         at java.base/java.nio.file.Files.createTempFile(Files.java:878)
[error]         at org.scalajs.linker.PathOutputDirectory$Impl.$anonfun$writeAtomic$2(PathOutputDirectory.scala:86)
[error]         at scala.concurrent.impl.ExecutionContextImpl$DefaultThreadFactory$$anon$1$$anon$2.block(ExecutionContextImpl.scala:75)
[error]         at java.base/java.util.concurrent.ForkJoinPool.compensatedBlock(ForkJoinPool.java:3977)
[error]         at java.base/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3959)
[error]         at scala.concurrent.impl.ExecutionContextImpl$DefaultThreadFactory$$anon$1.blockOn(ExecutionContextImpl.scala:87)
[error]         at scala.concurrent.package$.blocking(package.scala:146)
[error]         at org.scalajs.linker.PathOutputDirectory$Impl.$anonfun$writeAtomic$1(PathOutputDirectory.scala:85)
[error]         at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659)
[error]         at scala.util.Success.$anonfun$map$1(Try.scala:255)
[error]         at scala.util.Success.map(Try.scala:213)
[error]         at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
[error]         at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:42)
[error]         at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:74)
[error]         at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute(ForkJoinTask.java:1726)
[error]         at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute(ForkJoinTask.java:1717)
[error]         at java.base/java.util.concurrent.ForkJoinTask$InterruptibleTask.exec(ForkJoinTask.java:1641)
[error]         at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
[error]         at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1491)
[error]         at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2073)
[error]         at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2035)
[error]         at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
[error] (Compile / fastLinkJS) java.nio.file.FileSystemException: C:\Dev\repoduce-js-bug\project_files\target\scala-2.13\root-module-fastopt\.tmp-company.root_module.domain.-u00041dН-u000430а-u000437з-u000432в-u000430а-u00043dн-u000438и-u000435е-u00041aК-u00043bл-u000430а-u000441с-u000441с-u000430а-u00041dН-u000430а-u000420Р-u000443у-u000441с-u000441с-u00043aк-u00043eо-u00043cм-u00042fЯ-u000437з-u00044bы-u00043aк-u000435е$.js3696010906854088543.tmp: Синтаксическая ошибка в имени файла, имени папки или метке тома
[error] Total time: 3 s, completed 30 авг. 2024 г., 17:29:42

The error text is in Russian, as the operating system locale is Russian. Translated as "Syntax error in file name, folder name or volume label".
Analysis
Presumably, the error occurs due to the way of encoding Unicode identifiers in a language other than English:
.tmp-company.root_module.domain.-u00041dН-u000430а-u000437з-u000432в-u000430а-u00043dн-u000438и-u000435е-u00041aК-u00043bл-u000430а-u000441с-u000441с-u000430а-u00041dН-u000430а-u000420Р-u000443у-u000441с-u000441с-u00043aк-u00043eо-u00043cм-u00042fЯ-u000437з-u00044bы-u00043aк-u000435е$.js3696010906854088543.tmp

As a result, the file length is 312 characters. I use Windows 10, and it was configured to supports long file paths. However, although the path itself has no length limit, the restriction still has a path component, usually it cannot exceed 255 characters:

The Windows API has many functions that also have Unicode versions to permit an extended-length path for a maximum total path length of 32,767 characters. This type of path is composed of components separated by backslashes, each up to the value returned in the lpMaximumComponentLength parameter of the GetVolumeInformation function (this value is commonly 255 characters).

There is no way around this limitation, as far as I know. It would be nice to find a way to encode the identifiers in a more economical way.

Thanks for the report and the analysis.
So, if I understand correctly, this is not so much about non-ASCII characters (different from non-English, btw), but rather about very long names produced for modules?
If yes, then we could switch to a scheme with a hash for module names that would be too long. We do that for modules that contain several classes anyway, IIRC.

I was right to be suspicious: Case folding cannot be implemented with case mapping for stability reasons.
Unicode Standard 15.1.0, section 5.18, case mappings, subsection caseless mapping (excerpt):

R5 From each class, one representative element (a single lowercase letter where possible) is chosen to be the common form.

For rule R5, it is preferable to choose a single lowercase letter for the common form, but
this is not possible in all instances. For case folding of Cherokee letters, for example, a single uppercase letter must be chosen instead, because the uppercase letters for Cherokee
were encoded in an earlier version of the Unicode Standard, and the lowercase letters were
encoded in a later version. This choice is required to keep case folding stable across Unicode versions.

Is that really an issue for our use case? I guess it could mean in theory that using a different JVM to build a project would result in differently-cased output file names? Is that the only issue?

Is that the only issue?

No, I don't think so. Notably, case folding is locale independent (modulo Turkish), case mapping isn't.

Even for Turkish (and Lithuanian and Azeri), I believe the x->toUpper->toLower is locale-independent. (although neither is independent when alone)

Ah, potentially. But I don't think Unicode gives us that guarantee. So we'd rely on how things are right now.
But maybe that's acceptable, especially if we write a test that validates this assumption.
Then again, using toUpper, toLower to chose the representative element would go directly against the standard. IIRC, the standard mentions Cherokee where the representative element is upper case for backwards compatibility reasons.
TBH, between validating all these assumptions and including CaseFolding.txt as a data file to the linker, I'd prefer the latter :-/

Overall I'm not sure this would even since the issue we have here. We could always find a class name that is full of uppercase Cyrillic letters. Those would not case-fold to themselves, and so we'd be back with a super long name.
Although I guess embedding the full case folding database would allow us to assign a "folding index" to every code point. If there are 3 code points that fold to the same one, they would receive indices 0, 1 and 2. Then we can prefix by -1 instead of -u followed by 6 more hex digits.

So, if I understand correctly, this is not so much about non-ASCII characters (different from non-English, btw), but rather about very long names produced for modules?

Yes, it's about very long filenames produced by linker. If we reduce the name of the class in my original example, it will be processed without problems:
package company.root_module.domain

object НазваниеКлассаНа // was previously НазваниеКлассаНаРусскомЯзыке

object Main {
  def main(args: Array[String]): Unit = {
    println(НазваниеКлассаНа)
  }
}

Overall I'm not sure this would even solve the issue we have here. We could always find a class name that is full of uppercase Cyrillic letters. Those would not case-fold to themselves, and so we'd be back with a super long name.

Ah, yes. Absolutely. We'd need the fallback to hash the names either way.
But if we want to provide something a bit better human consumable, then we could do what I'm proposing as an in-between.

Although I guess embedding the full case folding database would allow us to assign a "folding index" to every code point. If there are 3 code points that fold to the same one, they would receive indices 0, 1 and 2. Then we can prefix by -1 instead of -u followed by 6 more hex digits.

This might be nice, since the names will be much closer to what they were originally.


Manim ModuleNotFoundError: No module named 'cairo'

Dear all,
Please help me in running Manim. I am getting following error.

Before ´´´pip install pycairo´´´ I also needed to install ´´´pkg-config´´´. It works now.

I just ran into this issue while installing on a fresh Ubuntu installation with these instructions: https://www.youtube.com/watch?v=z_WJaHYH66M.  I tried all of the suggestions above, but nothing seemed to work.  I had cairo installed 5 different ways (probably part of the issue) and I was getting the following error when pip installing requirements.txt:

ERROR: Cannot uninstall 'pycairo'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

So I ran pip install with the "--ignore-installed" flag:
sudo python3.7 -m pip install --ignore-installed -r requirements.txt
and was able to finish successfully installing.


⚠ Bofrost.it has degraded performance

In 1d89876, Bofrost.it (https://www.bofrost.it) experienced degraded performance:

HTTP code: 200
Response time: 2749 ms

Resolved: Bofrost.it performance has improved in 75d9d18 after 6 days, 12 minutes.


Use 30-seconds-starter template

Migration procedure to the new common template for 30 seconds repositories.
This is still a work in progress, do not merge unless I explicitly say so!
Tasks

[x] Update snippet structure to the new format
[x] Rename to 30-seconds-of-php
[x] Evaluate every snippet, check code, description, explanation, update as necessary
[x] Update logo to match the style of the rest of the projects
[x] Clean up the existing repository, remove anything not necessary
[x] Copy files from the starter, configure accordingly
[x] Update static parts, guidelines, issue/PR templates
[x] Update Travis, add Netlify integration
[x] Configure Google Analytics
[x] Evaluate that all scripts (extractor, builder, webber) work as planned
[x] Setup Netlify properly and merge, disable GitHub Pages (expect ~2 hours website downtime)

@fejes713 Could you handle the setup of extractor, builder and webber while I take a look at the logo and snippets and update them accordingly?

Migration is complete, welcome to the new website! 😄


editor.wordBasedSuggestions in HTML

VSCode Version: 1.2.0
OS Version: Windows 10

-- Sorry for the English, I used Google Translator --
Ideally, the same suggested word to all languages, not only for languages specify. For bringing "editor." Tended to generalize the function. If it were a specific language being could be, for example: "html.wordBasedSuggestions", “java.wordBasedSuggestions”, “javascript.wordBasedSuggestions”.
If possible, I would like this feature was available in HTML, among others, working similarly to Plain Text and Markdown.
1- Suggest words that are not tag.
2- Suggest words between the head and body tags and the tag inside. Between both not show suggestion.

3- Have option to enable and disable to suggest so they are digitas. (How in Plain Text by typing only one letter). But only between tags (eg: <h1> </ h1> ).
Configuration suggestion: "html.wordBasedSuggestionsAutomatic: true or false".

4- Have the option to turn on and off to "force the suggestion" with the shortcut Ctrl + Space (How in Plain text when not typed the letter or how it works in Markdown) within tags (eg: <h1> < / h1>). Configuration suggestion: "html.wordBasedSuggestionsforced: true or false".

5- Following the idea to number 4, within quotation marks (" "), but typing the first letter plus the shortcut Ctrl + Space to be able to show up the suggestion when there is no standard suggestion. Configuration suggestion: "html.wordBasedSuggestionsforced: true or false".

For "html.wordBasedSuggestionsAutomatic: true or false" and "html.wordBasedSuggestionsforced: true or false" work "html. wordBasedSuggestions "must be as true.
Best suggestions are welcome..

closing as dupe of #10819 which is a little easier to understand and has more use-cases

-- Sorry for the English, I used Google Translator --
@jrieken Ok, sorry for English. Like that word suggestion based on previously typed words happen in any language, and in different situations, as I tried to show the images.

Yes - that what #10819 is about.


fix(deps): update gomod

This PR contains the following updates:

Package
Type
Update
Change

github.com/IBM/platform-services-go-sdk
require
minor
v0.59.3 -> v0.60.0

github.com/go-openapi/errors
require
patch
v0.21.0 -> v0.21.1

github.com/go-openapi/strfmt
require
patch
v0.22.1 -> v0.22.2

golang.org/x/crypto
require
minor
v0.20.0 -> v0.21.0

Release Notes

IBM/platform-services-go-sdk (github.com/IBM/platform-services-go-sdk)
v0.60.0
Compare Source
Features

Context-Based Restrictions: add Service Ref Target (#306) (6cefbb1)

go-openapi/errors (github.com/go-openapi/errors)
v0.21.1
Compare Source

go-openapi/strfmt (github.com/go-openapi/strfmt)
v0.22.2
Compare Source

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.

/run pipeline

:tada: This PR is included in version 1.29.6 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Fix Add IdentityUser POCO Navigation Properties sample

From @postb99 on December 17, 2017 21:49
Please fix the "Add IdentityUser POCO Navigation Properties" example code on this page register entities: in my case I have derivated types for IdentityUser, IdentityRole, IdentityUserRole, IdentityUserToken, IdentityUserLogin (they have int primary/foreign  key), with "long" naming of navigation properties (User has a navigation property named "UserRoles" instead of "Roles"...)
Then my user has UserRoles, UserTokens, UserLogins navigation properties, my Role has UserRoles navigation property.
I end up with correct initial migration with these mapping declarations: in addition to the example code, I declare the one to many relationship from Role to UserRole, so that "RoleId1" column isn't created.
modelBuilder_.Entity<User>().HasMany(e => e.UserRoles).WithOne().HasForeignKey(e => e.UserId).IsRequired().OnDelete(DeleteBehavior.Cascade);
modelBuilder_.Entity<User>().HasMany(e => e.UserRoles).WithOne().HasForeignKey(e => e.RoleId).IsRequired().OnDelete(DeleteBehavior.Cascade);
modelBuilder_.Entity<Role>().HasMany(e => e.UserRoles).WithOne().HasForeignKey(e => e.RoleId).IsRequired().OnDelete(DeleteBehavior.Cascade);
modelBuilder_.Entity<User>().HasMany(e => e.UserLogins).WithOne().HasForeignKey(e => e.UserId).IsRequired().OnDelete(DeleteBehavior.Cascade);
modelBuilder_.Entity<User>().HasMany(e => e.UserTokens).WithOne().HasForeignKey(e => e.UserId).IsRequired().OnDelete(DeleteBehavior.Cascade);

Copied from original issue: aspnet/Identity#1533

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

ID: 1f4b263b-e8f9-8b44-8c13-5bc0128fb1c9
Version Independent ID: 985774b6-a165-f22c-c354-6c12a6783063
Content: Migrate authentication and Identity to ASP.NET Core 2.0
Content Source: aspnetcore/migration/1x-to-2x/identity-2x.md
Product: aspnet-core
Technology: aspnetcore-migration
GitHub Login: @Rick-Anderson
Microsoft Alias: scaddie

After afterthought, the correct indication would be that the entity mapping should be explicitly redefined for every entity that references the "TKey" column, either as a PK or as a FK. It wasn't obvious for me at first sight, being a learner. Thanks.

@postb99  any chance you could help out with the PR?

Yes, you're right,I can handle it.
Le 19 déc. 2017 05:55, "Rick Anderson"<EMAIL_ADDRESS>a écrit :

@postb99 https://github.com/postb99 any chance you could help out with
the PR?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/aspnet/Docs/issues/5028#issuecomment-352639661, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAKl_Yal2jiPQ6wqiIJKSjiLb-jhDHe7ks5tB0HFgaJpZM4RF5Zu
.

@scottaddie It's on my list to get to this. Is it critical this is done now?

@ajcvickers We do consider this critical. This is a high-traffic document, and several customers have commented on this particular code snippet.

@ajcvickers I think in the next week would be OK.

@Rick-Anderson @scottaddie That's going to require some significant re-shuffling of priorities, since I need to spend significant time getting up to speed learning this area before I will be able to make any meaningful comments. Even if I start now, I don't know I will have anything concrete by next week.

I think we can wait a month - will that work?

@HaoK  would you be able to consult? @blowdart  who else could help?

@Rick-Anderson A month makes it easier.

For navigation properties, i'm basically a more inefficient route to @ajcvickers :)

@ajcvickers Revisiting this issue, as customers continue to ask about it. Any updates to provide?

@Rick-Anderson Closing down 2.1 is currently the priority, so it depends how that goes. Identity/docs issues are currently next on my list, although VS/NuGet issues could end up bumping this.

@ajcvickers  scheduling for end of Q3

@Rick-Anderson My intention was that you could update this taking the bits you want from the most comprehensive document that I created. Do you want me to do that part also?

@scottaddie can you do this? Ping @ajcvickers if you run into problems.

No hits on Migrate authentication and Identity to ASP.NET Core 2.0 in 3 years as it migration to 2.0  so closing.


Duplicate field / Duplicate typename - With Vite/SvelteKit

Hey
Im running into issues with vite/sveltekit when i save a resolver file, i think because of some module caching in vite, idk the exact reason.
I managed to work around the Error: Duplicate typename: Another type with name LoginInput already exists. by
if (import.meta.env.DEV) {
   builder.configStore.typeConfigs.clear();
}

But then the next error was Error: Duplicate field definition for field email in LoginInput.
I don't know if maybe exposing a way to clear the configStore would be enough.
I can't really use giraphql without restarting the dev server which is not very productive.

This kinda makes sense.  I think what I could do is provide a setting that allows re-defining fields and types for use with module reloading.  The builder is stateful, which means its not ideal for module reloading.  If there is a way to always re-load a specific file on change reloading the file that defines the schema builder should work.  I'll see if there is an easy fix later today or tomorrow.

The current Implementation of esm seems to be slightly wrong. It's working fine with vite in dev. But node still tries to import the cjs version. I think because of a missing export map in package.json. we would also need to add a package.json with type module in each esm folder. But this doesn't solve all problems because with type module every import must include the file extension e.g. import Baz from './baz.js'. I tried to make a pr to resolve those issues but we would need to edit every file accordingly or add a post build script/bundler which automatically adds them. I can still workaround it with the solution provided above but my array gets bigger and bigger and the ssr from vite is subject to change.

I think the way to handle this correctly is to use .js imports in the source typescript files.  This feels weird to me, but does seem to be supported.  Would need to update eslint to enforce this, and update the deno script to handle it correctly too.  Then we just need an exports block in package.json

Ahhh well that's a bit weird yes but seems more correct, didn't know that it's supported.

started working on this yesterday. Haven't really tested it yet https://github.com/hayes/giraphql/pull/122

amazing! i can easily test it if you like to publish a alpha or something

added preview versions.  I am trying out new snapshot releases using changesets.  Haven't really used them before, so not sure if there are issues with the 0.0.0 version that get used.  Versions are in the PR if you want to try them out.  I probably won't have time to get this properly tested until later in the weekend


Apply Google Java Style Guide and improve Static Analysis

Clean up code as per Google Java Style Guide and enforce it with Gradle and Maven plugins.
Add JaCoCo and SpotBugs to Gradle build.
Integrate with Sonarcloud.
Long overdue!

Done.


Can't run the example script

Hello, I am not able to run Bark locally because it gets stuck at the "preload_models()" step.
Here is the error it gives me, I have upgraded my huggingface but I still get the same error. Could you tell me why
TLDR: error: TypeError: hf_hub_download() got an unexpected keyword argument 'local_dir'
Full log:
TypeError                                 Traceback (most recent call last)
Cell In[17], line 5
2 from IPython.display import Audio
4 # download and load all models
----> 5 preload_models()
7 # generate audio from text
8 text_prompt = """
9      Hello, my name is Suno. And, uh — and I like pizza. [laughs]
10      But I also have other interests such as playing tic tac toe.
11 """
File E:\BARK\bark\bark\generation.py:341, in preload_models(text_use_gpu, text_use_small, coarse_use_gpu, coarse_use_small, fine_use_gpu, fine_use_small, codec_use_gpu, force_reload)
337 if _grab_best_device() == "cpu" and (
338     text_use_gpu or coarse_use_gpu or fine_use_gpu or codec_use_gpu
339 ):
340     logger.warning("No GPU being used. Careful, inference might be very slow!")
--> 341 _ = load_model(
342     model_type="text", use_gpu=text_use_gpu, use_small=text_use_small, force_reload=force_reload
343 )
344 _ = load_model(
345     model_type="coarse",
346     use_gpu=coarse_use_gpu,
347     use_small=coarse_use_small,
348     force_reload=force_reload,
349 )
350 _ = load_model(
351     model_type="fine", use_gpu=fine_use_gpu, use_small=fine_use_small, force_reload=force_reload
352 )
File E:\BARK\bark\bark\generation.py:298, in load_model(use_gpu, use_small, force_reload, model_type)
296     ckpt_path = _get_ckpt_path(model_type, use_small=use_small)
297     clean_models(model_key=model_key)
--> 298     model = _load_model_f(ckpt_path, device)
299     models[model_key] = model
300 if model_type == "text":
File E:\BARK\bark\bark\generation.py:234, in _load_model(ckpt_path, device, use_small, model_type)
232 if not os.path.exists(ckpt_path):
233     logger.info(f"{model_type} model not found, downloading into {CACHE_DIR}.")
--> 234     _download(model_info["repo_id"], model_info["file_name"], ckpt_path)
235 checkpoint = torch.load(ckpt_path, map_location=device)
236 # this is a hack
File E:\BARK\bark\bark\generation.py:168, in _download(from_hf_path, file_name, to_local_path)
166 os.makedirs(CACHE_DIR, exist_ok=True)
167 destination_file_name = to_local_path.split("/")[-1]
--> 168 hf_hub_download(repo_id=from_hf_path, filename=file_name, local_dir=CACHE_DIR)
169 os.replace(os.path.join(CACHE_DIR, file_name), to_local_path)
File ~\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\utils_validators.py:124, in validate_hf_hub_args.._inner_fn(*args, **kwargs)
119 if check_use_auth_token:
120     kwargs = smoothly_deprecate_use_auth_token(
121         fn_name=fn.name, has_token=has_token, kwargs=kwargs
122     )
--> 124 return fn(*args, **kwargs)
TypeError: hf_hub_download() got an unexpected keyword argument 'local_dir'

Thanks in advance

Hey hey! @Niutonian - It appears you are running an older version of huggingface_hub
Can you try running pip install --upgrade hugging face_hub that should ideally fix this issue :)

Hello @Vaibhavs10 , thanks a lot for helping me,
I did the update of hugging face and it seems to have fixed the issue, the models are now downloading and the audio is playing,
+1 to you


Documentation Typo for average_odds_difference()

Hi AIF360 team,
Thank you for the excellent repo & superb documentation!
I believe there is a typo for both:
https://aif360.readthedocs.io/en/latest/modules/metrics.html#aif360.metrics.ClassificationMetric.average_odds_difference
https://aif360.readthedocs.io/en/latest/modules/metrics.html#aif360.metrics.ClassificationMetric.average_abs_odds_difference
The implementation correctly returns
1/2[(FPRD=unprivileged−FPRD=privileged)+(TPRD=unprivileged - TPRD=privileged))]
vs the stated
1/2[(FPRD=unprivileged−FPRD=privileged)+(TPRD=privileged - TPRD=unprivileged))]

It looks like the docstring is fixed in the code but readthedocs is showing an older version for some reason. I'll investigate.

Should be fixed on readthedocs now. Thanks for pointing it out!


"もし。。。そうしたら。。。Else ステートメント" needs to be replaced with "If...Then...Else ステートメント"

https://docs.microsoft.com/ja-jp/office/vba/language/reference/user-interface-help/ifthenelse-statement

@Soran-M There are several issues in VBA-Docs that loc should address. I'll assign them to you now to investigate. Thanks.

Working on a fix (Bug 3272654)

@hyoshioka0128 Article has been HumanTranslated and published live. The issue is fixed


Not work Mac Os 10.14.2 vscode 1.31.0

hello
You extension not work Mac Os 10.14.2 vscode 1.31.0.
error: ENOENT: no such file or directory, open 'undefined/package.json'

Hi @prostodeb.
You're receiving this error because you're trying to use the extension without a project. The extension is intended to be used with a project that requires the Proposed API. I added a few error messages to express a little bit better this extension.


Partial document being fetched from firestore

Description
While fetching document from firestore using getDocument smaller documents are read fine but when the document size is bit large complete JSON is not returned from fdao.payload() on ESP32D. Appreciate the help!
To Reproduce
void getDoc() {
if (Firebase.ready()){
String documentPath = "devices/device1";
if (Firebase.Firestore.getDocument(&fbdo, FIREBASE_PROJECT_ID, "", documentPath.c_str(), "")) {
Serial.print("Expected payload size ");
Serial.println(fbdo.payloadLength());
Serial.print("Actual payload size ");
Serial.println(strlen(fbdo.payload().c_str()));
Serial.printf("ok\n%s\n\n", fbdo.payload().c_str());
Serial.println("End of payload");
} else
Serial.println(fbdo.errorReason());
}
}
Expected behavior
02:10:15.642 -> Expected payload size 3715
02:10:15.642 -> Actual payload size 2039
Screenshots

IDE and its version:

Arduino - 1.8.15, PlatformIO - Ubuntu 20
Library - 3.3.5

ESP32 Arduino Core SDK version

v4.4-beta1-189-ga79dc75f0a

You should increase the response size limit, by calling fbdo.setResponseSize.

@mobizt wonderful, works like a charm. Thanks for the timely response!


Combining data loader and inference with new dictionary data model for SMILES strings and inference predictions

A few notes:

Change this line to turn on debugging
The loop over keys for inference is currently hard coded to 2 keys per process to make the workflow finish in a reasonable time. Performing inference on all keys on a few nodes takes a while.

I'll clean up the conflicts, but this should be good to merge after that.


Update Documentation and add missing points to readme

@mananwason @mariobehling This fixes #546
Please review and merge

Current coverage is 11.53% (diff: 100%)

No coverage report found for development at 7f6fcd6.

Powered by Codecov. Last update 7f6fcd6...0322c6b

@mananwason please merge this.


endpoint: Skip compilation if unneeded

When the periodic IPCache garbage collector replaces the LPM map on
kernels 4.11-4.14, it only requires a datapath reload and not a complete
recompilation. Skip compilation in this case.

This change is

test-me-please

test-me-please

Is there spot where we check for kernel version? This PR makes the behaviour when bpfHeaderfilesChanged ==true reload irrespective of kernel version. Perhaps this is ok anyway?

@raybejjani I guess it's not possible to change the kernel without restarting Cilium container?

@aanm yes, but that's not what I meant. The PR message implied that this behaviour is specific to kernels 4.11-4.14 but we don't change how bpfHeaderfilesChanged is set, and it seems to control this difference now. If we start on a 4.9 kernel, is anything actually different?

@raybejjani Sorry, I should have linked https://github.com/cilium/cilium/pull/5303 for context. It sets regenContext.ReloadDatapath to true based on the detection of those kernels (or, more specifically, the lack of support for the delete operation on LPM maps).

@aanm Are you good with this change?

@joestringer no worries! I'm not sure how I missed that :/ it was merged a while back. Thanks :)


SelectWidget is lacking placeholder

Prerequisites

[X] I have read the documentation;
[ ] In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.
[ ] Ideally, I'm providing a sample JSFiddle or a shared playground link demonstrating the issue.

Description
The core package uses placeholder as one of the options[1]. This option was not included in the mui theme [2](Find in page "placeholder"), and consequently was also not included in this theme.
[1] https://github.com/rjsf-team/react-jsonschema-form/blob/master/packages/core/src/components/widgets/SelectWidget.js#L94-L96
[2] https://github.com/rjsf-team/react-jsonschema-form/blob/master/packages/material-ui/src/SelectWidget/SelectWidget.tsx

Fixed


BGPv2: introducing BGP operator

This change introduces the BGP control plane operator.  Please review individual commit description for more details on each change.
CFP
Previous API PR
This change introduces the BGP control-plane operator.

/test

/test

/test

/test

/test

Hi @sayboras whenever you get a chance, can you please review helm changes.

/test

All approvals are in and tests passing - adding ready to merge label.

Waiting to get this one in first https://github.com/cilium/cilium/pull/30337

/test


Create taxRegister.sql

To optimize the performance and efficiency of the TaxRegister stored procedure by migrating the processing tasks to PySpark.

merge completed


Refactor generator phase to work with RPC logic

Modifies Manager to work with the RPC format of Autorest.

PR looks good. it works on my machine.


Update virtual-network-public-ip-address.md

@anavinahar : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


[WIP] Nuage Network Provider Added

Added Nuage Network Provider as an EMS Provider.
Also added a VSD client that can communicate with Nuage VSD.
In addition to that, included implementation to get subnet information from VSD using the VSD Client.
**Work in Progress: **
Save the subnet information in ManageIQ database.

PR 9582 takes care of these changes