Feature AZ filter on all addresses

What?
A non-pillar user has to switch the selected address to see projects on another address. While a pillar user sees all projects for all addresses.
Example
An user with 3 addresses
Address 1 has a pillar registration and 3 projects
Address 2 has 1 project
Address 3 has 1 project

When address 1 is selected, the user sees all 5 projects when activating the 'My projects' filter tag.
When address 2 or 3 is selected, the user only sees project 1 when activating the 'My projects' filter tag.

Why?
When address 1 is selected the user is considerd a pillar user, otherwise a non-pillar user.
The 'My projects' filter tag, filters on all user addresses, but as a non-pillar owner the result set gets filtert down in the _filterProjectsAccordingToPillarInfo function to all active projects or projects owned by the selected address.
How?
With the following change the situation would be equal to that of a pillar user and the user would not have to change the selected address to see all his owned projects.
This above solution brings non-pillar users in line with pillar users, but eventually one does need to switch to the owned address when creating phases. This applies to both non-pillar and pillar users. This could be a bit confusing when someone is not familiar with the concept. The "create phase" will only be visible when the address of the project owner is selected.
Pros

Allows the user to see all projects without the need to switch.

Cons

Confusing when creating phases

Alternative solution
Bring pillar users in line with non-pillar users. Both user types only see "my projects" that match the current selected address.

Personally I think showing all active projects to all users by default makes sense.
It can help users keep up with what is going on in the network and encourage them to engage with the community.
Maybe a tool tip on projects owned by the user that they need to switch to the address in order to make phases.

I agree with that. Switching between addresses could be more intuitive and displaying tooltips can certainly guide the user in this. I consider both features a separate change to improve address switching. Should this change wait for that feature first?

@KingGorrin i will approve this
this is more subjective and as mentioned maybe requires some future work
but given that this is our binary, i'm comfortable with pushing towards what we think is subjectively better

I like the change, though as you stated, it can create a confusing situation for users.
I've cloned your branch and made adjustments to use  the project owner's address when interacting with phases.
However, I've been having trouble confirming that it works correctly on my devnet.
Some timing issues related to AZ proposal voting periods...
Feel free to consider this update or only merge your changes for now.


removed version (i.e. v) prefix from run scripts to match trackers and refactored FS extractor

Yes, true. Will do!


Fix Haskell TODO syntax

Over a year, and I forgot about this.
Anyway, the point is that  #8055 is not sufficient to allow TODO to have the correct syntax coloring.
This commit should fix it.

thanks!


I don´t get the syntax for FHEM OUT / CMD

I want to send to FHEM:
"get EnO_0599D728 status"
How can i do this? Can you send a picture how to configure the inject?
Where to put device, cmd, action and so on?
Thanks in advanced!!
Regards, Oliver

get is the wrong approach. With list you get further.
Send list EnO_0599D728 state in msg.cmd to the node fhem-cmd.

Its working now but it´s opening a lot of connections to fhem.
My log tells -> Accept failed (tPort: Too many open files)
It crash my fhem!
lsof.txt
How can i make only one connection or close connection after sending?


Cut any tag?

Can be closed :)
https://github.com/denoland/setup-deno/releases/tag/v1.0.0

@satyarohith thanks!
And thanks, Luca, for cutting v1!


How to change the font

I read the previous issue and used your method to modify the font, but there was no change, just changed to my default font. Would you like to ask if there are other ways to change the font?

@MachiBarton change "FontName" by the name of the font you'd like to use.
var text = new SpriteText2D(data.text, {
  font: "30px FontName",
})

If you're using a custom font, you may need to use this trick to pre-load it: https://github.com/gamestdio/three-text2d/issues/6#issuecomment-214025603


ClojureScript compilation not skipped when starting REPL

Expected Behavior
Clojure compilation and check tasks are filtered out if you only run ./gradlew clojureRepl to speed up REPL startup. This should happen for ClojureScript
Current Behavior
ClojureScriptCompile tasks are still executed.

Context

REPL startup is significantly slowed by requiring CLJS compile to happen first.
Steps to reproduce

Create a CLJS project with some CLJS source in it.
Run ./gradlew clojureRepl --console=verbose
Notice that the compile*ClojureScript aren't SKIPPED
Environment

Build scan URL:
gradle-clojure version: 0.4.0-beta.9
Gradle version: 4.8
Java version: 10.0.1
OS version: Windows 10

Nevermind, it is being skipped.


Fix: #682 Corrected events scroll element

Fix: #682

Aligned the scroll element properly.
Fixed  the leaking of animation near footer.
Corrected overlap of pseudo elements with navbar by properly adjusting z-index.

https://github.com/user-attachments/assets/c7bacc07-d401-42fc-9c7b-f8ba864a11e2

@sanjay-kv
Hey please add a label as well, its not reflecting in my Gssoc profile. Is there any issue from my side? If so please let me know..

@sanjay-kv Any help is appreciated..

@sanjay-kv
I think its because of the labels only.
It was a level 2 issue
Issue no. : #682


[BUG] - (maybe) Autotunnel starts when connected to trusted WiFi

Describe the bug
Appologies because I'm afraid it's default en expected behaviour for android (unfortunately) and yet I still make an issue, sorry:
When WiFi is off and I turn it on, it connects to my trusted WiFi, and the app enables the tunnel.
This is when my GPS is turned off, which is all of the time. I only enable it when I need to use it... If my GPS is turned on, it appears to not enable the vpn.
Smartphone (please complete the following information):

Device: Samsung Galaxy S23
Android Version: Android 14
App Version: 3.4.6

To Reproduce
Turn off WiFi and GPS. Then turn on WiFi and phone connects to trusted WiFi.
Expected behavior
That the tunnel doesn't enable when on trusted WiFi when GPS is off.
Screenshots (Only if necessary)
Additional context
I'm afraid this is normal and expected behaviour by/because of android... But I hope(d) that there is a way around.

Hello! No worries. Yes, this is unfortunately an android limitation because wifi name is considered location data.
I think the best way around this (from a privacy perspective) is to use an alternative android flavor that helps you retain some level of privacy while still being able to use location services. I highly recommend GrapheneOS for this and for many other reasons.
You can read more about how they accomplish this here: https://grapheneos.org/faq


req.header / req.get are undefined

Both req.get() and req.header() are undefined, resulting in errors when using certain middleware.
https://github.com/textbook/express-msgpack/blob/master/src/index.js#L37
https://expressjs.com/en/api.html#req.get

I can implement this both method but the common problem is that Express gives a lot of methods to the req & res which can be used in Express middlewares and I don't want to implement all methods:
req.app
req.baseUrl
req.body
req.cookies
req.fresh
req.hostname
req.ip
req.ips
req.method
req.originalUrl
req.params
req.path
req.protocol
req.query
req.route
req.secure
req.signedCookies
req.stale
req.subdomains
req.xhr
req.accepts()
req.acceptsCharsets()
req.acceptsEncodings()
req.acceptsLanguages()
req.get()
req.is()
req.param()
req.range()
res.app
res.headersSent
res.locals
res.append()
res.attachment()
res.cookie()
res.clearCookie()
res.download()
res.end()
res.format()
res.get()
res.json()
res.jsonp()
res.links()
res.location()
res.redirect()
res.render()
res.send()
res.sendFile()
res.sendStatus()
res.set()
res.status()
res.type()
res.vary()

In this case it would be better to use Express with API Gateway:
const ApiGatewayService = require("moleculer-web");

module.exports = {
    mixins: [ApiGatewayService],

    settings: {
        // Disable internal HTTP server because we will use Express server
        server: false,
        routes: [{
            aliases: {
                "GET hi": "test.greeter"
            }
        }]
    },

    started() {
        // Create Express application
        const app = express();

        // Use ApiGateway as middleware
        app.use("/api", this.express());

        // Listening
        app.listen(3333, err => {
            if (err)
                return this.logger.error(err);

            this.logger.info("Open http://localhost:3333/api/hi?name=John");
        });
    }
}

Yep, you’re right. I’ll close the issue.

Would it be better to use express by default?
e.g. create the express server here https://github.com/moleculerjs/moleculer-web/blob/master/src/index.js#L292
That way we can integrate with many existing express middleware out of the box.

Express is slow, and we aim to make a fast api gateway

FWIW I create an express mixin
const web = require('moleculer-web')
const express = require('express')

module.exports = {
  mixins: [web],
  settings: {
    server: false,
    port: process.env.PORT || 3000,
  },

  started() {
    return new this.Promise((resolve, reject) => {
      // Create Express application
      const app = express()
      app.use('/', this.express())
      this.app = app.listen(this.settings.port, err => {
        if (err)
          return reject(err)

        this.logger.info(`Express is listening on ${this.settings.port}`)
        resolve()
      })
    })
  },

  stopped() {
    return new this.Promise((resolve, reject) => {
      this.app.close(err => {
        if (err)
          return reject(err)

        this.logger.info('Express stopped!')
        resolve()
      })
    })
  },

}


Support for min_const_generics?

I tried using this crate with
#![feature(min_const_generics)]

use array_init;

struct Bar(u32);

impl Default for Bar {
    fn default() -> Bar {
        Bar(13)
    }
}

struct Foo<const N: usize> {
    foo: [Bar; N]
}

impl<const N: usize> Foo<N> {
    fn new() -> Self {
        Self {
            foo: array_init::array_init(|_| Default::default())
        }
    }
}

but it fails with
error[E0277]: the trait bound `[Bar; N]: IsArray` is not satisfied
   --> crates/storage/src/lazy/lazy_array.rs:267:13
    |
12 |             array_init::array_init(|_| Default::default());
    |             ^^^^^^^^^^^^^^^^^^^^^^ the trait `IsArray` is not implemented for `[Bar; N]`
    |
   ::: ~/.cargo/registry/src/github.com-1ecc6299db9ec823/array-init-1.0.0/src/lib.rs:89:12
    |
89  |     Array: IsArray,
    |            ------- required by this bound in `array_init`
    |
    = help: the following implementations were found:
              <[T; 0] as IsArray>
              <[T; 100] as IsArray>
              <[T; 101] as IsArray>
              <[T; 102] as IsArray>
            and 509 others

Is support for min_const_generics something you want to implement?

Not until it stabilizes, unless it can be done as a feature flag.

I just now noticed that there is a feature const-generics for this crate, which already does exactly what I need. Is your plan to remove the feature flag and make it available by default once min_const_generics has been stabilized?

Yep


Code review for memory leaks

Code (pen & paper) and valgrind based review for memory leaks - no bug/issue presents, just a feeling.

Done.


[BUG] WandB logger experiment name is always default with n2v configuration

Describe the bug
While using N2V configuration and the WandB as logger, the experiment name is always shown as "CAREmics" in WandB runs even when the name is set in the configuration.
To Reproduce
Code snippet allowing reproducing the behaviour:
config = create_n2v_configuration(
    experiment_name="n2v_zs_npm_ex003_re03_40x_pfaga_dapi",
    data_type="tiff",
    axes="ZYX",
    patch_size=(32, 64, 64),
    batch_size=16,
    num_epochs=100,
    logger="wandb",
)

print(config)

# instantiate a CAREamist
careamist = CAREamist(source=config)

# train
careamist.train(
    train_source=root_path,
    val_percentage=0.1,
    val_minimum_split=1,
)

Expected behavior
The experiment name in WandB logger should match the defined name in the configuration of the model.
Screenshots
Screenshot of WandB logging

Desktop (please complete the following information):

OS: Ubuntu
Version 22.04

Environment:
careamics_env_20240725.txt

Thank you for bringing this to our attention! It seems the experiment_name argument that is used to initialise the CAREamist class (default is "CAREamics"), is what is being passed on to the logger instead of the experiment name in the config. We can get this fixed quickly!


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-yml-archive-non-versioning-archive/pull/19 is merged into live branch.
Auto archive content to https://github.com/VSC-Service-Account/docs-yml-archive-non-versioning-archive.git

Docs Build status updates of commit 4a6ddc0:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

docs/TOC.yml
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-1.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-2.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-3.yml
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-1.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-2.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-3.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Node latest version compatibility

Added primordial dependency to support latest node version.
Deleted link to a non existing script file.
Deleted debugging logs.
Fixed random screen dims upon the load of the histogram page.

I have made the suggested changes, thank you.

Please test these changes properly and let me know when it's ready to be merged.

Please test these changes properly and let me know when it's ready to be merged.

I've tested it and everything looks good

This should be up and running on the live site.


Add a link to https://github.com/brick/date-time

If someone wants a more full-fledged date/time class, they might prefer this library. I should link to it from the README.

Actioned by 1971261afc6e42f63113af9cb8a05f640fb213af.


Fix metric-windows-network.rb empty output

The typeperf command outputs a leading \n character which prevents
the CSV.parse function from extracting the headers from the first line.
Closes #93

Thanks!


Upgrading the LiveKit Server version to 1.8.0

The earlier version 1.4.2 was not working as expected in Azure AKS cluster, hence upgrading the version to 1.8.0.

Thanks a lot!


astream_events in version v2 throws: "TypeError: list indices must be integers or slices, not str"

Example Code
async for event in agent.astream_events(
    input={...},
    config={...},
    include_tags=[...],
    version="v2"
):
    print(event)

Error Message and Stack Trace
File /opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:5256, in RunnableBindingBase.astream_events(self, input, config, **kwargs)
   [5250](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:5250) async def astream_events(
   [5251](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:5251)     self,
   [5252](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:5252)     input: Input,
   [5253](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:5253)     config: Optional[RunnableConfig] = None,
   [5254](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:5254)     **kwargs: Optional[Any],
   [5255](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:5255) ) -> AsyncIterator[StreamEvent]:
-> [5256](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:5256)     async for item in self.bound.astream_events(
   [5257](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:5257)         input, self._merge_configs(config), **{**self.kwargs, **kwargs}
   [5258](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:5258)     ):
   [5259](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:5259)         yield item

File /opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:1246, in Runnable.astream_events(self, input, config, version, include_names, include_types, include_tags, exclude_names, exclude_types, exclude_tags, **kwargs)
   [1241](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:1241)     raise NotImplementedError(
   [1242](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:1242)         'Only versions "v1" and "v2" of the schema is currently supported.'
   [1243](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:1243)     )
   [1245](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:1245) async with aclosing(event_stream):
-> [1246](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:1246)     async for event in event_stream:
   [1247](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/runnables/base.py:1247)         yield event

File /opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/tracers/event_stream.py:985, in _astream_events_implementation_v2(runnable, input, config, include_names, include_types, include_tags, exclude_names, exclude_types, exclude_tags, **kwargs)
    [980](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/tracers/event_stream.py:980) first_event_sent = True
    [981](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/tracers/event_stream.py:981) # This is a work-around an issue where the inputs into the
    [982](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/tracers/event_stream.py:982) # chain are not available until the entire input is consumed.
    [983](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/tracers/event_stream.py:983) # As a temporary solution, we'll modify the input to be the input
    [984](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/tracers/event_stream.py:984) # that was passed into the chain.
--> [985](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/tracers/event_stream.py:985) event["data"]["input"] = input
    [986](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/tracers/event_stream.py:986) first_event_run_id = event["run_id"]
    [987](https://file+.vscode-resource.vscode-cdn.net/opt/miniconda3/envs/ll-engine/lib/python3.11/site-packages/langchain_core/tracers/event_stream.py:987) yield event

TypeError: list indices must be integers or slices, not str

Description
I'm trying to switch from astream_events v1 to astream_events v2 in order to use custom events. The above code works perfectly fine in version v1, but throws the error after changing only the version parameter.
The documentation says no changes are required in order to switch to the new version.
Anyone had this issue and resolved it somehow?
System Information

OS:  Darwin
OS Version:  Darwin Kernel Version 24.0.0: Sat Jul 13 00:55:20 PDT 2024; root:xnu-11<IP_ADDRESS>.4~50/RELEASE_ARM64_T8112
Python Version:  3.11.8 (main, Feb 26 2024, 15:36:12) [Clang 14.0.6 ]

Package Information

langchain_core: 0.2.25
langchain: 0.2.11
langchain_community: 0.2.10
langsmith: 0.1.79
langchain_cli: 0.0.21
langchain_openai: 0.1.19
langchain_pinecone: 0.1.3
langchain_text_splitters: 0.2.2
langgraph: 0.1.17
langserve: 0.2.2

Thanks for reporting this, would you mind including a fully reproducible example?

Unfortunately, I do not think I can include much more from my code.
However, I found out that this issue only exists when include_tags is used. Not sure why though...


Domain Adaptation using SeeingThroughFog

Dear Mario Bijelic, thanks for your great job! Recently, I am trying to use CyCADA to realize domain adaptation from clear winter captures to adverse weather scenes, as shown on your official website. However,  my CyCADA generates snow with poor results after training on the SeeingThroughFog for 70 epochs. So I would like to ask you for help. Could you tell me about your training steps and training parameter settings？

Dear @Rolandxx7,
the domain adaptation do not need labels for supervision. Hence I was able to use way more unlabelled data then labeled data for the supervised methods, which are at the moment not available online due to space constraints. I have experienced that with less data you have to constrain the problems more. Hence throwing out the foggy data and constraining methods only to tasks clear to foggy or clear to snowy conditions helps. Don't hesitate to reach out via mail directly.
Best,
Mario


Validate rollup globals for bazel

Once we switch to Bazel, we should validate the rollup globals somehow. I have some plans to achieve this by using a genrule in combination with a tslint rule.
This is mostly for tracking now.

Done with #17173


Cleanup in prep for kex2

This is a branch off of the big desktop branch. This is the non-kex2 things i had to fix to make kex2 work and also some moving around which we really should just pull the bandaid on

Removed all the flow things for most files ( @MarcoPolo this is what we wanted right )
Moved tabs out of the tabs folder
Sharing more code (store, config, etc)
Make filenames more consistent. blah/index.js blah/index.render.mobile.js or blah.js blah.native.mobile.js

@keybase/react-hackers this and nojima/DESKTOP-thrashing should likely go asap to avoid more merge nightmares

LGTM!


What is the "load" config value in a periodic event?

I'd like to test this project with a periodic event that will do some data sync/caching with a remote system. I can't see from the doco exactly what the load config parameter does?
There is a sample cap app in the repo where it is set to "40".

The load parameter serves the function of regulating the number of concurrent processes permitted per app-instance. The maximum load for each app-instance is 100.
Consider the following scenario:

There are three events (irrespective of whether they are periodic or ad-hoc events).
Event A has a specified load of 40.
Event B has a specified load of 50.
Event C has a specified load of 20.

At the start, when the server initiates the event queue, the load is 0. If Event A is triggered, the load becomes 40. The remaining load that the app-instance can handle is 60. Therefore, Event B can also be started, which brings the total load to 90. At this point, Event C must wait until either Event A or B is completed because the current load is already at 90. However, if your app is running on Cloud Foundry with more than one instance, another instance with available capacity would process Event C.
I hope this answers your question. I will add such an example to the documentation to make this concept clearer.

Ok, interesting. So it's more a way to block too much load on your app's instance.
So if you only want to have one event to be processed at a time you'd set the load property to 100.
In my case with a scheduled event I'm not sure that it matters - unless I get into an ugly situation where the processing time of the event handler is longer w the time between events.

Ok, interesting. So it's more a way to block too much load on your app's instance.

Exactly, in our project, we process almost a million events every day. In such use cases, it's crucial to avoid CPU/Memory spikes. And in our project, some processes consume much more memory/CPU than others. That's why we want to differentiate.

So if you only want to have one event to be processed at a time you'd set the load property to 100.

Correct, in a single tenant application (let me explain this in conjunction with the next question)

In my case with a scheduled event I'm not sure that it matters - unless I get into an ugly situation where the processing time of the event handler is longer w the time between events.

This would still be relevant even if you only have one event but multiple tenants. Imagine you have a multi-tenancy app with 100 tenants. In such cases, you'd also want to control the parallelization in your application.


Menu is hidden

The menu is hidden in the "computer" version.

Can you please clarify?  I don't understand what you mean.

The menu containing "Home", "Getting started", "Guide" was not shown. But... now it's shown, so no idea what happened.


Replace .eslintrc.js with .eslintrc.yml

Trying to set it up so that it uses the eslint-config-google ruleset, but it will not. Currently, the eslint test passes no matter what because it is checking against an empty ruleset. I will have to write my own ruleset, which I will do later today

Also, there is a second linter that the Javascript is passed through, which is the one that fails with the bad code. For the minute, it will do as a linter, but I may need to disable it later if its rules conflict with the google style guide


BUG: double occurence of home and benefits in nav bar of login/signup page and email is allowed to write only in uppercase .

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
In nav bar of sigup /  login page , home and benefits were occuring twice .
Email was allowed to write in only uppar case which is not appropriate .
email box was not same size as password .

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@anuragverma108 @RitiChandak I have fixed this issue and created a pull request for the same . Please assign this issue to me and merge my pull request under gssoc label .


line break and # are not showing in fenced markdown

I use below in my test.md file, when I display it shows '```' and <h1>
```
$ kubectl exec -it svc/mariadb -- /bin/sh

# mysql -u root -p
Enter password: YOUR_ROOT_PASSWORD_HERE

MariaDB [(none)]> CREATE DATABASE wordpress_db;
MariaDB [(none)]> CREATE USER wordpress_user identified by 'strong-password';
MariaDB [(none)]> GRANT ALL ON wordpress_db.* TO wordpress_user;
```

but if i remove line break and insert a space before '#', then it works
```
$ kubectl exec -it svc/mariadb -- /bin/sh
 # mysql -u root -p
Enter password: YOUR_ROOT_PASSWORD_HERE
MariaDB [(none)]> CREATE DATABASE wordpress_db;
MariaDB [(none)]> CREATE USER wordpress_user identified by 'strong-password';
MariaDB [(none)]> GRANT ALL ON wordpress_db.* TO wordpress_user;
```

any idea??

Hello,
Is the fenced_code_blocks option enabled on your Redcarpet::Markdown object ? Otherwise, could you provide a script that reproduces the issue please ?
The following doesn't reproduce it:
require 'redcarpet'

content = <<Markdown
```
$ kubectl exec -it svc/mariadb -- /bin/sh

# mysql -u root -p
Enter password: YOUR_ROOT_PASSWORD_HERE

MariaDB [(none)]> CREATE DATABASE wordpress_db;
MariaDB [(none)]> CREATE USER wordpress_user identified by 'strong-password';
MariaDB [(none)]> GRANT ALL ON wordpress_db.* TO wordpress_user;
```
Markdown

puts Redcarpet::Markdown
          .new(Redcarpet::Render::HTML, fenced_code_blocks: true)
          .render(content)

I'm giving this a close ; feel free to comment with more details about the problem so we can reopen if needed.


pycharm: Run a batch file in a completely hidden way

#8359 fix pycharm creation of virtualenv by introduce a batch file as shims to  launch the executable for true path(not hardlink path), which makes command prompt splash screen every time execute pycharm by shortcuts or terminal. To address this, I had change bat to vbs. The idea come from https://superuser.com/a/62646/1802860

Relates to #8359

[x] I have read the Contributing Guide.

/verify


Deal with parallel invocations of meson stepping on each other

DV simulations are run in 'batch' mode where tests are farmed out to compute farms. This is the same in our case as well, where we dispatch all chip level tests in parallel. I figured it would greatly reduce the build time if I had all DV tests "share" the same build directory root for compiling their corresponding bare-metal C tests. This unfortunately does not work, since the meson invocations start to step on each other. Please see the following report page for (some) details:
https://reports.opentitan.org/hw/top_earlgrey/dv/latest/results.html
Is there a way meson can do a semaphore lock on the build root directory such that an another invocation "waits" on the previous one to complete?

Closed by bc6aabd2aed83c494c873ce98526928ce6e0bc6e, I think.


MSFT_xWebBindingInformation: variables don't seem to be working

Details of the scenario you tried and the problem that is occurring
I'm trying to use configuration variables within MSFT_xWebBindingInformation. It doesn't seem to work with variables - as soon as I hardcode values everything is working fine. Local variables also work, anything that comes from the node config doesn't.
See below DSC configuration. When I use $test as CertificateSubject everything works. When I use $caName or $Node.CAWildcardSubject for CertificateSubject, the binding fails without finding the certificate. I believe the CertificateSubject is an empty string then which is why I get the CertificateThumbprint error message.

CertificateSubject = 'spdev.test' works
CertificateSubject = $test works
CertificateSubject = $caName fails
CertificateSubject = $Node.CAWildcardSubject fails

I included the CertReq resource just to show that $Node.CAWildcardSubject is used at other places without problems (i.e. it contains data). Other places not within a subconstruct of MSFT_xWebBindingInformation.
Verbose logs showing the problem
Unable to validate BindingInfo: \"The CertificateThumbprint property is required for bindings of type \"https\".\"."},
Suggested solution to the issue
I think this has to do with the construct of MSFT_xWebBindingInformation within xWebSite - I don't know this construct from any other DSC resource. It seems that node configuration somehow isn't passed into MSFT_xWebBindingInformation?
The DSC configuration that is used to reproduce the issue (as detailed as possible)
$test = 'spdev.test'
# Node.CAWildcardSubject is 'spdev.test'
$caName  = $Node.CAWildcardSubject

xWebSite PortalSSL
{
  Name         = 'Portal'
  BindingInfo  = MSFT_xWebBindingInformation {
    Protocol           = 'https'
    CertificateSubject = $caName
    HostName           = 'portal.spdev.test'
    IPAddress          = '*'
Port               = 443
  }
  DependsOn = '[SPWebApplication]Portal'
}
[...]
CertReq WildcardSSLCert
{
  CARootName          = $Node.CACommonName
  Subject             = $Node.CAWildcardSubject
  KeyLength           = '4096'
  Exportable          = $true
  #keep the weird double quotes, otherwise "Invalid provider specified"
  ProviderName        = '"Microsoft RSA SChannel Cryptographic Provider"'
  OID                 = '<IP_ADDRESS>.<IP_ADDRESS>.1'
  KeyUsage            = '0xa0'
  CertificateTemplate = 'WebServer'
  AutoRenew           = $true
  FriendlyName        = $Node.CAWildcardCertName
  Credential          = $AdminCredential
  DependsOn           = '[Script]EnableWebServerEnroll'
}

The operating system the target node is running
OsName               : Microsoft Windows Server 2019 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture       : 64-bit
WindowsVersion       : 1809
WindowsBuildLabEx    : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage           : en-US
OsMuiLanguages       : {en-US}
Version and build of PowerShell the target node is running
5.1.17763.1
Version of the DSC module that was used ('dev' if using current dev branch)
<IP_ADDRESS>

My mistake - $Node.CAWildcardSubject really was empty.


TimezoneOffset option for LuisRecognizerMiddleware should be set per turn

H @cleemullins & @emadelwany, as it is, the TimezoneOffset for LuisRecognizerMiddleware is set in the constructor and in a globalized solution I want LUIS to resolve things like "tomorrow" based on the user's time zone.
User's can be anywhere in the world so I think there should be a way of setting this offset per turn based on the user location (similar to what we do with TranslatorMiddleware) and not in the constructor. of the middleware.
Makes sense? or there's an easier way of getting LUIS to resolve dates and times based on the user's location?

@gabog - I think that's a very good point. I can think of some "hack" ways to do this, but a big problem here, historically, is finding out the users location to enable finding their tz offset. is that a problem that's surmountable?
Behavior wise, I do think our entire stack should set the TZ Offset for the turn and store it in the Context (or even - for C# - set it in the thread. That'll have some issues with all our async code, but should be solvable).

@johnataylor - John, you removed this entire class. Can you sync with Gabo as to the reason why? He was using it.


Parse querystring if using url connection method

For Issue #78

Added querystring parse if there are any query's provided in the url to support ?ssl=true/false option.
Switched to use pathname instead of path to avoid including the ?ssl=true in the database name

I've tested this and it seems to work. I'd like a second opinion on this! :) Who wants to test this?


Html tag  is deprecated

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/font
The editor should not use it. Does always using styleWithCSS fixed this?

解决了吗？


Added AVI recording

I have wanted to try recording a while now, your project gave me motivation lol.  I added working AVI  read/writing and refactored to a little more standard C# conventions, hope that's okay.
-Added writing/reading of AVI files by adding pinvokes for avifil32.dll
and a read/write wrapper for them.
-Refactored to standard c# conventions  and resharper settings.
-Added DirectBitmap class for improved performance
-Added bool check to raise screen shot taken event when calling
GetBitmapOfScreen();. This is useful for creating a steady stream of
bitmap frames to use for AVI recording.
-Added Native folder

Wow amazing work :)
Will look through it. I hope, I understand everything, since I started programming 6 months ago.
Thank you very much for contributing!

I wrote a little bit of helpful info to get you started on learning how the AVI stuff is working below, as it can be scary to learn about native code / C#. I know it was for me, I am close to the 1.5 year mark since I started programming really, so just keep at it. Your code is a lot better than mine six months ago.
The code used for the AVI support looks a little scary. The best way is to figure out how it works if you're interested (I think..) is to look at the Avifil32.cs file. Look at each method declaration and make a google search for it and follow the MSDN link.
For example the "AVIFileCreateStream" method
        [DllImport("avifil32.dll")]
        public static extern int AVIFileCreateStream(
            IntPtr pfile,
            out IntPtr ppavi,
            ref Avistreaminfo psi);

returns this link when googling "AVIFileCreateStream"
https://msdn.microsoft.com/en-us/library/windows/desktop/dd756793(v=vs.85).aspx
Right away it mentions what the method does. Then it shows what it looks like in C++, which is good to know since we are dealing with native C++ code being used in c#.
This is how it defines it:
STDAPI AVIFileCreateStream(
   PAVIFILE       pfile,
   PAVISTREAM     *ppavi,
   AVISTREAMINFO  *psi
);

So we recreated the AVISTREAMINFO struct by googling it on MSDN https://msdn.microsoft.com/en-us/library/windows/desktop/dd756832(v=vs.85).aspx and porting it to a c# struct in order to be able to call the c++ api with the correct input.
C++ struct on msdn
typedef struct {
  DWORD fccType;
  DWORD fccHandler;
  DWORD dwFlags;
  DWORD dwCaps;
  WORD  wPriority;
  WORD  wLanguage;
  DWORD dwScale;
  DWORD dwRate;
  DWORD dwStart;
  DWORD dwLength;
  DWORD dwInitialFrames;
  DWORD dwSuggestedBufferSize;
  DWORD dwQuality;
  DWORD dwSampleSize;
  RECT  rcFrame;
  DWORD dwEditCount;
  DWORD dwFormatChangeCount;
  TCHAR szName[64];
} AVISTREAMINFO;

Ours we converted
    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 1)]
    public struct Avistreaminfo
    {
        [MarshalAs(UnmanagedType.I4)] public int fccType;
        [MarshalAs(UnmanagedType.I4)] public int fccHandler;
        [MarshalAs(UnmanagedType.I4)] public int dwFlags;
        [MarshalAs(UnmanagedType.I4)] public int dwCaps;
        [MarshalAs(UnmanagedType.I2)] public short wPriority;
        [MarshalAs(UnmanagedType.I2)] public short wLanguage;
        [MarshalAs(UnmanagedType.I4)] public int dwScale;
        [MarshalAs(UnmanagedType.I4)] public int dwRate; // dwRate / dwScale == samples/second
        [MarshalAs(UnmanagedType.I4)] public int dwStart;
        [MarshalAs(UnmanagedType.I4)] public int dwLength;
        [MarshalAs(UnmanagedType.I4)] public int dwInitialFrames;
        [MarshalAs(UnmanagedType.I4)] public int dwSuggestedBufferSize;
        [MarshalAs(UnmanagedType.I4)] public int dwQuality;
        [MarshalAs(UnmanagedType.I4)] public int dwSampleSize;
        [MarshalAs(UnmanagedType.Struct, SizeConst = 16)] public Rect rcFrame;
        [MarshalAs(UnmanagedType.I4)] public int dwEditCount;
        [MarshalAs(UnmanagedType.I4)] public int dwFormatChangeCount;
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)] public string szName;
    }

Thank you very much. Helps me a lot understanding it.


Dynamic successRedirect.

How can I redirect the page to the URL that is dynamic?
export let loader: LoaderFunction = ({ request, params }) => {
  return authenticator.authenticate("google", request, {
    successRedirect: "/dashboard",
    failureRedirect: "/login",
  });
};

Currently, successRedirect is hardcoded to some predefined URL, in this case "/dashboard".
My use case is to redirect to the page, that requested authentication rather than standard dashboard page.
Help appreciated :)

@pkishorez this article might help.
https://sergiodxa.com/articles/add-returnto-behavior-to-remix-auth

Check this out https://github.com/sergiodxa/remix-auth#custom-redirect-url-based-on-the-user

@pkishorez How did you manage the dynamic success redirect?


[Feature Request] Excludes all the admonitions codeblock by default

There're many Admonitions codeblock in notes. Could they excluded by default?
ad-note, ad-info, etc. It will be better if we can specify like ad-* (wildcard) syntax.
For example:
```ad-note
Something new
```

You can exclude them in the settings, but I will make them default. I will also implement the wildcard method next week.

It is fixed in version 1.1.7. See release notes


Ruff stops working when I indicate a config file in CocConfig

Hi there. I am wondering what I am doing wrong here. I have several rules I like to change for nearly all my projects, like line-length, single vs double quotes, etc. I have made a .ruff.toml in my dotfiles folder and in my CocConfig I added "pylsp.plugins.ruff.config": "~/dotfiles/ruff.toml"  to link to it for use.
I can see linting errors when I remove the line, and when I add it they go away. Am I doing this wrong?
If it matters I'm using VIm, not NeoVim. I also have the following pylsp settings:
{
	"pylsp.enable": true,
	"pylsp.builtin.enableInstallPythonLspRuff": true,
	"pylsp.plugins.pycodestyle.enabled": false,
	"pylsp.plugins.pyflakes.enabled": false,
	"pylsp.plugins.mccabe.enabled": false,
	"pylsp.plugins.ruff.format": [
		"I"
	],
	"pylsp.plugins.ruff.config": "~/dotfiles/ruff.toml"
}

Do you have ruff config files in your projects or a ruff section in the pyproject.toml file?
python-lsp-ruff ignores this config file if it finds an existing configuration in the project directory.
If thats not the case, please provide the lsp logs by setting the pylsp.plugins.ruff.config to something like <path_to_pylsp> -vvv --log-file /tmp/lsp.log

No, I do not have any ruff config files in the project dir, nor is there anything about ruff in the pyproject.toml
Unless I'm mistaken about something, setting "pylsp.plugins.ruff.config": "- /usr/bin/pylsp -vvv --log-file /tmp/lsp.log" does not result in a lsp.log in /tmp after CocRestart or even a hard reset on Vim.

Sorry, I meant pylsp.plugins.ruff.executable, please enable debugging with that and post the output

No worries. Okay so I have tied both the path to pylsp and the path to ruff under "pylsp.plugins.ruff.executable": as well as with and without the line pointing to me config in my dotfiles added. Neither produce a log in /tmp.  I have verified the paths to the executables using which so we know they are installed. Just for the sake of completeness here is the cocconfig lines I tried:
	"pylsp.plugins.ruff.executable": "~/.local/bin/ruff -vvv --log-file /tmp/lsp.log"

as well as
	"pylsp.plugins.ruff.executable": "/usr/bin/pylsp -vvv --log-file /tmp/lsp.log"

Any new ideas? Thanks for taking the time to help me out!

Hmm, you might need to give each argument as an item of a list, something like ["pylsp", "-vvv", "--log-file", "/tmp/lsp.log"], check whether that is valid vimscript syntax though

This is in my coc-settings so it's json, not vimscript. Good idea with passing a list of strings--I forgot that there are times where that is necessary--though though this also does not give me a log. My json linter also gives me a error saying it expects a single string.
I'm sorry this is lingering so long. Any other ideas? If not then maybe I'll just make a cp of my ruff.toml to put in each project.

I am not sure why pylsp does not print debugging messages, so here are some ideas to play with:

check out if choosing a different directory for the log file works
double-check that the correct python executable is used (pylsp.builtin.pythonPath could e.g. be explicitly set in the coc-settings.json
maybe check whether you are running in a python environment with an older pylsp/pylsp-ruff/ruff version (did you e.g. set g:python3_host_prog?)

If that doesn't help, you could also try with a minimal neovim config and see if you can reproduce this issue.
It might also help to post over at coc-pylsp and ask for help.

You can close the issue....it's pretty embarrassing but I solved it :joy:
I became suspicious that the problem was with ruff and not pylsp, so I ran it via the command line and found out I  had accidentally set tabs to 'spaces' not 'space' and it was causing a parsing error. Sorry for wasting so much of your time, but I really appreciate the effort you went through to help me out!

Great to hear it resolved itself!