MessageStore interfaces for sorting and pagination

Starting point for https://github.com/TBD54566975/dwn-sdk-js/issues/274
Modified the DateSort enum into the following types:
export enum RecordsDateSort {
  CreatedAscending = 'createdAscending',
  CreatedDescending = 'createdDescending',
  PublishedAscending = 'publishedAscending',
  PublishedDescending = 'publishedDescending',
}

export enum TimestampDateSort {
  TimestampAscending = 'timestampAscending',
  TimestampDescending = 'timestampDescending'
}

export type DateSort = RecordsDateSort | TimestampDateSort;

This allows explicit types for Records sorting(by created or published) vs generic message sorting (by timestamp).
Currently RecordsQuery specify the default sort to be RecordsDateSort.CreatedDescending
Everything else defaults to TimestampDateSort.TimestampDescending
Either as a part of this effort or as a different PR there can be some enhancements to certain parts of the code that either look for only 1 message, or attempt to sort the message they're looking for via Message.getNewestMessage or getOldestMessage.

I did some more thinking about what this will look like when fully implemented with level, this is what I came away with and would love your thoughts @thehenrytsai & @diehuxx.
I generalized the MessageSort type as per @thehenrytsai's suggestion, however as I was thinking about truly generalizing the implementation to be inspired by MongoDB (which accepts multiple fields, and generalized sorting of fields) I wasn't sure if that kind of overhead was really necessary.
For every type of property we are sorting by, the number of indexes grows. So for now we should really only sort by dateCreated and datePublished where they are available (currently RecordsWrite), and sort by messageTimestamp as a default for everything else.
I think leaving the interface generalized is a good idea so that we can add other higher level abstractions with different types of dateSort fields to different message types and only need to add indexes.
Also thinking about pagination, cursor based pagination started making a lot more sense within the DWN context. I think we should start there and move to offset based pagination if there is a strong demand for it, as it will also add overhead to indexing and performance that might not be necessary.
Right now I am thinking that the cursor pointer for pagination be the messageCid and I went ahead and added that to the response in RecordsQuery since authorization is stripped. This cursor applies generically to all types of data that are stored within the message store and gives us an easy way to look up index starting points given the existing indexing scheme.
Would be happy to discuss this more in depth over a call. But for now figured looking at the interface and naive implementation will be a good place to start.

@thehenrytsai I think this is ready for a review at this point after yesterday's conversation.
I was going to add some types/properties to describe the sortable index fields somewhere, but it felt like premature optimization.


Unknown column 'sha256_hash' in 'field list'

Description
Unknown column 'sha256_hash' in 'field list'
File: ...\Sources\Packages.php
Line: 1219
Steps to reproduce

Just install the mod on cutting-edge build of SMF 2.1

Environment (complete as necessary)

Version/Git revision:
Database Type:
Database Version:

Additional information/references

Not sure if this is related to this issue (aka this issue happening because of the prio issue) but...

This is an SMF issue fixed with latest version on github. It affected all packages.
https://github.com/SimpleMachines/SMF2.1/issues/6057


Setting  your ROS_HOSTNAME and ROS_MASTER_URI

Hi,
How to Set the ROS_HOSTNAME and ROS_MASTER_URI in my windows environment variables?
Sorry for asking a very basic question.

If I remember right you need to set them in your system]s environmental
variables. Create two new variables, one for each, set there names to
ROS_HOSTNAME and ROS_MASTER_URI and set their values to the appropriate IP
address. Remeber to use http:// and :port for the master URI
On Fri, Sep 8, 2017 at 7:30 AM, Dhivin Davis<EMAIL_ADDRESS>wrote:

Hi,
How to Set the ROS_HOSTNAME and ROS_MASTER_URI in my windows environment
variables?
Sorry for asking a very basic question.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/uml-robotics/ROS.NET/issues/43, or mute the thread
https://github.com/notifications/unsubscribe-auth/AIo0v9373dYx9mPXO5nL2LaV364HaHb0ks5sgSVrgaJpZM4PRDmo
.

In control panel, goto system, choose advanced settings, then choose
environment variables. They can be either user or system variables. The
user one take precedence if defined.
One liner(ish) to get to the env vars page (in cmd or Run)
"C:\Windows\system32\rundll32.exe" sysdm.cpl,EditEnvironmentVariables
On Sep 8, 2017 7:54 AM, "Dalton Curtin"<EMAIL_ADDRESS>wrote:

If I remember right you need to set them in your system]s environmental
variables. Create two new variables, one for each, set there names to
ROS_HOSTNAME and ROS_MASTER_URI and set their values to the appropriate IP
address. Remeber to use http:// and :port for the master URI
On Fri, Sep 8, 2017 at 7:30 AM, Dhivin Davis<EMAIL_ADDRESS>wrote:

Hi,
How to Set the ROS_HOSTNAME and ROS_MASTER_URI in my windows environment
variables?
Sorry for asking a very basic question.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/uml-robotics/ROS.NET/issues/43, or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AIo0v9373dYx9mPXO5nL2LaV364HaHb0ks5sgSVrgaJpZM4PRDmo>
.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/uml-robotics/ROS.NET/issues/43#issuecomment-328083486,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABLrW63VO5pI04tzv2Ip_NjCHN1BTOAzks5sgSrkgaJpZM4PRDmo
.


[Bug]: How to solve this error(panic: interface conversion: tg.MessageClass is *tg.MessageEmpty, not *tg.Message)

Describe the bug
Hello.
I use Teldrive frequently and tend to update to the newest version as soon as it's released
I've been using the latest version until recently, but when I rebooted the server, I got the following error.
I'd like to know what the problem is and how to solve it.
Repoduction
I met this issue after rebooting the server.
Expected behavior
Normal service...
Version
1.5.4
Which Platform are you using?
Linux
Additional context
Here is docker compose logs.
teldrive  | goroutine 122 [running]:
teldrive  | github.com/tgdrive/teldrive/pkg/services.getParts({0x21219f0, 0x4000332d00}, 0x4001061b08, {0x211f018, 0x40002a6060}, 0x4001061688)
teldrive  |     github.com/tgdrive/teldrive/pkg/services/common.go:43 +0x51c
teldrive  | github.com/tgdrive/teldrive/pkg/services.(*FileService).GetFileStream.func1()
teldrive  |     github.com/tgdrive/teldrive/pkg/services/file.go:852 +0x8c
teldrive  | github.com/tgdrive/teldrive/pkg/services.(*FileService).GetFileStream.func2({0x2121750?, 0x4000f3ad20?})
teldrive  |     github.com/tgdrive/teldrive/pkg/services/file.go:874 +0x24
teldrive  | github.com/tgdrive/teldrive/pkg/services.(*FileService).GetFileStream.RunWithAuth.func3({0x2121750, 0x4000f3ad20})
teldrive  |     github.com/tgdrive/teldrive/internal/tgc/run.go:40 +0x36c
teldrive  | github.com/gotd/td/telegram.(*Client).Run.func3({0x2121750, 0x4000f3ad20})
teldrive  |     github.com/gotd/td@v0.111.2/telegram/connect.go:150 +0xa4
teldrive  | github.com/gotd/td/telegram.(*Client).Run.(*CancellableGroup).Go.func6()
teldrive  |     github.com/gotd/td@v0.111.2/tdsync/cancel_group.go:48 +0x30
teldrive  | golang.org/x/sync/errgroup.(*Group).Go.func1()
teldrive  |     golang.org/x/sync@v0.8.0/errgroup/errgroup.go:78 +0x54
teldrive  | created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 118
teldrive  |     golang.org/x/sync@v0.8.0/errgroup/errgroup.go:75 +0x98
teldrive  | 2024/11/01 03:32:22 goose: no migrations to run. current version:<PHONE_NUMBER>1635
teldrive  | 01/11/2024 03:32 AM INFO    Started server http://localhost:8080
teldrive  | panic: interface conversion: tg.MessageClass is *tg.MessageEmpty, not *tg.Message

Ah this is indicative of a ghost file aka you have missing files on telegram side but on the database it appears it's there when it isn't. Something must've happened to cause the file to not upload but be added to your database.
This was resolved with the latest teldrive versions sometime ago, fixing file upload checks and such.
Anyways to resolve this problem, you're going to have to use this script to manually check and remove such ghost files from your database. Instructions on how to use it and requirements to install is on the discord here:
https://discord.com/channels/1142377485737148479/1260921464350179399/1261145708392874064
(Make sure to join the teldrive discord first).
Here's the link to the python script:
https://gist.github.com/danieleg1/1427c2a535b4dd4a6775e0fa82431400
Make sure to read those instructions so you don't accidently delete any files that you deem important!
I hope this helps ya out! ^^

Hello.
Thank you for your advice.
However, I'm not familiar with programming, so I'm not confident about executing the script properly.
For now, I've downgraded to version 1.5.3, and it's working normally....
I will join the Discord and carefully read the information provided there.
Thank you.

had the exact same issue and the script deleted a few files of mine. this project has lost some of its credibility as a cloud storage project but i guess thats what you get for using free* cloud storage.

Ah this is indicative of a ghost file aka you have missing files on telegram side but on the database it appears it's there when it isn't. Something must've happened to cause the file to not upload but be added to your database.
This was resolved with the latest teldrive versions sometime ago, fixing file upload checks and such.
Anyways to resolve this problem, you're going to have to use this script to manually check and remove such ghost files from your database. Instructions on how to use it and requirements to install is on the discord here: https://discord.com/channels/1142377485737148479/1260921464350179399/1261145708392874064
(Make sure to join the teldrive discord first).
Here's the link to the python script: https://gist.github.com/danieleg1/1427c2a535b4dd4a6775e0fa82431400
Make sure to read those instructions so you don't accidently delete any files that you deem important!
I hope this helps ya out! ^^

dear @Linden10, Could you please provide more details about where the JSON file should be located, or share the instructions here?
The link to the Discord channel is not accessible to me.
Thank you.

@Linden10 may I ask you some question?
python version = 3.12
I used venv in Ubuntu 24.04
did pip install hydrogram psycopg2
when I run
python3 cleandb.py -f result.json -p -t -d -e
the result is
`
TgCrypto is missing! Hydrogram will work the same, but at a much slower speed. More info: https://docs.hydrogram.org/en/latest/topics/speedups.html
Processing result.json
Loading json...
Done!
Channel: owndrive
Messages: 38
Connecting to database...
Get files from database
Done!
Parts: 348
Total files: 345
Check if telegram files are in db
Files not in db: 34
Traceback (most recent call last):
File "/home/better0101/json/cleandb.py", line 159, in
processFile(jsonPath)
File "/home/better0101/json/cleandb.py", line 82, in processFile
with tg:
TypeError: 'Client' object does not support the context manager protocol
`
what should I do?
I spent a day to resolve this issue but was not helpful

Ah this is indicative of a ghost file aka you have missing files on telegram side but on the database it appears it's there when it isn't. Something must've happened to cause the file to not upload but be added to your database.
This was resolved with the latest teldrive versions sometime ago, fixing file upload checks and such.
Anyways to resolve this problem, you're going to have to use this script to manually check and remove such ghost files from your database. Instructions on how to use it and requirements to install is on the discord here: https://discord.com/channels/1142377485737148479/1260921464350179399/1261145708392874064
(Make sure to join the teldrive discord first).
Here's the link to the python script: https://gist.github.com/danieleg1/1427c2a535b4dd4a6775e0fa82431400
Make sure to read those instructions so you don't accidently delete any files that you deem important!
I hope this helps ya out! ^^

dear @Linden10, Could you please provide more details about where the JSON file should be located, or share the instructions here? The link to the Discord channel is not accessible to me. Thank you.

Ello @MrR0man, allow me to help ya out! So you can't access the discord eh? Well I'll share my guide here for ya.
Make sure to read carefully and follow everything, otherwise you may accidently lose important files or such!
https://gist.github.com/Linden10/71fe9bb4adc13c2de72c73651bfe12d7

@Linden10 may I ask you some question? python version = 3.12 I used venv in Ubuntu 24.04 did pip install hydrogram psycopg2
...
what should I do? I spent a day to resolve this issue but was not helpful

Ello @Fentanest! Let me help ya out!
Hmm...I don't know why this is happening.
Wait your using python 3.12? I never used python 3.12 before so maybe the python script hasn't been updated
to support some new valid code with that?
That or it's something else...
I can only assume trying python 3.11 which is the version I used which the python script worked with for me on Windows.
Hopefully that'll fix it but if not...I'll have to ask the creator of the script on what's wrong.


Learn More placeholders

This will update learn more placeholders with actual documentation links

@signechambers1 @hthomas-czi do we know what all the Learn More links will be? Thank you!

Thanks @tihuan! It will go to the documentation page, @pablo-gar do you know what the link will be?

It currently lives here:
https://github.com/chanzuckerberg/cellxgene-documentation/blob/pablo-gar/wheres-my-gene/where-is-my-gene/where-is-my-gene-documentation.md
Final place will be here, but will likely change depending on the final name of the product:
https://github.com/chanzuckerberg/cellxgene-documentation/where-is-my-gene/where-is-my-gene-documentation.md

Amazing! Thank you both 🤩
In that case, I guess we can wait till we have the official name to update the links then 👍


feat: push notifications

Adds firebase push notification capability when using a mediator with the configured firebase plugin.
Things of note:

Began adding this to bifold but was blocked by the fact that changes were needed to the android and ios build files, and that the required libraries wouldn't work without a valid firebase account and project. Could maybe figure out a way to add this as a bifold option and pull it out of the bc wallet repo at some point but I don't have a path forward with this right now.
Because I didn't create the firebase apps in bifold or add the react native libraries I tried to have bifold contain no code about the push notification logic. As a result I didn't follow the same patterns in some places as the bifold supported functionality. For instance I created a modal in this repo instead of bifold and didn't follow the action pattern in the Developer view.
Most of the development was done in android. IOS actually receiving push notifications is untested. This is because apple requires the app have APNS push notification capability to produce a firebase token, and that requires an apple developer account with signing privileges. I added the logic that I think is needed and added an attempt at a github action to load the required entitlements file. (the env variables are currently hardcoded as well).
Because I've been unable to test on IOS the push icon is currently the default. I added a BC icon to android.
The firebase account is my own personal account and they should be replaced by a bc gov managed one.

Here is some sequence diagrams of current features: https://hackmd.io/@NQjeSsXCR3Cmgs2Lr-M8ow/SJCS87BC2
Here is a demo video of current status:
Mediator doesn't support firebase:
push-notifications-no-mediator.webm
Mediator does support firebase:
push-notifications-with-mediator-plugin.webm
There are 2 new env variables:

MEDIATOR_USE_PUSH_NOTIFICATIONS --> if false or undefined the push notification logic will be completely ignored. Set to true if enabled
MEDIATOR_LABEL (Required) --> This is what is uses to discover firebase protocol and send the token. Otherwise it would need to discover on every agent. If this is a problem then could work around it.

** Currently it will ask for push notifications permission but send a blank token. It will be defaulted to off and will need to be turned on via development screen before receiving push notifications. **
I would like to write some unit tests. I had some earlier but deleted them after the modal broke the required mocks.

@jamshale Is this one ready for review? If not are you able to move it to "Draft", otherwise we can remove the "do not merge" label and review it.

@jamshale Is this one ready for review? If not are you able to move it to "Draft", otherwise we can remove the "do not merge" label and review it.

Awesome! I did some work recently and want to go over it and update the description. I should have it ready for review today.
The 'do not merge' was more about the firebase config files being on my personal account. I have added some additional functionality recently after a discussion with Clecio but it should be ready soon.

can you please make it "off" by default. We will start using internally, and once we have fully tested we can change to default "on"

can you please make it "off" by default. We will start using internally, and once we have fully tested we can change to default "on"

Yes will do.

@jleach Ok, I would like to open this for review now.

I can give access to my firebase account if anyone wants to test with the mediator plugin. Or just send the service account file. It's just on free tier, so it's not much of a concern giving it out.


Trino for distributed queries

What is it?
In the future, we may have data spread out among a bunch of places (e.g. BigQuery, Clickhouse, Postgres, random files, IPFS). Trino seems like an interesting option for running distributed queries
https://trino.io/

Looking at the docs, this is pretty interesting, you can setup data connectors to run

Queries over BigQuery storage API
Forwarding queries to a Clickhouse or Snowflake instance

Then join it all together in a unified interface. Will be useful if our data is actually across a bunch of locations

In case it helps, [Starbust](https://www.starburst.io/] is probably the best managed offering!

Apparently you can run Trino on GCP DataProc! that surprised me
https://cloud.google.com/dataproc/docs/tutorials/trino-dataproc

For reference, dbt-trino is useful if we want to replace BQ in our data pipeline
https://github.com/starburstdata/dbt-trino

As of this PR, we are now running Trino in our k8s cluster
https://github.com/opensource-observer/oso/pull/2280


Improve workaround for wgpu's gles texture type inference

Remove unnecessary feature flag (atlas) from WebGL2 section

To be honest, I can't see any difference with or without the patch. Everything seems to work fine when running the examples through wasm-server-runner without --features atlas anyway... Has the workaround been added somewhere else? (I can't find anything...)
Closes #395
Closes #283

I should test again, but as far as I remember, #395 is still valid -- it should be tested with atlases consisting of exactly 12 (or other multiple of 6) tiles. It's possible that this was only an issue for native GL. Also possible that something changed on the wgpu side and it's no longer an issue.

You're right. This workaround is needed. I'm trying out bevy_ecs_tilemap and without this patch, I'm getting:
ERROR app:  wgpu-hal heuristics assumed that the view dimension will be equal to `D2` rather than `D2Array`.
`D2` textures with `depth_or_array_layers == 1` are assumed to have view dimension `D2`
`D2` textures with `depth_or_array_layers > 1` are assumed to have view dimension `D2Array`
`D2` textures with `depth_or_array_layers == 6` are assumed to have view dimension `Cube`
`D2` textures with `depth_or_array_layers > 6 && depth_or_array_layers % 6 == 0` are assumed to have view dimension `CubeArray` log.target = "wgpu_hal::gles";
log.module_path = "wgpu_hal::gles";
log.file = "/home/teohhanhui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-hal-0.21.1/src/gles/mod.rs";
log.line = 421;

Just as expected...

/ping @rparrett Please let me know if there are any outstanding concerns.


linux: unix version of _mul128 to optimize Int64::Mul

In #206, @obastemur has implemented unix version of _mul128 using inline assembly. Consider getting this in to optimize Int64::Mul.

Prepared a unix/linux version of __mul128 https://gist.github.com/obastemur/48125aacb960a5b66730

I've been testing the solution on other platforms / compilers. What would be the best place (header file) to define linux/unix version of __mul128 ?

Since it will be used only by Int64Math.cpp and other code should probably just use Int64Math wrapper, maybe also put it in lib/common/common? (No strong opinion.)

This was implemented while ago. Closing.


[firebase_auth] Fix getIdToken refresh param on iOS

Description
The function getIdToken() takes a refresh parameter.
This parameter is ignored on iOS, and hardcoded refresh = true is used. This PR fixes that.
No changes required on Android, the refresh parameter is properly taken in account.
Related Issues
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[ ] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (flutter analyze) does not report any problems on my PR.
[x] I read and followed the Flutter Style Guide.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
[x] I updated CHANGELOG.md to add a description of the change.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
[x] No, this is not a breaking change.

Thanks for the quick review!


filter out target from event.detail.state

A bug where evt.detail.state.target was the entity, and it could not be serialized to JSON. Reproduced if I clicked ybutton on Touch.

Before this, state was always an empty object. Now pressed, touched, value are saved.

r?

Thanks!


refactor(connlib): batch resource change updates

Currently, upon reconnecting, snownet returns a list of connection IDs that have been closed. This was done to avoid emitting many identical ResourcesChanged events. In all other events, snownet always only references a single connection. To align this whilst not duplicating ResourcesChanged events, we use a dedicated bool to check, whether any of the events emitted by snownet require updating the clients about our active resources.

Ah! Nice! this has crossed my mind when reviewing this event but seemed fine at that point

Great minds think alike!


Is there any way to configure the learning of some spells through purchase so that it requires a specific level on a wand?

Title. I'm clarifying because I re-read the title and it's not as clear as I'd like it to be.
I want players on my server to be able to learn, let's say, 40 spells through levels (like the plugin already does, just a different and custom path for a different progression).
What I want as well is for players to be able to buy certain spells at shops, which the plugin also allows. BUT I don't want them to be able to buy certain spells until X wand level. So, for instance, if I want them to be able to purchase "SuperHeal", I don't want them learning it via progression (enchanting table) but purchasing it in a certain place and ONLY if they are above a certain wand level.
Is there a way to do that? To restrict spell purchases until a specific wand level has been reached?
Thanks in advance! :)

Yes, you can set up a custom shop (like the extraspells shop) but put path: student on the spells you want to be limited. Let me know if you need more help with that!

In my server I've only used the plugin "Essential" for setting up signs that act as shops (in which players on my server can buy or sell things). For the wands I didn't know how to do it so I ran a "CommandSign" sign in order for the players to acquire a wand with an specific path.
I do know there is shop options included in your Magic plugin but I've definitely no idea on how they materialize in game nor how to use them... So yeah, any help would me much more than welcomed! :)

What you want to do is going to be a little complicated, all told.
Magic doesn't use sign shops, it uses NPCs- I would suggest you start by following the instructions here to set up a simple spell shop NPC:
https://github.com/elBukkit/MagicPlugin/wiki/Shops
Then maybe try changing its shop to extraspells
If you get that far, you can /meditor spell extraspells to see how that shop works, and then hopefully duplicate it to add the spells you want.
You'll need to add path: student to the spell shop config, under the parameters section.
If you are taking spells from a progression path and you don't want them to be available in the normal spell shop (enchant table), you'll need to /meditor path student and remove those spells from the list.
That should be all the pieces, let me know how far you get. :)


KAFKA-3866; KerberosLogin refresh time bug and other improvements

Handle correctly the case where the refresh is supposed to happen now
Replace now + minTimeBeforeLogin with lastLogin + minTimeBeforeLogin
Break from loop if there are no retries left after reLogin fails
reLogin no longer checks if sufficient time has elapsed as the check
is done elsewhere when appropriate and it would incorrectly not relogin
even if that meant that the ticket would expire
Removed duplicate logic in getRefreshTime regarding a refresh time
that was greater than the expiry time
Comment and logging clean-ups
Add validators for a few SASL configs

Before this can be reviewed and merged, tests need to be written to verify the changes.

@ijuma Would need rebase and some tests re: the changes.


fixes translation errors for the article about 'for each' loops

fixes translation errors

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

LGTM! Congrats on your first contribution!


Build error

Hello All,
Thank you for troubleshooting previous issues related to the Build error. I finally managed to reach a point with fewer error messages.  I would like your help with the remaining errors please find the details below.
Softwares: Windows 10 , intel Fortran compiler :w_fortran-compiler_p_2<IP_ADDRESS>_offline,. and VisualStudio community version vs_community__1142001592.1610718317. I am facing some errors.
Here are the error details.
4>Linking...
4>ipo: error #11018: Cannot open C:\Users\dash9\Windturbinesim\openfast\build\bin\FASTlib_x64.lib
4>ipo: error #11018: Cannot open mkl_intel_lp64
4>ipo: error #11018: Cannot open mkl_sequential
4>ipo: error #11018: Cannot open mkl_core
4>ipo: warning #11021: unresolved NWTC_IO_mp_R2LSTR8
4>        Referenced in ipo_83247obj3.obj
4>ipo: warning #11021: unresolved NWTC_IO_mp_WRSCR
4>        Referenced in ipo_83247obj3.obj
4>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_SOLUTION_T
4>        Referenced in ipo_83247obj3.obj
4>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_CREATECHECKPOINT_TARY
4>        Referenced in ipo_83247obj3.obj
4>ipo: warning #11021: unresolved NWTC_IO_mp_INT2LSTR
4>        Referenced in ipo_83247obj3.obj
4>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_LINEARIZE_T
4>        Referenced in ipo_83247obj3.obj
4>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_SOLUTION0_T
4>        Referenced in ipo_83247obj3.obj
4>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_INITIALIZEALL_T
4>        Referenced in ipo_83247obj3.obj
4>ipo: warning #11021: unresolved NWTC_IO_mp_NORMSTOP
4>        Referenced in ipo_83247obj3.obj
4>ipo: warning #11021: unresolved FAST_SUBS_mp_EXITTHISPROGRAM_T
4>        Referenced in ipo_83247obj3.obj
4>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_RESTOREFORVTKMODESHAPE_TARY
4>        Referenced in ipo_83247obj3.obj
4>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_RESTOREFROMCHECKPOINT_TARY
4>        Referenced in ipo_83247obj3.obj
4>ipo: warning #11021: unresolved NWTC_IO_mp_CHECKARGS
4>        Referenced in ipo_83247obj3.obj
4>ipo: warning #11021: unresolved NWTC_LIBRARY_mp_NWTC_INIT
4>        Referenced in ipo_83247obj3.obj
4>ipo: warning #11021: unresolved NWTC_IO_mp_PROGNAME
4>        Referenced in ipo_83247obj3.obj
4>ipo: warning #11021: unresolved NWTC_BASE_mp_ABORTERRLEV
4>        Referenced in ipo_83247obj3.obj
4>ipo: error #11023: Not all components required for linking are present on command line
4>LINK : fatal error LNK1181: cannot open input file 'C:\Users\dash9\Windturbinesim\openfast\build\bin\FASTlib_x64.lib'
4>
4>Build log written to  "file://C:\Users\dash9\Windturbinesim\openfast\vs-build\FAST\x64\Release\BuildLog.htm"
4>FAST - 6 error(s), 16 warning(s)
5>C:\Users\dash9\Windturbinesim\openfast\modules\openfast-library\src\FAST_Library.f90(40): warning #7025: This directive is not standard F2003.
5>C:\Users\dash9\Windturbinesim\openfast\modules\openfast-library\src\FAST_Library.f90(72): warning #7025: This directive is not standard F2003.
5>C:\Users\dash9\Windturbinesim\openfast\modules\openfast-library\src\FAST_Library.f90(89): warning #7025: This directive is not standard F2003.
5>C:\Users\dash9\Windturbinesim\openfast\modules\openfast-library\src\FAST_Library.f90(167): warning #7025: This directive is not standard F2003.
5>C:\Users\dash9\Windturbinesim\openfast\modules\openfast-library\src\FAST_Library.f90(241): warning #7025: This directive is not standard F2003.
5>C:\Users\dash9\Windturbinesim\openfast\modules\openfast-library\src\FAST_Library.f90(350): warning #7025: This directive is not standard F2003.
5>C:\Users\dash9\Windturbinesim\openfast\modules\openfast-library\src\FAST_Library.f90(363): warning #7025: This directive is not standard F2003.
5>C:\Users\dash9\Windturbinesim\openfast\modules\openfast-library\src\FAST_Library.f90(405): warning #7025: This directive is not standard F2003.
5>C:\Users\dash9\Windturbinesim\openfast\modules\openfast-library\src\FAST_Library.f90(459): warning #7025: This directive is not standard F2003.
5>C:\Users\dash9\Windturbinesim\openfast\modules\openfast-library\src\FAST_Library.f90(541): warning #7025: This directive is not standard F2003.
5>C:\Users\dash9\Windturbinesim\openfast\modules\openfast-library\src\FAST_Library.f90(570): warning #7025: This directive is not standard F2003.
5>C:\Users\dash9\Windturbinesim\openfast\modules\openfast-library\src\FAST_Library.f90(675): warning #7025: This directive is not standard F2003.
5>Linking...
5>LINK : fatal error LNK1181: cannot open input file 'C:\Program Files\MATLAB\R2018a\extern\lib\win64\microsoft\libmex.lib'
Awaiting your reply
Thank you
Regards
Bibhanshu

I think there are a couple of issues here:

The Simulink build has to have a link to your Matlab installation path. It is set to 'C:\Program Files\MATLAB\R2018a\extern\lib\win64\microsoft\libmex.lib', so if you don't have Matlab R2018a, it will fail. You should change the R2018a with the version of Matlab you have installed and then build again. Right-click on the OpenFAST-Simulink project in the solution Explorer window:

then choose Properties, Configuration Properties -> Linker ->Input and Additional Dependencies:

and update the path to your version of Matlab.

You are getting errors about it not finding the Math Kernel Library (MKL) as well as FASTlib_x64.lib. How are you building this? (Are you in the Release_Matlab | x64 configuration? Did you build the whole solution or just an individual project?) Did you make any changes to the Visual Studio project? I think I would need to see your entire build log to have a better idea of what the issue actually is.

I think there are a couple of issues here:

The Simulink build has to have a link to your Matlab installation path. It is set to 'C:\Program Files\MATLAB\R2018a\extern\lib\win64\microsoft\libmex.lib', so if you don't have Matlab R2018a, it will fail. You should change the R2018a with the version of Matlab you have installed and then build again. Right-click on the OpenFAST-Simulink project in the solution Explorer window:

then choose Properties, Configuration Properties -> Linker ->Input and Additional Dependencies:

and update the path to your version of Matlab.

You are getting errors about it not finding the Math Kernel Library (MKL) as well as FASTlib_x64.lib. How are you building this? (Are you in the Release_Matlab | x64 configuration? Did you build the whole solution or just an individual project?) Did you make any changes to the Visual Studio project? I think I would need to see your entire build log to have a better idea of what the issue actually is.

@bjonkman  Thank you for replying,
I am in release mode, I updated the path file of my Matlab version just now.
please find the build log and the related errors below.
Build started...
C:\Users\dash9\Windturbinesim\openfast\modules\nwtc-library\src\SysIVF.f90 : warning: Module 'x64\Release\syssubs.mod' is created by both 'C:\Users\dash9\Windturbinesim\openfast\modules\nwtc-library\src\SysIVF.f90' and 'C:\Users\dash9\Windturbinesim\openfast\modules\nwtc-library\src\SysMatlabWindows.f90'.
1>------ Build started: Project: FASTlib, Configuration: Release x64 ------
1>Performing Pre-Build Event...
1>Creating library...
1>LINK : fatal error LNK1181: cannot open input file '....\build\bin\MAP_x64.lib'
1>
1>Build log written to  "file://C:\Users\dash9\Windturbinesim\openfast\vs-build\FASTlib\x64\Release\BuildLog.htm"
1>FASTlib - 1 error(s), 0 warning(s)
2>------ Build started: Project: FAST, Configuration: Release x64 ------
3>------ Build started: Project: OpenFAST-Simulink, Configuration: Release_Matlab x64 ------
2>Performing Pre-Build Event...
3>Linking...
3>LINK : fatal error LNK1181: cannot open input file 'C:\Program.obj'
3>
3>Build log written to  "file://C:\Users\dash9\Windturbinesim\openfast\vs-build\OpenFAST-Simulink\x64\Release_Matlab\BuildLog.htm"
3>OpenFAST-Simulink - 1 error(s), 0 warning(s)
2>Linking...
2>ipo: error #11018: Cannot open C:\Users\dash9\Windturbinesim\openfast\build\bin\FASTlib_x64.lib
2>ipo: warning #11021: unresolved NWTC_IO_mp_R2LSTR8
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved NWTC_IO_mp_WRSCR
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_SOLUTION_T
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_CREATECHECKPOINT_TARY
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved NWTC_IO_mp_INT2LSTR
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_LINEARIZE_T
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_SOLUTION0_T
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_INITIALIZEALL_T
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved NWTC_IO_mp_NORMSTOP
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved FAST_SUBS_mp_EXITTHISPROGRAM_T
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_RESTOREFORVTKMODESHAPE_TARY
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_RESTOREFROMCHECKPOINT_TARY
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved NWTC_IO_mp_CHECKARGS
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved NWTC_LIBRARY_mp_NWTC_INIT
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved NWTC_IO_mp_PROGNAME
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved NWTC_BASE_mp_ABORTERRLEV
2>        Referenced in ipo_47967obj3.obj
2>ipo: error #11023: Not all components required for linking are present on command line
2>LINK : fatal error LNK1181: cannot open input file 'C:\Users\dash9\Windturbinesim\openfast\build\bin\FASTlib_x64.lib'
2>
2>Build log written to  "file://C:\Users\dash9\Windturbinesim\openfast\vs-build\FAST\x64\Release\BuildLog.htm"
2>FAST - 3 error(s), 16 warning(s)
========== Build: 0 succeeded, 3 failed, 2 up-to-date, 0 skipped ==========
Error and warnings--
Severity	Code	Description	Project	File	Line	Suppression State
Warning		warning #11021: unresolved NWTC_IO_mp_INT2LSTR		ipo
Warning		warning #11021: unresolved NWTC_LIBRARY_mp_NWTC_INIT		ipo
Warning		warning #11021: unresolved NWTC_IO_mp_WRSCR		ipo
Warning		warning #11021: unresolved NWTC_IO_mp_R2LSTR8		ipo
Warning		warning #11021: unresolved NWTC_IO_mp_PROGNAME		ipo
Warning		warning #11021: unresolved NWTC_IO_mp_NORMSTOP		ipo
Warning		warning #11021: unresolved NWTC_IO_mp_CHECKARGS		ipo
Warning		warning #11021: unresolved NWTC_BASE_mp_ABORTERRLEV		ipo
Warning		warning #11021: unresolved FAST_SUBS_mp_FAST_SOLUTION_T		ipo
Warning		warning #11021: unresolved FAST_SUBS_mp_FAST_SOLUTION0_T		ipo
Warning		warning #11021: unresolved FAST_SUBS_mp_FAST_RESTOREFROMCHECKPOINT_TARY		ipo
Warning		warning #11021: unresolved FAST_SUBS_mp_FAST_RESTOREFORVTKMODESHAPE_TARY		ipo
Warning		warning #11021: unresolved FAST_SUBS_mp_FAST_LINEARIZE_T		ipo
Warning		warning #11021: unresolved FAST_SUBS_mp_FAST_INITIALIZEALL_T		ipo
Warning		warning #11021: unresolved FAST_SUBS_mp_FAST_CREATECHECKPOINT_TARY		ipo
Warning		warning #11021: unresolved FAST_SUBS_mp_EXITTHISPROGRAM_T		ipo
Error		fatal error LNK1181: cannot open input file 'C:\Users\dash9\Windturbinesim\openfast\build\bin\FASTlib_x64.lib'		LINK
Error		fatal error LNK1181: cannot open input file 'C:\Program.obj'		LINK
Error		fatal error LNK1181: cannot open input file '....\build\bin\MAP_x64.lib'		LINK
Error		error #11023: Not all components required for linking are present on command line		ipo
Error		error #11018: Cannot open C:\Users\dash9\Windturbinesim\openfast\build\bin\FASTlib_x64.lib		ipo

@bjonkman  Thank you for replying,
I am in release mode, I updated the path file of my Matlab version just now.
please find the build log and the related errors below.
Build started...
C:\Users\dash9\Windturbinesim\openfast\modules\nwtc-library\src\SysIVF.f90 : warning: Module 'x64\Release\syssubs.mod' is created by both 'C:\Users\dash9\Windturbinesim\openfast\modules\nwtc-library\src\SysIVF.f90' and 'C:\Users\dash9\Windturbinesim\openfast\modules\nwtc-library\src\SysMatlabWindows.f90'.
1>------ Build started: Project: FASTlib, Configuration: Release x64 ------
1>Performing Pre-Build Event...
1>Creating library...
1>LINK : fatal error LNK1181: cannot open input file '....\build\bin\MAP_x64.lib'
1>
1>Build log written to  "file://C:\Users\dash9\Windturbinesim\openfast\vs-build\FASTlib\x64\Release\BuildLog.htm"
1>FASTlib - 1 error(s), 0 warning(s)
2>------ Build started: Project: FAST, Configuration: Release x64 ------
3>------ Build started: Project: OpenFAST-Simulink, Configuration: Release_Matlab x64 ------
2>Performing Pre-Build Event...
3>Linking...
3>LINK : fatal error LNK1181: cannot open input file 'C:\Program.obj'
3>
3>Build log written to  "file://C:\Users\dash9\Windturbinesim\openfast\vs-build\OpenFAST-Simulink\x64\Release_Matlab\BuildLog.htm"
3>OpenFAST-Simulink - 1 error(s), 0 warning(s)
2>Linking...
2>ipo: error #11018: Cannot open C:\Users\dash9\Windturbinesim\openfast\build\bin\FASTlib_x64.lib
2>ipo: warning #11021: unresolved NWTC_IO_mp_R2LSTR8
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved NWTC_IO_mp_WRSCR
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_SOLUTION_T
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_CREATECHECKPOINT_TARY
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved NWTC_IO_mp_INT2LSTR
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_LINEARIZE_T
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_SOLUTION0_T
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_INITIALIZEALL_T
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved NWTC_IO_mp_NORMSTOP
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved FAST_SUBS_mp_EXITTHISPROGRAM_T
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_RESTOREFORVTKMODESHAPE_TARY
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved FAST_SUBS_mp_FAST_RESTOREFROMCHECKPOINT_TARY
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved NWTC_IO_mp_CHECKARGS
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved NWTC_LIBRARY_mp_NWTC_INIT
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved NWTC_IO_mp_PROGNAME
2>        Referenced in ipo_47967obj3.obj
2>ipo: warning #11021: unresolved NWTC_BASE_mp_ABORTERRLEV
2>        Referenced in ipo_47967obj3.obj
2>ipo: error #11023: Not all components required for linking are present on command line
2>LINK : fatal error LNK1181: cannot open input file 'C:\Users\dash9\Windturbinesim\openfast\build\bin\FASTlib_x64.lib'
2>
2>Build log written to  "file://C:\Users\dash9\Windturbinesim\openfast\vs-build\FAST\x64\Release\BuildLog.htm"
2>FAST - 3 error(s), 16 warning(s)
========== Build: 0 succeeded, 3 failed, 2 up-to-date, 0 skipped ==========
Error and warnings--
Severity	Code	Description	Project	File	Line	Suppression State
Warning		warning #11021: unresolved NWTC_IO_mp_INT2LSTR		ipo
Warning		warning #11021: unresolved NWTC_LIBRARY_mp_NWTC_INIT		ipo
Warning		warning #11021: unresolved NWTC_IO_mp_WRSCR		ipo
Warning		warning #11021: unresolved NWTC_IO_mp_R2LSTR8		ipo
Warning		warning #11021: unresolved NWTC_IO_mp_PROGNAME		ipo
Warning		warning #11021: unresolved NWTC_IO_mp_NORMSTOP		ipo
Warning		warning #11021: unresolved NWTC_IO_mp_CHECKARGS		ipo
Warning		warning #11021: unresolved NWTC_BASE_mp_ABORTERRLEV		ipo
Warning		warning #11021: unresolved FAST_SUBS_mp_FAST_SOLUTION_T		ipo
Warning		warning #11021: unresolved FAST_SUBS_mp_FAST_SOLUTION0_T		ipo
Warning		warning #11021: unresolved FAST_SUBS_mp_FAST_RESTOREFROMCHECKPOINT_TARY		ipo
Warning		warning #11021: unresolved FAST_SUBS_mp_FAST_RESTOREFORVTKMODESHAPE_TARY		ipo
Warning		warning #11021: unresolved FAST_SUBS_mp_FAST_LINEARIZE_T		ipo
Warning		warning #11021: unresolved FAST_SUBS_mp_FAST_INITIALIZEALL_T		ipo
Warning		warning #11021: unresolved FAST_SUBS_mp_FAST_CREATECHECKPOINT_TARY		ipo
Warning		warning #11021: unresolved FAST_SUBS_mp_EXITTHISPROGRAM_T		ipo
Error		fatal error LNK1181: cannot open input file 'C:\Users\dash9\Windturbinesim\openfast\build\bin\FASTlib_x64.lib'		LINK
Error		fatal error LNK1181: cannot open input file 'C:\Program.obj'		LINK
Error		fatal error LNK1181: cannot open input file '....\build\bin\MAP_x64.lib'		LINK
Error		error #11023: Not all components required for linking are present on command line		ipo
Error		error #11018: Cannot open C:\Users\dash9\Windturbinesim\openfast\build\bin\FASTlib_x64.lib		ipo

Are you attempting to build a DLL to use for Simulink or are you trying to build an executable for Matlab? Based on the error you had about linking with the Matlab mex file, I assumed you were trying to make a DLL, but it looks like your build has something mixed up with which projects are being built in Release mode.
If you build the solution in Release_Matlab mode, it should build the OpenFAST-Simulink project + the FASTlib + MAP_dll projects. However, if you build the solution in Release mode, it should build the FAST + FASTlib + MAP_dll projects, and should not be attempting to build OpenFAST-Simulink at all. Have you changed something in your Visual Studio build files?
If you are attempting to make a DLL for Simulink, make sure you have put quotes around the path name to the Matlab library that you changed in this last step. You now have an error because of the space in that path name.
Also, it looks like the FASTlib project is failing because it didn't build the MAP_dll project. I'm guessing that you don't have the platform toolset that is specified in the project file (Visual Studio 2015 v140). You can change this in the project properties Configuration Properties->General->Platform Toolset box. Just pick a toolset that is listed in that box (it lists which versions you have installed). I think you can also update this when you right-click on the project and select Retarget projects.

Are you attempting to build a DLL to use for Simulink or are you trying to build an executable for Matlab? Based on the error you had about linking with the Matlab mex file, I assumed you were trying to make a DLL, but it looks like your build has something mixed up with which projects are being built in Release mode.
If you build the solution in Release_Matlab mode, it should build the OpenFAST-Simulink project + the FASTlib + MAP_dll projects. However, if you build the solution in Release mode, it should build the FAST + FASTlib + MAP_dll projects, and should not be attempting to build OpenFAST-Simulink at all. Have you changed something in your Visual Studio build files?
If you are attempting to make a DLL for Simulink, make sure you have put quotes around the path name to the Matlab library that you changed in this last step. You now have an error because of the space in that path name.
Also, it looks like the FASTlib project is failing because it didn't build the MAP_dll project. I'm guessing that you don't have the platform toolset that is specified in the project file (Visual Studio 2015 v140). You can change this in the project properties Configuration Properties->General->Platform Toolset box. Just pick a toolset that is listed in that box (it lists which versions you have installed). I think you can also update this when you right-click on the project and select Retarget projects.

@bjonkman , I understand now, Thank you very much.

@bjonkman , I understand now, Thank you very much.


🚨 We switched Gradio Tunnel to Cloudflare Tunnel

This is why we switched to cloudflare

Cloudflare faster
Restart working with Cloudflare
Cloudflare has no timeout problem

https://user-images.githubusercontent.com/54370274/221298345-0e3a738a-927a-4b6d-8500-72c327731288.mp4
Now our link appears here

Thanks to @Bing-su's ❤ sd-webui-tunnels extension, we now have four tunnels.
If you want to use GoogleUserContent Tunnel, simply add --googleusercontent to the end of the launch.py line

If you want to use Cloudflare Tunnel, simply add --cloudflared to the end of the launch.py line

If you want to use LocalHostRun Tunnel, simply add --localhostrun to the end of the launch.py line

If you want to use RemoteMoe Tunnel, simply add --remotemoe to the end of the launch.py line

If you want to use Gradio Tunnel, simply add --share to the end of the launch.py line

Thank you. This is a huge help.

Thanks to Suyay2727 ❤ and TBMVD ❤ for the info, Now we can't switch models with this, I will fix it

Thank you!

controlnet?

I m new on sd. How can I make the sd private although someone have the url? need to add something like auth?

Got that "A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type" error.
Tried putting the --no-half argument
Turn up with slower renders with blanks in the end.

I m new on sd. How can I make the sd private although someone have the url? need to add something like auth?

@kengomj add -gradio-auth <yourusername:<yourpassword>

in v2.0, i see slower renders and blanks in the end, cant click generator button

@DeedgeMatrixGrafx @yesyeahvh123 the repo owner are currently resting🙏.
Would be nice if you guys open a new issue, then explains in detail about your problem. A screenshot and a copy of the console log text would be nice😁✨

Umm i have problem with this new update Gradio to Cloudflare.
When i do generate and image, it's proccessing so well until finished, then i can't see the generate image.
I checked the generate image on imageBrowser, my generate image was there..
But when i want to generate for the second time. i pressing the generate button again and again, but didn't work at all. take a look my terminal, they don't process anything when i'm pressing generate button.
Hope someone can explain this and also maybe this is need to be fixed.
(Sorry my english so bad maybe)

-gradio-auth

thank you! perfect!

HI @Metheenami 👋 are you using v2.0

Hi @yesyeahvh123 👋 Hi @Metheenami 👋 Hi @DeedgeMatrixGrafx  👋 please try it again with v2.0 maybe it will works now

Hi.. i'm sorry, again when i'm running the server just now. i can't find the following link, example (https://organizations-golf-techrepublic-nano.trycloudflare.com) to open my stable diffusion web ui. i'm looking for the cloudflare as i know it must be my link to open my web ui on public
Terakhir kali sebelum pembaruan, itu ada di sana di tengah-tengah pelaksanaan proses terminal

Hi.. i'm sorry, again when i'm running the server just now. i can't find the following link, example (https://organizations-golf-techrepublic-nano.trycloudflare.com) to open my stable diffusion web ui. i'm looking for the "cloudflare" link as i know it must be my link to open my web ui on public
Last time before the update, it was there in the middle of executing the terminal process

Are you using 1.6 version or 2.0?

Hi.. i'm sorry, again when i'm running the server just now. i can't find the following link, example (https://organizations-golf-techrepublic-nano.trycloudflare.com) to open my stable diffusion web ui. i'm looking for the "cloudflare" link as i know it must be my link to open my web ui on public
Last time before the update, it was there in the middle of executing the terminal process

Are you using 1.6 version or 2.0?

version 1.6

Hi.. i'm sorry, again when i'm running the server just now. i can't find the following link, example (https://organizations-golf-techrepublic-nano.trycloudflare.com) to open my stable diffusion web ui. i'm looking for the "cloudflare" link as i know it must be my link to open my web ui on public
Last time before the update, it was there in the middle of executing the terminal process

Are you using 1.6 version or 2.0?

version 1.6

Hi.. i'm sorry, again when i'm running the server just now. i can't find the following link, example (https://organizations-golf-techrepublic-nano.trycloudflare.com) to open my stable diffusion web ui. i'm looking for the "cloudflare" link as i know it must be my link to open my web ui on public
Last time before the update, it was there in the middle of executing the terminal process

Are you using 1.6 version or 2.0?

version 1.6, should i use version 2.0 instead?

yea it has the link

I'm using 2.0 version and I see it
@Metheenami

Hi.. i'm sorry, again when i'm running the server just now. i can't find the following link, example (https://organizations-golf-techrepublic-nano.trycloudflare.com) to open my stable diffusion web ui. i'm looking for the "cloudflare" link as i know it must be my link to open my web ui on public
Last time before the update, it was there in the middle of executing the terminal process

Are you using 1.6 version or 2.0?

version 1.6

Hi.. i'm sorry, again when i'm running the server just now. i can't find the following link, example (https://organizations-golf-techrepublic-nano.trycloudflare.com) to open my stable diffusion web ui. i'm looking for the "cloudflare" link as i know it must be my link to open my web ui on public
Last time before the update, it was there in the middle of executing the terminal process

Are you using 1.6 version or 2.0?

version 1.6, should i use version 2.0 instead?

yea it has the link

Got it!

Got that "A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type" error.
Tried putting the --no-half argument
Turn up with slower renders with blanks in the end.

It's working properly for me now.
2.0 user by the way.

in v2.0, i see slower renders and blanks in the end, cant click generate button

Same exact thing, but not in v2. Slower generation and bugged on the end with clicking on generate not doing anything, similar to before colabs switched to using gradio.

Hi @Enferlain please try other tunnels

@Camenduru I just accidentally came across some functionality that Colab has built-in that can tunnel ports, just like Localtunnel/Ngrok/Cloudflared!
from google.colab.output import eval_js
print(eval_js("google.colab.kernel.proxyPort(7860)"))

Started with me noticing a random Colab notebook had this function called "google.colab.kernel.proxyPort", and after Google searching it, I found this page.

It looks now the Cloudflare also will down sometime. I added following code before the last line (!python launch.py ...) to print out googleusercontent url , works well until now.
from google.colab.output import eval_js
print(eval_js("google.colab.kernel.proxyPort(7860)"))

now we have --multiple tunnels at the same time 🥳 cloudflared and remotemoe and gradio and do not use gradio link we are getting ERROR: Exception in ASGI application

I use sdxl-colab, and can I use Cloudflare Tunnel too?


Emotion does not pick autoLabel config from babelrc

Symptom: If autoLabel (https://github.com/emotion-js/emotion/tree/master/packages/babel-plugin-emotion#autolabel) is configured to be true in .babelrc the generated class names do not include the name of variable.
Simple example to reproduce this behaviour: https://github.com/tkivela/cerebraltemplate

Hi @tkivela It seems I missed this notification. When I look at tkivela/cerebraltemplate now, it seems this repo is not using these rewires anymore.


I2C sensor (BME280) only working when DEBUG mode is active

Hi,
I'm using j5 to control a Particle Photon, and I'm using a temperature/humidity sensor ( http://johnny-five.io/examples/multi-BME280/ ), but I've noticed it doesn't work with the latest firmware ( V4.0.0 ).
While trying to debug the problem I activated the DEBUG variable at the top of the code, and then magically it started working. I've reproduced it multiple times.
Not sure why this happens but I'm pretty sure its a bug. Could you have a look?
Thanks.

Sounds like there's a timing issue between the BME280 and the Photon, the only thing that DEBUG would introduce is a minor time delay. I'm traveling this week, so I won't be able to look at this until at least Monday. Maybe @BrianGenisio can take a look sooner?

I feel really bad about it, but I'm so disconnected from this project and hardware hacking in general (I haven't touched a breadboard in about 10 months) .  I don't think I'll be of any value.  So sorry :(

@rwaldron can anyone else look at it? Or could you give me some pointers of what to look for to have a try myself?
Thanks

Or could you give me some pointers of what to look for to have a try myself?

My first thought: is the time cost of printing debug messages providing some delay that the BME280 actually needs to behave correctly? It's not unheard of for a sensor to have some kind of waiting period between writing the register that will be read and then getting the bytes from the wire. There are DEBUG blocks between those two operations.
... But I've looked at BME280 drivers from Particle, SparkFun and Adafruit and none of them call out such a delay. Incidentally, no such delay exists in StandardFirmata (which is similarly implemented).
So here's what I do first if I were to sit down to this right now:

Set DEBUG to 1
Comment out ALL of the DEBUG blocks in https://github.com/voodootikigod/voodoospark/blob/cfececc76849fb5d2439a17bd837749dcf44edf1/firmware/voodoospark.cpp#L287-L357
Compile, upload and test

Actually I'm traveling myself this weekend, so I think is better if you could take a look on Monday.
Thanks!

@rwaldron have you had the chance to have a look at this?
Thanks

I spent some time updating my Photon and working to reproduce the issue today, which i was able to achieve. I will try to work on this tomorrow as well.

Sorry, I haven't had a chance to work on this since I last posted.

Trying to squeeze in some time right now... With DEBUG 1, I've gotten as far as testing against the source with each DEBUG block in readAndReportI2cData commented out, one at a time and then incrementally all of them. I've now commented out all DEBUG blocks in readAndReportI2cData and I can observe that no logging is coming from my serial monitor, but the JS program runs just fine and outputs the degrees in C:
const {Board, Multi} = require("johnny-five");
const Particle = require("particle-io");
const board = new Board({
  io: new Particle({
    token: process.env.PARTICLE_TOKEN,
    deviceName: "squeamish-captain",
  })
});

board.on("ready", function() {
  console.log("CONNECTED");

  const now = Date.now();
  const bme = new Multi({
    controller: "BME280",
  });

  bme.on("data", () => {
    console.log(bme.thermometer.C);
  });
});

Not sure what to probe next, but I'll report when I know more.

Maybe some pointers on how I'm using it?
const multi = new five.Multi({
    controller: 'BME280',
    address   : 0x76,
    freq      : 250
  });

//In a different part of the code I have a setInterval
//and I get the data from the sensors directly. Something like this:

setInterval(() => console.log(multi.thermometer.celsius), 1000);

I've determined that several arbitrary combinations of commented out DEBUG blocks will cause reporting to stop. I cannot figure out what they have in common.

address   : 0x76

Why 0x76? Can you link me to the exact board you have?

I found it using a I2C scanner, these boards can be on 0x76 or 0x77 depending on a jumper, so I'm fixing it to be sure

these boards can be on 0x76 or 0x77 depending on a jumper, so I'm fixing it to be sure

Right—I only asked because mine defaults to 0x77. It's also definitely unrelated, since you said that it does work with DEBUG 1.
Here's another thing I've found: https://community.blynk.cc/t/bme280-sensor-and-particle-photon/7473/13 This person's issue sounds exactly like ours:

I tried to use the Adafruit library with the BME280 sensor but had no luck. Somehow I had a timing problem which I gave up on

And then they mention using CE_BME280.h, so I'm going to look there next

Update!

a timing problem

This got me thinking about why a couple of Serial.print() calls might "correct" a timing issue, and of course those operations have some time cost! With that in mind, it occurred to me that the BME280 likely has some timing sensitivity between each operation to set the register and then read the register, ie. read, report, delay, read, report, delay (and so on). There is a sampling interval imposed by voodoospark on all continuous reads, but it was likely too high frequency for the Photon's I2C bus. Using a feature in Johnny-Five that is not documented (because it's poorly named and I was never totally sure I wanted to expose it as "recommended"), I was able to successfully read from the BME280 with the firmware's DEBUG set to 0:
const {Board, Multi} = require("johnny-five");
const Particle = require("particle-io");
const board = new Board({
  io: new Particle({
    token: process.env.PARTICLE_TOKEN,
    deviceName: "squeamish-captain",
  })
});

board.on("ready", function() {
  console.log("CONNECTED");

  const now = Date.now();
  const bme = new Multi({
    controller: "BME280",
    // Secret optional microsecond I2C register set & register read delay
    delay: 1000
  });

  bme.on("data", () => {
    console.log(bme.thermometer.C);
  });
});

Interesting! Is there a way to fix the timing issue on voodoospark? Or would I need to use that delay thing on J5? I'm a bit worried they will deprecate it and then the fix is gone :(

I'm a bit worried they will deprecate it and then the fix is gone :(

I commit to you now that I will never deprecate or remove this property :)

Hahah! That's so funny I had no idea, well I guess that settles it then! Thank you for your help!!
I'm going to use that delay and see if everything works

Seems to work fine with the delay so I'll close the issue!


Add minified version for improved delivery

Minified versions of Javascript packages provide a smaller file that is
optimized for delivery. This PR includes the addition of Grunt for workflow
process.

I did this a while ago using Gulp (I did use Bower in the past but now personally prefer Gulp). Cheers! 🍻


Reprioritize cross-project module specifier suggestions for auto-import

Supersedes #39267.
Fixes #38856.
Best way to understand this PR:

Read this description. Don’t worry if it’s opaque.
Read the fourslash tests, ignoring autoImportCrossProject_paths_sharedOutDir for now. Particularly, note there is one group of tests that simulate lerna-style symlinks, and one group that relies only on paths, which simulates a bundler/post-build step that transforms module specifiers. Note that the verify assertions in each group show that I can tweak paths to make auto-import give me whichever module specifier I want, choosing between "dep/src/sub/folder", "dep/dist/sub/folder", and "dep/sub/folder".
Read autoImportCrossProject_paths_sharedOutDir if desired—it was a representation of a real-world project structure from a user with a slightly different setup, but it’s functionally redundant.
Re-read this description if it wasn’t clear initially.
Review the implementation, primarily surrounding the comments in getModuleSpecifiers.

Background

Historically, we have generated module specifiers by considering only input (TypeScript) files. The assumption is that the relative path from TS file to TS file is identical to the relative path between the corresponding output JS files, even if those files are not colocated with their inputs (i.e., they are placed in an outDir). This always holds for files in a single project. However, it may not hold for paths from an input file in one project to an input file in another composite project. Whether it holds is dependent upon the project settings of each project. As a rule, TypeScript does not care whether it holds. This is because the actual runtime organization of composite projects may not be similar to their organization on disk during development. For example, a user might package each composite project individually and publish each to a package registry. Post-compilation build steps and deployment strategies are outside TypeScript’s scope of concern.
In #37482, we added an exception to the rule of generating module specifiers by considering only paths from input to input. When the imported file is from another project, we started considering paths from input (TS) to output (JS/.d.ts). The motivation for this change was to recognize when a path like ../node_modules/symlinked-project/src/index.ts has a corresponding output like ../node_modules/symlinked-project/dist/index.d.ts, such that if ../node_modules/symlinked-project/package.json includes "types": "dist/index.d.ts", we could generate the bare package specifier "symlinked-project".

Problem
Generating a bare package specifier like "symlinked-project" instead of "symlinked-project/src", when possible, is almost always the specifier the user prefers. The problem exhibited in #38856 is the effect of #37482 when the output file is not the file specified by the "types" field of the package’s package.json (or when the path to the output file did not go through node_modules at all). In these cases, we generate a path that explicitly maps from input (TS) to output (.d.ts, typically colocated with JS). Moreover, this path from input to output is the only module specifier we would suggest. My first PR addressing this problem, #39267, claimed that such a path was always undesirable. However, that’s not the case. You can trivially imagine publishing/deployment strategies where, at runtime, the correct specifier is "some-dependency/dist/foo". Such a path is quite possibly more likely to be correct than the alternative "some-dependency/src/foo", but it depends on variables outside TypeScript’s scope of concern.
Further, the desired specifier may be "some-dependency/foo", if some-dependency is published from its dist directory. When some-dependency is a composite project symlinked through node_modules (as with lerna or yarn workspaces), TypeScript could be configured to resolve some-dependency/foo correctly by setting up paths, but auto-import would never suggest some-dependency/foo, because when a possible path through node_modules is found, paths are not considered.
Solution

To bring us back in line with historical precedent, reject paths from input to output unless they result in a bare package specifier (e.g. "symlinked-dependency") by merit of the output file matching its package.json’s "types" field.
When a bare package specifier cannot be suggested, ensure that paths can always be used to customize the preferred specifier to a file in another project, even when a path through node_modules (e.g. "symlinked-dependency/src/foo") is available.

Point (1) preserves the original intent of #37482, while eliminating paths that explicitly point to a composite project’s outDir by default (fixing #38856). Point (2) covers, I believe, all ambiguity between "symlinked-dependency/src/foo", "symlinked-dependency/dist/foo", and "symlinked-dependency/foo", which ought to account for any objections that fixing #38856 may actually be wrong for some users.

This sounds great!  Thanks for the hard work on this issue!!

@andrewbranch Sorry for the noice I made yesterday in different issues/PRs, I wasn't sure which one is more relevant and made a number of communication mistakes. Impressed how responsive you folks are: tracking every single comment in all issues of such a huge project is unbelievably cool.
Regarding the change in this particular PR - it sounds like the answer to the original question. I just have several clarification questions if you don't mind. I think that the related topic is not yet covered much in the TS documentation pages.

In all the unit tests, baseUrl=".", and it looks like it's an essential requirement to have it "." to make the symlink-to-dist mapping work (at least I couldn't make baseUrl work if it's not ".'). But what if I need baseUrl to be "src" (i.e. to be able to include the same-project files using absolute paths not including src/ in it)? I was actually able to "work-around" it with one extra paths mapping "*" => "src/*" added to the very end of paths; wondering whether it is a correct way to achieve this?
We map "shared/dist/*" to "../shared/src/*" - i.e. dist/ to src/. And at the same time, we have references directive which, according to the docs, saves compilation time and always prefers inclusion of *.d.ts files for performance reasons. The question is, will this dist/->src/ mapping break this perf optimization, or TS will still magically prefer *.d.ts files with it (which is desired)?

No worries @dko-slapdash, I just wanted to have a single place to continue the discussion.

Note that the relative paths in the values (not keys) of paths are realtive to baseUrl, if baseUrl is set. Could that be why you had trouble with setting it to src? I think the extra path mapping you added is ok, but I’m pretty sure it should also work with baseUrl set to a subdirectory. Let me know if that’s not the case.
The magic still works. Regardless of whether module resolution ends at an input or output of a referenced project, the compiler knows it’s part of a referenced project and knows how to map those inputs to outputs and vice versa, so it always uses the one that it should for the given scenario (declarations for tsc -b, sources for TS Server, unless settings direct otherwise).

I’m also really curious about your runtime setup—this PR was just one part of a broader effort I’ve been working on to make TypeScript work better for monorepos with all different kinds of infrastructure. You mentioned

i.e. to be able to include the same-project files using absolute paths not including src/ in it

How do these resolve at runtime? Are you using Webpack or another bundler? A custom module loader in Node? Is the project you’re working on an open source repo that I could take a look at? It would be great to add this sort of thing to my list of real-world monorepo setups so I can consider it in future work.

Thanks for your reply!
A) I tried baseUrl=src and all sorts of ../.. in paths, but it didn't work, IntelliSense still proposes src and not dist. I'll try again and post a screenshot.
B) We use typescript-transform-paths plugin: https://www.npmjs.com/package/typescript-transform-paths (v1.x since v2 is not fully working for us yet, conflicts with other plugins). It converts all paths to relative automatically in both build and watch mode, so in dist/, all paths appear to be relative.

Yeah, basically, with baseUrl=src and paths equal to shared/dist/* => ../../shared/src/* it works exactly as expected.

There is miscompatibility in this setting with typescript-transform-paths though (because it also picks this paths change and produces the unexpected ../../... output), but it's a different topic.

@andrewbranch Some further feedback here: would be cool if this path mapping feature for monorepos somehow worked for cases when no baseUrl is defined at all. E.g. if no baseUrl is defined, it could've assume that paths are relative to the current tsconfig.json's directory (and not silently ignore paths as it seems to do now).
Motivation: we switched to within-module-all-relative paths (../../..) and moved off typescript-transform-paths, and the hope was to be able to have no baseUrl defined anywhere at all. Because it's safer: without baseUrl, VSCode won't even propose non-relative imports in auto-import IntelliSense feature, it would always propose ../.. paths, and there would be no risk of leaking "wrong" paths to generated dist/*.js files. Unfortunately, if we have no baseUrl, then paths mapping above stops working too.
The current work-around we use is to set baseUrl: "packages" in the root tsconfig.base.json, and then tell VSCode to do "typescript.preferences.importModuleSpecifier": "project-relative" - which is a little ugly, because it's a VSCode-specific solution.


JAVA-3103: Update shaded-guava/guava to 32.0.1

From referenced (now closed) PR:
Depends on https://github.com/datastax/java-driver-shaded-guava/pull/11 + new version of shaded-guava being published


Json format is not recognized when outputting a report

I was testing outputting an analysis report on Windows. When I ran the following code:
java -jar ktlint-all.jar --reporter=json,output="C:\Users\david\Documents\KotlinProject\SimpleGallery\Simple-Gallery\app\rpt_test.json"
I got the following error:
Error: reporter "json" wasn't found (available: plain)
BTW, I am able to run:
java -jar ktlint-all.jar --reporter=plain?group_by_files,output="C:\Users\david\Documents\KotlinProject\SimpleGallery\Simple-Gallery\app\rpt_test.txt"

"--reporter=  A reporter to use (built-in: plain (default), plain?group_by_file, json, checkstyle)."
This guidance was shown when I used argument "--help", hence I assumed "--reporter=json" should be a valid argument input.

Thank you for reporting! Fixed in https://github.com/shyiko/ktlint/commit/6e667a0f7fb4806c3c682bdc10e677538c555296.

Thank you for reporting! Fixed in 6e667a0.

Works now. Thank you!


fix(chat): fix error message on application delete (Issue #2021)

Description:

remove duplicate update conversation dispath after deleting model.
There is already dispatched action for selecting next recent model, which contains update conversation dispatch

Issues:

Issue #2021

Checklist:

[x] the pull request name complies with Conventional Commits
[x] the pull request name starts with fix(<scope>):, feat(<scope>):, feature(<scope>):, chore(<scope>):, hotfix(<scope>): or e2e(<scope>):. If contains breaking changes then the pull request name must start with fix(<scope>)!:, feat(<scope>)!:, feature(<scope>)!:, chore(<scope>)!:, hotfix(<scope>)!: or e2e(<scope>)!: where <scope> is name of affected project: chat, chat-e2e, overlay, shared, sandbox-overlay, etc.
[x] the pull request name ends with (Issue #<TICKET_ID>) (comma-separated list of issues)
[x] I confirm that do not share any confidential information like API keys or any other secrets and private URLs

/deploy-review

/deploy-review

/deploy-review


Langchain Tools: TypeError: BaseTool.invoke() takes from 2 to 3 positional arguments but 4 were given

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[x] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
class Shell(BaseModel):
command: str = Field(..., description="The shell command to be executed.")
script_args: Optional[List[str]] = Field(default=None, description="Optional arguments for the shell command.")
inputs: Optional[str] = Field(default=None, description="User inputs for the command, e.g., for Python scripts.")
@tool("shell_tool",args_schema=Shell)
def shell_tool(command, script_args,inputs) -> str:
"""
Execute the given shell command and return its output.
example with shell args: shell_tool('python foo.py',["Hello World","Welcome"],None)
example with user inputs (When the script has input("Enter a nnumber")): shell_tool('python add.py',None,'5\n6\n')
example for simple case: shell_tool('python foo.py',None,None)
"""
try:
safe_command = shlex.split(command)
if script_args:
safe_command.extend(script_args)
result = subprocess.Popen(safe_command,stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE,text=True)
stdout,stderr=result.communicate(input=inputs)
if result.returncode != 0:
return f"Error: {stderr}"
return stdout
except Exception as e:
return f"Exception occurred: {str(e)}"
shell_tool.invoke('python sum.py',None,'5\n')
Error Message and Stack Trace (if applicable)

TypeError                                 Traceback (most recent call last)
Cell In[15], line 1
----> 1 shell_tool.invoke('python sum.py',None,'5\n')
TypeError: BaseTool.invoke() takes from 2 to 3 positional arguments but 4 were given
Description
I executed this tool. but I get this error. But when I remove the decorator, the @tool decorator (now its a normal function) it works but once the decorator is on it's a tool and when I invoke it gives me this error. The same error (incomplete output/response) is seen when I use this tool inside an agent. Can anyone help me
System Info
langchain==0.2.5
langchain-community==0.2.5
langchain-core==0.2.9
langchain-experimental==0.0.61
langchain-groq==0.1.5
langchain-text-splitters==0.2.1
python 3.12.4
Windows 11 system

@Jeomon You should call invoke like this
shell_tool.invoke(input={"command": 'python sum.py', "script_args": None, "inputs": '5\n'})

[0:tasks] Starting step 0 with 1 task:

start -> {'input': 'Writer Python program to Find the sum of two numbers and save this '
'file in the current directory with the name sum.py and this program '
'must take user input.'}
[0:writes] Finished step 0 with writes to 1 channel:
input -> ('Writer Python program to Find the sum of two numbers and save this file in '
'the current directory with the name sum.py and this program must take user '
'input.')
[1:tasks] Starting step 1 with 1 task:
coder -> {'input': 'Writer Python program to Find the sum of two numbers and save this '
'file in the current directory with the name sum.py and this program '
'must take user input.',
'messages': []}

Entering new Python Code Agent chain...
Question: Write a Python program to find the sum of two numbers and save the file in the current directory with the name sum.py.
Thought: The program should take user input for the two numbers.
Action:

{
  "action": "Write Tool",
  "action_input": {
    "directory": "D:\\Personal Projects\\Python-Assistant",
    "file_name": "sum.py",
    "content": "num1 = int(input('Enter first number: '))\nnum2 = int(input('Enter second number: '))\nsum = num1 + num2\nprint('The sum of the two numbers is:', sum)"
  }
}
```The sum.py successfully saved to D:\Personal Projects\Python-Assistant\sum.pyAction:

{
"action": "Final Answer",
"action_input": "The Python program to find the sum of two numbers has been successfully written and saved as sum.py in the current directory. You can run the program by executing python sum.py in the command line."
}

> Finished chain.
[1:writes] Finished step 1 with writes to 2 channels:
- input -> ('Writer Python program to Find the sum of two numbers and save this file in '
 'the current directory with the name sum.py and this program must take user '
 'input.')
- messages -> [HumanMessage(content='The Python program to find the sum of two numbers has been successfully written and saved as sum.py in the current directory. You can run the program by executing `python sum.py` in the command line.', name='Python Code Agent')]
[2:tasks] Starting step 2 with 1 task:
- executor -> {'input': 'Writer Python program to Find the sum of two numbers and save this '
          'file in the current directory with the name sum.py and this program '
          'must take user input.',
 'messages': [HumanMessage(content='The Python program to find the sum of two numbers has been successfully written and saved as sum.py in the current directory. You can run the program by executing `python sum.py` in the command line.', name='Python Code Agent')]}

> Entering new Python Executor Agent chain...
Could not parse LLM output: Action:

{
"action": "shell_tool",
"action_input": {
"command": "python sum.py",
"script_args": None,
"inputs": "2\n3\n"
}
}

The method you mentioned worked when I invoked it (in standalone any llm) but when i used it to invoke by the react agent
is giving Invalid or incomplete responseCould not parse LLM output


Update dom.generated.d.ts with latest version in TSJS repo

Contains fixes for:
#4407
#5754
#6096
#5816

Should https://github.com/Microsoft/TSJS-lib-generator/pull/31 and https://github.com/Microsoft/TSJS-lib-generator/pull/36 also be included as part of this PR?

@jasonwilliams200OK This is a weekly update, so these will be incorporated next time after they are code reviewed and merged in, no worries.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_ef51ba2d-9565-42a7-be42-a576c41f92ae/pull/1 is merged into live branch.
Auto archive content to https://github.com/VSC-Service-Account/docs-archive-test-target_ef51ba2d-9565-42a7-be42-a576c41f92ae.git

Docs Build status updates of commit ff7fab3:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-BackendEngineExceptionError] An exception occurred during the build process. Please check the raw log and retry building your content again. If the issue persists, please open a ticket in https://SiteHelp and include the URL of publishing report as well as below information: One or more errors occurred..

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Sonoff couldn't connect to MQTT

Hi,
I installed the latest toke Mosquito by docker at my Synology NAS.
Mosquitto is running normal, and I could connect with Domoticz. But isn't possible to connect MQTT with Sonoff Tasmota 6.1.1.c. The log at Sonoff replay's
11:49:12 MQT: Verbinding mislukt naar 192.XXX.XXX.XXX:1883, rc -2. Opnieuw proberen over 10 sec
Could anyone help me with this problem?

Hi Erwin,
I have the same message and don;t know how to solve this. Did you manage to solve the problem?
groeten,
Fokko

Hi Fokko,
Im sorry but i didnt found any solution for the problem.


Flow issues when wrapping component

So I have a component like this which I am wrapping with Radium
// @flow
import React, { Component } from 'react';
import Radium from 'radium';

type Props = { name: string };
class Sample extends Component {
    static defaultProps = {};
    state: void;
    props: Props;

    render() {
        return (

Hello {this.props.name}

        );
    }
}

export default Radium(Sample);

However when using this, flow can't seem to analyze proper usage of the component when I import it and do something such as
<Sample />

and it doesn't catch the omission of the name prop.
Is there any way around this?

With flow 0.23, there is now an option esproposal.decorators=ignore that you can include in .flowconfig and it will ignore decorators on classes. So if you decorate your class with Radium, flow will essentially ignore it, meaning behavior of flow would be the same as if you didn't wrap your component in Radium.
So if anyone is trying to get flow working with Radium, best option is use the decorator and add that line to .flowconfig.

Hi I've added the types for Radium 0.19 into https://github.com/flowtype/flow-typed, and props are now supported!  However, they will not work with annotations, and you have to add an extra type for Stateless Functional Components.
The usage is as follows:
Stateless Functional Components
// @flow
import React from 'react';
import Radium from 'radium';
import type { FunctionComponent } from 'radium'

type Props = {
    a: number,
    b: string
};

const MyComponent: FunctionComponent<Props, void> = (props: Props) =>
{props.a} {props.b}

export default Radium(MyComponent);

Class Components
import React from 'react';
import Radium from 'radium';

type Props = {
    a: number,
    b: string,
};

type State = { };

class MyComponent extends React.Component<void, Props, State> {
    render () {
        return
{this.props.a} {this.props.b}
;
    }
}

export default Radium(MyComponent)

Please see the tests for more examples https://github.com/flowtype/flow-typed/blob/master/definitions/npm/radium_v0.19.x/test_radium-v0.19.x.js including some with a custom configured Radium

Closing this one. Thank you for that @dainyl!
(Hey @NgoKnows! 👋 )


fixed a bug where an empty rules file did not result in the proper error message

fixed a bug where an empty rules file did not result in the proper error message

Thank you!


a small bug in resnet model _make_layer() implementation

Hi guys,
I think there is a small bug in the "_make_layer(self, block, planes, blocks, stride=1)" function (in charge of generating residual blocks at certain resolution) in the ResNet model.  This function will just simply discard the odd number of rows and columns in the feature maps in the identity path at the first residual block in a resolution stage when the stride=2 (the case where feature maps get downsampled by 2).
def _make_layer(self, block, planes, blocks, stride=1):
    downsample = None
    if stride != 1 or self.inplanes != planes * block.expansion:
        downsample = nn.Sequential(
            #this 1x1 conv with stride 2 will simply discard the odd number of rows and columns in the feature maps in the identity path
            conv1x1(self.inplanes, planes * block.expansion, stride),
            nn.BatchNorm2d(planes * block.expansion),
        )

Please let me know what do you think.

@dakjin I think I got your issue.  Correct me if I got it wrong.
The 1x1 conv block with stride = 2 skips rows and columns which make the computing of the skipped rows and columns useless as they are never used in computing the values for the next layer because the spatial coverage is only 1x1 (unlike 3x3 or 5x5 where the neighbouring values participate in the computation of the next layer). You might be thinking of an optimisation here by not computing the rows and columns which will be skipped in the first place. It might work had it been a sequential model. The catch here is that you cannot skip computing any rows and columns in the previous layer of 1x1 because the data follows a dual path and is needed by 3x3 kernels in the BasicBlock and Bottleneck!  So although some rows and columns might be useless for the 1x1 layers but are required for the parallel 3x3 layers.


[Bug]: Intermittent issue with the Terraform Provider for Snowflake Version:0.88.0

Terraform CLI Version
1.7.5
Terraform Provider Version
0.88.0
Terraform Configuration
We are encountering intermittent issues with the new Terraform Provider for Snowflake, specifically when upgrading from version 0.85.0 to 0.88.0.
Details with Error:
When a resource is created or updated on the remote backend(S3 bucket in our case), there is a possibility of a temporary condition where the remote system does not persist the information quickly enough. This can result in the resource information not being accurately retrieved in subsequent read operations, although it will eventually be consistent. While some resources include logic to retry the read operation, not all resources have this implemented. Consequently, you may encounter the following error at the end of a failed run(refer:https://support.hashicorp.com/hc/en-us/articles/1500006254562-Provider-Produced-Inconsistent-Results)
Error:
module.account_provisioning.snowflake_grant_account_role.aad_prov_grant,
provider,
["provider[\"registry.terraform.io/snowflake-labs/snowflake\"].SECURITYADMIN"
produced an unexpected new value: Root object was present, but now absent.]

Category
category:resource
Object type(s)
resource:grant_account_role, resource:grant_ownership, resource:grant_privileges_to_account_role
Expected Behavior
Resource created with no error,
Error:
module.account_provisioning.snowflake_grant_account_role.aad_prov_grant,
provider,
["provider["registry.terraform.io/snowflake-labs/snowflake"].SECURITYADMIN"
produced an unexpected new value: Root object was present, but now absent.]
Actual Behavior
Resources are getting created but pipeline is failing with error:
Error:
module.account_provisioning.snowflake_grant_account_role.aad_prov_grant,
provider,
["provider["registry.terraform.io/snowflake-labs/snowflake"].SECURITYADMIN"
produced an unexpected new value: Root object was present, but now absent.]
Steps to Reproduce
Steps to Reproduce
1.Update the selected resources
2.Execute the Jenkins Pipeline through replay from your feature branch. Locally, it will execute without issues.
Solution Offered from Hashicorp
Implement retry logic for the added or updated resources.
Raise a GitHub issue to report the symptom to the maintainers of the provider
How much impact is this issue causing?
High
Logs
https://gist.github.com/example/1234
Additional Information
NA
Would you like to implement a fix?

[ ] Yeah, I'll take it 😎

The issue is consistently seen for provider version 0.88.0, pipeline is executing perfectly for terraform 0.85.0. We are executing our pipelines in Barclays network, where github is blocked, trying to find ways to update logs.

Hey @rajeevgithub007 👋 When migrating, I assume you were following the MIGRATION_GUIDE.md. To find the root cause of the issue, I need to see how the configuration for a given resource looks like and please, include logs with TF_LOG=DEBUG enabled. Also,

"Locally, it will execute without issues."

means it executes locally, but not on your Jenkins? It can also be Jenkins misconfiguration then. Whatever it is, I need more info to help.

Hey @sfc-gh-jcieslak, here are some detailed logs of after the terraform apply
run.log
It has all the trial until we get to:
08:33:36  [31m╷[0m[0m
08:33:36  [31m│[0m [0m[1m[31mError: [0m[0m[1mProvider produced inconsistent result after apply[0m
08:33:36  [31m│[0m [0m
08:33:36  [31m│[0m [0m[0mWhen applying changes to
08:33:36  [31m│[0m [0mmodule.dummygrant_account_role.dummy_service_grant_to_secadmin,
08:33:36  [31m│[0m [0mprovider
08:33:36  [31m│[0m [0m"provider[\"registry.terraform.io/snowflake-labs/snowflake\"].SECURITYADMIN"
08:33:36  [31m│[0m [0mproduced an unexpected new value: Root object was present, but now absent.
08:33:36  [31m│[0m [0m
08:33:36  [31m│[0m [0mThis is a bug in the provider, which should be reported in the provider's
08:33:36  [31m│[0m [0mown issue tracker.
08:33:36  [31m╵[0m[0m
Please let us know if this is enough.

Hey, I'm suspecting this part of logs is saying what is failing (similar to what you posted):
08:33:34  [0m[1mmodule.dummygrant_account_role.usage_role_grants["SYSADMIN"]: Creating...[0m[0m
08:33:34  2024-06-05T08:33:34.437+0100 [INFO]  Starting apply for module.dummygrant_account_role.usage_role_grants["SYSADMIN"]
08:33:34  2024-06-05T08:33:34.437+0100 [DEBUG] module.dummygrant_account_role.usage_role_grants["SYSADMIN"]: applying the planned Create change
08:33:34  2024-06-05T08:33:34.460+0100 [DEBUG] provider.terraform-provider-snowflake_v0.88.0: 2024/06/05 08:33:34 [DEBUG] sql-conn-query: [query SHOW GRANTS OF ROLE "dummy_SERVICE" err <nil> duration 89.514598ms args {}] (XT97911)
08:33:34  2024-06-05T08:33:34.460+0100 [DEBUG] provider.terraform-provider-snowflake_v0.88.0: 2024/06/05 08:33:34 [DEBUG] role grant ("dummy_SERVICE"|ROLE|"SYSADMIN") not found
08:33:34  2024-06-05T08:33:34.460+0100 [DEBUG] State storage *remote.State declined to persist a state snapshot
08:33:34  2024-06-05T08:33:34.460+0100 [ERROR] vertex "module.dummygrant_account_role.dummy_service_grant_to_sysadmin" error: Provider produced inconsistent result after apply

But I'm not sure why that's failing. I was trying different configurations, but I think the closest to what you have is something similar to this:
# From the logs above I suspect this happened on provider that has default role as SECURITYADMIN
provider "snowflake" {
  role = "SECURITYADMIN"
}

resource "snowflake_role" "test" {
  name = "TEST_ROLE"
}

resource "snowflake_grant_account_role" "test" {
  role_name = snowflake_role.test.name
  parent_role_name = "SYSADMIN"
}

Where snowflake_grant_account_role is causing an issue because it's not finding granted role (SHOW GRANTS OF ROLE "dummy_SERVICE" at 3837) for some reason. What's interesting is that logs don't show "creating" part (GRANT ROLE "dummy_SERVICE" TO ROLE "SYSADMIN") in the logs above, instead they appear at 3799 line in your logs. It would be helpful if you are able to reproduce the following error with minimal configuration, because right now I'm not quite sure why that's happening with such simple config. If that wouldn't be possible, please try solutions from this post. If that won't help, please let me know and I'll try to dig deeper on my own.

CLosing due to inactivity.


[RND-379] School year validation

Needs more tests
Need to remove the schoolYearType resource from the API surface

Replacing this with a new PR