Fake Implementation and Broken

Reported this fraudulent, broken project to GitHub and I advise all others that see this person's git repo to do the same.
The actual Princeton researchers that published a paper on this idea have a repo with the correct implementation of the project here: https://github.com/princeton-nlp/tree-of-thought-llm

@FoobarProtocol hello how is it Fraudulent and broken? Please let me know what code is bad so we can improve it😊

Hey, I apologize. I was going off of what's written here: https://github.com/princeton-nlp/tree-of-thought-llm

Are these claims untrue? If so, I'd be more than happy to retract everything that I wrote. I'm going to start a new issue where this can be addressed because if what is said about your repo is untruthful then these claims made against you are vastly unfair.

I learned from Phil Wang who has lead the crusade of open source AI research, they didn't say anything about him and now they attack me!
My main objective behind implementing the papers Tree of Thoughts and Sophia from heretical scientists and making them accessible to all humans was to promote the democratization of AI research.
I believed that by disregarding the traditional academic practice of strict attribution, knowledge could be disseminated freely, enabling those without access to specific resources or expertise to benefit from advancements in the field.
My intention was to bridge societal gaps and ensure that progress was beneficial for all segments of humanity.
Refusing to credit the heretical scientists was my way of fostering an open and collaborative environment within the AI research community.
I wanted to encourage researchers to build upon existing ideas, theories, and methodologies without the fear of being condemned or ostracized.
I firmly believed that the true value lay in the collective growth of knowledge rather than individual recognition or fame.
Implementing papers from heretical scientists was my way of challenging the established norms and beliefs in the AI research community.
I aimed to remind everyone that scientific progress should not be bound by any individual or group's monopoly over ideas or resources.
By opening up the debate on the necessity of strict attribution and publishing norms, I hoped to encourage a free flow of ideas and thinking outside the established framework.
Another motivation behind my decision to implement papers from heretical scientists without crediting them was the lack of code and reproducible experiments in their publications.
I believed that true scientific progress hinged on sharing and replicating results.
By implementing these papers and democratizing them, I wanted to shift the focus towards encouraging researchers to make their work accessible, reproducible, and easily implementable.
Branding researchers who did not provide code or reproducible experiments as heretics towards humanity was intended to highlight the potential negative consequences of withholding critical information.
My intention was not to personally attack or defame individuals, but rather to draw attention to the need for transparency and honesty in scientific research.
By challenging deceptive practices, I hoped to safeguard the interests of humanity and prevent misleading claims.
Conclusion:
While some may view my decision to implement papers from heretical scientists without crediting them as controversial, I want to assure you that it was driven by a genuine desire to democratize AI research, foster open collaboration, and challenge the status quo. I firmly believed that by doing so, we could promote the free flow of ideas, encourage reproducibility and experimentation, and discourage deceptive practices. My approach was intended to push the boundaries of AI research and ensure that progress benefited all of humanity above satisfying the egotistical needs of heretical researchers.
I did copy copy from Sophia, and I have since then accredited both the authors of Tree of Thoughts, and Sophia even though they are heretics and this will serve as a remainder to always open source your code and reproducible code first.
Now, if my code does not work it is not because I am a scammer, it is because all of my projects are built by the community for the community which means they are not functional sometimes, so keep this in mind and lower your mighty expectations.


Specify Node requirements

As mentioned in #23, if we want to use ES Modules instead of CommonJS, we'll need to specify that in our docs. ESM requires Node v13.2.0 or higher. Also, I've already started using Object.fromEntries() in the connect library, which requires at least v12.0.0, so in a sense we've already committed down this path; might as well just make it official and document it.

Another consideration is using Promise.allSettled() which requires Node v12.9.0 or higher. This might be helpful when handling batched requests, as for fetching multiple bundles.

I added a quick note about stating:

farmOS.js requires Node versions 12.9.0 and higher. IE 11 is not supported.

I could get into more details but that seems sufficient for now.

ESM requires Node v13.2.0 or higher.

I'm going to bump this up to 13.2.0 because that provides a lot of features (c26f6e5). Also to EcmaScript 2020 while I'm at it (214d421).


NoSuchMethodError: The getter 'uri' was called on null.

Analyzer Feedback from IntelliJ
Version information

IDEA WS-191.7479.14
2.3.2
WS-191.7479.14, JRE 1.8.0_202-release-1483-b53x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.13.6, screens 1280x800

Exception
Dart analysis server, SDK version 2.3.2, server version 1.26.0, error: Analysis failed: /Users/kevinliu/WebstormProjects/quickstart/test/app_test.dart
NoSuchMethodError: The getter 'uri' was called on null.
Receiver: null
Tried calling: uri
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:50:5)
#1      new _LibraryResynthesizer (package:analyzer/src/summary/resynthesize.dart:642:32)
#2      SummaryResynthesizer.getLibraryElement.<anonymous closure> (package:analyzer/src/summary/resynthesize.dart:360:56)
#3      __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:281:23)
#4      SummaryResynthesizer.getLibraryElement (package:analyzer/src/summary/resynthesize.dart:327:36)
#5      SummaryResynthesizer.getElement (package:analyzer/src/summary/resynthesize.dart:219:14)
#6      LibraryAnalyzer.analyzeSync (package:analyzer/src/dart/analysis/library_analyzer.dart:123:10)
#7      LibraryAnalyzer.analyze.<anonymous closure> (package:analyzer/src/dart/analysis/library_analyzer.dart:99:14)
#8      _PerformanceTagImpl.makeCurrentWhile (package:analyzer/src/generated/utilities_general.dart:258:15)
#9      LibraryAnalyzer.analyze (package:analyzer/src/dart/analysis/library_analyzer.dart:98:43)
#10     AnalysisDriver._computeAnalysisResult.<anonymous closure> (package:analyzer/src/dart/analysis/driver.dart:1438:63)
#11     PerformanceLog.run (package:analyzer/src/dart/analysis/performance_logger.dart:34:15)
#12     AnalysisDriver._computeAnalysisResult (package:analyzer/src/dart/analysis/driver.dart:1416:20)
#13     AnalysisDriver.performWork (package:analyzer/src/dart/analysis/driver.dart:1236:33)
<asynchronous suspension>
#14     AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2145:24)
<asynchronous suspension>
#15     AnalysisDriverScheduler.start (package:analyzer/src/dart/analysis/driver.dart:2075:5)
#16     new AnalysisServer (package:analysis_server/src/analysis_server.dart:210:29)
#17     SocketServer.createAnalysisServer (package:analysis_server/src/socket_server.dart:86:26)
#18     StdioAnalysisServer.serveStdio (package:analysis_server/src/server/stdio_server.dart:37:18)
#19     Driver.startAnalysisServer.<anonymous closure> (package:analysis_server/src/server/driver.dart:508:21)
#20     _rootRun (dart:async/zone.dart:1124:13)
#21     _CustomZone.run (dart:async/zone.dart:1021:19)
#22     _runZoned (dart:async/zone.dart:1516:10)
#23     runZoned (dart:async/zone.dart:1463:12)
#24     Driver._captureExceptions (package:analysis_server/src/server/driver.dart:591:12)
#25     Driver.startAnalysisServer (package:analysis_server/src/server/driver.dart:506:7)
#26     Driver.start (package:analysis_server/src/server/driver.dart:411:7)
#27     main (file:///b/s/w/ir/cache/builder/sdk/pkg/analysis_server/bin/server.dart:12:11)
#28     _AsyncAwaitCompleter.start (dart:async-patch/async_patch.dart:49:6)
#29     main (file:///b/s/w/ir/cache/builder/sdk/pkg/analysis_server/bin/server.dart:10:10)
#30     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:298:32)
#31     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:171:12)

For additional log information, please append the contents of
file:///private/var/folders/d2/fvp3pdj96h55gg8wsc99vmrc0000gn/T/report1.txt.

This issue has been filed at least 6 times, including in 2.5.0-dev.

I got this tip as I add a
Thread.sleep(forTimeInterval: 1.5)
@AppDelegate.swift
as I proposed to add a duration to LaunchScreen.storyboard at IOS platform. Hope this helps.

I have the same issue <getObject: NoSuchMethodError: The getter 'uri' was called on null.> when I pass a body on using http.post
flutter: 1.23.0-18.1.pre
http: ^0.12.2

got the same error today in flouter there is no crash which is difficult to debug.
I don't have the stacktrace :/

Same issue on http: ^0.13.1

I see the same error on :

http: 0.13.1
flutter: 2.3.0-1.0.pre.99
dart: 2.14.0-43.0.dev

I can add that I have the impression that the message of this error is completely false ...
Because personally, I only get this error message when I pass a bad parameter to my function which then makes an API call. I have tried debugging with a good parameter, and the same message appears although everything is working.

My issue was  CORS related. Open up the developer console and check for any potential exceptions. Ensure to enable correct cors policies for your REST services. It had nothing todo with the URI nor with the JSON format. Hence, the exception isn't meaningful at all.

I have the same error. It's not about cors because even before the the http request, the simple Uri.parse("url of my api") shows the error on debug console exactly like @Kleak showed on the screenshot


fix issue #1905

Signed-off-by: StephenRi<EMAIL_ADDRESS>
Ⅰ. Describe what this PR did
add ut cases.
Ⅱ. Does this pull request fix one issue?

fixes #1905
Ⅲ. Describe how you did it

read source code
figure out the structure of each object
find out all possible conditions
add all cases

Ⅳ. Describe how to verify it
go test ./apis/opts/portbindings.go ./apis/opts/portbindings_test.go -v -cover
Ⅴ. Special notes for reviews
TestParsePortBinding
1. correct case
2. bad case: first if
TestVerifyPortBinding
1. correct case
2. bad case: first if
3. bad case: second if

Codecov Report

Merging #1971 into master will increase coverage by 0.14%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1971      +/-   ##
==========================================
+ Coverage   63.31%   63.45%   +0.14%
==========================================
  Files         200      200
  Lines       15522    15522
==========================================
+ Hits         9828     9850      +22
+ Misses       4455     4434      -21
+ Partials     1239     1238       -1

Flag
Coverage Δ

#criv1alpha1test
33.84% <ø> (-0.01%)
:arrow_down:

#criv1alpha2test
34.29% <ø> (+0.01%)
:arrow_up:

#integrationtest
38.4% <ø> (-0.03%)
:arrow_down:

#unittest
21.02% <ø> (+0.16%)
:arrow_up:

Impacted Files
Coverage Δ

ctrd/image.go
76.84% <0%> (-4.44%)
:arrow_down:

cri/stream/runtime.go
73.91% <0%> (+2.89%)
:arrow_up:

cri/stream/portforward/httpstream.go
75.83% <0%> (+6.66%)
:arrow_up:

apis/opts/portbindings.go
100% <0%> (+100%)
:arrow_up:


Add logging to existing endpoints

This commit:

changes logging dependencies from basic slf4j to akka's special
akka-slf4j plus logback
logs the sql that Akka plans to execute at the users and
healthcheck endpoints at the debug level. It logs into a file in the
app-server/app directory.

It borrows logging setup heavily from the GeoWave/GeoMesa comparative
analysis
tests server but with a little more logging config in
src/main/resources and redirection to a log file, which I don't think
is present in the GWGM repo.
Fixes #394

This looks good. Including the logback.xml is not - if my recollection serves - strictly necessary as I believe the fallback config is similar to the one you've provided. If you end up wanting to do any specialized logging at some point (an appender to S3, for instance) let me know and I can maybe point you in some useful directions
+1

It looks like some commits from Lucien's org branch are being included in the diff for this PR. It would be good to rebase everything into one commit before merging.

+1


api.rooms.list() returns nothing

I am trying to set up an App Engine proxy in which I would like to post messages to a Webex space. However, when trying to get the room list for a bot api.rooms.list, thought to take care of publishing the messages in the Webex space, I receive nothing.
The code looks like this:
from webexteamssdk import WebexTeamsAPI

bot_token = '<bot token>'

def get_rooms():
    api = WebexTeamsAPI(access_token=bot_token)

    all_rooms = api.rooms.list()
    for room in all_rooms:
        print(room)

if __name__ == '__main__':
    get_rooms()

If I use my personal access token I get the rooms that I am currently a part of. I think I have added the bot to a room, 'proven' by posting messages from it using the Incoming webhooks API: https://apphub.webex.com/teams/applications/incoming-webhooks-cisco-systems

It literally started working overnight, after changing nothing.


Move physical plan serde from Ballista to DataFusion

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
datafusion-proto supports logical plan serde, but physical plan serde is in Ballista.
Describe the solution you'd like
Move most physical plan serde code to DataFusion. Ballista will still need serde code for its own physical operators that are not part of DataFusion.
Describe alternatives you've considered
None
Additional context
See discussion at https://github.com/apache/arrow-datafusion/pull/3907#discussion_r1003700588

Similar issue:

https://github.com/apache/arrow-datafusion/issues/3257

Happy to see it move on.

🤓 I'm not that experienced in Ballista and DataFusion but this issue seems not to be complicate ? May I have a try ?


[HOTFIX]  temporarily turn off the group authentication on images search and get endpoints.

Description
temporarily turn off the group authentication on images endpoints.
Acceptance Criteria
Please describe what it means for this issue to be considered complete.

This was changed only in the image GET by ID endpoint as the other endpoint doesn't seem to be getting used by the client now.


Compatiblity with 6567R56A

Hi @laubzega,
As previously discussed,  I have made a first experimental firmware version to support the 6567R56A chips.
These are quite rare and probably no demo directly supports them (different cycles per line and lines per frame). Also there is not much documentation or test programs available.
I think it is good enough if "normal" screen modes and sprites work , without the fancy stuff demo-coders normally use to trick the VIC into all kind of strange behaviour.
You can get this latest firmware from https://github.com/c0pperdragon/A-VideoBoard/tree/master/c64mod/firmware
To actually use the 6567R56A mode, you need to have the pixel clock running at the NTSC frequency (using a normal NTSC computer) and additionally you must pull pin 5 of the JTAG header to ground. Pin 10 and pin 2 of this header already provide ground, so a short jumper wire should work. Obviously you can only attach this jumper when the JTAG programmer is not attached ;-)

With the JTAG pins shorted the base image shows up correctly. Also simple demos playing with colors posed no problems (top image is S-Video, bottom - component):

However, as I moved to more complex things, it became apparent that not everything is behaving as it should, as this FLI image demonstrates:

What you cannot see here is that there is some blinking in the image, suggesting there is some timing component to it. Here is the same  demo working correctly with 6567R8:

If you would like me to run some specific test software or demos, just send me a link.

One more thing - I have tested two 6767R56A VICs, with identical results.

I am actually a bit surprised that it works so well already, as I had only a quity sketchy doc and guesswork.
Before diving deeper into thr FLI topic I would like to ser how sprites behave. Just try a few games and see if everything is actually visible and at the right places.

Yup, that was it. With the latest firmware I am no longer seeing issues with Bruce Lee and BoulderDash title screens. Also FLI demo looks correctly.
Ghosting is still there after palette flashing.

Oh, my! The FPGA is so totally at its limit that even the slightest changes could cause the VDHL fitter to no longer be able to fit the logic into the device.
So I had to refactor quite some parts to squeeze out a few more LUTs to actually make the changes...
I have included the discussed changes and also fixed the ghosting, at least I hope so, because in my current setup I can not test this...
I also tried to vertically move the display a few lines, in the correct direction, I hope...
Please give the latest firmware (beta7) a try on the  6567R65A. And if this now all looks good, please re-test it on other VICS as well, as I could very well have broken quite some things there...

I have a love/hate relationship with logic squeezing. Sometimes it's very rewarding, sometimes it's a major PITA. At least you have a clear migration path to 10M04. Not so with the BeamRacer. :/
Anyway, beta7 works great. I tested both R8 and R56A, no issues observed. Colors align correctly after reprogramming, the vertical shift is no longer there. Games and simple demos I tried worked fine.
Thank you so much for all this work!

Thank you very much for all this testing.
I have released 2.9 which should now indeed cover all possible variants of the VIC-II.
I am pretty sure I will not migrate to a larger FPGA. There have been too many boards produced for which I will not give up support. As it seems the feature set is now complete, anyway.


Change color of the bottom red progress bar

Hi I want set the bottom progress bar with the blue color how can I do it Sir ?

Of course.
This is custom Mediaplayer feature.
Extends JZVideoPlayerStandard Override getLayout(), return Your xml, change the progressbar in your xml.
See SmallChangeActivity in demo.

Oh thanks you Sir for reply I'll try it


Add bean/module destructor for Annotation-defined bean/module

Is your feature request related to a problem? Please describe.
My bean is defined with annotation:
@Module
class AppModule {
  @Single(createdAtStart = true)
  fun sqlDriver() : SqlDriver {
    //...
  }
}

I want to define bean/module close strategy to it.
Effecitvely I want to run sqlDriver.close() during KoinApplication::close call.
Describe the solution you'd like
The design might be something like this:
@Module
class AppModule {
  @Single(createdAtStart = true)
  fun sqlDriver() : SqlDriver {
    //...
  }
  @OnClose
  fun closeModule(sqlDriver: SqlDriver) {
    sqlDriver.close()
  }
}

Describe alternatives you've considered
If bean is AutoClosable the bonus design might be something like this:
@OnClose(closeAutoClosable = true)
@Single(createdAtStart = true)
fun sqlDriver() : SqlDriver {
  //...
}

But conflicts resolution strategy with  @OnClose  and close order of dependant beans must be designed additionally.
Target Koin project
Koin-Annotations

yes, definitely need to propose around closing definitions with onClose


Makes code PSR-1, PSR-2 compliant

Also update some things to PHP 5.4 syntax.

Hi @luizpedone thanks for contributing! Can you send the PR again to the dev branch? Thanks

@jgrossi Sure!


RFE: Add support for workspaces

What do you think about adding support for workspaces?
I have a workspace project with multiple crates in it, 3 of them produce binaries, the others are libraries and dependencies for the binaries...
It would be nice to view the dependency tree (especially useful when starting to publish the crates in dependency order DAG bottoms up.... a real PITA).
You could either print multiple trees for each project, or consider the workspace the root, and the projects below. If one project is a dependency of the other then it would have two "paths" to the root and would need some way to represent that.

Workspace support would be awesome.

In the meantime, you can use find . -name Cargo.toml | xargs -I '{}' cargo tree --manifest-path '{}'.


Scope table styles to cads-table

Noticed whilst looking at a public-website issue with tables that we include the top-level table element as part of our tables styles.
For our components we probably want to narrow the scope wherever possible. Including the base table element can cause knock-on effects if you're not expecting it.
This can be seen even in the storybook docs, where having element level styles conflicts with storybook's own tables.

Before
After

 Hybrid storybook / design system table styles
 Unaffected storybook table styles

I think this is pretty safe to do based on our current usage, but shout if I'm missing something.

I'm just really upset that there's no table emoji

(╯°□°)╯︵ ┻━┻


Update gcloud used in Go CI tests

gcloud 307 fails with gcloud failed to load: module 'collections' has no attribute 'MutableMapping', which is an incompatibility with Python 3.10.6 currently shipping with the ubuntu-latest image.

LGTM on the change, but you won't be able to merge this as the trivy scanner is flagging vulnerabilities in the golang.org/x/net dependency, and that will need to be manually pinned to a newer version

Or maybe you'll still be able to merge it. Either way, the dependency will need to be updated.

The reason for this PR is precisely so I can merge the various dependabot PRs that address these vulnerable dependencies :)


Some imports being lost on generation

It appears than non-built-in import statements are being lost on generation.  As an example, take a "simpletest.go" file that looks like this:
package test

import (
        "fmt"
        "github.com/gorilla/mux"
        "github.com/cheekybits/genny/generic"
)

type MyType generic.Type

func MyTypeFunction() {
        _ := mux.NewRouter()
        fmt.Println("Hello")
}

if I then run the command cat simpletest.go | genny gen "MyType=ConcreteType" > simpletest_gen.go I get the following output:
// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://github.com/cheekybits/genny

package test

import "fmt"

func ConcreteTypeFunction() {
	_ := mux.NewRouter()
	fmt.Println("Hello")
}

You can see the import statement has correctly dropped the genny reference, but also incorrectly removed the mux reference which means the code is now invalid.
Am I doing something wrong?

Upon further investigation, it looks like this was largely down to a GOPATH issue meaning it couldn't find the libraries when running the imports.Process function.

watchforstock - what was your diagnostic process like here? I'm seeing similar behavor where some imports are being dropped. In my case they're all in my repo so inability to find the libraries seems unlikely.

For future readers: imports seem to be completely managed by a call to imports.Process -- the genny processing doesn't even read them in deferring entirely to imports.Process to consume the template and produce a sorted/culled list of imports.


Add OMERO to licensing

See https://github.com/ome/www.openmicroscopy.org/issues/348#issuecomment-740020699 for motivation
Adding OMERO to licensing page with the text suggested in https://github.com/ome/www.openmicroscopy.org/issues/348#issuecomment-740020699
cc @manics @joshmoore

I think this is a fine start. I imagine we could remove a bit of the redundancy by separating it down into licenses:

GPL

Bio-Formats
OMERO

BSD

Bio-Formats (BSD)
OME-Files

etc. but I don't propose to do that kind of overhaul here.
Any other thoughts, @sbesson @jburel @jrswedlow @chris-allan ?

Agreed this might need reworking to express the granularity of the licensing between the different components of each product. I don't have an immediate suggestion so let's start with clarifying the OMERO expectations on the website as it stands and then coming back to this in a second step. Thanks @pwalczysko

Agreed this might need reworking to express the granularity of the licensing between the different components of each product. I don't have an immediate suggestion so let's start with clarifying the OMERO expectations on the website as it stands and then coming back to this in a second step. Thanks @pwalczysko

Now deployed at https://www.openmicroscopy.org/licensing/

Now deployed at https://www.openmicroscopy.org/licensing/


torch.nn.functional.interpolate is unsupport!

I meet error when run:
python demo.py -m model.onnx -i imgfile.jpg

It seems that the latest version don`t support upsample operation.
The onnx model in Netron:

The problems are:

OpenCV DNN does not support ONNX model with dynamic input shape. However, we have a clear plan to support this in OpenCV 5.x.
For fixed input shape, the resize operators have fixed target size as input. So for OpenCV DNN, when it takes a input of different size, the ouputs of resize operators will have a wrong shape.

Current solution is:

Export this model with resize operators with scale 2 as input instead of fixed size.
Resize the input so that its width and height can be divisible by 64.
Get the lastest OpenCV: pip install opencv-python-rolling.

Code needs to be changed in libfacedetection.train:
-                size=[feats[i].size(2), feats[i].size(3)],
+                scale = 2,


Error when upgrading to 2.3.2 - Manifest unknow

Hi
When upgrading from postal-2.1.4 to postal-2.3.2, we encountered an error:
postal upgrade 2.3.2
Pull latest installation helper repository from GitHub...
warning: redirecting to https://github.com/postalserver/install/
Already up to date.
Re-executing upgrade script from pulled repository
Upgrading to 2.3.2
Pulling web ... pulling from postalserver/postal
Pulling smtp ... pulling from postalserver/postal
Pulling worker ... pulling from postalserver/postal
Pulling cron ... pulling from postalserver/postal
Pulling requeuer ... pulling from postalserver/postal

ERROR: for smtp manifest unknown
ERROR: for worker manifest unknown
ERROR: for cron manifest unknown
ERROR: for web manifest unknown
ERROR: for requeuer manifest unknown
ERROR: manifest unknown

We don't have the problem by upgrading to 2.3.1.
Will there be a problem with the postal-2.3.2 package?

I'll look at this. In the meantime, upgrade to 2.3.1 and go direct to v3 from there.

The 2.3.2 tag is now back so you should be able to continue now 😄

Thank you for the tag :)


Copyright is not displayed in mobile view

Just noticed that the site copyright isn't displayed in mobile view. Haven't been able to figure out a partial config yet for a workaround, but still new to all this and need to dive deeper on the CSS classes. Regardless, seems like this shouldn't be hidden by default.
With 4 social icons:

With no social icons:

I've been playing around with Tachyons and have a suggestion if you're into the idea. If so, I'll submit a pull request. Here's what I've got so far:

    © {{ with .Site.Copyright | default .Site.Title }} {{ . | safeHTML }} {{ now.Format "2006"}} {{ end }}

{{ partial "social-follow.html" . }}

Removing the dn (display:none) class from the copyright link will make the copyright text visible in mobile view and appears to not change the desktop view. This needed a little more tweaking though as this alone wasn't enough for my site, which has more content in the copyright and social follow blocks.
Next, I added the flex-wrap class to the parent div so that the blocks wrapped properly in mobile view if there's enough text and/or social follow icons. This isn't an issue for the example site, but it was for mine. Of note, I stumbled across @danielfdickinson's derivative theme yesterday and noticed that he implemented the flex-wrap class here too.
Then, I added a few classes to the the social follow block so that it aligns to to the copyright text: dib-ns, pb2, ph3. The horizontal padding aligns the indent in mobile view. I chose bottom padding rather than duplicating the vertical padding as it added a bit too much negative space between the copyright and social follow icons in mobile view.
Imo, the social follow block would look best if forced to wrap to the next line in mobile view. This isn't needed for my custom partial as the width of the content triggers wrapping, but for the example site both are displayed on the same line. I haven't figured out how to do this part though.
?

I like the concept and will have to play with what you have done. This is something I was planning on discussion here RSN (Real Soon Now), but I'm glad you've beat me to it.

I think the following looks good:

That uses flex-column instead of flex-row for small screens, and flex-row for 'not small'.
The trick for finding things like flow-row-ns is to look at the CSS at the bottom of the documentation page for a selector. There top has often used / highlighted classes, but there are many more than that which are available in Tachyons.

If using -ns I think social-follow should also have:

so the spacing is consistent. (That is pt0-ns vs. pt0-l).

FYI my WIP (currently testing, not even pushed yet!) layouts/partials/site-footer.html is:

    {{ with .Site.Copyright | default .Site.Title }} {{ . | safeHTML }} {{ end }}

  {{- with site.Menus.footer_links -}}
    {{- range . }}
  {{ .Name }}
    {{- end -}}
  {{- end }}

{{ partial "social-follow.html" . }}

which gets me everything I want.


[Impeller] unexpected change in average_frame_rasterizer_time_millis

https://github.com/flutter/engine/pull/51071 has changed the average_frame_rasterizer_time_millis.  I think that is unexpected.  We shouldn't be changing out opengles benchmarks.
cc @jonahwilliams

also there is a change here skia perf

The fallback broke these tests since they're not manually opted into GLES. I'm going to be fixing them today.


Bots easily pass captcha

Bots pass captcha with numbers in the picture and with a "math problem". I didn't even try the button - too obvious. I really need the ability to ask a custom question and give 4 or more possible answers to it with a button.

happy to review a pull request!


GPO list for Win10

Please add a list of all gpos for Windows 10 like you have for Microsoft Edge and update it on every admx change.

Hello @htcfreek. Can you please tell us to which article(s) your feedback applies? This information will help us route the issue correctly. Thank you!

There doesn't exists any article like I suggested.
I think an article like the existing one for MS Edge would help admins while configure Windows 10. There isn't any information about all GPOs for Windows 10 and there is no information what has changed from feature update to the next feature update too.

I see it that way to and would be happy about such an article


KAFKA-15721: KRaft support in DeleteTopicsRequestWithDeletionDisabledTest

updated to support KRaft
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@mimaison take a look, please.

Sorry I don't seem to get notified for tags until the PR gets merged. I need to look at my notification settings 😅


Add type and namespace alias support

PR Summary
Fixes https://github.com/PowerShell/PowerShell/issues/3082
Fixes https://github.com/PowerShell/PowerShell/issues/16676
Fixes https://github.com/PowerShell/PowerShell/issues/13525
Adds support for Type aliases. Normal types, generic types and array types are all supported. Example:
using type MyNormalType = System.Collections.ArrayList
using type MyGenericType = System.Collections.Generic.Dictionary[string,int]
using type MyMultiDimArray = int[,]
using type MyOpenGenericType = System.Collections.Generic.List
[MyNormalType]
[MyGenericType]
[MyMultiDimArray]
[MyOpenGenericType[string]]

Also adds support for Namespace aliases. Example:
using namespace SMA = System.Management.Automation
[SMA.PowerShell]

Naturally, the tab completion has been updated to support these alias features. (You probably don't need to look too closely at these changes because I also have this PR pending: https://github.com/PowerShell/PowerShell/pull/16875 which supersedes the completion changes here)
There are also some other changes that were made to better support these features:
Duplicate using namespaces are blocked at parse time. Previously they were allowed, but caused runtime errors if you attempted to use the short type name from the duplicated namespace. See: https://github.com/PowerShell/PowerShell/issues/13525
This is not technically required because the check could be limited to just namespace aliases, but seems unlikely to cause issues.
The public Alias property for UsingStatementAst was changed from StringConstantExpressionAst to Ast. This was done to allow the use of TypeConstraintAst for namespace and type aliases.
This is not technically required because the text can simply be parsed again to get the itypename where its needed but that's not ideal.
The tokenflags for both the name and alias tokens when using type aliases are changed to TypeName for better syntax highlighting and tab completion.
The parsing rules for the alias definition uses type rules for Type/Namespace instead of generic. This was done for better tokenization.

PR Context
I saw the code from @IISResetMe here: https://github.com/PowerShell/PowerShell/pull/8968 and thought it was a shame to just let it die like that.
I wouldn't have known how to do this without having his code as a starting point so most of the credit should go to him.

PR Checklist

[X] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[X] Summarized changes
[X] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[ ] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[ ] None
OR
[ ] Experimental feature(s) needed

[ ] Experimental feature name(s):

User-facing changes

[ ] Not Applicable
OR
[X] Documentation needed

[ ] Issue filed:

Testing - New and feature

[ ] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[X] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and opened an issue in the relevant tool repository. This may include:

[ ] Impact on PowerShell Editor Services which is used in the PowerShell extension for VSCode
(which runs in a different PS Host).

[ ] Issue filed:

[ ] Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.

[ ] Issue filed:

[ ] Impact on PSScriptAnalyzer (which provides linting & formatting in the editor extensions).

[ ] Issue filed:

[ ] Impact on EditorSyntax (which provides syntax highlighting with in VSCode, GitHub, and many other editors).

[ ] Issue filed:

To support generic types with multiple type arguments I had to change the public Alias property for UsingStatementAst from StringConstantExpressionAst to ExpressionAst. Maybe there's a better way to do this by changing the parsing rules? The tokenization doesn't create useful tokens when generic types are involved but I don't really know how to fix that.
I would appreciate any help/advice for this.

We have #12412. I guess we need to have it first. /cc @vexx32

This PR also fixes the parsing exception that gets thrown when you enter a newline after the equals sign in alias using statements like: using namespace whatever = but I'll probably create a separate PR for that minor change.

Yes, it is right intention.

Not sure how much help #12412 will be in the end, but I agree it would be better to get that in place first, so we can be sure they work together properly.

@vexx32 Thanks! Maybe you ask about  #12412 on next Community call.

Very cool, thanks for reviving this topic @MartinGC94!

How should conflicting type aliases work? Consider the following example:
using namespace System.Timers
using type Timer = string
[Timer] #What type is this?

In the above example, Timer can either be System.Timers.Timer or System.String.
I think it should throw an ambiguous type error, and that's what my latest commit does but based on the comment at the top of the method it seems like the intent was that type aliases should take priority just like type accelerators currently do. Meaning that Timer would just resolve to System.String.

How should conflicting type aliases work? Consider the following example:
using namespace System.Timers
using type Timer = string
[Timer] #What type is this?

In the above example, Timer can either be System.Timers.Timer or System.String.

I'm afraid I didn't write much down (beyond the code you salvaged), but I remember testing different constraint models and made some observations, I've tried compiling them here. I haven't had time to play around with code or do a full review yet, so it's entirely possible I've listed or highlighted things below that you've already addressed :)

There are several distinct types of conflict you need to keep in mind (examples below):

Parse time conflicts (these should all be treated as parse-time errors and handled in the parser/compiler pipeline):

Conflicting type aliases
Conflicting namespace aliases
Conflicting aliases (any kind) and runtime-defined type (enum, class, hereinafter referred to as PSType)

Runtime conflicts (should be handled primarily though ordered resolution, with exceptions)

Single-lable type name resolves to multiple imported namespaces or an alias (this one is your example)
Qualified type names resolve to multiple types when factoring in namespaces imported or aliases

I'll start with your example and circle back:
Precedence order for resolving single-label type names
I remember briefly discussing the design intentions with @lzybkr at some point, and the idea was indeed to let type aliases take precedence - similar to command discovery precedence where aliases hide other commands of the same name - so we would have the following resolution order:

type alias
PSType
type accelerator
imported namespace
default discovery/usedSystem

So, using type Timer = string takes precedence and as a result,

[Timer] -eq [string], (rank 1)
[ElapsedEventArgs] -eq [System.Timers.ElapsedEventArgs] (rank 4)
[System.Timers.Timer] remains unaffected (would have been resolved by rank 4, but hidden by [Timer] alias at rank 1)

To illustrate the what PSType vs namespace looks like:
using namespace System.Timers

class Timer
{
  [string] ToString() { return "Not the timer you're looking for" }
}

Here, [Timer] should always and unambiguously refer to the local class Timer {...} type - type resolver shouldn't "reach" rank 4 and search [System.Timers] because [Timer] was resolved at rank 2

Parse time conflicts
I believe we should never encourage intentional ambiguity, the same way we don't allow conflicting member names or ambiguous local variable names in PSType definitions.
Aliases
Encountering any of the following in the same scriptblock/file should result in compilation failure (at the latest):
using type A = string
using type A = int

using namespace A = B.C
using namespace A = D.E

I'd argue the following statement should not necessarily be considered invalid, as there's no proven technical ambiguity at this point in time, but it is confusing to read:
using type A = string
using namespace A = B.C

Conflicting aliases and PSType
PSTypes (locally defined custom types using the enum or class keywords) should also be a parse-time error:
using type A = string

class A { ... }

The following should also throw an error if classes.psm1 contains a PSType definition with name A, but we will have to delay this check until late in the compilation pipeline (just before, or during PSType generation likely):
using type A = string
using module classes.psm1

This doesn't cover every facet of resolution across different types of qualifiers (I also left out namespace-qualified type name resolution), but hopefully this should be enough to help you decide on approach to resolution order, and start writing some tests! 😉

Not sure how much help #12412 will be in the end for this specific PR, but I agree it would be better to get that in place first, so we can be sure they work together properly.

At the risk on jinxing myself here (I haven't tried merging+testing yet), these two changes appear orthogonal and shouldn't conflict. There's no syntactical concept of individual members (nor their generic type parameter arguments) in the context of using statements so this feature never touches your member parsing and resolution logic, and your feature simply need the type resolution API to remain stable (which is the case after this change).

Thanks for your thoughts @IISResetMe I've added parsing errors for conflicting aliases and type definitions.
I've also allowed type aliases to take priority over using namespaces again.
using namespace System.Timers
using type Timer = string
[Timer] #Resolves to System.String due to the alias, and not System.Timers.Timer

Note that I've also made a breaking change by making duplicate namespaces like:
using namespace System.Management.Automation.Language
using namespace System.Management.Automation.Language

a parsing error. Currently it's allowed, but if you try to actually use a type from that namespace you get a runtime error like this: Type name 'Token' is ambiguous, it could be 'System.Management.Automation.Language.Token' or 'System.Management.Automation.Language.Token'. I can limit it to duplicate namespace aliases only but I think the odds of this breaking change affecting any real world scripts seem low enough that it's worth keeping.

Duplicate using namespaces are blocked at parse time. Previously they were allowed, but caused runtime errors if you attempted to use the short type name from the duplicated namespace. See: #13525
This is not technically required because the check could be limited to just namespace aliases, but seems unlikely to cause issues.

I agree it is unlikely but it is still a breaking change so ask PowerShell Committee.

Duplicate using namespaces are blocked at parse time. Previously they were allowed, but caused runtime errors if you attempted to use the short type name from the duplicated namespace. See: #13525
This is not technically required because the check could be limited to just namespace aliases, but seems unlikely to cause issues.

Since it is a change in public API - ask PowerShell Committee to confirm.
/cc @SteveL-MSFT

The tokenflags for both the name/alias tokens when using type/namespace aliases are changed to TypeName for better syntax highlighting and tab completion.

/cc @andschwa Please confirm it is not break PSES.

Note that I've also made a breaking change by making duplicate namespaces like:
using namespace System.Management.Automation.Language
using namespace System.Management.Automation.Language
a parsing error.

I see your point - it is most often annoying when the script does not work like C#. I think it is best practice to follow a behavior of C#.
However, PowerShell is still a scripting language and sometimes it is more convenient to deviate from this rule.
For example, PowerShell allows scope and session "jumping". E.g. if user does dot-sourcing the parse error will annoy. It will be even more annoying if the user runs a script in a remote session using Invoke-Command for example.
So it would be more convenient to silently skip duplicate (exact) using definitions during parsing and runtime. (Do we this already for using module?) PSSA could warn in such cases.

Right now we don't handle duplicates at runtime, we simply seed a runtime conflict:
using namespace System.Collections.Specialized
using namespace System.Collections.Specialized

[BitVector32]

Results in the following runtime error:
InvalidArgument:
Line |
   5 |  [BitVector32]
     |  ~~~~~~~~~~~~~
     | Type name 'BitVector32' is ambiguous, it could be 'System.Collections.Specialized.BitVector32' or 'System.Collections.Specialized.BitVector32'.

@iSazonov: if user does dot-sourcing the parse error will annoy. It will be even more annoying if the user runs a script in a remote session using Invoke-Command for example.

Not relevant, the type conflict resolution reporting applies to the using statements within a single scriptblock, runtime imports won't be affected

Yeah there's no scenario that duplicate using namespace declarations would enable something.
The break scenario is that there might be some script with duplicates that didn't end up using any types from that namespace and therefore technically worked, but now will not. I think it's fair to call that bucket 3

Let's have WG-Language review this first

i'm seeing a strange behavior between scripted and interactive use: here's a transcript:
PS> cat /tmp/foo.ps1
using namespace system.management.automation
using namespace auto1 = system.management.automation
using namespace auto2 = system.management.automation
"[platform] " + ([platform])
"[auto1.platform] " + ([auto1.platform])
"[auto2.platform] " + ([auto2.platform])

PS> /tmp/foo.ps1
[platform] System.Management.Automation.Platform
[auto1.platform] System.Management.Automation.Platform
[auto2.platform] System.Management.Automation.Platform

PS> using namespace system.management.automation
PS> using namespace auto1 = system.management.automation
PS> using namespace auto2 = system.management.automation
PS> "[platform] " + ([platform])
InvalidOperation: Unable to find type [platform].
PS> "[auto1.platform] " + ([auto1.platform])
InvalidOperation: Unable to find type [auto1.platform].
PS> "[auto2.platform] " + ([auto2.platform])
[auto2.platform] System.Management.Automation.Platform

this seems troubling to me.

i'm seeing a strange behavior between scripted and interactive use: here's a transcript:

FWIW that's the same behavior that it currently has. It remembers the last set of using namespace statements given. I suspect you'll see the same behavior if you separate with ; or hit Shift + Enter (well on Windows anyway, don't think that chord works on Linux) after each using namespace so they're all in the same script.

@lzybkr mentioned that here as a pro tip: https://github.com/PowerShell/PowerShell/issues/8281#issuecomment-442288894
The latest set of using statements completely override the old ones. On one hand it can be a little confusing, but on the other hand we don't have any other way to "un-use" using statements.
Interestingly (for me at least) is that when you do it with modules it even seems to unload the types:
PS C:\Users\Martin> using module TestModule
PS C:\Users\Martin> [MyCustomTypeFromModule]

FullName               BaseType
--------               --------
MyCustomTypeFromModule System.Object

PS C:\Users\Martin> using namespace System.Management.Automation
PS C:\Users\Martin> [MyCustomTypeFromModule]
InvalidOperation: Unable to find type [MyCustomTypeFromModule].
PS C:\Users\Martin>

Content of TestModule.psm1:
class MyCustomTypeFromModule
{
    [string] $DemoProperty
}

It seems the design of using was abandoned halfway through. It would be great to get it right.
As I mentioned earlier, we are constantly faced with changing scopes and the current using behavior is perplexing.

why not enable using-s in nested scopes? why do we limit to file scope?
why have we the specific behavior for global scope? maybe we could have another way to reset using-s?
how react on exact duplications in same scope? ignore (specially in interactive)?
don't forget about  using  behavior in dot-sourcing and remoting.

@iSazonov using is also blocked in a scriptblock.

I know it's big but this PR is over a year old now. It would be nice if it could get reviewed and merged so this could become a 7.4 feature.

@MartinGC94 I'd suggest you ask MSFT team on next community day. I find all of your PRs useful, but I am not competent enough to approve the code.

@ImportTaste I don't think so.
Using statements can't be used inside Invoke-Command scriptblocks because they need to appear at the top of the script and using statements set in the script that calls Invoke-Command don't apply to the remote calls.
@iSazonov I know they have community days on Mondays but how do I ask them? I know some of them have Twitter but surely the best place to communicate about PRs is through Github itself?

@ImportTaste I don't think so. Using statements can't be used inside Invoke-Command scriptblocks because they need to appear at the top of the script and using statements set in the script that calls Invoke-Command don't apply to the remote calls.

I'm a little confused. My question wasn't about the using statement, it was about using a type accelerator in a class definition.

I thought you were asking if you could replace the type accelerator with a type alias. Normally you would be able to do that (which would allow you to use the type alias inside a class) but because of the previously mentioned limitations it won't work through Invoke-Command calls.
This PR doesn't change anything regarding type accelerators so if it's not working for you now, then it still won't work after this PR.

@iSazonov I know they have community days on Mondays but how do I ask them? I know some of them have Twitter but surely the best place to communicate about PRs is through Github itself?

You'd think, but github notifications can be challenging. Honestly the easiest way is probably to DM or ping me in the PowerShell Discord server. But I'll add this to the list for tomorrow for sure

I'm a little confused. My question wasn't about the using statement, it was about using a type accelerator in a class definition.

@ImportTaste FYI there is no supported way to create a type accelerator externally. There is a commonly known way to do it that is unlikely to be broken (on purpose anyway), but it is not something we can recommend using (and is not an API that will be receiving direct improvements).

@MartinGC94 I mean https://github.com/PowerShell/PowerShell-RFC/tree/master/CommunityCall

Would this work with PSCustomObject? In the past, I tried making a type accelerator for it, but apparently the code for PSCustomObject is a sort of alias for the PSObject type itself that behaves differently only when the alias equals PSCustomObject. (I'm sure I used some incorrect technical terminology there.)

No, the compiler looks for the literal string there to generate the correct code. It's not a dynamic lookup.

There's something weird going on when I test this:

I would expect an error to be thrown since [string]::New() usually doesn't work. I guess when I tested this originally I didn't check if I could actually use the list.

There's something weird going on when I test this:  I would expect an error to be thrown since [string]::New() usually doesn't work. I guess when I tested this originally I didn't check if I could actually use the list.

Yeah I used something other than string because it breaks error formatting :P it still throws, it's just invisible

I've noticed that the parser doesn't stop parsing assembly qualified names when it sees a semicolon so in scenarios like: using type x = bla,bla; you can't continue to the next statement without adding a whitespace. It feels wrong but to fix it I would either have to force the user to include the [] brackets around the typename, or make it break out of the type parsing when encountering a semicolon.
I'm leaning towards option 2, but I don't know if there are scenarios where type names can include semicolon. Do you have any thoughts on this?

I'm leaning towards option 2, but I don't know if there are scenarios where type names can include semicolon. Do you have any thoughts on this?

It's technically possible but we don't support it anywhere else either, e.g. [ty;pe] and class something : ty;pe {} are both parse errors

I'm leaning towards option 2, but I don't know if there are scenarios where type names can include semicolon. Do you have any thoughts on this?

It's technically possible but we don't support it anywhere else either, e.g. [ty;pe] and class something : ty;pe {} are both parse errors
Edit: ugh but not when assembly qualifying, I see what you mean

I'm honestly inclined to leave it as it is for now and revisit in a separate PR if it comes up. Assembly qualified type names are already rare enough as it is, it seems unlikely that someone would need to assembly qualify and also minify whitespace if that makes sense.

Obviously this won't make its way into a 7.4 release at this point but it would be nice if it could make it into a 7.5 release. Ideally in one of the early previews to have as much time as possible to find potential issues.

@MartinGC94
Thanks for this, the Language WG has reviewed and appreciate the new behaviors here. However, the conversation and feedback has been enough that we (the WG) would like to see a summary of the behavior now (after all the feedback and responses to that feedback) and as detailed as possible (especially as the label indicates this is a breaking change). Would you be able to provide that to us, so we can more readily understand it in full? This should also provide our document team enough information that it can be well documented.
We're not asking for an RFC, but rather a fulsome comment in this PR.

@JamesWTruher I've updated the PR description with all the latest changes. While doing so I thought of a scenario that I hadn't thought about before: What happens if you define a namespace alias that collides with a real namespace?
using namespace System = System.Management.Automation
[System.String]
[System.ActionPreference]

The answer is that it merges both. In the case of colliding type names within the merged namespace it prioritizes the real namespace before the namespace alias. I guess the correct solution would be to always check the specified namespace aliases for conflicts instead of returning early when a type has been found but that would slow down type resolution. Any thoughts?

The answer is that it merges both. In the case of colliding type names within the merged namespace it prioritizes the real namespace before the namespace alias. I guess the correct solution would be to always check the specified namespace aliases for conflicts instead of returning early when a type has been found but that would slow down type resolution. Any thoughts?

If I remember correctly, this is handled at compile time and only in the file scope. Then we can effectively block name conflicts and create an exception at compile time.

Will this make it into 7.5? Seems it's been pending review by @daxian-dbw for a couple months now, but there's also still a change request listed from @SeeminglyScience. Does another PR have to be merged first before this one makes it in?

I hope this will make it in a 7.5.x release but it is not very likely to be in for the 7.5.0 release.

I hope this will make it in a 7.5.x release

They don't usually add new features in those releases and certainly not a big one like this. I'd say the earliest you can expect this feature is in one of the 7.6 previews, assuming of course that they have more time for community PRs in 2025.

Looking forward to this and hope it gets merged! 👏

They don't usually add new features in those releases and certainly not a big one like this.

7.6 is a stable release pushed through Microsoft Update. This includes a minor breaking change, so belongs in 7.5 to iron out any issues IMO. Unfortunately too late now.

@SeeminglyScience can you please review this pr and look into https://github.com/PowerShell/PowerShell/pull/16734#issuecomment-1854723653 now that JamesWTruher is retired.
MartinGC94 is waiting for 11 months for any activity from the powershell team on this pr.


Bind and Apply calls are not checked against all function overloads

TypeScript Version:  3.8.2-dev.201xxxxx

Search Terms: call apply overload
Code
interface Fn {
  (x: string): void;
  (x: number, y: boolean): void;
}

declare const f: Fn;
f(''); // ok
f.call(null, ''); // error
f.apply(null, ['']); // error

Expected behavior:
No type errors as f('') is equivalent to f.call(null, '') and f.apply(null, ['']).
Actual behavior:
Type errors on f.call(null, '') and f.apply(null, ['']).
Playground Link: Playground Link
Related Issues:

The call/apply mechanics end up going through the arg-to-tuple process, which isn't capable of handling overloads. Since your return types match, you can write
interface Fn {
  (...args: [string] | [number, boolean]): void;
}

declare const f: Fn;
f(''); // ok
f.call(null, ''); // ok
f.apply(null, ['']); // ok

instead to avoid the error

Thanks for explaining, this is not a major issue for us, just wanted to check if it can use a small bug fix, or a known design limitation. Feel free to close this issue.


I'm getting an error during vite build

Am I missing some config? Followed the instruction in README:
Error: [vite]: Rollup failed to resolve import "virtual:windi.css" from "src/App.jsx".

Same thing here...

What's your plugin's version? Can you provide a minimal repro?

Hi Antony,
I forgot to get back to this issue. It looks like I was using an outdated
version of this plugin. When I manually updated the version in package.json
to the last release (0.8.2) it worked fine.
I think this might be just a matter of (yarn in my case) be installing an
outdated version.
On Thu, Mar 11, 2021, 7:14 PM Anthony Fu @.***> wrote:

What's your plugin's version? Can you provide a minimal repro?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/windicss/vite-plugin-windicss/issues/83#issuecomment-797085483,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEL2SSVPBBSXJVK253PCFJ3TDE6ELANCNFSM4ZA6CBHA
.

Can confirm the error vanished after this update too!


Inference Error

Hi,
I run the scripts/inference/vcgbench/test_general.sh following your ReadMe. But I get the following error which is difficult to be solved for me.
Traceback (most recent call last):
File "/mnt_alipayshnas/zirui.lgp/ST-LLM/stllm/test/vcgbench/videochatgpt_benchmark_general.py", line 127, in
run_inference(args)
File "/mnt_alipayshnas/zirui.lgp/ST-LLM/stllm/test/vcgbench/videochatgpt_benchmark_general.py", line 109, in run_inference
llm_message = chat.answer(conv=chat_state,
File "/mnt_alipayshnas/zirui.lgp/ST-LLM/stllm/conversation/conversation.py", line 231, in answer
outputs = llama_model.generate(
File "/opt/conda/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/transformers/generation/utils.py", line 1609, in generate
result = self._beam_search(
File "/opt/conda/lib/python3.10/site-packages/transformers/generation/utils.py", line 3062, in _beam_search
outputs = self(
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/mnt_alipayshnas/zirui.lgp/ST-LLM/stllm/models/st_llm.py", line 119, in forward
return super(STLLMForCausalLM, self).forward(inputs_embeds=inputs_embeds, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 1196, in forward
outputs = self.model(
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/mnt_alipayshnas/zirui.lgp/ST-LLM/stllm/models/st_llm.py", line 58, in forward
return super(STLLMLlamaModel, self).forward(inputs_embeds=inputs_embeds, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 990, in forward
causal_mask = self._update_causal_mask(attention_mask, inputs_embeds, cache_position)
File "/opt/conda/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 1071, in _update_causal_mask
attention_mask.shape[-1] if isinstance(attention_mask, torch.Tensor) else cache_position[-1] + 1
IndexError: index -1 is out of bounds for dimension 0 with size 0

Sorry, I haven't encountered this bug before. Could you trace why the attention_mask is empty?

Hi，
I think this is because you dont transport it in this following function. But I meet new problems (the shape of attention mask is not normal) when I try to transport it.

The following error ocurrs when I fix the L234 in ST-LLM/stllm/conversation/conversation.py.
Traceback (most recent call last):
File "/mnt_alipayshnas/zirui.lgp/ST-LLM/stllm/test/vcgbench/videochatgpt_benchmark_general.py", line 127, in
run_inference(args)
File "/mnt_alipayshnas/zirui.lgp/ST-LLM/stllm/test/vcgbench/videochatgpt_benchmark_general.py", line 109, in run_inference
llm_message = chat.answer(conv=chat_state,
File "/mnt_alipayshnas/zirui.lgp/ST-LLM/stllm/conversation/conversation.py", line 231, in answer
outputs = llama_model.generate(
File "/opt/conda/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/transformers/generation/utils.py", line 1609, in generate
result = self._beam_search(
File "/opt/conda/lib/python3.10/site-packages/transformers/generation/utils.py", line 3062, in _beam_search
outputs = self(
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/mnt_alipayshnas/zirui.lgp/ST-LLM/stllm/models/st_llm.py", line 119, in forward
return super(STLLMForCausalLM, self).forward(inputs_embeds=inputs_embeds, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 1196, in forward
outputs = self.model(
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/mnt_alipayshnas/zirui.lgp/ST-LLM/stllm/models/st_llm.py", line 58, in forward
return super(STLLMLlamaModel, self).forward(inputs_embeds=inputs_embeds, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 990, in forward
causal_mask = self._update_causal_mask(attention_mask, inputs_embeds, cache_position)
File "/opt/conda/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 1077, in _update_causal_mask
causal_mask *= torch.arange(target_length, device=device) > cache_position.reshape(-1, 1)
RuntimeError: The size of tensor a (586) must match the size of tensor b (0) at non-singleton dimension 0

Hi,
Can we chat this problem in WeChat for more efficient discussions? My WeChat is "CodeFighting".


🎉 3.1.0

ℹ About this release

Version: 3.1.0
Type: minor
Last Release: 3.0.1 (5/14/2022, 6:32:34 PM) [?]
Commits to merge: 78 [?]

🐛 Bug Fixes

Add assignees on existing PRs (0724080)

🆕 Features

Add emoji for "Reverts" headline (7e1fe56)
Change emoji depending on draft status (cea5c9b)
Do not create draft PRs automatically, only on manual start (via workflow_dispatch) (6a06866)
Draft / undraft existing PRs if state changes (90f9912)
Draft / undraft existing PRs if state changes (bf1045d)
Mark PR as draft if last release < min or if no relevant changes in release (20495fa)
Try to set draft state, but warn only if not possible (e6667ed)

↩ Reverts

Revert "ci: Remove GH_TOKEN and use GITHUB_TOKEN" (b5c2eb6)
Revert "ci: Remove docker setup" (14a5226)
Revert "ci: Remove docker setup" (655068b)

📦 Dependencies

Update @actions/github from ^5.0.1 to ^5.0.3

📦 Development Dependencies

Update eslint from ^8.13.0 to ^8.15.0

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


Find Maximum Product Subarray in

💥 Proposal
(A clear and concise description of what the proposal is.)
Have you read the Contributing Guidelines on Pull Requests?
(Write your answer here.)

/assign


How to properly configure nginx proxy_cache as ngx_pagespeed downstream cache?

I am a novice, please help me, very grateful！

 Verify that MessageBufferSize is
not set to 0 in pagespeed.conf.
pagespeed DefaultSharedMemoryCacheKB 131072;
pagespeed CreateSharedMemoryMetadataCache "/home/pagespeed_cache" 131072;
pagespeed EnableCachePurge on;
pagespeed PurgeMethod PURGE;
##pagespeed UseNativeFetcher on; #疑似启用后不能进行https提取"as https is not supported"
##pagespeed FetchHttps enable;
##resolver <IP_ADDRESS>;
pagespeed FetcherTimeoutMs 500;
pagespeed InPlaceResourceOptimization on;
pagespeed EnableFilters in_place_optimize_for_browser;
#pagespeed InPlaceSMaxAgeSec 100;
#######20161125
pagespeed ImageMaxRewritesAtOnce 0;
pagespeed StatisticsLoggingIntervalMs 60000;
pagespeed StatisticsLoggingMaxFileSizeKb 1024;
##############20170225############################
#pagespeed imagepreserveurls true;
#pagespeed csspreserveurls true;
#pagespeed jspreserveurls true;
##pagespeed ForceCaching on;
##pagespeed ImplicitCacheTtlMs<PHONE_NUMBER>0;
pagespeed UsePerVhostStatistics on;
pagespeed DownstreamCachePurgeMethod GET;
pagespeed DownstreamCacheRebeaconingKey "abcd,.1234";

My environment is now proxy_cache and ngx_pagespeed deployed on the same server and the same port. Can these two modules be deployed on port 80 at the same time? I am now being tried: User --- picture 80 port (open proxy_cache) ----- reverse proxy to 8081 (pagespeed on) ---- back-end server.

My environment is currently proxy_cache and ngx_pagespeed deployed in the same server and the same port, is this feasible?

The downstream cache feature was designed with having a caching proxy in front of the server that runs pagespeed optimization in mind.
If you run ngx_pagespeed with a server{} set up as a caching proxy, I think your best bet is caching the unoptimized html. Pagespeed will optimize the html on the fly as nginx serves it from cache, and use its own caches to serve .pagespeed. urls and any in-place optimized versions.
If you want the downstream cache feature to work, and running pagespeed at the webserver is not an option, then I think you would need two proxies (one for caching the html, and one behind that to proxy to the webserver and run ngx_pagespeed).

@oschaaf Please forgive me for this rookie, and I am not good at english, and I am translating Chinese into English through google. I want to only cache and optimize the picture resources, for the "location ~ .. (js | css | ico | gif | jpg | jpeg | png | bmp | swf)" enable pagespeed on, in addition to all off. You say: "then I think you would need two proxies (one for caching the html, and one behind that to proxy to the webserver and run ngx_pagespeed)." Meaning whether for example: "user requests image resources to port 80 (open proxy_cache ) ----- reverse proxy to native port 8081 (enable pagespeed on) ------ reverse proxy to backend server.

I don't think you need any proxies for that.  Just turn PageSpeed on in
your server block, and it will optimize & cache static assets for you -- at
least the ones it knows about (js, css, gif, jpg, jpeg, png).  You may not
need any further caching for those.
You can use some other kind of cache for the file types that PageSpeed
doesn't optimize (ico bmp swf).
On Tue, Mar 28, 2017 at 6:11 AM, kaixulucky<EMAIL_ADDRESS>wrote:

@oschaaf https://github.com/oschaaf Please forgive me for this rookie,
and I am not good at english, and I am translating Chinese into English
through google. I want to only cache and optimize the picture resources,
for the "location ~ .. (js | css | ico | gif | jpg | jpeg | png | bmp |
swf)" enable pagespeed on, in addition to all off. You say: "then I think
you would need two proxies (one for caching the html, and one behind that
to proxy to the webserver and run ngx_pagespeed)." Meaning whether for
example: "user requests image resources to port 80 (open proxy_cache )
----- reverse proxy to native port 8081 (enable pagespeed on) ------
reverse proxy to backend server.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pagespeed/ngx_pagespeed/issues/1397#issuecomment-289724904,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB2kPVeEt5yp-UPBYwI8tzx1bCn641Goks5rqNzogaJpZM4MoB9H
.

@jmarantz Hello！ you are saying: "I can not need downstream cache (such as proxy_cache), directly in the desired location pagespeed on, is it? There pagespeed can not support optimization (ico bmp swf) these resources, is it?


Storage: BTRFS subvolume support

Clarifies role of subvolume meta data structure.
Fix delete subvolume to support intermediate readonly subvolumes.
Add subvolume readonly property restoration when restoring snapshots.

Testsuite passed

@stgraber please dont merge this just yet, it works as is, but ive got some more fixes coming, including a cross-pool copy fix for btrfs that breaks with >1 snapshot (due to memorypipe not behaving properly with io.ReadAll and json header parsing).

Testsuite passed

Testsuite passed


Consider supporting Dataset objects in DataTree.setitem

What is your issue?
I think we could treat assigning a Dataset object as equivalent to assigning a DataTree object with the dataset's data without any children.
Currently this results in a rather bizarre error message:
In [35]: tree = DataTree()

In [36]: tree['foo'] = Dataset()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-36-0aa35867bc31> in ?()
----> 1 tree['foo'] = Dataset()

~/dev/xarray/xarray/core/datatree.py in ?(self, key, value)
    923         elif isinstance(key, str):
    924             # TODO should possibly deal with hashables in general?
    925             # path-like: a name of a node/variable, or path to a node/variable
    926             path = NodePath(key)
--> 927             return self._set_item(path, value, new_nodes_along_path=True)
    928         else:
    929             raise ValueError("Invalid format for key")

~/dev/xarray/xarray/core/treenode.py in ?(self, path, item, new_nodes_along_path, allow_overwrite)
    556                 current_node._set(name, item)
    557             else:
    558                 raise KeyError(f"Already a node object at path {path}")
    559         else:
--> 560             current_node._set(name, item)

~/dev/xarray/xarray/core/datatree.py in ?(self, key, val)
    899             new_node._set_parent(new_parent=self, child_name=key)
    900         else:
    901             if not isinstance(val, DataArray | Variable):
    902                 # accommodate other types that can be coerced into Variables
--> 903                 val = DataArray(val)
    904
    905             self.update({key: val})

~/dev/xarray/xarray/core/dataarray.py in ?(self, data, coords, dims, name, attrs, indexes, fastpath)
    474             if attrs is None and not isinstance(data, PANDAS_TYPES):
    475                 attrs = getattr(data, "attrs", None)
    476
    477             data = _check_data_shape(data, coords, dims)
--> 478             data = as_compatible_data(data)
    479             coords, dims = _infer_coords_and_dims(data.shape, coords, dims)
    480             variable = Variable(dims, data, attrs, fastpath=True)
    481

~/dev/xarray/xarray/core/variable.py in ?(data, fastpath)
    316     ):
    317         return cast("T_DuckArray", data)
    318
    319     # validate whether the data is valid data types.
--> 320     data = np.asarray(data)
    321
    322     if isinstance(data, np.ndarray) and data.dtype.kind in "OMm":
    323         data = _possibly_convert_objects(data)

~/dev/xarray/xarray/core/dataset.py in ?(self, dtype, copy)
   1535         def __array__(self, dtype=None, copy=None):
-> 1536             raise TypeError(
   1537                 "cannot directly convert an xarray.Dataset into a "
   1538                 "numpy array. Instead, create an xarray.DataArray "
   1539                 "first, either with indexing on the Dataset or by "

TypeError: cannot directly convert an xarray.Dataset into a numpy array. Instead, create an xarray.DataArray first, either with indexing on the Dataset or by invoking the `to_dataarray()` method.

cc @TomNicholas

Didn't we already discuss this somewhere?

Maybe we talked it over on a call? I can't find the issue.

Wasn't the argument against it that the return type of DataTree.__getitem__ can never be Dataset (only DataArray or DataTree), so this would be misleading?

We support assigning other coercible types to Dataset.__setitem__ and DataArray.__setitem__, though.

I can't find the issue.

I also can't find it anywhere. It may have been in a comment on another issue.

We support assigning other coercible types to Dataset.__setitem__ and DataArray.__setitem__, though.

I guess its sort of an example of "make input types as general as possible but output types as specific as possible".
I could go either way on this, I just wanted to remind you of the point that was brought up earlier. I think other people have asked for this feature.


feat(rspack-provider): support startDevServer

PR Details

Description

Related Issue

Motivation and Context

How Has This Been Tested

Types of changes

[ ] Docs change / refactoring / dependency upgrade
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[ ] My code follows the code style of this project.
[ ] I have updated changeset
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: 9aoy:x: bvanjoiYou have signed the CLA already but the status is still pending? Let us recheck it.


Code structure refactoring

[x] 1. Update README
[x] 2. Replace mobius package with  fabfed package
[x] 3. Add tools and  tests folders as siblings to the fabfed folder so that the latter is dedicated to a lib package.
[x] 4. Trim all the unused subfolders
[ ] 5. Add subfolder structure to reflect this code stack design: https://github.com/fabric-testbed/mobius-fabfed/issues/2#issuecomment-1205408139

@abessiari I suggest refactoring the fabfed subfolders into this structure. How do you think?
model: (data structures)
	- intent: user facing experiment resource description (yaml/json) and interpreter
	- slice: internal data structure for multi-provider slice
		- resource / node / network / dependencies

user:
	- user identities data and authentication / authorization

controller:
	- session: peristent context
	- policy:
	- workflow:

provider:
	- base
	- fabric
	- chi
	- sense
	- ...

util:

Then move the config folder to root level. Remove the test folder as we already had root tests.

@xi-yang
I have done more refactoring (interfaces for base classes) and pushed  functionality code to base classes. Slice and Provider are pretty much done. Node is almost there. I need to tackle Networks


Auto corrected by following Format Ruby Code

Auto corrected by following Format Ruby Code
Click here to configure it on awesomecode.io

Coverage decreased (-0.006%) to 96.124% when pulling 9b7df158189a2a840f767fcc8f68acfbe6a2a94e on awesomecode-format-ruby-code-47815 into 99aa892c07cfc221480991741f56e2ccdf4fb464 on master.

Coverage decreased (-0.006%) to 96.124% when pulling 9b7df158189a2a840f767fcc8f68acfbe6a2a94e on awesomecode-format-ruby-code-47815 into 99aa892c07cfc221480991741f56e2ccdf4fb464 on master.


Fix various spelling errors

Signed-off-by: Kevin Cormier<EMAIL_ADDRESS>

/cc @RobDolares

/cc @Randy424


refactor evals.py

This PR refactors evals.py and adds a notebook that runs evals and makes some figures visualizing those evals.
https://colab.research.google.com/github/derpyplops/SAELens/blob/main/make_eval_visualisations.ipynb

I think this is unlikely to be merged but I do want to point people towards it in the future. There were some things that needed fixing but there were some useful improvements.

What things needed fixing? I could work on those if it's wanted


Can't access "Actionable Email Developer Dashboard"

Hi, I cannot open the Actionable Email Developer Dashboard (https://outlook.office.com/connectors/oam/publish). Tried in 3 different tenant. Always end with error. Can someone tell me what am I doing wrong?

Thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.


New Hugo Site

@cjyabraham have a bunch of conflicts to resolve

Conflicts are resolved.

Here is the netlify preview: https://deploy-preview-229--cncfglossary.netlify.app/


[Work in progress] - Clean air lines

The last commit is the one that matters.

@greggles Do you have an update on this PR? The current list does not seem correct to me.


Could you publish on VPM user repository?

Could you publish this package on some VPM user repo? It allow us to upgrade this tool on VCC.

Will see what I can do, but both VCC and the tools for it are still kinda limited regarding custom repos & so is my understanding of custom repos


Support for Nunjucks (.njk)

Nunjucks is obviously not supported but is there any way to highlight njk syntax?
https://mozilla.github.io/nunjucks/

Hi! The Twig highlighting should do a decent job.

worked like a charm, thank you

twig didn't work well for me - I used liquid instead and this seemed to work better.

Note that you can alias njk to liquid, so that if eventually a Nunjucks-specific language definition comes along, your content is ready for it:
Prism.languages.njk = Prism.languages.liquid;


Documentation Incorrectly Describes How To Change Field Names

The documentation that describes how to override and disable the field names used by LogstashEncoder is partially incorrect.  It states that we can use the field names in LogstashFieldNames to override what is generated.  Some of the fields, such as logger_name, have to be specified using a different value.  In this example,  logger will do the trick.  If you set a breakpoint in LoggerNameJsonProvider.setFieldNames you can see the values that are actually used.  Here is the XML I had to use to gain the control I required:
        <encoder class="net.logstash.logback.encoder.LogstashEncoder">
            <includeContext>false</includeContext>
            <timeZone>UTC</timeZone>
            <fieldNames>
                <timestamp>timestamp</timestamp>
                <message>message</message>
                <logger>component</logger>
                <version>[ignore]</version>
                <thread>[ignore]</thread>
                <levelValue>[ignore]</levelValue>
            </fieldNames>
        </encoder>

Great library, by the way.  I'm using it send messages from a Docker container, wrapped in a syslog format off to Loggly.  Loggly will parse the JSON and work its magic.

Hah.  I meant the java field names in that class.  e.g. private String logger
I'll make the doc more clear.
Thanks for the report!


Is this a data-decimation bug?

This morning  the graphs looked as if the sensors have been dead for some hours. But no - I noticed the graph first draws properly with all the values, and after some seconds a part of the graph is replaced by a straight line. This is a 1-day graph, where decimation should not occur...
Changing (decimation: false) to (decimation:accurate), zooming in and out always gives the same result, i.e. a straight line where the varying values should be drawn.
cheers
Martin

I added two pics, what is displayed first and then after some seconds...

Doesn't look like a decimation problem.

Post your card YAML
Post potential errors in the logs when this happens (HA core log and console log of the browser the card is running on)
Do you have auto-refresh enabled ?

Hi,
I cannot tell if auto-refresh is enabled - I do not remember having activated an option of that name. Where do I have to look for that?
Here is the YAML code (there is a refresh in the code):
type: custom:history-explorer-card cardName: Temperatures defaultTimeRange: 1d defaultTimeOffset: 1h decimation: false refresh:   interval: 10 lineMode: lines showUnavailable: true combineSameUnits: true axisAddMarginMin: false axisAddMarginMax: false lineGraphHeight: 500 entityOptions:   sensor.licht:     ymin: 0     ymax: 1200   sensor.aussentemperatur:     ymin: 0     ymax: 40   sensor.taupunkt:     ymin: 0     ymax: 40   sensor.balkon:     ymin: 0     ymax: 40
In the HA core logs I cannot find any event that corresponds to the time when I opened the card.
Here is the console log of Firefox...  the effect is the same on different computers (MacOS, Linux).
BackgroundUpdate: _reasonsToNotScheduleUpdates: Failed to check for Maintenance Service Registry Key: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIUpdateProcessor.getServiceRegKeyExists]"  nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)"  location: "JS frame :: resource://gre/modules/BackgroundUpdate.jsm :: _reasonsToNotScheduleUpdates :: line 241"  data: no] [BackgroundUpdate.jsm:243](resource://gre/modules/BackgroundUpdate.jsm) PushService: receivedPushMessage: Error notifying app Error: No record for key ID f362d838-481e-4a98-869b-7695a7abab50     _updateRecordAfterPush resource://gre/modules/PushService.jsm:860 [PushService.jsm:828](resource://gre/modules/PushService.jsm) TypeError: gRecipeManager is null 2 [LoginManagerParent.jsm:136:3](resource://gre/modules/LoginManagerParent.jsm) TypeError: gRecipeManager is null 4 [LoginManagerParent.jsm:136:3](resource://gre/modules/LoginManagerParent.jsm) TypeError: gRecipeManager is null [LoginManagerParent.jsm:136:3](resource://gre/modules/LoginManagerParent.jsm) TypeError: gRecipeManager is null 2 [LoginManagerParent.jsm:136:3](resource://gre/modules/LoginManagerParent.jsm) TypeError: gRecipeManager is null 2 [LoginManagerParent.jsm:136:3](resource://gre/modules/LoginManagerParent.jsm)     <anonymous> resource://gre/modules/LoginManagerParent.jsm:136 TypeError: gRecipeManager is null 4 [LoginManagerParent.jsm:136:3](resource://gre/modules/LoginManagerParent.jsm) TypeError: gRecipeManager is null 2 [LoginManagerParent.jsm:136:3](resource://gre/modules/LoginManagerParent.jsm) TypeError: gRecipeManager is null 2 [LoginManagerParent.jsm:136:3](resource://gre/modules/LoginManagerParent.jsm) TypeError: gRecipeManager is null 3 [LoginManagerParent.jsm:136:3](resource://gre/modules/LoginManagerParent.jsm) TypeError: gRecipeManager is null8 [LoginManagerParent.jsm:136:3](resource://gre/modules/LoginManagerParent.jsm)     <anonymous> resource://gre/modules/LoginManagerParent.jsm:136

I did take out the "refresh: interval: 10" from the YAML, and now it displays fine.

Try to reduce the auto refresh interval to something like 60 seconds and see if that improves things. 10 seconds may overwhelm your database.

You probably meant increasing the interval - but that does not work. Tried 60 and 120 seconds, the only difference is that the straight lines appear later. Actually when the refresh is carried out.

Yes, its always the same spot - between 24h and 6h (6 hours span)
Here's the YAML with the layout as in my editor. I was using the code-insertion function incorrectly, that killed the layout.
type:
  custom:history-explorer-card
cardName: Temperatures
defaultTimeRange: 3d
defaultTimeOffset: 1h
refresh:
  interval: 10
decimation: false
lineMode: lines
showUnavailable: true
combineSameUnits: true
axisAddMarginMin: false
axisAddMarginMax: false
lineGraphHeight: 500
entityOptions:
  sensor.licht:
    ymin: 0
    ymax: 1200
  sensor.aussentemperatur:
    ymin: 0
    ymax: 40
  sensor.taupunkt:
    ymin: 0
    ymax: 40
  sensor.balkon:
    ymin: 0
    ymax: 40

Looks like your database doesn't return values in the affected period on subsequent calls. I never experienced an effect like this.

What version of HA are you using
What database engine
Recorder retention period (in configuration.yaml)
Size of your database

What version of HA are you using -> 2023.6.2
What database engine -> default, I didn't change anything after installation of HA
Recorder retention period (in configuration.yaml) -> canntot find this parameter, should be default
Size of your database -> where can I find this? It should not be large, I just began using HA 2 weeks ago.

I found a pretty obscure bug with the history / statistics merging code while trying to reproduce your thing. I'm not sure if that is the one causing your problem, but the symptoms look very similar.
Can you try to add this to your config and see if the problem persists:
statistics:
  enabled: false

Keep the refresh interval at 10.

I put your code in, see the YAML extract below. I guess the order within the YAML is not important.
Unfortunately, no change. I upgraded the core to 2023.6.3, same behaviour (i.e. no change, still the straigt line after some seconds)
defaultTimeOffset: 1h
refresh:
  interval: 10
statistics:
  enabled: false
decimation: false

Well it was worth a try (and I found another bug that way).
The problem is that I can't reproduce your issue, and as far as I know, noone else ever reported something like this. It's going to be very difficult to proceed with this I'm afraid.

Yes, of course. Is there a way to send you the database and/or configuration so you can try to reproduce it?

OK, I found another bug. Not in this card, but in the HA history API. Not entirely clear at this time if this is yours (although the symptoms are again similar), but we're surely catching bugs here ... ;)
What is your local timezone on both the HA server and on the browser you are viewing the card (if different) ?

Hi, local time of the browser is CET (central european time)
Time on HA is GMT-5 (Toronto time), as we plan to move the system there.
Shall I try and put HA time to CET, or vice versa?

OK, that is it then. The flatline you are getting is the difference between both timezones.
Setting both to the same timezone should fix this, but maybe not entirely. There might still be an issue, but over a smaller time period, as UTC might also be involved in this. That part of HA is not really documented, so it's hard to determine how exactly something is supposed to behave and if changes to it are intentional or not. That said, it's an important corner case you uncovered here, that needs to be addressed. Not sure when I can do this, this week is going to be very busy. Most likely next weekend.

Just tried it out - put the HA to CMT, and now everything is fine!
Thanks so far. Interesting side effect... normally I wouldn't do that, except maybe if I had to poll an HA via Internet from another timezone.
cheers, Martin

There were some improvements in V1.0.48 pertaining to timezone handling, specifically in situations like this one. I'm closing this now, feel free to open a new issue if things are still weird on the latest version.


Costs

Tracking PR

[x] preliminaries #900
[ ] costing framework https://github.com/quantumlib/Qualtran/pull/913
[ ] Bloq/gate counts
[ ] Qubit counts
[ ] Success probability
[ ] Docs and niceties

It'll be very useful to have circuit depth as an example along with bloq counts / qubit counts


fix: table attribute cannot applied on td element

Description
Fixed #6507
Supersedes #6511
Checklist:

[x] Securely signed commits
[ ] Component(s) with PHPDoc blocks, only if necessary or adds value
[x] Unit testing, with >80% coverage
[] User guide updated
[x] Conforms to style guide

@kenjis Sorry, i am newbie to using command rebase mechanism. Now can use GPG Signing at Home PC


Web3.js + encrypted transactions

As per the Ethers v5 & Ethers v6 standalone tests in https://github.com/oasisprotocol/sapphire-paratime/pull/239
Would like to make sure Web3.js works and the transaction, simulate & estimate calls have encrypted calldata before we can say we officially support Web3.js. As we don't want people to use Sapphire + Web3.js and think it's encrypted but it's not...
The following is a snippet of deploying the TestERC20Token contract, needs to be adapted to work with Web3.js.
import { Web3 } from 'web3';
import { TestErc20Token } from "./TestErc20Token.js";
import { assert } from 'console';

async function main () {

    const signer = new Web3('http://<IP_ADDRESS>:8545');

    const account = signer.eth.accounts.wallet.add('0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80').get(0)!;
    console.log('account', account.address);

    const contract = new signer.eth.Contract(TestErc20Token.abi, undefined, {
        gasPrice: '100000000000',
        from: account.address
    });

    const deployed = await contract.deploy({
        data: TestErc20Token.bytecode
    }).send({
        gas: '1185560'
    });
    console.log('deployed', deployed.options.address);

    const mintTx = await deployed.methods.mint(account.address, 100n).send();
    console.log('mintTx', mintTx.transactionHash);

    const totalSupply = await deployed.methods.totalSupply().call()
    assert(totalSupply === 100n);
}

await main ();

Currently this fails if you wrap it as follows:
const provider = new Web3.providers.HttpProvider('http://<IP_ADDRESS>:3000');
const wrappedProvider = wrap(provider);

This stems from the following code in compat.ts:
   const signer = await provider.getSigner();
   const { method, params } = await prepareRequest(args, signer, cipher);

This is because we're wrapping a provider without any ability to sign? Even though we add a signer later in the code. Will investigate ways to fully support Web3.js with a local JsonRpcProvider - I expect it may work with an injected browser provider.
See the following error:
$ pnpm ts-node src/index.ts
account 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)
file:///src/sapphire-paratime/node_modules/.pnpm/ethers@6.9.0/node_modules/ethers/src.ts/utils/errors.ts:687
            error = new TypeError(message);
                    ^
TypeError: invalid address (argument="address", value=null, code=INVALID_ARGUMENT, version=6.9.0)
    at makeError (file:///src/sapphire-paratime/node_modules/.pnpm/ethers@6.9.0/node_modules/ethers/src.ts/utils/errors.ts:687:21)
    at assert (file:///src/sapphire-paratime/node_modules/.pnpm/ethers@6.9.0/node_modules/ethers/src.ts/utils/errors.ts:715:25)
    at assertArgument (file:///src/sapphire-paratime/node_modules/.pnpm/ethers@6.9.0/node_modules/ethers/src.ts/utils/errors.ts:727:5)
    at getAddress (file:///src/sapphire-paratime/node_modules/.pnpm/ethers@6.9.0/node_modules/ethers/src.ts/address/address.ts:121:5)
    at new JsonRpcSigner (file:///src/sapphire-paratime/node_modules/.pnpm/ethers@6.9.0/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts:290:19)
    at BrowserProvider.getSigner (file:///src/sapphire-paratime/node_modules/.pnpm/ethers@6.9.0/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts:1067:20)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async BrowserProvider.getSigner (file:///src/sapphire-paratime/node_modules/.pnpm/ethers@6.9.0/node_modules/ethers/src.ts/providers/provider-browser.ts:140:16) {

Upon reconsideration we're not going to support Web3.js going forward.


[WIP] stdlib.call: Get rid of subprocess

Previously the function used the subprocess.call inside which was
unwanted and was source of several issue. The main issue was raising
of the exception from the subprocess when we had an exception of the
same name. In such case sometimes the exception was not catched in
the code of actors, as the imported exception was from the stdlib.
IOW:
  import leapp.libraries.stdlib as leapplib
  try:
      leapplib.call(["cmd doesnt exists"])
  except leapplib.CalledProcessError:
      ...

previously passed as the subprocess.CalledProcessError was raised.
Now, the exception will be caught.
Additionaly, we get rid of subprocess completely as it will not be
used even in the stdlib.
NOTE: @artmello is already modifying leapp-repository. This PR has to be merged with cooperation with @artmello.
NOTE: I am going to add missing tests.

Can one of the admins verify this patch?

I will wait with writting of the tests as we want to discuss this solution yet. Maybe we will get rid of the call completely.


Generate genesis in hlf-ord chart

Companion PR: https://github.com/AurelienGasser/charts/pull/1

To test it locally:
Bootstrap

clone/package my fork

git clone https://github.com/AurelienGasser/charts.git
git checkout hlf-ord-generate-genesis
cd charts/stable/hlf-ord
helm package .

update your requirements.{yaml,lock}

cd hlf-k8s/charts/hlf-k8s
vim requirements.yaml  # update the file:/// reference to point to your local clone
helm dep update        # re-generate requirements.lock

Test
After you do any change to the hlf-ord charts:

re-package the chart

cd charts/stable/hlf-ord
helm package .

re-run skaffold dev

cd hlf-k8s
skaffold dev

Do we still want to have this init container for genesis block ?

=> https://github.com/SubstraFoundation/hlf-k8s/pull/27


How do we auto-keep the browserslist DB up to date?

This plugin is a nice plugin, but what does it actually solve? Ok, so we don't need to manually run the CLI to regenerate the module with the regular expression every time we change the browserslist configuration. Fine. But IMO that list doesn't really change too often when it's set. What does change often without developers' intervention are browser versions.
That's why despite using this plugin we still need to manually upgrade browserslist/DB... What if the browserslist version increments beyond the dependency version definition of this vite plugin? How do we know this plugin will be regularly updated? How do we assure we regularly update this plugin?
That's why I'm asking whether this plugin actually solves anything significant?
The perfect solution IMO would be that whenever we make a vite build, the DB would get upgraded to latest and then this vite plugin would be able to generate latest regex.

Thanks for your suggestion!

That's why I'm asking whether this plugin actually solves anything significant?

I want the browserslist config to be the single source of truth. In my end projects, I don't want to include the module with the regular expression, an output instead of source code. That's why I made the module with the regular expression an virtual module generated by vite plugin. Not something significant but preferred by some users https://github.com/kingyue737/vite-plugin-browserslist-useragent/issues/2#issuecomment-1876160836

That's why despite using this plugin we still need to manually upgrade browserslist/DB...

I think browserslist/DB or other dependencies in your project should be managed by renovate/dependabot/yourself instead of a vite plugin. Most of the time you just need to run pnpm update.

But IMO that list doesn't really change too often when it's set.

The list doesn't change too often but the regex does if your target browsers is something like last three versions. In this case, your project is actively maintained, and it's a good practice to update all the dependencies besides browserslist/DB.

What if the browserslist version increments beyond the dependency version definition of this vite plugin? How do we know this plugin will be regularly updated? How do we assure we regularly update this plugin?

Browserslist v4 was published 6 years ago. This plugin does not need regular update. I will update this plugin when there are breaking changes to its dependency in the future. Or PR/fork welcome. Before I update the plugin, you can also override the version of browserslist via package manager:
// package.json for yarn
{
  "dependencies": {

  },
  "resolutions": {
    "browserslist": "^5.0.0"
  }
}

// package.json for npm
{
  "dependencies": {

  },
  "overrides": {
    "browserslist": "^5.0.0"
  }
}

The perfect solution IMO would be that whenever we make a vite build, the DB would get upgraded to latest.

You can achieve this via script in package.json like:
{
  "scripts": {
    "build": " npm update caniuse-lite browserslist && vite build",
  },
}