Namespacing Issue

While trying to update the FormRecognizer example to use Azure.Core, I ran into an issue where Azure.Core could not be found. After consultation with @timotheeguerin the issue seems to be a namespacing bug. Here's the simplest repro (thanks @timotheeguerin!)
namespace Foo.Bar {
  model FooBarModel {

  }
}

namespace Microsoft.Foo.Custom {
  // This *should* work but does not
  model Custom extends Foo.Bar.FooBarModel {

  }
}

https://cadlplayground.z22.web.core.windows.net/?c=bmFtZXNwYWNlIEZvby5CYXIgew0KICBtb2RlbMQTQmFyTcUMxRcgIMQGfQ0KfQ0KDQrKPE1pY3Jvc29mdC7ERkN1c3RvbcYyyk3HFmV4dGVuZHPIb8QxzGTIYA%3D%3D

When I try to use a using statement, the autocompletion only shows Custom as a valid member of the Foo namespace:

And the less abstract example:
namespace Microsoft.Azure.FormRecognizer;

using Azure.Core;

This seems like it would be a very common pattern, so this is problematic.

Is it expected that names from any parent namespaces are not in-scope? I.e. you would expect the following to fail:
namespace Foo.Bar {
  model L2 { }
}

namespace Foo.Bar.Baz {
  model L3 extends L2 { }
  model L3 extends Bar.L2 { }
}

It works if I remove the Microsoft prefix:
namespace Azure.FormRecognizer;

using Azure.Core;

Is it expected that names from any parent namespaces are not in-scope? I.e. you would expect the following to fail:
namespace Foo.Bar {
  model L2 { }
}

namespace Foo.Bar.Baz {
  model L3 extends L2 { }
  model L3 extends Bar.L2 { }
}

That code works in cadl(If you change the 2nd model to L4 so there is no name dup) Playground  and in csharp

To clarify why I asked the question - does fixing the examples in the OP imply that the example I posted above would fail? Or are we proposing other semantics?

Yeah that's true, this original code would fail in CSharp as well

to resolve you have to use global::

We could also just merge the namespaces when resolving the values

I think this should remain an error as in C# and we could add something like global::. That said, I can count on one hand the number of times I've needed to use global:: in two decades of C# programming. I think the guideline of always using Company Dot Technology might have helped there. I would suggest that we avoid using Azure.* if others are going to use Microsoft.Azure.* commonly. Maybe we should use Microsoft.Azure too?

Support for some notion of global:: seems like the best solution to this issue. I can't see any changes to identifier resolution that doesn't make things more confusing.

One thing C# does better here is that it tells you the full name of the namespace that doesn't have a member.
Cadl:  "Namespace doesn't have member Bar"
C#: "The type or name 'Bar' does not exist in the namespace 'Microsoft.Foo'"

I think @nguerrera's suggestion of using Microsoft.Azure.Core makes sense, though it does claim part of the namespace. Would Cadl.Azure.Core make sense?

I would prefer Microsoft.Azure over Cadl.Azure. The latter makes it sound like it's part of the Cadl core and we should position it as a Microsoft extension to the Cadl Core.

Error message improved in #597, we still need to rename the libraries.

add global to the language
recommend specs start with 'Azure. in namespaces', and enforce with linting rules in azure libraries

Filed #781

documentation on starting with Azure. in internal namespaces


How to show a separate row per each phone number?

I need to show each phone number separately in a row, no matter if it belongs to the same contact. how should I do it?

ask on stack overflow with a start and someone will complete the code for you. https://stackoverflow.com/questions/tagged/react-native-contacts


Match install versions

elsewhere, the guide recommends brew install<EMAIL_ADDRESS>might as well reflect that down the line.

LGTM, many thanks for the PR @setgree


Google drive migration to Teams not working

The Google Workspace shared drives I want to migrate have a status of "Google drive not activated" in the Scan status column?
How can I solve this?

@NickLoenders  Thank you for submitting feedback and contributing to the docs. We are currently investigating this

Thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.


Make it possible to add external DAG files dag.yml

Our dag.yml currently looks something like this
steps:
  data://garden/owid/latest/covid:
    - etag://raw.githubusercontent.com/owid/covid-19-data/master/public/data/owid-covid-data.csv
  ...
  data://open_numbers/open_numbers/latest/bp__energy:
    - github://open-numbers/ddf--bp--energy
  ... way too many open_numbers steps that make this hard to read...

an idea is to move all open_numbers steps into their own dag_open_numbers.yml and reference them from the main dag.yml file using include: stanza, i.e.
steps:
  data://garden/owid/latest/covid:
    - etag://raw.githubusercontent.com/owid/covid-19-data/master/public/data/owid-covid-data.csv
  ...

include:
  - dag_open_numbers.yml

with dag_open_numbers.yml looking like this
steps:
  data://open_numbers/open_numbers/latest/bp__energy:
    - github://open-numbers/ddf--bp--energy
  ...

Thanks @Marigold - just to make sure I'm understanding, the idea here is to modify the load_dag function of etl/steps/__init__.py, so that we also load into the dag/dict any sub-files listed with the include header?

Also is it fine to support one level of include for now or should it be like a BFS (support include within the included files as well)?

Opened https://github.com/owid/etl/pull/190 @Marigold

Sorry for late reply, but you got it right.

Also is it fine to support one level of include for now or should it be like a BFS (support include within the included files as well)?

I don't think we'd use it, but supporting it should be easy (more in your PR).

Thanks @Marigold I like it very much! I see that dependences work well even if they are defined inside a sub-dag, so that's perfect.
Just one suggestion: Wouldn't it be better to keep sub-dags inside a folder? Otherwise, the root of the etl will become crowded with dag_*.yml files.

Hey @Marigold, I just tested that having a 'dag_files' folder with the sub-dags, and then in the include section cite 'dag_files/dag_faostat.yml' works well. At least I did a etl --dry-run faostat and it found all the steps well.

Good idea, dag_files folder is definitely better. Please move open numbers there too.

OK, I'll make another PR for this.


FD: cache tlb for prefetch core(s)

Writing through PCIe to the device takes ~30ns
Initiating the write from the top level of the stack takes ~3200ns
Timing various pieces: ~400ns to take the mutex (could be a test and set), ~300-400ns per "unordered_map" lookup of which there are many
We need to fix the above, however, this issue is to circumvent that overhead by allocating TLBs in UMD for use by dispatch and caching a pointer to them in the device structure,  This should get the write near the ~30ns

Changes have been merged to main


Make theme selection part of the set up

Give users a preview of what each theme looks like and let them select one while setting up the app, kind of like how iOS let’s you preview and choose light vs. dark mode and standard vs. zoomed icons when setting up the OS

Issue created by BlueBubbles Bot in the BlueBubbles commnity on behalf of @CSab6482 in #feedback.

@tneotia has a work-in-progress of this

and I liked it, but we generally agreed that it would be better to show conversations instead of the settings page. These are some sample screenshots I made

However, @jjoelj and @tneotia correctly pointed out that it was hard to notice the difference between the two, and the typing indicators weren't showcased. To fix this, I made the conversation a little bit longer and added typing indicators.

Done. merged


Allow one click 'import' from google my business API; facebook site API

User logs in via oauth
Clicks 'submit my data from google/facebook business listing' and 'I am authorised to license this data via the ODBL' (or similar)
OnOSM hits https://developers.google.com/my-business/ and https://developers.facebook.com/docs/pages to find existing details

Reasoning: its very easy for small businesses to add themselves to google or facebook - some are skipping even websites in favour of a facebook page.
People are more likely to contribute their data to OSM if it is trivial to sync from data they have already keyed in elsewhere.

#3

So Facebook's graph API makes this pretty easy

I might have a go at the oauth steps
GET /2.8/PortExpressTakeaway/?fields=id,name,about,single_line_address,website,is_always_open,payment_options,hours,location,category,category_list,company_overview,description,general_info,is_permanently_closed,link,parking,phone,place_type,public_transit,store_location_descriptor

produces
{
  "id": "558600187674566",
  "name": "Port Express Takeaway",
  "about": "Snack Bar, food, Vietnamese Bread Roll
Coffee
Fish and CHips",
  "single_line_address": "95 Victoria Road, Birkenhead, South Australia 5010",
  "is_always_open": false,
  "location": {
    "city": "Birkenhead",
    "country": "Australia",
    "latitude": -34.83353,
    "longitude": 138.50144,
    "state": "SA",
    "street": "95 Victoria Road",
    "zip": "5010"
  },
  "category": "Local Business",
  "category_list": [
    {
      "id": "167608369957681",
      "name": "Fish & Chips Restaurant"
    },
    {
      "id": "1802051720039034",
      "name": "Food Delivery Service"
    },
    {
      "id": "201035296584114",
      "name": "Internet Cafe"
    }
  ],
  "is_permanently_closed": false,
  "link": "https://www.facebook.com/PortExpressTakeaway/",
  "phone": "08 8249 9472",
  "place_type": "PLACE"
}

Hmm, interesting. It's probably against the Facebook TOU to grab their data, but if it's the store owner suggesting it then maybe it's ok.

Yeah, I did intend for it to only be your own business - the owner would have the ability to release that info under a compatible license.
Annoyingly, finding out if a facebook user owns a page requires extended permissions (http://stackoverflow.com/questions/2966015/facebook-get-list-of-pages-that-a-user-is-admin-of); so for the short term I've gone for the simplest thing that can work - take the user's word that they are the owner.


fix: safari browser dragging error

Fixes #3697
Describe the changes you have made in this PR -
added property-webkit-user-select: none;to simulator body
Screenshots of the changes (If any) -
https://github.com/CircuitVerse/CircuitVerse/assets/91966855/141914ca-7ad6-43dd-8c9d-ac812864d352

I have Windows 10. Windows 10 doesn't support Safari. So, @vedant-jain03, could you review this?
Or anyone else who has MacOS?

@Prerna-0202 You can use browserstack.com free account for testing safari


WebSocket close

The call to close appears, always printing the following information
W/MessageQueue: Handler (com.loc.e$a) {9171c7e} sending message to a Handler on a dead thread
java.lang.IllegalStateException: Handler (com.loc.e$a) {9171c7e} sending message to a Handler on a dead thread
at android.os.MessageQueue.enqueueMessage(MessageQueue.java:574)
at android.os.Handler.enqueueMessage(Handler.java:778)
at android.os.Handler.sendMessageAtTime(Handler.java:727)
at android.os.Handler.sendMessageDelayed(Handler.java:697)
at android.os.Handler.sendMessage(Handler.java:635)
at android.os.Handler$MessengerImpl.send(Handler.java:919)
at android.os.Messenger.send(Messenger.java:59)
at com.loc.d.a(Unknown Source:47)
at com.loc.d.m(Unknown Source:86)
at com.loc.d.h(Unknown Source:0)
at com.loc.d$a.handleMessage(Unknown Source:214)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:233)
at android.os.Looper.loop(Looper.java:344)
at android.os.HandlerThread.run(HandlerThread.java:67)
at com.loc.d$b.run(Unknown Source:0)

There is no OkHttp in the offending stacktrace. What makes you assume this is related to OkHttp?

这是一封自动回复邮件。已经收到您的来信，我会尽快回复。

Thanks for the answer. I tried to shield my Handler, and it will already appear when there is no Handler used. It will not occur without calling close.

What ever behaviour is changing its very likely in you app code. Please reopen with a clear stack trace showing okhttp is the cause or a bug repro.


Add optional crashlytics

Register a project at console.firebase.google.com and copy google-services.json into wearApp and androidApp.
fixes #220

Oops, sorry. I should set it up so it doesn't need to be there.
But committing also works?

I like committing, this way everyone shares the same configuration and it's less things to debug. The keys are public in the apk anyways.


Feature/antiportal

Finally!
Demo Vid (too big file to attach ;-;)
btw this also includes a bug fix, it's the first commit. It's related so it's included here, and it was more noticeable with the addition of antiportal

Thanks for the contribution!

Thanks for the contribution!


docs(openid-connect) update OpenID Connect docs

Summary

adds missing config parameters
reorders parameters for better readability
adds section about important configuration parameters

@h3xar0n I have no abilities (rights) to patch commit the suggestions.


[Feature Request] Twilio alerts

Add support to alert via twilio.

will be supported via apprise

added apprise in 1.0.6


Native wiki repos are NOT exposed via Azure DevOps Git interfaces

This documentation falsely describes how the default wiki repo for a project can follow the same Git workflows as any other repo.  This is not the case because the Project.wiki repo is hidden from the Repos service and from the "Repositories" settings.  This means you can't configure branch permissions or policies, you can't manage pull requests or even view files or history.  I truly wish the wiki repo was treated like any other repo but it is not.  The alternative is a Code Wiki but then you lose all of the out of the box wiki editing and management UI.

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

ID: 172eecd7-1a6b-30d0-96c0-fa6ae56b521c
Version Independent ID: adc2c741-a41f-68d9-cdaf-dac696e68b9f
Content: Clone and update Azure DevOps wiki content offline - Azure DevOps
Content Source: docs/project/wiki/wiki-update-offline.md
Product: devops
GitHub Login: @chcomley
Microsoft Alias: chcomley

Hi @JamesInDenver, thank you for your feedback. I've reached out to my PMs for clarity and will update you as soon as possible. Thanks again.

@JamesInDenver, I don’t believe we intend to expose the Project Wiki Repo in the list of Repos. There is a uservoice around that. We are updating the document to explicitly say that Git workflows will be supported only for code wiki. Meanwhile, you can use APIs to set up branch policies and fulfill your scenarios. Please let us know if you have any further questions. Thanks for contacting us.

Thanks for the update and for clarify the documentation.  FYI, the default Wiki repository is also not manageable via the API.  At least you cannot get the repoID (needed by all other operations) via the repo list endpoint.

Update on retrieving the RepoId from the API, this can be done by using the includeHidden parameter on the call, as documented here:
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories?includeLinks={includeLinks}&includeAllUrls={includeAllUrls}&includeHidden={includeHidden}&api-version=5.1


[BUGFIX] fixed class not found fatal for Exception if Uri coul not be found

Thanks, noticed this one as well. Sorry for the wait.


Make the Sunspotter learner object.

The Sunspotter learner object shall be an interface with the various ML libraries that we may use.
This will be used to implement the following models using Scikit-Learn and other ML libraries:

Random Forest
SVM
XGBoost

These are all standard models. We need to experiment with different linear algebra models to get some benchmark results.
If need be, other ratings (e.g., Glicko's, Bradley-Terry's) will be used and the predictions on them will be compared against the ELO trained model predictions.

This isn't required for sunspotter


eval in training part of linear classification code

Hi,
I noticed that eval is used in training code.
I wonder why it is used here since fc is also a part of the model, which needs to be tuned.
https://github.com/facebookresearch/moco/blob/main/main_lincls.py#L326

Only the fc layer is trained; eval doesn't freeze the layers (require_grad=False does); eval makes the layers work in a different mode depending whether they're being trained or used for inference, which is only relevant for some layers (e.g. BatchNorm, Dropout); it doesn't have an effect on a Linear layer.


Fix d6/d7 quick start install step

Users are now instructed to either run the install via '/install.php' or 'druhs si'.
The Problem/Issue/Bug:
The quick start docs were missing the d6/d7 step of running the install script.
How this PR Solves The Problem:
Updated the doc to include those changes
Manual Testing Instructions:
Automated Testing Overview:

Related Issue Link(s):
Release/Deployment notes:

 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.Rob Powell seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks so much for this! The test fails are just a result of recent change in testbots, and will fix easily with a rebase (but really this can be [skip ci])
Please do sign the CLA.

@rfay, signed the CLA and thanks for the updates.

Thanks so much!


Type inference problem with extending generic ZodObject

First of all, thanks for the great library! 🙏
I have a small problem with inferencing the type of a generic ZodObject's shape.
Problem description
I have a CMS API that sends localizations of different entities in a certain format. Simplified example of an article entity:
{
  "title": "English title",
  "locale": "en",
  "localizations": [
    {
      "title": "French title",
      "locale": "fr"
    }
  ]
}

This is the Zod-schema used for the articles:
const Article = z.object({
  title: z.string(),
  locale: z.string(),
})

I wanted to make a helper function which takes a ZodObject as an input and extends it with localizations field:
const withLocalizations = <T extends z.ZodObject<any>>(zodObject: T) => zodObject.extend({
  localizations: zodObject.array()
})

Then I would use it like so:
const ArticleWithLocalizations = withLocalizations(Article)

Unfortunately, with this setup the TS compiler loses track of the original fields and thinks that ArticleWithLocalizations has only localizations field. Supposedly that's because of the any-type used in withLocalizations.
Partial solution
I found a solution by passing the shape to withLocalizations but I think this is quite verbose:
const withLocalizations = <S extends z.ZodRawShape, T extends z.ZodObject<S>>(zodObject: T) => zodObject.extend({
  localizations: zodObject.array()
})

const Article = z.object({
  title: z.string(),
  locale: z.string(),
})

type ArticleType = typeof Article

const ArticleWithLocalizations = withLocalizations<ArticleType["shape"], ArticleType>(Article)

Question
Is there a way to infer the type of the shape inside withLocalizations without passing it explicitly?

Just as an addition, this doesn't work either:
const withLocalizations = <T extends z.ZodObject<T["shape"]>>(zodObject: T) => zodObject.extend({
  localizations: zodObject.array()
})

Just getting error: Type 'T["shape"]' does not satisfy the constraint 'ZodRawShape'.
I'm not that familiar with TypeScript to know if you can even reference a type variable like that.

Here's a version I got working:
const withLocalizations = <
    T extends z.ZodObject<ZodRawShape, any, any, any, any>
  >(
    zodObject: T
  ) =>
    z.object({
      localizations: z.array(zodObject),
      ...(zodObject.shape as T["shape"]),
    });

The rule of thumb is don't attempt to call any methods on the generic input - TypeScript isn't able to handle that.


Conforming to discovery spec

According to the spec the protocol supports the following three discovery mechanisms:

[x] Link Headers
[ ] Link Elements (XML)
[ ] Link Elements (HTML)

As of now, only link headers are supported.
Link elements in html is being worked on in #2
The readme mentions two more discovery mechanisms:

[ ] Atom feed discovery
[ ] RSS feed discovery

Where are these mechanisms defined in the spec?

Atom feeds and RSS feeds were lightly mention under Content Distribution, and are listed as tests 102 and 103 under the websub.rocks subscriber tests.

For Atom ([RFC4287]) and RSS ([RSS-2.0]) feeds, the hub MAY remove already-delivered atom:entry or rss:item elements from the feed.

This lead me to believe that they were part of the spec, but are not.
So, disregard the readme.

:+1:


Custom font not working

Hello! Thank you for this amazing library. I have set this in the IB: "Montserrat-Semibold".
The font is surely imported correctly into the app, because IB shows this:

But, it breaks when the table view cell displays it. I get this:

I don't modify the cell at all, nor I don't change anything except the progress by calling setProgress.
Any ideas why it break? I also tried to set it programatically, exactly same result.

That's odd, I just tested (not using a cell just a subview of a view controller) and it's working fine.
Using custom Menlo font, as you can see after animating the font stays the same.

Could you send me an example of your project or the project? Post it here or email me at<EMAIL_ADDRESS>if you want to keep it private.

I have already tried to set it programatically, I got the same result.

In order to help further I'm going to need an example project or at least some code to see what may be the cause.
Either link to an example of what you are doing or email me if you prefer to keep your code private.

So you sent me the project, regrettably, I am unable to test it due to the requirements of the app.
However, I went ahead and created a project using a table view controller and table view cells as I thought this may be the cause for why this issue was happening but I am still unable to reproduce.
Here is a screenshot and as you can see the custom font is set correctly, even after animating.

Not sure where to go from here, just try and verify that there isn't any weird stuff going on behind the scenes in your application. Also, make sure the font is correctly imported.

Closing this because I cannot replicate the issue and doesn't seem to be happening on any of my projects, please update if you figure anything else out.

Update on this issue, I have updated the project to include new font system.
Read the release notes in 1.4.0. This may fix the issue you were previously having


Inhance the ui for the navbar

Description
The navbar is not attractive with so much width and gap on sideways and to improve the hovering effect as well.
Screenshots
No response
Additional information
No response
Do you want to work on this issue?

[X] I want to work on this issue.

please assign this to me
thank you


Subtopic missing from data index

Probably because of change in subtopic frontmatter.

Just had to un-comment a line inside a Hugo range, and change an internal_id to IndicatorID

Perfecto, thanks! Closable, yeah?


SELECT WITH query with multiple table aliases in FROM get ignored, only last one considered

Version
1.10.0
What happened?
When selecting with SELECT WITH with multiple table aliases in the FROM statement, only the last one on the statements list gets considered.
Given the query, we're expecting to select everything from both c1 and c2, but the generated query only selects from c2:
WITH
	q
		AS (
			SELECT
				authors.name, authors.bio
			FROM
				authors
				LEFT JOIN fake ON authors.name = fake.name
		)
SELECT
	c2.name, c2.bio, c2.name, c2.bio
FROM
	q AS c1,
	q as c2

Relevant log output
No response
Database schema
CREATE TABLE authors (
  id   BIGSERIAL PRIMARY KEY,
  name text      NOT NULL,
  bio  text
);

CREATE TABLE fake (
  id   BIGSERIAL PRIMARY KEY,
  name text      NOT NULL,
  bio  text
);

SQL queries
-- name: BadQuery :exec
WITH
	q
		AS (
			SELECT
				authors.name, authors.bio
			FROM
				authors
				LEFT JOIN fake ON authors.name = fake.name
		)
SELECT
	*
FROM
	q AS c1,
	q as c2;

Configuration
{
  "version": "1",
  "packages": [
    {
      "path": "db",
      "engine": "postgresql",
      "schema": "query.sql",
      "queries": "query.sql"
    }
  ]
}

Playground URL
https://play.sqlc.dev/p/79910ee88639b38cdbcbbefeccb1e1a55b8492776ed7fd0a4bbb617217411d46
What operating system are you using?
Linux
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go

This is fixed in v1.23.0 by enabling the database-backed query analyzer. We added a test case for this issue so it won’t break in the future.
You can play around with the working example on the playground


Feature environment-file-url. Load env vars from a file located at url

Follow up from #795 . I have a problem of introducing environment file which contains  secrets for the case when tests are executed in the remote environment. For local execution environment-file is fine.
In our case when running test on testing farm or via packit our main plan would look like this:
execute:
    how: tmt
discover:
    how: fmf
prepare:
    - name: main preparation step
      how: ansible
      playbook: tests/ansible_collections/main.yml
environment-file:
  - .env
adjust:
  - environment-file-:
    - .env
    when: distro !=
  - environment-file-url:
      - https://some-repo-with-secrets/secrets.yaml
      - https://some-repo-with-secrets/.env
    when: distro !=

I'd like to make a MR to address this ticket. Are you ok with that approach?

@psss @lachmanfrantisek @thrix @lukaszachy ^^^

Packit specifies distro context, so if distro is not empty, then I know that the tmt run executed in the CI, so I need env vars from url

In order to detect when a tmt plan is executed in packit / testing farm I would suggest using the trigger dimension of the context:
adjust:
    environment-file: ...
    when: trigger == commit

See the trigger documentation for the definition of the dimension.


With the switch to pflag double-dashes are required.

virt-launcher was started with "-qemu-timeout", but with the switch from
flag to pflag it needs to be "--qemu-timeout". pflag would interpret
"-qemu-timeout" as short option "-q" with a value of "emu-timeout".
Fixes regression from #332
Signed-off-by: Roman Mohr<EMAIL_ADDRESS>

@cynepco3hahue FYI, thx for pointing me to the error


Recommend different clients depending on the operating system

This is the long overdue upstreaming of the i.kaidan.im changes :)

No Quicksy for Android? No Monal for iOS / Mac OS?

You are free to add a follow up pull request to add them.

Thanks very much for the contribution. Besides of obviously being biased regarding yaxim as the No. 1 Android client (which I'll fix on my own), it would be great to re-use the platform mapping from https://github.com/xsf/xmpp.org/tree/master/data which is Android / iOS / Linux / macOS / Windows / Browser / Other.
As @licaon-kter wrote, Monal (https://monal.im or https://itunes.apple.com/us/app/monal-free-xmpp-chat/id317711500?mt=8) is currently the preferred iOS (and maybe macOS) client. I disagree with listing  Quicksy though as it has a different use case.
Long story short, please change the "desktop" detection to be "linux" consistent with the browser user-agent string. And if you have the right strings for macOS, I'd be happy as well :)

Honestly I don't really know which clients are the best on the Apple platforms, so I'd be happy about recommedations :)

Now that was a bit parallel. Merged in 082d9519f2be0ed5f8ee2362698b5dca61d51081 albeit with a different Monal wording.


ResolutionException on Forge 37.0.29+

Good afternoon.
I'm using the Architectury Plugin 3.3 snapshot to develop for 1.17 on IntelliJ IDEA 2021.2 (CE). I don't use the IntelliJ-specific plugin. When I use the runClient run configuration with Forge 37.0.29 or above, I receive a ResolutionException. For example:
Exception in thread "main" java.lang.module.ResolutionException: Modules minecraft.mapped.loom.mappings.layered.hash.LOL1024.v2forge and forge export package net.minecraftforge.energy to module examplemod
	at java.base/java.lang.module.Resolver.resolveFail(Resolver.java:908)
	at java.base/java.lang.module.Resolver.failTwoSuppliers(Resolver.java:822)
	at java.base/java.lang.module.Resolver.checkExportSuppliers(Resolver.java:743)
	at java.base/java.lang.module.Resolver.finish(Resolver.java:379)
	at java.base/java.lang.module.Configuration.<init>(Configuration.java:140)
	at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:494)
	at MC-BOOTSTRAP/cpw.mods.modlauncher@9.0.7/cpw.mods.modlauncher.ModuleLayerHandler.buildLayer(ModuleLayerHandler.java:70)
	at MC-BOOTSTRAP/cpw.mods.modlauncher@9.0.7/cpw.mods.modlauncher.TransformationServicesHandler.buildTransformingClassLoader(TransformationServicesHandler.java:61)
	at MC-BOOTSTRAP/cpw.mods.modlauncher@9.0.7/cpw.mods.modlauncher.Launcher.run(Launcher.java:104)
	at MC-BOOTSTRAP/cpw.mods.modlauncher@9.0.7/cpw.mods.modlauncher.Launcher.main(Launcher.java:77)
	at MC-BOOTSTRAP/cpw.mods.modlauncher@9.0.7/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
	at MC-BOOTSTRAP/cpw.mods.modlauncher@9.0.7/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
	at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:90)
	at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
	at dev.architectury.transformer.TransformerRuntime.main(TransformerRuntime.java:262)

I get a different exception every time I run it with different module and package names, but it's always a ResolutionException with the same stack trace.
The changelog for Forge 37.0.29 is Bump BootStrapLauncher, and make sure Capability providers call parent revive.. The related commit is fcc8195.
Solutions I've Tried
I've tried cleaning the project manually and with the Gradle tasks, re-importing the Gradle project, wiping my project and re-importing it from GitHub, invalidating caches through IntelliJ, and manually clearing my user .gradle folder to no avail.
Downgrading the Forge version to 37.0.28 or below resolves the problem.
I also searched GitHub to look for other repositories using the 3.3 plugin to see how they solved the problem, but nobody else appears to have tried using Forge 37.0.29+.
Steps to Reproduce
I initially encountered this issue while developing my mod, but I was able to reproduce it on the example mod provided by Architectury. This makes me believe that the problem is within the plugin and not my own project.

Clone the example mod repository and checkout the 1.17 branch.
Change the Forge version to 37.0.29 or above.
Generate run configurations with the genIntelliJRuns Gradle task.
Run runClient on the Forge subproject. A ResolutionException will appear after the mod files are discovered.
Downgrade the Forge version to 37.0.28, refresh the Gradle project, and runClient again. The game opens normally.

My mod doesn't use the Architectury API, and the issue still occurs.

Thanks! that helps to narrow down the issue to a specific commit.

Fixed, please refresh gradle via --refresh-dependencies, it would fetch the latest plugin versions.


Use curl instead of wget in integration/

So that the integration tests can be fired on Mac

Run gofmt on the following files:
 ./integration/framework.go

LGTM


feat: allow literal duplicates

Duplicate detection currently completely disallows duplicates of any kind based on (GroupKind, name, namespace). It can sometimes be useful to allow literal duplicates, that is, duplicates where the objects' contents match completely. For example, two CRDs with identical definitions are not harmful, and so long as the CRD chosen is stable, we're in good shape.

It fails with provenance fields (because they are annotations inside the object):
$ ./kubecfg show testdata/duplicates_literal.jsonnet
---
apiVersion: v1
data:
  some: value
kind: ConfigMap
metadata:
  name: foo
  namespace: myns
---
apiVersion: v1
data:
  some: value
kind: ConfigMap
metadata:
  name: foo
  namespace: myns
$ ./kubecfg show testdata/duplicates_literal.jsonnet --show-provenance
ERROR duplicate resource ConfigMap, "myns", "foo"

(the test fails because the CI for some reason pushes the docker image to the GHCR repository even if this is just a PR; and coming from a fork it fails)

instead of just ignoring the duplicate, we should be deduplicating the list of objects and keep only the first one (and ignore duplicates provided that the content is the same, module the provenance annotations)

Ahh, I thought we were doing that already. Happy to do it.

I refactored CheckDuplicates into a RemoveDuplicates variant that returns a deduplicated slice of unstructured objects.

there are some tests that fail:
$ make test
go test  -tags netgo -installsuffix netgo -ldflags="-X main.version=dev-2023-03-07T19:53:02+0100-dcb42464 " -race ./...
?   	github.com/kubecfg/kubecfg	[no test files]
?   	github.com/kubecfg/kubecfg/lib	[no test files]
?   	github.com/kubecfg/kubecfg/pkg/kubecfg/vars	[no test files]
?   	github.com/kubecfg/kubecfg/pkg/oci	[no test files]
--- FAIL: TestShowOverlay (0.00s)
    show_test.go:60: Running args [--alpha show ../testdata/configmap.jsonnet ../testdata/secret.jsonnet]
    show_test.go:265: got: "---\napiVersion: v1\nkind: Secret\nmetadata:\n  name: test\n---\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: test\n", want: "---\napiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: test\n---\napiVersion: v1\nkind: Secret\nmetadata:\n  name: test\n"
FAIL
FAIL	github.com/kubecfg/kubecfg/cmd	0.093s
ok  	github.com/kubecfg/kubecfg/pkg/kubecfg	0.206s
ok  	github.com/kubecfg/kubecfg/utils	0.751s
FAIL
make: *** [gotest] Error 1

Hmm...they passed on my machine. I'll take a look--thanks!

Yeah, they still pass on my machine. They also pass in CI. What revision are you using?

After clearing my local test cache with go clean -testcache, they indeed still pass. Non-deterministic test, wrong revision, or environment difference?

It looks like that test failure you shared is caused by the order of output objects differing from what is expected.
Got
---
apiVersion: v1
kind: Secret
metadata:
  name: test
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: test

Want
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: test
---
apiVersion: v1
kind: Secret
metadata:
  name: test

It appears that I may have introduced some non-determinism with this change. I'll investigate.

Ok, fixed, and that cleaned up the code a bit too. I wasn't a big fan of the objectHashPair type. Now it's unnecessary!
PTYAL (hopefully the last). Great catch, by the way. It might be worth adding a test for stable output order in a future PR.


password is now hidden

Test:

on the login and register page the password field should be hidden

details:

changed group_project1\base\templates\base\login_register.html so that the password field is now hidden

 Change the login page to hide the password field when typing it in.


[ACM-6677] Migrated Observability out of ACM bundle

Migrating Observability to be deployed by the MCH operator and not OLM.

/hold

/lgtm

/hold

/lgtm

/unhold


Organized codebase by separating UserCard.js in Card folder

Fixes Issue
Organized codebase by separating the UserCard.js component into its ./components/Card for better readability
Changes proposed

Added Card folder in components to add all components that represent cards or can be used as a card.

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] My change requires changes to the documentation.
[x] I have updated the documentation accordingly.
[x] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

I personally think it's better being in the user folder as everything related to 'user' page is in there
This change can disturb the structure of codebase and can make it harder to navigate between files

At first I thought the same way that It would be easy to understand the code by the user. But by defining different sub folders with meaningful data can be a good thing which most of the folks said.


Compilation Error with the latest version

update to the latest version of mxnet, I face a compilation error as follows:
include/mxnet/././tensor_blob.h(39): error: cannot determine the exception specification of the default constructor due to a circular dependency
My gcc is 4.8.5 and cuda 6.5. Everything works well under the previous version.

do you update the submodule?

anyone who knows how to solve this problem? I have the same configuration with Cuda 6.5 and I also tried both gcc 4.8 and 5.
I have cloned recursively , so I updated all the submodules but I faced the same issue.
Could it be related with the introduction of the c++11 flag here ? #2585

+1 met this problem too.

@yuzcccc @marcociccone  My colleagues advise me to use cuda7.5, I did and problem solved. You can try too.

I've reproduced this issue on tk1, with cuda-6.5 and cuDNNv2. Currently cuda-6.5 is the highest version for tk1.
(mxnet commit id: 4ac67307dfe97c6d2490f8f050f941ef96fc44c3)

Hi all, an update on this issue:
I've tried to change the definition in tensor_blob.h from
Tuple()=default;
to
inline Tuple(){}
and that seemed to do the trick (for me at least). However, I have no idea if this might impact something else in the long run.

This issue is closed due to lack of activity in the last 90 days. Feel free to ping me to reopen if this is still an active issue. Thanks!


[6.0] Fix plural categories in message selector

Explanation
Currently, the message selector used in Laravel has many issues:
1. It doesn't support every locale
Uncommon locales like bm (Bambara) aren't supported.
2. It doesn't support decimal numbers
You can only use integers so sometimes the result can be invalid:
Lang::choice('singular|plural', '1.0', [], 'en')

This code should return plural but in the current version it returns singular. It's possible to bypass pluralization by specifying number ranges but ain't nobody got time for that.
3. It doesn't support all the plural categories
Because the message selector doesn't support decimal numbers, a few locales like pl (Polish) has missing support for some plural categories and return wrong results.
4. Some locales have wrong pluralization rules
AFAIR there are locales like pt_PT (Portuguese (Portugal)) and cy (Welsh) that returns wrong results for some cases (even when using integer numbers).
Implementation
I decided to completely rewrite the getPluralIndex method based on Language Plural Rules from Unicode Consortium (here you can find the more programmer-friendly list). After this PR the message selector:

will properly  support decimal numbers
will support every locale (and every plural category)

This is a breaking change for locales like cs (Czech) and sk (Slovak), because they will now support many category:

one
few
many (new category between)
other

I'm confused. Why would your code example return plural? You passed 1.0.

If you look at English plural rules you will see that one category (singular) is used when the following rules are true - i = 1 and v = 0.

i - integer digits of n
v - number of visible fraction digits in n, with trailing zeros

So the number:

1 is singular (one)
1.0 is plural (other) because v != 0 (it's equal to 1)

Here you can find more information about plural operands.
Also, there is a Wikipedia article about English plurals with the following information:

Any quantity that includes decimal precision is plural. This includes 1 followed by any number of zeros. It is normal to say 1.0 gallons per flush, for instance, 0.6 units, or 3.3 children per couple, not *1.0 gallon, *0.6 unit, or *3.3 child per couple.

No plans to change this. I think 99% of people would expect 1.0 to be singular.

So... you're closing my PR only because you don't like the fact that 1.0 is plural? What about other languages that don't work correctly?

@driesvints: Can you check my PR and confirm those bugs?

@bonzai sorry man. If Taylor closed your pr then I don't think we'll change this any time soon.


Error : installing scikit-bio with poetry

Hi there!
i'm installing scikit-bio with poetry:
poetry add scikit-bio
no error on installing.
but when i trying to run anywhere, as example:
import skbio

print(skbio.__version__)

i'm getting this error:
Traceback (most recent call last):
  File "/home/reveur/python/environmental/quickBio/ed.py", line 1, in <module>
    import skbio
  File "/home/reveur/python/environmental/quickBio/.venv/lib/python3.11/site-packages/skbio/__init__.py", line 12, in <module>
    import skbio.io  # noqa
    ^^^^^^^^^^^^^^^
  File "/home/reveur/python/environmental/quickBio/.venv/lib/python3.11/site-packages/skbio/io/__init__.py", line 290, in <module>
    import_module("skbio.io.format.clustal")
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/reveur/python/environmental/quickBio/.venv/lib/python3.11/site-packages/skbio/io/format/clustal.py", line 148, in <module>
    from skbio.alignment import TabularMSA
  File "/home/reveur/python/environmental/quickBio/.venv/lib/python3.11/site-packages/skbio/alignment/__init__.py", line 211, in <module>
    from ._tabular_msa import TabularMSA
  File "/home/reveur/python/environmental/quickBio/.venv/lib/python3.11/site-packages/skbio/alignment/_tabular_msa.py", line 18, in <module>
    from skbio.sequence import Sequence
  File "/home/reveur/python/environmental/quickBio/.venv/lib/python3.11/site-packages/skbio/sequence/__init__.py", line 329, in <module>
    from ._substitution import SubstitutionMatrix
  File "/home/reveur/python/environmental/quickBio/.venv/lib/python3.11/site-packages/skbio/sequence/_substitution.py", line 12, in <module>
    from skbio.stats.distance import DissimilarityMatrix
  File "/home/reveur/python/environmental/quickBio/.venv/lib/python3.11/site-packages/skbio/stats/__init__.py", line 69, in <module>
    from ._subsample import subsample_counts, isubsample
  File "/home/reveur/python/environmental/quickBio/.venv/lib/python3.11/site-packages/skbio/stats/_subsample.py", line 18, in <module>
    from biom import subsample as biom_subsample
  File "/home/reveur/python/environmental/quickBio/.venv/lib/python3.11/site-packages/biom/__init__.py", line 51, in <module>
    from .table import Table
  File "/home/reveur/python/environmental/quickBio/.venv/lib/python3.11/site-packages/biom/table.py", line 196, in <module>
    from ._filter import _filter
  File "biom/_filter.pyx", line 1, in init biom._filter
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Another error with biom (it coming with scikit-bio)
import biom

print(biom.__version__)

Traceback (most recent call last):
  File "/home/reveur/python/environmental/quickBio/ed.py", line 1, in <module>
    import biom
  File "/home/reveur/python/environmental/quickBio/.venv/lib/python3.11/site-packages/biom/__init__.py", line 51, in <module>
    from .table import Table
  File "/home/reveur/python/environmental/quickBio/.venv/lib/python3.11/site-packages/biom/table.py", line 196, in <module>
    from ._filter import _filter
  File "biom/_filter.pyx", line 1, in init biom._filter
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

if i installing with pip, not error.
but all my dependencies is manage with poetry, any way to fix that?
import numpy
print(numpy.__version__) # 2.0.1

no error here

Hi @iBuitron It looks like the most plausible reason is that the skbio copy you were installing attempted to build against NumPy 1.x. Is there a command-line way to check what version of skbio was being installed by poetry? If below 0.6.1, then it won't work with NumPy 2.0. If 0.6.1 or above, it should, but there may be a chance that the build process is isolated and not respecting the NumPy version (2.0) you already installed in the system. This is something you can check. I am not familiar with poetry though...


Mutation to edit the Start time of a beacon

There is no mutation to change the start time of a beacon. A new mutation for editing start time could be introduced.

@aadibajpai For this, should I create a new mutation or edit the existing changeBeaconDuration for having the startsAt argument too?

@aadibajpai For this, should I create a new mutation or edit the existing changeBeaconDuration for having the startsAt argument too?

I think this is smart

I'm a little confused :) Should I edit the mutation itself is what you mean here?

I'm a little confused :) Should I edit the mutation itself is what you mean here?

yeah sorry should have been more specific, editing the existing mutation is better I think

Sure! Thanks for the advice :)


fix(curriculum): Added missing full stop after 'entirely'.

Added full stop after 'entirely' in the following challenge: https://www.freecodecamp.org/learn/front-end-development-libraries/jquery/remove-an-element-using-jquery
Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Hi @tgoulder4. Congrats on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We are happy to accept these changes and look forward to future contributions. 📝


Feat: Detect If A Message Contains Units And Reply With A Few Basic Conversions

New message handler under commands/unit_conversion.py, handle_mentioned_units.
If a message is detected with one of the supported units the bot will reply with a small message containing the Imperial to Metric conversion and vice versa.

maybe add aliases like
liter => litre
kilometer => kilometre
etc


chore(pkg): update karma, grunt-karma, & karma-phantomjs-launcher

Updates karma, grunt-karma, & karma-phantomjs-launcher. The npm test command wasn't working otherwise for me on Node 7.4.0 with npm 4.0.5 on macOS 10.12.2 (16C67).

Thanks for fixing this! I think I wrote this before node 1.0 even dropped


Create round filter

The round filter should be a dropdown populating from the available rounds given any other filters present; e.g., if banks is over and 9 ball has just started, and I choose 9 ball for the game filter, I shouldn't see 13 / 14 / 15

Maybe not a dropdown 🤔
- curr +
might be better, where the - is disabled when you're at round 1, the + is disabled when you're at the max for current filters, and curr shows the current round, with an x so you can remove the filter

Just a dropdown after all, since getting - and + to control the displayed value of the dropdown didn't really work.
Closed by #12 and 77403d5


Prepare XSpec for release v0.5.0

This PR addresses #52. Main changes include:

add release badge (displayed when the release is available)
remove references to maven plugins as XSpec plugins are in the process to be consolidated under the XSpec organisation
remove reference to jxsl (this project doesn't seem to be active anymore)
add section Contribute
update License section and years in copyright

I also updated the wiki and the release notes. I believe everything is ready to release XSpec v0.5.0.
@tgraham-antenna, @magwas, @cmarchand, @markdunnoup, @c4s4, @AirQuick, @tofi86, @shapiy, @yamahito: you contributed to this release of XSpec by sending pull requests, reporting bugs, raising issues, and providing feedback and comments. Your valuable contribution is acknowleged in the release notes.
Are you happy for me to release XSpec v0.5.0? Please send your approval or thumbs up!
Thanks,
Sandro

I do approve the 0.5.0 release. Thanks a lot for your great job !Best,Christophe
Sandro Cirulli<EMAIL_ADDRESS>wrote:
I also updated the wiki and the release notes. I believe everything is ready to release XSpec v0.5.0.
@tgraham-antenna, @magwas, @cmarchand, @markdunnoup, @c4s4, @AirQuick, @tofi86, @shapiy, @yamahito: you contributed to this release of XSpec by sending pull requests, reporting bugs, raising issues, and providing feedback and comments. Your valuable contribution is acknowleged in the release notes.
Are you happy for me to release XSpec v0.5.0? Please send your approval or thumbs up!
Thanks,
Sandro
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.    {"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xspec/xspec","title":"xspec/xspec","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/xspec/xspec"}},"updates":{"snippets":[{"icon":"PERSON","message":"@cirulls in #53: I also updated the wiki and the release notes. I believe everything is ready to release XSpec v0.5.0.\r\n\r\n@tgraham-antenna, @magwas, @cmarchand, @markdunnoup, @c4s4, @AirQuick, @tofi86, @shapiy, @yamahito: you contributed to this release of XSpec by sending pull requests, reporting bugs, raising issues, and providing feedback and comments. Your valuable contribution is acknowleged in the release notes. \r\n\r\nAre you happy for me to release XSpec v0.5.0? Please send your approval or thumbs up!\r\n\r\nThanks,\r\n\r\nSandro  \r\n\r\n "}],"action":{"name":"View Pull Request","url":"https://github.com/xspec/xspec/pull/53#issuecomment-271179880"}}}

Great, thanks for your work to revive this project, @cirulls! 👍

I am happy with a new release.
On 01/08/2017 10:13 PM, Sandro Cirulli wrote:

I also updated the wiki and the release notes. I believe everything is ready to release XSpec v0.5.0.
@tgraham-antenna, @magwas, @cmarchand, @markdunnoup, @c4s4, @AirQuick, @tofi86, @shapiy, @yamahito: you contributed to this release of XSpec by sending pull requests, reporting bugs, raising issues, and providing feedback and comments. Your valuable contribution is acknowleged in the release notes.
Are you happy for me to release XSpec v0.5.0? Please send your approval or thumbs up!
Thanks,
Sandro

Very happy, but I'm pushing some issues and possibly pull requests... Would be nice if you can triage them before finalizing this.

Thanks everybody for your support and encouragement!
@AirQuick : I will triage the open issues and pull requests you raised, just give me few days. In general, if it's a quick fix (e.g. documentation, updating paths, etc.), we will integrate it in release v0.5.0. If it requires more time to work on or review, it will feature in the next release. In any case, my idea is to ship new features and bugfixes on master branch as soon as they are ready and to issue a new release every few months to list changes, package XSpec in a zip file, and spread out the word.

In any case, my idea is to ship new features and bugfixes on master branch as soon as they are ready and to issue a new release every few months to list changes, package XSpec in a zip file, and spread out the word.

@cirulls Would you consider working with a develop branch and only merging to master for stable releases?
Since some people pull the master branch in their build process and/or in CI (Travis, etc.) it would be easier for them to rely on a stable master branch and only need to adapt to changes once a final release is merged to your master...
Just my two cents...

@tofi86 : that's a very good point and I know there are different schools of thought. Some prefer to ship changes to master fast so that they can get feedback from users. It's a sort of continuous delivery process and it works well as long as there are no breaking changes and feedback is implemented fairly quickly. Others prefer a slower pace of development with code merged to master in one go and official releases.
What do people think? I'm happy to implement what the XSpec community find more useful.

yeah, sure, there's different opinions about that. But just think about the latest changes regarding Saxon. I had to change my projects build file twice during the preparation of 0.5.0 to be able to run travis builds – comparing to a single change when 0.5.0 was released as merge commit on master branch...
So I obviously vote for development on develop and stable releases on master 😊

In my opinion, nobody should rely on external sources to build a project, only on available built releases.
If you have many releases used in production, you should have one maintenance branch per release.
And new features should come as quickly as possible on master branch, to make them available for beta-testers.
We need to know if new developements do not break anything ; so we need to apply CI on new developements branch, not on stable releases, that thave been already built. Releases have been built, unit tests have succeed, sources state have been tagged, or commited with a specific message.
So, in a complete opposition to @tofi86 , I vote for new developements on master branch, and maintenance branches when necessary

This release is a great news.
I don't even understand how a serious XSLT coder might develop without
using your tool in 2017!
Best wishes for this project
2017-01-10 9:59 GMT+01:00 Sandro Cirulli<EMAIL_ADDRESS>
Thanks everybody for your support and encouragement!
@AirQuick https://github.com/AirQuick : I will triage the open issues
and pull requests you raised, just give me few days. In general, if it's a
quick fix (e.g. documentation, updating paths, etc.), we will integrate it
in release v0.5.0. If it requires more time to work on or review, it will
feature in the next release. In any case, my idea is to ship new features
and bugfixes on master branch as soon as they are ready and to issue a new
release every few months to list changes, package XSpec in a zip file, and
spread out the word.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/xspec/xspec/pull/53#issuecomment-271520810, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABMh_0re1ESeLNBB99HlfVGeSJMa5eyIks5rQ0hZgaJpZM4LdyQQ
.

--
Michel Casabianca

@c4s4 : thanks, that's very encouraging to hear that XSpec is a useful tool, I hope more XSLT developers will use it in the future!

@AirQuick : I triaged all the current issues and pull requests and assigned them either milestone v0.5.0 or v0.6.0 (or mark them as a question when I still need to do some proper investigation). I will address issues and pull requests with milestone v0.5.0 as a priority so that a new release of XSpec can be issued by the end of this week. I will then move to milestone v0.6.0.

@cmarchand and @tofi86 : I wonder if we can find a compromise. I suggest this:
Each release is a snapshot of branch master at a given point in time and is tagged consistently using git tag and semantic versioning. This allows @tofi86 to embed a stable release version of XSpec in his project using this git command in his Travis configuration:
git clone --branch v0.5.0 https://github.com/xspec/xspec

New features and bug fixes are pushed to master as soon as they are available and tested (I'm trying to add a test each time a pull request is merged to master). This should satisfy @cmarchand's requirements. At a specific point in time there will be another official release, e.g. v0.6.0. When @tofi86 wants to try out the latest release version of XSpec, he will simply change his Travis configuration to:
git clone --branch v0.6.0 https://github.com/xspec/xspec

@cmarchand and @tofi86 : would this address your use cases?

@cmarchand and @tofi86 : would this address your use cases?

yep, I think I could live with that ;-)

It' OK for me, thanks @cirulls

@AirQuick : this is the last pull request to be merged for v0.5.0, it just updates the README file. Are you happy for me to merge it and release XSpec v0.5.0? The remaining issues and pull requests will be part of v0.6.0.

Thanks everybody for your contributions, support, and encouragement. XSpec v0.5.0 is now available.

Our latest release has been picked up by the recently revamped XML.com website. Today is even on the front page as latest news.

Nice !
Sandro Cirulli<EMAIL_ADDRESS>wrote:
Our latest release has been picked up by the recently revamped XML.com website. Today is even on the front page as latest news.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.    {"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xspec/xspec","title":"xspec/xspec","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/xspec/xspec"}},"updates":{"snippets":[{"icon":"PERSON","message":"@cirulls in #53: Our latest release has been picked up by the recently revamped XML.com website. Today is even on the front page as latest news. "}],"action":{"name":"View Pull Request","url":"https://github.com/xspec/xspec/pull/53#issuecomment-273339928"}}}

XSpec 0.5.0 will be covered at oXygen User Meetup at the upcoming XML Prague Pre-Conference day:

https://twitter.com/georgebina/status/826095719555690496
https://oxygenxml.com/events/2017/oXygen-user-meetup-Prague.html#prague2017_agenda

@tofi86 : thanks for the heads-up, this is awesome! Are you going to be at XML Prague 2017? Unfortunately I can't this year. Can you let us know what people discuss in terms of XSpec and what feature may want to see in the future?

Yes, I will be at XML Prague again this year.
And I will report from the oXygen talks and discussion, sure thing! :)
Probably you want to hold a pre-conference XSpec session / users meet up next year?

Am 31.01.2017 um 08:59 schrieb Sandro Cirulli<EMAIL_ADDRESS>@tofi86 : thanks for the heads-up, this is awesome! Are you going to be at XML Prague 2017? Unfortunately I can't this year. Can you let us know what people discuss in terms of XSpec and what feature may want to see in the future?

Thanks for reporting back after the event, feel free to represent XSpec as you're contributing to this open source project.
Yes, @tgraham-antenna asked me this as well but unfortunately I couldn't make it to Prague this year. I'll keep it in mind for next year. If XML London is organised this year we can definitely think of preparing something for that event (going to London is easier for me).

I will also be at Prague.
The subject I'm mostly interested in is being able to expect errors (I expect this function call with this parameters throw error ERR-2341)
It's a subject Arnaud Malguy should work on.
See you there, Tobias.

great, see you there, Christophe! :)

Before XSpec, I used Juxy because, being written in Java, it could catch errors and even catch <xsl:message terminate="yes" />.  If I had infinite spare time, I'd make Juxy understand XSpec tests.

@tgraham-antenna : one of the features I have in mind for the future is to release XSpec as a .jar file so that it can be integrated in other Java projects. Do you think it would be useful and partly compensate for your lack of infinite spare time to further develop Juxy?

For those who are interested, there is an Oxygen webinar on unit testing with XSpec on Tuesday 28th February 2017. It seems there will be a mention of XSpec v0.5.0.

@cirulls : not really.  The advantage of Juxy is that it can catch and report errors that make the stylesheet-under-test terminate.  If you just bundle the current XSLT-based framework as a bunch of stylesheets that happen to be in a .jar file, then you haven't changed that terminating the stylesheet-under-test terminates XSpec.  Upgrading XSpec to use XSLT 3.0's try/catch could make an XSpec that can catch errors that terminate the stylesheet-under-test.


Question about Model

Hi, I am reading through the code and trying to understand how the model works. Can you clarify to me what is the meaning of batch.pop("Y") ? What does batch.pop do? What is the data type of batch?
class Module(pl.LightningModule):
    def training_step(self, batch, batch_idx):
        Y = batch.pop("Y")
        logits = self(**batch)
        loss = self.loss(logits, Y)
        self.log("train/loss", loss)
        return loss

Nevermind, I see now:
    def __getitem__(self, idx):
        row = self.df.iloc[idx]
        x = row.seq
        # x = x[400:600]
        # x = x[300:700]
        x = self.tokenizer(
            x,
            padding="max_length",
            max_length=self.max_length,
            return_token_type_ids=False,
            return_tensors="pt",
            truncation=True,
        )
        d = dict(
            input_ids=x["input_ids"].flatten(),
            attention_mask=x["attention_mask"].flatten(),
            Y=torch.tensor(row[self.features].values.astype(np.uint8)),
        )

Alright, will close for now. Let me know if you have any other questions!

Thanks so much!
I was just wondering if you could explain the reason why GPNDataModule is used in /chromatin/trainer.py but Trainer is used with DataCollatorForLanguageModelingSpan in /mlm/run_mlm_custom.py? What is the difference between these two training scripts?  Is the /chromatin/ for fine tuning and the /mlm/ for the language model task?

Another question – in run_mlm_custom you have:
config = CONFIG_MAPPING[model_args.model_type]()
And when running the model you have: --model_type ConvNet \
But I get the following error:
config = CONFIG_MAPPING['ConvNet']()
KeyError: 'ConvNet'

One more question:
        self.conv = nn.Sequential(
            TransposeLayer(),
            nn.Conv1d(
                in_channels=hidden_size,
                out_channels=hidden_size,
                padding="same",
                **kwargs,
            ),
            TransposeLayer(),
            nn.GELU(),
            nn.LayerNorm(hidden_size),
        )

Why do you have a TransposeLayer() here? Won't the convolution output be the same with our without a transpose? (since the convolution itself would just be transposed, no?)
Secondly, you have:
class OneHotEmbedding(nn.Module):
    def __init__(self, hidden_size=None):
        super().__init__()
        self.hidden_size = hidden_size

    def forward(self, x):
        return F.one_hot(x, num_classes=self.hidden_size).float()

with
class ConvNetConfig(PretrainedConfig):
    def __init__(
        self,
        vocab_size=7,
        hidden_size=512,
        n_layers=30,
        kernel_size=9,
        dilation_double_every=1,
        dilation_max=32,
        dilation_cycle=6,
        initializer_range=0.02,
        **kwargs
    ):

Is there a reason you are initializing the OneHotEmbedding in 512 dimensions?

Another question – in run_mlm_custom you have: config = CONFIG_MAPPING[model_args.model_type]() And when running the model you have: --model_type ConvNet \ But I get the following error:
config = CONFIG_MAPPING['ConvNet']()
KeyError: 'ConvNet'

Usually import gpn.mlm makes sure that 'ConvNet' is registered. Could you provide some more details on how you run the script?

One more question:
        self.conv = nn.Sequential(
            TransposeLayer(),
            nn.Conv1d(
                in_channels=hidden_size,
                out_channels=hidden_size,
                padding="same",
                **kwargs,
            ),
            TransposeLayer(),
            nn.GELU(),
            nn.LayerNorm(hidden_size),
        )

Why do you have a TransposeLayer() here? Won't the convolution output be the same with our without a transpose? (since the convolution itself would just be transposed, no?)
Secondly, you have:
class OneHotEmbedding(nn.Module):
    def __init__(self, hidden_size=None):
        super().__init__()
        self.hidden_size = hidden_size

    def forward(self, x):
        return F.one_hot(x, num_classes=self.hidden_size).float()

with
class ConvNetConfig(PretrainedConfig):
    def __init__(
        self,
        vocab_size=7,
        hidden_size=512,
        n_layers=30,
        kernel_size=9,
        dilation_double_every=1,
        dilation_max=32,
        dilation_cycle=6,
        initializer_range=0.02,
        **kwargs
    ):

Is there a reason you are initializing the OneHotEmbedding in 512 dimensions?

The transpose layer is to make sure the tensor dimensions are compatible with the different operations. For example, conv1d may expect batch,channels,position while layernorm may expect batch,position,channels.
The OneHotEmbedding into 512 dimensions is just to simplify all the convolutional layers to have the same dimensions... It's certainly a waste of parameters and compute.

Thanks, with your help I understand all of these! I now have the model running, but I just wanted to check how long does one batch of 128 take (for the MLM task) on a single GPU for you?

Hey, would love to know this^ for benchmarking purposes

Hey! Sorry I don't have everything set up to easily check this scenario right now.


trigger beforeFullReload hook before full-reload

@ycmjason do you think you can add other missing events?

@sheremet-va done. hope that's fine.


Update 01-introduction.xml

Fixed a minor typo in the documentation: "...which features and solutions are appropriate to the task and should to be used" -> "...which features and solutions are appropriate to the task and should be used".

D'oh. Yes.


Card header feels not center-aligned

https://pxblue-components.github.io/angular-dev/?path=/story/components-empty-state--within-a-card feels a bit off-centered to my eye (~2px off)

Look into whether this is a theme issue or if it's just a error in the storybook.

@bkarambe This looks like a duplicate of the issue you're working on right?  If this is correct can you assign yourself to this one?


Lab 02L04, az140-dc-vm11 and WVDInfra do not work for AADDS option

Module: 2
Lab: 02L04
Exercise: 1, Task: 1
Step: 2, 6
The issues in lab 02L03 are here too: lab instructions use az140-dc-vm11 and WVDInfra, which do not work if one takes the AADDS option, although the dependency section states both AADDS and ADDS

Pls see my response to #12
rgds
Marcin


Jupyter notebook stuck loading, not showing content, in VSCode

Environment data

VS Code version: 1.59.1
Jupyter Extension version (available under the Extensions sidebar): v2021.8.1236758218
Python Extension version (available under the Extensions sidebar): v2021.8.1159798656
OS (Windows | Mac | Linux distro) and version: Windows_NT x64 10.0.18363
Python and/or Anaconda version: Python
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A and venv (both tried)
Jupyter server running: Local

Expected behaviour
Open new file and show a cell (window for input), or open existing file and show content of existing notebook(s).
Actual behaviour
Not showing content. I can not (visually) edit anything. When I press 'Restart' nothing happens.
The loading bar always shows as if it is loading something, but cannot. It shows a ribbon where I can select '+ Code' or '+ Markdown'. But does not actually do anything.
Steps to reproduce:
A printscreen of the situation:

Logs
No logs or errors are given.

@Dervis-vL Sorry about the issue. There are a couple of logs that could help with investigating this.

In VS Code after opening a file and getting into this situation go to Help->Toggle Develeoper Tools, then in that developer tools window go to the Console tab, right click in the log and use Save As to save that log.
Then in the Output: Jupyter window also copy out the contents there into a file.

Those file can then be attached to a comment here. The situation that you are showing here doesn't look familiar to me, and I can repro it myself, so I think that I'd need those logs to investigate more.

#6132 seems to be related
@DavidKutu

@DavidKutu Yes, this could be the same issue.
I can't see how this issue is resolved since the conversation seems to be blocked.

@Dervis-vL This issue is something that is being resolve in the code VS Code, it's not actually Jupyter specific. If you want to track an issue you can look at these two in the VS Code repro:
https://github.com/microsoft/vscode/issues/124383
https://github.com/microsoft/vscode/issues/122951


Log of changes of updated packages

Something I really miss from Paradox is the ability to very easily see a git log of the changes to a package since it was last updated. This was amazing for discovering new features added to a package, or otherwise keep up with its development, which in my case encouraged involvement (contribution, feedback, etc.) in package development. One could argue this benefits the emacs package ecosystem.
I feel like it should be even more possible/appropriate with straight given that with Paradox it would have to find the GitHub git repo, assuming it was even on GitHub, and then query the GitHub API to obtain the commit list, since it can't assume an existing local repo. Straight could instead invoke git log old..new or whatever the syntax for that is, and present it in a neat format.
It would be amazing if a magit-like interface were presented. In fact, maybe magit features themselves can be leveraged, given they already are when intervention of certain problems is required. Just did a quick skim of the manual and trying (magit-log-other '("oldrev..newreg")) accomplishes this, though I have no clue if that would be the best way. If magit were delegated to, the only remaining link would be an easy list/dash view of all updated packages which upon pressing Enter (for example) would open this buffer.

Yep, agreed and sounds good. We should use Magit for this. The main technical problem to be solved is figuring out what the old revision was. I think the best paradigm is to copy Git and keep a file on disk somewhere that records these revisions (à la FETCH_HEAD)—or maybe we can even leverage Git itself to keep track of it (would using FETCH_HEAD directly work)?
This feature has been proposed before, but has never had a dedicated issue. Thanks for making one :)

(setq straight-vc-git-auto-fast-forward nil)
When I want to update my packages I do

M-x straight-fetch-all (go watch cat videos or someting while it downloads)
M-x straight-merge-all

For every package with possible updates straight will say something like "remote is ahead of local" (not verbatim) and offer to open in magit with g (without the setq above it silently updates).
Then for magit I have '([unpulled status] . show) in magit-section-initial-visibility-alist so it shows the list of unpulled commits, or I can magit-log. Looks like this:

To go back to the straight prompt C-M-c. If you updated in magit it will go to the next package, otherwise you can tell straight to update with f.
If you only want to look at 1 package you can straight-{fetch,merge}-package for it.

If magit were delegated to, the only remaining link would be an easy list/dash view of all updated packages which upon pressing Enter (for example) would open this buffer.

I don't have a system for this though.

FYI, you can use M-x straight-x-fetch-all for faster execution of package fetching (thanks @xuchunyang in https://github.com/raxod502/straight.el/pull/257). I'd love to see this interface integrated into straight.el proper; maybe we can extend that UI paradigm to cover reviewing changes as well.

or maybe we can even leverage Git itself to keep track of it

I think that's certainly possible, either with a tag or branch or something that straight updates after merging (even if it's never actually checked out), then it would just be a matter of git log theref...
As you noted with FETCH_HEAD, this may already be tracked out of the box. For example I've used reflog shortname @{1} in git log @{1}.. to basically log from the second-to-last reflog entry onward.

Reference logs, or "reflogs", record when the tips of branches and other references were updated in the local repository.

Source: https://git-scm.com/docs/git-reflog
So the last (most recent) reflog entry @{0} would be the current HEAD (IIUC), and so @{1} would be what HEAD was before that. So I use an alias with this to see a log of the changes since the revision before the pull, for example. Maybe something similar can be leveraged.
This page documents these shortnames succinctly. You can specify the refname, i.e. master@{1}, or you can omit it for the current branch to be inferred.

Fixed by: #711


Water Sensors: MJH

The site has been offline since 08/08/2022. Last signal strength from nodes and gateway range from -77 to -89. Can this VA East site be reset? Do we know if it is collecting data?

Contacted Joey for info on this farm


Brewfile and docs

@montanalow Finally fixed the duplicate heading ids in our toc, atomic counters ftw!


Autorest Regen Preview to 3.0.0-alpha.20230420.3 by Dapeng Zhang from refs/pull/3279/merge

Triggered from https://github.com/Azure/autorest.csharp/pull/3279

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


apply github api interface

Codecov Report

Merging #46 into master will decrease coverage by 1.3%.
The diff coverage is 77.77%.

@@            Coverage Diff             @@
##           master      #46      +/-   ##
==========================================
- Coverage   77.77%   76.47%   -1.31%
==========================================
  Files           2        2
  Lines          81       85       +4
  Branches       10       10
==========================================
+ Hits           63       65       +2
- Misses         12       14       +2
  Partials        6        6

Impacted Files
Coverage Δ

src/main/github/projects.ts
75.6% <77.77%> (-1.32%)
:arrow_down:

Continue to review full report at Codecov.

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

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Test Plan Item: Native Locator for global environments

Refs: #23480

[ ] macOS @rebornix
[ ] linux @rebornix
[x] windows @amunger
[ ] wsl @amunger
[ ] dev container @roblourens

Complexity: 5
Authors:  @DonJayamanne
Create Issue

Requirements:
Windows

Ensure you have at least one Python installed from Store
Install one python from python.org if you don't already have one
Install miniconda: https://docs.anaconda.com/free/miniconda/miniconda-install/
Create few conda environments: conda create -n <env-name> python
Install Pyenv-win https://github.com/pyenv-win/pyenv-win?tab=readme-ov-file#installation
Install few version of python: use pyenv install get list of available pythons to install and install a few
Install Python extension from here:

x64: https://github.com/microsoft/vscode-python/actions/runs/9252458345/artifacts/1540399087
arm64: https://github.com/microsoft/vscode-python/actions/runs/9252458345/artifacts/1540399084

Linux/Mac/WSL

Ensure you have some python version on PATH
Install a version of python from homebrew
Install pyenv: https://github.com/pyenv/pyenv?tab=readme-ov-file#installation
Install few version of python: use pyenv install get list of available pythons to install and install a few
Install miniconda: https://docs.anaconda.com/free/miniconda/miniconda-install/
Create few conda environments: conda create -n <env-name> python
Open VS Code User settings and add "python.locator": "native"
Install Python extension from here:

darwin x64: https://github.com/microsoft/vscode-python/actions/runs/9252458345/artifacts/1540399077
darwin arm64: https://github.com/microsoft/vscode-python/actions/runs/9252458345/artifacts/1540399075
linux x64: https://github.com/microsoft/vscode-python/actions/runs/9252458345/artifacts/1540399078
alpine x64: https://github.com/microsoft/vscode-python/actions/runs/9252458345/artifacts/1540399073

Verification

Open a workspace that contains a python file in VS Code
Run the command "Python: Select Interpreter" (screenshot the list of python found)
Open user settings, and add "python.locator": "native"
Run the command "Python: Clear cache and reload window"
After reloading, Run the command "Python: Select Interpreter" (screenshot the list of python found)
Create an issue with the before after screen shots.

Note: It is expected that there will be some pythons missing, like venv, poetry, hatch etc. What want to know is, in the areas where it finds "something" does it find all. Like if it finds conda does it find all conda environments, if it finds pyenv does it find all pyenv.

WSL environments were consistent, though I wasn't able to install python through pyenv - looks like a missing build dependency but installing the packages recommended here did not get me anywhere.
js finder

native


Static import Preconditions.checkX everywhere

R: @bjchambers your turn for a little OCD

runners/flink/runner/src/main/java/org/apache/beam/runners/flink/translation/wrappers/streaming/io/UnboundedFlinkSource.java
runners/flink/runner/src/main/java/org/apache/beam/runners/flink/translation/utils/SerializedPipelineOptions.java
sdks/java/core/src/test/java/org/apache/beam/sdk/io/TextIOTest.java (Comments)

Even without the places that Thomas pointed out, this looks good to me.

Fixed the two Flink cases, which were just unused imports not caught by Checkstyle because it's disabled for that module.
The TextIOTest is just the actual use of the word "preconditions" to mean the concept, not the Guava library ;)

Thanks -- will merge when green.


Export setValue in useAsyncFn

Is your feature request related to a problem? Please describe.
I want to modify the state.value from useAsyncFn (eg remove item from array) but I am unable to do so.
Describe the solution you'd like
useAsyncFn should support an additional item setValue which sets the value without needing to call the async function.
Example:
const [state, callback, setState] = useAsyncFn(Promise.resolve([1, 2, 3]), []);

const removeItem = (value) => {
  const itemIndex = state.value.findIndex(item => item === value);
  const newState = state.slice().splice(itemIndex, 1);
  setState(newState);
}

Describe alternatives you've considered
Copy the source code of useAsyncFn and export a function to set the value.

I don't think it is a good idea to have such feature, since the state of hook is not determinable.
For example, when the dependencies of the hook changed, then the state will be recalculated and any changes that was made via setState will be loss.

@ngobach I understand, but do you have a proposed alternative solution?
Would you recommend copying the value of state.value into a new React.useState? Or something else?

Since the context is not clear. I cannot recommend you anything.
But it seems that using useAsyncFn in combination with React.useState could fit your expectation.

@ngobach He did provide a simple context:

async fetch a list of items, display the list, each item has a "delete" button
when pressing "delete": remove the item from the list

Of course you could re-fetch the whole list after deleting an item. But often that's an unnecessary API request.
Btw: I don't get the "not determinable" thing. I just created a copy of useAsyncFn and changed the last line to return [state, (callback as unknown) as T, set];. And then use it like that:
const [state, fetch, setState] = useAsyncFn(async () => {
  return await someAsyncFunction(dep1, dep2);
}, [dep1, dep2], { loading: false, value: [] });

const handleDelete = (itemIndex: number) => {
  setState(oldState => ({ ...oldState, value: oldState.value.filter((_, index) => index !== itemIndex) }));
};

I didn't encounter any unexpected behavior. It just works like useState with an additional fetch function.

Hi @benneq,
I said I need more context because thread owner didn't mention the case when useAsyncFn re-executed, then it will overwrite any changes made by setState or they should merge together. It's like you have something with 2 sources of truth.
Let says ...

useAsyncFn gave me list of [A, B, C].
setState changed the list to [A, C].
useAsyncFn was re-run.
a. The result should be [A, B, C, D] as output of the Promise from useAsyncFn, or
b. The result should be [A, C, D] as output of the Promise from useAsyncFn, merging with B was being filtered out from step 2.

Maybe I was a bit over engineered.

In the case that the async fn was called again, it should override the state, so result b [A, B, C] should be the state. No merging should occur.
My point was simply that the function to set the state be exported as @benneq explained quite well - I don't really see exactly what issue this could cause. Also for performance, it might be good to avoid having to copy the state with another React.useState.

@ngobach That's an interesting thought.
I have one use case where merging the async data could be useful: infinite scroll pagination. Where each fetch will concat / merge / append the fetch results. But this makes things rather complicated.
In general I'd say: Don't change the existing behavior of the hook. Currently useAsyncFn always does override state. There's no merge.
Basically setState should behave like a "(synchronous) instant fetch".

Maybe I found another solution for this behavior (not tested):
const [state, fetch] = useAsyncFn(async (filter, sort, pagination, syncData) => {
  if(syncData) {
    return syncData;
  } else {
    return await asyncRequest(filter, sort, pagination);
  }
});

But that makes things much more complicated, because now there are 3+1 function arguments, which don't make sense together. (At least it should work as expected (?)). But still: A simple setState function would be much easier:
const [state, fetch, setState] = useAsyncFn(async (filter, sort, pagination) => {
  return await asyncRequest(filter, sort, pagination);
});

const foo = (syncData) => {
  setState(oldState => ({ loading: false, value: syncData }));
}


Redis Cache to support ChatModel

Feature request
I'm writing to propose the integration of Redis Cache support for ChatModels within Langchain. Chat functionality is an essential and perhaps the most common scenario in many applications. Enhancing Langchain with Redis Cache support for ChatModels can bring about the following benefits.
Motivation

Performance Improvement:
Utilizing Redis Cache can significantly reduce the latency, providing users with a faster and more responsive chat experience.
Caching chat messages and related data can lower the database load and enhance overall system performance.

Scalability:
Redis Cache can enable Langchain to efficiently manage large-scale real-time chat systems.
The support for various data structures in Redis enables sophisticated caching strategies, accommodating different chat scenarios and requirements.

Reliability:
Redis's replication and persistence features can offer a reliable caching layer that ensures data consistency and availability.
It supports various eviction policies that allow for a flexible and efficient utilization of memory.

Integration Ease:
Redis is widely used, well-documented, and has client libraries in most programming languages, making integration with Langchain straightforward.
The community around Redis is vibrant and active, which can be beneficial for ongoing support and enhancement.

Your contribution
I am considering...

agreed on this, although I don't know how to implement this

from typing import Optional

import jsonpickle
from langchain.cache import RETURN_VAL_TYPE
from langchain.cache import RedisSemanticCache as BaseCache
from langchain.embeddings.base import Embeddings
from langchain.schema import Generation

class RedisSemanticCache(BaseCache):
    def __init__(
        self, redis_url: str, embedding: Embeddings, score_threshold: float = 0.2
    ):
        super().__init__(redis_url, embedding, score_threshold)

    def lookup(self, prompt: str, llm_string: str) -> Optional[RETURN_VAL_TYPE]:
        """Look up based on prompt and llm_string."""
        llm_cache = self._get_llm_cache(llm_string)
        generations = []
        # Read from a Hash
        results = llm_cache.similarity_search_limit_score(
            query=prompt,
            k=1,
            score_threshold=self.score_threshold,
        )
        if results:
            for document in results:
                generations.extend(jsonpickle.decode(document.metadata["return_val"]))
        return generations if generations else None

    def update(self, prompt: str, llm_string: str, return_val: RETURN_VAL_TYPE) -> None:
        """Update cache based on prompt and llm_string."""
        for gen in return_val:
            if not isinstance(gen, Generation):
                raise ValueError(
                    "RedisSemanticCache only supports caching of "
                    f"normal LLM generations, got {type(gen)}"
                )
        llm_cache = self._get_llm_cache(llm_string)
        # Write to vectorstore
        metadata = {
            "llm_string": llm_string,
            "prompt": prompt,
            "return_val": jsonpickle.encode(return_val),
        }
        llm_cache.add_texts(texts=[prompt], metadatas=[metadata])

This is still missing feature afaik. Can do it in SQLite so why not redis or what am I missing.


Add Next.js starter

Hi guys, I intend to use this issue to associate with the first pull request that will be the next starter app. I would like to know what is your opinion about the best file structure that we should have in the repository. Should there be a frontend and backend folders with the respective projects?


Not able to connnect to app

Tried to clone app from gallery and connect
got the following error:
```Installing missing lightning_hpo requirement.
Storing delete sweep at /Users/edenafek/.lightning/lightning_connection/2462/commands/delete_sweep.py
Traceback (most recent call last):
File "/Users/edenafek/opt/anaconda3/envs/prod-16117/bin/lightning", line 8, in
sys.exit(main())
File "/Users/edenafek/opt/anaconda3/envs/prod-16117/lib/python3.10/site-packages/lightning/app/cli/lightning_cli.py", line 70, in main
_main()
File "/Users/edenafek/opt/anaconda3/envs/prod-16117/lib/python3.10/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/Users/edenafek/opt/anaconda3/envs/prod-16117/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/Users/edenafek/opt/anaconda3/envs/prod-16117/lib/python3.10/site-packages/lightning/app/utilities/exceptions.py", line 36, in invoke
return super().invoke(ctx)
File "/Users/edenafek/opt/anaconda3/envs/prod-16117/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/edenafek/opt/anaconda3/envs/prod-16117/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/edenafek/opt/anaconda3/envs/prod-16117/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/Users/edenafek/opt/anaconda3/envs/prod-16117/lib/python3.10/site-packages/lightning/app/cli/commands/connection.py", line 147, in connect
_download_command(
File "/Users/edenafek/opt/anaconda3/envs/prod-16117/lib/python3.10/site-packages/lightning/app/utilities/commands/base.py", line 126, in _download_command
spec.loader.exec_module(mod)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/Users/edenafek/.lightning/lightning_connection/2462/commands/run_sweep.py", line 11, in
from hydra.core.override_parser.overrides_parser import OverridesParser
ModuleNotFoundError: No module named 'hydra'

I know what it is: the pip package published on pypi is not up to date, so it doesn't include the hydra dependency. We need to make a release on pypi.


Replace use of jackson mixin functionality

Mixins are not supported by serde. This patch replaces the use of that functionality using a wrapper object before serialization.

@sdelamo please take a look


Bug: Mismatching case to add abitrator contract address

public async updateArbitrator(
    address: `0x${string}`,
  ): Promise<TransactionHash> {
    const chainConfig = getChainConfig(this.wallet.chainId);
    const contract = chainConfig.contracts["talentLayerArbitrator"];
    const allowedArbitrators = [zeroAddress, contract.address.toLowerCase()];

    console.log("SDK: allowedArbitrators", allowedArbitrators);

    if (!allowedArbitrators.includes(address)) {
      throw new Error(`Invalid Arbitrator: ${address}`);
    }

    const tx = await this.wallet.writeContract(
      "talentLayerPlatformId",
      "updateArbitrator",
      [this.platformID, address, ""],
    );

    return tx;
  }

The .toLowerCase is causing error to start with dispute kit resolution

Here is what I think we should do

create a function for getting all allowed arbitrators ( @0xRomain -can we get that list via graph?)

expose that function publicly, and use it internally here

that would have been better yes, but we don't have that yet, it miss an event and subgraph management. I will add for the future.
What we can do now is still have a function from the sdk to get all allowed arbitrators but hardcoded in config by chain.

makes sense
Ill track that as an improvement in a separate ticket then


Nova I Hispano

name: Nova I Hispano
key: Nova
color: Green
emblem: Estrella_Brillo_02
info:
  logo: https://github.com/RoyaleAPI/cr-api-assets/blob/master/badges/Sword_03.png
  description: >
    We look for talent that has the character to back it up. That talent is cultivated and supported through team-based growth strategies and a passionate staff that cares about player results. The community is the foundation of those results and is at the core of player dedication.
clans:
  - name: Nova Hispano 2
    tag: QGY9R828


Blood color doesnt work properly when hitting monsters

BLOODCOLOR=0596
xshow bloodcolor returned 0596
shows up as black when hitting them in combat

#206

I saw that @Seokotov , im not sure why you closed it without it being fixed... He says bloodcolor=2007 works, you say bloodcolor=2007 doesnt work, then you closed it :laughing:
bloodcolor=2007

yeah, it work only in range and only for fixed value
it was broken everywhere and fixed for some values in range, so  we can use it
we told about limit for value in discord..

Fixed, thanks Nolok!


Ignore JetBrains configuration files

Description
This PR adds .idea/ to the ignored files. There are configuration files created by JetBrains IDEs built on top of IntelliJ IDEA, such as PyCharm in this case.
Checklist

[x] My pull request has a descriptive title (not a vague title like Update index.md).
[x] My pull request targets the default branch of the repository (main or master).
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[ ] I added tests for the changes I made (if applicable).
[ ] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no
visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@zackkrida good idea. Updated PR.


Allow Buffer?

What about allowing Buffers as input?

I would accept a good pull request with tests, but not something I personally need.

Thanks. That's fair enough :)
I'll make something ready as soon as i've some more time.

See https://github.com/sindresorhus/strip-eof/blob/master/index.js for a similar thing that also supports buffer.

Fixed by #3.


Fix component expression not finding "distant" components

Description

@olemartinorg's suggested solution to #826  worked great, both for looking up components in groups on the same page and across pages. In both of these cases the component could not be found previously. The shared tests check these two cases, and both tests failed before this change. I named this case "distant" as it cannot be reached using the "closest()"-method, I could not come up with a better name 😅
Related Issue(s)

closes #826

Verification/QA

Manual functionality testing

[x] I have tested these changes manually
[ ] Creator of the original issue (or service owner) has been contacted for manual testing (or will be contacted when released in alpha)
[ ] No testing done/necessary

Automated tests

[x] Unit test(s) have been added/updated
[ ] Cypress E2E test(s) have been added/updated
[ ] No automatic tests are needed here (no functional changes/additions)
[ ] I want someone to help me make some tests

UU/WCAG (follow these guidelines until we have our own)

[ ] I have tested with a screen reader/keyboard navigation/automated wcag validator
[x] No testing done/necessary (no DOM/visual changes)
[ ] I want someone to help me perform accessibility testing

User documentation @ altinn-studio-docs

[ ] Has been added/updated

[x] No functionality has been changed/added, so no documentation is needed
[ ] I will do that later/have created an issue

Changes/additions to component properties

[ ] Changes are reflected in both src/layout/layout.d.ts and layout.schema.v1.json, and these are all backwards-compatible
[x] No changes made

Support in Altinn Studio

[ ] Issue(s) created for support in Studio

[x] This change/feature does not require any changes to Altinn Studio

Sprint board

[x] The original issue (or this PR itself) has been added to the Team Apps project and to the current sprint board
[ ] I don't have permissions to do that, please help me out

Labels

[x] I have added a kind/* label to this PR for proper release notes grouping
[ ] I don't have permissions to add labels, please help me out

Cool. The tests works in app-lib-dotnet.


Doc: Add lifecycle badges to exported functions

#84 added lifecycle as an exported package and lifecycle badges to the primary functions arc_select() and arc_open().
Badges should be added to all exported functions.

Should all exported functions be listed as "experimental" at this point?

correct


responsiveness completed

Description

Currently, the repo sub-header is not responsive.

The issue with this is when you run it on mobile, it doesn't work well. when you have a name that can fill the screen, it doesn't break into a new line. That piece of logic you remove handles that.

 As you can see.

The piece of logic was also breaking somethings also,
There is a better way to handle it. I will look it and create a fall back ticket.
Thanks


Add language to publisher's statistics

Even though there is no description for language statistics of publishers in api docs you can access it by calling
https://api.exoclick.com/v1/statistics/publisher/language
So it'd be great to have it, both, in docs and mainly in api-client
Thanks in advance

Closed due to PR https://github.com/EXADS/exads-api-client-php/pull/14


upstream: add failure percentage-based outlier detection

Description: Add a new outlier detection mode which compares each host's rate of request failure to a configured fixed threshold.
Risk Level: Low
Testing: 2 new unit tests added.
Docs Changes: New mode and config options described.
Release Notes: ✅
Fixes #8105.

@csssuf can you please avoid force pushes, it seems this has lost some of the comment history.
Re: @alyssawilk point:

Huh, my instinct would be to say if the type were OutlierEjectionType::FAILURE_PERCENTAGE and has_failure_percentage_threshold were not set, we'd just fail to accept the config.
Looks like that's not terribly consistent with the rest of outlier config, so yeah, I think any well documented value is fine.
Maybe we can tag this for some v4 cleanup (@htuch)

I don't have strong feelings on this; if there are sensible defaults, it's fine to have them, but if they are arbitrary, then rejecting is better. Please tag in the comments with [#next-major-version: <some comment] if you want this considering in v3/v4.

@htuch My apologies - I only force-pushed to fix a missed DCO signoff. I don't even see that comment from @alyssawilk in my email, was that the entire text or was there something else I missed?

That compile_time_options failure seems legit, it seems to intermittently fail (although only under that target) for me as well. I'll take a look at that.