New synonym MP:0000114 cleft chin

New synonym MP:0000114 cleft chin
mandibular cleft
PMID:37075751  (J:335489)

cleft chin MP:0000114
Definition: incomplete fusion of the chin; usually a fissure
NOTE: HPO has distinct terms for Cleft mandible and Cleft chin:
Cleft mandible HP:0010752
Synonyms: Cleft lower jaw | Mandibular cleft
Definition: Midline deficiency of the mandible and some or all overlying tissues.
Cleft of chin HP:0011323
Synonyms: Cleft of chin | Midline defect of chin
Definition: Incomplete fusion of the chin, resulting from a developmental defect and manifesting as a midline cleft or fissure of the chin.

Add new term cleft mandible (syn: mandibular cleft) but do not define it as median or midline (place under abnormal mandible morphology). Clarify with Leigh.


Adding new config index and handle issues

Issue in tvDataComponentColor_t set (Hue_Luma_Saturation )
SetAspectRatio  ORed input parameter issue
Index token included in config file (DimmingMode, BacklightControl, DolbyVisionMode and aspect ratio)
videosource is "composite" added additional check
tvComponentType_t add in config file
EnableDynamicContrast api change

merged to develop


Update ScrapeWebsiteTool Documentation

The ScrapeWebsiteTool documentation example only shows how to initialize the class - not how to use it.
I opened a PR for this: https://github.com/joaomdmoura/crewAI/pull/385

ScrapeWebsiteTool vs WebsiteSearchTool
What are the differences between them?
Which one can I use to read the entire website by including its internal links/pages?
I am not sure whether they will either read the entire website or just the specified page.
I mean, all pages from the main provided page…


Remove Photo Caption related helpers

What's this PR do?
This pull request removes helpers and tests for captions throughout the codebase. We are removing these since we are no longer requiring a caption in the photo submission via the website and we are going to be removing the caption request from our sms flow. (happening in #558)
How should this be reviewed?
👀  - let me know if anything seems like it should be left in or we need to make more clarifications. I'd recommend going commit by commit. A lot of the "changes" here are linter cleanup.
Any background context you want to provide?
No need to keep references or helpers for something we are no longer asking for!
Relevant tickets
References Pivotal #175786378.
Checklist

[ ] Documentation added for new features/changed endpoints.
[ ] Tests added/updated for new features/bug fixes.
[ ] ENV variables added/updated for new features/bug fixes.
[ ] Tested on staging.
[ ] Pinged a PM if this is a larger PR that would benefit from some additional testing love.

💥


[FLINK-19697] Make the Committer/GlobalCommitter retry-able

What is the purpose of the change
Make the Committer/GlobalCommitter retry-able.
Brief change log

Introduce SinkUtils::commit for retry-commit
Make the AbstractStreamingCommitterOperator recommit the committables when commit fails
Make the BatchGlobalCommitterOperator recommit the committables when commit fails
Make the BatchCommitterOperator recommit the committables when commit fails

Verifying this change
(example:)

StreamingCommitterOperatorTest
BatchCommitterOperatorTest
BatchGlobalCommitterOperatorTest

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

Hi @guoweiM , I am not sure that this is enough for the retry logic. The reason is that the committables that you want to retry, they are not checkpointed.
I have not thought this through but what about a solution that puts the neededToRetryCommittables in the pending files for the "next" checkpoint?

Thanks @kl0u . You are definitely right. That's also why I make neededToRetryCommittables be an member of the AbstractStreamingCommitterOperator. But I forgot to do it 😅.


CLI arguments for declaring TPF and brTPF servers

@chengsijin0817 here it is, both for TPF and brTPF ;-)

Thanks :-)


Gene usage visualisation grouped by metadata

Hi,
I am trying to graph gene usage in samples as grouped by status. I am using my own dataset and I can't see any grouping happening. I have also tried using the test dataset and I also don't see that the samples get grouped. This is the code I am using, as provided in the Quick Start:
data(immdata)
gu = geneUsage(immdata$data)
vis(gu, .by="Status", .meta=immdata$meta)

I don't see any difference by using the .by="Status" argument or not.

Hi, you need to pass the .grid argument:
data(immdata)
gu = geneUsage(immdata$data)
vis(gu, .by="Status", .meta=immdata$meta, .grid=F)

It worked.
Thanks!!

Great!


I am ready to translate

I am ready to translate to pt_BR.
Where are the rules for translation?
It would be nice to have it in the project wiki.

@erlimar I'm not sure if the docs are quite ready for translation, but it's great to know you'd like to help! I think for now @danroth27 (who is managing a lot of the docs) is focusing on the initial en-US docs, but I'm sure translation will eventually happen too.

combining with https://github.com/aspnet/Docs/issues/416


KAFKA-9068: Updated the javadoc as per implementation

Corrected the javadoc as per the session store implementation.
Committer Checklist (excluded from commit message)

[*] Verify design and implementation
[*] Verify test coverage and CI build status
[*] Verify documentation (including upgrade notes)

@satishbellapu Thanks for the PR. It should target trunk -- not 2.1 branch. We will cherry-pick to older branches when merging. Thanks.

@mjsax do you want me to give a new PR on trunk ?

I tried to change the base branch, but it would pull in other commits. So yes, please open a new PR against trunk. Thanks a lot!

@satishbellapu Can you please update the PR (ie, open a new one against trunk, and also address @WheresAlice comment?) so we can make progress? Closing this PR for now, as it should be against trunk. Thanks.


SharePoint SPFX package's App Icon is not getting loaded during upload/deployment in app catalog.

Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested

[ ] 💥 Internet Explorer
[X] 💥 Microsoft Edge
[X] 💥 Google Chrome
[X] 💥 FireFox
[X] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)

Additional environment details

browser version : Microsoft Edge Version 110.0.1587.50
SPFx version : 1.16.1
Node.js version : 16.13.0

Describe the bug / error

Steps to reproduce

Use schema: "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json"
Set IconPath: .
Build spfx package
Upload package to sharepoint app catalog.

Expected behavior
Image set as App Icon in should be visible properly.

@poladiaraj - are you experiencing the same issue with modern UI for app catalog?

In modern UI behavior is slightly different. When we deploy/upload the package we see broken app icon. After deployment when we refresh the page, we are able to see app icon.

Hi @poladiaraj I tried to repro this and found something similar to the report:
On the modern page:

Upload the SPPKG
The app icon is broken (but the img tag is correct)
If you choose not to enable, the icon never appears
Once you enable the app, the icon appears

Image URL: /sites/appcatalog/ClientSideAssets/c1b4bc9d-a5af-4cbd-b550-3671c7caaf90/ic_launcher.png
On a legacy page:

Upload the SPPKG
The icon seems to sometimes appear, but sometimes not appear. (This may be from caching/my testing, as it does not appear most times)
After deploying, the icon will start appearing on the modern page.

Image URL: /_layouts/15/AppCatalogImage.ashx?ImageUrl=https%3A%2F%2Fa830edad9050849445i23030419%2Esharepoint%2Ecom%2Fsites%2Fappcatalog%2FClientSideAssets%2Fc1b4bc9d%2Da5af%2D4cbd%2Db550%2D3671c7caaf90%2Fic%5Flauncher%2Epng
It seems like the App Icon image is not being uploaded until the SPPKG is actually deployed.


[BUG] All websocket returns 500, Other HTTP requests occasionally return 500, use rancher ui access agent

Rancher Server Setup

Rancher version: v2.6.8

Information about the Cluster

Kubernetes version: v1.22.15
downstream cluster: Imported k3s version v1.21.5+k3s2

other :

cattle cluster image : rancher/rancher-agent:v2.6.8

User Information

admin

Describe the bug

When accessing the k3s cluster through the Rancher UI, a 500 error occasionally occurs. An exception appears in the Rancher logs, as shown below.

All websocket returns 500 status code
Other HTTP requests occasionally return 500 status code

To Reproduce

just this downstream cluster, but not other (more than 100+).
Unable to reproduce the problem , new imported cluster work normal.
Result
Expected Result

access normal .

cattle-cluster-agent add env ：CATTLE_DEBUG=true

But it's not enough to help me solve the problem.
How can I collect more information?
thanks !!!
Screenshots

but [/k8s/clusters/c-m-7lrg6jn2/v1/subscribe?sockId=5] successful !

Additional context

cattle-agent-goroutine.txt
cattle-cluster-agent-7dfdc749f4-scxng_cluster-register_bak.log
cattle cluster agent restart log.

my old bro, he apply the same import yaml to both k3s clusters at the same time.
so sorry , happend this.
maybe, some log can help me to warn this ?


BN layer should followed by activation function, and use_bias should be set to False

https://github.com/CODEJIN/GST_Tacotron/blob/141c0ccfcb403d13f65b048e7b5f940321d2e604/Modules/Taco2.py#L32
it should be
self.layer.add(tf.keras.layers.Conv1D(
                filters= filters,
                kernel_size= kernel_size,
                strides= stride,
                padding= 'same',
                activation=None,
                use_bias=False
                ))
self.layer.add(tf.keras.layers.BatchNormalization())
self.layer.add(tf.keras.layers.ReLU())

Hi, you are right. I will modify soon. Thank you!

Okay. I just found no bias reference at Ioffe, S., & Szegedy, C. (2015).

Note that, since we normalize Wu+b, the bias b can be ignored since its effect will be canceled by the subsequent mean subtraction (the role of the bias is subsumed by β in Alg. 1).

I will change soon. Thank you so much!


User research into Sandbox or elevated permissions for member accounts

User Story
User feedback indicates that users:
want admin permissions
want to try and test things quickly
want a sandbox
As a Mod Plat user
I need somewhere to test and evaluate new ideas
So that ensure it works before using in Live environment
(test above story to see if true)
Hypothesis
If Mod Plat users had a sandbox
Then they would have better quality code and feel more empowered to make improvements
Because they would make all the mistakes or errors in a safe environment
(test this hypothesis)
This issue is to investigate the possibility and implications of giving members a higher form of access for a sandbox account. We need to balance this with the security and principals of the platform.
A potential solution could be:
Higher privileges for the dev account only including:
Make changes from the console
Run terraform apply locally
Weekly clear down and rebuild of account from code to ensure no long lasting manual changes.
Value
Enable users to work quicker
Questions / Assumptions
What benefits would a sandbox provide?
Are you able to do those things within the Mod Plat?
What processes would you envisage using within a sandbox?
If you want to experience how changes will affect your service now, how do you go about that?
Are your concerns around security or changes to how the service works?

Definition of done

[x] user session on what they want from a sandbox
[x] Invite users to interview x4
[x] team analysis
[ ] team discussion to decide on what poc to create
[ ] create issue for new PoC

Reference
Link to Miro board https://miro.com/app/board/uXjVOOUcZug=/?invite_link_id=818908413929
How to write good user stories

First 2 interviews were a no show, have Slacked but no reply as yet.
3 conducted this morning, all good.

Held analysis session using this Miro board https://miro.com/app/board/uXjVOOUcZug=/?invite_link_id=325023172859

Outputs doc from UR analysis https://docs.google.com/document/d/1V-hBnv8Hd9rQ2T_wOokZZnEvRR4OHUpG5YTRcjfwVu4/edit?usp=sharing


[Question] Can PagedKVCache support different size of kvcache in different layers?

❓ General Questions
I have a pruned model which delete some qkv heads (32 to 24) in some layers (10 to 20) and I want to adjust the model code so that I can deploy the pruned model. But I have some problems about PagedKVCache, I don't know how to use it to give different kvcache size in different layers. And now I use nn.KVCache as a makeshift. I want to know how to use PagedKVCache to satisfy my need.
thank very much.

The current version does not support it yet and it might be hard to modify for it.

hi, @Hzfengsy , so if I want to deploy my pruned model, now the only solution is use nn.KVCache to replace the PagedKVCache as the old commit did?
thank you for reply.

KV cache is a common interface, the solution right now would be to create a difference instance of kv cache implementation of the same interfaceand replace it

@BenchuYee hi, I want to adjust the KVCache for more flexible usage, which old commit did you use to build the nn.KVCache model? and BTW, do you guys observe obvious performance drop using nn.KVCache instead of PagedKVCache (no batch requirest considered)?

@DeclK hi, sorry for the late reply, I use the old commit #1746 on Feb 14 and it works many commits ago(before May), I just use the old commit to replace the new model code. We don't test the performance, but it can communicate normally.
But now it seems this idea can't work in the new commit. If you want to use this, I suggeest you use the old commit(before May) and replace the model code with the older commit(about #1746 on Feb 14)


Multiple JSON encoding with socket.emit

I've created a SO question and one of the answer seem to lead to a Sails unexpected behavior, would you mind to take a look?
http://stackoverflow.com/questions/26930297/serialize-object-through-network-with-javascript-how-to-improve-it/26930494?noredirect=1#comment42515028_26930494
if it is a sails unexpected behavior, could you tell me how to fix it?
Thanks.

I'm gonna close this up since there is discussion on SO. This is still searchable, of course and if you feel it should be reopened we can do that, too. Thanks~


add mini help for each tool

provide inline help directly from the CLI

have a closer look at DavidWells/markdown-magic.


non-std c++ exception [turn of wifi]

Description

I get this error in the application when the internet is down. Probably because of the c++ library linked to server requests this error is happening
Version
0.70.4
Output of npx react-native info
System:
OS: macOS 13.0
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 532.25 MB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 19.2.0 - /usr/local/bin/node
Yarn: Not Found
npm: 8.19.3 - /usr/local/bin/npm
Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /Users/devloops/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: Dolphin 2021.3.1 Patch 1 Dolphin 2021.3.1 Patch 1
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 11.0.17 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.0-rc.2 => 0.71.0-rc.2
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
I get this error in the application when the internet is down. Probably because of the c++ library linked to server requests this error is happening
Snack, code example, screenshot, or link to a repository

I get this error in the application when the internet is down. Probably because of the c++ library linked to server requests this error is happening

Having same problem at random times +1

Having same problem
@react-native-bot  @reactjs-bot

Same problem

The same problem, need to try if some lib I installed causes this

Same problem after upgrade rn to 0.72.0

can you re open this issue. I am seeing the same crash on RN 0.72.5


The user is not redirected to a microsoft page

Hi,
I use Azure AD. I configured everything like I thought it would work. I opened the django admin site. I typed in my credentials and it said wrong credentials... But I thought it should redirect me to a microsoft site to perform login? Why is Django even asking me for credentials?

By default the django admin URL won't be overriden. You would need to do that in your urls.py file specifically. If you install django-extensions and run python manage.py show_urls, you can see how your URL paths are configured.

You need to define a URL to catch the requests to your admin login flow. The default would be:
path("admin/login/", admin_login_redirect)
Where admin_login_direct is:
from django.conf import settings
from django.contrib.auth.views import LoginView
from django.shortcuts import redirect, render
from django.urls import reverse

def admin_login_redirect(request):
    """Redirect the admin login to our auth login."""
    next = request.GET.get(LoginView.redirect_field_name, reverse("admin:index"))
    return redirect(settings.AUTH_URL + f"?next={next}")

Ok, I did that.
    path("admin/login/", admin_login_redirect),
    path('admin/', admin.site.urls),

The ordering seems to matter.
It no says that I have not set AUTH_URL in settings. What value I have to set AUTH_URL to? Haven't found anything about AUTH_URL in your doku: https://django-auth-adfs.readthedocs.io/en/latest/search.html?q=AUTH_URL&check_keywords=yes&area=default

Oh, sorry about that. That's a relic of my system allowing us to programatically switch between direct auth and active directory SSO.

I was now redirected to a microsoft login page correctly and was able to log in:
But afterwards I see a white page with "No authorization code was provided".
In the Urls I found:
AADSTS90008:+The+user+or+administrator+has+not+consented+to+use+the+application+with+ID+'fcc0e21c-ce18-42af-84a1-406e4bfaa2c4'(FOSS).+This+happened+because+application+is+misconfigured:+it+must+require+access+to+Microsoft+Graph+by+specifying+at+least+'Sign+in+and+read+user+profile'+permission.
What is your plugin trying to do and what permissions are needed.

What is your plugin trying to do

Please review the documentation. You should have an idea of what the purpose of the library is if you're trying to integrate it.

what permissions are needed.

You identified the missing permissions in the URLs. Additionally, you can review the config guides in the docs and the demo app.

ok, the Azure AD Admin has changed something for me. The URL looks now different.
I Login to microsoft, I am redirected to
https://lap-20-073.ssss.de:8080/foss/oauth2/callback?code=0.AXMA-g66LIO9o0KRJjIRKlj2OBziwPwYzq9ChKFAbkv6osRzAJI.AgABAAIAAAD--DLA3VO7QrddgJg7WevrAgDs_wQA9P9vjdjYs5NGWHI8o9U9DaqZ35HOHJB6wSLGy6Pl7DJJAQXBfAig_rnXdC9eReozMzo4cmgRz7uU8Qj_HGEj1SWlSYYHPaAU3t6LDbL0OiSXQ7u6K9iQwnZfhGKE7sBtDt04aqq0NM9RR4ybdGoBE8HVcom9KU-y5mBeZ6zL7c6yTQ7wu5oVTo_YIxUtoRT4DR93l9R36grqGXgwtMHbjUW1_TJms9LNNLj67z89sRid7aeyYpFiQ-dMUXLA73-z5rE7iTrrj6f1oAyhMDShhY6P7TUg4SRGaCto-uCwzWeeIwTsaW2RVkTODFcY0zfsnz3_Bism0bpq1IHtTnqTehw2RhdmreCiymQ-4svadOuh75g9XlEOIemNKla2PhYMrdEtmiq2-tMpPzswnTSupOvX809f2U1fiWylgTzvCSg3dlm8njb2ylZDgNuLmhhZzNlPlaFge4f7W4gAO9JoblkU_EW75gGL__sTtZ7Yp0caK5ejs25TKm4dwu9_fPmfKHbhIk6MirGiQpxJICaQnYOJSs69OsO7mvzMA1C177YSh6rSA1ugHxhOjfyy8sxW4CCr6WQwKq_9jFPjP84xo0FUPUgOwdaNs2JrNQP7X1lMhF4nF0KSQlR16plZaGVy3PSEejX906v8u3iFJcp7QLiYbb9tKFRin4ctCmkoBI1Rzwn6jiUcc_BvQm83O8FxcfuZsmozqtx3aaPrKDMX-BH0T0ZruXcHJKD6kLzOufl84CjfLSsuW6bZx4SqMJGbDeF39lGQdBVO-QecRHu9U0HLGcFJzfcGNAXlClhbg6A&state=L2Zvc3MvYWRtaW4v&session_state=1c3f2961-5687-4023-9a26-6909a3214ce3#
(I have changed randomly some numbers)
So the text error message in the url is gone, but i am still not logged in into the admin aerea.
Login Failed is displayed and in the log I see:
INFO 2022-10-19 09:12:06,826 django_auth_adfs Loaded settings from ADFS server.
INFO 2022-10-19 09:12:06,826 django_auth_adfs operating mode:         openid_connect
INFO 2022-10-19 09:12:06,827 django_auth_adfs authorization endpoint: https://login.microsoftonline.com/2c6a0efa-bd83-42a3-9126-32112a58f639/oauth2/authorize
INFO 2022-10-19 09:12:06,827 django_auth_adfs token endpoint:         https://login.microsoftonline.com/2c6a0efa-bd83-42a3-9126-32112a58f639/oauth2/token
INFO 2022-10-19 09:12:06,827 django_auth_adfs end session endpoint:   https://login.microsoftonline.com/2c6a0efa-bd83-42a3-9126-32112a58f639/oauth2/logout
INFO 2022-10-19 09:12:06,828 django_auth_adfs issuer:                 https://sts.windows.net/2c6a0efa-bd83-42a3-9126-32112a58f639/
INFO 2022-10-19 09:12:06,828 django_auth_adfs msgraph endpoint:       graph.microsoft.com
DEBUG 2022-10-19 09:12:07,070 django_auth_adfs Authentication backend was called but no access token was received
Unauthorized: /foss/oauth2/callback

(I have changed some numbers)
How to debug this further? How to find the problem?

I was now redirected to a microsoft login page correctly and was able to log in: But afterwards I see a white page with "No authorization code was provided". In the Urls I found: AADSTS90008:+The+user+or+administrator+has+not+consented+to+use+the+application+with+ID+'my-id'.+This+happened+because+application+is+misconfigured:+it+must+require+access+to+Microsoft+Graph+by+specifying+at+least+'Sign+in+and+read+user+profile'+permission.
What is your plugin trying to do and what permissions are needed.

about this issue, you could ref the last section of step-3-register-and-configure-an-azure-ad-frontend-application
request permission: GroupMember.Read.All from your administrator to bypass it.
But for me, some typical case, can we add groups claim in frontend app, aims to limit user group number when generating token as workaround?
important-caveats-for-this-functionality
add-group-claims-to-tokens-for-saml-applications-using-sso-configuration
@tim-schilling Could help comment it?


Conditional type doesn't go to true or false branch.

Bug Report
🔎 Search Terms
generic conditional types
already checked https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs and https://github.com/microsoft/TypeScript/issues/31751
🕗 Version & Regression Information
3.9.7 / 4.6.2
⏯ Playground Link
Playground link with relevant code
💻 Code

type Action<P, T = never> = { type: string; payload: P } & ([T] extends [never] ? { metaSkipped: true } : { meta: T });

function prepareAction<P, T extends Record<string, unknown> = Record<string, unknown>>(action: Action<P, T>): void {
    action.meta // Property 'meta' does not exist on type 'Payload<P, T>'.(2339)
    action.metaSkipped  // Property 'metaSkipped' does not exist on type 'Payload<P, T>'.(2339)
}

🙁 Actual behavior
properties from intersection are not accessible (conditional type doesn't resolve as true / false branch)
🙂 Expected behavior
conditional type should go to false branch. correct my please if i'm wrong
Thanks in advance.

Resolving of conditional types involving unbound generic type arguments is deferred. At that point the compiler doesn't know what Action<P, T> resolves to, because the compiler doesn't know what types P and T are.

@MartinJohns thanks for clarification

@MartinJohns playground but why this works ?

if i'm telling it that T will extend Record<string, unknown>

Conditional types are not necessarily linear (meaning that they have predictable behavior between T and an a subtype of T), and figuring out whether or not they are requires reasoning in the form of "Does any type exist such that this type would behave in the other way?", which is not very tractable.

@fatcerberus as i see from playground where T extends ... no defer occur and i can access action.meta. correct me please, if i'm wrong.

@MartinJohns mapped type like this type OptionsFlags<Type> = {   [Property in keyof Type]: boolean; }; will be deferred too ?

How would the compiler know what the final type will look like without knowing what type T actually is?

To be clear, generic types in TS don't work like C++ templates.  The compiler only looks at the body of a generic once and tries to determine if it will work for all possible combinations of type parameters, but these checks are necessarily conservative because it would be prohibitively expensive and/or complex to do otherwise.


Replace secp_utils usage of big.Int with uint256 library.

In ./pkg/hintrunner/utils/secp_utils.go there are utilities for elliptic curves. They used big.Int unnecessarily because all values are smaller than 2**256 - 1.
The task is to replace all use of big.Int with uint256 which is waaaaaaay faster.

Hi @rodrigo-pino  may i be assigned to this issue? thanks!

Hi @TAdev0 is yours. This are the things you need to do:

Swap the arithmetic that uses big.Int for uint256.
Output should be actual values and not references to them. (a.k.a. uint256 instead of *uint256)
The functions getBaseBig & getSecPBig should return a constant and not perform any operation. Currently, they are: (i) creating a big int and (ii) setting it up using a string. They should return a uint256 without any of these operations. Also, it makes no sense they return a boolean as a second output.

Tell me if you need help with anything!

We are using github.com/holiman/uint256  as our uint256 library which is already part of the VM packages

Thanks a lot for explanations, will be useful as this is my first Go contribution :)

@rodrigo-pino  @cicr99  now all hints are implemented, we can discuss the scope of this issue
should we replace big.Int absolutely everywhere its possible with uint256?

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I am a blockchain and DeFi developer . I am having experience of 8 months . I am currently working as a Blockchain Researcher and Developer. My Experience in programming language like Go , Rust , Java will help me to solve this issue.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I'm a software developer with 2+ years of experience with Java, C#, Dart and others technologies and I'm member of Dojo Coding community here in CR and I have made contributions in Cairo VM Go.
How I plan on tackling this issue
I would first analyze the existing code in secp_utils.go to identify all the areas where big.Int is currently used for values smaller than 2**256 - 1. Then, I would replace those instances with uint256, making sure to adjust any methods that perform arithmetic operations to ensure compatibility with the new data type.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I have a strong background in backend software engineering with expertise in languages such as Go and Solidity. My experience with optimizing code for performance and efficiency, especially in systems where every millisecond counts, aligns well with the task at hand. Additionally, I have worked with cryptographic primitives, which include elliptic curve cryptography, making me familiar with the operations and optimizations necessary in this domain.
How I plan on tackling this issue
To approach the problem of replacing big.Int with uint256, I would first ensure I understand the precise usage of big.Int in the current codebase, particularly how it handles elliptic curve operations in secp_utils.go. Given that big.Int is a general-purpose library for handling arbitrarily large integers, it adds unnecessary overhead when dealing with values smaller than 2**256 - 1. This is where uint256 can provide a significant performance boost due to its fixed-size nature, which allows for more efficient operations at the CPU level.


serial data for software

I came across this so called 'LXARDOSCOPE', which uses an arduino uno to input signals to the software for Linux and I think this is a really nice enhancement for this project.

I wrote tiny_scope to be a cheap portable scope but this might indeed be a good option to have.
thanks


To avoid bloat, functionality should be moved to a new package

Recently, I've added extra functionality to this library. Actually, I think that was a mistake. Really I should have put it in a different library.
This ticket is to remove it and move it elsewhere.

Planned package structure
This is how I'd like to organise the packages, going forward:

CSF.Reflector
The static Reflect class, plus a service-style version of it with an interface and impl.
CSF.Specifications.Reflection
The specification classes which relate to specifications.
CSF.Reflection
The bits and pieces which are left:

Type providers for assembly-scanning
AssemblyInfo extensions
Type extension
The service which detects the Mono runtime


Change to state table view upon clicking on a state in map

Describe the bug
Upon clicking on state to see district wise data, left side table should show particular state and district data. Now, if user clicked on state map and accidentally hovers on left side table, then map changes automatically to India map.
To Reproduce

Double click on any state to get district view.
Hover courser on left side statewise tracker (Any other state)
State map changes to India map.

Expected behavior
Once clicked on state map, left side table data should change to particular statewise data. Clicking on back button should take user back to India map and all states data.

OS: Windows
Browser: Chrome

Instead of onHover on table row, It would be good if click on table row and then it reflects on India map.

I would like to take this up if not already ? @jeremyphilemon

This has been patched but with a different strategy in mind, thanks for raising the issue :)


core dumped

I'm trying to use neuralcoref. But when I try to run the example from README, I get a core dumped error.
Here is the code I tried :
import spacy
import neuralcoref
nlp = spacy.load('en')
neuralcoref.add_to_pipe(nlp)
doc1 = nlp('My sister has a dog. She loves him.')     # > Crash !

Any idea where the problem come from ?

Note : when I import neuralcoref (import neuralcoref), I receive following warnings :

/home/user/.venv/test/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: spacy.morphology.Morphology size changed, may indicate binary incompatibility. Expected 104 from C header, got 112 from PyObject
return f(*args, **kwds)
/home/user/.venv/test/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: spacy.vocab.Vocab size changed, may indicate binary incompatibility. Expected 96 from C header, got 104 from PyObject
return f(*args, **kwds)
/home/user/.venv/test/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: spacy.tokens.span.Span size changed, may indicate binary incompatibility. Expected 72 from C header, got 80 from PyObject
return f(*args, **kwds)

Thanks  victoriastuart!! I faced the same problem and your solution worked.

Thanks victoriastuart - you saved me a bit of headache!

It does'nt work for me - when l install "pip" intstall -e", I got this error =  Running setup.py develop for neuralcoref
ERROR: Command errored out with exit status 1

Solution
tl/dr:
BASH:
pip uninstall neuralcoref
git clone https://github.com/huggingface/neuralcoref.git
cd neuralcoref
pip install -r requirements.txt
pip install -e .
pip uninstall spacy
pip install spacy
python -m spacy download en

PYTHON:
import spacy
nlp = spacy.load('en')
import neuralcoref      ## ignore RuntimeWarning(s)
neuralcoref.add_to_pipe(nlp)
doc = nlp(u'My sister has a dog. She loves him.')
doc._.has_coref         ## True
doc._.coref_clusters    ## [My sister: [My sister, She], a dog: [a dog, him]]
doc._.coref_resolved    ## 'My sister has a dog.
  ERROR: scispacy 0.2.4 has requirement spacy>=2.2.1, but \
  you'll have spacy 2.1.9 which is incompatible.
  ...

$ pip install -e .
  ...

$ pip list | egrep -w 'spacy|neuralcoref'
  neuralcoref                     4.0         /mnt/Vancouver/apps/neuralcoref
  spacy                           2.1.9
  spacy-stanfordnlp               0.1.3
  spacy-transformers              0.5.1

## GET BACK MY MORE RECENT spaCy !

$ pip uninstall spacy
  Found existing installation: spacy 2.1.9
  Uninstalling spacy-2.1.9:
  ...

$ pip install spacy
  ...

$ pip list | egrep -w 'spacy|neuralcoref'
  neuralcoref                     4.0         /mnt/Vancouver/apps/neuralcoref
  spacy                           2.2.3
  spacy-stanfordnlp               0.1.3
  spacy-transformers              0.5.1

## Re-download spaCy version-compatible pretrained model:

$ python -m spacy download en
  ...

$ python

  Python 3.7.4 (default, Nov 20 2019, 11:36:53)
  [GCC 9.2.0] on linux
  Type "help", "copyright", "credits" or "license" for more information.

>>> import spacy
>>> nlp = spacy.load('en')

## You can now ignore this error:

>>> import neuralcoref

  /usr/local/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: \
  spacy.morphology.Morphology size changed, may indicate binary incompatibility. \
  Expected 104 from C header, got 112 from PyObject
  return f(*args, **kwds)

  /usr/local/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: \
  spacy.vocab.Vocab size changed, may indicate binary incompatibility. \
  Expected 96 from C header, got 104 from PyObject
  return f(*args, **kwds)

>>> neuralcoref.add_to_pipe(nlp)
  <spacy.lang.en.English object at 0x7f418e4b89d0>

>>> doc = nlp(u'My sister has a dog. She loves him.')

>>> doc._.has_coref
  True
>>> doc._.coref_clusters
  [My sister: [My sister, She], a dog: [a dog, him]]
>>> doc._.coref_resolved
  'My sister has a dog. My sister loves a dog.'

Thank you A LOT, i was trying to find a solution for hours

Thanks victoriastuart!! It works for me!!

Thanks victoriastuart!! It works for me!!


399 random order tests

Fixes #399
Randomises the order in which tests are run, including in CI, in order to help identify any interdependent tests.
Tests will fail currently; they are fixed in #405, which is merged into main now
To test:

You might need to pip install pytest-random-order (or run ./dls_dev_env.sh again)
Run pytest --random-order -m "not s03
Observe that some ispyb tests fail sometimes
Merge main
Rerun tests a few times and see they always pass

@evalott100 Can you review this please?

I get "no module dlstbx" when tests are ran.
The nexgen is out of date and will throw errors without an upgrade (version >= should be specified in setup.cfg).

Hopefully these issues should be fixed now:

removed nexgen version tag since the release is out
moved symbolic link creation later in the dls_de_env script once the folder for it to go in actually exists (:man_facepalming:)

closed because I messed up a merge and it was easier to recreate in #443


How does workerd introduce d1 database configuration

How does workerd introduce d1 database configuration
[[d1_databases]]
binding = "DB"
database_name = "xxxx"
database_id = "xx-f6b5-xx-a19b-xxxx"

using Workerd = import "/workerd/workerd.capnp";

const helloWorldExample :Workerd.Config = (
  sockets = [ ( name = "http", address = "*:8787", http = (), service = "main" ) ]
);

const helloWorld :Workerd.Worker = (
  modules = [
    (name = "worker", esModule = embed "dist/index.js")
  ],
  compatibilityDate = "2024-06-10",

  bindings = [
    (name = "ADMIN_USERNAME", text = "xxxxx"),
    (name = "ADMIN_PASSWORD", text = "xxxxx2"),
    (name = "DEBUG", text = "true" ),
  ],

);

Can someone help me?

I'm not sure if I understand what you're asking. What are you trying to do here?

@garrettgu10  Originally, I started my Cloudflare Worker service using  wrangler dev. However, for certain reasons, I want to run this service on my own server and therefore do not want to use wrangler dev.
Someone suggested that I use workerd serve xxxx.capnp, but I am not sure how to configure the D1 database in workerd.
For more details, please refer to:
https://discord.com/channels/595317990191398933/1052656806058528849/threads/1253562243195605054


Update configuration.adoc

Thank you for submitting a pull request!
Please make sure you have signed our Contributor License Agreement (CLA).
We are not asking you to assign copyright to us, but to give us the right to distribute your code without restriction. We ask this of all contributors in order to assure our users of the origin and continuing existence of the code.
You only need to sign the CLA once.

[x] I have signed the Contributor License Agreement (CLA)

Please sign the CLA. If you did sign it, make sure you used the same email/username as the one used within your commits.
Cheers

Looks like it was a minor hiccup - CLA was fixed, thanks!

Cherry picked in master and 2.x.
Thanks!


Running nginx master process as root no longer works correctly

PR #56255 broke services.nginx.user = "root"; -- first discovered in https://github.com/NixOS/nixpkgs/pull/56255#issuecomment-608048848.
Quick summary

Before that PR, the systemd service ran as root, so the nginx master process ran as root, and then the worker processes ran as an unprivileged user (user nginx nginx here, or nobody by default if thta line is not given).
Now the systemd service runs as nginx, including the master process.

When you change the default back to root (e.g. because your setup needs the master process to be root, or for replicate the setup as it was in 19.09) using services.nginx.user = "root";, it does not work out of the box.
Reason
That is because the module now assumes that nginx will run only as 1 user, and it sets file system permissions that way. But nginx running as root makes nginx drop privileges to nobody or the configured user username usergroup, and the file system permissions are not set up correctly for that as shown in https://github.com/NixOS/nixpkgs/pull/56255#issuecomment-608048848.

FYI this is how I'm handling the situation with httpd:
https://github.com/NixOS/nixpkgs/blob/92e9009172a8ae5d26a5ddc6eb0b2a8cbb394637/nixos/modules/services/web-servers/apache-httpd/default.nix#L686..L693

The way the tmpfile rules are currently written is that the ${cfg.group} group doesn't have write, only read access to ${cfg.stateDir}. So it doesn't really work well with running the nginx master process as root, and then drop permissions to a regular user. I assume you also don't want to run worker processes as root either :laughing:…
I'm not sure how to properly approach this problem. Can you elaborate a bit on what's your usecase as running the master process as root?

@nh2 are you able to test this configuration out and report back:
services.nginx.user = "nginx"; # the default
services.nginx.group = "nginx"; # the default
systemd.services.ngnix.serviceConfig.User = lib.mkForce "root";
systemd.services.ngnix.serviceConfig.Group = lib.mkForce "root";

Please take special consideration to look over your logs directory (under ${stateDir}) and the permissions there. I'm not familiar on what user/group permissions the nginx process assigns to log files when it runs with root as the master process... possibly a minor tweak to the tmpfiles will be required, but let me know what happens with your test.
If this works we need to simply add documentation on how to run with root as the master process, as I have explained above.

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/go-no-go-meeting-nixos-20-03-markhor/6495/19

Just from the go/no-go meeting, I approved of changes being backported to 20.03

I've gone ahead and tested the above configuration snippet. I had to make a few tweaks and ended up with this as the required configuration to get nginx to run with root as the master process but nginx as the child processes:
services.nginx.appendConfig = let cfg = config.services.nginx; in ''user ${cfg.user} ${cfg.group};'';
systemd.services.ngnix.serviceConfig.User = lib.mkForce "root";

@nh2 can you please describe your requirement to run the master process as root? I'm not familiar with nginx so I have a hard time judging whether your case is an edge case or not.
@flokli depending on the answer from @nh2 we need to make a decision about whether we need to simply improve documentation, or improve documentation and modify the module code to make this use case better supported. I'm currently leaning toward this being a documentation only thing, but let's wait to hear what @nh2 has to say.

@aanderse I think your suggestion is good, I will try it today for our setup and report back.
If it works, then I agree that it is sufficient to document your approach in the release notes (and perhaps as a description in one of the config options (probably the one for .user is best).
On my use case, it is:

being able to configure nginx the same way it was running on 19.09 for smoother migration, also so that
one can upgrade to 20.03 already before fixing all the other things one's nginx uses that may rely on the master running as root

systemd.services.ngnix.serviceConfig.User = lib.mkForce "root";

@aanderse What an evil typo! ngnix -> nginx :fire:
NixOS does not complain when options on non-existent systemd services are set (should it?) -- that took a while to figure out :grin:

@aanderse I have checked your approach now on my staging deployment; it works (with the typo removed). What we should add to the changelog:
services.nginx.appendConfig = let cfg = config.services.nginx; in ''user ${cfg.user} ${cfg.group};'';
systemd.services.nginx.serviceConfig.User = lib.mkForce "root";

@nh2 glad to hear. Are you able to make a PR and document this as described?

master PR: #84960
We should cherry-pick it on release-20.03 after merge.

@aanderse Thanks for finding the best solution!


added some of my projects :)

Project URL

Description

Checklist

[ ] Only one project is in this pull request
[ ] Addition in chronological order (bottom of category)
[ ] Travis CI pass
[ ] Supports iOS 7 or later
[ ] Has a commit from less than 2 years ago
[ ] Has a clear README in English

Hey @MatiBot, awesome libs. Really thanks for the contribution! 😄
Next time, please make one pull request for each library 😉


Trap Support

It creates basic trap support, at least they dont walk around :)

i just noticed you changed somethings in EntityDataContextModelSnapshot, you should fix it before merge, but add TrapType

Thanks, I’ll check it soon.
I somehow remember a similar issue a long time ago - will try to find it ;)

I'm just checking your PR. It works, but I'd like to change how the correct behavior is defined in the data and created in the logic.
I found a flaw in the initial code design, which I'd like to fix with this extension, as well. Currently, we have just an interface "IAttackable" for objects which can receive attacks, but also perform attacks. In case of some objects, this is not sufficient. Traps can't be attacked, but only attack. (Castle) Gates or Statues can only be attacked, but not attack.
So, I'd like to introduce the interface IAttacker. Since this involves a lot of code changes, I'll do it myself. Once I'm done, I'll push it into this PR :)

@And3rsL have you got some attack animations and working attacks with your changes?
I found that some traps (Lost Tower, Meteorite Traps) seem to cause damage, but I see no animations :-(
And some other traps don't attack at all (Fire Traps, Dungeon).
I put a lot of changes into this PR. However, I think some things in the attack logic still needs some fine tuning ;-)

I think meteorite traps and all area attack in general just cast spells.. but maybe I'm wrong

Two traps cast a flame skill according to the Monsters.txt, others don't.
So, I think it makes sense to solve #177 within this PR here, too.

I think I got it working :) I get hits and skill animations from the traps and monsters.
Could you do a quick test in game?


Question: Release in Github

Just a quick question for @manfredsteyer:
Could you create releases in GitHub? This is  - fortunately - a very active repository but there aren't any releases (on npm's website there are releases but you can't really see what's changed).
Thank you very much and keep up the great work!

Yes, this is a good idea. I really should do this.

Yep would be super :).
We just got a problem and after a while we understood it's was the update from 2.1.1 to 2.1.3.
Still not really sure where are the codes for these versions.


Run benchmarks from v1

[x] Run benchmarks on v2
[x] Compare results to v1

Benchmark results
In the form <seconds> (route distance).

C=1
C=2
C=3
C=4
C=5
C=6

T=1

T=2

T=3

T=4

T=5

T=6

T=7

T=8

T=9

CPU vs Memory
v1 was extremely CPU bound. v2 is not capping out an n1-standard-1.
[]

These results were presented to Mike on Monday, March 21.


Daemonset results dir issue

When working on the cis-benchmark I updated it to use the SONOBUOY_RESULTS_DIR instead of hardcoding the results dir.
However, there was a conflict in the logic I found that resulted in just an empty-dir being used instead of the intended hostpath.
The logic for autoAttachResultsDir worked great. However, the daemonset had logic that just added an emptydir volume with the name results which overwrote that causing the plugin to be unusable.
I'm not sure how this hasn't been an issue before (systemdlogs gets run all the time) or when it would have been introduced.

I think this may have been me jumping to conclusions; tbd but I think I just had a script issue and then misread volumes vs volumeMounts.

Yup; this was me rushing to fix a bug that didnt exist. Closing.

Yup; this was me rushing to fix a bug that didnt exist. Closing.


Slider slide

Changes the slider to use the slide gesture as opposed to the drag gesture. Removes the delay before sliding.
Based off of #904
R: @jelbourn @kara
CC: @hansl @robertmesserle

LGTM, you can apply the merge ready label once the other PR is merged.

Any estimate when the slider will be published as a package on npm?


[BUG] yourdomian.com/pl shows empty page instead of sending to dashboard

Microservices

Spring boot Applications:

Rule Engine
Rules
ETL
Webapp

OS Type: Windows
Java version:
1.8

Summary
Please see pic below.

When type "/pl" or "/pl/" it opens empty page with no date
Reproduce steps
Just go to "where_paladin_is_deployed/pl"
Expected Results
Be redirected to dashboard as it goes with every other not existing URL
Actual Results
Show regular UI but with NO data at all

@mkinchin-paladin fixed via #1254


[readme] corrects img path

Reviewed and merged.
On Mon, Jul 15, 2019 at 6:20 AM Naveed Usmani<EMAIL_ADDRESS>wrote:

@naveedhd https://github.com/naveedhd requested your review on: #25
https://github.com/safdark/Automata-Capstone/pull/25 [readme] corrects
img path.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/safdark/Automata-Capstone/pull/25?email_source=notifications&email_token=AAJDKA6OUIVTIV3DZ4VIFP3P7R2TFA5CNFSM4IDWXL62YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSP6Z3MQ#event-2482871730,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJDKA7OFOX7J2KRTL5DDCDP7R2TFANCNFSM4IDWXL6Q
.


webstats

Need webstats on the stats page

Is it possible to make google analytics publicly accessible via a link from our stats page?
Or a basic summary?

Is it possible to make google analytics publicly accessible via a link from our stats page?
Or a basic summary?

From a quick looks, it seems possible: https://ga-dev-tools.appspot.com/embed-api/
I'm also planning to install a basic web stats analyser on the server at Babraham as well as a back-up.  We should be able to gets stats from that too.


Problem with requests without a trailing slash (some cases)

1. What version of Caddy are you using (caddy -version)?
Caddy 0.10.3
2. What are you trying to do?
Problem: Caddy does not redirect a request without a trailing slash to location with a trailing slash if a folder exists and user makes a request without a trailing slash. This happens if both fastcgi and rewrite modules are used and also if a folder contains index (index.php) file.
Sample project structure is like this:
/www/default
├── folder
│   └── index.php
└── index.php

3. What is your entire Caddyfile?
localhost:80 {
  root /www/default
  fastcgi / localhost:9000 php
  rewrite {
    to {path} {path}/ /index.php?{query}
  }
}

4.  Please paste any relevant HTTP request(s) here.
# curl -v http://localhost/folder
*   Trying <IP_ADDRESS>...
* Connected to localhost (<IP_ADDRESS>) port 80 (#0)
> GET /folder HTTP/1.1
> Host: localhost
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: text/html; charset=UTF-8
< Server: Caddy
< Date: Tue, 27 Jun 2017 21:26:59 GMT
< Content-Length: 34
<
Content of a /folder/index file..
* Connection #0 to host localhost left intact

6. What did you expect to see?
I expected to see a 301 redirect to location /folder/.
7. What did you see instead (give full error messages and/or log)?
Header 200 and output of a /folder/index.php
Please note that Nginx and Apache does redirect to /folder/ in similar configuration.
P.S. I noticed that if /folder/index.php file is removed, response does have a redirect.
# rm folder/index.php
# curl -I http://localhost/folder
HTTP/1.1 301 Moved Permanently
Location: /folder/
Server: Caddy
Date: Tue, 27 Jun 2017 21:34:05 GMT
Content-Type: text/plain; charset=utf-8

Redirect also happens if fastcgi or rewrite modules are removed from the configuration.
I hope this can be fixed/improved as applications in some cases expect to have a slash at the end or they break.

Hmm, well in this case, your PHP backend is handling the request. Why isn't it issuing the redirect? When Caddy serves static files, it issues redirects because that's it's job, but when it's proxying... not so much the case.

What happens if you change the to line to be to {path}/ {path} /index.php?{query}?

Hmm, well in this case, your PHP backend is handling the request.

Should it though at this point? Shouldn't the server make a redirect because of a rewrite rule {path}/ ?

but when it's proxying... not so much the case

Sorry, what do you mean by "proxying"? Do you mean the fastcgi part or the rewrite part?
You see, if I leave just the fastcgi/php part, the redirect happens and php is not handling the initial request. With configuration like this:
localhost:80 {
  root /www/default
  fastcgi / localhost:9000 php
}

..there is a redirect:
# curl -I http://localhost/folder
HTTP/1.1 301 Moved Permanently
Location: /folder/

Redirect also happens if I leave just the rewrite part and remove fastcgi part.
localhost:80 {
  root /www/default
  rewrite {
    to {path} {path}/ /index.php?{query}
  }
}

# curl -I http://localhost/folder
HTTP/1.1 301 Moved Permanently
Location: /folder/

Why isn't it issuing the redirect?

I'm not sure as I'm not an author of a php application that was installed in the subfolder, but I suspect because other web servers (nginx, apache) does not behave in this way and developers don't have this in mind while developing software. Php logic is outside of the scope in this case as i've created empty php files for testing.
For testing purposes I also created a nginx configuration like this:
server {
        listen 8080;
        root /www/default;
        server_name _;

        location ~ \.php$ {
                fastcgi_pass <IP_ADDRESS>:9000;
        }

        location / {
                try_files $uri $uri/ /index.php?$query_string;
        }
}

This configuration is very similar but because of $uri/ the redirect also happens as expected, php is not handling the initial request:
# curl -I http://localhost:8080/folder
HTTP/1.1 301 Moved Permanently
Server: nginx/1.10.0 (Ubuntu)
Date: Wed, 28 Jun 2017 07:09:44 GMT
Content-Type: text/html
Content-Length: 194
Location: http://localhost:8080/folder/

I can probably fix this by modifying php part or maybe make a manual redirect in configuration, but I filled out this issue as I was thinking that Caddy should behave similar to other web servers and should not rely on workarounds.

I'm not sure if this will do anything different, but what happens if you change the to line to be to {path}/ {path} /index.php?{query}?

You are right, this does not change the outcome.

Thanks for elaborating!

Should it though at this point? Shouldn't the server make a redirect because of a rewrite rule {path}/ ?

No, rewrites aren't redirects. Rewrites are internal; redirects are external.

Sorry, what do you mean by "proxying"? Do you mean the fastcgi part or the rewrite part?

Yes, sorry for the confusion: fastcgi. FastCGI is a proxy to a fastcgi responder.
So far it looks like Caddy is behaving as I intended. Caddy's redirect-to-canonical-URL behavior is implemented in its static file server. If the static file server isn't serving the request, then the redirect won't happen from within Caddy. You can manually configure these redirects with the Caddyfile, of course.
Yes, it's a little different than other web servers. But I think this makes more sense, frankly. 😁

No, rewrites aren't redirects. Rewrites are internal; redirects are external.

Yes, the fundamental difference is clear. What I meant was.. because the rule with the trailing slash matches request, web server should not proxy it to php but rather interpret it as a static resource (because folder exists on the file system) and so the redirect should happen as it would for static content. I don't know, I guess I was also looking at the examples in documentation where I saw this line:

[...] and path is not a valid file/directory, rewrite to the mobile index page

.. and I got a bit confused with my own configuration. Now I realized it's really not about rewriting when "is not a valid file/directory". In my case thinking about this in a way of "rewrite to this resource (if it exists), otherwise rewrite to /index.php" would help me avoid the confusion. But that's on me. I think I got this now.

Yes, it's a little different than other web servers. But I think this makes more sense, frankly.

I like this :) it does make sense, thank you for taking time to explain and looking into this. Much appreciated!

Yes, the fundamental difference is clear. What I meant was.. because the rule with the trailing slash matches request, web server should not proxy it to php but rather interpret it as a static resource (because folder exists on the file system) and so the redirect should happen as it would for static content.

Ah, so fastcgi is configured to handle all requests to / that meet its criteria, which your request did. The static file server takes over if nothing else handles the request.

I don't know, I guess I was also looking at the examples in documentation where I saw this line:

Yeah, it rewrote the request path (or not), but it doesn't change how the request is actually handled, since fastcgi still found it to match its criteria.

In my case thinking about this in a way of "rewrite to this resource (if it exists), otherwise rewrite to /index.php" would help me avoid the confusion.

That makes more sense. Would you like to submit a PR to caddyserver/website to improve the wording in a way that's not as confusing?
Thanks for the issue!


[FEAT] Poe new bot

Poe just added a bunch of new bots (GPT4-32k, etc.) and it would be great if the support can be added here!

Ok, they will be added. But first, I should keep lower the risk of banning account of Poe.

Can you elaborate more Sunner what's the risk right now getting account banned? Thanks.

You can refer #329


Faster github runners

https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners/
master

PR

@swankjesse CI only - requesting post review.


[Question] is this erratic behaviour or does it work as intended?

Hi Store folks.
I'm a member of the Android Realm DB team. I am currently working on updating some really old examples we have in our codebase. We have been following your library for a while and we have decided to explore it now that it runs full-steam on coroutines. We are simultaneously working on some coroutines extensions for our Java SDK, so this assignment serves us to validate (or not) our approach in a real-world scenario. So far we are quite pleased with the simplicity of the Store API and look forward to using it to showcase how to use the repository pattering using coroutines.
As I've been writing the code for our example, I've encountered a few behaviours I can't really explain. The use case I'm working on is a simple news reader app, which has a drop-down spinner from which users can select a section, e.g. politics, technology, arts, etc. and then a list showing some news headlines will reflect the contents of that particular section.
The first load with a default "home" section works just fine and the list gets updated correctly. However, things don't quite work once we select a different section than the default one. Our NewsReaderViewModel looks roughly like this:
var section: String = "home"

init {
    val fetcher: Fetcher<String, List<NYTimesArticle>> = Fetcher.of { apiSection ->
        // suspend fun getTopStories(section: String): NYTimesResponse
        nytApiClient.getTopStories(apiSection).results
    }

    val sourceOfTruth: SourceOfTruth<String, List<NYTimesArticle>, List<RealmNYTimesArticle>> = SourceOfTruth.of(
            reader = { apiSection ->
                // fun getArticles(section: String): Flow<List<RealmNYTimesArticle>>
                realmDao.getArticles(apiSection)
            },
            writer = { apiSection, articles ->
                // suspend fun RealmNYTDao.insertArticles(apiSection: String, articles: List<NYTimesArticle>)
                realmDao.insertArticles(apiSection, articles)
            },
            delete = { apiSection ->
                // suspend fun deleteArticles(section: String)
                realmDao.deleteArticles(apiSection)
            },
            deleteAll = {
                // suspend fun deleteAllArticles()
                realmDao.deleteAllArticles()
            }
    )

    store = StoreBuilder.from(fetcher, sourceOfTruth)
            .build()

    setupStoreStream()
}

private fun setupStoreStream() {
    store.stream(StoreRequest.cached(
            key = section,
            refresh = true
    )).onEach { response ->
        val origin = response.origin.toString()

        when (response) {
            is StoreResponse.Loading -> NewsReaderState.Loading(origin)
            is StoreResponse.Data -> NewsReaderState.Data(origin, response.value)
            is StoreResponse.NoNewData -> NewsReaderState.NoNewData(origin)
            is StoreResponse.Error.Exception -> NewsReaderState.ErrorException(origin, response.error)
            is StoreResponse.Error.Message -> NewsReaderState.ErrorMessage(origin, response.message)
        }.let {
        // Update livedata property to notify fragment and update list
            _newsReaderState.postValue(it)
        }
    }.launchIn(viewModelScope)
}

fun getTopStories(apiSection: String) {
    viewModelScope.launch {
        section = apiSection
        store.fresh(section)
    }
}

I haven't added any caching policy and I'm always getting fresh data to keep it simple.
Once we call getTopStories with a new section, say "arts", the execution stream goes as follows:

fetcher: gets news from API and delivers "news API objects"
writer: uses Realm DAO to map "news API objects" to "Realm news objects" and saves them in the database
stream: receives a StoreResponse.Data with origin SourceOfTruth with a list of "Realm news objects" containing items matching the original "home" section, which is used to update a LiveData property which will in turn update the list
reader: launches a query with the new section and returns a Flow<List<RealmNYTimesArticle>> - after debugging this step I can confirm the database contains the newly added items corresponding to the newly selected "arts" section, however, this flow never gets the items emitted
no more stream callbacks are received after 4

I'm a bit puzzled as to why this is happening. Perhaps I haven't understood something along the way regarding how the library works, but it seems something is going on. I would be really grateful if you guys could give me an explanation as to why I'm experiencing this. I could also provide a link to our repository so that you can experiment with the example first-hand.
Thanks in advance!

From first glance the thing I see as unideal is using a mutable field for the stream key and then reusing it again for the fresh call. Do you have a sample to share? First I'd recommend making keys immutable and trying again. This looks close to our sample app, if you can't share your code, could you make our sample fail in same way? Thank you and hope that helps

Also you mention in 4 the flow never gets emitted. Is that the Database flow or the store stream flow? Wanted to confirm that indeed the flow from realm is emitting when something is written

Also you mention in 4 the flow never gets emitted. Is that the Database flow or the store stream flow? Wanted to confirm that indeed the flow from realm is emitting when something is written

I've tried three approaches:

First I used our toFlow method. The Realm flow is closed before having the Store stream emit anything. We have implemented it using callbackFlow and what happens is that the awaitClose block we use to keep it alive is called before the Realm change listener that should offer the newly inserted results kicks in. We were not fully sure our implementation was bulletproof so we revisited it and found two minor things after receiving feedback from some users. These things are more related to unclear semantics from our side though, so it wasn't an indication on why this could be happening. In any case, the implementation is similar to that of our RxJava convenience method asFlowable.
Then I decided to use asFlowable as the database publisher and have asFlow from kotlinx-coroutines-rx2 piggyback on it to convert the output to a Kotlin flow. The problem here seems to be similar, with the difference that our asFlowable implementation manages to emit the newly inserted elements only to be disposed immediately afterwards and not emitting anything upwards towards the Store stream.
Finally I implemented the same thing using Room and have my DAO return a flow to sanity-check the problem isn't in our implementation. After debugging the generated Room DAO I can see the behaviour is similar to my second attempt using flowable mapped to flow. The DAO flow emits something when the reader is executed in step 4, but it never is emitted and propagates to the Store stream.

If you need more information or further details, please let me know. I could provide a detailed debugging explanation if needed.

First I'd recommend making keys immutable and trying again.
Making the key immutable didn't help. Having it like that was only a primitive/draft attempt to save the view state in case of configuration changes. We will surely not rely on that property and use the drop-down spinner internal state instead, which is saved upon rotation so it shouldn't be a problem in this case.

Do you have a sample to share?
Absolutely. I can have it ready at some point tomorrow. I'll post a link here.

@digitalbuddha the sample project can be found here: https://github.com/realm/realm-java/tree/el/store-coroutines-example/examples/coroutinesExample

Perfect thank you! I'll have time to look over the weekend

Hi @edualonso - From I believe the problem is that you're trying to reuse the same Store.steam for different keys (sections), that's just not going to work.
Once you set up the Store.Request the section key is copied over as the key and will not change. The stream will only emit new result for the original key. To fix your example, you'll need to cancel the old stream collection job and start a new one.
You probably need something like:
var section: String = "home"
private var currentJob: Job? = null

init { ... }

private fun setupStoreStream() {
    **currentJob?.cancelAndJoin()
    currentJob =** store.stream(StoreRequest.cached(
            key = section,
            refresh = true
    )).onEach { response ->
        val origin = response.origin.toString()

        when (response) {
            ...
        }.let {
        // Update livedata property to notify fragment and update list
            _newsReaderState.postValue(it)
        }
    }.launchIn(viewModelScope)
}

fun getTopStories(apiSection: String) {
    viewModelScope.launch {
        section = apiSection
        **setupStoreStream()**
    }
}

As an aside note, the reason you're getting a new emission on the stream after calling fresh is probably because fresh updates the underlying table managed by realm which causes realm to emit on all the flows listening to the table, regardless of whether their individual results have changed.

Since this may end up informing documentation there's an unrelated small issue that's worth highlighting here:
reader = { apiSection ->
                // fun getArticles(section: String): Flow<List<RealmNYTimesArticle>>
                realmDao.getArticles(apiSection)
            }

since getArticles returns a Flow<List<_>> it will, when there's no result in the database, return an empty list. as far as store is concerned an empty list != no results so store will initially return an StoreResponse.Data(emptyList(), ResponseOrigin.SourceOfTruth) and only then start the fetcher.
For the sample I would fix this by updating the reader to be something like:
reader = { apiSection ->
                // fun getArticles(section: String): Flow<List<RealmNYTimesArticle>>
                realmDao.getArticles(apiSection).map { if (it.isEmpty()) null else this }
            }

I thought the same stream would emit all updates irrespective of the key. That explains it. Thanks a lot for the clarification.


[e2e]: go release main config-ldflags-noassets slsa3

Repo: https://github.com/slsa-framework/example-package/tree/v17.0.485
Run: https://github.com/slsa-framework/example-package/actions/runs/8352457324
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-noassets.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-noassets.slsa3.yml
Trigger: release
Branch: v17.0.485
Date: Wed Mar 20 01:26:34 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/v17.0.486
Run: https://github.com/slsa-framework/example-package/actions/runs/8365007350
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-noassets.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-noassets.slsa3.yml
Trigger: release
Branch: v17.0.486
Date: Wed Mar 20 20:09:16 UTC 2024
Tests are passing now. Closing this issue.


【Docs】The description of config item druid.worker.globalIngestionHeapLimitBytes in the indexer general configration is incorrect.

Please provide a detailed title (e.g. "Broker crashes when using TopN query with Bound filter" instead of just "Broker crashes").
Affected Version
druid-0.22.0
The Druid version where the problem was encountered.
Description
The description of config item druid.worker.globalIngestionHeapLimitBytes in the indexer general configration is incorrect.
The description of the configuration item is 60%.

But it's actually 1/6 in the code.
code:org.apache.druid.indexing.worker.config.WorkerConfig#globalIngestionHeapLimitBytes

Thank you for pointing out this. When the #8255 was submitted, it forgot the change above.
Could you open a PR to help us improve the doc?

Thank you for pointing out this. When the #8255 was submitted, it forgot the change above. Could you open a PR to help us improve the doc?

I will do it

Thank you

Fixed by https://github.com/apache/druid/pull/16654

Per @hevansDev , fixed


Functions added to global in setupTests.js are reported as not defined in Sublime

I have this setupTests.js file:
import 'jest-enzyme';
import Enzyme from 'enzyme';
import EnzymeAdapter from 'enzyme-adapter-react-16';

Enzyme.configure({ adapter: new EnzymeAdapter() });

global.findByTestAttr = (wrapper, value) => {
  return wrapper.find(`[data-test="${value}"]`);
};

The configuration of Enzyme and the jest-enzyme functions work fine, but the findByTestAttr is reported in Sublime Text as not defined. The function seems to work fine when tests are run in the console though.
Is there some configuration missing in CRA and/or Sublime? Something that can be done to make those functions not be reported as not defined?

When you say "not defined in Sublime", what package are you using that tells you whether or not something is defined? I'm pretty sure that sublime doesn't do that by default, but without knowing what's making that determination it's hard to help you!

Do you have an .eslintrc.json in your project root? You can add the following to it and it should make this error go away. You might be able to create another eslintrc in your test directory, but I'm not sure about eslintrc precedence so I'll leave that to you!
{
  "extends": "react-app",
  "globals": {
    "findByTestAttr": "readonly"
  }
}


command error: ''Adafactor is already registered in optimizer at torch.optim''

xtuner train cfg-gamma7b/gemma_7b_it_qlora_alpaca_e3_copy.py --deepspeed deepspeed_zero2
10/28 18:19:05 - mmengine - WARNING - WARNING: command error: ''Adafactor is already registered in optimizer at torch.optim''!
10/28 18:19:05 - mmengine - WARNING -
Arguments received: ['xtuner', 'train', 'cfg-gamma7b/gemma_7b_it_qlora_alpaca_e3_copy.py', '--deepspeed', 'deepspeed_zero2']. xtuner commands use the following syntax:
    xtuner MODE MODE_ARGS ARGS

    Where   MODE (required) is one of ('list-cfg', 'copy-cfg', 'log-dataset', 'check-custom-dataset', 'train', 'test', 'chat', 'convert', 'preprocess', 'mmbench', 'eval_refcoco')
            MODE_ARG (optional) is the argument for specific mode
            ARGS (optional) are the arguments for specific command

Some usages for xtuner commands: (See more by using -h for specific command!)

    1. List all predefined configs:
        xtuner list-cfg
    2. Copy a predefined config to a given path:
        xtuner copy-cfg $CONFIG $SAVE_FILE
    3-1. Fine-tune LLMs by a single GPU:
        xtuner train $CONFIG
    3-2. Fine-tune LLMs by multiple GPUs:
        NPROC_PER_NODE=$NGPUS NNODES=$NNODES NODE_RANK=$NODE_RANK PORT=$PORT ADDR=$ADDR xtuner dist_train $CONFIG $GPUS
    4-1. Convert the pth model to HuggingFace's model:
        xtuner convert pth_to_hf $CONFIG $PATH_TO_PTH_MODEL $SAVE_PATH_TO_HF_MODEL
    4-2. Merge the HuggingFace's adapter to the pretrained base model:
        xtuner convert merge $LLM $ADAPTER $SAVE_PATH
        xtuner convert merge $CLIP $ADAPTER $SAVE_PATH --is-clip
    4-3. Split HuggingFace's LLM to the smallest sharded one:
        xtuner convert split $LLM $SAVE_PATH
    5-1. Chat with LLMs with HuggingFace's model and adapter:
        xtuner chat $LLM --adapter $ADAPTER --prompt-template $PROMPT_TEMPLATE --system-template $SYSTEM_TEMPLATE
    5-2. Chat with VLMs with HuggingFace's model and LLaVA:
        xtuner chat $LLM --llava $LLAVA --visual-encoder $VISUAL_ENCODER --image $IMAGE --prompt-template $PROMPT_TEMPLATE --system-template $SYSTEM_TEMPLATE
    6-1. Preprocess arxiv dataset:
        xtuner preprocess arxiv $SRC_FILE $DST_FILE --start-date $START_DATE --categories $CATEGORIES
    6-2. Preprocess refcoco dataset:
        xtuner preprocess refcoco --ann-path $RefCOCO_ANN_PATH --image-path $COCO_IMAGE_PATH --save-path $SAVE_PATH
    7-1. Log processed dataset:
        xtuner log-dataset $CONFIG
    7-2. Verify the correctness of the config file for the custom dataset:
        xtuner check-custom-dataset $CONFIG
    8. MMBench evaluation:
        xtuner mmbench $LLM --llava $LLAVA --visual-encoder $VISUAL_ENCODER --prompt-template $PROMPT_TEMPLATE --data-path $MMBENCH_DATA_PATH
    9. Refcoco evaluation:
        xtuner eval_refcoco $LLM --llava $LLAVA --visual-encoder $VISUAL_ENCODER --prompt-template $PROMPT_TEMPLATE --data-path $REFCOCO_DATA_PATH
    10. List all dataset formats which are supported in XTuner

Run special commands:

    xtuner help
    xtuner version

GitHub: https://github.com/InternLM/xtuner

libs used:
datasets                      3.0.2
torch                         2.5.0
torchvision                   0.20.0
transformers                  4.46.0
xtuner                        0.1.23
peft                          0.13.2
numpy                         2.1.2
nvidia-cublas-cu12            <IP_ADDRESS>
nvidia-cuda-cupti-cu12        12.4.127
nvidia-cuda-nvrtc-cu12        12.4.127
nvidia-cuda-runtime-cu12      12.4.127
nvidia-cudnn-cu12             <IP_ADDRESS>
nvidia-cufft-cu12             <IP_ADDRESS>
nvidia-curand-cu12            <IP_ADDRESS>
nvidia-cusolver-cu12          <IP_ADDRESS>
nvidia-cusparse-cu12          <IP_ADDRESS>
nvidia-ml-py                  12.560.30
nvidia-nccl-cu12              2.21.5
nvidia-nvjitlink-cu12         12.4.127
nvidia-nvtx-cu12              12.4.127

Same.

downgrage pytorch version to 2.4.1
pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1

reference:
https://github.com/InternLM/xtuner/issues/952#issuecomment-2434473868

💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: None)

[!TIP]
I can email you when I complete this pull request if you set up your email here!

Actions (click)

[ ] ↻ Restart Sweep

I am currently looking into this ticket! I will update the progress of the ticket in this comment. I am currently searching through your code, looking for relevant snippets.

Step 1: 🔎 Searching
I'm searching for relevant snippets in your repository. If this is your first time using Sweep, I'm indexing your repository. You can monitor the progress using the progress dashboard

🎉 Latest improvements to Sweep:

New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To recreate the pull request edit the issue title or description.
Something wrong? Let us know.

💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: None)

[!TIP]
I can email you when I complete this pull request if you set up your email here!

Actions (click)

[ ] ↻ Restart Sweep

I am currently looking into this ticket! I will update the progress of the ticket in this comment. I am currently searching through your code, looking for relevant snippets.

Step 1: 🔎 Searching
I'm searching for relevant snippets in your repository. If this is your first time using Sweep, I'm indexing your repository. You can monitor the progress using the progress dashboard

🎉 Latest improvements to Sweep:

New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To recreate the pull request edit the issue title or description.
Something wrong? Let us know.

💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: None)

[!TIP]
I can email you when I complete this pull request if you set up your email here!

Actions (click)

[ ] ↻ Restart Sweep

I am currently looking into this ticket! I will update the progress of the ticket in this comment. I am currently searching through your code, looking for relevant snippets.

Step 1: 🔎 Searching
I'm searching for relevant snippets in your repository. If this is your first time using Sweep, I'm indexing your repository. You can monitor the progress using the progress dashboard

🎉 Latest improvements to Sweep:

New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To recreate the pull request edit the issue title or description.
Something wrong? Let us know.

按照 pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 修改后还是一样的报错怎么回事


Weird XAML designer issue when using Result<,> from an F# library referencing a previous FSharp.Core version

I have spent some 10–15 hours trying to debug and reduce this problem to a minimal repro solution, and I can reduce it no further. I hope there is a quick fix for this on my end, but for all I know it might also be a bug with FSharp.Core. I am not 100% sure this is the right place; if not, please point me in the right direction.
In short, I experience errors in Visual Studio's XAML designer. Take this with a grain of salt, but the errors seem to occur when running project code at design-time (e.g. when running a design-time view model) for code that returns (or perhaps just uses) Result<_,_> in some way, and if the code that uses Result<_,_> exists in a library that uses FSharp.Core 4.3.4 or earlier while another intermediary library using that code references FSharp.Core 4.5.0 or higher.
As you can see, it's not easy to explain in general terms, so please see the repro solution and steps below.
Note that I experienced this problem originally with a nuget package depending on FSharp.Core >= 4.1.17 (Cvdm.ErrorHandling). The repro solution below uses paket to force two otherwise identical libraries to depend on different package versions.
Repro steps
Repro solution:
Test.zip
(As requested by a comment, here is the same with compilation output included: Test_compiled.zip)
Repro steps follow below, but for clarity I'd just like to highlight the projects inside:

FSharp450Lib: A netstandard2.0 library referencing FSharp.Core 4.5.0 containing the following code:
module FSharp450Lib.Test
let testResult () = Ok "test"
let testString () = "test"

FSharp4340Lib: A netstandard2.0 library referencing FSharp.Core 4.3.4 containing the exact same code:
module FSharp434Lib.Test
let testResult () = Ok "test"
let testString () = "test"

DesignVm: A netstandard2.0 library containing members that call these four functions and return "Hello":
type DesignViewModel() =

  member __.v450String =
    FSharp450Lib.Test.testString () |> ignore
    "Hello"

  member __.v450Result =
    FSharp450Lib.Test.testResult () |> ignore
    "Hello"

  member __.v434String =
    FSharp434Lib.Test.testString () |> ignore
    "Hello"

  member __.v434Result =
    FSharp434Lib.Test.testResult () |> ignore
    "Hello"

Test and Test2: net472 WPF apps (Test uses the new project format, Test2 uses the old, otherwise they're identical) that each contains a window displaying the four members of DesignViewModel both at design time and runtime.

Repro steps:

Unzip
Run .paket\paket restore
If repeating these steps, always remove the .vs folder and all bin and obj folders (I've observed inconsistent behavior otherwise), and if changing project targeting or package references, run paket update to ensure as clean a slate as possible.
Open the solution in Visual Studio 2017
Build the solution
Open MainWindow.xaml in Test or Test2, and ensure project code is enabled in the designer

Expected behavior

Actual behavior

Note 1:  I experienced exceptions in the designer, not just missing members:

I have however not been able to get this behavior in the minimal repro solution.
Note 2: At run-time, everything works fine:

Note 3: In App.config in both WPF projects, Paket has inserted an assembly redirect to FSharp.Core <IP_ADDRESS>. I do not know why this is, but in the obj and bin folders, the redirects are to FSharp.Core <IP_ADDRESS>. I have tried messing around with the redirect, but could not observe a change in behaviour.
Known workarounds
None (apart from changing the F# version used by the class libraries, but that can't be done in the case of nuget references).
Related information

VS 15.8.4

Could you also attach (to an another zip package) the binaries (bin/exe) or the binaries ILDASM output?

No idea what ILDASM is, but here is the same zip file but with compilation output included:
Test_compiled.zip

ILDASM is a disassembler tool that extracts IL from dll,exe files (https://www.nuget.org/packages/Microsoft.NETCore.ILDAsm/)
Attached the decompiled IL files:
Test2.txt
DesignVm.txt
FSharp434Lib.txt
FSharp450Lib.txt

The exception is quite odd; I don't remember us adding something like that to FSharp.Core, but it was discussed.
Now, I am able to reproduce the issue and of course at runtime it works fine. I suspect this is an issue with the XAML designer not understanding binding redirects; so this would happen not just for FSharp.Core, but any assembly the tries to expect different versions of a dependency.
Here is a short example using DesignVvm from the Test.zip.
using DesignVm;
using System;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            var x = new DesignViewModel();
            Console.WriteLine(x.v450Result);
            Console.WriteLine(x.v434Result);
        }
    }
}

This is a .NET Framework Console App, and not a .NET Core one, so binding redirects are necessary. By default, it will create a binding redirect for FSharp.Core, and program will print "Hello" twice, which is expected. If I remove the binding redirect, this happens:
Hello

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'FSharp.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
   at DesignVm.DesignViewModel.get_v434Result()
   at ConsoleApp2.Program.Main(String[] args) in C:\Users\...\Downloads\Test\ConsoleApp2\Program.cs:line 12

It blows up on x.v434Result because that method is expecting a different version of FSharp.Core and no binding redirects were used. This is what I think is happening in XAML designer.

@zpodlovics

There are no ResultBuilder anywhere in the IL.

As I said, that exception was only in my original problem; I have not been able to reproduce that exact error in my minimal repro solution. I removed the dependency on Cvdm.ErrorHandling (where ResultBuilder is defined) in order to minimize as much as possible.

I notice this issue has been assigned the label Area-External, but not closed. I am unsure what this means. Should I take this somewhere else (where?) Or is this something that contributors to this repo can investigate and fix?

@TIHan did you intend to close this?
@cmeeren Since this seems like a Xaml designer issue, I don't think there is a fix that can be contributed by open source contributors, since the designer is not open source.

I've posted this on VS developer community.

In any case: Were there any changes to the Result type from 4.3.4 to 4.5.0? While the issue may not be F#'s fault, such a change seems necessary to observe the different behavior.

I don't believe we made changes to the Result type.

Can you think of any reasons why this behaviour is observed when referencing a Result expression pre- vs. post-4.5.0? Again, while it may not be F#'s fault, surely some kind of change in F# must be a necessary component of this issue?

This is most likely a Xaml designer issue unable to understand binding redirects.

@cmeeren Thank you for filing the developer community issue. We'll close this and see what investigation from the XAML tools team can yield. If it ends up being an F# issue (which we currently think is unlikely), we'll re-open this bug and investigate further.

This isn't specific to FSharp.Core, but any library.

Sure, but it's just weird that it only happens for members referencing Result<_,_> expressions. In any case, we'll see what the developer community issue brings up.

@cmeeren,
Lutz Roeder of the WPF took a look at this, it appears that this is a conflict between shadow copying pulling FSharp.Core from VisualStudios PublicAssemblies directory, and the Wpf designer pulling fsharp.core from a different location and them not being able to unify them.
Anyway in a future release of VS we will remove FSharp.Core from Common7\IDE\PublicAssemblies
Kevin

Linking #6014 as the setup tracking issue

Good to hear!


Regenerate APIs

This will give me a clean slate to implement the post-generation tweaks to Bigtable.

The Bigtable error is due to previous partial code. Will remove that in a new commit.

Great. Will review once CI passes.


docs: adding Pluto readme

https://github.com/hyperledger/identus-edge-agent-sdk-ts/issues/260
Starting a README for Pluto, trying to better explain the options available.

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

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.06%) to 72.788%

Files with Coverage Reduction
New Missed Lines
%

src/domain/utils/DER.ts
3
35.14%

Totals

Change from base Build<PHONE_NUMBER>3:
-0.06%

Covered Lines:
3434

Relevant Lines:
4514

💛  - Coveralls


test(client): index on field in composite type

Integrates:  https://github.com/prisma/prisma-engines/pull/3107/
Some refactoring in the test suite to support nested folders - Better for organization.
Closes: https://github.com/prisma/prisma/issues/12409

Were the tests in here ported via another PR?

Were the tests in here ported via another PR?

It was reverted here, https://github.com/prisma/prisma-engines/pull/3145.
I closed it to knock one off open PR's but can keep it open for future sake.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Add generateInputBuilders

Kotlin constructors with default params are nice but when compared to Builders, they lack the ability to represent the "absent" case. Builders allow 3 cases:
// present
Builder()
  .param(42)
  .build()

// null
Builder()
  .param(null)
  .build()

// absent
Builder()
  .build()

The same code in Kotlin requires wrapping the parameters in Optional which is more verbose when there are a lot of parameters (See https://github.com/apollographql/apollo-kotlin/issues/4747):
// present
SomeClass(param = Optional.Present(42))

// null
SomeClass(param = Optional.Present(null))

// absent (default)
SomeClass()

This PR brings back builders for those cases

The doc in plugin-configuration.mdx should be updated with the new option I guess :)

Right, we live in that world now. Having this duplication isn't great but you're right, I'll add it there


mention-bot: user blacklist

Introduces a configuration file for mention-bot and blacklists @civodul as requested in #11485. @ip1981

Spencer Whitt<EMAIL_ADDRESS>skribis:

Introduces a configuration file for mention-bot and blacklists @civodul as requested in #11485.

Thank you!
(It’s unusual to thank someone for adding you to a black list I guess. :-))
Ludo’.

This doesn't seem to work, though.  Could you take a look?
TIA!
Ludo'.

Sorry about that. @dezgeg pointed out that the problem may be that the comment which I included isn't legal in JSON. I've updated this PR with a commit to remove that comment, which can be merged.

Spencer Whitt<EMAIL_ADDRESS>skribis:

Sorry about that. @dezgeg pointed out that the problem may be that the comment which I included isn't legal in JSON. I've updated this PR with a commit to remove that comment, which can be merged.

Great, thanks.  I’m eager to see it merged.  ;-)
Ludo’.


Uncaught Error: Item must be an object

Hi. I tried to find any mentions of this bug, but unfortunately nothing was present here or on web.
I started a project and have pretty simple setup and when trying to drag element, having this error:
http://prntscr.com/jpfale
This is my Drag component:
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { DragSource } from 'react-dnd';

const Container = styled.span`
  margin: 10px;
  font-size: 4rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.4s;

  &.is-clicked {
    color: ${({ theme }) => theme.colors.purple};
  }

  &.is-hidden {
    opacity: 0;
  }
`;

const spec = {
  beginDrag(props) {
    console.log('test');
    return {};
  },
};

const WordItem = ({
  children,
  item,
  isHidden,
  handleClick,
  connectDragSource,
}) => {
  return connectDragSource(
    <span>
      <Container
        className={item.clicked ? 'is-clicked' : isHidden}
        onClick={handleClick}
      >
        {children}
      </Container>
    </span>,
  );
};

WordItem.propTypes = {
  children: PropTypes.string.isRequired,
  item: PropTypes.objectOf(PropTypes.any).isRequired,
  isHidden: PropTypes.string.isRequired,
  handleClick: PropTypes.func.isRequired,
};

export default DragSource('word', spec, (connect, monitor) => ({
  connectDragSource: connect.dragSource(),
  isDragging: monitor.isDragging(),
  dropResult: monitor.getDropResult(),
  canDrag: monitor.canDrag(),
}))(WordItem);

Container connected with context:
export default DragDropContext(HTML5Backend)(App);

I already did one project with react-dnd, but this is the first time I see this issue. Here is my package.json if this problem could be linked with libraries compatibility:
{
  "name": "",
  "version": "1.0.0",
  "description": "npm i -g prettier",
  "main": "index.js",
  "scripts": {
    "clean": "rimraf dist",
    "dev": "cross-env NODE_ENV=development node devServer.js",
    "build": "npm run clean && cross-env NODE_ENV=production webpack --config=webpack.build.config.js -p && node productionServer.js",
    "flow": "flow"
  },
  "author": "",
  "license": "ISC",
  "browserslist": [
    "last 5 versions",
    "not ie < 11"
  ],
  "prettier": {
    "singleQuote": true,
    "trailingComma": "all"
  },
  "dependencies": {
    "axios": "^0.18.0",
    "babel-plugin-styled-components": "^1.5.1",
    "es6-promise": "^4.2.4",
    "prop-types": "^15.6.1",
    "rc-slider": "^8.6.1",
    "react": "^16.3.2",
    "react-dnd": "^3.0.2",
    "react-dnd-html5-backend": "^3.0.2",
    "react-dom": "^16.3.2",
    "react-motion": "^0.5.2",
    "react-redux": "^5.0.7",
    "react-router-dom": "^4.2.2",
    "redux": "^4.0.0",
    "redux-thunk": "^2.2.0",
    "styled-components": "^3.2.6",
    "svg-inline-loader": "^0.8.0",
    "xml2js": "^0.4.19"
  },
  "devDependencies": {
    "autoprefixer": "^8.3.0",
    "babel-core": "^6.26.0",
    "babel-eslint": "^8.2.3",
    "babel-loader": "^7.1.4",
    "babel-plugin-transform-class-properties": "^6.24.1",
    "babel-plugin-transform-object-rest-spread": "^6.26.0",
    "babel-plugin-transform-runtime": "^6.23.0",
    "babel-preset-env": "^1.6.1",
    "babel-preset-flow": "^6.23.0",
    "babel-preset-react": "^6.24.1",
    "browserslist": "^3.2.4",
    "compression-webpack-plugin": "^1.1.11",
    "cross-env": "^5.1.4",
    "css-loader": "^0.28.11",
    "eslint": "^4.19.1",
    "eslint-config-airbnb": "^16.1.0",
    "eslint-config-prettier": "^2.9.0",
    "eslint-plugin-import": "^2.11.0",
    "eslint-plugin-jsx-a11y": "^6.0.3",
    "eslint-plugin-prettier": "^2.6.0",
    "eslint-plugin-react": "^7.7.0",
    "express": "^4.16.3",
    "extract-text-webpack-plugin": "^4.0.0-beta.0",
    "file-loader": "^1.1.11",
    "flow-bin": "^0.70.0",
    "html-webpack-plugin": "^3.2.0",
    "image-webpack-loader": "^4.2.0",
    "node-sass": "^4.8.3",
    "postcss-loader": "^2.1.4",
    "prettier-eslint": "^8.8.1",
    "react-hot-loader": "^4.0.0",
    "rimraf": "^2.6.2",
    "sass-loader": "^7.0.1",
    "style-loader": "^0.20.3",
    "url-loader": "^1.0.1",
    "webpack": "^4.6.0",
    "webpack-cli": "^2.1.2",
    "webpack-dev-middleware": "^3.1.2",
    "webpack-hot-middleware": "^2.22.1"
  }
}

Please help resolve this issue.

I'm also seeing this error. Here is a very simple sandbox that shows the problem:
https://codesandbox.io/s/5wm42wv5ol
As soon as you try to drag the card, the error described by the OP occurs.

The error is here, it looks like the component has not been received at this point, so this short-circuits without calling the beginDrag() function of the spec.
https://github.com/react-dnd/react-dnd/blob/c4bab9ac93e5a04d743b1267b325128392ce15b7/packages/react-dnd/src/createSourceFactory.ts#L93

@andrew-farries, there are two issues here: one is on our end, a predicate check is failing and resulting in silent failures.
The other issue is on your end - because we use ref to get a handle on the DOM element of your component, you can't use a React SFC as a DragSource, DropTarget, or DragLayer - they have to be classes that extend React.Component.


🔧 Add new Translation tracking issues for German and Indonesian

🔧 Add new Translation tracking issues for German and Indonesian

im indonesian and i want to help to translate it, but dont know how


Installation issue

Driver version
 Latest. Sorry, but I don't know how to check it.
Redshift version
 PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.69065
Client Operating System
 Windows 11
Python version
 3.11.9
Table schema
 N/A
Problem description

Expected behavior: package is installed
Actual behavior: Error
Error message/stack trace:
Traceback (most recent call last):
File "S:\Contracts\DAS\1. Administration\SoftwareOther\Python\AuditLog.py", line 18, in
import redshift_connector
File "\csc.nycnet\mocs\mocs_user_data\maxim.syrnev\Application Data\Python\Python311\site-packages\redshift_connector_init_.py", line 4, in
from redshift_connector import plugin
File "\csc.nycnet\mocs\mocs_user_data\maxim.syrnev\Application Data\Python\Python311\site-packages\redshift_connector\plugin_init_.py", line 1, in
from .adfs_credentials_provider import AdfsCredentialsProvider
File "\csc.nycnet\mocs\mocs_user_data\maxim.syrnev\Application Data\Python\Python311\site-packages\redshift_connector\plugin\adfs_credentials_provider.py", line 6, in
from redshift_connector.plugin.saml_credentials_provider import SamlCredentialsProvider
File "\csc.nycnet\mocs\mocs_user_data\maxim.syrnev\Application Data\Python\Python311\site-packages\redshift_connector\plugin\saml_credentials_provider.py", line 10, in
from redshift_connector.idp_auth_helper import IdpAuthHelper
File "\csc.nycnet\mocs\mocs_user_data\maxim.syrnev\Application Data\Python\Python311\site-packages\redshift_connector\idp_auth_helper.py", line 5, in
from packaging.version import Version
ModuleNotFoundError: No module named 'packaging'
Any other details that can be helpful:
c:>pip install packaging
returns
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: packaging in c:\programdata\anaconda3\lib\site-packages (23.1)

Python Driver trace logs

Reproduction code

import redshift_connector

Hi @maxim-spb ,
Thank you for reaching out. The error you provided:
c:>pip install packaging
returns
Defaulting to user installation because normal site-packages is not writeable

Indicates there is an issue with your machine's Python configuration outside of the scope of redshift-connector. A generic recommendation for this issue is provided in https://stackoverflow.com/questions/59997065/pip-python-normal-site-packages-is-not-writeable. Best of luck!


[Bug] q4f16_ft, q8f16_ft fail at symbol lookup on mlc_chat_cli

🐛 Bug
mlc_chat_cli fails at symbol lookup for faster transformer kernels.

TVM commit: https://github.com/apache/tvm/commit/aa2178282811d34df3ca3d9ee58580396fd0358d
MLC-LLM commit: https://github.com/mlc-ai/mlc-llm/commit/0735f6cebb8c208109925d552a62d64a700892db

It worked previoulsy on

TVM commit: https://github.com/apache/tvm/commit/bd359685c7d2b6cb666dfa4eca1b6902b22d2a4f
MLC-LLM: https://github.com/mlc-ai/mlc-llm/commit/88e6d3e9bb65b4b864834f751743210666ab5047

To Reproduce
Steps to reproduce the behavior:

python3 build.py --model llama-2-7b-chat-hf --quantization q4f16_ft --use-cache=0 --use-cuda-graph
./build/mlc_chat_cli --model llama-2-7b-chat-hf --quantization q4f16_ft
Error

ubuntu@ip-172-31-7-87:~/mlc-llm$ ./build/mlc_chat_cli --model llama-2-7b-chat-hf --quantization q4f16_ft
Use MLC config: "/home/ubuntu/mlc-llm/dist/llama-2-7b-chat-hf-q4f16_ft/params/mlc-chat-config.json"
Use model weights: "/home/ubuntu/mlc-llm/dist/llama-2-7b-chat-hf-q4f16_ft/params/ndarray-cache.json"
Use model library: "/home/ubuntu/mlc-llm/dist/llama-2-7b-chat-hf-q4f16_ft/llama-2-7b-chat-hf-q4f16_ft-cuda.so"
You can use the following special commands:
  /help               print the special commands
  /exit               quit the cli
  /stats              print out the latest stats (token/sec)
  /reset              restart a fresh chat
  /reload [local_id]  reload model `local_id` from disk, or reload the current model if `local_id` is not specified

Loading model...
Loading finished
Running system prompts...
./build/mlc_chat_cli: symbol lookup error: /home/ubuntu/mlc-llm/dist/llama-2-7b-chat-hf-q4f16_ft/llama-2-7b-chat-hf-q4f16_ft-cuda.so: undefined symbol: _ZN17fastertransformer22gemm_fp16_int_bias_actIN7cutlass15integer_subbyteILi4ELb0EEEEEvPKNS1_6half_tEPKT_S6_S6_PS4_St8optionalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEiiiiPcmP11CUstream_st

Expected behavior
Chat works.
Environment

Platform (e.g. WebGPU/Vulkan/IOS/Android/CUDA): CUDA
Operating system (e.g. Ubuntu/Windows/MacOS/...): Ubuntu
Device (e.g. iPhone 12 Pro, PC+RTX 3090, ...): A10G
How you installed MLC-LLM (conda, source): Source
How you installed TVM-Unity (pip, source): Source
Python version (e.g. 3.10): Python 3.10.12
GPU driver version (if applicable): 12.1
CUDA/cuDNN version (if applicable): 12.1
TVM Unity Hash Tag (python -c "import tvm; print('\n'.join(f'{k}: {v}' for k, v in tvm.support.libinfo().items()))", applicable if you compile models): Provided in the bug description
Any other relevant information: Provided in the bug description

It works for me, and it has nothing to do with a change in mlc or TVM. Probably you haven't add USE_CUTLASS when building mlc_chat_cli.