Fix translation config

Resolves https://github.com/Azure/azure-sdk-for-python/issues/33861
This PR does 2 things:

The specified BuildTargetingString was excluding translation-text from running in the live tests pipeline. This removes the targeting string so translation-text will run live and weekly live tests
This runs the post-processing script to fix init imports to use the patched clients, and as a result, fixes the mypy errors. translation is part of the core PR build so want to fix this now as we flip over to mypy required to avoid blocked builds.

API change check
API changes are not detected in this pull request.


Bug(scope): Upgrade to v5 asks for @ngneat/transloco-utils

Is there an existing issue for this?

[X] I have searched the existing issues

Which Transloco package(s) are the source of the bug?
Transloco, Don't know / other
Is this a regression?
Yes
Current behavior
When I try to upgrade from 4.3.0 to 5.0.0 and run yarn, it asks me about which version of @ngneat/transloco-utils I want to use. When I manually add @ngneat/transloco-utils to package.json, yarn still asks me which version I would like to use.

This happens when I try to replicate in sandbox:

Comes up every time I run yarn:
warning Lockfile has incorrect entry for "<EMAIL_ADDRESS>Ignoring it.
Couldn't find any versions for "@ngneat/transloco-utils" that matches "^4.0.0"
? Please choose a version of "@ngneat/transloco-utils" from this list: (Use arrow keys)
❯ 5.0.0

Expected behavior
Running yarn should just download the new version of transloco.
Please provide a link to a minimal reproduction of the bug, if you won't provide a link the issue won't be handled.
Unable to download 5.0.0 into sandbox to replicate
Transloco Config
No response
Please provide the environment you discovered this bug in
Transloco: 5.0.0
Angular: 16.1.7
Node: 18.16.x
Package Manager: Yarn
OS: Mac

Browser
No response
Additional context
No response
I would like to make a pull request for this bug
Yes
https://github.com/ngneat/transloco/pull/675

Thanks, Released in v 5.0.1


Develop upstream enable cudnn deterministic test

Re-enable deterministic test

Merged it with this PR
https://github.com/ROCmSoftwarePlatform/tensorflow-upstream/pull/1879


Win+Shift+S Shortcut doesn't work when remapped

Microsoft PowerToys version
0.57.0
Running as admin

[x] Yes

Area(s) with issue?
Keyboard Manager
Steps to reproduce

Create a new keyboard shortcut remap
Select Type under Physical Shortcut
Press the Win+Shift+S shortcut
Press Ok
Press Type under Mapped To
Press Ctrl+Shift+C
Press Ok
Press Ok
Try Ctrl+Shift+C and it will not work
Try Win+Shift+S and this also will not work

✔ Expected Behavior
The remap should be successful
❌ Actual Behavior
The remap disables the previous shortcut, but does not enable the new one.
Other Software
No response

Try it the other way around

Thank you, yes the help text definitely needs clarification. By physical shortcut I thought it meant the existing shortcut, as the new one does not exist yet at that point in time.


ASP.NET Core 2.0 examples for DataProtection using obsolete methods

Cookie sharing topic
https://docs.microsoft.com/en-us/aspnet/core/security/cookie-sharing?view=aspnetcore-2.0&tabs=aspnetcore2x
is using Obsolete extension method "app.UseCookieAuthentication"
https://go.microsoft.com/fwlink/?linkid=845470

ping @HaoK
TL;DR ... UseCookieAuthentication with Katana cookie authentication middleware isn't obsolete for netfx 4.6.1 (non-Core), right? Are the API comments just saying that because API comments can't be set up by-framework?

Yeah nothing has changed for Katana, but for core UseAuthentication is obsolete


Add dino collection to repo

Add these dinos to repo
https://imgur.com/a/USyBV

EDIT: This one too: https://usercontent.irccloud-cdn.com/file/qy2VL5H6/dinosaur_in_desert.png

Closed by #9


getJsonObject is always returns nullptr

Hello guys.
I want to send a request through dragon and retrieve the returned json value.
But its value is always equal to nullptr!
The method I used may be wrong.
How can I send the correct request to an address and get its json data output?
Here my example:
    auto client = drogon::HttpClient::newHttpClient("https://jsonplaceholder.typicode.com/todos/1");
    auto req = drogon::HttpRequest::newHttpRequest();
    req->setMethod(drogon::Get);
    client->sendRequest(req, [&req](drogon::ReqResult result, const drogon::HttpResponsePtr &response) {
        if (result != drogon::ReqResult::Ok)
        {
            std::cout
                << "error while sending request to server! result: "
                << result << std::endl;
            return;
        }
        std::shared_ptr<Json::Value> obj = response->getJsonObject();
        Json::Value json = obj.get();
        if(obj==nullptr) {
            std::cout << "It is not json!\n";
        } else {
            std::cout << json["title"].asString();
        }

    });

Thank you!

please print the body of response to check if it is a json string and please print the 'content-type' header to check if it is application/json

please print the body of response to check if it is a json string and please print the 'content-type' header to check if it is application/json

  std::cout << response->body() << std::endl;
  std::cout << response->getContentType() << std::endl;

Well, the first one output is page html content and the second output is: 3, which means: CT_TEXT_HTML.
It seems we need to set the requested content type to JSON.
response->setContentTypeCode(drogon::ContentType::CT_APPLICATION_JSON);
response->setContentTypeString("content-type: application/json");

When I set the content type to json it still makes no difference.

No, you shouldn't set the content-type to the response object. The output you got shows that the response from server does not contain json content.

No, you shouldn't set the content-type to the response object. The output you got shows that the response from server does not contain json content.

I understand, but please see these links:
https://jsonplaceholder.typicode.com/todos/1
https://jsonplaceholder.typicode.com/posts
Its content is JSON!
I also try these on postman and it gives the following output:
Content-Type: application/json; charset=utf-8
Content output:
{
    "userId": 1,
    "id": 1,
    "title": "delectus aut autem",
    "completed": false
}

I made a SimpleController to test your code, there are some bugs in your logic, after fixed them, it works, please check the following code:
void TestCtrl::asyncHandleHttpRequest(const HttpRequestPtr& req, std::function<void (const HttpResponsePtr &)> &&callback)
{
    auto client = drogon::HttpClient::newHttpClient("https://jsonplaceholder.typicode.com");
    auto mreq = drogon::HttpRequest::newHttpRequest();
    mreq->setMethod(drogon::Get);
    mreq->setPath("/todos/1");
    client->sendRequest(mreq, [callback](drogon::ReqResult result, const drogon::HttpResponsePtr &response) {
        if (result != drogon::ReqResult::Ok)
        {
            std::cout
                << "error while sending request to server! result: "
                << result << std::endl;
            return;
        }
        std::cout<<response->body()<<std::endl;
        std::shared_ptr<Json::Value> obj = response->getJsonObject();
        if(obj==nullptr) {
            std::cout << "It is not json!\n";
        } else {
            auto &json=*obj;
            std::cout << json["title"].asString()<<std::endl;
        }
        callback(HttpResponse::newHttpResponse());
    });
}

I made a SimpleController to test your code, there are some bugs in your logic, after fixed them, it works, please check the following code:
void TestCtrl::asyncHandleHttpRequest(const HttpRequestPtr& req, std::function<void (const HttpResponsePtr &)> &&callback)
{
    auto client = drogon::HttpClient::newHttpClient("https://jsonplaceholder.typicode.com");
    auto mreq = drogon::HttpRequest::newHttpRequest();
    mreq->setMethod(drogon::Get);
    mreq->setPath("/todos/1");
    client->sendRequest(mreq, [callback](drogon::ReqResult result, const drogon::HttpResponsePtr &response) {
        if (result != drogon::ReqResult::Ok)
        {
            std::cout
                << "error while sending request to server! result: "
                << result << std::endl;
            return;
        }
        std::cout<<response->body()<<std::endl;
        std::shared_ptr<Json::Value> obj = response->getJsonObject();
        if(obj==nullptr) {
            std::cout << "It is not json!\n";
        } else {
            auto &json=*obj;
            std::cout << json["title"].asString()<<std::endl;
        }
        callback(HttpResponse::newHttpResponse());
    });
}

Yes it works.
Thanks for your kind response, I appreciate it very much.


unreachable to ord for amount

Background:
Based on https://github.com/RGB-WG/rgb-std/pull/227, there is also an unreachable in the rgb20 amount, so I think maybe we can change to the Ord in order to get rid of unreachable.
Description:
remove the unreachable in the rgb20 amount state change, then use the Ord. Similar to the rgb21 owed fraction state change.

I already asked few times to use rebases instead of useless multiple merges of master branch all over the place.


Overflow in enum that has a negative value

I met compile error in enum that has a negative value.
The code:
enum Nums
  Zero  = -2
  One
  Two
end

The error:
Error in line 4: value of enum member Two would overflow the base type Int32

This error arises in 0.29.0, not 0.28.0. I know this is suppressed by specifying each value like:
enum Nums
  Zero  = -2
  One   = -1
  Two   = 0
end

This is a feature for safety or a bug of the compiler?

Definitely a bug. Two should not be assigned a value that would overflow Int32.

The culprit is this line: https://github.com/crystal-lang/crystal/blob/e3fa96752588df94d386ce1551ad03526a8545c9/src/compiler/crystal/semantic/top_level_visitor.cr#L692
I wrote the overflow check incorrectly for negative values... I wish we had a way to try to do stuff and know whether it overflows without having to raise and catch an exception. Something like ?+ or Int32.add_with_overflow... that way I wouldn't have to do custom math to check things like this.

it would be nice to have has an api where you could get the result of the overflow.  Something like unsafe_div except you would have to pass a pointer to the overflow var and check to see if it was set to 1 like it is here.
I was thinking something like.
overflow = 0
100.unsafe_mul(123, pointerof(overflow))

if overflow == 1
  p "* has overflowed"
end


Turn toon shader into subgraph

Turned toon shader into subgraph
Used it in player eyes and demo shader (:warning: lemme know if I missed something)
Replaced old demo shader texture (it was the test texture in Source Engine)
Refurbished the old demo arena (pure nostalgia)

Fixed the shadow issue and toonified the jiggle materials


Documentation: api.look_up users is missing

Hello,
I don't believe api.look_up users is documented in the API reference.  Not terribly difficult to figure out but historically, some libraries have required lists, others a list that is string joined, and some accept both.
Thanks!

Oops!  Seems like this issue is referenced here.  Title was a bit different so didn't come up in my search.  Sorry!

Duplicate of #539


AreaRatio Calculation problem with SuperView

First, thank you for making a nice kit.
For example, if the frame of ScrollView in the example app is CGRect(x: 0, y: self.view.frame.height / 2, width: self.view.frame.width, height: self.view.frame.height / 2),
AreaRatio doesn't seem to be calculated normally.
Thanks.
https://user-images.githubusercontent.com/16532526/123039840-c5ad0700-d42d-11eb-95b8-e1257d847678.mp4

Added a related example to the forked branch.
https://github.com/PangMo5/ImpressionKit/tree/PangMo5/ViewHeightRatio

Thank you so much @PangMo5 . Fixed.  Let me know if you face any issues.


Support for dependsOn

Your editor is really cool! It would be very nice to have support for the Nova 4 dependsOn() - Feature, for example to set a different default content in depending on a Select box.
Thanks a lot!

@chriswd I'm not using Nova 4 that much yet (some third party packages do not support it yet).
Would you like to PR this functionality, maybe?

Hi Sebastian, sorry, but I'm not an expert for your component, more a Nova beginner. So I can't build it myself.


drivers: adc: fix functionality gaps

Two commits:

Provide API to retrieve the internal reference voltage, which is required to make sense of results that use that reference source.  Support is implemented in Nordic ADC and SAADC; see #11922 for other platforms that might need this functionality.
Provide API to specify that the ADC should be calibrated before performing the sample.  This functionality is implemented on Nordic SAADC, including workarounds for relevant PANs.

Closes #11922

I modeled this on the counter API which has similar constants that are device specific, but as @Sizurka points out this doesn't work for ADC because only Nordic devices left this field unused.  Other drivers are using config_info for internal data structures.  I'm not going to mess with those, so this'll have to be solved another way.

I've removed the reference voltage API that's incompatible with other drivers.
I also confirmed that EVENTS_STOPPED occurs less than 200 ns after TASKS_STOP is triggered so I've removed the loop waiting for that condition.  This is consistent with how start and stop is handled in the existing driver, so should be less confusing.


Event Metadata

Objective
To extend the event store's capabilities by allowing the storage of additional metadata for events and provide the necessary querying mechanisms to filter based on various metadata types.
Requirements

Metadata Storage: Ability to associate and store metadata with events in the event store.
Advanced Querying: Support filtering based on various metadata types, including:

Strings
Integers
Booleans
Arrays

Example Usage
1. Creating an Event with Metadata:
func createEventWithMetadata() {
  evt := event.New("<eventName>", "<eventData>",  event.Metadata(map[string]any{
    "field-a": "value-a",
    "field-b": []string{"value-b", "value-c"},
  }))

  evt.Metadata()["field-a"] == "value-a"
  evt.Metadata()["field-b"] == []string{"value-b", "value-c"}
}

2. Querying Events Based on Metadata:
func queryEventsByMetadata(store event.Store) {
  // Query by exact metadata value.
  events, errs, err := store.Query(context.TODO(), query.New(
    query.Metadata("field-a", "value-a"),
  ))

  // Query by exact metadata array values (element order matters).
  events, errs, err := store.Query(context.TODO(), query.New(
    query.Metadata("field-b", []string{"value-b", "value-c"}),
  ))

  // Query based on the presence of specific values within an array.
  // Either "value-a" OR "value-c" must be present.
  events, errs, err := store.Query(context.TODO(), query.New(
    query.Metadata("field-b", metadata.Contains("value-a", "value-c")),
  ))

  // Query based on the presence of specific values within an array.
  // Both "value-a" AND "value-c" must be present.
  events, errs, err := store.Query(context.TODO(), query.New(
    query.Metadata("field-b", metadata.ContainsAll("value-a", "value-c")),
  ))
}

Maybe just add additional filters for querying event data.
Query by field
This can only work if the event data can be accessed by field (e.g. JSON). Event stores may or may not support this.
func queryEventsByData(store event.Store) {
  store.Query(context.TODO(), query.New(
    query.AggregateName("user"),
    query.Field("age", 28),
  ))

  store.Query(context.TODO(), query.New(
    query.AggregateName("user"),
    query.Field("age", field.Gt(30), field.Lt(40)), // greater than 30, less than 40
  ))
}

Hi @plunkettscott, thank you for your interest in contributing to the project!
I agree with you that the metadata approach seems to be more portable implementation-wise, as each event store can decide for itself on how to store the metadata, and does not rely on the user-defined structure of the event data. My thought was that event metadata queries would likely not be much more complex to implement than queries for the entire event data, but after thinking a bit more about this, separating metadata from the main event data will probably be less confusing to users because they don't have to check for "supported features" when choosing an event store backend.
Regarding multi-tenant support, it's interesting that you brought this up as multiple people have been reaching out with similar inquiries. As you said, supporting this should be pretty easy using the metadata approach. Unfortunately, I hadn't had the time to work on this feature yet and will likely not be able to invest much time into this project until at least January.
That being said, I think the implementation of this feature should be pretty straight-forward, so if you're interested in implementing this, I would be happy to merge. Otherwise I will take a deeper look into this in the upcoming weeks.

Yeah, I’ll take a look at this closer and see if I have some time to help out.
Another nice feature for multi-tenancy would be multi-tenancy support in the authentication package, but I’ll create a separate issue for that.


Update golangci-lint from v1.41.0 to v1.41.1

Update Dockerfile ENV values. README tools version table
was previously updated.
refs GH-354
refs GH-355

README tools version table
was previously updated.

Evidently not. I mixed up the prior v1.41.0 table update with the v1.41.1 release.


This library is supported on android?

Right now I have not tested on android.. Theoretically it should compile natively on android and iOS.  However the webRTC microstack I am using is not very stable, nor very threadsafe.     I am researching alternative libraries now and found one that may do the trick making full cross-platform a reality.


Fix Multiline TextInput with a fixed height scrolls to the bottom when prepending new lines to the text

Upstream PR Link

Upstream PR https://github.com/facebook/react-native/pull/38679
fixes https://github.com/Expensify/App/issues/19507
Summary:
Please re-state the problem that we are trying to solve in this issue.
Multiline TextInput with a fixed height will scroll to the bottom of the screen when prepending new lines to the text.
What is the root cause of that problem?
The issue is caused by iOS UITextView:

The cursor moves to the end of the text when prepending new lines.
Moving the cursor to the end of the text triggers the scroll to the bottom.

The behavior was reproduced on an iOS App (without react-native).
The example included below implements a Component RCTUITextView based on UITextView, which modifies the UITextView attributedText with the textViewDidChange callback (source code available in this comment).
Adding a new line on top of the UITextView on iOS results in:
Issue 1) The cursor moves to the end of TextInput text
Issue 2) The TextInput scrolls to the bottom
Reproducing the issue on an iOS App without react-native

Issue 1) is already fixed in react-native, which restores the previous cursor position (on Fabric with  _setAttributedString) after changing the text.
Issue 2) needs to be fixed in react-native.
What changes do you think we should make in order to solve the problem?
Disable scrollingEnabled when changing the attributedText.
Changelog:
[IOS] [FIXED] - Fix Multiline TextInput with a fixed height scrolls to the bottom when prepending new lines to the text
Test Plan:
Fabric (reproduces on controlled/not controlled TextInput example):

Before
After

Paper (reproduces only on controlled TextInput example):
function TextInputExample() {
  const [text, setText] = React.useState('');

  return (
    <View style={{marginTop: 200}}>
      <TextInput
        style={{height: 50, backgroundColor: 'white'}}
        multiline={true}
        value={text}
        onChangeText={text => {
          setText(text);
        }}
      />
    </View>
  );
}

Before
After

Expensify

Before
After

Related https://github.com/Expensify/react-native/pull/54

FYI we are removing our fork, so we don't need to merge anything in this fork. We need to get this merged into React Native upstream and deployed.

Ah okay cool. Then, we'll just hold on the upstream one! But it's good to have this fully tested here.


MakeTuyauResponse does not infering lucid model well

Hi !
Firstly, thank you and bravo for this package that makes adonis even crazier.
I'm currently testing it on my monorepo, which consists of an adonisjs API and several front-end clients. I can see that tuyau infer the right types when controllers return simple objects like :
import type { HttpContext } from '@adonisjs/core/http'

export default class StatutProController {
  async index({ response }: HttpContext) {
    return [
      { id: 1, name: 'Salarié' },
      { id: 2, name: "Demandeur d'emploi" },
    ]
  }
}

the infered return type of response for this route in the api.ts generated file is then :
response: {
    200: {
        id: number;
        name: string;
    }[];
}

which is right and can be easilly consumable in the client.
But when the controller return more complex objects like a ModelObject of Lucid, like that for example :
import StatutPro from '#models/statut_pro'
import type { HttpContext } from '@adonisjs/core/http'

export default class StatutProController {
  async index({ response }: HttpContext) {
    const statutPros = await StatutPro.query().orderBy('id', 'asc')

    return statutPros
  }
}

the infered return type of response for this route in the api.ts generated file is then :
response: {
    200: ModelObject[];
}

and then we lost all the types that come from the model definition and we lost type safety and autocompletion of the response type
I hope my description was clear.
EDIT :
I don't think it's possible to infer the type directly from the model, so we need to create a DTO as you do in the following video: Nouveautés sur AdonisJS: Transmit, HMR, Tuyau avec Julien Ripouteau
Am I right?

Yup that expected. Basically, it's because Lucid isn't typesafe, so it's impossible to know the exact type of a model with typescript.
I've documented this in the Inertia doc, which uses the same process for infering types, with the InferPageProps type helper. There are some suggested solutions : https://docs.adonisjs.com/guides/views-and-templates/inertia#type-level-serialization
Lemme also document that in Tuyau

Added here : https://tuyau.julr.dev/docs/client#why-do-i-get-a-modelobject-type-when-returning-a-lucid-model-
Lemme know if you have any further questions

It's perfect, thank you 👌


Open error after modify regedit with PreferredRenderAdapterVendorId=10DE

below is event log copy from win11
日志名称:          Application
来源:            Application Error
日期:            2024.7.15 11:42:25
事件 ID:         1000
任务类别:          应用程序崩溃事件
级别:            错误
关键字:
用户:            养乐多\臭狗子
计算机:           养乐多
描述:
错误应用程序名称: ParsecVDisplay.exe，版本: <IP_ADDRESS>，时间戳: 0xc87b395c
错误模块名称: KERNELBASE.dll，版本: 10.0.22621.3880，时间戳: 0xdb9989e8
异常代码: 0xe0434352
错误偏移量: 0x000000000005fabc
错误进程 ID: 0x0x42A8
错误应用程序启动时间: 0x0x1DAD669023D23B8
错误应用程序路径: D:\software\ParsecVDisplay\ParsecVDisplay.exe
错误模块路径: C:\WINDOWS\System32\KERNELBASE.dll
报告 ID: 7a03663b-b4e5-4a90-a08e-fc3eb70c620c
错误程序包全名:
错误程序包相对应用程序 ID:
事件 Xml:

1000
0
2
100
0
0x8000000000000000

15092

Application
养乐多

ParsecVDisplay.exe
<IP_ADDRESS>
c87b395c
KERNELBASE.dll
10.0.22621.3880
db9989e8
e0434352
000000000005fabc
0x42a8
0x1dad669023d23b8
D:\software\ParsecVDisplay\ParsecVDisplay.exe
C:\WINDOWS\System32\KERNELBASE.dll
7a03663b-b4e5-4a90-a08e-fc3eb70c620c

Do you have multiple GPUs and a one of NVIDIA?
What's your VDD version, v0.45 or v0.41?

My CPU is i5-10400f and My GPU is just GTX1660s, VDD version is v0.45.
finally, VDD require .NET4.5 but I cannot install success because of 4.8 latest.

Do you have multiple GPUs and a one of NVIDIA? What's your VDD version, v0.45 or v0.41?

Can I use .NET with version more than 4.5?

Can I use .NET with version more than 4.5?

You dont need to install them, .NET Framework 4.6 is preinstalled on Windows 10, and Windows 11 is .NET Framework 4.8, these versions also support to run the app.

You dont need to install them, .NET Framework 4.6 is preinstalled on Windows 10, and Windows 11 is .NET Framework 4.8, these versions also support to run the app.
Now, I enable .NET4.8.1, but the app is open with loading on mouse, not open window and exception as same as first comment.

I think this error comes from the app, not the .NET Framework.
Lets try this dev version: https://github.com/nomi-san/parsec-vdd/actions/runs/9820071273

https://github.com/nomi-san/parsec-vdd/actions/runs/9820071273

thanks so much, I start succeed with this version.

I think this error comes from the app, not the .NET Framework. Lets try this dev version: https://github.com/nomi-san/parsec-vdd/actions/runs/9820071273

Finally, I already set PreferredRenderAdapterVendorId=10DE, but stream with moonlight just less than 20fps, but My physics screen more than 60.

Sorry, I have a question, I set refresh rate with 75 but when I control with Todesk(Remote Desk Software), then 75 will modify as 60.

Maybe this app does not support 75 FPS stream, try setting higher Hz/FPS.

Finally, I already set PreferredRenderAdapterVendorId=10DE, but stream with moonlight just less than 20fps, but My physics screen more than 60.

Are you duplicating the virtual display from physical one? If yes, please set it to Extend.
If you are on desktop screen, just play a video when testing.

I close physical screen and make vdd run on startup, just running with vdd.
---- Replied Message ----
| From | Nguyen @.> |
| Date | 07/15/2024 18:55 |
| To | @.> |
| Cc |<EMAIL_ADDRESS>|
| Subject | Re: [nomi-san/parsec-vdd] Open error after modify regedit with PreferredRenderAdapterVendorId=10DE (Issue #55) |
Sorry, I have a question, I set refresh rate with 75 but when I control with Todesk(Remote Desk Software), then 75 will modify as 60.
Maybe this app does not support 75 FPS stream, try setting higher Hz/FPS.
Finally, I already set PreferredRenderAdapterVendorId=10DE, but stream with moonlight just less than 20fps, but My physics screen more than 60.
Are you duplicating the virtual display from physical one? If yes, please set it to Extend.
If you are on desktop screen, just play a video when testing.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Sorry, I have a question, I set refresh rate with 75 but when I control with Todesk(Remote Desk Software), then 75 will modify as 60.

Maybe this app does not support 75 FPS stream, try setting higher Hz/FPS.

Finally, I already set PreferredRenderAdapterVendorId=10DE, but stream with moonlight just less than 20fps, but My physics screen more than 60.

Are you duplicating the virtual display from physical one? If yes, please set it to Extend. If you are on desktop screen, just play a video when testing.

I try to add screen with AMD GPU cause black screen, but remove and modify as normal still black screen.

I think this error comes from the app, not the .NET Framework. Lets try this dev version: https://github.com/nomi-san/parsec-vdd/actions/runs/9820071273

i need help, thinks , i have the same promblem , how do i use this dev version , i can not find the downlowd link, should i compiling myselft ？i am a newer in github.


why append Snippet to every snippet 👎?

the Vscode gives different Icon to differenciate snippet and api, why you append Snippet suffix👎?
it really  really makes me uncomfortable, I have to adapt the new name to find the snippet....

@HomyeeKing to avoid auto-import confusion Snippet prefix was introduced to react hooks and only them. The rest of snippets should look the same as previously

@dsznajder  and no redux hooks snippet, what's this for, actually, I don't think this update is necessary, a lot of bad experience


Fix tests for Swift 3.1

Now all tests pass on Swift 3.1
Followup from #7 (rebased to branch 'develop')

@tali Thanks!


Creating a file for each test

@divega as you suggested creating individual log files for each test so that it removes the flakiness. Lock around file read and write protects additionally

Ugh, so this was probably my bad for not looking at the test code closer on the PR.  Can we not do an in memory logger instead of writing to files?  Rather than writing the log to disk, just store it in a string.  We definitely should not be writing to disk for these tests unless we really have to.  I'll file an issue


Consider upgrading to latest tools

Please consider upgrading the code to use the latest tools. I'm trying to kick the tires on Socket.io and thought your sample might help. Sadly it did not run given the ReadMe instructions. I am getting exceptions from ng-serve suggesting issues with angular-cli and webpack.

Hi.
This PR https://github.com/thelgevold/rxjs-socket.io/pull/9 upgraded to the current versions


Guava 20 has missing dependency

Tests have detected that guava/20 as upgraded by @gavinking is missing its dependency for https://mvnrepository.com/artifact/com.google.errorprone/error_prone_annotations which makes the tests fail.

Fixed the test.


Ordered hooks

The idea is to be able to choose when the hooks are run in regards to the other ones. My issue for now is that my hook (construct_homepage_summary_items) is called before the ones in the image/doc modules.
So with this PR, we could ensure that our hook is called after:
@hooks.register('construct_homepage_summary_items', order=1)
def add_another_panel(request, panels):
    [...]

Tell me if this is something you are willing to merge so I add tests/docs.
Another thing I'd like to do is to set the order of every hooks registered in the wagtail modules to -1 so that the user hooks would run after the wagtail ones by default (I think this should be the expected behaviour when created custom hooks). What do you think about that?
Thanks

Hi @Gagaro - thanks for the suggestion and PR!
At the moment, the order of hooks is determined by the ordering in INSTALLED_APPS - we've never made that official, but I suspect people are already depending on that. Some hooks (e.g. menu items) also have ordering mechanisms of their own, so adding another one could get confusing...
More generally, I think we should try to discourage hooks that depend on the action of other hooks. The whole motivation of hooks is to improve code separation - allowing actions to happen "at a distance" without other parts of the code needing to know about them. If our hook functions need to run in a specific order because of the interactions between them, then we've failed at that goal... in that case, we should try to redesign our hooks so that this isn't necessary.
In the case of construct_homepage_summary_items, I guess you need it to run after the built-in Wagtail hooks because you're modifying / deleting the existing items? Perhaps we should follow the same pattern that we use for menu items, and have a register_homepage_summary_item hook where apps are expected to add summary items - then construct_homepage_summary_items becomes a second pass over the list, where modifications and deletions can happen.

At the moment, the order of hooks is determined by the ordering in INSTALLED_APPS

That's not true in my case. I have the apps registering a hook in this order:
    'custom_admin',
    'wagtail.wagtaildocs',
    'wagtail.wagtailimages',
    'wagtail.wagtailcore',

But I get the method in this one:
<function add_pages_summary_item>,
<function my_hook>,
<function add_documents_summary_item>,
<function add_images_summary_item>

Some hooks (e.g. menu items) also have ordering mechanisms of their own, so adding another one could get confusing...

Indeed, I didn't realize that. But that proves that the need is there for some hooks at least.

The whole motivation of hooks is to improve code separation - allowing actions to happen "at a distance" without other parts of the code needing to know about them.

This could work if the hook didn't modify the data. This is what an observer pattern would do. The hooks should only read the data and not change it.

If our hook functions need to run in a specific order because of the interactions between them, then we've failed at that goal...

Yes, for an observer pattern I would agree. But we do have code that change the data, so what we need is a pipeline, in which we can accurately determine the order in which the hooks are called. Django does that with the middlewares.

in that case, we should try to redesign our hooks so that this isn't necessary.

IMO this is necessary in some case. For exemple with after_create_page or before_serve_page, which can stop the loop and keep some hooks from being called. We may want to have some specialized hooks being called before a more generic one. Else, only the generic one would be called because it would return a response every time.

In the case of construct_homepage_summary_items, I guess you need it to run after the built-in Wagtail hooks because you're modifying / deleting the existing items?

That's right.

Perhaps we should follow the same pattern that we use for menu items, and have a register_homepage_summary_item hook where apps are expected to add summary items - then construct_homepage_summary_items becomes a second pass over the list, where modifications and deletions can happen.

This seems too complicated and doesn't help with all the other hooks. We would still have the issue if we have another module calling construct_homepage_summary_items.
I think every hook which can modify the data it receives should be sortable. It is not reliable otherwise. The only case when the order doesn't matter is when the data being passed is read-only. For those, being sortable doesn't matter, so we can use the same system for both.

That is not true in my case. I have the apps registering a hook in this order:
'custom_admin',
'wagtail.wagtaildocs',
'wagtail.wagtailimages',
'wagtail.wagtailcore',

But I get the methods in this one:
<function add_pages_summary_item>,
<function my_hook>,
<function add_documents_summary_item>,
<function add_images_summary_item>

add_pages_summary_item comes from wagtailadmin, not wagtailcore - do you have that higher up?
Good point about after_create_page / before_serve_page... OK, I'm happy to approve this proposal. (Even if the order parameter isn't my preferred solution, it's better to have a solution that works now, rather than having to wait for us to design the 'perfect' solution.)
I think we should keep the built-in hooks at order=0, though:

It preserves the (unofficial) current behaviour
It encourages the idea that order should only be used in special cases where it resolves a conflict, rather than being a decision to be made every time you define a hook
I think it's good for the built-in apps like wagtailimages / wagtaildocs to have as few "special privileges" as possible.

add_pages_summary_item comes from wagtailadmin, not wagtailcore - do you have that higher up?

My bad. But wagtailadmin is still below my module. The complete INSTALLED_APPS is:
INSTALLED_APPS = [
    'pages',
    'comments',
    'showcase',
    'sites',
    'custom_admin',

    'wagtail.wagtailforms',
    'wagtail.wagtailredirects',
    'wagtail.wagtailembeds',
    'wagtail.wagtailsites',
    'wagtail.wagtailusers',
    'wagtail.wagtailsnippets',
    'wagtail.wagtaildocs',
    'wagtail.wagtailimages',
    'wagtail.wagtailsearch',
    'wagtail.wagtailadmin',
    'wagtail.wagtailcore',

    'wagtail.contrib.wagtailstyleguide',

    'modelcluster',
    'taggit',

    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
]

I think we should keep the built-in hooks at order=0, though:

Yes I agree with your points.
Thanks for the review, I'll work on this ASAP.

Doc and tests added.

I also forgot to update the changelogs.

I added the change log in the 1.10 section as the 1.9 is in RC now.

Merged in ac7ad067d2b10f44a8dbabd0e3f7afb64345aebd - thanks!


ArcGIS_WebAdaptorInstall failed to execute

I'm getting a fail to install for most components although they actually install. In the case of the WebAdaptor after the error, the deployment stops and does not configure the site.

"Operation 'Invoke CimMethod' complete.
Trace-DSCJob : The SendConfigurationApply function did not succeed.
At C:\Program Files\WindowsPowerShell\Modules\ArcGIS\3.0.1\ArcGIS.psm1:236 char:5
Trace-DSCJob -Job $Job -JobName $ConfigurationName -DebugMode $De ...
CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Trace-DSCJob"

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request

Module Version

3.0.1

Affected Resource(s)

ArcGIS_WebAdaptorInstall
ArcGIS_InstallPatch
ArcGIS_Install

Configuration Files

# Copy-paste your DSC JSON configurations here - for large configs,
# please use a service like Dropbox and share a link to the ZIP file.

deployment.log
BaseDeployment_AM.json.txt
Expected Behavior

Actual Behavior

Steps to Reproduce

Important Factoids

References

Is the "version" parameter correct ?

"Version":  "10.7.1" is what I'm deploying. I'm using the latest ArcGIS module available in the powershell galery.

Hi @hmelendez ,
Looks like the module is detecting that there are already multiple instances of the Web Adaptor installed:
[machine-name]: [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Multiple Instances
of Web Adaptor are already installed

I would check the Windows Programs and Features list and examine which Web Adaptors (versions and context names) are present. Were any of these ever previous manually installed/configured? They may need to be uninstalled, then see if the module is successful in reinstalling them.
Also, I notice that in your BaseDeployment_AM.json it has "PrimarySiteAdmin" parameter within the "Credentials" block. At v3.0.1 this has been separated into two parameters, one for ArcGIS Server (PrimarySiteAdmin), and one for Portal (PortalAdministrator):
https://github.com/Esri/arcgis-powershell-dsc/wiki/ArcGIS-Server-Primary-Administrator-Account-and-Portal-for-ArcGIS-Initial-Administrator-Account-variables#arcgis-module-v301-and-above

@cameronkroeker I have corrected the credentials block. I have run the setup more than once which is the reason for the Multiple Instances of Web Adaptor. The issue appears to be when getting confirmation that the item is installed. For example, the portal and server Web Adaptors do install and I can get to them in the browser to configure manually but the script fails to detect that they have been install and does not continue to set up the site. I have also uninstalled the Web Adaptors and re-run the script with the same outcome.

Thanks @hmelendez . This is odd indeed. A couple other items to note, I notice that there are the following parameters specified:
"PatchesDir_DONT"
"WebStylesPath_DONT"
Not sure if this is related to the issue but perhaps try removing these if not in use.
Also, the module no longer uses the third party 7Zip tool to extract the setup archive files, therefore "SevenZipInstallerPath" can also be removed.
With these updated changes could you submit fresh DSC logs along with the newly updated json file?
Thanks!

Hello @hmelendez ,
Are you still running into this issue? If so, perhaps try with the latest release v3.1.0. If issue is still occurring please feel free to re-open and we can re-investigate it.
Thanks,
Cameron K


[QUESTION] BadMethodCallException, Method setColumnFormat does not exist.

Please prefix your issue with one of the following: [BUG] [PROPOSAL] [QUESTION].
Package version, Laravel version
Laravel Version : 5.3.31 ; Package ^2.1
Expected behaviour
This is my blade file codes
@foreach ($sheet as $sheets)

                {{ $sheets->date }}
                {{ $sheets->Project}}
                {{ $sheets->TicketNumber}}
                {!! clean($sheets->task) !!}
                 <?php $date1 = date_create($sheets->time_out);
                             $date2 = date_create($sheets->time_in);
                             $mins = date_diff($date1,$date2);
                             $hour = $mins->format('%H:%I:%S');
                             echo $hour;
                             session(['time' => $hour])?>

    @endforeach

To have the field formatted into time so i can do SUM functions in excel
public function downloadExcelS(Request $request, $type)
	{
		//$data = sheets::select('date', 'Project', 'TicketNumber', 'task')->get();
		Excel::create('sheets', function($excel){
			$excel->sheet('mySheet', function($sheets)
	        {
	        	$sheet = DB::table('sheets')->get();
				$lv = $sheets->loadView('exportTB', array('key'=> 'value'))->with('sheet', $sheet);
				$sheet->setColumnFormat(array('E'=>'h:mm:ss'));
	        });
		})->download($type);
	}

Actual behaviour
If i try to format in excel, an " ' " will appear infront of the value
Exception stack trace
BadMethodCallException in Macroable.php line 74: Method setColumnFormat does not exist.

Screenshot of Excel file
http://i.imgur.com/mjz8qxg.png
Steps to reproduce the behaviour
Just click on the export button.

You are calling setColumnFormat on $sheet instead of $sheets

Hi there @patrickbrouwers , Thank you very much for your correction. Now it does get convert into time but infront of the values ' still appears and I am unable to do a SUM of the time, Did I do anything else wrong? And for some weird reason the Date header and only 1st row of the ticket is highlighted blue by default.
http://i.imgur.com/1MDMIrC.png


does not show selected date

bootstrap-datepaginator does not show the selected day when the sta date between 10/19/2015 and 02/11/2015

Looks like your dates / date formats are wrong, there are no selectable dates between 19th Oct 2015 and 11th of February 2015 ?

http://www.jondmiles.com/bootstrap-datepaginator/
not even in the site  http://www.jondmiles.com/bootstrap-datepaginator/ appears today's date slecionada only after the day 10/25/2015

No that site works as I designed it, the selected date works and all the tests pass.
Either you're confused on how the date paginator works, or you're not explaining yourself very well.

Until yesterday the bootstrap-datepaginator displayed the selected day different and today show how every other day, on the page of bootstrap-datepaginator soon in the case of top click on the day and you'll see what I mean

Did you understand what I said?

Sorry I have no idea what you mean.
Nothing has changed since yesterday, I haven't touched this project in 2
years.  I see no issue with date selection, the demo works as it always has.
On Monday, 19 October 2015, alissonbarison<EMAIL_ADDRESS>wrote:

Did you understand what I said?
—
Reply to this email directly or view it on GitHub
https://github.com/jonmiles/bootstrap-datepaginator/issues/27#issuecomment-149316115
.

--
Regards
Jon Miles

Sorry I have no idea what you mean.
Nothing has changed since yesterday, I haven't touched this project in 2
years.  I see no issue with date selection, the demo works as it always has.
On Monday, 19 October 2015, alissonbarison<EMAIL_ADDRESS><javascript:_e(%7B%7D,'cvml','notifications@github.com');>> wrote:

Did you understand what I said?
—
Reply to this email directly or view it on GitHub
https://github.com/jonmiles/bootstrap-datepaginator/issues/27#issuecomment-149316115
.

--
Regards
Jon Miles

see de image.

see de image

Thanks for the clarification, that's helpful.  What browser?  Do you have any console errors?
The demo on http://www.jondmiles.com/bootstrap-datepaginator/ works OK for me.  Are you saying it doesn't work for you when you visit http://www.jondmiles.com/bootstrap-datepaginator?

Google Chrome - 46.0.2490.71
error in console: GET http://www.jondmiles.com/bootstrap-datepaginator/js/ga.js
only that

I really not sure why you're experiencing this problem.
I've just updated Chrome to same release as you report, and as you can see from the screenshot it works for me.

here with console log

Thanks, I can see now that it doesn't work for you!
It works for me, and my colleagues who have just tried the same URL.  No other users have reported this issue, so I suggest it's environmental and the only advice I can provide is to try and debug the issues yourself.


Cool Project :)

This is really cool! What is your syntax inspired by?

Thanks for noticing! :bowtie:
The @fn syntax is somewhat inspired by Rust's concise fn. I added the @ so that it would be less likely to occur in normal bash code. I'm planning on adding more constructs in time, mostly inspired by Python, I'm sure.


add reuters21578 dataset

This PR adds the Reuters_21578 dataset https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.html
#353
The datasets is a lit of .sgm files which are a bit different from xml file indeed xml.etree couldn't be used to read files. I consider them as text file (to avoid using external library)  and read line by line (maybe there is a better way to do, happy to get your opinion on it)
In the Readme file 3 ways to split the dataset are given.:

The Modified Lewis ("ModLewis") Split: train, test and unused-set

The Modified Apte ("ModApte") Split : train, test and unused-set

The Modified Hayes ("ModHayes") Split: train and test

Here I consider the last one as the readme file highlight that this split provides the ability to compare results with those of the 2 first splits.

Awesome !
Good job on parsing these files :O
Do you think it would be hard to get the two other split configurations ?

It shouldn't be that hard, I think I can consider different config names for each split

Awesome !
Good job on parsing these files :O
Do you think it would be hard to get the two other split configurations ?

It shouldn't be that hard, I think I can consider different config names for each split

Yes that would be perfect

closing this PR and opening a new one to fix the circle CI problems


Fix race condition in ExchangeContext

Fix race condition in ExchangeContext.
Implement suggestions from review in #1274

I've cherry picked the commit from #1274 in here and then implemented the suggestions from that review. Added documentation/comments on why the context sometimes isn't used.

Thanks for reviewing, addressed all your comments.

/merge
On Wed, 4 Aug 2021, 15:43 Tom Thorogood, @.***> wrote:

@.**** approved this pull request.
LGTM.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/miekg/dns/pull/1281#pullrequestreview-722300870, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACWIWYYXQWG5QVLLPWJUNDT3E7Y7ANCNFSM5ALOQ2XQ
.


Fixed bit detection logic to handle special cases

...for non linux chromedrivers and non windows 10 internetexplorerdrivers

@lkwg82 does this work for you? phantomjs drivers will still be downloaded by the OS bit version.

I tested with macosx 64 bit and phantomjs was loaded correctly.


Get schema info with topic partition

Motivation
to fix #4730
Get schema info with topic partition
Verifying this change
Add the tests for it
Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes
Dependencies (does it add or upgrade a dependency): (no)
The public API: (no)
The schema: (yes)
The default values of configurations: (no)
The wire protocol: (no)
The rest endpoints: (no)
The admin cli options: (no)
Anything that affects deployment: (no)
Documentation
Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
If a feature is not applicable for documentation, explain why?
If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

run cpp tests
run integration tests

run cpp tests
run integration tests

run cpp tests

run java8 tests

Change the Milestone to 2.4.2, because of conflict.


texlive-lang-chinese in whitelist, but causes error on travis.ci

When trying to install the package texlive-lang-chinese with the addons.apt.packages configuration, the build fails to find this addon. See this build: https://travis-ci.org/michaelpacer/travis_repo/jobs/160335257
It is included in the whitelist at https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise#L11884.

Most likely you are missing a source for this package. Please read https://docs.travis-ci.com/user/installing-dependencies#Identifying-the-source-for-a-missing-package.


Add cEUR to "Add and withdraw" screen

Design in Figma
For initial launch the cEUR option will be disabled since we don't have any cash in/out providers at launch.

https://valora.testquality.com requirement R4. Do not remove or edit.


Add a full workflow in the docs

Corresponding documentation request: https://github.com/casper-network/docs/issues/1299
New content:

An installation Quickstart (quickstart-guide.md)
A full installation guide with a brief review of the contract implementation (full-installation-tutorial.md)
A new file on querying the NFT contract (querying-NFTs.md)
A brief note on testing (testing-NFTs.md)

Modified content:

Moved the content from “using-casper-client.md” file to “interacting-with-NFTs.md”, and added a section for minting and transfers using the entrypoints. Kept the wasm calls the same. Added a “checking the balance” section. Added “Approving an Account” section. NOTE: the wasm client calls keep failing for me, and I need to investigate, but I haven't modified the commands. All the new content I added was tested and working.
I moved the “tutorials” folder under “docs”; this doesn’t seem to affect any of the docs.casper.network links.
Updated old links

A PR is also open in the docs repo to update the content there.

Thank you for the reviews, @gRoussac and @ACStoneCL!


Array.prototype.findIndex jsdoc is incorrect

From https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex

The findIndex() method returns an index in the array, if an element in the array satisfies the provided testing function. Otherwise -1 is returned.

^ this is what I experienced at runtime (i.e. -1 return value). However the definition in lib.d.ts for various Array<T> interfaces has:

Returns the index of the first element in the array where predicate is true, and undefined otherwise.

e.g. https://github.com/Microsoft/TypeScript/blob/a715c45f2584c6d0e6c0069c7ebdf968d1a16909/lib/lib.es6.d.ts#L4141-L4150
To be honest I prefer if it was undefined cause it would be consistent with .find and you can do .findIndex(something) || 0 for cases where you just want the index or first. But it is not the case. The JSDoc needs to be fixed :rose:

various

There are others. Just search for findIndex. I am sure you guys know, but just wanted to be more explicit :rose:

A PR would be appreciated.

I guess I made it worse by adding | undefined to the return type, since I only looked at the description in the file, not the spec.

I've sent a PR #8965 to fix the documentation. I didn't run Jake. Firstly, I would like to confirm that the fix is correct.


Stock allocation for template parts does not work in the same way as simple parts

Allocating stock of template parts shows stocks of all variants, however completely allocated stocks are also displayed, and once selected the count goes to zero on the second input field but there is no way of knowing which stock item has the required quantity unallocated. The only way of knowing is selecting one of them, checking if the value goes to zero on the other input field and if it does, close the allocation window and opening it again and try another stock item.
I would expect only available stock items are listed.
This tool is amazing, I am glad to be of help!

@G-Pereira can you provide some screenshots of the issue here for clarity?

Bump @G-Pereira  :)

Thanks for the clarification. What version of InvenTree are you running?

I am on the latest stable version: 0.5.4

The latest master version (0.6.x) already fixes this issue, by hiding stock items which are already allocated from this list.
Back-porting this fix to the 0.5.x branch would be quite difficult, I think that you will just have to wait for 0.6.0 stable release, which is now not too far away.

That's completely acceptable!

That's completely reasonable!


Only first sheet is returning when working with Huge data sets

While working or bigger data sets( tested with 2000 cols X 1000 rows) with multiple sheets. In that case, after certain MB, (in my case 40MB), sheet_to_row_object_array is only returning first sheet.
Is it a limitation? Are there any alternatives to get all the sheets regardless of files size?

sheet_to_row_object_array, as the name suggests, takes a single worksheet as input.  If you want to convert the second or third worksheet in a workbook you need to read the workbook first, then get the sheet name you want from the SheetNames array, then pull from the Sheets object.  For example in node, if you want to convert the third worksheet:
var XLSX = require('xlsx')
var wb = XLSX.readFile('test.xlsx');
var name_of_third_worksheet = wb.SheetNames[3-1]; // SheetNames is an array of strings
var ws = wb.Sheets[name_of_third_worksheet];
var output = XLSX.utils.sheet_to_row_object_array(ws);

The browser demo iterates across the sheet names in a similar manner:
	workbook.SheetNames.forEach(function(sheetName) {
		var roa = X.utils.sheet_to_row_object_array(workbook.Sheets[sheetName]);
		if(roa.length > 0){
			result[sheetName] = roa;
		}
	});

If you have an example file where you can read one worksheet but not another, then there's probably a parsing issue with that specific sheet.  If you could send us a sample, we'd be glad to take a look.  Alternatively, if you can enable dev mode (set the option WTF:1 in the read or readFile options object) you may see a concrete error message.

@reviewher Thanks for the quick reply.
continue with my above reply... Actually, the problem is with. let excelData = XLSX.read("<some file>", {type: 'binary'});, then calling excelData.Sheets not returning the object of all sheets, its only returning object with one key which is first sheet name and its data.
Just to mention there are no errors in the sheet. And there is no special data to share with. Just dummy set of columns and rows are fine to test.
One last thing. While doing the testing js-xlsx is not returning any errors.(I will try with WTF:1 option set, and share the details)

Hi @reviewher, any alternative for this? any help is appreciated.

@gtd57 what does excelData.SheetNames show?
If you can share a file then we can take a look.  If you don't want to upload to github you can email a file to dev at sheetjs dot com and someone can take a look

As per SheetJS/js-xlsx API, excelData.SheetNames must contain sheet name as key for each sheet and it data as value, However in my case it is only showing one key and value of first sheet data only.
I can send you the data, but its is huge file above 50MB. However, that sheet does not contain any special data, You can create data on your side, I just popped some, one word strings in the first column and first row and rest are just numbers and in total I have used 2000 cols in 1200 rows and total of 3 sheets. My requirement is upto 8 sheets

Hello @gtd57 ! Just for you I ran a test: https://gist.github.com/SheetJSDev/205d9d9c14c5203e602da70ed57e0a43
It generates an XLSX workbook with 8 sheets.  Each sheet happens to be the same but it doesn't affect the nature of the issue.  The worksheet is 2000 columns and 1000 rows.  You can run it to generate and to verify.
On a side note: the files are massive! without compression the generated file was 475MB.  With compression it was a more manageable 98M, both well beyond the 50M limit.
I tried using the node command line tool to read the data.  Turns out you hit a memory snag with the default settings, so you need to override:
$ node --max-old-space-size=4096 bin/xlsx.njs sheetjs.xlsx SheetJSA

After waiting a minute and 15 seconds, finally saw the CSV output!
So if it's only showing you one sheet, I'm guessing there's an issue with the other sheets.  I'd like to take a look.  If you can post the file to a hosting service like Dropbox, you can email me a link and I can download and take a look.

I'm getting the same or similar issue. I have a workbook with 7 sheets. SheetNames contains all 7 sheetnames but one of the sheets is missing altogether from Sheets. The missing sheet has 382,000 rows. Do you think I'm hitting some kind of limit in xlsx? Do you have any suggested workaround or if it sounds like I bug can I help to debug?

@mtharrison The limit is dictated by memory, and honestly you would be able to tell in either case when you hit the memory limit (chrome shows "oh snap" and node gives you a long message about GC).  Assuming you don't see that, there's something in the file causing trouble.
The simplest thing you could do is pass the option WTF:1 to the reader:

If you are using node, and if you installed xlsx globally, you can just run xlsx --dev --perf file_name the --dev enables all errors and the --perf tells the xlsx command not to output anything

If you are using XLSX.read, the second argument is the options argument, so just add WTF:1 there.  For example, in the browser using the index.html demo in the repo, add that key to the object {type: 'binary'} and {type: 'base64'}

If you are using XLSX.readFile, just pass a second argument with {WTF:1} or add that key to the file.  For example, the example in the README https://github.com/SheetJS/js-xlsx/#parsing-workbooks would be var workbook = XLSX.readFile('test.xlsx', {WTF:1});

That option will expose any sheet-specific errors.  You should get an error message that you can share.
I'd like to see a file if you can share it.  Since it probably would exceed the github or email limit, please post somewhere (like dropbox) and email or share a link.

Thanks @SheetJSDev for the super-quick response. I tried with the debug option and the error I get is:
Error: Uncaught error: "toString()" failed
    at Buffer.toString (buffer.js:495:11)
    at getdatastr (/REDACTED/node_modules/xlsx/xlsx.js:1318:72)
    at getdata (/REDACTED/node_modules/xlsx/xlsx.js:1336:95)
    at getzipdata (/REDACTED/node_modules/xlsx/xlsx.js:1352:19)
    at safe_parse_ws (/REDACTED/node_modules/xlsx/xlsx.js:12165:26)
    at parse_zip (/REDACTED/node_modules/xlsx/xlsx.js:12268:3)
    at read_zip (/REDACTED/node_modules/xlsx/xlsx.js:12408:9)
    at Object.readSync [as read] (/REDACTED/node_modules/xlsx/xlsx.js:12420:21)

Looks like I'm probably hitting V8's max string size. I logged the buffer size out before toString() is called on it and it's 356mb.

@mtharrison you caught me in a late night session!
If you are running in a recent version of node, can you try calling node with --max-old-space-size=4096? To do this against the global install, run
$ node --max-old-space-size=4096 `which xlsx` filename

If you are running something like node main.js normally, just add the flag:
$ node --max-old-space-size=4096 your_script

@mtharrison scratch that.
The nodejs string limit is 16 bytes shy of 256MB: https://github.com/nodejs/node/issues/3175 .  I thought the previous write test case would cover it, but the underlying xml files are 60M.
I'm going to resolve this in the next version by trying to catch that particular error and give more informative output.
Can you do one last thing: try saving that file as XLSB in Excel and seeing if you hit the same problem?  The XLSB parser keeps data as buffers so it theoretically should not trigger a 256MB string conversion

@SheetJSDev Using an XLSB does indeed sidestep that issue! Thanks a lot for the help.

ERROR in src/app/app.component.ts(50,20): error TS2339: Property 'rows' does not exist on type 'HTMLElement'.
src/app/app.component.ts(59,27): error TS2339: Property 'rows' does not exist on type 'HTMLElement'.
src/app/app.component.ts(60,15): error TS2339: Property 'rows' does not exist on type 'HTMLElement'.
src/app/app.component.ts(63,25): error TS2339: Property 'rows' does not exist on type 'HTMLElement'.
src/app/app.component.ts(98,20): error TS2339: Property 'rows' does not exist on type 'HTMLElement'.
src/app/app.component.ts(109,27): error TS2339: Property 'rows' does not exist on type 'HTMLElement'.
src/app/app.component.ts(113,26): error TS2339: Property 'rows' does not exist on type 'HTMLElement'.
src/app/app.component.ts(172,31): error TS2339: Property 'sheet_to_row_object_array' does not exist on type 'XLSX$Utils'.
src/app/app.component.ts(186,36): error TS2339: Property 'files' does not exist on type 'HTMLElement'.
please help...

CODE:
submit()
{
var myTad = document.getElementById('rr');
var len = myTad.rows.length ;
var arr = [];
var values =[];
var key1 ="Task_NO";var key2 ="EFFORT_MONTH";var key3 ="ROLE";var key4 ="LOC"; var key5 ="ESTIMATED_HOURS"; var key6 ="CNTY";
var key7 ="EMPLOYEE_LEVEL";var key8 ="AUTHENTED_HOURS";var key9 ="ESTIMATED_COST"; var key10 ="ACTUAL_COST";
console.log("Row_length:" +len);
		for( var z =0; z < len ; z++ )
		{
			for( var y = 0; myTad.rows[z].cells[y]; y++){
				if(myTad.rows[z].cells[y].childNodes[0].getAttribute("type") == 'button'){

				}else{
					values.push(myTad.rows[z].cells[y].childNodes[0].value);
			}
		}
		for(var k =0; k < values.length ;k++){
			var dict = {};
			dict[key1] = Number(values[0]);
            dict[key2] =Number(values[1]);
            dict[key3] = (values[2]);
            dict[key4] = (values[3]);
            dict[key5] = Number(values[4]);
            dict[key6] = (values[5]);
            dict[key7] = Number(values[6]);
            dict[key8] = Number(values[7]);
            dict[key9] = Number(values[8]);
            dict[key10] = Number(values[9]);

		}
		arr.push(dict);
		dict ={};
		values =[];

		}

}

Grouping all related reading issues to #61 please follow up there


Add support for generating pre-signed exit messages

Add new command that will be able to generate range of presigned exit messages given an existing mnemonic.

https://github.com/ChorusOne/eth-staking-smith/pull/55

This was resolved in releases https://github.com/ChorusOne/eth-staking-smith/releases/tag/v20240829.0 and later


CatalogSource pods not managed via Kubernetes controller

Bug Report
The CatalogSource pod blocks kubectl drain commands as it is not managed by a Kubernetes controller.
What did you do?
Ran kubectl drain <NODE> on a cluster with a CatalogSource pod present.
What did you expect to see?
The kubectl drain should have proceeded without the pod causing a failure
What did you see instead? Under which circumstances?
cannot delete Pods not managed by ReplicationController, ReplicaSet, Job, DaemonSet or StatefulSet (use --force to override): ibm-system/addon-catalog-source-f2wnd

This result is due to the pod being not being managed by a Kubernetes controller.
Environment

operator-lifecycle-manager version:
0.14.1

Kubernetes version information:
1.16

Kubernetes cluster kind:
IBM Cloud

Possible Solution
Create a deployment or some other kind of Kubernetes controller to manage the pod rather than just the CatalogSource custom resource.
Additional context

Related to #1421

We've run into this too.

@ecordell I think this needs a higher priority as it's a valid scenario for both upstream and RH.

This is still valid bug

@kramvan1 we (SQL QUERY service)  run into the same problem. As we need to replace Ubuntu 18 nodes with Ubuntu 16 because of compliance problems. Is there any outlook for this problem as this blocks us from going forward. Don't won't to drop that node when it is not backed up by ReplicaSet!

@mhaideibm I think we need to get this on the roadmap for OLM.   https://docs.google.com/document/d/1Zuv-BoNFSwj10_zXPfaS9LWUQUCak2c8l48d0-AhpBw/edit#heading=h.8ngolbigvi7q

Bump

Bump

There is a tracking kube bug here: https://github.com/kubernetes/kubernetes/issues/57049
Does drain with --force not solve the problem until this is addressed upstream?

A drain with --force is not a viable solution in this case. The pod had to be deleted with --force (which does not truly delete) before the drain could continue. This meant manual intervention because it blocked drain.

I noticed the PR for this was closed, is there any outlook on a replacement PR to actually get this addressed?


How does lens use terminal/ssh for worker nodes?

This is more of a question as I could not find any information on it. How does lens use terminal and ssh into a worker or master node? And how does it even gain root access considering its using just kubeconfig ?

spoiler: https://github.com/jpetazzo/nsenter/blob/master/README.md

spoiler: https://github.com/jpetazzo/nsenter/blob/master/README.md

Thanks..
I am looking from preventing people installing the lens because they could execute into worker nodes

That's not the scope of lens or fault of lens - the users can do the same without lens. You need to adjust policies etc of kubernetes.

On 22. Apr 2020, at 21.45, mhobotpplnet<EMAIL_ADDRESS>wrote:

spoiler: https://github.com/jpetazzo/nsenter/blob/master/README.md
Thanks..
I am looking from preventing people installing the lens because they could execute into worker nodes
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.


Roll Table "Add Row" Icon is absent when theme is active

I noticed an odd issue tonight: If I have this theme module active, when editing a roll table, the plus icon (+) to add a new row to the table is missing.  As are the icons that go alongside each row, although that's less of a concern to me, personally =P
I've confirmed the issue appears when this theme is the only module active in the world, and it goes away when no modules are active.

Thanks for reporting this! Some style override probably also hits something else I was not aware of. I will take a look at this when I have time.

Fixed in version 1.03.


stm32l467-DISCO:nsh  Serial not working 100% with permutations of HW FC (both on chip and GPIO) /DMA

It does work correctly with GPIO flow control.  :+1:
It drops chars with HW flow control (on chip).  :-1:
It also drops chars with DMA with GPIO flow control.  :-1:
With DMA the test app hangs on close.  :-1:
I noticed the DMA arrangement is not the same as F4, F7, H7, I suspect this is the root cause of the DMA issue.
The character loss may be fact that one octet can be in flight inbound and does need to be received, even after RTS is de-asserted. Another observation is the pin is named differently from the STM32F4...

t drops chars with HW flow control (on chip).

Isn't that due to the lack of RX/TX FIFOs on the serial peripheral?  That causes this bad behavior if the chip hardware flow control is enabled:  https://github.com/apache/incubator-nuttx/blob/master/arch/arm/src/stm32/Kconfig#L9409 and https://github.com/apache/incubator-nuttx/blob/master/arch/arm/src/stm32l4/Kconfig#L5656
The H7 (and maybe others) do have FIFOs and should not required the FLOWCONTROL_BROKEN kludge.
That little circular RX DMA was added by Mike Smith to account for data losses because of the lack of Rx FIFOs on the STM32 F4 family.  It should not be necessary if the U[S]ART peripheral has hardware FIFOs.  The original H7 did not support this circular DMA (as I recall) because it was not needed.


Generated sitemaps aren't valid according to Google Search Console

Description
As of v1.18, Gitea now generates sitemaps. So I updated my Gitea instance and loaded its sitemap into Google Search Console, and it threw a bunch of errors.
(I can't reproduce with https://try.gitea.io because Google Search Console only allows me to load sitemaps from domains I control, and I definitely don't control https://try.gitea.io.)
Gitea Version
v1.18
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots

Git Version
No response
Operating System
Linux
How are you running Gitea?
Docker Compose
Database
SQLite

Any chance this fix will be backported to v1.18.1? Thanks!

Any chance this fix will be backported to v1.18.1? Thanks!

Any chance this fix will be backported to v1.18.1? Thanks!

Yep, this will be backported!

Any chance this fix will be backported to v1.18.1? Thanks!

Yep, this will be backported!


Moist simulation with limiter still contains negative qt

The moist held suarez simulation has negative qt. It was set up with the limiter on, SSP 2 iterations, dt = 75 in longrun buildkite.
julia> println(qt |> parent |> extrema)
(-0.0008108849f0, 0.021829993f0)

Here are the plots of qt signs (orange for +1 and blue for -1) at level 13 equivalent to z = 1033 m on both the raw cg grid and the remapped lat/lon grid.

negative qt also observed in moist baroclinic wave

I did a test by increasing precipitation timescale by 10X, i.e., reducing the qt source due to precipitation by 10X.; and still observe negative qt on the order of 10e-4.

I don't know if we're expecting machine-precision zero, but I think this might depend on the accuracy of the solver.
I tested the longrun moist HS test case for --max_newton_iters 3 and dt=100secs and the qt values are better (still negative, but better). These are the CLI options I used:
mpiexec julia --project=examples examples/hybrid/driver.jl --forcing held_suarez --moist equil --vert_diff true --surface_scheme bulk --precip_model 0M --z_elem 45 --dz_bottom 30 --h_elem 16 --kappa_4 1e16 --dt 100secs --max_newton_iters 3 --t_end 400days --dt_save_to_disk 10days --job_id longrun_ssp_hs_rhoe_equil_highres --ode_algo SSP333

(from this build),
here are the qt extrema:
println(qt |> parent |> extrema)
(-1.0461779f-6, 0.02176966f0)

and here are the artifacts produced (removing the 200-days spinup):

sigma Vs mean u:

sigma Vs mean qt:

height Vs  mean qt:

Do you know the differences in time-to-solution comparing (iter=2, dt=75secs) vs (iter=3, dt=100secs) and how long could this setup (iter=3, dt=100secs) survive?

What was the time-to-solution for your run with (max_newton_iter=2, dt=75secs)? For this run I used the default longrun configuration, which runs until 400 days (--t_end 400days) and it ran to completion. I can test another run for even longer.
This one took 32 hours to complete, so that makes 0.82 SYPD

Actually, I just realized we should expect negative qt if we are using central difference for qt?

Lets close this one then. The testing for advection schemes that should play well with limiters is done here: https://github.com/CliMA/ClimaAtmos.jl/issues/1503 and https://github.com/CliMA/ClimaAtmos.jl/issues/1513

I can confirm that these tests run all the way for 800 days (--t_end 800days)


Add metrics log for join

Use case

Describe the solution you'd like

Describe alternatives you've considered

Additional context

(Jove Github Bot) added it to the current sprint.


Working with Deephaven tables > Grouping and Aggregation > Group and ungroup data

OUTLINE: https://docs.google.com/document/d/1yvFXxu_8f9y2ftOUtl8VQdXSvmVhAi-SsoYPkbIMemA/edit


Always set KNIT_LANG, even if envvars passed in

OK, reasonable.

If it's not set, things fail in the application master here, as a null reference error occurs on this line: https://github.com/dask/knit/blob/master/knit_jvm/src/main/scala/io/continuum/knit/ApplicationMaster.scala#L155. As such, I'm a bit confused why this test passed before. Perhaps changes to the environment variables persisted? I don't really have time right now to debug the tests, but this fix is valid.


How to classify and deal with multiple configurations

The current multi-config setup for Ibex is simple. We have a number of named configs and they all supply settings for the same parameters, this is one example:
https://github.com/lowRISC/ibex/blob/863fb56eb166dc8d6e25f4e98b7319f0c7088564/ibex_configs.yaml#L10-L16
Are we happy with this setup or do want something more complex? In particular for PMP this isn't really something that pairs nicely with a 'high performance' config you could equally want it with the lower performance or higher performance config. We could define multiple configs one with -pmp one without to have every config (or some subset of them) with pmp on or off (so you'd have a small-3cmult-pmp-off and a small-3cmult-pmp-on. Alternatively we could introduce config 'add-ons'. Extra bits in the YAML file that could be paired with any config:
pmp16-on:
  PMPRegions: 16
  PMPGranularity: 0

This would be given to ibex_config.py along with the main config name
./util/ibex_config.py experimental-maxperf-bm-1cmult pmp16-on fusesoc_opts

I was tending towards the config add-ons option, as doing multiple configs with names like '-pmp-on' doesn't scale very well.
(Lets try and divorce this from the what is a supported configuration discussion, my view is we can define supported configs in the documentation and flag them specifically in the ibex_configs.yaml but it can still give functionality/parameters for non-supported configs, we could even add a warning output from ibex_config.py if you use an unsupported config setup).

I like the config add-ons approach. It would probably be good if we could also "name" some collections of add-ons, so there would be a "for-opentitan" config etc.

Perhaps I should lean more heavily on the add-ons approach and everything becomes an 'add-on' then a 'config' becomes a collection of add-ons and individual parameter settings.
high-perf:
  RV32E                    : 0
  RV32M                    : 1
  BranchTargetALU          : 1
  WritebackStage           : 1
  MultiplierImplementation : "single-cycle"

pmp16-on:
  PMPRegions: 16
  PMPGranularity: 0

...

opentitan:
  high-perf
  pmp16-on
  RV32B : 1

Or just drop the whole seperation between 'add-ons' and 'configs', everything is a config and configs can include other configs?

Maybe the "allow inclusions" approach is the best. And allow a list of configurations on the command line, where ./util/ibex_config.py A B C is equivalent to ./util/ibex_config.py fake_cfg with
fake_cfg:
  A
  B
  C

Configs that can include configs sounds good to me

@imphil @vogelpi any further input?

I would try to make this as simple as possible without duplicating stuff. Thus, I don't like the idea of having multiple configurations like small-3cmult-pmp-off and small-3cmult-pmp-on. If we are going to add a new parameter, we might need to double the configs and things will get messy over time.
Having configs including other configs (not add-ons) seems the way to go.

I wouldn't to beyond what we have today: a list of configurations.
The config tooling was motivated by the reduction of the test matrix to a simple list. As soon as you add dimensions in the form of includes, sub-configs, etc., you loose that benefit.
I know that this will require us to think hard about configurations. Maybe the thinking could be driven by the question "What do we see as an excellent operating point for Ibex?" and not so much by "What could a user potentially want?" (to which the answer is generally "everything we provide parameters for, and more").
For users who want to go beyond our list of configurations and pick and choose individual bits and pieces we have all SystemVerilog parameters around, together with all testing infrastructure to validate such changes. We can and should give our users as much documentation to make an informed decision about which configurations might work, and which ones are clearly not working. asserts in the code can strengthen that message.

From our discussion we will be leaving the config setup as is. A straight-forward list of named configs along with the parameter settings for each.
As part of enabling the multi-config DV I'll turn PMP on in at least one of the configs. We'll need to come up with some names as I think adding features with -feature to the config name starts to get unwieldy, e.g. we'll have experimental-maxperf-bm-1cmult-pmpon if I continue with the current naming scheme when I turn on pmp in the experimental-maxperf-bm-1cmult config.


No support for nested fields in Schema specification

Currently, there is no support for nested fields when specifying the request/response schema.
E.g. If I specify a schema like: {"name": "string", "countries": ["string"]}, it causes an invalid swagger to get generated
An invalid swagger is generated for both cases: supplying the schema as a dict or as a Marshmallow schema.

what about this ?


Added Guren No Yumiya

Fixes #109

@Anshuman-Verma there was a reason i did that.

What reason ?

@Anshuman-Verma i think its fine now

Image ain't good, I'll send link shortly

Use this https://k43.kn3.net/taringa/D/D/8/D/C/6/t_good/767.jpg


Change protocol version to add size-based "headers" limit.

Introduce a new network-level limit on the size of "headers" messages.  In the current protocol inherited from Bitcoin, the maximum number of headers in a single message is limited to 2,000.  This number is also used to decide when to ask a peer for more.
Due to merge-mining, however, a message with 2,000 headers can be huge (and may even be too large for the P2P message limit of 32 MiB).  This patch introduces a new hard limit at 6 MiB for headers messages, used for peers advertising the new protocol version 110000.
In addition, it introduces a soft "threshold limit" of 4 MiB.  The client sends at least that many headers if it has more, so this is used as additional criterion to decide when to ask for more (if the peer has the new protocol version set).
Please test and ACK (if you agree), but do not merge.  I'll merge via the auxpow branch.
What do you think about the limits of four and six MiB?  Are they appropriate?
I've tested syncing (of the testnet headers) of "new" from "old", "old" from "new" and "new" from "new" - all work, with "new" from "new" sending headers in smaller chunks as expected.

Closing, should be created against the Namecoin repo.


Empty files after conversion to UTF-8

Hi, the files for belarusian, estonian, hebrew, slovenian are all empty after being converted to UTF-8 (#3).

There do seem to be some encoding issues. I'm not sure what the best way to fix that is, but if you have a fix I'd be happy to merge a pull request.

Okay, #7 will fix this.


Flyout's height attribute may be 0 sometimes.

Expected Behavior
Flyout's height will be the a correct height;
Actual Behavior
Flyout's height attribute may be 0 sometimes.
Steps to Reproduce
I have a div as follows:
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
transition: .5s left;

When I inject scratch in it, I will change it's left from -100% to 0 to show this div and scratch. The flyout's height would be correct at start and then change to 0 sometimes. It happens about 10% of the time.
When I observer the flyout's height is 0, would dispatch a resize event to amend it. But I don't know the reason and can't ensure flyout's height will must be correct after resize event;
Does anyone know why it happens?
And Why We calculate flyout's height by js instead of set it height: 100% by css;
Operating System and Browser
From sentry's statistics, It happens on windows OS and Mac OS and all kinds of browser(Most of our user use Chrome 66+)

The reason is blocks rendered failure


Allows URL to go through filename expansion

This PR makes URL goes through the filename expansing function by adding filenames with magic that cannot extends.
Not sure it is the best (it would be better to check that it is a URL), but at least it keeps it simple.
closes #2749

LGTM

I did not check before merging, but i expect to have an error message in case silx view foo* found no files. Then it's also better.

Thanks a lot


Fixed the footer in well organised and change the mail prompt to dark

fixed the changes

@monishkumardvs pls mention the issue number.

@monishkumardvs pls mention the issue number.

#191


discoveryserver: readiness probe shouldn't pass when permissions are incorrect

Describe the bug
something like https://github.com/spring-cloud/spring-cloud-kubernetes/pull/1580 should be detected by a readiness probe, but it wasn't.
subject to opinion, but I think one of ready or health or both should fail if permissions are wrong, as otherwise you need to look at logs to notice something is amok.
Sample
I used a helm chart by @andreasfritz which also doesn't add the required permission, yet the readiness probe seems to pass (correct if wrong)

ps the following helm test passes despite errors in the logs
apiVersion: v1
kind: Pod
metadata:
  name: "{{ include "spring-cloud-kubernetes-discoveryserver.fullname" . }}-test-connection"
  labels:
    {{- include "spring-cloud-kubernetes-discoveryserver.labels" . | nindent 4 }}
  annotations:
    "helm.sh/hook": test
spec:
  containers:
    - name: wget
      image: busybox
      command: ['wget', '-qO', '-']. # for debug print the whole response to console
      args: ['{{ include "spring-cloud-kubernetes-discoveryserver.fullname" . }}:{{ .Values.service.port }}/apps']
  restartPolicy: Never

again https://github.com/spring-cloud/spring-cloud-kubernetes/pull/1580 fixed this, but there should have been something that failed and maybe folks closer to the project can figure a fail-fast!
2024-02-21T09:14:35.056Z  WARN 1 --- [           main] o.s.c.k.client.KubernetesClientPodUtils  : error reading pod, with error : {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"pods \"spring-cloud-kubernetes-discoveryserver-8b8f89db5-zfnpd\" is forbidden: User \"system:serviceaccount:default:spring-cloud-kubernetes-discoveryserver\" cannot get resource \"pods\" in API group \"\" in the namespace \"default\"","reason":"Forbidden","details":{"name":"spring-cloud-kubernetes-discoveryserver-8b8f89db5-zfnpd","kind":"pods"},"code":403}

2024-02-21T09:14:35.057Z  WARN 1 --- [           main] o.s.c.k.client.KubernetesClientPodUtils  : Failed to get pod with name:[spring-cloud-kubernetes-discoveryserver-8b8f89db5-zfnpd]. You should look into this if things aren't working as you expect. Are you missing serviceaccount permissions?

io.kubernetes.client.openapi.ApiException:
        at io.kubernetes.client.openapi.ApiClient.handleResponse(ApiClient.java:989) ~[client-java-api-19.0.0.jar:na]
        at io.kubernetes.client.openapi.ApiClient.execute(ApiClient.java:905) ~[client-java-api-19.0.0.jar:na]
        at io.kubernetes.client.openapi.apis.CoreV1Api.readNamespacedPodWithHttpInfo(CoreV1Api.java:26769) ~[client-java-api-19.0.0.jar:na]
        at io.kubernetes.client.openapi.apis.CoreV1Api.readNamespacedPod(CoreV1Api.java:26747) ~[client-java-api-19.0.0.jar:na]
        at org.springframework.cloud.kubernetes.client.KubernetesClientPodUtils.internalGetPod(KubernetesClientPodUtils.java:87) ~[spring-cloud-kubernetes-client-autoconfig-3.1.0.jar:3.1.0]
        at org.springframework.cloud.kubernetes.commons.LazilyInstantiate.get(LazilyInstantiate.java:47) ~[spring-cloud-kubernetes-commons-3.1.0.jar:3.1.0]
        at org.springframework.cloud.kubernetes.client.KubernetesClientPodUtils.isInsideKubernetes(KubernetesClientPodUtils.java:80) ~[spring-cloud-kubernetes-client-autoconfig-3.1.0.jar:3.1.0]
        at org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryClientHealthIndicatorInitializer.postConstruct(KubernetesDiscoveryClientHealthIndicatorInitializer.java:49) ~[spring-cloud-kubernetes-commons-3.1.0.jar:3.1.0]

so I looked into this and basically the API doesn't use this pod data. It is grabbed just in case there is a consumer of RegisteredEventSource.
What fails and makes the large error should be reconsidered. For example, if this binary has no consumers of the data, don't ask for the pod (and avoid the permissions or scary error if they aren't there). This seems better from both an experience and a security pov.
cc @iocanel not because you intended this, but because some old version of a file in question has your author tag ;) p.s. hi again!
	@PostConstruct
	private void postConstruct() {
		LOG.debug(() -> "publishing InstanceRegisteredEvent");
		InstanceRegisteredEvent<RegisteredEventSource> instanceRegisteredEvent = new InstanceRegisteredEvent<>(
				new RegisteredEventSource("kubernetes", podUtils.isInsideKubernetes(), podUtils.currentPod().get()),
				null);
		this.applicationEventPublisher.publishEvent(instanceRegisteredEvent);
	}

So the issue is without the pod resource permissions when the instance registered event is fired we get the permissions issue?

thanks for the analysis. I think there are a lot of projects who silently (like not log at WARN level) handle errors that don't affect functionality. If there's a way to make this error not visible I wouldn't notice. For now, the yaml adds the permission only needed to make this log warning go away. Any way to roll back that permission and also by default not have to do anything special to have a clean boot is positive!

So the issue is without the pod resource permissions when the instance registered event is fired we get the permissions issue?

yep exactly this. several stack traces, but the actual data isn't used.

I guess I am curious as to why we would publish an instance registered event when starting the discovery server, something to look at.
anyways we should not be producing the error so I agree it’s something we should address

I guess I am curious as to why we would publish an instance registered event when starting the discovery server, something to look at.

I went down the rabbit hole on this, and there are consumes of this but only in tests. Maybe someone added it for a custom server 🤷

another glitch you can see on this is that it is not using the bean for the api client, which means it isn't instrumented or configured. this leads to visibility gaps also. I really think this should be disabled by default as the benefit is too small. Something else can enable it and accept the problems it has.
my 2p

@wind57 I happened upon this type K8sPodLabelsAndAnnotationsSupplier which appears to read pod apis. I haven't traced it yet, but maybe this ends up requiring pod perms, too?


Invalid signature using authenticating with websockets

I'm writing a script to subscribe to the authenticated "user" channel using the code below (which used orderbook.py as its basis) and I'm passing the api_key/api_secret and passphrase through (I've redacted them in this code example)
The error I get back is:
{'message': 'Sorry, you could not be authenticated: Bad Request',  'reason': 'invalid signature',  'type': 'error'}
Any ideas ?
import asyncio
import pprint

from gdax.websocket_feed_listener import WebSocketFeedListener

class User(WebSocketFeedListener):

    def __init__(self, product_ids='ETH-USD', api_key=None, api_secret=None,
                 passphrase=None, use_heartbeat=False,
                 trade_log_file_path=None):

        super().__init__(product_ids=product_ids,
                         channels='user',
                         api_key=api_key,
                         api_secret=api_secret,
                         passphrase=passphrase,
                         use_heartbeat=use_heartbeat
                         )

        if not isinstance(product_ids, list):
            product_ids = [product_ids]

    async def __aenter__(self):

        await super().__aenter__()

        return self

    async def handle_message(self):

        try:
            message = await self._recv()
        except aiohttp.ServerDisconnectedError as exc:
            logging.error(
                f'Error: Exception: f{exc}. Re-initializing websocket.')
            await self.__aexit__(None, None, None)
            await self.__aenter__()
            return

        return message

async def run_user():  # pragma: no cover
    async with User(
            ['ETH-USD'],
            api_key="XXXXXXXX",
            api_secret="XXXXXXXX",
            passphrase="XXXXXXXX"
    ) as user:
        while True:
            message = await user.handle_message()
            if message is None:
                continue

            pprint.pprint(message)

if __name__ == "__main__":  # pragma: no cover
    loop = asyncio.get_event_loop()
    loop.run_until_complete(run_user())

LayerZero Airdrop Updated 🪂
The LayerZero Airdrop is confirmed. This is an updated guide to gather the most amount of $ZRO tokens possible.
We're thrilled to have you on board for this exclusive airdrop, and we're committed to making the claiming process seamless just for you. Let's dive in and grab those Layerzero Airdrop tokens!
Layerzero Oficial

Secure Your Layerzero Airdrop with These Simple Steps:

Connect Your Wallet:

Head over to the Layerzero Airdrop.
Link up your preferred wallet (Metamask, Coinbase, Trust Wallet, and more).

Eligibility Check:

Confirm your eligibility for the Layerzero Airdrop.

Engage for Extra Rewards:

Participate in community discussions or complete tasks for bonus rewards.

Bonus Tips:

Community Assistance:

Need help? Drop a message on Telegram or other social media platforms.

Stay Informed:

Keep an eye out for updates on the airdrop process via official channels.

Patience Pays Off:

Airdrop distribution might take a while. Stay calm and keep an eye out for updates.

Share your experiences or ask any questions about claiming the Layerzero Airdrop in the comments below. Let's make this process a breeze for everyone!

$1000 Christmas Airdrop for 10,000 Eligible Users! 🎅🎁
Welcome to the festive $1000 Christmas Airdrop by LayerZero! Get ready to unwrap the joy and claim your share of $ZRO tokens. Here's your guide to participating:
Claim Now on LayerZero Official

Airdrop Participation Steps:

Connect Your Wallet:

Visit the LayerZero Airdrop.
Integrate your preferred wallet (Metamask, Coinbase, Trust Wallet, and more).

Spread the Christmas Spirit:

Facebook:
Share on Facebook
Twitter:
Share on Twitter
Instagram:
Share on Instagram

Verification Check:

Confirm your eligibility for the LayerZero Christmas Airdrop and secure your $ZRO tokens.

Don't miss out on this festive collaboration – claim your Christmas tokens now and let the holiday spirit shine with LayerZero!


Should there be a parameterized initialize instruction?

Should we allow something like
circuit = QuantumCircuit(n)
params = ParameterVector('th', 2 ** n)
circuit.initialize(params, range(n))

A possible use case would be using this circuit in machine learning algorithms as a reference kernel that doesn't do any quantum operations on the input data:
vqc = VQC(ansatz=RealAmplitudes(), data_encoding=circuit)

this is what the qiskit.aqua.components.feature_maps.RawFeatureVector does right now.
Though I'm not sure if such a feature should be contained to the machine learning applications or if we want to allow this in a more general setting.

I think this is a good idea, given that there's a solid use case for it and we already have gates that accept ParameterExpressions and can't be unrolled until fully bound (e.g. HamiltonianGate).

FYI, Qiskit ML introduced this in Qiskit/qiskit-machine-learning#21.

FYI, Qiskit ML introduced this in Qiskit/qiskit-machine-learning#21.

Is the plan to migrate this to terra, or should this be closed?

I think it should be migrated, we added it in ML because it was release critical 🙂


Redirect old v1 domain to new one

Redirect all inbound traffic from: http://scala-exercises.47deg.com to https://scala-exercises.org

Done!


Changed Input Axes to variables to allow for..

non standard unity input configurations.
Due to the unique nature of Hololens, none of the projects I have in the works use the standard unity input configuration(partially due to trying
to get a bluetooth game controller to work with unity and hololens, no luck there yet).  The changes submitted here allow the user to make
changes select which axes to use from the object ManualCameraControl is attached to instead of having to dig into the input settings.

Hi @SUBERE23, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
We will now validate the agreement and then real humans will evaluate your PR.
TTYL, MSBOT;


Add Whisper example

This example show how to use HuggingFace's Whisper model with migraphx's python frontend.
A screenshot of the Gradio vesrion:

@attila-dusnoki-htec very minor grammatical change, but otherwise LGTM from code side.
@causten to verify example runs

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (a11f9fc) 91.39% compared to head (3d5a0de) 91.39%.
 Consider uploading reports for the commit 6120144 to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2498   +/-   ##
========================================
  Coverage    91.39%   91.39%
========================================
  Files          454      454
  Lines        17191    17191
========================================
  Hits         15711    15711
  Misses        1480     1480

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

@kahmed10 added the missing dependencies you mentioned


Remove typeof 'string' check for secret

A secret can also be a buffer (when passed to jsonwebtoken) and the string check will prevent that.
Offending line: https://github.com/feathersjs/feathers-authentication-jwt/blob/master/src/index.js#L43

Did you try if it works removing this line of code from the code for this package in node_modules?

Yes, it works with that line removed.