[Question] How store FnService<F>?

Hello,
full source code.
router.rs:
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
 * File Name   : router.rs
 * Created at  : 2024-05-05
 * Updated at  : 2024-05-09
 * Author      : jeefo
 * Purpose     :
 * Description :
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.*/
//use std::pin::Pin;
use std::future::Future;
use std::collections::HashMap;
use xitca_web::WebContext;
//use xitca_web::service::{fn_service, FnService};
use xitca_web::error::Error;
use xitca_web::http::StatusCode;
use xitca_web::http::WebResponse;
//use xitca_web::http::header::CONTENT_TYPE;
//use xitca_web::http::const_header_value::JSON;
use xitca_web::body::ResponseBody;

type WebRes = Result<WebResponse, Error>;

pub trait MyService<Req = ()> {
  type Response;
  type Error;
  fn call(&self, req: Req) ->
    impl Future<Output = Result<Self::Response, Self::Error>>;
}

#[derive(Clone)]
pub struct MyFnService<F>(pub F);

impl<F, Req, Fut, Res, Err> MyService<Req> for MyFnService<F>
where
  F   : Fn(Req) -> Fut,
  Fut : Future<Output = Result<Res, Err>>,
{
  type Response = Res;
  type Error    = Err;

  #[inline]
  fn call(&self, _req: Req) -> Fut {
    unreachable!()
  }
}

pub struct Route<F>
{
  pub path     : &'static str,
  pub method   : &'static str,
  pub callback : MyFnService<F>,
}

pub struct Router<F> {
  pub routes: HashMap<&'static str, Route<F>>,
}

impl<F> Router<F> {
  pub fn new() -> Self {
    Self {
      routes: HashMap::new(),
    }
  }

  pub fn register(&mut self, route: Route<F>) -> &mut Self {
    self.routes.insert(route.path, route);
    self
  }
}

pub fn print_api<F>(router: &Router<F>) {
  for (path, route) in &(router.routes) {
    match route.method {
      "GET" => {
        println!("[GET]       {}", path);
      }
      "POST" => {
        println!("[POST]      {}", path);
      }
      "PUT" => {
        println!("[PUT]       {}", path);
      }
      "DELETE" => {
        println!("[DELETE]    {}", path);
      }
      _ => unreachable!()
    }
  }
}

async fn hello_world(ctx: WebContext<'_>) -> WebRes {
  let mut res = ctx.into_response(ResponseBody::from("Hello world"));
  *res.status_mut() = StatusCode::OK;
  Ok(res)
}

pub fn init() {
  let mut router = Router::new();
  router.register(Route{
    path     : "/",
    method   : "GET",
    callback : MyFnService(hello_world),
  });

  router.register(Route{
    path     : "/oauth2/token",
    method   : "POST",
    //callback : MyFnService(hello_world), // <- this works
    callback : MyFnService(crate::oauth2::token),
  });

  print_api(&router);
}

Question
This is the idea. I'm trying to implement my own router. Look example usage from fn init(). Bottom last fn. I'm trying to copy from fn_service. But my rust kung-fu is not enough (skill issue) XD. In the example second register(Route{...}) is interesting.
  router.register(Route{
    path     : "/oauth2/token",
    method   : "POST",
    callback : MyFnService(hello_world), // <- this works
    //callback : MyFnService(crate::oauth2::token),
  });

If I switch callback comment it works. Because previous registered Route and this callback have same fn signatures. Other callback generates compile time error:
error[E0308]: mismatched types
   --> src/router.rs:108:28
    |
108 |     callback : MyFnService(crate::oauth2::token),
    |                ----------- ^^^^^^^^^^^^^^^^^^^^ expected fn item, found a different fn item
    |                |
    |                arguments to this struct are incorrect
    |
    = note: expected fn item `for<'a> fn(WebContext<'a, _>) -> impl futures::Future<Output = std::result::Result<xitca_web::http::Response<ResponseBody>, xitca_web::error::Error>> {hello_world}`
               found fn item `for<'a> fn(WebContext<'a, _>) -> impl futures::Future<Output = std::result::Result<xitca_web::http::Response<ResponseBody>, xitca_web::error::Error>> {token}`
help: the type constructed contains `for<'a> fn(WebContext<'a>) -> impl futures::Future<Output = std::result::Result<xitca_web::http::Response<ResponseBody>, xitca_web::error::Error>> {token}` due to the type of the argument passed
   --> src/router.rs:108:16
    |
108 |     callback : MyFnService(crate::oauth2::token),
    |                ^^^^^^^^^^^^--------------------^
    |                            |
    |                            this argument influences the type of `MyFnService`
note: tuple struct defined here
   --> src/router.rs:30:12
    |
30  | pub struct MyFnService<F>(pub F);
    |            ^^^^^^^^^^^

I don't know I'm explained well or not... But my question is how to store FnService<F> in HashMap ?

From what I see the main problem is making an object safe async trait object. A typical hashmap can only store values with the same size and in your case different callback functions can have different sizes.
In other word you want to store your callbacks as Box<dyn MyService<Req>> to unify their size into boxed trait object but this is not possible with safe Rust right now due to async trait being not object safe (you can find reference here). In xitca-web this limitation is carefully mitigated with extra trait.xitca-web's Router hide this trait from user but it's the trait it directly stores and interact with.
For a solution of your problem I can suggest two approaches:
a. Remove xitca-web from your dependency and utilize xitca-http, xitca-service and xitca-server directly to work with your own router type. You can reference xitca_http::util::router::Router type and it's implements to introduce your own router logic. In general xitca-web is just a composed application with the xitca-xxx and http-xxx crates inside this project. You can use this example as a reference where axum runs on top of this approach.
b. Make a MyServiceDyn trait like xitca_service::object::ServiceObj to enable object safety for your MyService trait where your router stores Box<dyn MyServiceDyn>.


Image mirroring

Hello.
Could you add mirror function?
( transform: scaleX(-1) | scaleY(-1)  | scale(-1) )
it would be very helpful

I had added the scalable option and the scale method for scaling image in v0.11.0. Thank you!


Check exclusions prior to resolving pyproject.toml files

Summary
This PR inverts the order of the "Check if this directory contains a pyproject.toml" and "Check if this path is included" operations.
Right now, build contains a subdirectory that intentionally includes a pyproject.toml with a syntax error (but no other files). You'd expect that:
[tool.ruff]
exclude = ["path/to/directory"]

...would ignore the directory, and thus avoid a parse error. However, right now, when we visit that directory, we check for a pyproject.toml immediately, then skip recursing any further based on the current exclusions.
This PR reverse the order of operations. This is a change in behavior, as previously, it was impossible to exclude a directory that itself contained Ruff configuration. But if a user is excluding a directory as above, this seems like the expected and intuitive behavior.
See https://github.com/charliermarsh/ruff/pull/3569.

\cc @henryiii

Looks reasonable to me!


Important suggestion

Describe your suggested feature
Please add live TV extensions for sports and entertainment, such as soap operas in Spanish, English, Arabic, and Japanese.
Other details
As soon as possible, please.
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] If this is an issue with an official extension, I should be opening an issue in the extensions repository.
[X] I have updated the app to version <IP_ADDRESS>.
[X] I will fill out all of the requested information in this form.

Wrong repo for this kind of issue


yarn dev issue with new package structure

Hello,
I've been trying to port our project to the new package structure and I'm getting a problem with yarn dev inside site or yarn workspaces run dev.
When executed it requires the packages commerce and ours need to be prebuilt (because is trying to link with the dist folder).
For example the error that pops up if you run right away:
error - Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
Error: Cannot find module<EMAIL_ADDRESS>What is the optimal setup/commands to run the project with the current structure?
Thanks

For example the error that pops up if you run right away:
error - Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
Error: Cannot find module<EMAIL_ADDRESS>

@xbassols - I ended up running the build command on each workspace.
example:
yarn workspace @vercel/commerce-bigcommerce build

i did that for each of the following: "@vercel/commerce",
"@vercel/commerce-bigcommerce",
"@vercel/commerce-commercejs",
"@vercel/commerce-kibocommerce",
"@vercel/commerce-local",
"@vercel/commerce-ordercloud",
"@vercel/commerce-saleor",
"@vercel/commerce-shopify",
"@vercel/commerce-spree",
"@vercel/commerce-swell",
"@vercel/commerce-vendure"
Now i get this error: ReferenceError: Cannot access '__WEBPACK_DEFAULT_EXPORT__' before initialization in pages\index.tsx

@xbassols  - got past my error with using node v16, next you would need to configure the appropriate env variable for the particular store you are using i.e. shopify etc etc

Fixed, so for those that happen to have the same problem:

I've upgraded to node 16 although I'm not sure that is necessary needed.
To run the project I need to run dev on each package. For example:
yarn workspace @vercel/commerce run dev
yarn workspace @vercel/commerce-local run dev
yarn workspace next-commerce run dev

Thanks for the help!

@xbassols - Thanks for the input .. but I am still facing some issues
Env : Windows 10, git bash
Here are the steps

Step 1

yarn

Step 2
Duplicate site/.env.template and rename it to site/.env.local
Step 3
Set the commerce provider in the site/.env.local
COMMERCE_PROVIDER=@vercel/commerce-local
Step 4
Ran in separate terminals

 yarn workspace @vercel/commerce run dev

yarn workspace @vercel/commerce-local run dev

yarn workspace next-commerce run dev

In the next-commerce run I get this error

ready - started server on <IP_ADDRESS>:3000, url: http://localhost:3000
info  - Loaded env from C:\workspace\latest\commerce\site.env.local
error - Failed to load next.config.js, see more info here https://nextjs.org/doc
s/messages/next-config-error
Error: Cannot find module<EMAIL_ADDRESS>Require stack:

C:\workspace\latest\commerce\site\noop.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15
)
at Function.mod._resolveFilename (C:\workspace\latest\commerce\node_modules
next\dist\build\webpack\require-hook.js:183:28)

Am I missing some step or configuration . I just want to get this running with the local (placeholder commerce provider)

Ok debugged it a bit and it boils down to this call in the packages\commerce\src\config.js
const commerceNextConfig = importCwd(path.join(provider, 'next.config'))

This is failing
Its probably a windows specific issue
Changing it to the hard coded value makes it work
 const commerceNextConfig = import('file:///C:/workspace/latest/commerce/packages/local/dist/next.config.cjs');

Please see PR #670 as a possible fix

@xbassols - I ended up running the build command on each workspace.
example:
yarn workspace @vercel/commerce-bigcommerce build

i did that for each of the following: "@vercel/commerce", "@vercel/commerce-bigcommerce", "@vercel/commerce-commercejs", "@vercel/commerce-kibocommerce", "@vercel/commerce-local", "@vercel/commerce-ordercloud", "@vercel/commerce-saleor", "@vercel/commerce-shopify", "@vercel/commerce-spree", "@vercel/commerce-swell", "@vercel/commerce-vendure"
Now i get this error: ReferenceError: Cannot access '__WEBPACK_DEFAULT_EXPORT__' before initialization in pages\index.tsx

Thank you for the methord. I run this code
yarn workspace @vercel/commerce run build
and it generate the missing module<EMAIL_ADDRESS>

I'll be working today on a fix for this, TL;DR tsc --watch doesn't work properly for multi task setups, the dist folder isn't ready before next dev executes and the logs are a mess, so I'll make a PR to move away from it and into a custom watcher.

change
const commerceNextConfig = importCwd(
  path.join(provider, 'next.config.cjs')
)

to
 const commerceNextConfig = importCwd(
    path.join(provider, '/dist/next.config.cjs')
  )

@devnajam That worked!!  Thank you!

@devnajam That worked!! Thank you!

@mrcampbell Hey I tried that and I am getting MODULE_NOT_FOUND for mri do you know a fix for this?

@devnajam That worked!! Thank you!

@mrcampbell Hey I tried that and I am getting MODULE_NOT_FOUND for mri do you know a fix for this? I am running it in the root directory should it be in the site directory?
Update: I ran it in the site directory and get config.cjs was not found.

@HeavenlyEntity Can you please tell me which operating system you are using, the code I shared above works for me on windows but when I push it to server it does not work, but switching back to original works on server and not on windows. To keep my work going I just used the processes.env.NODE_ENV to check if I am in development environment or not and then I use the old and new path respectively. This module not found error has a lot to do with the operating systems, otherwise why will the dev team leave a bug like this in the main branch of code

for everyone facing this issue, please try to run the same code on Linux, Mac OS and windows and see what different results you get.

@devnajam That worked!! Thank you!

@mrcampbell Hey I tried that and I am getting MODULE_NOT_FOUND for mri do you know a fix for this? I am running it in the root directory should it be in the site directory?
Update: I ran it in the site directory and get config.cjs was not found.

@HeavenlyEntity Can you please tell me which operating system you are using, the code I shared above works for me on windows but when I push it to server it does not work, but switching back to original works on server and not on windows. To keep my work going I just used the processes.env.NODE_ENV to check if I am in development environment or not and then I use the old and new path respectively. This module not found error has a lot to do with the operating systems, otherwise why will the dev team leave a bug like this in the main branch of code

I am running Windows 10 Pro. It won't let me run the server locally it keeps giving me that same error. 🤔

For windows users
change
const commerceNextConfig = importCwd(
  path.join(provider, 'next.config.cjs')
)

to
 const commerceNextConfig = importCwd(
    path.join(provider, '/dist/next.config.cjs')
  )

@HeavenlyEntity did you try this it works on windows.

For windows users
change
const commerceNextConfig = importCwd(
  path.join(provider, 'next.config.cjs')
)

to
 const commerceNextConfig = importCwd(
    path.join(provider, '/dist/next.config.cjs')
  )

@HeavenlyEntity did you try this it works on windows.

Yes it doesn't work. The config.cjs is not even in the dist folder its in the src folder according to opening up the node_modules folder.

If you see the dist folder it is ignored by git, because it is generated
when you run yarn dev in root folder. Changes made in dist folder won't
have any effect.
On Mon, Mar 7, 2022, 7:55 AM Alec M @.***> wrote:

For windows users
change
const commerceNextConfig = importCwd(
path.join(provider, 'next.config.cjs')
)
to
const commerceNextConfig = importCwd(
path.join(provider, '/dist/next.config.cjs')
)
@HeavenlyEntity https://github.com/HeavenlyEntity did you try this it
works on windows.
Yes it doesn't work. The config.cjs is not even in the dist folder its in
the src folder according to opening up the node_modules folder.
—
Reply to this email directly, view it on GitHub
https://github.com/vercel/commerce/issues/664#issuecomment-1060136063,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APCXX3NZXLCRLV343A5EWE3U6VVYHANCNFSM5NLTLOOA
.
You are receiving this because you were mentioned.Message ID:
@.***>

If you see the dist folder it is ignored by git, because it is generated when you run yarn dev in root folder. Changes made in dist folder won't have any effect.
…
On Mon, Mar 7, 2022, 7:55 AM Alec M @.> wrote: For windows users change const commerceNextConfig = importCwd( path.join(provider, 'next.config.cjs') ) to const commerceNextConfig = importCwd( path.join(provider, '/dist/next.config.cjs') ) @HeavenlyEntity https://github.com/HeavenlyEntity did you try this it works on windows. Yes it doesn't work. The config.cjs is not even in the dist folder its in the src folder according to opening up the node_modules folder. — Reply to this email directly, view it on GitHub <#664 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APCXX3NZXLCRLV343A5EWE3U6VVYHANCNFSM5NLTLOOA . You are receiving this because you were mentioned.Message ID: @.>

Yeah what I'm saying is there is no dist folder. Nothing is there with that specific file name. I updated the comment. I am not sure why this repo is having so many problems just to get to run on localhost its honestly so time wasting lol

yarn workspace @vercel/commerce run dev
yarn workspace @vercel/commerce-local run dev
worked for me.


[zh] Sync kubeadm certs command reference

The alpha certs command has graduated into GA in 1.20. This PR updates the zh localization for kubeadm certs command.

/lgtm
/approve


Resing of an external label  with text readjusting

Problem you would like to solve
It is not possible to resize the external text label of elements such as groups, start events, flows, etc., and readjust the text position when the label box is resized.
Proposed solution
When the external label of a group, start event, or flow is resized, the text should readjust according to the box size. It should behave like the label of a task element, for example.
Alternatives considered
I tried to achieve this by extending the RuleProvider and the BaseRenderer with no success. See https://stackblitz.com/~/github.com/DevAutomationInf/bpmn-angular?file=src/app/custom/custom-renderer.ts:L12-L62
Additional context
In this stackblitz example  I am extending the RuleProvider to apply the resizing, but I see the following issue, the text doesn’t readjust based on the box size:

I tried to obtain the readjusting of text by extending the BaseRender without success ( see stackblitz). It seems like the text is readjusted according to the box but only when the box is moved and not when resized. That is because only in this case the drawShape is triggered. Also, when the drawShape method is called again, the text positioning is changed, making it impossible to predict the behavior.

Hi, thanks for opening the issue. Is this a proposal for a solution in Camunda Modeler, or a request for help with your integration? I can see "resizable labels" as a valid feature request, especially given that BPMN allows it.

In order to publish to the forum, you need to spend some time reading. Perhaps somebody has already solved your problem before? Why don't you try to search for it?

If it is possible to obtain this result by making the customization in my project, then help with my integration would be enough.

Given that, I will close the issue as not planned. If there are more requests for resizable labels, we can always reopen.

Hello, barmac! Thank you for the information. I didn't find a solution for my question in the forum. What are the exact requirments in order to be able to ask a question on the formum?

Spend some time, read a few topics with comments. I don't want to reveal the details.

Ok, thank you for the information.


Refactor cyclic imports

Moved the declaration of _thread_local to _kernel.pyx.

Jenkins, test this please.

LGTM, will merge after CI finish!

The CI failure is not relevant to this PR.

@takagi This pull-request is marked as to-be-backported, but the corresponding backport PR could not be found. Could you check?

@takagi We don't need to backport this PR because _kernel.pyx in v5 doesn't have this cyclic import.

Okay!


Implementation of bitwise operations between BigInteger

Description
I implemented bitwise operations between BigInteger: AND, XOR, NOT, and OR. In the modifications, the trait BigInteger now implements the necessary traits to support the mentioned bitwise operations, and I included the implementations for those operations for the BigInt struct. Also, I wrote some tests for this functionality.
This PR doesn't close any issue. It's just a feature that I found missing in the library.

in the unittests, any chance you could add some checks on the higher limbs (right now you're testing only on the least significant) and de morgan's law ?

Thanks btw @hdvanegasm!


Allow reordering the folders in the sidebar

Checklist

[X] I have used the search function to see if someone else has already submitted the same feature request.
[X] I will describe the problem with as much detail as possible.
[X] This issue only contains a request for one single feature, not multiple (related) features.

App version
6.202 (F-Droid)
Problem you are trying to solve
It would be useful to be able to re-order the folders in the sidebar, if, like me, you have a lot of folders.
Suggested solution
Perhaps press and hold on a folder to enter a "reorder" mode, where you can slide the folder up and down. You could then do this over and over to eventually have everything in the order you want.
Screenshots / Drawings / Technical details
No response

Basic feature & very important!


fix: bug on poetry install of llama-index[postgres]

Description
removed psycopg2 and pyscopg-binary
added psycopg2-binary
https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary
reasonings:

psycopg2 as dependency doesn't follow PEP 517 builds, therefore failing on poetry install
removed psycopg-binary and replaced it with psycopg2-binary

Fixes # (issue)
#10170
Type of Change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Added new unit/integration tests
[ ] Added new notebook (that tests end-to-end)
[x] I stared at the code and made sure it makes sense

Suggested Checklist:

[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added Google Colab support for the newly added notebooks.
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] I ran make format; make lint to appease the lint gods

pls fix the lint errors


Correct cache version mapping

Because jars-1 cache is actually introduced in Gradle 2.2.
This seems to be the cause of https://github.com/gradle/gradle-private/issues/3230

@bot-gradle test QF

OK, I've already triggered QuickFeedback build for you.

Thanks @marcphilipp !

Thanks for fixing it! 👍


Publish wasm binary

Currently we only publish the OCI format for coraza-proxy-wasm. We should also publish the wasm binary to ease the pulling into non istio envs.
cc @nacx

The standard place to host assets is a GitHub release - is this an opportunity to go ahead and release 0.1.0?

+1 I think publishing a .wasm file is needed here.

Missing wasm file for v0.2.0


chore: increase dialog timeout

:tada: This PR is included in version 1.0.2 :tada:
The release is available on:

GitHub release
1.0.2

Your semantic-release bot :package::rocket:


ticks rotation does not work sometimes

Description
Hi, thanks for your great work as always.
I found that tick rotation does not work sometimes.
Steps to reproduce
import numpy as np
import proplot as pplt

fig, ax = pplt.subplots()

ax.format(
    xlim=(0, 20), xlocator=np.arange(0, 20, 2),
    xrotation=90,
)

The tick label 10 is not rotated in this case.
Equivalent steps in matplotlib
import numpy as np
import matplotlib.pyplot as plt

fig, ax = plt.subplots()

ax.set_xlim(0, 20)
plt.xticks(np.arange(0, 20, 2), rotation=90)

Proplot version
3.4.3
0.9.7

Bizarre... thanks for the report.


chore(config): rename pointer test params according to new convention

chore(config): rename central url field
chore(config): add explicit usage of field separator
chore(config): set pointer targets based on target name
chore(config): clear explicit pointer vectors

Stack:

#1692 ⬅
#1691
#1690
#1689

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

This change is


mono using 99% CPU, still trying to access mod-mono-server2.exe

I've installed mod_mono and configured Apache2 to use for hosting an asp.net mvc site.
This morning, our Network Operations Center sent us an email, saying that a process called 'mono' was using 99% of our CPU on the server, which is running Red Hat 7.5. I checked our Stage server to see if the behavior was consistent, but Stage was fine.  Stage is also running Red Hat 7.5.
When I pull up the Apache error logs (for both servers), I see entries for not being able to open '/usr/lib/mono/4.5/mod-mono-server2.exe' because it does not exist.  However, mod_mono and Apache2 have been configured to not use mod-mono-server2.exe.
I have verified that the configuration of /etc/httpd/conf.d/mod_mono.conf file is correct and in no way references mod-mono-server2.  I have also verified that the configuration of /etc/httpd/conf/httpd.conf in no way references mod-mono-server2. httpd.conf explicitly uses '/usr/lib/mono/4.5/mod-mono-server4.exe'.
I have also verified that /usr/bin/mod-mono-server has been updated to point to mod-mono-server4.exe.
Is the attempt at running mod-mono-server2 contributing to mono taking up so much CPU?
Is there anywhere else I should be looking to make sure mod_mono is not configured to use mod-mono-server2?
Thank you very much for your time and help.

So after a VERY VERY long process of debugging I finally found (at least for me) why my system is doing this.
It seems after upgrading past systemd and systemd-sysvcompat version 239.303 this starts happening. Seems very bizarre that the problem is with systemd! Hopefully this will help someone who is more familiar with systemd and kernel security as its out of my depth!

No releases since April 2017, unable to contact original developer/maintainer as apparently email is no longer valid.
Unable to find a solution to this in basically any forum. Am I to assume this project is now dead?

Seeing same issue here as well, also on Arch Linux. My only option appears to be to restore from backups and use an out of date server until I have time to convert the project to .NET Core. Seems mod_mono is dead

Seeing same issue here as well, also on Arch Linux. My only option appears to be to restore from backups and use an out of date server until I have time to convert the project to .NET Core. Seems mod_mono is dead

Our current workaround was to setup xsp instances manually running on different ports for each site. Then we used apache to proxy forward this to the specific instance. We haven't tried using manually specified application pools for mod_mono yet as frankly want to remove it from our dev server.
We have converted all sites still in development to .net core and completed ones will be run as legacy until no longer needed.


Fatal Error: Class "Log1x\AcfEditorPalette\Field" not found

I'm getting a fatal error when installing this (both with composer and as a download):
2022/11/16 15:12:04 [error] 84649#84649: *199 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class "Log1x\AcfEditorPalette\Field" not found in [...]mu-plugins/acf-editor-palette-1.1.6/plugin.php:82
Bedrock/Trellis latest version
Sage10
PHP 8.1
ACF Pro 6.0.3
AcfEditorPalette 1.1.6
Full Trace:
2022/11/16 15:12:04 [error] 84649#84649: *199 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class "Log1x\AcfEditorPalette\Field" not found in /www/mysite/public/releases/20221116150920/web/app/mu-plugins/acf-editor-palette-1.1.6/plugin.php:82
Stack trace:
#0 /www/mysite/public/releases/20221116150920/web/wp/wp-includes/class-wp-hook.php(307): class@anonymous->Log1x\AcfEditorPalette\{closure}(5)
#1 /www/mysite/public/releases/20221116150920/web/wp/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#2 /www/mysite/public/releases/20221116150920/web/wp/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#3 /www/mysite/public/releases/20221116150920/web/app/mu-plugins/advanced-custom-fields-pro/acf.php(297): do_action('acf/include_fie...', 5)
#4 /www/mysite/public/releases/20221116150920/web/wp/wp-includes/class-wp-hook.php(307): ACF->init('')
#5 /www/mysite/public/releases/20221116150920/web/wp/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)

Let me know how I can help!

I'm not sure how you'd be getting this error installing through Composer. I'm using this plugin in 6 sites without any problems. :(
I can't reproduce this no matter what I do.

I think, i just answered my own question.
I had installed through composer, but in the composer json I must have had a bit of brain fog:
I put the path in the mu plugins like so:
"installer-paths": {
      "../../mu-plugins/{$name}/": [
        "type:wordpress-muplugin",
        "log1x/acf-editor-palette"
     ]
}

That must have freaked it out. Sorry for the false alarm.


Add ability to delete ENV Key

Currently we can delete the value. There might be instances where we want to delete completely.
Could be of value but also risk. Probably would need to add an additional "Are you sure you want to remove key/values across all app(s)?"

You can do this with the update command now just pass in no value. When you update with nil via Heroku API it deletes the ENV variable
I think it would be useful to have something more explicit, or maybe we need better examples and documentation on this.
I'll keep this in mind, I kind of threw the update command together because I actually needed it but the interface may benefit from some more thought

Ya, I noticed it will delete the value but not the key. Wondering if there's a value in being able to delete the key also?

I wouldn't say it's overly crucial, but would be a neat feature to add at some point. I know the pains of trying to clean things up and having a bunch of nil values hanging out can sometimes be overwhelming.


Add option to disable esbuild plugin in vite

Is your feature request related to a problem? Please describe.
We managed to make Vite works with Vue 2 tsx (via babel plugin using @babel/preset-typescript and @vue/babel-preset-jsx). The problem is that Vite esbuild plugin always transform the code before it goes to our custom transformation.
Describe the solution you'd like
A setting in vite config or cli flag to disable esbuild plugin
Describe alternatives you've considered
We modified vite server source code to disable esbuild plugin and it works well for us
Additional context
Disable esbuild plugin

And here is the result :)

@haoleanh just coming across this and I was curious if the frontend build pipeline you mentioned was open sourced anywhere? I'm interested in using vite for my team's vue 2 app, but I'm running into the tsx roadblock as well.

@Aaron-Pool we wrote a custom build based on babel and vite pipeline. The idea is to disable default Esbuild in Vite and use existing babel plugins to transform tsx to Vue 2 render format. Here is our code, its been a while since I used Vite (its more like experiment for us to try esm build) so Im not sure if this still works in latest Vite version.
Custom transformer
import path from "path";
import * as babel from "@babel/core";
import { Transform } from "vite";

export const vue2TsxTransformer: Transform = {
    test: (ctx) => path.basename(ctx.path).endsWith(".tsx") || path.basename(ctx.path).endsWith(".ts"),
    transform: async (ctx) => {
        try {
            const fileName = path.basename(ctx.path);
            const isTsx = fileName.endsWith(".tsx");
            const result = await babel.transformAsync(ctx.code, {
                filename: fileName,
                presets: isTsx ?
                    [
                        "vca-jsx",
                        "@vue/babel-preset-jsx",
                        ["@babel/preset-typescript", {
                            allowNamespaces: true
                        }]
                    ] :
                    [
                        ["@babel/preset-typescript", {
                            allowNamespaces: true
                        }]
                    ]
            });

            return result.code;
        }
        catch (ex) {
            console.log("ERROR: " + ex);
        }
    }
}

Custom resolver
import { Resolver } from "vite";

export const vue2Resolver: Resolver = {
    alias: {
        "vue": "vue/dist/vue.runtime.esm.js",
        "@vue/composition-api": <EMAIL_ADDRESS>    }
}

Custom server plugin
import { ServerPlugin } from "vite";

export const vue2ServerPlugin: ServerPlugin = (ctx) => {
    ctx.app.use(async (ctx, next) => {
        await next();
        if (ctx.path.includes('/@modules/vue/dist/vue.runtime.esm.js')) {
            ctx.body = `
            // <<HMR Hack Start>>
            window.process = { env: { NODE_ENV: 'development' }};
            // <<HMR Hack End>>\n\n` + ctx.body;
        }
    });
}

Serve config (build config is similar)
function createServerConfig(projectConfig): ServerConfig {
    return {
        enableEsbuild: false,
        transforms: [
            Transformers.vue2TsxTransformer
        ],
        resolvers: [
            Resolvers.vue2Resolver,
        ],
        configureServer: [
            ServerPlugins.vue2ServerPlugin
        ],
        ...projectConfig,
    }
}

@haoleanh Great! Thanks! 👍


[New Port Request] libcint

Library name:  libcint
Library description:
libcint is an open source library for analytical Gaussian integrals.
It provides C/Fortran API to evaluate one-electron / two-electron
integrals for Cartesian / real-spheric / spinor Gaussian type functions.
Source repository URL:
https://github.com/sunqm/libcint

WIP CONTROL File:
Source: libcint
Version: 4.0.7
Description: An open source library for analytical Gaussian integrals
Build-Depends:  blas[core]
Homepage: https://github.com/sunqm/libcint

WIP portfile.cmake:
vcpkg_from_github(
    OUT_SOURCE_PATH SOURCE_PATH
    REPO sunqm/libcint
    HEAD_REF master
)

vcpkg_configure_cmake(
    SOURCE_PATH ${SOURCE_PATH}
    OPTIONS
        -DBUILD_HTML_DOCS=OFF
        -DBUILD_MAN_DOCS=OFF
        -DBUILD_QTHELP_DOCS=OFF
        -DBUILD_TESTING=OFF
)

vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/libcint)
vcpkg_copy_pdbs()

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/etc)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/etc)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

Problems:

encountering a lot of syntax errors
TODO:
add REF and SHA256 tags for installation without --head
readd Prefer ninja line

Corresponding Issue in the libraries repo: link

A lot of complex number problem in MSVC.

If you wish to add this port in the future, you can reopen this issue, but we're closing it for now, consider making a pull request instead.


⚡ feat(overview): created routes and cleaned code

As discussed via WhatsApp, the overview pages now go through ./routes/overviews instead of server.js
I also cleaned my code a little bit because I noticed some old/unnecessary lines

Looks good, now server.js should look more organized 👍🏽.

Where does the User assign a class or course to themselves? in  the Dashboard?

Where does the User assign a class or course to themselves? in the Dashboard?

hmm not quite sure yet, I was thinkingaybe after you create your account you’re met with a screen that shows suggestions for you to give live to your profile such as “add class” etc? I think @TejoBurgboy will be picking this up

Alrighty


Refactoring PersistenceUnitConfig and PersistenceUnitInfoImpl

PersistenceUnitConfig is now an interface representing the API available to developers for configuring the persistence unit.  All unmodifiable configuration is encapsulated within PersistenceUnitInfoImpl.
I also removed the addManagedClassNames method from PersistenceUnitConfig. This is used to register Entity classes with the persistence unit, however this shouldn't be done through the PersistenceUnitConfig object in Dropwizard EntityManager.  Entity classes are either explicitly provided in the EntityManagerBundle constructor, or by parent packaged in the ScanningEntityManagerBundle constructor.
I added the addJarFileUrls method to both PersistenceUnitConfig and PersistenceUnitInfoImpl; this appears to have simply been missed in the original implementations.
Resolves #19

Coverage increased (+1.0%) to 95.249% when pulling b1ba61976fd3e41d9d45c33ef5368f5e291e55bb on issue/19/refactor-persistenceunitconfig into 22b2e591877f509751d871acd273d892f8cb46bc on master.


⚠ Bofrost.lu has degraded performance

In 60adec6, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1452 ms

Resolved: Bofrost.lu performance has improved in 3d015d5 after 28 minutes.


Wrong library include (IDFGH-9294)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
Release/v4.4.4
Operating System used.
Windows
How did you build your project?
Command line with Make
If you are using Windows, please specify command line type.
None
What is the expected behavior?
I'm trying to compile my code and I've got the missing reference to prvTaskPriorityRaise into components/spi_flash/cache_utils.c file.
I've opened this file and this is the include list:
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <stdio.h>

#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <freertos/idf_additions.h>
#include <freertos/semphr.h>
#if CONFIG_IDF_TARGET_ESP32
...

If you go into freertos you can see that idf_additions.h is not present
What is the actual behavior?
Cannot compile micropython project
Steps to reproduce.
Just compile any project
Build or installation Logs.
No response
More Information.
No response

Could you please specify the commit ID of Micropython project which you are compiling, and the steps you are using to compile it? (I.e. the command you are running)

Also, are you using https://github.com/micropython/micropython or https://github.com/pycom/pycom-micropython-sigfox?

Hi there. Today I've started from a new clean session and everything was ok. Maybe I had some problem with Git alignment.
I'm sorry


Improve README

The content mentioned in README has not been to what has been thought of. There is no code block around statements. And proof reading is needed.

one level of improvement has been done. I need to add more usable stats in the readme.

Substantial changes have been done to README with usage info, config options and  contribution env setup info.


Add py33 / py34 support

I can squash this down, if you'd rather have it so.
Closes #3

@tseaver i'm not worried about squashing -- I like being able to see the mechanical changes broken up.
something confuses me, though: i don't see six being added as a dependency in setup.py, and it's not even in tox.ini. how is tox passing without it? are we picking it up transitively from one of our other deps?

Good point -- I think unittest2 requires it.  a134348 adds it explicitly to setup.py.

woooo! thanks!

Wow!


Handle copy of inactive input

Codecov Report
Patch coverage: 21.05% and project coverage change: -11.39 :warning:

Comparison is base (3c5c782) 76.11% compared to head (e72334c) 64.72%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #661       +/-   ##
===========================================
- Coverage   76.11%   64.72%   -11.39%
===========================================
  Files          18       18
  Lines        6820     6467      -353
===========================================
- Hits         5191     4186     -1005
- Misses       1629     2281      +652

Impacted Files
Coverage Δ

src/compiler.jl
65.62% <21.05%> (-11.28%)
:arrow_down:

... and 14 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Implement  --new-dynamic-output-component ... --initial-output-file

Implement  --new-dynamic-output-component ... --initial-output-file
Example:
ddms --new-dynamic-output-component --for-app HelloWorld --name Foo  --initial-output-file "/path/to/file/to/source/initial/output/from"
The above would create a new DynaimicOutputComponent whose output is generated by a dynamic output file in the HelloWorld App's DynamicOutput directory named HelloWorld.php whose initial output is sourced from the specified
--initial-output-file.
--initial-output  A path to a file whose content should be used as the initial output
                  of the dynamic output file that generates the new DynmicOutputComponents
                  output. The --initial-output-file flag will fail the dynamic output file to be created
                  would overwrite an existing dynamic output file, to get around this, make sure
                  to specify a unique name for the new dynamic output file via the --file-name flag.

Resolved in merge 09e8dd893c4119a1f13185cce8441463607f3d67


Added ability to replace ARC machines, fixes disconnect and reports errors

If the ForceReplaceAgent parameter is specified and the agent isn't
connected it will check for any existing agents in the same resource
group and subscription with the same name and if it finds any it will
delete them from Azure using the Arc credentials specified and the Azure
REST API.
Fixes an error in the disconnect step where it was previously supplying
the wrong parameters to azcmagent.
Reports any errors to stdout now so DSC reports them to the end user.
Previously they were being swallowed by the process itself and it wasn't
clear why things were failing.

Fixes issue #2
Has been tested on the system it was written for and seems to be working well there. Also all unit and integration tests are passing (with new ones added in the PR).
Anything anyone needs with this please let me know.

@mgreenegit
Hi Michael - any chance this could be reviewed at pace? It is contributed by one of the UK partners as it is a blocker for work they are doing with their customer.

@mgreenegit
Hi Michael - any chance this could be reviewed at pace? It is contributed by one of the UK partners as it is a blocker for work they are doing with Rare.

Any word on when this might get looked at? And anything I can do to help push this along?

Without meaning to be pushy, anything further on this? Appreciate any time you can find for this, I realise this likely isn't priority. Happy to help in any way I can.

Got it. I will close this PR and I have commented your alias in the commit history and change log to give you credit.


[Popper] Fix to defer setting of exited state to Transition component

[x] I have followed (at least) the PR section of the contributing guide.

Fixes https://github.com/mui-org/material-ui/issues/15180

Added 3 additional Popper keepMounted prop behaviour tests, with failing test case for the fixed issue.
Fixed by removing the getDerivedStateFromProps and deferring the exited: false state setting to the Transition component

This'll be followed up by an additional PR to include a failing test case, and fix, for the Modal component - it suffers from the same bug.
Test Failure on next (sans-fix):

(Note that I only ran the prop: keepMounted tests to generate the screenshot)

Although partially off-topic for this PR, I've noted that the Popper and Modal component not aligned in how they handle Transition children. Is this intentional, or should they be closer aligned?
For instance:

Popper uses a transition prop to tell it to attach transition-related handlers, whereas Modal infers it from whether children.props has an in property - Why not change Popper to the same as Modal and remove the transition prop (or perhaps have transition has an override)?
Popper (now) attaches in, onEntered, and onExited, whereas Modal only attaches onEntered and onExited - Why not in?

Just something to keep in mind. Happy to action either if either are desired, albeit will raise a separate issue & PR.

A bug fix with code removal, that's awesome 👍

A follow-up on the Modal component would be greatly appreciated!

👍 Am working on the Modal component, but applying the same fix corrects the issue for Modal, but breaks 9 other test cases across Drawer, SwipeableDrawer, and others :/

@Sharakai Oh, we would need to check if these fails are legitimate before moving forward here. Man, it's not an easy topic you got yourself into!

@oliviertassinari
I'll raise the Modal PR soon with the test failures, so you can see what tests are failing and whether I'm correct in my assertions. From what I've found so far, though:

here in Drawer.test.js

Drawer uses the Modal component, which defaults keepMounted to false. It looks like this test was "exploiting" this bug as the child component is still mounted when it, in fact, should not be.

here in SwipeableDrawer

This test actually fails in the SwipeableDrawer code here as this.backdropRef is undefined or null.
This test renders the Drawer > Modal open once, then back to closed. This calls the handleBodyTouchEnd function, which calls this.setState here - This synchronously renders before continuing with the rest of the handleBodyTouchEnd function, meaning the Modal content (and Backdrop) are unmounted, and their ref's become undefined.

<Menu> integration (2 test timeout errors - not yet investigated)
<Select> integration (2 test timeout errors - not yet investigated)

@Sharakai I'm having a look.


Babel cannot transform

babel app.js -o app.out.js

Error: Cannot find module 'css!./style.css'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/Users/willin/Documents/wulian/v3/bash/dev/app/modules/App.js:15:1)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)

import React from 'react';
import NavLink from './NavLink';
require('css!./style.css');  // <-- Error Here
export default React.createClass({
  render() {
    return (

React Router Tutorial

<NavLink to="/" onlyActiveOnIndex>Home</NavLink>

<NavLink to="/about">About</NavLink>

<NavLink to="/repos">Repos</NavLink>

        {this.props.children}

    );
  }
});

The problem is that Babel has no knowledge of webpack loaders by default. That's why it fails there.
You could try using something like babel-plugin-webpack-loaders to work around the restriction.
A good alternative could be to push the import outside of your JavaScript code and into an entry of its own. You can then generate a separate CSS bundle out of that through ExtractTextPlugin.


C# Compression API

I can't seem to find any extensive documentation on how to setup message compression using C#.
The only reference to compression I can find is in the file:
grpc/src/csharp/Grpc.Core/WriteOptions.cs
however it's not clear what setting this variable does!
Is there a way to setup compression on both client side requests and server responses using C# ?

This is basically a duplicate of: https://github.com/grpc/grpc/issues/4170
The functionality is there, but you need to unable by setting appropriate channel option or by setting a metadata entry in your RPC.
Some guidance can be found here:
https://github.com/grpc/grpc/blob/master/src/csharp/Grpc.Core.Tests/CompressionTest.cs
The channel options and metadata names/values are language agnostic, so you can use whatever works for other languages.


terraform-providers: introduce mkTerraformProvider

Motivation for this change
keep the code DRY, use the same defaults when building providers outside
of the nixpkgs tree.
/cc @stephengroat
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Interesting that ofBorg reports an issue. I just build all the plugins on this PR without an issue..
@GrahamcOfBorg eval

Running ./maintainers/scripts/eval-release.sh locally leads to the same error :/

What's the status of this?

This PR is stale right now. It would be nice to have but not big enough for me to spend more time on it at the moment.


Bug: When trying to execute from an Azure Virtual Machine the Azapi wants to use the Managed Identity of the Vm not the AZ-CLI creds

Is there an existing issue for this?

[X] I have searched the existing issues

Infrastrcuture as Code Type? (Required)
terraform
Module Versions (Required)
ALZ PowerShell Module: latest
Accelerator Bootstrap Modules: latest
Terraform Starter Modules: latest
Bicep Starter Modules: x.x.x
When trying to run the deploy-accelerator command from an azure virtual machine the code is trying to use the managed identity of the virtual machine to authenticate and not the provided az-cli details . az account show provides the correct details for the tenant \ subscription however deployment fails stating there is a  cross-tenant token issuer problem .
Input arguments of the ALZ-PowerShell-Module (Optional)
No response
Debug Output/Panic Output (Optional)
No response
Expected Behaviour (Required)
Script should have ran and produced required outputs
Actual Behaviour (Required)
Script errors appears to be trying to use token from tenant VM resides in , so I assume it's managed identity .
│ Error: Failed to perform action
│
│   with data.azapi_resource_action.locations,
│   on main.tf line 12, in data "azapi_resource_action" "locations":
│   12: data "azapi_resource_action" "locations" {
│
│ performing action locations of "Resource: (ResourceId "/subscriptions/mysubscriptiontenant" / Api Version
│ "2022-12-01")": GET https://management.azure.com/subscriptions/mysubscriptiontenant/locations
│ --------------------------------------------------------------------------------
│ RESPONSE 401: 401 Unauthorized
│ ERROR CODE: InvalidAuthenticationTokenTenant
│ --------------------------------------------------------------------------------
│ {
│   "error": {
│     "code": "InvalidAuthenticationTokenTenant",
│     "message": "The access token is from the wrong issuer 'https://sts.windows.net/virtualmachinetenantid/'. It must match the tenant 'https://sts.windows.net/mysubscriptiontenant/' associated with this subscription. Please use the authority (URL) 'https://login.windows.net/fmysubscriptiontenant' to get the token. Note, if the subscription is transferred to another tenant there is no impact to the services, but information about new tenant could take time to propagate (up to an hour). If you just transferred your subscription and see this error message, please try back later."
│   }
│ }
Steps to Reproduce (Optional)
No response
Important Factoids (Optional)
No response
References (Optional)
No response

This is a known issue with the azapi provider when running on an Azure VM. You can set the env var $env:ARM_USE_MSI = $false as a workaround for now. Here is the issue, it is fixed in v2.0 of AzAPI: https://github.com/Azure/terraform-provider-azapi/issues/551
We'll update the bootstrap to target v2.0 when it goes GA (imminent), so will leave this issue open to track that.

Have added the env variable and get a different error message ... │ Error: GET https://api.github.com/orgs/mmmm : 401 Bad credentials [] │ │ with module.github.data.github_organization.alz, │ on ....\modules\github\data.tf line 1, in data "github_organization" "alz": │ 1: data "github_organization" "alz" { │
I have added a GITHUB_TOKEN which works to my environment vars to no avail .

This is a separate issue. When you refer to GITHUB_TOKEN, we don’t currently support that env var in the accelerator. Did you set your PAT token in the input config file or as an env var input?

Have added the env variable and get a different error message ... │ Error: GET https://api.github.com/orgs/mmmm : 401 Bad credentials [] │ │ with module.github.data.github_organization.alz, │ on ....\modules\github\data.tf line 1, in data "github_organization" "alz": │ 1: data "github_organization" "alz" { │
I have added a GITHUB_TOKEN which works to my environment vars to no avail .

This is a separate issue. When you refer to GITHUB_TOKEN, we don’t currently support that env var in the accelerator. Did you set your PAT token in the input config file or as an env var input?

Hey Jared thankyou for your response. :)
In answer to your question I tried both methods ! I have found if I re-issue the token with 'God' rights that I am able to continue and use the install > ATM I am unsure which specific  priv allowed the module to continue, however the ones defined in the documentation are not enough in this use-case.  I was able to use the existing token running on my 'local' machine , but not from the az-vm with $env:ARM_USE_MSI = $false set .

$env:ARM_USE_MSI = $false

In addition I also had to edit the terraform.tf file by adding use_msi = false at the provider configuration level.
provider "azurerm" {
use_msi = false
subscription_id = var.bootstrap_subscription_id == "" ? null : var.bootstrap_subscription_id
features {
resource_group {
prevent_deletion_if_contains_resources = false
}
}
storage_use_azuread = true
}
provider "azuredevops" {
_ use_msi = false _
personal_access_token = var.azure_devops_personal_access_token
org_service_url       = module.azure_devops.organization_url
}

$env:ARM_USE_MSI = $false

In addition I also had to edit the terraform.tf file by adding use_msi = false at the provider configuration level.
provider "azurerm" { use_msi = false subscription_id = var.bootstrap_subscription_id == "" ? null : var.bootstrap_subscription_id features { resource_group { prevent_deletion_if_contains_resources = false } } storage_use_azuread = true }
provider "azuredevops" { _ use_msi = false _ personal_access_token = var.azure_devops_personal_access_token org_service_url = module.azure_devops.organization_url }

I don't know why you needed to do this. Only azapi is impacted.


Readme file contains incorrect links

Describe the bug
I can see readme file contains invalid links to Contribution.md, release, actions and license
To Reproduce
Click on License Badge , PRs Welcome, Build Status Badges present inside Readme file.
Expected behavior
On Clicking these badges correct link should be opened
Additional context
I would like to fix it quickly 😃

Fixed with #6718


ArgumentError in Drivetrain and ISS

The error that appears when we try to parse one of the   drivetrain models is as follows.
ArgumentError: symbolic value cannot be evaluated to a numeric value
Update: it also occurs in all three Space Station models.

@nikos-kekatos for ISS, which model (XML) are you considering? The upstream folder is https://github.com/JuliaReach/ReachabilityBenchmarks/tree/master/models/ARCH2018/SpaceStation

All three of them! https://github.com/JuliaReach/ReachabilityBenchmarks/tree/master/models/ARCH2018/SpaceStation/ISS


Error in cmake file for cpp helloworld external project example

What version of gRPC and what language are you using?
gRPC v1.27.0 (but applies to master branch too)
Language: C++
What operating system (Linux, Windows,...) and version?
Ubuntu 18.04.3
What runtime / compiler are you using (e.g. python version or version of gcc)
cmake 3.10.2
What did you do?
Build helloworld C++ example using external cmake file at https://github.com/grpc/grpc/blob/master/examples/cpp/helloworld/cmake_externalproject/CMakeLists.txt
On line 57,
  SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../../../third_party/protobuf/cmake"

This makes cmake clone the protobuf repository into ${CMAKE_CURRENT_SOURCE_DIR}/../../../../third_party/protobuf/cmake directory and attempt to build it by looking for a CMakeLists.txt file in that directory, which is not found. The fix here should be
  SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../../../third_party/protobuf"
  SOURCE_SUBDIR cmake

SOURCE_SUBDIR option makes cmake look for CMakeLists.txt file under cmake directory of the protobuf repository.

Please send out a PR for the fix. Thanks!

Not an issue.


Cannot install magicl

For some reason I'm not able to install magicl. Here's what I get in SBCL:

(ql:quickload :magicl)

debugger invoked on a QUICKLISP-CLIENT:SYSTEM-NOT-FOUND in thread
#<THREAD "main thread" RUNNING {10005505B3}>:
System "magicl" not found
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [CONTINUE] Try again
1: [ABORT   ] Give up on "magicl"
2:            Exit debugger, returning to top level.
((LABELS QUICKLISP-CLIENT::RECURSE :IN QUICKLISP-CLIENT::COMPUTE-LOAD-STRATEGY) "magicl")
source: (CERROR "Try again" 'SYSTEM-NOT-FOUND :NAME NAME)
0]

What am I missing?

@bmansurov Have you installed Quicklisp?

@vtomole yes, qiucklisp version 2018-04-30 is installed.

@bmansurov Is this repository in your ~/quicklisp/local-projects/ directory?

No, it's not. Should I clone the repo there first? I thought quicklisp would pull the repo itself. And I don't see magicl at https://www.quicklisp.org/beta/releases.html.

Yes. Quicklisp won't detect majicl unless it's in that directory.

Thanks, that worked.

@bmansurov  You're welcome!


Add postgresql adapter for Kysely

The original problem I had which triggered this change was this error when running migrations as documented in https://kysely.dev/docs/migrations
VercelPostgresKyselyError [VercelPostgresError]: VercelPostgresError - 'kysely_transactions_not_supported': Transactions are not supported yet.

Which we get because we haven't properly signaled to Kysely that we don't support transactions. The Kysely migrator checks supportsTransactionalDdl to decide whether to run migrations in a transaction or not, so this adds that.
It also overrides the default migration lock functions from https://github.com/kysely-org/kysely/blob/master/src/dialect/postgres/postgres-adapter.ts to use pg_advisory_lock and then unlock with pg_advisory_unlock since we can't rely on transactions auto-dropping now.
Fixes #325

Tests on this currently failing due to lack of https://github.com/kysely-org/kysely/issues/456 being officially released.

Have un-extended the postgresql adapter and implemented the single remaining method in https://github.com/vercel/storage/pull/307/commits/20d17bed8f3e03cb387e42632a629c3e9bc614bd which has got tests passing.

Can someone explain what I can do have this working?

Hey there, getting back to this. We're investigating how much value our Kysely plugin provides versus a community one: https://github.com/seveibar/kysely-neon. Have any of you tried kysely-neon? We're wondering if we should deprecate our own adapter and delegate it to the community.
As you can tell, we have not been very active in this issue (apologies), which is why we're wondering if it should be owned by the community.
Let us know if https://github.com/seveibar/kysely-neon could work for you, and if not I can re-review this PR.

I agree with you since the kysely neon is an active project and cover all behaviours that vercel kysely do. Can we ensure that? Otherwise I prefer to mantain current with this fixes that I think that is the only problem.
Thanks


use less operation

https://github.com/cryptape/cita-common/pull/270/files#diff-e3b8adbc202d0c63bf5de4184af05115R59
And this.

https://github.com/cryptape/cita-common/pull/270/files#diff-e3b8adbc202d0c63bf5de4184af05115R59
And this.

Done


Unable to download package

Hello, I added the package to Deno project when I tried to start the project but I'm getting the following output. I checked the URL to see if it was wrong but it looked fine.
error: Module not found<EMAIL_ADDRESS>    at filepath:1:27

The url was with - instead of _ in Deno land. It worked after I changed the char.

Yep sorry for the confusion, deno.land only allows underscores in module names:

The module name must be between 3 and 40 characters and contain only the characters a-z, 0-9 and _.


Any way of going back to having 2 boxes for include/exclude files for search?

Having just upgraded to v1.22.1 of vscode the release comes with:

The boxes for include and exclude patterns in the Search view have been combined into a single box.

When working on large directory structures with multiple project roots, with multiple file types, etc., having 2 boxes to include/exclude files was very useful.
Now the exclude/include box looks like:

.js, !File1.xml, !file1.txt, !/*.min.js, !/obj/, !**/Working/, !/Archive/*, !/BusinessApp/, !**/coverage/, !/OLD/*, !/TestAuto/Automation.Test/, !**/Legacy/,!when_,!.spec.js

I search through .js files, or .less, or .cs files regularly and now having a single long string to edit is going to be painful. Previously it was easy - just edit a single box. If I want to remove something from the search - edit a single box. If I want to add something - edit a single box.
Now I'll have find it in a very long string.
I know it is a pretty small gripe but I search quite often during a single day over a number of different file types and cluttering a single box with exclude types is bothersome.
Is there any way of going back to having 2 boxes for these? Hopefully a setting....
Thanks.

Would some of those patterns make sense in your search.exclude setting, or are you constantly tweaking all of them?

Some of them are quite set - e.g. !file1.txt and !File1.xml
Others (like test files) change often. I tend to search through production code separate to tests as it tends to clutter the results. Hence the spec*, when*,Test* change often.
Also the different directories change often depending on the project, shared projects, etc. that I'm working in. We run a monorepo for the vast majority of our production projects so switching between them is important as you want to exclude projects you're not interested in.

I'll fold this into https://github.com/Microsoft/vscode/issues/46315 for discussion


Replaced console logging with SLF4J

Looks good.  There's a few minor aesthetic things to look at:

tabs vs spaces -- the indentation in some of the java files isn't consistent
LOGGER vs logger -- I'd suggest picking one naming convention

Thanks James.
I'll fix the tabs vs spaces.
LOGGER vs logger - the former is the static variable, the other is an instance variable.  For consistency I'll make them all static and go for the uppercase naming.


Cant connect to my VPN

I modified the app so they can use my own vpn server, but on the connections say i am connected to null. Here is my filedetails.json and appdetails.json : https://cdn.mg100-it.de/app/vpn/
The files are right?

You can fork this repo and change the content of the files. So the changes are applied only on your files. Get the raw version of those json files.


Pls answer

hey how does this work i did everything alright with python but how it works i dont get it

I can definitely help you with this.
Currently, we are still in the process of implementing the automation features and the "easy-to-use" user interface for starrail. The command-line commands have been fully implmented but they only provide simple operations such as starting/stopping the game and configuring the module. The command-line commands are designed to be integrated with the UI in future updates and currently only provide an easy way to access the game.
Assuming that you finished installing Python 3, can you run the following commands in any terminal and show me the output just so that I can get a better idea of where you are at?
python --version

pip --version

Python 3.11.3
pip 23.1

updated to 23.1.2

Have you tried pip installing the module?
pip install starrail==0.0.3

OR
pip install starrail --upgrade

if you have already installed it.
Then to configure the package, run
starrail configure

Let me know if you have any problems getting to this point. After the configuration, please refer to the Usage section in the README for more details.

I get the error "'starrail' is not recognized as an internal or external command,
operable program or batch file."

@sussydownloadanimegame
Can you verify that the package has been successfully installed by running:
pip show starrail

If it says
WARNING: Package(s) not found: starrail

then you'll have to:
pip install starrail==0.0.3

Please let me know if this issue persists after trying the commands above.

try adding python scripts folder to path in environment variables maybe?

try adding python scripts folder to path in environment variables

The starrail command is actually configured as a Python console_script entry point in setup.cfg. If the package is installed successfully, the starrail command should be directly registered as command-line accessible by the setuptools.

The only two things that I can think of that might've caused the error
'starrail' is not recognized as an internal or external command,
operable program or batch file.

are that:

The package isn't successfully installed.
The version of Python that installed the starrail module isn't in PATH (which is unlikely considering pip is called successfully).

Anyhow, if anyone is encountering this problem, they should first check to see if the package is actually installed with pip show starrail.
If anyone has anything to add to this, please let me know.

I had this problem, I did not have python in PATH, so i used py -m pip install starrail and when I used py -m pip show starrail it was  installed but starrail command didn't work in console. After adding python to PATH everything works, I can start the game no problem.

I had this problem, I did not have python in PATH, so i used py -m pip install starrail and when I used py -m pip show starrail it was  installed but starrail command didn't work in console. After adding python to PATH everything works, I can start the game no problem.

What the script does for now ? It just start the game ? or i miss something

@hutigh

What the script does for now ? It just start the game ? or i miss something

That's correct, only the basic command-line features are available right now. I'm the only developer who's actively working on this project at the moment and there's a lot of code to be written and a lot of testing to do before a release (with the UI, game logic, image/text recognition, and so on). Anyhow, I'm aiming to complete at least the basic auto-grind features (for Calyx) and the corresponding UI by next week.

Okay that's all good take your time i was just wondering if i was missing something on the current release haha
Gl and cant wait to test that !

Ok so I installed it and everything seemed to go smoothly I do the starrail start and it launches. But now what do I do to run it I don't see any commands or anything?

If you go a little bit up this thread the creator explain that for now there is nothing more

@hutigh

What the script does for now ? It just start the game ? or i miss something

That's correct, only the basic command-line features are available right now. I'm the only developer who's actively working on this project at the moment and there's a lot of code to be written and a lot of testing to do before a release (with the UI, game logic, image/text recognition, and so on). Anyhow, I'm aiming to complete at least the basic auto-grind features (for Calyx) and the corresponding UI by next week.

oh ok well looking forward to this project

@hutigh

What the script does for now ? It just start the game ? or i miss something

That's correct, only the basic command-line features are available right now. I'm the only developer who's actively working on this project at the moment and there's a lot of code to be written and a lot of testing to do before a release (with the UI, game logic, image/text recognition, and so on). Anyhow, I'm aiming to complete at least the basic auto-grind features (for Calyx) and the corresponding UI by next week.

Hello, i am just here to take some news ! :)


NCVPTG illegal stride with version <IP_ADDRESS>

Originally reported by Dr. Jeremy Lore.  Note that the example program supplied (attached here for reference) is a Fortran program and not a C program.  It could be the case that this is a Fortran issue and not a C issue, but the first step will be identifying where the problem resides.
Sample Program

ncvptg_test.f.zip

Original Bug Report

I am seeing some strange behavior with netcdf version <IP_ADDRESS>. A call to NCVPTG with a stride of 1 produces an "Illegal stride" error. The identical call works fine with version 4.1.1 (these are the two versions I have immediately available.)

Further, adding 1 to the stride in the <IP_ADDRESS> version produces the correct behavior. That is, in version <IP_ADDRESS> a stride of 2 is used to set every value in the array dimension, a stride of 3 sets every other value, etc.

I've attached a test program that reproduces this behavior. There is a logical flag in the source (ADD_ONE_TO_STRIDE) that if set to .FALSE. produces the correct behavior for 4.1.1. but the incorrect behavior for <IP_ADDRESS>. Similarly, ADD_ONE_TO_STRIDE == .TRUE. will work for <IP_ADDRESS> but not 4.1.1.

Reminder to self: the stride issue is being observed when writing, not reading.

I've created a test file in C that (I think) should recreate the issue, but it doesn't.  Going to try recreating in fortran next.

Using the provided test program, I am unable to duplicate this issue.  The latest netcdf-fortran will not compile against v<IP_ADDRESS> netcdf-c, however, as Richard Weed added a mapping for nc_open_mem, which <IP_ADDRESS> did not have.  I will work around this to see if I can duplicate the issue using <IP_ADDRESS>

Running with the fortran developer branch and netcdf-c v<IP_ADDRESS>, I'm unable to duplicate this issue using the sample code provided.  When I change ADD_ONE_TO_STRIDE, however, I do get the following error (which makes sense to me):
---> Creating netcdf file: foo.nc
 *****************************************************
 ---> Opening netcdf file: foo.nc
Array should be 1:nx, with nx = 12
   1.00000000       2.00000000       3.00000000       4.00000000       5.00000000       6.00000000       7.00000000       8.00000000       9.00000000       10.0000000       11.0000000       12.0000000
 *****************************************************
 ---> Opening netcdf file: foo.nc
Using stride = 1
NCVPTG: : NetCDF: Index exceeds dimension bound

Reverting netcdf-fortran to the latest release 4.4.3 shows the error.  So, the issue has been corrected, it would appear.  I vaguely remember fixing an off-by-one error somewhere in netCDF-Fortran, I will try to dig up the details.  This adds a bit of urgency to get the upcoming 4.4.4 release out the door!

Closing out the issue.


Can' receive data of Tesla_shift_state from MQTT

Listen the topic with "teslamate/cars/1/shift_state" but no data response;
but other topics are good like "teslamate/cars/1/vision"

I'm also encountering this issue, where MQTT reports the shift_state when set to something like D, P, R etc but when it stops, the value is wiped and the previous value can no longer be seen.


feat: Implement filtering by metadata

:rocket: This description was created by Ellipsis for commit 8a1053aa7e41c7fedf5a448679bd81982a8c21f2

Summary:
Implemented metadata filtering for document retrieval in the agents and users API, enhancing the functionality of document queries based on metadata criteria.
Key points:

Added metadata_filter parameter to list_docs_snippets_by_owner_query in /agents-api/agents_api/models/docs/list_docs.py.
Updated list_docs endpoints in /agents-api/agents_api/routers/agents/routers.py and /agents-api/agents_api/routers/users/routers.py to accept metadata_filter from requests.
Implemented JSON parsing and error handling for metadata_filter in the routers.

Generated with :heart: by ellipsis.dev

Lgtm


where are the layer-wise fine-tune codes in algorithm branch?

In section 4, you suggest to perform layer-wise fine-tune after perform vptq stage, but I cannot find any code in algorithm branch.

Yes, in the paper, we included layer-wise fine-tuning. However, we recently found that running end-to-end fine-tuning performs better than layer-wise fine-tuning. I removed the code for layer-wise fine-tuning because it requires collecting a large amount of layer-wise input and output data, which is less convenient compared to end-to-end training.