prevent mass import

Pre-Flight checklist

[ ] Testing

[x] Code is tested
[ ] Changes have been manually tested

What are the relevant tickets?
Closes https://github.com/mitodl/ocw-studio/issues/1167
What's this PR do?
After recently releasing the new OCW site live and going through a month long QA process getting the content into shape, it would be a big problem if import_ocw_course_sites were to be run unfiltered or with a vague filter.  The tasks that import_ocw_course_sites runs destructively updates content on imported legacy sites, and since a lot of manual work was done in production to get the site ready for launch, we want to avoid destroying this data.  This PR does a few things to prevent that:

Either --filter or --filter-json is now required when running the command
A confirmation step was added that lets you know how many sites will be imported, asking you to type y and hit enter before proceeding

How should this be manually tested?

Get ocw-studio up and running locally on this branch, making sure you've configured AWS access (okay to match RC) as well as a private Github org for publishing
Put the following in a courses.json file at the root of your ocw-studio folder:

[
  "8-591j-systems-biology-fall-2004",
  "15-057-systems-optimization-spring-2003",
  "6-776-high-speed-communication-circuits-spring-2005"
]

Once up and running, run the following commands:

docker-compose run --rm web ./manage.py import_ocw_course_sites -b ocw-to-hugo-output-qa - This should throw an error of CommandError: This command cannot be run unfiltered.  Use the --filter or --filter-json argument to specify courses to import.
docker-compose run --rm web ./manage.py import_ocw_course_sites -b ocw-to-hugo-output-qa --filter "8-591j-systems-biology-fall-2004, 15-057-systems-optimization-spring-2003, 6-776-high-speed-communication-circuits-spring-2005" - This should prompt you to confirm importing 3 courses, press y and then enter to confirm
docker-compose run --rm web ./manage.py import_ocw_course_sites -b ocw-to-hugo-output-qa --filter-json courses.json - This should also prompt you to confirm importing 3 courses, press y and then enter to confirm
docker-compose run --rm web ./manage.py import_ocw_course_sites -b ocw-to-hugo-output-qa --filter "8-591j-systems-biology-fall-2004, 15-057-systems-optimization-spring-2003, 6-776-high-speed-communication-circuits-spring-2005" - This should prompt you to confirm importing 3 courses, type anything other than y and hit enter and you should see Aborting...

Codecov Report

Merging #1214 (c278422) into master (f71165a) will decrease coverage by 0.14%.
The diff coverage is 16.66%.

@@            Coverage Diff             @@
##           master    #1214      +/-   ##
==========================================
- Coverage   90.90%   90.75%   -0.15%
==========================================
  Files         212      212
  Lines        8825     8838      +13
  Branches     1631     1634       +3
==========================================
- Hits         8022     8021       -1
- Misses        694      708      +14
  Partials      109      109

Impacted Files
Coverage Δ

ocw_import/api.py
94.28% <ø> (ø)

...ort/management/commands/import_ocw_course_sites.py
0.00% <0.00%> (ø)

ocw_import/tasks.py
96.82% <100.00%> (-0.05%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f71165a...c278422. Read the comment docs.


Auto create a page if a public user is editing a page

Describe the feature you'd like
I'll try to formulate my idea:
Is it possible to build a function for a specific role (e.g. "Public") that automatically saves a template page as a new page when it is edited?
So that a template does not have to be selected first, but the user or guest simply edits the page and a new page is then automatically generated from it.
Describe the benefits this would bring to existing BookStack users
Guests would not have to be instructed in the procedure for using the templates.
Can the goal of this request already be achieved via other means?
I didn't find anything similar to this.
Have you searched for an existing open/closed issue?

[X] I have searched for existing issues and none cover my fundemental request

How long have you been using BookStack?
0 to 6 months
Additional context
No response

Thanks for the request @Man-in-Black,
This sounds like it's closely aligned to the fundamental request in #3794.
I wouldn't really want to get this involved with role/user specific functionality, as this is likely use-case specific, but a generic solution, like the link-based option as requested in #3794 would be more practical for implementation, and abstract to use-case. Would mean you'd have to get those users to follow the right links.

That sound very similar and maybe it's a better solution than mine.
I will close this off in favour of the other request.


📄 Consulting Page - Web Design & UX

Current page https://www.ssw.com.au/ssw/Consulting/UI-UX-Design.aspx

This is already converted to a new page - https://www.ssw.com.au/consulting/ui-ux-design


There was a problem loading the model

after I do "python3 convert-hf-to-ggml.py bigscience/bloomz-7b1 ./models ",there was a problem loading the model:
model_path = "/aidata/yh/BelleGroup_BELLE-7B-1M-fp16/" # You can modify the path for storing the local model
    model =  AutoModelForCausalLM.from_pretrained(model_path,from_tf=True)
    model = model.half().cuda()
    tokenizer = AutoTokenizer.from_pretrained(model_path)
    return model,tokenizer

Traceback (most recent call last):
File "/root/anaconda3/lib/python3.9/site-packages/streamlit/scriptrunner/script_runner.py", line 557, in _run_script
exec(code, module.dict)
File "lianjie_web.py", line 20, in
model,tokenizer=  load_model()
File "/root/anaconda3/lib/python3.9/site-packages/streamlit/legacy_caching/caching.py", line 573, in wrapped_func
return get_or_create_cached_value()
File "/root/anaconda3/lib/python3.9/site-packages/streamlit/legacy_caching/caching.py", line 557, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "lianjie_web.py", line 15, in load_model
model =  AutoModelForCausalLM.from_pretrained(model_path,from_tf=True)
File "/root/anaconda3/lib/python3.9/site-packages/transformers/models/auto/auto_factory.py", line 471, in from_pretrained
return model_class.from_pretrained(
File "/root/anaconda3/lib/python3.9/site-packages/transformers/modeling_utils.py", line 2612, in from_pretrained
model, loading_info = load_tf2_checkpoint_in_pytorch_model(
File "/root/anaconda3/lib/python3.9/site-packages/transformers/modeling_tf_pytorch_utils.py", line 401, in load_tf2_checkpoint_in_pytorch_model
from .modeling_tf_utils import load_tf_weights
File "/root/anaconda3/lib/python3.9/site-packages/transformers/modeling_tf_utils.py", line 40, in
from .generation import GenerationConfig, TFGenerationMixin
ImportError: cannot import name 'TFGenerationMixin' from 'transformers.generation' (/root/anaconda3/lib/python3.9/site-packages/transformers/generation/init.py)
What is the reason for this, please?

It seems you're using from_tf=True
I found this issue that is related to your case: https://github.com/huggingface/transformers/issues/20611
Can you try the fix in there please?


How to call a stored procedure with any in  parameters and out parameters  using ora ?

I'v read samples in README.md :
A string pointer captures an out parameter from a stored procedure:
// given:
// CREATE OR REPLACE PROCEDURE PROC1 (P1 OUT VARCHAR2) AS BEGIN P1 := 'GO'; END PROC1;
var str string
stmt, err = ses.Prep("CALL # PROC1(:1)")
stmt.Exe(&str)
Also  OUT SYS_REFCURSOR .
But now I'm wondering  how to pass any of in parameters to a stored procedure with ora ?
Can anyone write me a sample or point me where I can refer ? You'd better show the difference between STRING NUMBER TIMESTAMP  and so on, 'cause I'm a new fish to Go.
Thank you very much !

You prepare the statement with stmt, err := ses.Prep("BEGIN :1 := myproc(:2, :3, :4); END;`)
Then you execute the statement, giving all the parameters: err = stmt.Exe(&rc, "a", time.Now(), 3.14)
Out parameters must be pointers (otherwise the receiving end cannot modify it), input parameters can be non-pointers.

Thanks for your help, that helps me a lot !
I worked it out by
stmtProcCall, err := ses.Prep("CALL " + ProduceName + "(:1,:2)")    var int_ int16    stmtProcCall.Exe(3.14, &int_)
But here comes another one question :
In my project , I need to write a common method which can handle all kinds of stored  produces having different quantity of in parameters and also out parameters . In this condition , how should I format ses.Prep() ?   Prep's parameters seems need to be done in a specific quantity ?

As https://godoc.org/gopkg.in/rana/ora.v4#Stmt shows, Stmt.Exe receives
variable number of arguments, so
args := []interface{}{"always needed param"}
args = append(args, -3)
stmt.Exe(args...)
will call the prepared statement with the previously assembled arguments
slice.
(You can use the user_arguments view in the database to select the args for
all the procedures/functions!
I'm using this source of truth in my Oracle Go call generator,
github.com/tgulacsi/oracall for generating a gRPC server to call stored
procedures remotely).
vamkaxifa<EMAIL_ADDRESS>ezt írta (időpont: 2017. febr. 9., Cs,
3:24):

Thanks for your help, that helps me a lot !
I worked it out by
stmtProcCall, err := ses.Prep("CALL " + ProduceName + "(:1,:2)") var int_
int16 stmtProcCall.Exe(3.14, &int_)
But here comes another one question :
In my project , I need to write a common method which can handle all kinds
of stored produces having different quantity of in parameters and also out
parameters . In this condition , how should I format ses.Prep() ? Prep's
parameters seems need to be done in a specific quantity ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rana/ora/issues/152#issuecomment-278528007, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAPoSslfNXAm8tU0PfJijVS_EjT9EkWeks5ranjGgaJpZM4L6RNe
.

That's very kind of you! this helps me a lot !


findMany fails to select an enum list

I was tempted to post this as a comment on #2442. I have a feeling this, #2442 & #2501 are all the same issue but can't prove it, so I'm creating separate ones. Please move if you think otherwise!
Again, I first discovered this while trying to reproduce a report on Studio: https://github.com/prisma/studio/issues/406
Bug description
For a model with an enum list, certain combinations of select crash
How to reproduce

Use this schema:
generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "postgresql"
  url      = "postgresql://siddhant@localhost:5432/experiments"
}

model Startup {
  id      Int       @id
  name    String
  Contact Contact[]
}

enum ScoutingFile {
  One
  Two
}

model Contact {
  id            Int            @default(autoincrement()) @id
  firstName     String?
  lastName      String?
  email         String         @unique
  startup       Startup        @relation(fields: [startupId], references: [id])
  startupId     Int
  validEmail    Boolean        @default(true)
  scoutingFiles ScoutingFile[]
}

And this script:
const { PrismaClient } = require("@prisma/client");

const prisma = new PrismaClient();

const main = async () => {
  const contacts = await prisma.contact.create({
    data: {
      email<EMAIL_ADDRESS>      startup: {
        create: {
          id: 1,
          name: "Startup 1",
        },
      },
    },
    select: {
      id: true,
      firstName: true,
      lastName: true,
      email: true,
      startup: true,
      startupId: true,
      validEmail: true,
      scoutingFiles: true,
    },
  });
  console.log(contacts);
};

main()
  .catch((e) => console.log(e))
  .finally(() => prisma.disconnect());

You should see this error:
PrismaClientUnknownRequestError:
Invalid `prisma.contact.create()` invocation in
/Users/siddhant/Code/Tests/experiments/index.ts:6:41

  2
  3 const prisma = new PrismaClient();
  4
  5 const main = async () => {
→ 6   const contacts = await prisma.contact.create(Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: ConversionError(Custom { kind: InvalidData, error: "List field did not return an Array from database. Type identifier was Enum(\"ScoutingFile\"). Value was Boolean(true)." }

   0: backtrace::backtrace::trace
   1: backtrace::capture::Backtrace::new_unresolved
   2: failure::backtrace::internal::InternalBacktrace::new
   3: failure::backtrace::Backtrace::new
   4: <quaint::connector::result_set::result_row::ResultRow as sql_query_connector::row::ToSqlRow>::to_sql_row
   5: <std::future::GenFuture<T> as core::future::future::Future>::poll
   6: <std::future::GenFuture<T> as core::future::future::Future>::poll
   7: std::future::poll_with_tls_context
   8: <std::future::GenFuture<T> as core::future::future::Future>::poll
   9: <std::future::GenFuture<T> as core::future::future::Future>::poll
  10: <std::future::GenFuture<T> as core::future::future::Future>::poll
  11: <std::future::GenFuture<T> as core::future::future::Future>::poll
  12: <std::future::GenFuture<T> as core::future::future::Future>::poll
  13: <std::future::GenFuture<T> as core::future::future::Future>::poll
  14: <std::future::GenFuture<T> as core::future::future::Future>::poll
  15: <std::future::GenFuture<T> as core::future::future::Future>::poll
  16: <std::future::GenFuture<T> as core::future::future::Future>::poll
  17: <std::future::GenFuture<T> as core::future::future::Future>::poll
  18: std::future::poll_with_tls_context
  19: <std::future::GenFuture<T> as core::future::future::Future>::poll
  20: <std::future::GenFuture<T> as core::future::future::Future>::poll
  21: std::panicking::try::do_call
  22: __rust_maybe_catch_panic
  23: <std::future::GenFuture<T> as core::future::future::Future>::poll
  24: <std::future::GenFuture<T> as core::future::future::Future>::poll
  25: <std::future::GenFuture<T> as core::future::future::Future>::poll
  26: hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T>::poll_catch
  27: <hyper::server::conn::upgrades::UpgradeableConnection<I,S,E> as core::future::future::Future>::poll
  28: <hyper::server::conn::spawn_all::NewSvcTask<I,N,S,E,W> as core::future::future::Future>::poll
  29: tokio::task::core::Core<T>::poll
  30: std::panicking::try::do_call
  31: __rust_maybe_catch_panic
  32: tokio::task::harness::Harness<T,S>::poll
  33: tokio::runtime::thread_pool::worker::GenerationGuard::run_task
  34: tokio::runtime::thread_pool::worker::GenerationGuard::run
  35: std::thread::local::LocalKey<T>::with
  36: tokio::runtime::thread_pool::worker::Worker::run
  37: tokio::task::core::Core<T>::poll
  38: std::panicking::try::do_call
  39: __rust_maybe_catch_panic
  40: tokio::task::harness::Harness<T,S>::poll
  41: tokio::runtime::blocking::pool::Inner::run
  42: tokio::runtime::context::enter
  43: std::sys_common::backtrace::__rust_begin_short_backtrace
  44: std::panicking::try::do_call
  45: __rust_maybe_catch_panic
  46: core::ops::function::FnOnce::call_once{{vtable.shim}}
  47: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
  48: std::sys::unix::thread::Thread::new::thread_start
  49: _ZL12preoptimized
) })
    at PrismaClientFetcher.message (/Users/siddhant/Code/Tests/experiments/node_modules/@prisma/client/src/runtime/getPrismaClient.ts:649:46)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

So the script above seems to only crash when both startupId & scoutingFIles exist in select. I think this is also a select bug rather than a create bug, because even if you create the records from Postico or something, Client cannot fetch it.
Expected behavior
Script shouldn't crash
Environment & setup

OS: macOS
Database: Postgres
Prisma version:

@prisma/cli          : 2.0.0-beta.5
Current platform     : darwin
Query Engine         : query-engine 0c2ec197653b278b2978845ef958db88824cd82e
Migration Engine     : migration-engine-cli 0c2ec197653b278b2978845ef958db88824cd82e
Introspection Engine : introspection-core 0c2ec197653b278b2978845ef958db88824cd82e
Format Binary        : prisma-fmt 0c2ec197653b278b2978845ef958db88824cd82e

Node.js version: v12.16.3

I should also mention that in all three issues, the DB was originally created with Migrate, so this could actually be an issue with either Migrate or Client.

Please add the SQL to the issue, so usage of Migrate is not required to reproduce this.

Fixed with 2.0.0-alpha.1205 onwards.


Deploying databricks will give warnings in azure advisor

[Enter feedback here]
When you deploy databricks then you will get some warnings in azure advisor about the DBFS storage account. Which is:

Storage accounts should restrict network access using virtual network rules
However, you cannot restrict network access, since it is in the managed resource group. Perhaps we should mention this somewhere in the docs. And also perhaps give some arguments to satisfy the security officer.

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

ID: 355fba0e-958e-f572-18c2-892c91d20b13
Version Independent ID: 7fe76247-c969-2068-2c3c-bf327fbbe39e
Content: Quickstart - Run a Spark job on Azure Databricks Workspace using Azure portal
Content Source: databricks/scenarios/quickstart-create-databricks-workspace-portal.md
Service: azure-databricks
GitHub Login: @mssaperla
Microsoft Alias: saperla

Thanks for the feedback! We have assigned the issue to the content author to further review this and update the document as appropriate.

Thanks for providing feedback that helps improve our documentation. This issue has been resolved and this outdated content has been removed. We are closing the issue.
#please-close

#please-close


Client secret required ?

Hi good day,
I was going through your example ( the CURL request example ) using Postman ( https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en ) and i had an error after POSTing with my client_id, grant_type=password, username, and password:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "/Library/Python/2.7/site-packages/flask/app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/Library/Python/2.7/site-packages/flask/app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/Library/Python/2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/Library/Python/2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/Library/Python/2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/Library/Python/2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/Library/Python/2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/Library/Python/2.7/site-packages/flask_oauthlib/provider/oauth2.py", line 467, in decorated
    uri, http_method, body, headers, credentials
  File "/Library/Python/2.7/site-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 61, in wrapper
    return f(endpoint, uri, *args, **kwargs)
  File "/Library/Python/2.7/site-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 93, in create_token_response
    request, self.default_token_type)
  File "/Library/Python/2.7/site-packages/oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py", line 92, in create_token_response
    if not self.request_validator.authenticate_client(request):
  File "/Library/Python/2.7/site-packages/flask_oauthlib/provider/oauth2.py", line 601, in authenticate_client
    if client.client_secret != client_secret:
AttributeError: 'Client' object has no attribute 'client_secret'

Apparently, I am required to pass a client_secret url parameter as well ? However, when i create a new client, I am only given the client_id, but not the client secret.
I've also tried adding in random strings for client_secret, but the same error occurs.
Am I missing anything ?
Cheers!

The error happens in Flask-Oauthlib. It suggests that Client object has no attribute client_secret and not, as you imply, that it has no or wrong value. Are you sure that the launch script is correctly configured, as in the README file?

Hi there, it's weird. I uninstalled via pip flask-sentinal and Flask-Oauthlib and than reinstalled flask-sentinel. So now it works.
Thank you so much Sir!

Just a heads up that I ran into this issue today. My issue appears to be a duplicate of https://github.com/lepture/flask-oauthlib/issues/246 - downgrading flask-oauthlib to 0.9.1 fixes the issue.

thanks for the heads up.


Get Map rotation

When you pinch and rotate, is there a way to read the global map rotation?

having the same issue here. @the-simian did you manage to figure it out? thanks!

Nope. To my understanding this is simply unsupported atm.

👍
This, and being able to set the map rotation, are two very-needed features that seem to be getting actively ignored (based on scouring the open and closed issues here on GitHub)...

This is a much needed feature

I agree this is very impotant

Any updates on this feature?

and being able to set the map rotation

@willdavidow according to MapView docs this is now possible via animateToBearing.
Now we just need to be able to listen for updates to the canvas' rotation, those made by the user with a 2 finger spin gesture.

@breadadamscan you explain this in more detail, I also need some way to get an angle of map rotation and at the moment there isn't one. animateToBearing is no use to me because I need to get angle not to set one.

+1 Need it too

If you have a ref to the map you can read the rotation using the camera:
mapRef.current.getCamera().then(camera => {
	if (camera.heading === 0) // is north
});

But my problem is that I don't know where to put this. There is no map event that gets triggered on rotation, right? onRegionChangeComplete seems to just fire, when the position changes, not when the camera heading changes.

If you have a ref to the map you can read the rotation using the camera:
mapRef.current.getCamera().then(camera => {
	if (camera.heading === 0) // is north
});

But my problem is that I don't know where to put this. There is no map event that gets triggered on rotation, right? onRegionChangeComplete seems to just fire, when the position changes, not when the camera heading changes.

Does have anyone a solution to set camera of map always to north?

I've add a useEffect + setInterval to get the rotation every 3s. Better than nothing

onRegionChange={() => {
this.refs.mapView.getCamera()
.then((info) => {
console.log('info', info.heading);
});
}}
heading value determines the rotation angle. But be aware there is a lot of iteration going on.

functional component version of this answer: https://github.com/react-native-maps/react-native-maps/issues/487#issuecomment-642596531
import React, {  useRef } from "react";
import MapView, { PROVIDER_GOOGLE } from "react-native-maps";

export const Map = ({ }) => {

  const mapViewRef = useRef(null);

  return (
    <MapView
      provider={PROVIDER_GOOGLE}
      ref={mapViewRef}
      style={{ width: "100%", height: "100%" }}
      onRegionChange={() => {
        console.log(
          mapViewRef?.current?.getCamera().then((info) => {
            console.log("info", info);
          })
        );
      }}
    />
  );
};

To finally close the question. If you want to put the map in 3D without moving your 2 fingers on the screen! You need to change the pitch value of the map object. From 65.5 (in 3D) to 0 (more than 3D).
You can view this value each time the map region changes like this:
onRegionChange={() => {         console.log(           map?.current?.getCamera().then((info) => {             console.log("info", info.pitch);           })         );       }}


Fix/global var symbols

Symbols no longer generate global variables. Instead, these are generated within the build() method.
Add overridableproperties to symbol masters

@GVTopCoder Here is the fix that moves the global variables to the build() method and generates overridable properties for symbol masters. I'd appreciate your feedback on this if you can!

@GVTopCoder Here is the fix that moves the global variables to the build() method and generates overridable properties for symbol masters. I'd appreciate your feedback on this if you can!

Looks good to me, I haven't tested the code extensively yet, so recommend this only go to dev for now.  I'll test with some sketch files I made up to make sure everything works.

Noticed you labeled a hack in here @ivan-015, is there an infrastructure change that needs to be done so that it's not a hack?

That comment was there previously, I simply formatted the page 👍🏾 I think the idea is to add the import to shared_props.g.dart only when the page needs that import.


Improve pf2e support slightly.

Good job, thank you!

Closing this PR as adding the module https://github.com/7H3LaughingMan/pf2e-elevation-ruler does a better job of supporting pf2e than what I bodged together here.


python311Packages.aliyun-python-sdk-sts: 3.1.1 -> 3.1.2

Changelog: https://github.com/aliyun/aliyun-openapi-python-sdk/blob/master/aliyun-python-sdk-sts/ChangeLog.txt
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 260502 run on x86_64-linux 1

16 packages built:

python310Packages.aiooss2
python310Packages.aiooss2.dist
python310Packages.aliyun-python-sdk-sts
python310Packages.aliyun-python-sdk-sts.dist
python310Packages.oss2
python310Packages.oss2.dist
python310Packages.ossfs
python310Packages.ossfs.dist
python311Packages.aiooss2
python311Packages.aiooss2.dist
python311Packages.aliyun-python-sdk-sts
python311Packages.aliyun-python-sdk-sts.dist
python311Packages.oss2
python311Packages.oss2.dist
python311Packages.ossfs
python311Packages.ossfs.dist


Module parse failed: Bad character escape sequence

I am getting the following error when using

Label
alert-dialogue

(I will add more if the error as I keep testing)
The error which I get is:
Module parse failed: Bad character escape sequence (2:65)
| import { createProxy } from "next/dist/build/webpack/loaders/next-flight-loader/module-proxy"
> const proxy = createProxy("D:\maybe-projects\secrets\components\ui\label.tsx")
|
| // Accessing the __esModule property and exporting $$typeof are required here.

Import trace for requested module:
./components/ui/label.tsx
./app/page.tsx

Could someone please give me instructions on how to fix this?

https://github.com/shadcn/ui/issues/194


tensorflow-addons doesn't work with M1 Mac

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS 12.0.1
TensorFlow version and how it was installed (source or binary): tensorflow-macos==2.7.0
TensorFlow-Addons version and how it was installed (source or binary): tensorflow-addons==latest
Python version: 3.8
Is GPU used? (yes/no): yes - M1

Describe the bug
There is no library distribution for the new M1 Mac with tensorflow-macos.
$> python -m pip install tensorflow-addons

ERROR: Could not find a version that satisfies the requirement tensorflow-addons (from versions: none)
ERROR: No matching distribution found for tensorflow-addons

$> conda list | grep tensorflow

tensorflow-deps           2.7.0                         0    apple
tensorflow-estimator      2.7.0                    pypi_0    pypi
tensorflow-hub            0.12.0                   pypi_0    pypi
tensorflow-macos          2.7.0                    pypi_0    pypi
tensorflow-metal          0.3.0                    pypi_0    pypi

Code to reproduce the issue
Create new conda virtualenv with tensorflow-macos (and tensorflow-metal for GPU support) on Mac M1, then install tensorflow-addons from official distribution.

Actually, I just read that: https://github.com/tensorflow/addons/issues/2631 and installed nightly version. I am closing the issue.


Clarify that stack trace line numbers are from generated JS

If I create a file called errorLoop.coffee in /dir consisting of a single line
throw new Error('error!') for i in [1..100]

and then run coffee errorLoop.coffee, I get
Error: error!
    at Object.<anonymous> (/dir/errorLoop.coffee:4:11)
    at Object.<anonymous> (/dir/errorLoop.coffee:6:4)
    at Module._compile (node.js:462:23)
    at Object.run (/usr/local/Cellar/node/0.2.5/lib/node/.npm/coffee-script/1.0.1-pre/package/lib/coffee-script.js:57:19)
    at /usr/local/Cellar/node/0.2.5/lib/node/.npm/coffee-script/1.0.1-pre/package/lib/command.js:120:29
    at /usr/local/Cellar/node/0.2.5/lib/node/.npm/coffee-script/1.0.1-pre/package/lib/command.js:83:26
    at fs:84:13
    at node.js:773:9

which is the same stack trace that one gets from compiling and then running node errorLoop.js, except for the filename. The numbers, 4:11 and 6:4 are the same in either case, and only make sense when one looks at the (wrapped) JavaScript output
(function() {
  var i;
  for (i = 1; i <= 100; i++) {
    throw new Error('error!');
  }
}).call(this);

I realize that getting line numbers from CoffeeScript is an ongoing, very difficult issue. But at the very least, could the stacktrace not say .coffee right before the line numbers? Perhaps the output could instead read
    at Object.<anonymous> (/dir/errorLoop.coffee[compiled js]:4:11)

It's not as clean, but the current state of affairs is dangerously misleading, no doubt leading many folks to look in vain for bugs in the stated lines of their CoffeeScript code.

Yep -- unfortunately, due to #707, we can't touch __filename. I'd be glad to take a patch that fixes this in a safe fashion ... without scrubbing a regex over the stacktrace-as-string, but am closing this for now.


Fix issue when project filenames contains whitespaces

:sparkles: What kind of change does this PR introduce? (Bug fix, feature, docs update...)
Bug fix
:arrow_heading_down: What is the current behavior?
When the project file name contains whitespaces then NuKeeper fail to restore/remove & add nuget packages.
:new: What is the new behavior (if this is a feature change)?
NuKeeper will execute dotnet restore/remove & add commands with quotations around project file names
:boom: Does this PR introduce a breaking change?
nop
:bug: Recommendations for testing

Added unittests
Add a project file name with whitespaces.

:memo: Links to relevant issues/docs
see #1091
:thinking: Checklist before submitting

[x] All projects build
[x] Relevant documentation was updated

@kwlin can you please rebase the branch on the latest master?


Added WorkerPool.WorkOne method

subj

Codecov Report

Merging #56 (3e9caa9) into master (c53e17a) will decrease coverage by 0.41%.
The diff coverage is 88.23%.

@@            Coverage Diff             @@
##           master      #56      +/-   ##
==========================================
- Coverage   89.41%   88.99%   -0.42%
==========================================
  Files           6        6
  Lines         425      427       +2
==========================================
  Hits          380      380
- Misses         33       35       +2
  Partials       12       12

Impacted Files
Coverage Δ

worker.go
82.70% <88.23%> (-0.91%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c53e17a...3e9caa9. Read the comment docs.


Selection does not follow Ctrl-F and Ctrl-B in visual mode

Version: Atom 0.120.0, vim-mode v0.13.0-4-gfb6e37a
Steps:

Enter visual mode with v or V.
Press j or k to select a line above or below and verify that selection works.
Press ^F or B.

Expected:
The whole page forward or back is added to the selection.
Actual:
After scrolling, there's no more selection.

Would love to see this as well as support for CTRL-B and CTRL-D as well.

This appears fixed.  It works on my 0.199.0: ctrl-f, ctrl-b, ctrl-d, and ctrl-u all appear to work the same way as vim.

Works for me too.

As stated in the README, this package is no longer maintained and is deprecated. We recommend that people use the vim-mode-plus package instead. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions!


feat: allow for default select icon to be hidden

I'd like to propose adding an option to switch off the default select icon in the Select Input.
This would allow using custom icons with ease by providing them right in the slot, or none at all if the dev prefers.
Example:

Before submitting the PR, please make sure you do the following

[x] If your PR isn't addressing a small fix (like a typo), it references an issue where it is discussed ahead of time and assigned to you. In many cases, features are absent for a reason.
[x] Prefix your PR title with feat:, fix:, chore:, or docs:.
[x] This message body should clearly illustrate what problems it solves.
[x] Format & lint the code with pnpm format and pnpm lint

Just noticed that the element received an update before my code adjustment - let me know if you agree with the general idea and we can see to update it to the new version. Cheers !

Hey there, I'm cool with adding this prop.
Let's make the prop withIndicator defaulting to true. These changes should apply to both the new-york and default styles.


Add vary parameter to cached_context

Codecov Report

Merging #29 (3675ba1) into main (038b14c) will decrease coverage by 0.10%.
The diff coverage is 95.68%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##             main      #29      +/-   ##
==========================================
- Coverage   97.69%   97.60%   -0.10%
==========================================
  Files          79       79
  Lines        2994     3129     +135
==========================================
+ Hits         2925     3054     +129
- Misses         69       75       +6

Impacted Files
Coverage Δ

tests/test_utils.py
95.62% <93.61%> (-4.38%)
:arrow_down:

asu/utils/cache.py
100.00% <100.00%> (ø)


Cannot append empty WidgetCollection nested inside <$/>

Problem description
When appending <$></$> containing an empty WidgetCollection, an error is thrown.
Environment

Tabris.js version: 3.4.0

Code snippet
import {contentView, WidgetCollection} from 'tabris';

contentView.append(
  <$>
    <WidgetCollection />
  </$>
);

>  Could not load main module: Error: Cannot append non-widget "" to ContentView[cid="$3"]
     at /home/cpetrov/git/tabris-js/snippets/dist/composite.js:4:22
     at subscribe (./cordova.js:758:11)
     at addEventListener (./cordova.js:133:34)
     at ./cordova.js:1560:18

i get the same eroor too


Trying retry

NOT FOR SUBMISSION - and this is not expected to build successfully.
Initial attempt at what retry code might look like in auto-gen'ed code.
The retry settings are taken directly from the relevant yaml config
file, and maintain the definition structure from the yaml. E.g. the
"Idempotent" of "IdempotentRetryFilter", and the "Default" in
"GetDefault[Retry|Timeout]Backoff()".
Separate RetrySettings are defined for every method; every method
defaults to having retry enabled; setting the relevant setting to null
would disable retry. This may or may not be what we actually want.
GAX currently only defines ApiCallable, I suspect it'll be useful to
have separate sync/async ApiCallables. I've pretend these exist in this
code; plus ClientHelper methods to create these callables, optionally
with retry.
I've only edited two RPCs to actually use retry, one "normal"
(CreateTopic) and one pagestreaming (ListTopics).
When this is code-gen'ed, all methods will have the changes applied.

PTAL

Yes, this is starting to look really nice, with less and less boilerplate.


Cache not cleared for checkout.js?xyz

Need to figure out a way to flush the akamai cache for not just checkout.js but also checkout.js?xyz, since there are merchants integrating with their own query strings and it's causing them to get older versions of the script living in the akamai cache.

There's this from Akamai

Fixed and pushed.


/oauth/token endpoint without authorization

Summary
I'm using Spring Security OAuth2 to create my own authorization server. In my case I want to enable a Angular client (SPA) to use the Authorization Code Grant.
Actual Behavior
The client can use the /oauth/authorize endpoint, the user can log in and the browser is redirect to the SPA. Now the client wants to get the token via /oauth/token. But this endpoint is secured and needs client id and client secret. The security is enabled by default. The authorization server returns Status 401.
Therefore it is not possible for a public client to use the authorization code grant.
Expected Behavior
At least it should be possible to set the /oauth/token as a public endpoint.
Configuration
@Configuration
@EnableAuthorizationServer
public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdapter {
    private final ClientDetailsService clientDetailsService;

    @Autowired
    public AuthorizationServerConfig(ClientDetailsService clientDetailsService) {
        this.clientDetailsService = clientDetailsService;
    }

    @Override
    public void configure(AuthorizationServerSecurityConfigurer security) {
        UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
        CorsConfiguration config = new CorsConfiguration();
        config.applyPermitDefaultValues();

        // Maybe there's a way to use config from AuthorizationServerEndpointsConfigurer endpoints?
        source.registerCorsConfiguration("/oauth/token", config);
        CorsFilter filter = new CorsFilter(source);
        security.addTokenEndpointAuthenticationFilter(filter);
    }

    @Override
    public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
        clients.withClientDetails(clientDetailsService);
    }
}

@Configuration
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
    @Bean
    @Override
    protected UserDetailsService userDetailsService() {
        // WARN: Do not use the default password encoder in production environments!
        return new InMemoryUserDetailsManager(
                User.withDefaultPasswordEncoder()
                .username("user-a")
                .password("password")
                .roles("USER_ROLE")
                .build()
        );
    }

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http
            .requiresChannel()
                .anyRequest()
                .requiresSecure()
                .and()
            .cors()
                .and()
            .authorizeRequests()
                .antMatchers("/.well-known/**").permitAll()
                .and()
            .authorizeRequests()
                .anyRequest().authenticated()
                .and()
            .formLogin()
                .and()
            .httpBasic();
    }

    @Bean
    public CorsConfigurationSource corsConfigurationSource() {
        CorsConfiguration configuration = new CorsConfiguration();
        configuration.setAllowedOrigins(singletonList("*"));
        configuration.setAllowedMethods(asList("GET","POST"));
        UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
        source.registerCorsConfiguration("/**", configuration);
        return source;
    }
}

Version
<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.3.0.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>
...
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-oauth2</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.security.oauth.boot</groupId>
    <artifactId>spring-security-oauth2-autoconfigure</artifactId>
</dependency>

Sample
https://github.com/raman-nbg/spring-authorization-server-sample
See readme.md for instructions how to start the app.
You can use the following request to reproduce the error:
curl -k first-client:foobar https://localhost:8443/oauth/token -dgrant_type=client_credentials -dscope=any

I also asked this question on Stackoverflow: https://stackoverflow.com/questions/61869131/should-the-oauth2-token-endpoint-require-authentication

@raman-nbg There is no support for PKCE, which would allow a public client to authenticate on the token endpoint for the authorization_code grant.
FYI, this project is currently in maintenance mode and only accepting bug and security fixes. No new features will be added. Please see the EOL announcement.


Gandalf not working in Samsung 10

Anyone else having issues with a gandalf verifying if the app is coming from the play store?  I have a message coming up the app isn't the real app and blocks the users from the next process.  This is only occurring in Samsung 10 devices

This doesn't sound like a Gandalf issue as at this point you are outside of Gandalf and interacting with the Play Store directly. This sounds like the download you are pointing the users to may be different from the application you are using Gandalf on or is at the very least signed with a different signing cert. Closing this issue as it's not resolvable through Gandalf changes.


html/template: Spamming error

See https://github.com/golang/go/blob/964639cc338db650ccadeafb7424bc8ebb2c0f6c/src/html/template/template.go#L83

This error isn't very useful if you have 100s or 1000s of templates
If I really need that debug info, I will call DefinedTemplates myself
One could even argue that this is a DDoS  "invitation" in certain situations

https://github.com/spf13/hugo/issues/2343

Going to try sending a CL and see what people think.


Google Domains support

CheckSettings() in utils.go doesn't seem to do validation check if service is "Google".
As a result, any google config will return the error at the bottom of the if block, resulting in the "Settings is invalid!  please provide supported DNS provider: DNSPod/HE/AliDNS/Cloudflare/GoogleDomain/DuckDNS" error.
Using latest 1.9 release.
My config.json:
{
  "provider": "Google",
  "email": "CENSORED",
  "password": "CENSORED",
  "domains": [{
      "domain_name": "CENSORED.net",
      "sub_domains": ["www","test"]
  }],
  "ip_url": "https://myip.biturl.top",
  "interval": 300,
  "socks5_proxy": ""
}

@jfritz  Thanks! It's a bug, I'll fix it.

@jfritz https://github.com/TimothyYe/godns/releases/tag/V1.9.1
Please try the latest version.

Thanks, this gets my config running.


Error on starting it.

It worked yesterday, but trying to start it today gives me this:
Initializing AI Dungeon! (This might take a few minutes)
Traceback (most recent call last):
File "play.py", line 211, in
play_aidungeon_2()
File "play.py", line 74, in play_aidungeon_2
generator = GPT2Generator()
File "/content/AIDungeon/generator/gpt2/gpt2_generator.py", line 27, in init
self.enc = encoder.get_encoder(self.model_name, models_dir)
File "/content/AIDungeon/generator/gpt2/src/encoder.py", line 109, in get_encoder
with open(os.path.join(models_dir, model_name, 'encoder.json'), 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'generator/gpt2/models/model_v5/encoder.json'

https://github.com/nickwalton/AIDungeon/issues/39

Closing due to duplicate issue #39 .


admin: menuitem not shown if no providers are configured

do not show Linked Accounts -menuitem if no OAuth providers
have been configured.

Signed-off-by: Harri Hirvonsalo<EMAIL_ADDRESS>

@hjhsalo thanks! Could you please also rebase?

@hjhsalo thanks a lot! One more small thingy could you please keep the commit subject line to 50 chars? :P

we don't need to change the version here :)

OK? Could you elaborate a bit?

we don't need to change the version here :)

OK? Could you elaborate a bit?

We change the version only when we make a new release, for example. So there is no need to update the version now :)

We change the version only when we make a new release, for example. So there is no need to update the version now :)

OK. Thanks


Don't disable embed cell interactions

Youtube embedded links did not allow interaction with the play button when thumbnail failed to load.
Partially fixes #121961001
The remaining fix is determining why the thumbnail was not included in the json.
{
  "kind": "embed",
  "data": {
      "service": "youtube",
      "id": "T0GQIq64cCk",
      "url": "https://www.youtube.com/watch?v=T0GQIq64cCk",
      "thumbnail_large_url": null,
      "thumbnail_small_url": null
     }
}

👍


Invoice moduletemplate1

Added invoice static page

@TheBonface closing this PR as you have set it with base branch as master and not development which should be the case


Upgrade Glide to v4

Glide is currently using v3.
Would be good to upgrade to v4. There is significant change for this.

GifDrawable.getDecoder() is not available in Glide v4. This makes it difficult to calculate GIF run time for varying the slide delay when viewing a GIF

Performance changes is negligible in the Android emulator. More testing required on device to see if this is a good idea.


Improved road widths and tunnels

Hello,
I played around a bit with the source code, specifically the way roads are generated.
I realize that some of it is quite... untidy... but it is very much so experimental.
List of changes:

Changed enum "Type" (dataset/OpenStreetMaps, 53) to include values more reflective of the tags of OSM.
Changed the for loop in populator/RoadGenerator at line 68 to change the width of the road, and account for the lane dividers (i realize (2*e.lanes)/2 could be simplified for obvious reasons. it's for if i need to change the factor to make the road wider).
Added "tunnel awareness" (idk, don't have a better name). Basically that means that the road will not generate where there's a tunnel, to avoid really weird things like on the Oberalp Pass in Switzerland (46.660920, 8.662008) or also to avoid covering the building outlines that are above tunnels in real life.

i also want to add road markings (maybe not dashed lines) and i'm looking into how i would generate a railway.
src.zip

Coll but can you make a pull request instead it will be easier for me to merge and you would get credit for the commits in github.

I've been meaning to do proper tunnels and bridges for a while (I think it's been on my todo list for like a month) but I'm woried about junk like overpasses with 5 million bridge levels.

yeah of course

i appreciate this change a lot. i could feel if anything roads could be improved

I'm already looking into how that could work with the auto-tunnels and bridges, especially taking advantage of OSM's layers

Just don't go too crazy with overhauls, I want to keep versions more or less compatable so roads shouldn't suddenly become 5 times wider or something when upgrading to a newer version.

ok i made a pull request. I think 90% of roads don't vary too much, but freeways are the ones that vary the most. that's because I changed it so their lanes were 4 blocks wide instead of 2 (The rest only increased to 3). There's also a lot of fine tweaking I did and am planning to simplify along with progress on the bridges and tunnels.

migrated this to a pull request, forgot to close this issue


HHH-10677 Local Timestamp cache is not updated right after cache.put

https://hibernate.atlassian.net/browse/HHH-10677

The 5.1 backport will be simple though modifications will be needed due to the flush out of tx.

Applied upstream, thanks


Alertmanager does not honor node selector

What kind of request is this (question/bug/enhancement/feature request): bug
[Bug]
Steps to reproduce (least amount of steps as possible):

Enable Cluster Monitoring with a selector unique to one node.
Configure and assign a Notifier to alerts so that alertmanager is deployed.
Delete the node with this node selector

Result:
All monitoring workloads except for alertmanager and prometheus-cluster-monitoring will become unavailable.

When I look at each individually, I see that most workloads are correctly saying nothing matches the node selector.  prometheus-cluster-monitoring actually shows as unavailable (I believe this is Bug rancher/rancher#24128 and have updated accordingly) and alertmanager redeploys to another worker.

Since alertmanager is a part of monitoring/Prometheus it should honor the NodeSelector assigned when enabling Monitoring.  I've tried editing the workload for alertmanager directly and setting a label requirement but it removes the node selector when the workload redeploys.
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI):
Tested on:
v2.3.2: Monitoring v0.0.5
v2.3.3: Monitoring v0.0.5 and v0.0.6

So, should we directly edit the cluster-alerting app in the System Project and set alertmanager.nodeSelectors[0]=... ? This seems to work for me, but how long? are you going to overwrite this on updates?
Or what is the preferred way?


Refinery stops accepting events from Otel Collector after config update

Versions
Charts:
- name: opentelemetry-collector
  version: 0.8.1
  repository: https://open-telemetry.github.io/opentelemetry-helm-charts
- name: refinery
  version: 1.3.0
  repository: https://honeycombio.github.io/helm-charts

Helm: ArgoCD (Helm 3 compatible)
Kubernetes cluster: 1.19 EKS
Steps to reproduce

Scale out a single Otel Collector to 2 or more replicas (behind and NLB) and point them at a K8s Refinery cluster in the same K8s cluster:

opentelemetry-collector:
  fullnameOverride: opentelemetry-collector
  image:
    repository: otel/opentelemetry-collector-contrib
    tag: 0.37.1
  command:
    name: otelcontribcol
    extraArgs: []
  agentCollector:
    enabled: false
  standaloneCollector:
    enabled: true
    replicaCount: 4
    resources:
      requests:
        cpu: 1
        memory: 1Gi
      limits:
        cpu: 1
        memory: 1Gi
  service:
    type: LoadBalancer
    annotations:
      external-dns.alpha.kubernetes.io/hostname: host.domain.name
      service.beta.kubernetes.io/aws-load-balancer-internal: "true"
      service.beta.kubernetes.io/aws-load-balancer-type: nlb
      service.beta.kubernetes.io/aws-load-balancer-ssl-cert: <some acm cert>
      service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "4317,4318,9411,14250,14268"
      service.beta.kubernetes.io/aws-load-balancer-alpn-policy: HTTP2Preferred
  ports:
    otlp:
      enabled: true
      containerPort: 4317
      servicePort: 4317
      hostPort: 4317
      protocol: TCP
    otlphttp:
      enabled: true
      containerPort: 4318
      servicePort: 4318
      hostPort: 4318
      protocol: TCP
    jaeger-compact:
      enabled: false
    jaeger-thrift:
      enabled: true
      containerPort: 14268
      servicePort: 14268
      hostPort: 14268
      protocol: TCP
    jaeger-grpc:
      enabled: true
      containerPort: 14250
      servicePort: 14250
      hostPort: 14250
      protocol: TCP
    zipkin:
      enabled: true
      containerPort: 9411
      servicePort: 9411
      hostPort: 9411
      protocol: TCP
  config:
    receivers:
      otlp:
        protocols:
          grpc:
            endpoint: <IP_ADDRESS>:4317
          http:
            endpoint: <IP_ADDRESS>:4318
    exporters:
      otlp/refinery:
        endpoint: opentelemetry-collector-refinery:4317
        tls:
          insecure: true
        headers:
          x-honeycomb-team: <api key>
          x-honeycomb-dataset: <env>
      otlp/honeycomb-metrics:
        endpoint: api.honeycomb.io:443
        headers:
          x-honeycomb-team: <api key>
          x-honeycomb-dataset: <env>-metrics
    service:
      pipelines:
        traces:
          receivers:
            - otlp
          processors:
            - memory_limiter
            - batch
          exporters:
            - otlp/refinery
        metrics:
          receivers:
            - otlp
            - prometheus
          processors:
            - memory_limiter
            - batch
          exporters:
            - otlp/honeycomb-metrics
        logs:
          receivers:
            - otlp
          processors:
            - memory_limiter
            - batch

Add a field to the Refinery rule field list

# original rules:
  rules:
    GoalSampleRate: 1
    Weight: 0.5
    FieldList:
      - http.method
      - http.status
      - service.name
      - messaging.kafka.partition
      - messaging.destination

# new rules:
  rules:
    GoalSampleRate: 1
    Weight: 0.5
    FieldList:
      - http.method
      - http.status
      - service.name
      - messaging.kafka.partition
      - messaging.destination
      - rpc.grpc.status_code

Observe context deadline exceeded messages in the Otel Collector logs like:

Exporting failed. Will retry the request after interval
error: failed to push trace data via OTLP exporter: rpc error: code = DeadlineExceeded desc = context deadline exceeded

Workaround is to manually delete Refinery pods one at a time. However, this results in a several minute time-to-recovery. May also need to delete Otel Collector pods if they continue to log errors.

@jharley, I just ran a test where we updated a config value (PeerBufferSize) and saw Refinery update flawlessly. So it appears the unwanted behavior is only related to Refinery's live-reload behavior in a K8s context.
Could a short-term fix be to disable live-reload altogether in a Helm/K8s context and rely instead on pod rotation when the either configs or rules are updated? There might be a loss of a few traces, but significantly less than the multiple minutes of breakage we saw with live-reload.

it appears the unwanted behavior is only related to Refinery's live-reload behavior in a K8s context.

This may be due to how the kubelet updates files from mounted ConfigMaps and Secrets. It doesn't change the file content; it swaps a symbolic link from the containing directory, so if Viper is hanging on to a file handle, it will eventually witness the original file getting deleted. I can go look into how Viper watches for and reacts to such changes to be sure, but this sounds like Viper is reloading an empty configuration.

According to comments in Viper, it's already trying to handle ConfigMaps and Secrets correctly.

@seh, that's a pretty interesting angle on the behavior. Has Viper's behavior always been correct? Perhaps Refinery has a dependency on a buggy version of Viper in this context?
At any rate, the number of lost traces from Refinery cluster pod rotation would be much smaller than what we are seeing with a "dead" Refinery cluster which requires operator intervention. So I'd be happy with the option to disable live-reload.

A work around when using the helm chart is to disable rules live reload - added in #104.

Root cause fixed in https://github.com/honeycombio/refinery/pull/398


NTR: on terraces

Term: on terraces
Definition: Natural or manmade landforms which run perpendicular to the slope and are bordered on one side by a steep ascending slope and on the other side by a steep descending slope.
Source: GACS:  http://id.agrisemantics.org/gacs/C22921
Parent: AGRO:00000516
Related: AGRO:00000584, trees and crops, trees on crop land , zoned, on contours, on terraces
ORCID: https://orcid.org/0000-0003-3985-4911

Term exists, ENVO:00000508


Validate Admin module

Make sure that all of the functionality of the admin module is still working after upgrade to Ember 1.13/ember-pouch

Admin module is good to go.


Readwise Plugin: Sync All Error

I keep receiving this error every time I try to sync all after initial installation.
Error: Cannot read properties of undefined (reading 'split') (line 887)

@EpistemicPolymath sorry for the late reply. Would it be possible to check if you are still seeing this issue after updating to the latest version of the plugin manually (from https://amplenote.com/account/plugins)? This would help narrow down the source of the error.

Sorry for the delay, I see you already closed this. I was without my computer for some time. I will re-open if I experience any issues with newer updates.


the official website of spring cloud netflix

the github link of spring cloud netflix is located to cloud.spring.io/spring-cloud-netflix/, is it the spring cloud netflix offical?website?

Yes it is. Though many of the upstream projects are from https://github.com/Netflix

I find cloud.spring.io/spring-cloud-netflix/ is linked to https://cloud.spring.io/spring-cloud-netflix/reference/html/,
It seems https://spring.io/projects/spring-cloud-netflix is more likely Spring Cloud Netflix official website. so which is official website?
besides, cloud.spring.io/spring-cloud-stream is linked to https://spring.io/projects/spring-cloud-stream,  there are different official website links for different spring cloud projects.

I find cloud.spring.io/spring-cloud-netflix/ is linked to https://cloud.spring.io/spring-cloud-netflix/reference/html/,
It seems https://spring.io/projects/spring-cloud-netflix is more likely Spring Cloud Netflix official website. so which is official website?
besides, cloud.spring.io/spring-cloud-stream is linked to https://spring.io/projects/spring-cloud-stream,  there are different official website links for different spring cloud projects.

One is the documentation (cloud.spring.io or docs.spring.io), the other is a general project page (spring.io)

One is the documentation (cloud.spring.io or docs.spring.io), the other is a general project page (spring.io)


Alert list is empty after creating new alert

$ docker images | grep influx
quay.io/influxdb/influxdb        2.0.0-beta          71a7ac91d210        3 weeks ago         225MB
$ docker exec influxdata uname -srm
Linux 5.3.0-40-generic x86_64
$ docker exec influxdata influxd version
InfluxDB 2.0.0-beta.10 (git: d00706dea8) build_date: 2020-06-02T21:09:12Z

create alert (aka check)

visit alerts screen, click new alert, click around some more, ????

visit alerts screen again to find it empty

api confirms list is empty:

$ export INFLUX_TOKEN=<all access token>
$ curl https://host/api/v2/checks -H "Authorization: Token $INFLUX_TOKEN" | jq
{
  "checks": [],
  "links": {
    "self": "/api/v2/checks?descending=false&limit=20&offset=0"
  }
}

api confirms item still exists:

$ curl https://host/api/v2/checks/05d1298bca205000 -H "Authorization: Token $INFLUX_TOKEN" | jq
{
  "id": "05d1298bca205000",
  "name": "Oxygen check",
  "ownerID": "05c5cdf80ddf4000",
  "orgID": "05c5cdf8249f4000",
  "query": { .... },
  "statusMessageTemplate": "Check: ${ r._check_name } is: ${ r._level }",
  "every": "1m",
  "offset": "0s",
  "tags": [],
  "createdAt": "2020-06-09T01:59:49.544442132+10:00",
  "updatedAt": "2020-06-09T02:00:00.06656539+10:00",
  "thresholds": [ ... ],
  "type": "threshold",
  "labels": [],
  "links": {
    "self": "/api/v2/checks/05d1298bca205000",
    "labels": "/api/v2/checks/05d1298bca205000/labels",
    "members": "/api/v2/checks/05d1298bca205000/members",
    "owners": "/api/v2/checks/05d1298bca205000/owners",
    "query": "/api/v2/checks/05d1298bca205000/query"
  },
  "status": "active",
  "latestCompleted": "2020-06-08T16:14:00Z",
  "latestScheduled": "2020-06-09T02:14:00+10:00",
  "lastRunStatus": "success"
}

the only way i can find my checks now is to "explore" the _monitoring bucket to find active check_ids
shoud i be using nightly instead of beta?

@jpillora sorry for the delay in seeing this. can you still repro with beta-13?

Assuming beta-13 is this docker image, then yes, I still can
$ docker ps | grep influx
8572e742ed4c        quay.io/influxdb/influxdb:2.0.0-beta   "/entrypoint.sh infl…"   2 minutes ago       Up 2 minutes                      <IP_ADDRESS>:56080->9999/tcp
                                                                                influxdata
$ docker images | grep influx
quay.io/influxdb/influxdb        2.0.0-beta          e89ed0141303        33 hours ago        242MB
quay.io/influxdb/influxdb        <none>              71a7ac91d210        7 weeks ago         225MB

$ curl -s https://inf.jpillora.com/api/v2/checks/05d1298bca205000 -H "Authorization: Token $INFLUX_TOKEN" | jq '.name'
"Oxygen check"
$ curl -s https://inf.jpillora.com/api/v2/checks -H "Authorization: Token $INFLUX_TOKEN" | jq
{
  "checks": [],
  "links": {
    "self": "/api/v2/checks?descending=false&limit=20&offset=0"
  }
}

@jpillora i believe you will need to specify the org name or org id in the API call to /checks. https://v2.docs.influxdata.com/v2.0/api/#operation/GetChecks

Thanks @russorat, I didn't notice that param. Unfortunately, same result
$ curl -s "https://inf.jpillora.com/api/v2/checks/05d1298bca205000" -H "Authorization: Token $INFLUX_TOKEN" | jq '.orgID'
"05c5cdf8249f4000"

$ curl -s "https://inf.jpillora.com/api/v2/checks?orgID=05c5cdf8249f4000" -H "Authorization: Token $INFLUX_TOKEN" | jq
{
  "checks": [],
  "links": {
    "self": "/api/v2/checks?descending=false&limit=20&offset=0&orgID=05c5cdf8249f4000"
  }
}

Two comments on this,

If it is required, the server should throw a 400
Is it possible for it not to be required, and keeping the orgID as a filter - so leaving it off will return all checks the token has visibility into

@jpillora try as i might, i can't seem to reproduce this in my local OSS build. I am going to try the docker image in case it's specific to that.

A couple things that might be affecting this:

This alert was created by a now deleted user - I didn't think this would
be an issue as it's all under the same organisation and I'm currently using
an admin (full access) token
I upgraded the influxdb beta image about 2 weeks ago, so maybe it's stuck
in a bad state? I guess the bug lies in how it got into this state...

I can try to repro from scratch when I get time, though I'm currently
swamped
On Tue, 7 Jul 2020 at 05:33, Russ Savage<EMAIL_ADDRESS>wrote:

@jpillora https://github.com/jpillora try as i might, i can't seem to
reproduce this in my local OSS build. I am going to try the docker image in
case it's specific to that.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/influxdata/influxdb/issues/18395#issuecomment-654425398,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAE2X464T3VWYCTSWRXYBNTR2IRJBANCNFSM4NYSBBEA
.

i'm going to close this for now since it was opened against a pre-release version of influxdb. if you are still facing this problem, please open a new issue with the details.


Transition to ValueTask

We should be using ValueTask instead of Task.

As far as I can tell, this is done everywhere but in tests and LunrCoreLmdb.


Missing \

The Path in the topic Considerations is missing a \ between users and %username%. It should be  C:\Users%username%\Desktop

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

ID: 9950111d-3095-3377-aed7-80a7469a34c3
Version Independent ID: 3d559665-a358-09be-37a8-d38fa45da8af
Content: Duplicate MSIX Packaging Tool Settings across multiple devices - MSIX
Content Source: msix-src/packaging-tool/duplicate-mpt-settings-across-devices.md
Product: msix
GitHub Login: @dianmsft
Microsoft Alias: diahar

This was fixed and closed.


Loading model with tf.linalg.band_part in regularisation

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
Model trained on linux, loading fails on windows
Model trained on tf 2.2.0, but loading on 2.3.0 also doesn't work - Py 3.7

Describe the current behavior
tf.keras.models.load_model(model_path) results in
ValueError: Inconsistent values for attr 'Tindex' DT_INT32 vs. DT_INT64 while building NodeDef 'tf_op_layer_MatrixBandPart_3/MatrixBandPart' using Op<name=MatrixBandPart; signature=input:T, num_lower:Tindex, num_upper:Tindex -> band:T; attr=T:type; attr=Tindex:type,default=DT_INT64,allowed=[DT_INT32, DT_INT64]>

Which probably comes from this custom regularisation that has been added to the model
def orthog_reg(weight_matrix):
    """ The orthogonality inducing regularization. Compute: |upper_triang(dot_prod(W,W))| """
    # weight_matrix shape is batch_size x latent_dim so we have row vectors so dot prod is WW^T
    dot_prod = tf.linalg.matmul(weight_matrix, tf.transpose(weight_matrix))
    # we only care about the upper triangular matrix, because the matrix is symmetric and the diagonal represents
    # orthogonality of vectors with itself which we do not care about
    # https://www.tensorflow.org/api_docs/python/tf/linalg/band_part
    upper_triang_dot_prod = tf.linalg.band_part(dot_prod, -1, 0) - tf.linalg.band_part(dot_prod, 0, 0)
    return tf.reduce_sum(upper_triang_dot_prod)

It is added like this
   # get regularisation
    weights = embedding_one_layer.get_weights()[0]
    weights_relu = tf.nn.relu(weights)
    orthog_reg_result = orthog_reg(weights_relu)

    # add orthogonal regularisation loss to model loss
    orthog_reg_result = 0.01 * orthog_reg_result
    model.add_loss(orthog_reg_result)

Describe the expected behavior
Expect it to load ;)
Standalone code to reproduce the issue
(Will add this soon)

@RoelantStegmann
Please provide with simple stand alone code to replicate the issue faced or if possible share a colab gist with the issue faced for us to analyse.
With respect to the error, follow the below:
#32375


bundle: use latest/stable charms from Charmhub

By default, we use the latest/stable slurm-charms from Charmhub. If the
user wants another channel, they can use the charms/latest-edge.yaml
overlay for the latest/edge charms. Additionally, the overlay
charms/local-development.yaml provides the charms from disk.
The Makefile should use the local-development overlay by default, as it
is merely a convenience tool for local testing and development.

👍


Remove code that fetches artifacts from S3

Is your feature request related to a problem? Please describe
The S3 bucket that contains build output is not public and cannot be made public for reasons. Remove code that requires credentials to download build and distribution artifacts and replace it with downloading via public URLs.
Describe the solution you'd like
Downloading manifest and its artifacts via HTTPs in https://github.com/opensearch-project/opensearch-build/pull/789, apply that to test workflows.
Describe alternatives you've considered
No response
Additional context
I am not sure why we went the route of trying to download from S3. This makes it difficult to run tests locally.

https://github.com/opensearch-project/opensearch-build/pull/878


small function to download the whole blockchain

The error that causes CI failure on unit tests at https://travis-ci.org/aeternity/epoch/jobs/279552986 is:
undefined
%% Unknown error: {abort,
{cleanup_failed,
{error,
{badmatch,[]},
[{aec_miner_tests,'-miner_test_/0-fun-35-',1,
[{file,
"/home/travis/build/aeternity/epoch/_build/test/lib/aecore/test/aec_miner_tests.erl"},
{line,44}]}]}}}

That line hardcodes the expectation that the keys folder contains two files (priv and pub keys) but none is found (empty list [] in badmatch error).
I did not understand yet why it failed.

@velzevur I am taking the liberty to restart the unit tests job that failed, on the basis that I believe I captured the same failure in another PR but with more context.
(Also, in this PR (193) tests passed in the other CI job running unit tests.)


TEAMS page need to have section on the right side of page with player roster info

completed, decided to do mobile first so the right side is no longer needed as of right now


display: run-in

Is this spec available in caniuse.com?
Source: https://css-tricks.com/run-in/

Subfeature of #2337.
https://drafts.csswg.org/css-display/#valdef-display-run-in

+1

Simple test here: http://meyerweb.com/eric/css/tests/css3/show.php?p=display#i05
A quick test showed only Opera supported it on MacOS.  Edge might, since IE8 did, but since it was removed from some browsers it may have been removed from the Explorer/Edge line as well.

dbaron has a test here: https://dbaron.org/css/test/sec090204
Actually, it seems both Eric and dbaron's tests fail in Opera for Mac (v45). MDN reports that it should work in Opera, but I don't see that as the current situation.
Have not tested Edge or IE.

Just noticed this is a duplicate of #1369


⚠ Bofrost.be has degraded performance

In 49a2aff, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1099 ms

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


How can I validate a hash field?

I want to validate one of a hash field's value whether it's a number
for example:
class Foo
	include Mongoid::Document
	field :bar, :type => Hash

	validates_numericality_of "bar['counter']"
end

f = Foo.new
f.bar = { 'counter' => 'string' }
f.save # should return false
f.bar = { 'counter' => 1 }
f.save # should return true

You need to write a custom validation for this. See:
https://github.com/rails/rails/blob/master/activemodel/lib/active_model/validations.rb#L131


AssertionError: Torch not compiled with CUDA enabled

When i run “python temp/VirRep/src/VirRep.py -i ~/virus3/seq/no_duplicates5_6.fasta -o temp/VirRep/vr -l 5000 -m temp/VirRep/src/model/VirRep.pth --use-amp --conservative --cpu-threads 8”. An error occurred as below, do you have ideals to fix it? Thanks.
Traceback (most recent call last):
File "temp/VirRep/src/VirRep.py", line 283, in
pred_df = predict(
File "/data5/baidefeng/virus3/temp/VirRep/src/predict.py", line 377, in predict
headers_dict, seqlen_dict, scores_dict, positions_dict = score_segment(
File "/data5/baidefeng/virus3/temp/VirRep/src/predict.py", line 27, in score_segment
model = model.to(device)
File "/data5/baidefeng/miniconda3/envs/vr/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1173, in to
return self._apply(convert)
File "/data5/baidefeng/miniconda3/envs/vr/lib/python3.8/site-packages/torch/nn/modules/module.py", line 779, in _apply
module._apply(fn)
File "/data5/baidefeng/miniconda3/envs/vr/lib/python3.8/site-packages/torch/nn/modules/module.py", line 779, in _apply
module._apply(fn)
File "/data5/baidefeng/miniconda3/envs/vr/lib/python3.8/site-packages/torch/nn/modules/module.py", line 779, in _apply
module._apply(fn)
[Previous line repeated 2 more times]
File "/data5/baidefeng/miniconda3/envs/vr/lib/python3.8/site-packages/torch/nn/modules/module.py", line 804, in _apply
param_applied = fn(param)
File "/data5/baidefeng/miniconda3/envs/vr/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1159, in convert
return t.to(
File "/data5/baidefeng/miniconda3/envs/vr/lib/python3.8/site-packages/torch/cuda/init.py", line 284, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

It seems that you have installed a CPU-only version of pytorch that does not support CUDA or the CUDA version is incompatible with the PyTorch version.  I would suggest to reinstall PyTorch following the instructions provided at https://pytorch.org/. Alternatively, if you intend to run in CPU mode, you need to add the --cpu option and remove the --use-amp option.

It seems that you have installed a CPU-only version of pytorch that does not support CUDA or the CUDA version is incompatible with the PyTorch version. I would suggest to reinstall PyTorch following the instructions provided at https://pytorch.org/. Alternatively, if you intend to run in CPU mode, you need to add the --cpu option and remove the --use-amp option.

(vr) dell@dell-PowerEdge-R720:~/bioinfo/virrep/VirRep$ python ./src/VirRep.py -i ./test/toy.fasta -o vr_out --conservative -w 2 --cpu-threads 8
Traceback (most recent call last):
File "/home/dell/bioinfo/virrep/VirRep/./src/VirRep.py", line 280, in
model = torch.load(options.model, map_location=torch.device('cpu'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dell/miniconda3/envs/vr/lib/python3.12/site-packages/torch/serialization.py", line 997, in load
with _open_file_like(f, 'rb') as opened_file:
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dell/miniconda3/envs/vr/lib/python3.12/site-packages/torch/serialization.py", line 444, in _open_file_like
return _open_file(name_or_buffer, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dell/miniconda3/envs/vr/lib/python3.12/site-packages/torch/serialization.py", line 425, in init
super().init(open(name, mode))
^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'model/VirRep.pth'
I'm very sorry, I also encountered an error. Please help to see how to fix. thank you

You need to enter the src directory and then run the command. Additionally, if you intend to run VirRep in CPU mode, you should add the --cpu option.

Thanks for your response. If we use --cpu option, time comsuming was so long. Do you have ideas to accelerate the process. Thank you.

VirRep is designed to be executed on GPU. Its efficiency is significantly lower when run on CPU. I kindly suggest running VirRep on GPU whenever possible. If you need to use the --cpu option, running VirRep with more threads may improve efficiency.

Thanks for your response. If we use --cpu option, time comsuming was so long. Do you have ideas to accelerate the process. Thank you.


Add auth0 provider

Description
Adds an Auth0 provider and related docs.

Motivation and Context
We wanted to add SSO to some of our internal apps, and were already using Auth0.

How Has This Been Tested?
Included unit tests, and using the Auth0 provider in our Kubernetes cluster.

Checklist:

[x] My change requires a change to the documentation or CHANGELOG.
[x] I have updated the documentation/CHANGELOG accordingly.
[x] I have created a feature (non-master) branch for my PR.

Is there any benefit to adding this provider over using the existing OIDC provider? Auth0 should support this https://auth0.com/docs/protocols/oidc/openid-connect-discovery

I can confirm oidc+auth0 works

I managed to get Auth0+OIDC working as well, so I'll close this PR; adding a note to the documentation indicating that OIDC is preferred over adding a provider might be a good idea, as there appear to be several existing providers that also support OIDC :wink: (Google, Azure, Keycloak, GitLab)

Thanks @Capitrium! Please feel free to contribute again in the future :smile:


Add an endpoint that supports generics

This will be slightly faster than using reflection to figure out the request type.
But the calling signature has to be explicit in defining the <message,response>
     // without generics
       var result = await mediator.HandleAsync(simpleQuery, context);

     // with generics
      var result = await mediator.HandleAsync<SimpleQuery, SimpleResponse>(simpleQuery, context);

I agree that specifying generic parameters explicitly is not good. Do you know what kind of constraints MediatR has in place to it magically works?

I agree that specifying generic parameters explicitly is not good. Do you know what kind of constraints MediatR has in place so it magically works?

It doesn't use generics to define the TRequest like my first method. Hence doesn't require explicit specifying when called.
https://github.com/jbogard/MediatR/blob/master/src/MediatR/Mediator.cs


Infinite loading screen, M1 Macbook Pro, Sonoma, Greenlight 2.0.0-beta14, Remote Network

I'm trying Greenlight for the first time and unfortunately can't get it working.  Environment:

M1 Macbook Pro
MacOS Sonoma
Greenlight 2.0.0-beta14
Mac is on a different network than the Xbox Series X
I have confirmed that standard xbox remote play on my iPhone works fine in the same situation

When I try to connect to my xbox, here's what happens:

First I see this:

Then I click "Start Stream" and see this:

After a few seconds, it switches to this:

And here it hangs indefinitely.  I have tried restarting the app several times and see the same result.  Is there a log or something I could share to help debug?
Thanks!

I just tried installing Version 2.0.0-beta8 to see if it was a recent issue, but am seeing the same exact result

I have similiar issue on Mac mini M2 MacOS Sonoma. I wish our issues will be solved (bump).

Tried version 1.2.0, just for kicks and see something similar:

Xcloud games work fine.

Xcloud games work fine.

Okay. I tried Beta 8 and it (I think) work fine for me. Maybe will it also work for you?

Just gave it a shot.  Thanks for the heads up, but unfortunately I'm seeing the same result.  Enjoy your gaming session!

I should mention, I am a coder, so if one of the authors or contributors can just jumpstart knowledge transfer and point me to where the problem is likely to be (file name), I'm happy to start debugging myself.

Just gave it a shot. Thanks for the heads up, but unfortunately I'm seeing the same result. Enjoy your gaming session!

I should mention, I am a coder, so if one of the authors or contributors can just jumpstart knowledge transfer and point me to where the problem is likely to be (file name), I'm happy to start debugging myself.

Good Luck!

there any updates on this? I can play perfectly fine when on the same network, but seeing the same infinite loading screen on a remote network.

Same issue here.
2.0.0-beta14
Infinite "Connecting to console" on remote network.

Similar issue
2.0.0-beta14
macOS Sonoma (14.0) on M1 Pro

This is, a mostly time, Xbox side issue: If so you'll notice you can't shutdown or restart the Xbox on site/locally too, only unplug the power restart. Only MS can fix it.

Hmm I’m not sure about that, at least not in my experience.
In my case. the Xbox could be started locally fine. It also could be
started remotely via the Xbox app on iOS and streamed against. It’s just a
problem with this app on my Mac.
On Wed, Oct 25, 2023 at 1:43 AM Originalimoc @.***>
wrote:

This is, a mostly time, Xbox side issue: If so you'll notice you can't
shutdown or restart the Xbox on site/locally too, only unplug the power
restart. Only MS can fix it.
—
Reply to this email directly, view it on GitHub
https://github.com/unknownskl/greenlight/issues/980#issuecomment-1778552533,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABCQKBOOENQ4OSOHTYBGA3YBCRJ7AVCNFSM6AAAAAA5W7ZG5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZYGU2TENJTGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

Download 2.1.0 ver last week ,still can't pass through the remote network. But the local network works awesome. My iPhone can work normally too.

Can confirm that 2.1.0 still infinite loads on a remote network.

Can confirm that 2.1.0 still infinity loads on remote network:

Correction!  This was hanging because my xbox wasn't already turned on.  Turned it on using the xbox app and now I am presented with this:

Unfortunately, after clearing data and restarting the app, no matter how many times i click "Log In", nothing seems to happen.


Init containers should be getting same ENV var setups like the final containers

Init containers should be getting same ENV var setups like the final containers
How to reproduce the bug
Try hosting superset on k8s using helm and get the values for DB_HOST, DB_NAME, etc from some different secret.
Screenshots

Were you able solve this? Running into this myself.

Hoping we'll be able to merge the second linked PR soon. Pinging more revieweris, but CI is passing and hopefully it's close.

Anyone want to adopt the linked Draft PR?


"how do I" questions

I expect the pure css folk (like myself) to ask simple, basic questions, regarding how they'd do what they already do easily in css, with xyz css-in-js solution. I'm just starting the same for glamor, but sharing the qn titles to get some feedback -
how do I -

apply a style to a single element
apply a style to a class of elements
attribute selectors
pseudo classes
specificity
apply style based on relationships with other elements
font faces/keyframes/media queries

what am I missing? cheers.

I think one that comes up is "how do I integrate with global CSS libraries like Bootstrap"... or to be a bit self-centered, how to do so in the context of React wrappers for those libraries (e.g. React-Bootstrap) that wrap up and encapsulate sub-components that a user might still want to target with CSS.
(Oof, real mouthful right there.)

good one, agreed -

how do I use  with

Sure. Just wanted to highlight that this can be bit harder than it seems if you're using React wrappers for those libraries. React-Bootstrap has a bunch of components that look a bit like:
({ children, ...props }) => (
  <div {...props} className={classNames(props.className, 'parent')}>
    <div className="child">
      {children}
    </div>
  </div>
);

where sometimes you want to style the component with .child.
This is straightforward with normal CSS. Can be trickier in other contexts.

And I'm fine with the answer being "fix the React-Bootstrap API" – just need to know how.

Yeah. Frankly, while they look great and work in a pinch, I'm not fully sold on react-bootstrap/jsxstyle styling via components. Not sure I know the answer, but it makes some simple things hard, which makes me question the approach.

Well, it's straightforward with CSS Modules (and I think glamor as well?) in that you just target the equivalent of :global(.child) in a selector.
IIRC we couldn't figure out how to do it with Aphrodite, though, so we ended up cutting a project that we initially built with Aphrodite over to CSS Modules.

Yeah but it isn't that brittle/ dependent on implementation details? I agree, it works, but scary.
I'll add more to this point after thinking some more, feel like I'm missing something.

It's worked okay for us so far in using CSS Modules with React-Bootstrap. For React-Bootstrap we consider the DOM representation part of the public API, so there are semver guarantees.
Not entirely ideal, but works okay for now.

made some progress on a glamor version of this https://github.com/threepointone/glamor/blob/master/docs/howto.md


Incognito mode is detectable and can be blocked

Incognito mode is detectable and can be blocked.
News articles from 2019 say it has been "Fixed" but they never really did.
Verify here:
https://output.jsbin.com/tazuwif
Gist for the code:
https://gist.github.com/jherax/a81c8c132d09cc354a0e2cb911841ff1

@karz1 Your link is for some reason leads to a different URL.

This looks like a general Chromium problem. Is there a crbug for this issue? How have other Chromium forks dealt with this?

It is not even Chromium problem, the same thing happens in Firefox. I don't think this issue belongs here.

This is an old issue, that didn't show much activity recently — closing.
If you have any more information to add, let us know.


Minting assests using Sugar candy machine CLI

You need to mint the NFTs generated in the previous task of the 'hashlips art engine' using the Sugar Candy Machine CLI. In order to do so follow the below-mentioned steps-

Transfer all the images and the json files in the build folder of the hashlips_art_engine to the assets folder of the metaplex.
Delete previously present text file in the assets folder.
Then, mint all those NFTs to Bundlr using the Sugar Candy Machine CLI.
Price of each NFT will be 0.15 sol.
Royalty percentage: 6%.
Go live date: 17/01/2023 and time: 00:00:00 hrs.

Feel free to contact on discord.

Claim


Index out of bound exception during simulation via the UI

Steps to reproduce
Reported by a user:
Initially, when using a measure simulation and plotting in in a chart, I get the following screen. I’ve set the chart to update in real time.

I’ve also set a custom measure (which I believe is the source of the issue as I cannot reproduce it without a custom measure)

When I change the measure from 10 to 100, I get

Changing it from real time to periodic gives the correct chart

Environment

atoti: 0.4.0

Can you upload the server logs?
Thanks!

Can you upload the server logs?

I've only forwarded the info the initial user gave me during a usability review. Haven't tried to reproduce it.

This will be fixed in the next release when the new measure simulation widget will be released.
For info: the reason this happened was because in the old widget, when changing a line we performed two datastore actions (delete, then insert), which meant that the store was temporarily empty. The new widgets perform update actions which means this is no longer a problem.


preflight process does not complete when running in a container

Bug Description
When running preflight in a container on a cluster, check operator process does not complete. It appears to be an issues with the MD5 hash logic based on the logs
Version and Command Invocation
(The output of preflight --version)
Steps to Reproduce:
(How can we reproduce this?)

Deploy preflight to an cluster OpenShift cluster
Run oc rsh <pod-name>
Run preflight check operator <any-bundle-image>
Wait for the process to hang

Expected Result
preflight should finish all checks and produce results
Actual Result
preflight does not complete and the process hangs

/assign


What for a String do i need for AudioTranscriptionRequest?

I tried to use a File Path where the file is located, i also tried to use a File Buf
i always getting the error:
APIError { message: "400: {\n  \"error\": {\n    \"message\": \"1 validation error for Request\\nbody -> file\\n  field required (type=value_error.missing)\",\n    \"type\": \"invalid_request_error\",\n    \"param\": null,\n    \"code\": null\n  }\n}" }

my code:
let transcript = AudioTranscriptionRequest::new("E:\\Downloads\\demo.mp3".to_string(), WHISPER_1.to_owned());
let transcript_response = client.audio_transcription(transcript).unwrap();

println!("Transcript: {:?}", transcript);
Transcript: AudioTranscriptionRequest { file: "E:\\Downloads\\demo.mp3", model: "whisper-1", prompt: None, response_format: None, temperature: None, language: None }

I have the same issue. Can we have an example for Transcription?

@NewtTheWolf @DanteVillarreal
Thank you very much for your patience. I have fixed the HTTP client, and it is now working correctly.
I created a sample like this:
https://github.com/dongri/openai-api-rs/blob/main/examples/audio_transcriptions.rs.
Please refer to it and Please use v5.0.0


⚠ ClamAV has degraded performance

In c38067a, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 68 ms

Resolved: ClamAV performance has improved in f6e0487 after 5 minutes.


Move detailed docs to vitepress

Discussed in #116

Move detailed docs to vitepress, build to github pages
re-implement autogenerated docs from JSDoc comments (broken by #118)

@benjaminbojko Looks like reimplementing the autogenerated docs will be a bit more difficult than anticipated. There are a couple of approaches, but none seem to fully match our needs:

use the TS compiler to manually extract the type info from a given file, then pass that json to vitepress and display with custom components. Here's an example that shows how one can get the constructor info from the classes in a file as json: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#using-the-type-checker – this gets complicated, as JSDoc isn't included in the AST
use typedoc to generate a JSON file with all type info for the whole repo, then collect the relevant  json from that larger set and pass it to vitepress to be rendered via custom components. This is pretty unwieldy - just for the content package, it dumps out 25k lines of JSON, with types fragmented across the whole thing.

Overall both options could potentially work, but getting either setup will take a good chunk of time. I'm not sure that the benefit of automation here outweighs the cost of dev and maintenance when compared to just manually writing up the markdown files.

Oof yeah. It was nice to have all the various options listed out, but the main challenge with our docs is actually making it clear how to fit all the pieces together.
I think with #116 and the new config autocomplete, we can probably make the documentation more focused on use cases, principles, etc. Let's close this one as won't fix.

Whoops realized that this was the larger vitepress issue and not just for jsdocs :)
We should continue with vitepress, but remove all dependencies to jsdocs (scripts, templates, etc).

Resolved by #179


Reenable cl

I dont think is quite ready for merge just yet, since the model files are 1.6GB each, but it does run at least :-)  Albeit slowly :-D

(Well... since it's always the same 1.6GB model file, and it's once every 50 epochs, maybe it's kind of usable???)

hi Hugh, thanks, same as https://github.com/szagoruyko/cifar.torch/pull/15 I forgot to merge it. what's the problem with clearState in clnn?

what's the problem with clearState in clnn?

Not sure.  But if you run it, then do the save, then carry on training, it eats ~2GB gpu memory per save :-P

thanks, same as #15

Ah yes, your solution is nice and clean :-)

(seems I can reproduce the opencl clearstate issue using:
require 'clnn'

local model = nn.Sequential()
model:add(nn.Linear(4096,128))
model:cl()

local inputs = torch.ClTensor(128, 4096)

for i=1,250 do
  print('i', i)
  local out = model:forward(inputs)
  model:backward(inputs, out)
  model:clearState()
  torch.save('/tmp/foo.dat', model)
end

... and monitoring using eg:
while true; do { nvidia-smi ; sleep 0.1; } done

)

@hughperkins I think I found the reason for the memory leak. I just opened an issue in cltorch

Hi Sergey, following Francisco's fix, clearstate works very well now on opencl version :-)

cool thanks @hughperkins @fmassa

By the way, if you update to very latest version of cltorch/clnn, it's about ~25% faster now (tested on K520), after adding batched SGEMM, per Junli Gu's paper http://www.iwocl.org/attend/sessions/  I've only added on forward pass for now.  I imagine if I add also for backprop, there will be similar gains plausibly.  Basically on K520, I was getting ~17.5 minutes per epoch before, and ~13 minute per epoch now.

(Just for info, I moved OpenCL torch to run off Torch as it was around ~21 February, https://github.com/hughperkins/distro .  I've cherry-picked some of the changes since then.  And it continues to run cifar.torch ok :-)  (though it temporarily didnt :-D  for about ~6 hours)


Do not throw an ApiException when grpc logging does not work

When debugging grpc-related issues in a PHP client library, some common steps include adding the below lines to the php.ini file:
grpc.grpc_verbosity=debug
grpc.grpc_trace=all,-timer_check
grpc.log_filename=/var/log/grpc.log

However, if one accidentally forgets to initialize and make the grpc.log file writeable (e.g. running sudo chmod 666 /var/log/grpc.log), then when running any sample PHP code that uses grpc, you get this error:
PHP Fatal error:  Uncaught Google\ApiCore\ApiException: {
    "message": "failed to connect to all addresses",
    "code": 14,
    "status": "UNAVAILABLE",
    "details": []
}

This is misleading as it suggests that the service one is trying to access in unavailable, when in actuality the only issue is that the grpc.log file is missing/unwriteable.
This error immediately goes away when the grpc.log file is initialized and writeable, or if grpc.log_filename is removed/commented out and the logs are written directly to stderr.
Ideally in this scenario, grpc emits a more descriptive message along the lines of Make sure the grpc.log file is initialized and writeable, and google-cloud-php does not throw an ApiException that could throw off users.
Related issue in grpc here: <>

@alicejli looks like this one is blocked on getting changes into gRPC (grpc/grpc#27987). Can I assign to you to track through?


💚 (again) Fix sync of inference widgets demo

https://huggingface.co/spaces/huggingfacejs/inference-widgets is broken again 😅
Follow-up of https://github.com/huggingface/huggingface.js/pull/512, looks like the shared folder is missing.
See https://huggingface.co/spaces/huggingfacejs/inference-widgets/tree/main/packages?logs=build
cc @SBrandeis

No worries! btw - is there a way to manually trigger the workflow? I can't seem to find the button (like the others).


Add Razor grammar tests

Moves Razor grammar tests from dotnet/razor to dotnet/vscode-csharp so we can completely get rid of our ts and node dependencies in the Razor repo. The Razor grammar tests run via jest instead of mocha, so I added it as a dev dependency in package.json.

Isn't this missing the actual Razor grammar? Or does that come from a package from the Razor repo still?

Isn't this missing the actual Razor grammar? Or does that come from a package from the Razor repo still?

The Razor grammar was previously added to this repo and can be found here: https://github.com/dotnet/vscode-csharp/blob/main/src/razor/syntaxes/aspnetcorerazor.tmLanguage.json

The Razor grammar was previously added to this repo and can be found here: main/src/razor/syntaxes/aspnetcorerazor.tmLanguage.json

Oh okay, cool. Though that's the compiled grammar, and the yaml file is the source for it. Is the plan for that to move in a subsequent step?

Oh okay, cool. Though that's the compiled grammar, and the yaml file is the source for it. Is the plan for that to move in a subsequent step?

Ah, good call on the missing yml file. Just added it!

Can we also add tasks/scripts/whatever to compile it? Also might want to consider having something to pull in the latest csharp, html, css and js grammars like we have here: https://github.com/dotnet/razor/blob/main/eng/scripts/UpdateTextMate.ps1
(and when we remove everything from the Razor repo we can also update that script to pull the razor grammar from this repo)


Update supported version in yaml test file for the primary_only parameter in force-merge API

Description
In 2.13.0, we added a new parameter primary_only for the force-merge API in this PR:https://github.com/opensearch-project/OpenSearch/pull/11269,  but I found that we omitted updating the supported version in a yaml test file when we updated the version check by this PR: https://github.com/opensearch-project/OpenSearch/pull/12657, so we need to update it.
Backport to 2.x is not needed, and changelog is also not needed.
Related Issues
https://github.com/opensearch-project/OpenSearch/issues/8021
Check List

[x] New functionality includes testing.

[x] All tests pass

[x] New functionality has been documented.

[x] New functionality has javadoc added

[x] Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
[x] Commits are signed per the DCO using --signoff
[x] Commit changes are listed out in CHANGELOG.md file (See: Changelog)
[x] Public documentation issue/PR created

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Thanks @gaobinlong !


Pathfinding

Adds pathfinding utility and swaps movement trajectory generation to useing pathplanner rather than the wpilib trajectories

Probs not going to use it ay