Any call to manage.py will fail if no default database is specified

I'm working on a Django project which does not have any database configuration until the deployment phase, and while trying to run a manage.py command completely unrelated to the usage of django-simple-history (collectstatic, in my case), I'm getting a KeyError because the library it's trying to access the default database configuration (which is absent at this point, and will be added later on) to build and populate the HistoricalRecords models.
Is there a way to bind this behavior with specific manage.py commands (and not all of them), or to make the calls to manage.py not fail in such a particular case?

Without a traceback I can't really say. was the only change to the project adding simple history? If you can't provide a traceback, is there any way you could reproduce the issue in a minimal project? That is what I would need to do myself to determine what's going on here.

Hello @macro1, thank you for the quick response.
I have managed to solve the issue in my situation by adding a 'default' entry in the DATABASES setting with the 'ENGINE' set to '', to make the continuous integration tool to use Django's built-in dummy database for that particular build step.
If you are still interested in troubleshooting the issue, the issue I was getting is the following:
$ python manage.py check Traceback (most recent call last):   File "manage.py", line 10, in <module>     execute_from_command_line(sys.argv)   File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 353, in execute_from_command_line     utility.execute()   File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 327, in execute     django.setup()   File "C:\Python27\lib\site-packages\django\__init__.py", line 18, in setup     apps.populate(settings.INSTALLED_APPS)   File "C:\Python27\lib\site-packages\django\apps\registry.py", line 108, in populate     app_config.import_models(all_models)   File "C:\Python27\lib\site-packages\django\apps\config.py", line 202, in import_models     self.models_module = import_module(models_module_name)   File "C:\Python27\lib\importlib\__init__.py", line 37, in import_module     __import__(name)   File "C:\Users\s.cianciulli\Desktop\django_simple_history_issue_264\issue\models.py", line 8, in <module>     class MyModelWithHistory(models.Model):   File "C:\Python27\lib\site-packages\django\db\models\base.py", line 291, in __new__     new_class._prepare()   File "C:\Python27\lib\site-packages\django\db\models\base.py", line 341, in _prepare     signals.class_prepared.send(sender=cls)   File "C:\Python27\lib\site-packages\django\dispatch\dispatcher.py", line 192, in send     response = receiver(signal=self, sender=sender, **named)   File "C:\Python27\lib\site-packages\simple_history\models.py", line 88, in finalize     history_model = self.create_history_model(sender)   File "C:\Python27\lib\site-packages\simple_history\models.py", line 123, in create_history_model     fields = self.copy_fields(model)   File "C:\Python27\lib\site-packages\simple_history\models.py", line 176, in copy_fields     transform_field(field)   File "C:\Python27\lib\site-packages\simple_history\models.py", line 272, in transform_field     field.__class__ = convert_auto_field(field)   File "C:\Python27\lib\site-packages\simple_history\models.py", line 298, in convert_auto_field     if settings.DATABASES[connection]['ENGINE'] in ('django_mongodb_engine',): KeyError: 'default'
I've also setup a minimal Django project which would throw the same issue (and traceback), you can find it at https://github.com/CianciuStyles/django_simple_history_issue_264. Please note the absence of the default key in the DATABASES dict (in the settings.py file), which was the same situation I had before.

Ah. I had forgotten about the MongoDB feature. Also it appears this is a duplicate of #219.

That's correct, they seem to talk about the same issue. If I can do anything to help with this, just let me know.

As a stop-gap, we can probably add exception handling there to assume non-mongodb if there is no matching connection.
Longer term, we could try to move mongo-db to an explicit flag, or allow a custom PK field definition to be passed in. Custom fields on history models is in the requested features somewhere I think. I'm not sure how hard it would be to add though.

I had some issue trying to build docs using sphinx with automodule:
local/lib/python2.7/site-packages/simple_history/models.py", line 300, in convert_auto_field
if settings.DATABASES[connection]['ENGINE'] in ('django_mongodb_engine',):
KeyError: 'default'

Fixed by #432


send cached metric values from pageserver from time to time

That is needed to have a workaround for the consumption tracking when the month changes. I suggest having a configurable amount of seconds to provide an interval in which to update the cached values because the actual value is still needs to be discovered.
for https://github.com/neondatabase/neon/issues/2941

Reopen the issue, because metrircs don't show up in Orb as expected

metric
coordinates
comments
ok

synthetic_storage_size, remote_storage_size, resident_size
"tenant_id": "bf82e8c03544b2cbc7b6ddb9b523ee46",
* Feb 17 1:57:05.0000 * Feb 17 3:07:04.0000  * Feb 17 4:17:05.0000  * Feb 17 5:27:05.0000  no events at 6,7,8,9 o'clock. no errors sending/receiving those metrics for 6 hours on the dashboard. No errors I see in pageserver logs. I see other synthetic_storage_size and other metrics at 7,8,9 o'clock for other projects of my user
⛔


autoComplete addBrackets was doesn't work

VS Code Version: VS Code 1.27.0-insider
OS Version: WINDOWS 10
Visual Studio IntelliCode Extension Version: Visual Studio IntelliCode-Preview(1.0.3)
Python Extension Version: Python Extension Version:2018.7.1 (23 July 2018)
Target Platform or Language: Python 3.7
Steps to Reproduce / Scenario:

Select "Enable Visual Studio IntelliCode completions for Python
2.Select "True" For "python.autoComplete.addBrackets"
3.Type "print" or any function by IntelliSense
4.It doesn't add brackets after the function

@markw-t Can someone take a look at this?

Sorry for the delay in looking at this issue @Jarvis-GitHub . I'd like to figure out if this is a Python language service issue or an IntelliCode issue. Can you try uninstalling the IntelliCode extension and see if the problem still persists? If it does, then this problem should be reported at https://github.com/Microsoft/vscode-python/issues/new instead.
Thanks
Mark

Hi again @Jarvis-GitHub
This is a known limitation on the new Python language service. It's being tracked already at https://github.com/Microsoft/vscode-python/issues/1772
Thanks
Mark


Can't run container

Installation worked after the patch. only a warning for a newer pip install but
# docker run -it -p 5000:5000 max-speech-to-text-converter
Illegal instruction
base system is debian11

Are you on an old CPU model? Your CPU may not support newer instructions such as AVX, AVX2, etc.

it is an virtual machine in Proxmox on HP Proliant Gen 8

@xuhdev As I know that isn't a problem from the cpu type. Gen8 is aka ivy bridge cpu. Mr @bashinho told me he  tries to run docker inside a kvm.


@angular/cdk/drag-drop: one-way dragging bug

Bug, feature request, or proposal:
Bug
Explanation
If you want to only allow one-way dragging (e.g. left list to right list), you remove the connectedTo directive from one of the lists. This causes a problem where if you drag from one list to another list and back to the original list without dropping, the cdkDrag element you dragged won't go back to the original list. Here's a gif that showcases this behavior:
I can provide a StackBiltz but the only change I had to make from this StackBlitz for the Transferring items between lists example to reproduce this behavior was to remove [connectedTo]="[todoList]" from the donelist's cdkDrop selector. (Side note: I had to copy the StackBlitz code and run it locally because none of the StackBiltzs linked to on this page are working. They either won't drag or it shows an error. I didn't notice anyone else mention this or an existing issue for it.)

Thanks for the PR for this @crisbeto.
Should I create a separate issue for the StackBlitzs not working? I didn't see a resolution for that in this PR but I'm not sure if it's something that should have an issue associated with it since it's probably not considered part of the code base.

The linked Stackblitz doesn't work, because the drag&drop isn't in the latest stable version yet. Once 7.0.0 final is released, it'll work.


Automatically resize map to match associated DOM node

I can't think of any instance when I would not want this, and it seems silly that every user should have to set it up manually. Please set it up for me when the map is created.
(An option may be provided to disable this if felt necessary, but the common case should be easy.)

+1 :+1:

I agree we should minimize boilerplate code.  We have discussed this issue before in the past, but we didn't come to a definite conclusion.  Here are a couple of problems off the top of my head:

When the map is in a fixed size element, you don't want to resize on $(window).resize.
$(window).resize only fires when the browser window is resized, not when the layout changes.  In fact there is no event at all you can use to detect a size change of a node.  For dynamic layouts, the user must manage this manually.

That said, I would be okay with binding to $(window).resize by default and providing an option to disable this behavior.

Leaflet and OpenLayers don't have this issue; maybe it is worth looking into how they solve the problem?

They do actually have the same issues with dynamic sizes.  For example here.  Leaflet provides a method, invalidateSize, that tells the map to resize according to the new node size.  There is very little difference between this and setting the size explicitly as we do.
I really don't want to make the assumption that the map should be the same size as its parent node.  For GRITS, we had a dynamic layout that required the map to resize.  Because there is no event triggered after the new layout is rendered, there is no reliable way to trigger the map resize with the correct node size.  The only option we had left was to calculate the new sizes manually and ignore the current node size.  This is ugly, but better IMO than trying to detect the new layout inside a setTimeout loop as is suggested in the linked issue.


Automated cherry pick of #9360: fix(region): sync servers

Cherry pick of #9360 on release/3.5.
#9360: fix(region): sync servers

Codecov Report

Merging #9371 (65e3d31) into release/3.5 (6a15e02) will decrease coverage by 1.79%.
The diff coverage is 1.06%.

@@               Coverage Diff               @@
##           release/3.5   #9371       +/-   ##
===============================================
- Coverage         5.98%   4.18%    -1.80%
===============================================
  Files              796     163      -633
  Lines           125693   25028   -100665
===============================================
- Hits              7522    1048     -6474
+ Misses          117504   23888    -93616
+ Partials           667      92      -575

Flag
Coverage Δ

aFlag
4.18% <1.06%> (-1.80%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/cloudcommon/db/jointbase.go
0.00% <ø> (ø)

pkg/cloudcommon/db/sharablebase.go
6.01% <0.00%> (-0.06%)
:arrow_down:

pkg/cloudprovider/objectstore.go
2.06% <0.00%> (-0.51%)
:arrow_down:

pkg/compute/regiondrivers/aliyun.go
0.33% <0.00%> (-0.01%)
:arrow_down:

pkg/compute/regiondrivers/base.go
1.02% <ø> (ø)

pkg/compute/regiondrivers/huawei.go
0.21% <0.00%> (-0.01%)
:arrow_down:

pkg/compute/regiondrivers/kvm.go
0.38% <0.00%> (-0.01%)
:arrow_down:

pkg/compute/regiondrivers/managedvirtual.go
0.00% <0.00%> (ø)

pkg/compute/regiondrivers/openstack.go
0.74% <ø> (ø)

pkg/compute/regiondrivers/qcloud.go
0.74% <0.00%> (-0.01%)
:arrow_down:

... and 575 more

Continue to review full report at Codecov.

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


Implement methods of the restricted Task API

Implement the methods of #5. Consider result of #41.

Please do the file service implementation first. I have not yet finished laying out the basic structure of the Task REST API. I will do so today and will notify you when done.

Please follow the specification stored on "grips.semantic-web.at" regarding the REST API. Thanks.

I have finalized the design of the API for the 1st iteration. I will update the specification tomorrow with all available calls and formats of provided data.
I will do some basic tests to verify the API works correctly and then I'll pack you the .war for István.


Value for argument "fieldPath" is not a valid field path when making OR queries

Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Is this a client library issue or a product issue?
This is the client library for . We will only be able to assist with issues that pertain to the behaviors of this library. If the issue you're experiencing is due to the behavior of the product itself, please visit the  Support page to reach the most relevant engineers.

Did someone already solve this?

Search the issues already opened: https://github.com/googleapis/nodejs-firestore/issues
Search the issues on our "catch-all" repository: https://github.com/googleapis/google-cloud-node
Search or ask on StackOverflow (engineers monitor these tags): http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js

Do you have a support contract?
Please create an issue in the support console to ensure a timely response.

If the support paths suggested above still do not result in a resolution, please provide the following details.
Environment details

OS: MacOS Sonoma
Node.js version: 18.17.0
npm version: 9.6.7
@google-cloud/firestore version: 7.1.0

Steps to reproduce

? Create an OR query over a firestore collection

I'm receiving this error
/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/path.js:606
        throw new Error(`${(0, validate_1.invalidArgumentMessage)(arg, 'field path')} Paths can only be specified as strings or via a FieldPath object.`);
              ^
Error: Value for argument "fieldPath" is not a valid field path. Paths can only be specified as strings or via a FieldPath object.
    at validateFieldPath (/Users/chuls/Documents/sumtech/sendblue/api/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/path.js:606:15)

This is the query
                const userRef = fs.collection('accounts').doc(userID)
                const messagesRef = userRef.collection('messages')
                const lastFetch = new Date()
                const numbersQuery = Filter.or(
                    Filter.where('number', '==', number.replace(' ', '')),
                    Filter.where('number', '==', parseRecipientAsNumber(number))
                )
                messagesRef
                    .where(numbersQuery)
                    .orderBy('date', 'asc')
                    .startAfter(lastFetch)

Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!

@jramosss, I attempted a reproduction with this code (guessed on the value of number and return type of parseRecipientAsNumber), but I was not able to reproduce with nodejs-firestore v7.1.0.
The error message appears as if you are using firebase-admin. Can you share how you are importing the package(s) into your code?

Exactly,
import admin from 'firebase-admin'
export const fs = admin.firestore()

I'm still not able to reproduce this. The following code works fine.
import {initializeApp} from 'firebase-admin/app';
import {Filter, getFirestore, FieldValue} from 'firebase-admin/firestore';
async function main() {
    initializeApp()
    const fs = getFirestore();

    const userID = "foo";
    const userRef = fs.collection('accounts').doc(userID);
    const messagesRef = userRef.collection('messages');

    // Write
    await messagesRef.add({
        number: 1234,
        date: Date.UTC(2024, 1, 1)
    })

    // Read
    const lastFetch = new Date();
    const numbersQuery = Filter.or(
        Filter.where('number', '==', "1234"),
        Filter.where('number', '==', 1234)
    )
    const snap = await messagesRef
        .where(numbersQuery)
        .orderBy('date', 'asc')
        .startAt(lastFetch)
        .get();

    console.log(snap.docs.map(ds => ds.data()));
}

main();

To get the query working as expected, I also changed the definition of lastFetch.
const lastFetch = Date.now();

Can you provide a minimal, reproducible example to help us understand what you are seeing?


AF in data

Stop Debugging while at breakpoint. Code
x <-1
y <- 2

sitting on BP at the second line.
>	Microsoft.R.Editor.dll!Microsoft.R.Editor.Data.RSessionDataObject.GetChildrenAsyncInternal() Line 109	C#
 	Microsoft.R.Editor.dll!Microsoft.R.Editor.Data.RSessionDataObject.GetChildrenAsync() Line 96	C#
 	Microsoft.R.Editor.dll!Microsoft.VisualStudio.R.Package.DataInspect.WorkspaceVariableProvider.UpdateList() Line 168	C#
 	[Resuming Async Method]
 	[External Code]
 	Microsoft.R.Common.Core.dll!Microsoft.Common.Core.Tasks.TaskCompletionSourceEx<Microsoft.R.Host.Client.REvaluationResult>.TrySetResult(Microsoft.R.Host.Client.REvaluationResult result) Line 27	C#
 	Microsoft.R.Host.Client.dll!Microsoft.R.Host.Client.RHost.EvaluationRequest.Handle(Microsoft.R.Host.Client.RHost host, Microsoft.R.Host.Protocol.Message response) Line 74	C#
 	[External Code]

It is actually

I think you might have had the combo box selector of package/stack frame in VE set to the topmost frame while inside a function before, and it didn't properly reset. So it's trying to fetch a variable from a non-existent frame.

Haven't touched VE at all. It was in its default state.

I can't repro it, but looking at the code, it seems to be a race condition - basically VE responds to IRSession.Mutated event by trying to refresh itself, but it does it in the background. So if you stop debugging very quickly after hitting the breakpoint, it might try to refresh the frame that's already gone by then.


Fix setup_db.sh by waiting for pg_isready success return. Fixes #3876

resolves #3876

Description
The setup_db.sh script now waits for the postgres instance to be ready before terminating execution. Code for the creation of dbt database, root roles and grants on dbt has been removed since this is already done in the docker compose. The creation of role noaccess and db dbtMixedCase is kept.

Checklist

[x] I have signed the CLA
[x] I have run this code in development and it appears to resolve the stated issue
[x] This PR includes tests, or tests are not required/relevant for this PR
[x] I have updated the CHANGELOG.md and added information about my change to the "dbt next" section.

forgive me while I close and reopen the PR to kick off the integration test workflow 🤦 , we are still working on a mechanism to re-trigger integration tests!

I rebased the branch with develop, that's why the forced push.


Fix Backgrounds Nav Goes Behind the Widgets in some cases

Hi. Please edit the PR so that it is against staging. I haven't had a chance to look over it otherwise yet.

My bad. Its edited now!


Exception in thread "main" javax.xml.stream.FactoryConfigurationError: Provider for javax.xml.stream.XMLInputFactory cannot be found

I am trying to run the example code and I am getting the above error.
here is my command to execute
C:\SoftwareAG107\jvm\jvm\bin\java -cp .;c:\temp\eventhub\azure-core-1.26.0.jar;c:\temp\eventhub\azure-messagin-eventhubs-1.26.0.wso2v1.jar;c:\temp\eventhub\azure-messaging-eventhubs-5.11.0.jar;c:\temp\eventhub\azure-messaging-eventhubs-checkpointstore-blob-1.11.0.jar;c:\temp\eventhub\azure-storage-blob-12.15.0.jar;c:\temp\eventhub\azure-core-amqp-2.4.0.jar;c:\temp\eventhub\slf4j-api-1.7.30.jar;c:\temp\eventhub\jackson-core.jar;c:\temp\eventhub\reactive-streams-1.0.3.jar;c:\temp\eventhub\azure-storage-common-12.15.0.jar;c:\temp\eventhub\jackson-databind-2.13.2.jar;c:\temp\eventhub\jackson-annotations-2.13.2.jar;c:\temp\eventhub\jackson-dataformat-xml-2.13.2.jar;c:\temp\eventhub\jackson-datatype-jsr310-2.13.2.jar;c:\temp\eventhub\javax.xml.stream-10.0-b28.jar receiver

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

ID: 61059dbc-d075-6af1-98f6-7fe02f9e0440
Version Independent ID: a15c8888-4b49-f9b8-3cee-30d5765c49fa
Content: Send or receive events from Azure Event Hubs using Java (latest) - Azure Event Hubs
Content Source: articles/event-hubs/event-hubs-java-get-started-send.md
Service: event-hubs
GitHub Login: @spelluru
Microsoft Alias: spelluru

@BradBiggers  : Can you please provide more details on which version of Java are you using ?

Azul 1.8.0_322 build 25.322-b06
Brad Biggers | Senior Principal Consultant
Software AG Government Solutions, Inc.
12950 Worldgate Drive Suite 300 Herndon, VA 20170
M:<PHONE_NUMBER> | F:<PHONE_NUMBER>
<EMAIL_ADDRESS>www.softwareagGov.comhttp://www.softwareaggov.com/
@.***http://www.softwareaggov.com/
Complex IT, Simplified.
From: himanshusinha-msft @.>
Sent: Tuesday, March 22, 2022 3:40 PM
To: MicrosoftDocs/azure-docs @.>
Cc: Bradley Biggers @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] Exception in thread "main" javax.xml.stream.FactoryConfigurationError: Provider for javax.xml.stream.XMLInputFactory cannot be found (Issue #89873)
@BradBiggershttps://github.com/BradBiggers : Can you please provide more details on which version of Java are you using ?
—
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/89873#issuecomment-1075615927, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYHTHNVM3BFWRQR6G7IV5HLVBIVYHANCNFSM5QZH7XRQ.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>


Add TOML support for language files

Doing this in YAML is frustration galore.
EDIT: https://github.com/nicksnyder/go-i18n

Why is this an upstream issue?  What's missing?

Why is this an upstream issue? What's missing?

It is maybe more clear now. The snyder lib does the parsing and currently only supports JSON and YAML.

The question is, which syntax should be used. I mean, there are no anonymous tables in TOML and it should be implemented in another way. For example, how could be written following structures in TOML:
[
  {
    "id": "settings_title",
    "translation": "Settings"
  }
]

[
  {
    "id": "d_days",
    "translation": {
      "one": "{{.Count}} day",
      "other": "{{.Count}} days"
    }
  }
]

[[d_days]]
one = "{{.Count}} day"
  other = "{{.Count}} days"

[[string_id_2]]
translation = "Some other translation"

go-i18n's file format is probably an attempt of future-proofing, making it more complex than it should.
If go-i18n could take the data structure directly (it should), Hugo could define whatever format it likes and creat an adapter for it.
With that in mind, we could also maybe create some support for PO files (or whatever they are called).
My main issue about YAML is that it is soooo easy to get the indentation wrong, and the error messages are terrible.

I think, the adapter is the best option for hugo now. I will try to implement it if there will be no more ideas

go-i18n's file format is probably an attempt of future-proofing, making it more complex than it should.

go-i18n's file format is an attempt to match the data that it actually needs. Each translation object has an id and either one translation (non-plural form) or multiple translations (plural form).

If go-i18n could take the data structure directly (it should)

It can, so you can choose any format and inject translations as you see fit:
https://godoc.org/github.com/nicksnyder/go-i18n/i18n#AddTranslation
If you prefer a flatter format I would recommend treating non-plural forms exactly the same:
[[d_days]]
one = "{{.Count}} day"
other = "{{.Count}} days"

[[string_id_2]]
other = "Some other translation"

If you need to differentiate between a plural and non-plural form (the goi18n command does), then the logic would be something like "if there is only other key and the value doesn't contain {{ then it is non-plural, else plural".
The goi18n command helps manage translation files so if you want to use it, then you would either need to be able to either (1) convert TOML to YAML or JSON, or (2) add support to go-i18n for TOML.
If there is general agreement that a flatter format would be better (even in JSON and YAML) then I am open to changing go-i18n.

@nicksnyder but support for TOML will break all existing API of go-i18n package. This moment should be discussed in separate issue at go-i18n's page. But for hugo at the moment the adapter should be implemented.
IMHO it looks not so good to hold only one other for non-plural form. It looks nicer as bep has offered

But for hugo at the moment the adapter should be implemented.

We have no real rush; @nicksnyder is right about the translation workflows, and we don't want to add additional glue code in Hugo if we don't really have to.
I'll create an issue on the go-i18n tomorrow where we can continue this discussion. A flattening of the data format would be breaking, but it should be fairly easy to support both in a grace period.

but support for TOML will break all existing API of go-i18n package

It doesn't need to. We can support a new format without dropping support for the old format.

go-i18n 1.8 now supports TOML and a flatter file format
https://github.com/nicksnyder/go-i18n/releases/tag/v1.8.0
Thanks @bogem !


PoC cannot handle api-server on self-signed https

When running the docker image, I get a panic from the go code related to the fact that the certificate was signed by an unknown authority. The code then stops and does not test further for the exploit.
[rubin@KURO ~]$ docker run -it --rm -v $HOME/.kube/config:/kubeconfig: quay.io/gravitational/cve-2018-1002105:latest
Unable to find image 'quay.io/gravitational/cve-2018-1002105:latest' locally
latest: Pulling from gravitational/cve-2018-1002105
5940862bcfcd: Pull complete
a496d03c4a24: Pull complete
5d5e0ccd5d0c: Pull complete
ba24b170ddf1: Pull complete
d97f46b6966a: Pull complete
Digest: sha256:e35349412f12635bfc1f13326b82c1dba82e176d71c9e0e9d27d947f73126ff8
Status: Downloaded newer image for quay.io/gravitational/cve-2018-1002105:latest
Attempting to locate and load kubeconfig file
Please Note:
  This test currently relies on the behaviour of apiserver/kubelet to check for the issue.
  If you're connecting through a layer-7 load balancer, you may receive false positives in the test
Loading: /kubeconfig
Testing for unauthenticated access...
> API allows unauthenticated access
Testing for privilege escalation...
panic: Get https://openshift-console.example.com:443/api/v1/namespaces: x509: certificate signed by unknown authority

goroutine 1 [running]:
main.findPod(0xc0001aa900, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/go/src/github.com/gravitational/cve-2018-1002105/main.go:196 +0x318
main.testEscalate(0xc000119180, 0x0, 0x0)
	/go/src/github.com/gravitational/cve-2018-1002105/main.go:109 +0xb8
main.main()
	/go/src/github.com/gravitational/cve-2018-1002105/main.go:67 +0x304
[rubin@KURO ~]$
[rubin@KURO ~]$ curl docker run -it --rm -v $HOME/.kube/config:/kubeconfig: quay.io/gravitational/cve-2018-1002105:latest

Based on the info you have provided, I'm not sure I understand what the issue would be. This particular failure, is largely within the client-go code, which loads the kubeconfig, and tries to iterate the namespaces.
The only possibility comes to mind, is that if the kubeconfig references a cert file for the CA instead of embedding it directly into the kubeconfig file, that file location may also need to be volume mounted to the docker container.

@rubin55 , you need to add following in .kube/config

cluster:
insecure-skip-tls-verify: true
to get ride of the self signed error

We're winding down the Gravity project, and with it, this repo.


feat(codemod): UseSession Hook Update ( nextAuth - migration to v4)

📚The useSession hook has been updated to return an object. This allows you to test states much more cleanly with the new status option.

🔗 Linked Issue #966

🧪 UseCase

Hi @manishjha-04 Thanks for your PR! Could you please rebase your branch on the latest main and then regenerate pnpm-lock file by running pnpm install once more locally?

@DmytroHryshyn Done👍

@manishjha-04 Thanks! Last 2 things: linter fails because of incorrect codemod files formatting (can be fixed by pnpm lint:write) and unit test did not pass because jscodeshift slightly changed formatting. When this is fixes, we can merge the codemod


fix: open empathize with autoFocus true

Pull request template

When we use the floating predictive and autoFocus of the searchBox there is a bug when you open X for the first time, the empathize doesn't open.
Motivation and context

[ ] Dependencies. If any, specify:
[X] Open issue. If applicable, link: EMP-3649

Type of change

[X] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that causes existing functionality to not work as expected)
[ ] Change requires a documentation update

What is the destination branch of this PR?

[X] Main
[ ] Other. Specify:

How has this been tested?

To test it, you have to use the DesktopHeaderFloatingPredictive component in the desktop-top-section file and set the autoFocus property in the searchBox component to true.

It seems that handling empathize open/close events would solve the issue without the need for an extra div.
Take as ref full predictive component


EleutherAI/pythia-800m tokenizer adds unusual kwargs, causes a ValueError when evaluating model

It seems like the EleutherAI/pythia-800m tokenizer includes 'token_type_ids' values, but these lead to a ValueError when evaluating the following code:
from transformers import GPTNeoXForCausalLM, AutoTokenizer

model = GPTNeoXForCausalLM.from_pretrained(
  "EleutherAI/pythia-800m",
  revision="step143000",
  cache_dir=".pythia-800m/step143000",
)

tokenizer = AutoTokenizer.from_pretrained(
  "EleutherAI/pythia-800m",
  revision="step143000",
  cache_dir="./pythia-800m/step143000",
)

inputs = tokenizer("Hello, I am", return_tensors="pt")
model.generate(**inputs)

Here is the stack trace:
Traceback (most recent call last):
  File "eval.py", line 76, in <module>
    outputs = model.generate(**inputs, temperature=0.0, max_new_tokens=40)
  File "/om2/user/ericjm/miniconda3/envs/phase-changes/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File "/om2/user/ericjm/miniconda3/envs/phase-changes/lib/python3.8/site-packages/transformers/generation/utils.py", line 1296, in generate
    self._validate_model_kwargs(model_kwargs.copy())
  File "/om2/user/ericjm/miniconda3/envs/phase-changes/lib/python3.8/site-packages/transformers/generation/utils.py", line 993, in _validate_model_kwargs
    raise ValueError(
ValueError: The following `model_kwargs` are not used by the model: ['token_type_ids'] (note: typos in the generate arguments will also show up in this list)

I can get around this error by simply using a tokenizer from another one of the models. This tokenizer, for instance, works:
tokenizer = AutoTokenizer.from_pretrained(
  "EleutherAI/pythia-19m",
  revision="step143000",
  cache_dir="./pythia-19m/step143000",
)

It seems like the tokenizers are the same for all the models, so this issue is pretty easy to get around, but I just thought I'd report it.

Darn, I thought I'd caught all of these. I'll fix this tomorrow, thanks for raising the issue! :)
Yup, any other tokenizer'd work!

Patched for all 800m intermediate ckpts!


Improved Feature card 15

for issue #904 Feature Cards/src/feature-card-15.html Updated card as per figma deisgn

@Rajdip019 Please Delete Feature Cards/src/feature-card-20.html  because its incomplete version of Feature card 15


Update kubernetes.md

Description

Druid Operator repo has moved from druid-io to datainfrahq. The druid-io repo is deprecated.
Refer to https://github.com/druid-io/druid-operator/issues/329.
PR for deprecation https://github.com/druid-io/druid-operator/pull/336
The project will be externally maintained in the following fork druid-operator

Fixed the bug ...
Renamed the class ...
Added a forbidden-apis entry ...

Release note

Key changed/added classes in this PR

MyFoo
OurBar
TheirBaz

This PR has:

[ ] been self-reviewed.

[ ] using the concurrency checklist (Remove this item if the PR doesn't have any relation to concurrency.)

[ ] added documentation for new or modified features or behaviors.
[ ] a release note entry in the PR description.
[ ] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
[ ] added or updated version, license, or notice information in licenses.yaml
[ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
[ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
[ ] added integration tests.
[ ] been tested in a test Druid cluster.

the checkstyle failure was fixed here https://github.com/apache/druid/pull/13860


Lab 1 - Creating an Azure AI hub

Module: 1
Lab/Demo: 1
Task: 1
Step: 1
Description of issue
For Create an Azure AI hub section, step 1
Repro steps:

Location: Select Help me choose and then select gpt-35-turbo in the Location helper window and use the recommended region*

There is nothing shows here, unable to see the list of the models, please see screen shot below for reference.

Understand that this could be due to UI issue but i think we should provide some additional info for example, choose Australia East, etc ... if the list of models doesn't get fully loaded.

This does load for me, and given all the other issues we're seeing in AI Studio at the moment I believe it's a product bug folks will likely intermittently see. I'll reopen the issue if this persists.


Does volar have an ignore directory option ?

I am a beginner, looking for a long time, did not find how to set the behavior of volar. If so, please let me know.
Thank you very much! 🙏

https://www.typescriptlang.org/tsconfig#exclude


dataclass_wizard.errors.UnknownJSONKey: A JSON key is missing from the dataclass schema for class UploadResponse.   unknown key: 'archived'

Python version: 3.11
Operating System: Windows 10

Description
Attempted to upload a video to Wistia using a script I wrote that has worked in the past. Wystia crashed because the "UploadResponse" class didn't have a way to handle the "archived" key in the JSON returned from the Wistia API.
Fixed it by adding "archived" keys to the "UploadResponse" and "Video" classes in model.py.
Line 244 (Video class):
archived: bool | None = None
Line 744 (UploadResponse class):
archived: bool
What I Did
Initial crash traceback:
Traceback (most recent call last):
  File "D:\Python\tvid.py", line 65, in <module>
    vidupload = WistiaUploadApi.upload_file(vidlatest, project, vidname)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python311\Lib\site-packages\wystia\api_upload.py", line 74, in upload_file
    return UploadResponse.from_dict(data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python311\Lib\site-packages\dataclass_wizard\loaders.py", line 536, in fromdict
    return load(d)
           ^^^^^^^
  File "C:\Python311\Lib\site-packages\dataclass_wizard\loaders.py", line 611, in cls_fromdict
    field_name = lookup_field_for_json_key(o, json_key)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python311\Lib\site-packages\dataclass_wizard\loaders.py", line 705, in lookup_field_for_json_key
    raise e from None
dataclass_wizard.errors.UnknownJSONKey: A JSON key is missing from the dataclass schema for class `UploadResponse`.
  unknown key: 'archived'
  dataclass fields: ['hashed_id', 'id', 'name', 'type', 'description', 'account_id', 'created', 'updated', 'progress', 'thumbnail', 'duration', 'status']
  input JSON object: {"id": 102354918, "name": "RT Wire Lengths", "type": "Video", "archived": false, "created": "2023-03-17T15:35:37+00:00", "updated": "2023-03-17T15:35:37+00:00", "duration": 1199.032022, "hashed_id": "malb60y0o2", "description": "", "progress": 0.125, "status": "queued", "thumbnail": {"url": "https://embed-ssl.wistia.com/deliveries/a3b1fbd6df17258c467c27207d45a1c5.jpg?image_crop_resized=200x120&video_still_time=599", "width": 200, "height": 120}, "account_id": 392724}

Hi @KaneDM ! Thanks for opening this issue. In hindsight, I do agree that enabling raise_on_unknown_json_key by default might not have been the best way to go.
I will see if I am able to publish a new release (with the recommended changes) shortly. In the meantime, I recommend checking out the Contributing docs, as that also has info on how to contribute to the project and create a PR, in case this is of interest.
Else, I'll likely just open a PR shortly, after adding and testing out the recommended changes. By the way, I assume you are OK with being credited and/or mentioned in the changelog for the release notes?

BTW, I'll also need to look into adding (and testing) the same new fields to an identical project I've published in Rust, at rust-wistia. I'll do this when I have time, either this weekend or the next 🤞 .

@KaneDM success 🎉 ! This issue should be addressed as part of the v1.2.0 release. Please update the pinned dependency of the wystia library.
Here is the full diff:
https://github.com/rnag/wystia/compare/4944466...v1.2.0


Add specs for debug info output

Code originally taken from
https://github.com/waj/crystal/commit/da7e88b7a00f5b03e8bfb61f46716a00da052a00
and modified to compile with the current version and improve failure
messages.

Would be super cool to start running tests on debug output, could we get this PR updated?

I had forgotten this pull request. It's great! If someone can fix the failing tests, we should merge this!

This is a great low hanging fruit :open_mouth:

@sdogruyol I continuted this in #4718.


Updating to ray 2.5

Pull Request Description
What issue does this change request address?
Closes #2152
What are the significant changes in functionality due to this change request?
Updates to ray 2.5

For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.

[ ] 1. Review all computer code.
[ ] 2. If any changes occur to the input syntax, there must be an accompanying change to the user manual and xsd schema. If the input syntax change deprecates existing input files, a conversion script needs to be added (see Conversion Scripts).
[ ] 3. Make sure the Python code and commenting standards are respected (camelBack, etc.) - See on the wiki for details.
[ ] 4. Automated Tests should pass, including run_tests, pylint, manual building and xsd tests. If there are changes to Simulation.py or JobHandler.py the qsub tests must pass.
[ ] 5. If significant functionality is added, there must  be tests added to check this. Tests should cover all possible options.  Multiple short tests are preferred over one large test. If new development on the internal JobHandler parallel system is performed, a cluster test must be added setting, in  XML block, the node <internalParallel> to True.
[ ] 6. If the change modifies or adds a requirement or a requirement based test case, the Change Control Board's Chair or designee also needs to approve the change.  The requirements and the requirements test shall be in sync.
[ ] 7. The merge request must reference an issue.  If the issue is closed, the issue close checklist shall be done.
[ ] 8. If an analytic test is changed/added is the the analytic documentation updated/added?
[ ] 9. If any test used as a basis for documentation examples (currently found in raven/tests/framework/user_guide and raven/docs/workshop) have been changed, the associated documentation must be reviewed and assured the text matches the example.

Job Mingw Test on eb34f0e : invalidated by @joshua-cogliati-inl
FAILED: 61, but most seem to have been due to other issues.

Job Test qsubs sawtooth on eb34f0e : invalidated by @joshua-cogliati-inl
failed in set python environment

Changes are good. But I think we need to test it first for IES use cases before we can merge.
@joshua-cogliati-inl: Have you test it on IES use case? or do we have representative tests under raven? Will the new version of ray has similar performance for our use cases?

Yes, I should probably try it on an IES use case. (Ray 2.2 fails at it after a few hours, but it would be interesting to know if Ray 2.5 also fails, fails even worse, or runs it successfully) I marked it do not merge until this happens.

Ray has been updated to 2.6, so this is obsolete.


[bug-fix] Fix Cookbook struct

Match the RootFiles field to the right json map and add a new
CookbookAccess struct.
Closes https://github.com/go-chef/chef/issues/112
Signed-off-by: Salim Afiune<EMAIL_ADDRESS>

Hello there 👋  - I've got a quick bug fix for your convenience, I just recently added tests.

cc/ @MarkGibbons @spheromak

Hello there 👋  - I've got a quick bug fix for your convenience, I just recently added tests.

cc/ @MarkGibbons @spheromak

Tagged as v0.0.2


adds configs and file structure for serge usage by nyc.

Example NYC Config file
The file has some previously sensitive smartcat credentials but I have since rotated them so it will no longer work. Will move those over to environment variables. But the idea of this PR is to show the directory structure and give an idea of what the config file looks like for the demo.

This is a draft PR.. DO NOT MERGE
Needs to be cleaned up further removing creds etc, as well as requires docker config for serge. Its not straightforward to add it here so didn't put that in.

I would remove "nyc_" from the directory name. Adding non-NYC clients for this code is a long ways off, and we don't need to decide what is or isn't specific to NYC yet.

Closing the PR in favor of the basic template I have already merged in. Will address these comments as we build on this further and clean up the implementation to make it more production ready.

Sounds good!


openthread_border_router: Implement automatic flashing of Thread firm…

…ware

I'm also going to release a new version of the flasher in a bit with some bugfixes. Does this change require the flasher to support probing multiple baudrates per application type?

I'll combine this update with the update of the SiLabs Multiprotocol add-on. I'll move this add-on to the main add-on repository then as well.


Crop Image When Updating an Upload Collection Item

Link to reproduction
No response
Describe the Bug
When trying to crop and save an existing image, there's an error on save.
    at generateFileData (../node_modules/payload/src/uploads/generateFileData.ts:80:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async updateByID (../node_modules/payload/src/collections/operations/updateByID.ts:142:57)
    at async updateByIDHandler (../node_modules/payload/src/collections/requestHandlers/updateByID.ts:36:17)

It works with version 2.4.0. Breaks in 2.5.0
More specific error in generateFileData.ts:
TypeError: Invalid URL
    at new URL (node:internal/url:775:36)
    at parseURL (../node_modules/node-fetch/lib/index.js:1164:12)
    at new Request (../node_modules/node-fetch/lib/index.js:1210:17)
    at ../node_modules/node-fetch/lib/index.js:1449:19
    at new Promise (<anonymous>)
    at fetch (../node_modules/node-fetch/lib/index.js:1447:9)
    at getExternalFile (../node_modules/payload/src/uploads/getExternalFile.ts:17:23)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async generateFileData (../node_modules/payload/src/uploads/generateFileData.ts:76:17)
    at async updateByID (../node_modules/payload/src/collections/operations/updateByID.ts:142:57) {
  code: 'ERR_INVALID_URL',
  input: 'http://localhost:3000http://localhost:3000/media/stream.webp'
}

The Url input seams broken.
To Reproduce
Upload Image
Save
Edit the Image
Crop it
Save it
Payload Version
2.7.0
Adapters and Plugins
No response

I've encountered the same issue after updating to 2.5.0 and higher

It looks like this is some sort of caching issue possibly. I run through the steps in this video, and it does appear to crop the image. However, it does not appear cropped until a full refresh of the page is done.
Recreated with pnpm dev uploads in the monorepo on v2.11.2
@Leere77 or @glettl , are either of you able to see if this is page reload issue or if the image is in-fact not being cropped?
https://github.com/payloadcms/payload/assets/65888/c55e1aa2-d3d6-4c3a-b8fc-0f8c19abc7a2

Hey @glettl - we've recently been making some updates to Uploads - can you update your project to the latest version of Payload (2.24.1) and let me know if you are still experiencing the issues above?

Hey @PatrikKozak, we are currently running 2.23.1 behind a reverse proxy and we don't have any issues.
I can't update to 2.24.1 right now.


Web - FAB container View is not round, which leads to some bugs

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Just hover beside the corners of the FAB
Try to make a room shown  behind the FAB

Expected Result:
Hovering beside the corners of the FAB shouldn't affect the FAB (showing the hover text label above the FAB).

Should be able to click on the room behind the FAB

Actual Result:
Hovering beside the corners of the FAB and not on the FAB itself shows the hover text label, and the user can't click on the room behind the FAB
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.3.39-11
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screencast from 13-07-23 17_53_32.webm
Expensify/Expensify Issue URL:
Issue reported by: @Ahmed-Abdella
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689288097851609
View all open jobs on GitHub

Proposal
Please re-state the problem that we are trying to solve in this issue.
The FAB container is not round, which leads to some bugs
What is the root cause of that problem?
The View contains the FAB has no border-radius, and it has the hover but not the click effects. So there are some spaces around the corners of the FAB which are hoverable and show the (hover text above FAB) because they are part of the FAB container. And now the user can't click on the room row behind it
What changes do you think we should make in order to solve the problem?
We should give The FAB container View a border-radius. to match the FAB border-radius. By doing that there will not be any additional space beside the corners of the FAB
What alternative solutions did you explore? (Optional)
N/A

Proposal
Please re-state the problem that we are trying to solve in this issue.
FAB container view is not round.
What is the root cause of that problem?
This is the FAB button.
https://github.com/Expensify/App/blob/ca8d279bec94f785e8247a7bdb8d3c62bcf5e126/src/components/FloatingActionButton.js#L75-L96
styles.floatingActionButtonContainer doesn't contain borderRadius style. So the tooltip component shows the tooltip when mouse enters the rectangle area, not the circle area. This is the 1st cause.
Although we add the borderRadius: '50%' style to the FAB container, if the child elements has rectangle area, hover and click doesn't work as expected.
We have AnimatedPressable component as a child and AnimatedPressable component is an animated PressableWithFeedback component.
https://github.com/Expensify/App/blob/ca8d279bec94f785e8247a7bdb8d3c62bcf5e126/src/components/FloatingActionButton.js#L16
We have styles.floatingActionButton containing borderRadius style, but taking a look inside the PressableWithFeedback component, we can notice that it has an OpacityView wrapper. We didn't add wrapper style to the AnimatedPressable component.
This is the 2nd cause
What changes do you think we should make in order to solve the problem?
We need to add borderRadius: '50%' style to both FAB container and AnimatedPressable wrapper.

Add the following line in floatingActionButtonContainer style

        borderRadius: '50%',

Add the wrapperStyle props to AnimatedPressable element

        wrapperStyle={{borderRadius: '50%'}}

This works perfect.

Result

What alternative solutions did you explore? (Optional)

I don't think this is a bug? I would expect the tooltip to persist when moving around the FAB, this does not feel like unexpected behavior.


As as developer, I want to find issues on a profile page so I can decide what to work on.

Use GitHub API to display a list of issues on a profile page in Work with Us section. Include labels for skills, $1000, help wanted.
Approach:
Use GitHub API to display issues with labelled information on profile page.
DOD
Issues (hyperlinked) and labels including skills displayed in Work with Us section on Profile Page.
Connect with Rommel, Loren

Adding this to Sprint 16 as it is closely related to the "global issue list"


Create simat.txt

@philipto review and please merge branch

@Rana-Saud First stage of verification passed, official domain for Sindh Institute of Management & Technology (SIMT) is simat.edu.pk as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@Rana-Saud Thank you for your patience while waiting for a review and processing your request. Pull request merged.
Please start requesting the licenses in about an hour, to let the changes to propagate through our system.

@philipto thanks a lot

@philipto  please tell me what is the next step?


Enhance interface class and LinuxInterface

Detect interface connected state of a network cable/connector or not
Get MTU on the interface
Add python docstring into interface class

Signed-off-by: Phil Huang<EMAIL_ADDRESS>

Hi @philpep  Please review it.

Hi @philpep  Could you please review this change? Thanks~

HI @philpep Come back again. Could you please review?


[IR] Implement methods to check dynamism on Shape

Define is_static() and is_dynamic() on Shape. Users can check if the shape is static/dynamic, or if a specific axis is static/dynamic.
Fixes https://github.com/microsoft/onnxscript/issues/1950

Do you think a method return whether the Shape is static or not would be another useful method? (When users do not want to go through all dims one by one.)

Sure! Basically we can make shape.is_static() return this info

Do you think a method return whether the Shape is static or not would be another useful method? (When users do not want to go through all dims one by one.)

Sure! Basically we can make shape.is_static() return this info

Done


Pause and resume training

Training can take a very long time. Is there a way to pause the process and perhaps resuming it to give the personal computer a break?

Found the kill -STOP/CONT command

Yeah, that'll stop the training, although we don't currently have a way to resume. We do have some requests for that, e.g. for object detection: #574


Parameterizes the data-pipeline module

The primary objective of this PR is to parameterize the data-pipeline module. Previously, every node pool was statically defined in the module. With this change, the module now defines a new variable named node_pool, which can have a variable number of elements with variable node pool attributes. This allow the the actual TF resource definitions to be very clean and simple to read, while also putting all configuration information into a central, easily editable and readable place. In one sense, this change takes complexity and verbosity out of the TF resources definitions and moves it to the variable assignments. The other benefit of this change is that this module now becomes usable in the mlab-autojoin project, which needs a data-pipeline cluster, but only the "processor" node pool.
There are two other small, unrelated changes in this PR:

Updates boot disk images for sandbox VMs.
Updates the tf_apply.sh script to include two missing targets when applying changes to regular, standalone VMs.

This change is

@stephen-soltesz: FYI


Sao Paolo GP Telemetry Issue

I tried taking a look at the data as usual, 30 minutes after the end of the session like the other times, but i received an error. The program does not give me the data from FP1 in Interlagos, but from FP1 in Bahrain.
I'm not the only one facing these issues; just wanted to reach out to the developer/s so this can be fixed, if possible

Hi, sorry for the inconvenience. For some reason, the official name of the GP is "São Paulo Grand Prix" this year and not "Brazilian Grand Prix". The online database from which I'm pulling the GP names does not have the correct name, though. Therefore, FastF1 cannot generate the correct API path for downloading the data.
Until the database has been updated (I can't do that but I have notified them) you need to use the workaround below to load any session for this weekend.
Even after the database has been updated, it'll only work without the workaround once you have deleted the file "fastf1_http_cache.sqlite" from your cache directory.
import fastf1

weekend = fastf1.get_session(2021, 'Brazil')
weekend.data['raceName'] = "São Paulo Grand Prix"
session = fastf1.core.Session(weekend, 'Practice 1')
session.load_laps()

Valid names to use for the session name for this weekend are:
'Practice 1', 'Qualifying', 'Practice 2', 'Sprint Qualifying', 'Race'

Hi, sorry for the inconvenience. For some reason, the official name of the GP is "São Paulo Grand Prix" this year and not "Brazilian Grand Prix". The online database from which I'm pulling the GP names does not have the correct name, though. Therefore, FastF1 cannot generate the correct API path for downloading the data.
Until the database has been updated (I can't do that but I have notified them) you need to use the workaround below to load any session for this weekend. Even after the database has been updated, it'll only work without the workaround once you have deleted the file "fastf1_http_cache.sqlite" from your cache directory.
import fastf1

weekend = fastf1.get_session(2021, 'Brazil')
weekend.data['raceName'] = "São Paulo Grand Prix"
session = fastf1.core.Session(weekend, 'Practice 1')
session.load_laps()

Valid names to use for the session name for this weekend are:
'Practice 1', 'Qualifying', 'Practice 2', 'Sprint Qualifying', 'Race'

Thank you. Have a nice evening

The database has been updated already. That was quick. The workaround is therefore not necessary any more.
If you still have issues, please delete "fastf1_http_cache.sqlite" from your cache directory and try again.

now it's loading data from FP1 even when i insert "session = ff1.core.Session(weekend, 'Qualifying')"

That's a bit weird. It's not happening for me when I try it. May be try deleting the cache folder for this weekend and try again. But I'm not sure how this would be caused.
Also, you can just use the "normal" method again.

I can't access the data for qualifying yet, I get the usual error message for when the data doesn't exist: "SessionNotAvailableError: No data for this session! Are you sure this session wasn't cancelled?"
Is that just because the database isn't updated yet and I need to be patient?

still not working. i don't know what it is at this point, it's not even giving me the FP1 data now it just goes blank

The database was updated already. Please remember to delete the "fastf1_http_cache.sqlite" from your cache directory
This code works fine for me
import matplotlib.pyplot as plt

import fastf1
from fastf1 import plotting

plotting.setup_mpl()
fastf1.Cache.enable_cache('tmp_cache')

session = fastf1.get_session(2021, 'Brazil', 'Q')
laps = session.load_laps(with_telemetry=True)

ham = laps.pick_driver('HAM').pick_fastest().get_car_data().add_distance()
ver = laps.pick_driver('VER').pick_fastest().get_car_data().add_distance()

plt.plot(ver['Distance'], ver['Speed'], color=plotting.team_color('RBR'))
plt.plot(ham['Distance'], ham['Speed'], color=plotting.team_color('MER'))
plt.show()

If it does not work for you, try to run with no cache. If that fixes it, it's a caching issue.

The database was updated already. Please remember to delete the "fastf1_http_cache.sqlite" from your cache directory
This code works fine for me
import matplotlib.pyplot as plt

import fastf1
from fastf1 import plotting

plotting.setup_mpl()
fastf1.Cache.enable_cache('tmp_cache')

session = fastf1.get_session(2021, 'Brazil', 'Q')
laps = session.load_laps(with_telemetry=True)

ham = laps.pick_driver('HAM').pick_fastest().get_car_data().add_distance()
ver = laps.pick_driver('VER').pick_fastest().get_car_data().add_distance()

plt.plot(ver['Distance'], ver['Speed'], color=plotting.team_color('RBR'))
plt.plot(ham['Distance'], ham['Speed'], color=plotting.team_color('MER'))
plt.show()

If it does not work for you, try to run with no cache. If that fixes it, it's a caching issue.

Sadly, I just get hit with "SessionNotAvailableError". I've deleted that cache file and I've tried running it with no cache too.

Can you post a minimal snippet of code that does not run for you?

The database was updated already. Please remember to delete the "fastf1_http_cache.sqlite" from your cache directory
This code works fine for me
import matplotlib.pyplot as plt

import fastf1
from fastf1 import plotting

plotting.setup_mpl()
fastf1.Cache.enable_cache('tmp_cache')

session = fastf1.get_session(2021, 'Brazil', 'Q')
laps = session.load_laps(with_telemetry=True)

ham = laps.pick_driver('HAM').pick_fastest().get_car_data().add_distance()
ver = laps.pick_driver('VER').pick_fastest().get_car_data().add_distance()

plt.plot(ver['Distance'], ver['Speed'], color=plotting.team_color('RBR'))
plt.plot(ham['Distance'], ham['Speed'], color=plotting.team_color('MER'))
plt.show()

If it does not work for you, try to run with no cache. If that fixes it, it's a caching issue.

still doesn't work for me. tried running without cache, eliminating "fastf1_http_cache.sqlite", and running different codes but nothing to do unfortunately

I've now tried it in a new clean python environment, and it works as expected. I don't know what it is if it's not a caching issue on your side. But it's at least two people now where it's not working.
Can you send me the full output of our script please?

import fastf1 as ff1
from fastf1 import plotting
from matplotlib import pyplot as plt
plotting.setup_mpl()
ff1.Cache.enable_cache(r"C:\Users\Dropbox\MyPC\Desktop\cache")
weekend = ff1.get_session(2021, 'Brazil')
weekend.data['raceName'] = "São Paulo Grand Prix"
session = ff1.core.Session(weekend, 'Q')
laps = session.load_laps(with_telemetry=True)
laps_ham = laps.pick_driver('HAM')
laps_ver = laps.pick_driver('VER')
fastest_ham = laps_ham.pick_fastest()
fastest_ver = laps_ver.pick_fastest()
telemetry_ham = fastest_ham.get_car_data().add_distance()
telemetry_ver = fastest_ver.get_car_data().add_distance()
fig, ax = plt.subplots()
fig.suptitle("Sao Paolo GP | Qualifying Telemetry")
ax.plot(telemetry_ham['Distance'], telemetry_ham['Speed'], label='HAM', color='cyan')
ax.plot(telemetry_ver['Distance'], telemetry_ver['Speed'], label='VER', color='blue')
ax.set(xlabel='Distance')
ax.set(ylabel='Speed')
ax.legend(loc="lower right")
plt.show()
this is the code i'm running at the moment. this is the result when i run it in python:

You're using FastF1 v2.1.8! You absolutely need the latest version because of the changed schedule of the sprint qualifying weekend. See the notes at the top of the readme file. You might need to delete the cache file again after updating.
I'm sorry for these inconveniences, but I just haven't had time to fix the sprint schedule problems universally. That means, the latest version is currently often required because I need to include patches for these specific weekends

ahh that's why. thanks for your help. i'll try to install the latest version and i'll get back to you

I wasn't using the latest version either, apologies for that. I'm struggling to update to v2.1.11 though. When I re-run pip install fastf1 I only get v2.1.9

I wasn't using the latest version either, apologies for that. I'm struggling to update to v2.1.11 though. When I re-run pip install fastf1 I only get v2.1.9

You need to use pip install --upgrade fastf1

it's all good now! thanks for the help again


Issues when running transfer_learn()

I am trying to fine-tune peptdeep using the function transfer_learn(). I am using the example given here. Of course I have changed the paths to sm and psm files. I have also changed mgr_settings['transfer']['psm_type'] to 'maxquant' and mgr_settings['transfer']['ms_file_type'] to 'thermo'. When I run transfer_learn() I face the following two issues. Could you please help me with these?

If the name of the raw file, given in the 'maxquant' file 'evidence.txt', contains uppercase letters, the program does not read the raw file at all and crashes with the following error message:

Traceback (most recent call last):
File "/gpfs/gsfs9/users/qmbp_ms/Mehdi/alphapeptdeep/peptdeep/pipeline_api.py", line 205, in transfer_learn
psm_df, frag_df = match_psms()
File "/gpfs/gsfs9/users/qmbp_ms/Mehdi/alphapeptdeep/peptdeep/pipeline_api.py", line 133, in match_psms
return concat_precursor_fragment_dataframes(
File "/gpfs/gsfs9/users/qmbp_ms/Mehdi/conda/envs/alpha/lib/python3.8/site-packages/alphabase/peptide/fragment.py", line 367, in concat_precursor_fragment_dataframes
pd.concat(precursor_df_list, ignore_index=True),
File "/gpfs/gsfs9/users/qmbp_ms/Mehdi/conda/envs/alpha/lib/python3.8/site-packages/pandas/util/_decorators.py", line 331, in wrapper
return func(*args, **kwargs)
File "/gpfs/gsfs9/users/qmbp_ms/Mehdi/conda/envs/alpha/lib/python3.8/site-packages/pandas/core/reshape/concat.py", line 368, in concat
op = _Concatenator(
File "/gpfs/gsfs9/users/qmbp_ms/Mehdi/conda/envs/alpha/lib/python3.8/site-packages/pandas/core/reshape/concat.py", line 425, in init
raise ValueError("No objects to concatenate")
ValueError: No objects to concatenate

I was able to work around the previous issue by changing the names of the raw files in the maxquant file to lowercase. But then I faced another error message. It seems that GetMSOrderForScanNum() requires a standard integer as an input, but it is getting numpy int64. Here is the error message:

Python.Runtime.PythonException: an integer is required
The above exception was the direct cause of the following exception:
System.ArgumentException: an integer is required in method ThermoFisher.CommonCore.Data.Interfaces.IScanEvent GetScanEventForScanNumber(Int32) ---> Python.Runtime.PythonException: an integer is required
--- End of inner exception stack trace ---
The above exception was the direct cause of the following exception:
System.AggregateException: One or more errors occurred. (an integer is required in method ThermoFisher.CommonCore.Data.Interfaces.IScanEvent GetScanEventForScanNumber(Int32)) ---> System.ArgumentException: an integer is required in method ThermoFisher.CommonCore.Data.Interfaces.IScanEvent GetScanEventForScanNumber(Int32) ---> Python.Runtime.PythonException: an integer is required
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.ArgumentException: an integer is required in method ThermoFisher.CommonCore.Data.Interfaces.IScanEvent GetScanEventForScanNumber(Int32) ---> Python.Runtime.PythonException: an integer is required
--- End of inner exception stack trace ---<---
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/gpfs/gsfs9/users/qmbp_ms/Mehdi/alphapeptdeep/peptdeep/pipeline_api.py", line 205, in transfer_learn
psm_df, frag_df = match_psms()
File "/gpfs/gsfs9/users/qmbp_ms/Mehdi/alphapeptdeep/peptdeep/pipeline_api.py", line 122, in match_psms
) = match_one_raw(
File "/gpfs/gsfs9/users/qmbp_ms/Mehdi/alphapeptdeep/peptdeep/rescore/feature_extractor.py", line 41, in match_one_raw
) = match.match_ms2_one_raw(
File "/gpfs/gsfs9/users/qmbp_ms/Mehdi/alphapeptdeep/peptdeep/mass_spec/match.py", line 282, in match_ms2_one_raw
ms2_reader.load(ms2_file)
File "/gpfs/gsfs9/users/qmbp_ms/Mehdi/alphapeptdeep/peptdeep/mass_spec/ms_reader.py", line 335, in load
ms_order = rawfile.GetMSOrderForScanNum(i)
File "/gpfs/gsfs9/users/qmbp_ms/Mehdi/alphapeptdeep/peptdeep/legacy/thermo_raw/pyrawfilereader.py", line 487, in GetMSOrderForScanNum
return IScanEventBase(self.source.GetScanEventForScanNumber(scanNumber)).MSOrder
TypeError: No method matches given arguments for IRawDataPlus.GetScanEventForScanNumber: (<class 'numpy.int64'>)
Best regards,
Mehdi

This is indeed a bug. We are developing a better RAW reader that may fix this issue.
If you search the DDA data with MaxQuant and generate a spectral library by some other tools, you can then do transfer learning on spec lib file without requiring RAW files.

Thank you very much for the prompt response. Could you please explain a lit bit more? What format should the file (spectral library) have and also how does transfer_learn() accesses the file?

General TSV spectral library generated by for example Spectronaut or MSFragger is supported


adding tests for TopicNames util

Proposed Changes

adding tests for the util
removing the usage of the "old" API from knative.dev/eventing/ repo

See also a related PR to entirely delete :fire: the unused util over there! :tada:
/assign @nachocano

once this is in, I will update #555 to remove "old" code for kafka!

/lgtm
/approve

@matzew sorry I missed this one, I've been pretty busy the last few days.
Glad that @vaikas-google took care of reviewing!


When I run train.py,it shows "TypeError: Can't convert 'NoneType' object to str implicitly".

I have configured MPE and MADDPG, but some errors occurred while I was running train.py.(python train.py --scenario simple)
I can see the results of the program.
steps: 1374975, episodes: 55000, mean episode reward: -6.977302725370943, time: 14.844
steps: 1399975, episodes: 56000, mean episode reward: -6.743868053210359, time: 14.563
steps: 1424975, episodes: 57000, mean episode reward: -6.622564807563306, time: 14.43
steps: 1449975, episodes: 58000, mean episode reward: -6.21897592491655, time: 14.479
steps: 1474975, episodes: 59000, mean episode reward: -6.874195291324205, time: 14.642
steps: 1499975, episodes: 60000, mean episode reward: -6.769229165363719, time: 14.58
Traceback (most recent call last):
File "train.py", line 195, in
train(arglist)
File "train.py", line 184, in train
rew_file_name = arglist.plots_dir + arglist.exp_name + '_rewards.pkl'
TypeError: Can't convert 'NoneType' object to str implicitly
I don't know where the problem is.
Look forward to your reply! Thanks!

because "--exp-name: name of the experiment, used as the file name to save all results (default: None)",and the code is ' parser.add_argument("--exp-name", type=str, default=None, help="name of the experiment")'

you could change the default value of arglist.exp_name,or delete 'arglist.exp_name + '

I also had the problem. You have to decide where you want to save results in ' parse_args' method because default setting is none.

how do you determine the location of the saved results?i always wrong

how do you determine the location of the saved results?

I solved it by chang "    parser.add_argument("--exp-name", type=str, default=None, help="name of the experiment")" to "    parser.add_argument("--exp-name", type=str, default="XXX", help="name of the experiment")"


address comments + issues from last week and make progress on model training

Having trouble thinking through how to allow for the optional command line parameter 'stemming=False'. Need to share this variable with different functions. Perhaps I set up my functions in a sub-optimal way?

how to allow for the optional command line parameter 'stemming=False'.

I do not see any function with stemming=False only with True as the default.  But regardless of that - if you are to use e.g. argparse, you would just add an option with a default value (e.g., False) which you will feed into your function(s). So instead of just topics = [int(sys.argv[1])] use argparse to parse your args.  See e.g. https://github.com/nipy/nibabel/blob/master/nibabel/cmdline/ls.py#L158 on how it could be done -- args here is your sys.argv, get_opt_parser defines the parser, which you provide with those cmdline specifications and you would get yourself (opts, models) (I changed "files" to "models" for you ;)), and then you pass opts.stemming to the functions where it relates.


River Generation

[x] Auto-generate rivers
[x] User should be able to hand-draw rivers again
[x] Allow for click-and-generate rivers/lakes

mostly done, but there's a bug with the river tributary system that's very much so back-burner


the-powder-toy: 98.2.365 -> 99.0.377

Changes: https://github.com/The-Powder-Toy/The-Powder-Toy/releases/tag/v99.0.377

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 369313

x86_64-linux

:fast_forward: 5 packages marked as broken and skipped:

gnuk
kdePackages.umbrello
kdePackages.umbrello.debug
kdePackages.umbrello.dev
kdePackages.umbrello.devtools

:fast_forward: 1 package blacklisted:

nixos-install-tools

:x: 16 packages failed to build:

affine
ananicy
clatd
ikiwiki-full
libretranslate (python312Packages.libretranslate)
libretranslate.dist (python312Packages.libretranslate.dist)
looking-glass-client
nanoboyadvance
python312Packages.ltpycld2
python312Packages.ltpycld2.dist
python313Packages.ltpycld2
python313Packages.ltpycld2.dist
schedtool
spike
tayga
weylus

:white_check_mark: 88 packages built:

anydesk
apacheHttpdPackages.subversion
apacheHttpdPackages.subversion.dev
apacheHttpdPackages.subversion.man
armTrustedFirmwareTools
biboumi
bonsai
cabal2nix
circt
circt.dev
circt.lib
dnsdbq
easytier
exo
exo.dist
fusee-launcher
gdu
git-doc (git-doc.debug ,git-doc.doc ,gitFull.doc)
gitFull
gitFull.debug
gitSVN
gitSVN.debug
gitSVN.doc
hareThirdParty.hare-ev
hydra
hydra.doc
kdePackages.kdev-php
kdePackages.kdev-php.debug
kdePackages.kdev-php.dev
kdePackages.kdev-php.devtools
kdePackages.kdev-python
kdePackages.kdev-python.debug
kdePackages.kdev-python.dev
kdePackages.kdev-python.devtools
kdePackages.kdevelop
kdePackages.kdevelop.debug
kdePackages.kdevelop.dev
kdePackages.kdevelop.devtools
kdesvn
klipper-firmware
klipper-flash
lazyjournal
lgogdownloader
livekit-libwebrtc
luarocks-packages-updater
luarocks-packages-updater.dist
mangojuice
nitrokey-trng-rs232-firmware
nix-prefetch-scripts
nix-prefetch-svn
nix-update-source
nix-update-source.dist
obs-do
opencomposite
owmods-cli
patroni
patroni.dist
perl538Packages.SVNSimple
perl538Packages.SVNSimple.devdoc
perl540Packages.SVNSimple
perl540Packages.SVNSimple.devdoc
pkgsite
python312Packages.pysvn
ydiff (python312Packages.ydiff)
ydiff.dist (python312Packages.ydiff.dist)
python313Packages.pysvn
python313Packages.ydiff
python313Packages.ydiff.dist
qmk
qmk.dist
rapidsvn
simavr
slackdump
subversion
subversion.dev
subversion.man
subversionClient
subversionClient.dev
subversionClient.man
svn-all-fast-export
svn2git
svnfs
thcrap-steam-proton-wrapper
the-powder-toy
vcstool
vcstool.dist
wp4nix
zed-editor

@lucasew , can you have a look at why nixpkgs-review reports completely unrelated build failures (and successes) for you? the-powder-toy is a leaf package.

@lucasew , can you have a look at why nixpkgs-review reports completely unrelated build failures (and successes) for you? the-powder-toy is a leaf package.

Can ZFS cause this?

Trying to run in another machine to see if I can reproduce.
Both are running the nixpkgs-review from the nixpkgs flake.
https://github.com/lucasew/nixcfg/actions/runs/12561592809

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 369313

x86_64-linux

:white_check_mark: 1 package built:

the-powder-toy

@lucasew , can you have a look at why nixpkgs-review reports completely unrelated build failures (and successes) for you? the-powder-toy is a leaf package.

Can ZFS cause this?

I would say: unlikely.

Trying to run in another machine to see if I can reproduce.
Both are running the nixpkgs-review from the nixpkgs flake.
https://github.com/lucasew/nixcfg/actions/runs/12561592809

At least in the past nixpkgs-review stored quite a bit of state in ~/.cache/nixpkgs-review. I wonder if your setup somehow manages to use the same cache dir for different parallel reviews.

I removed all the nixpkgs worktrees in cache
I didn't run them in parallel. It runs in a queue


[Regression] ObjectDisposedException occurs when Node.Connect() is invoked

Godot version:
master / 4326fd5a7
OS/device including version:
Manjaro Linux 18.0.4
Issue description:
I wanted to see if there is any last minute regression before 3.1 stable gets released, so I updated from 8b231b9, and now the project fails to launch with the following error:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'AlleyCat.Common.NodeStore`1[[AlleyCat.Autowire.AutowireContext, AlleyCat, Version=0.1.7011.21746, Culture=neutral, PublicKeyToken=null]]'.
  at Godot.Object.GetPtr (Godot.Object instance) [0x00011] in /home/fender/.local/share/godot/mono/solutions/14809629407524565018_7_1552443793/GodotSharp/Core/Object.base.cs:37
  at Godot.Object.Connect (System.String signal, Godot.Object target, System.String method, Godot.Collections.Array binds, System.Int32 flags) [0x0000e] in /home/fender/.local/share/godot/mono/solutions/14809629407524565018_7_1552443793/GodotSharp/ObjectType/Object.cs:439
  at AlleyCat.Common.NodeStore`1+<>c__DisplayClass3_0[T].<Get>b__0 () [0x00093] in /home/fender/workspace/AlleyCat/Source/AlleyCat/Common/NodeStore.cs:41
  at LanguageExt.ClassInstances.MOption`1[A].Match[B] (LanguageExt.Option`1[A] opt, System.Func`2[T,TResult] Some, System.Func`1[TResult] None) [0x00025] in <0372748aca1c4e1fb990e7f1c4ef4a90>:0
  at LanguageExt.Optional.ifNone[OPT,OA,A] (OA opt, System.Func`1[TResult] None) [0x00000] in <0372748aca1c4e1fb990e7f1c4ef4a90>:0
  at LanguageExt.Option`1[A].IfNone (System.Func`1[TResult] None) [0x00000] in <0372748aca1c4e1fb990e7f1c4ef4a90>:0
  at AlleyCat.Common.NodeStore`1[T].Get (Godot.Node node, System.Func`2[T,TResult] factory) [0x0001b] in /home/fender/workspace/AlleyCat/Source/AlleyCat/Common/NodeStore.cs:32
  at AlleyCat.Autowire.AutowireContext.GetOrCreate (Godot.Node node) [0x0000d] in /home/fender/workspace/AlleyCat/Source/AlleyCat/Autowire/AutowireContext.cs:256
  at AlleyCat.Autowire.NodeExtensions.GetAutowireContext (Godot.Node node) [0x0003e] in /home/fender/workspace/AlleyCat/Source/AlleyCat/Autowire/NodeExtensions.cs:38
  at AlleyCat.Autowire.NodeExtensions.Autowire (Godot.Node node, LanguageExt.Option`1[A] context, System.Boolean abortOnError) [0x0000e] in /home/fender/workspace/AlleyCat/Source/AlleyCat/Autowire/NodeExtensions.cs:51
  at AlleyCat.Autowire.NodeExtensions.Autowire (Godot.Node node, System.Boolean abortOnError) [0x00000] in /home/fender/workspace/AlleyCat/Source/AlleyCat/Autowire/NodeExtensions.cs:47
  at AlleyCat.Autowire.AutowiredNode._Ready () [0x00008] in /home/fender/workspace/AlleyCat/Source/AlleyCat/Autowire/AutowiredNode.cs:12

The problematic code is as below:
public T Get(Node node, Func<Node, T> factory) => Find(node).IfNone(() =>
{
    Ensure.That(factory, nameof(factory)).IsNotNull();

    var data = factory(node);

    Debug.Assert(data != null, "data != null");

    // Object.IsInstanceValid(node) returns true, if printed here.
    // And an ObjectDisposedExcetion is thrown at the below line:
    node.Connect("tree_exited", this, nameof(OnNodeExited), new Array {node});

    _store.Add(node.GetInstanceId(), data);

    return data;
});

I can't do much without an example project.

Looking at this it suggests it's the object you pass as second parameter to Connect, this, that was disposed.

@neikeq As I wrote in the comment, Object.IsInstanceValid(node) returns true before that line. And is it possible that this gets disposed at the time of one of its method is being invoked?

And as far as I know, the only place that explicitly dispose this(NodeStore) is from an auto loaded singleton, i.e. Bootstrap.

The exception message says the disposed object is of type NodeStore, so it has to be that one.

By the way, NodeStore is a singleton (not in Godot's term, but in general) which is created from a static initializer block from another auto loaded node:
private static readonly NodeStore<AutowireContext> Store = new NodeStore<AutowireContext>();

Could it affect the problem? Is there any limitations, or rules regarding such a usage? (The same code worked before the update, though)

I can't tell much with what I know about the project so I will have to try running it tomorrow. If you could bisect the commit that introduced the regression, that would be great.

I'll also try to dig deeper after I finish my work today. Thanks!

I haven't been able to bisect yet, but I spend sometime to debug the issue a bit. And it appears for some reason, Bootstrap.Dispose(true) is called which happens its _Ready() is invoked.
Bootstrap is a class that is the first entry in my auto load list, and when I put a breakpoint to identify the call stack, it did not show much information except that it's called from its parent class, Object.Dispose(), which may indicate that the native side is invoking that method prematurely for some reason.

Could it be that a temporary instance of Bootstrap is being created gor updating exports, and when disposing this instance you're disposing the singletons?

If that behaviour was introduced recently, then I think it all makes sense. By the way, I'm currently bisecting another blocker issue for my project, but if it'll help I'll try to do it for this issue tomorrow.


BIO_s_connect: add an error state and use it

If no connection could be made, addr_iter will eventually end up being
NULL, and if the user didn't check the returned error value, the
BIO_CONN_S_CONNECT code will be performed again and will crash.
So instead, we add a state BIO_CONN_S_CONNECT_ERROR that we enter into
when we run out of addresses to try.  That state will just simply say
"error" back, until the user does something better with the BIO, such
as free it or reset it.

Thank you @t-j-h for helping to uncover this.
I'm unsure if this is applicable on 1.0.2 as well...

I don't think you should add the BIOerr on each call where the state is set to the error condition - the error should only be added when you first hit that state. Otherwise each time through another error gets added to the stack.

Well, err, yeah.  So each time the user keeps calling BIO_read() and it returns 0, there's that same error again.  We cannot know if the user cleared the error stack before (or well, we can find out...).
Of course, we can always check if the error is already there, would that be satisfactory enough?

I made a small alteration to the logic.  It's pointless to have two spots where the same error is generated when we can avoid it, don't you think?

Ping?

Ping?

There is an outstanding issue that prevents my approval of this. But since I disagree with @t-j-h on this I won't object if other approvals are achieved.

Ok, so let's think about that case for a minute.  The only raison d'être for that check is to protect the badly written application from getting an error stack filled with only that error (i.e. making other errors there fall off the edge, 'cause remember that this stack is of limited size...  20 slots).
A saner application that clears the error stack after checking for other errors, even if it just happens to miss checking on a BIO_read() will not have that same issue, a new error will be generated.
So I'm not sure why it would be interesting to fill up anyone's error stack with just that error...

The same argument could be applied to any error that we generate - so should we have a similar test added every where else we add an error to the error stack? It doesn't make any sense to me to do that, nor does it make any sense to special case this one.

Rebased on top of master, and reverted the check-top-error-before-adding-error thing.

Rebased on fresh master.
Please settle the disagreement, @mattcaswell and @t-j-h.  I can go whichever way.

Merged.
181f5185ee750291c15c4e83fd315c46a07a9aa3 BIO_s_connect: add an error state and use it

Unfortunately, because so much has changed in master re error reporting, the cherry-pick wasn't clean enough for my taste.  Separate 1.1.1 backport PR coming up!

#10333


Can sensitive information be saved in req.session.user cookie?

Hello,
Can information be securely stored in req.session.user for example in the login script? For example would it be acceptable to store a user's name, email, password, userid, etc.? Or could this information ever be maliciously accessed? How can I authenticate if they're really logged in? Could they ever manually set this information? Do I need to setup a tokening system?
Trying to understand this simplified API example.
Thanks!

If you're asking whether your session contents can be read by the client, then no - not in your case. Basically you have to look at what session store you're using, if it's an internal database/file or server memory, then session contents are not accessible to the client, unless you intentionally expose them. If you're using a cookie-based session store, then watch out, because it means that your session with all of its content is passed to the client in a cookie, which is typically signed with a secret key that prevents modification, but more often than not is just base64-encoded rather than encrypted.
This does not mean, however, that a server-side session is 100% secure. If the client discovers someone's session ID (that is usually passed via cookie or a query string), then he can hijack that user's session, unless additional countermeasures are in place.

@krukid Thank you for the response! I mean in the current setup on react-redux-universal-hot-example example API, for example here. This is a server-side session, right? So it's safe except for hijacking? Where can I learn more about how to avoid hijacking?

To understand what happens with the session in RRUHE, the key lines you want to look at are:
https://github.com/erikras/react-redux-universal-hot-example/blob/master/package.json#L27
where we see that we actually start up two separate servers for the app and the API (no shared memory)
https://github.com/erikras/react-redux-universal-hot-example/blob/master/src/server.js#L25
where the proxy is set up to forward requests from the app server to API server
https://github.com/erikras/react-redux-universal-hot-example/blob/master/api/api.js#L2
https://github.com/erikras/react-redux-universal-hot-example/blob/master/api/api.js#L19-L24
where we require the session management package for express.js and configure the session middleware
and finally read the docs of the package to see what that configuration means:
https://github.com/expressjs/session
Putting all of the above together, you'll see that we're setting up a memory-based session store in our API server that is attached to the client via a cookie-based session ID. Initial request received from the client (browser) is handled by the app server that proxies any /api requests to that backend API server (that should only be accessible by the app server to avoid any direct attacks), along with the session ID cookie that allows it to get or set in-memory session data for the client. So, without any other means to access that memory except your own application logic, the client will not be able to read the session's contents and it's safe to write any secret values to it.
That said, you should avoid propagating sensitive data across different parts of your system to reduce the number of attack vectors. Consider using tokens and IDs instead of actual passwords, credit card numbers, etc wherever possible.
I'm sorry to say that I can't really recommend any specific sources for learning about Web security, since most of what I know I learned from practice, stackoverflow.com and, more generally, google.
As for session hijacking countermeasures: use HTTPS, make sure your session IDs aren't easily forged, track invalid session IDs and ban requests from IPs that use them, be creative and use common sense :)

@krukid Thanks so much for your detailed response, very helpful. What packages would you recommend for creating tokens that can be saved in the in-memory session data when the user logs-in (instead of passwords, as you suggested)? Thanks again!

@leopoldjoy I'm reluctant to encourage bad design here, but since I'm not familiar with your project and for the sake of example rather than anything else, you could just store a hash of your password inside the session, which is enough to keep the actual passwords isolated (see https://crackstation.net/hashing-security.htm). More generally, to generate temporary access tokens you can also use hashing (just make sure you know and understand your hash collision probabilities), built-in node crypto utils (https://nodejs.org/api/crypto.html#crypto_crypto_randombytes_size_callback) or use something more heavy-handed, like https://www.npmjs.com/package/uuid

@krukid Thanks for your responses. I have a few remaining questions:

Is it recommended to overwrite the default genid function here. In the express-session documentation it states that:
The default value is a function which uses the uid-safe library to generate IDs.

Can I leave this? Or should I try to create a unique hash (avoiding collisions) from the unique data stored in req.session?

Assuming cookie-hijacking does not occur and that all sessions are correctly destroyed upon logout, is this an acceptable way to determine if the user is currently logged in:
if (typeof req.session.user === 'object' && typeof req.session.user._id !== 'undefined') {
// Protected area inside an API...
}

Is it fair to say that this is sufficient and that I don't need to re-verify the user's credentials (with a token system) since they were already verified when the internal data was set at login.

What measures can I take to try to prevent cookie hijacking? Apart from SSL, is saving the user's IP to the internal session the only approach? (This is not desirable since the user's IP can, of course, change and I would prefer the user to stay logged in.)

Thanks again for your help. This is really helping me understand this setup and express.


update name list

I don't know how to use this :( , while could you please help update it and I can update for the workstations?

Your indentation fix looks correct but I found some numbering issues that you can see above. Have you tested your code changes? If so, you'd see the errors on your indentation appearing immediately I think. If you haven't tested the code, you can't really merge any changes as it's too dangerous.

Thanks Kieran! I'm working on those bugs. I'm not sure which code pack I'm in now.

You're still in the patch-1 branch on your fork of ifiscripts.

Is Github create a copy under my account and I'm actually editing this copy now?

Exactly - this is a pull request, so if it is merged, it will form part of the master branch of the main ifiscripts.
you can tell this is the case further up -

And for this pull request, does that mean to merge this update version back to the original IFI one?

Exactly - but you can't do this yet as the code isn't fully correct yet.

Your changes look good to me - but have you tested it out? If you don't know how to, let me know. Also let me know if you're on Mac or windows.

Thanks! I would probably need your help. I'm on Windows. And I think probably git pull or something

OK, so the following should work.
mkdir yhtest
cd yhtest
git clone https://github.com/hyz2993/IFIscripts
cd IFIscripts
git checkout patch-1

then you can run a script that uses the interview, like sipcreator. Just make sure you run it as
.\sipcreator.py so that it runs the script in that folder and not in the actual ifiscripts folder in ifigit/ifiscripts

Thanks! just checked and it displays very well!

Yup - it works for me on Mac too, great work! Do you want to go ahead and merge this, do you have permission? If not, perhaps Kaz can add you - or possibly me.

Thanks! Let me ask Kaz first. Honestly I have almost forgot python, but it's good to get something back from here :D

Thanks Kaz! Good to see you on the GitHubz.
On Mon 15 Nov 2021 at 22:55, kazzikat @.***> wrote:

Merged #1 https://github.com/Irish-Film-Institute/IFIscripts/pull/1
into master.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Irish-Film-Institute/IFIscripts/pull/1#event-5621335776,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAITFPQW6VRKTTGVSSB4EPLUMGFXVANCNFSM5IBQ6K5Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I'll get the hang of it yet!


Grid import and curtailment is possible, while there is no way to curtail without assets that can curtail

Solution:

[ ] Limit curtailment to the power output of all energy assets - MAX( ( import -battery charging ) , 0 )

relative losses are at 0.69 and we don't know why


Origin/profile formatting

Multiple players test still being debugged in https://github.com/Watts-Lab/deliberation-empirica/pull/211


Add hyperterm-summon

I use that a lot in iTerm ☺

@matheuss done ;)

Thanks for the contribution and sorry for the delay 😅


Use Eigen Real FFT half-spectrum for autocorrelation

Description
Change autocovariance computation in stan/math/prim/mat/fun/autocorrelation.hpp from
  fft.fwd(freqvec, centered_signal);
  for (size_t i = 0; i < Mt2; ++i)
    freqvec[i] = complex<T>(norm(freqvec[i]), 0.0);

  fft.inv(ac, freqvec);

to
  fft.SetFlag(fft.HalfSpectrum);
  fft.fwd(freqvec, centered_signal);
  for (size_t i = 0; i < Mt2; ++i)
    freqvec[i] = complex<T>(norm(freqvec[i]), 0.0);

  fft.inv(ac, freqvec);
  fft.ClearFlag(fft.HalfSpectrum);

This will make the inverse transformation faster as "only half the spectrum is actually used if the expected output type is real." http://eigen.tuxfamily.org/index.php?title=EigenFFT
Expected Output
The output should stay the same.
Current Version:
v2.19.1

Good idea and thanks for the thought.  The change won't take long, but a speed comparison will take a bit longer.  Do you want an analysis on the relative speed gain from this change?

I think it would be useful to have at least some speed comparison. The current tests should be sufficient to check that the output is not changing,


Poc ee test

Updates to the EE test to be in synch with prod-preview

There were the following issues with your Pull Request

Commit: ff36404dada859de8c6e9988cc274543c52f8829

Your subject line is longer than 50 characters

Invalid type.   Valid types are feat, fix, docs, style, refactor, perf, test, chore, revert

Guidelines are available at https://github.com/fabric8io/fabric8-ui

This message was auto-generated by https://gitcop.com

@ldimaggi snapshot fabric8-ui is deployed and available for testing at https://fabric8-ui-fabric8-ui-pr-1076-fabric8-ui.int.rdu2c.fabric8.io


ModelToWatch not wokring

I am trying to use this in a card game, in which a card's text may change dynamically. Unfortunately, I haven't been able to get the modelToWatch attribute working.  My html looks like this.
<xhtml:p xmlns="http://www.w3.org/1999/xhtml"
fittext="true" activateOnResize="true" [modelToWatch]="card.getText()"
useMaxFontSize="false"  class="card-text" [innerHTML]="htmlText(card.getText())">
</xhtml:p>
When the card's text changes, even if it is clearly overflowing its container, it does not shrink (it is not at the minimum font size, so that shouldn't be a problem).
I was also unable to get it working with a simple boolean value which controls if a card is scaled up or not.  Ideally, I would like the text to shrink if it gets longer, but expand when the card is scaled up.

I investigated a bit more. I was able to get it to work this by changing the line
setTimeout(_ =>  this.ngAfterViewInit());
to
setTimeout(_ => {
        this.done = false;
        this.ngAfterViewInit()
      });

Without this modification, I think it can only work once (which is fine if you are loading something from the server once, but doesn't work with data that may change many times).
But it would only go down in size, never up. So I changed it one more time to
setTimeout(_ => {
        this.done = false;
        this.setFontSize(this.maxFontSize);
        this.ngAfterViewInit()
      });

Which works for my purposes, but I don't know the library well enough to say if there is a good reason not to do it that way.

Would love to have this work as well

Soon, i hope, it depends on my free time.
If you have an implemented solution feel free to pull request.

I writing a new  version of the library right now, i've included this fix.

@sebastientromp @WilliamRitson Fix in new version just published. (1.2.0)

Works perfectly, thanks a lot for the amazing reactivity :)


Grafana Dashboard for metrics

As for the indicators included in this chart, is there a recommended grafana bashboard

I use the dashboard id: 2583, but there are a lot of indicators that don't correspond to each other


[TASK] Fix potential security problem in sprintf call

Task Context

The following Codacy link contains the description of the potential security issue:
https://app.codacy.com/gh/jmakhack/myanimelist-cli/issues?bid=22863233&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W119LHsiaWQiOiJDYXRlZ29yeSIsInZhbHVlcyI6WyJTZWN1cml0eSJdfSx7ImlkIjoiTGV2ZWwiLCJ2YWx1ZXMiOltdfSx7ImlkIjoiUGF0dGVybiIsInZhbHVlcyI6WyI2NTAzIl19LHsiaWQiOiJBdXRob3IiLCJ2YWx1ZXMiOltdfV0=
Acceptance Criteria

The acceptance criteria for this task is to adjust the code to fix the potential security issue with the sprintf call.
Additional Context

For more info about CWE-120: https://cwe.mitre.org/data/definitions/120.html
For any questions or discussions, join the Discord to meet and engage with other contributors!

Hi,
Can I work on this issue?

go for it @sameersecond! :)

I think Ahmed has already made the changes in #59.


pelican content   CRITICAL: TemplateSyntaxError: Encountered unknown tag 'assets'.

please help me to solve this~

pelican content
CRITICAL: TemplateSyntaxError: Encountered unknown tag 'assets'.

cat pelicanconf.py

Apologies for the delay in responding. That should be fixed in new versions, previously the assets plugin was required, now it is optional.


Fix/32bit integer literals

Adresses #269 by throwing a better error.

Eventually, we should use Long internally. Almost all backends use 64bit integers anyway.


chore: upgrade go mod and update tests

Fixes #N/A
Description
This updates the go mod for upstream karpenter to use the latest to https://github.com/kubernetes-sigs/karpenter/commit/a3ce73eb8a7cd8ce0515c4f138afc876bc8eb679
How was this change tested?
Here and locally
Does this change impact docs?

[ ] Yes, PR includes docs updates
[ ] Yes, issue opened: #
[x] No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>9
Details

0 of 0   changed or added relevant lines in 0 files are covered.
3 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.04%) to 79.27%

Files with Coverage Reduction
New Missed Lines
%

pkg/providers/amifamily/ami.go
1
91.67%

pkg/fake/utils.go
2
94.56%

Totals

Change from base Build<PHONE_NUMBER>4:
-0.04%

Covered Lines:
5973

Relevant Lines:
7535

💛  - Coveralls


Remove react-native build

https://twitter.com/soprano/status/682402356147826688
Woohoo!
@nkbt @bsansouci

ftw :D

https://github.com/facebook/react-native/commit/5bf1f4c05ef0f3ee1cbf6e38164d58dbeee6637d
Released as 0.18. We're good. Bye-bye extra build steps!


Improvement: Build Pipeline Examples

It would be great to have examples of pipelines using this image for building SPFx dist files. For example, we could make examples for Github, Azure DevOps, Gitlab, etc.

Great idea! Shall we add .md files for these in the repo?

yes it could be a separate .md file that is describing the use cases and contains templates.

Do you have a sample that we could start with?

Closing due to inactivity