Simplify the update process

Currently, requesting to update one nuget package initiates a lengthy process for all packages (not sure why is that). In a project with tens of packages this takes significantly longer time than by using nuget package manager, which is frustrating. For internal packages that change often this creates issues for developers that need to update them often.

IIRC nuget doesn't recompute the whole dependency tree and this allows to introduce conflicts (in very rare cases). We don't want to go that route in paket.
Usually updating a single package should still be relatively fast since we "soft pin" most dependencies and this should keep traffic low. But there might be still some edge case where paket isn't smart enough yet. We would need good samples to reproduce that.

Doesn't paket already have the whole dependency tree in paket.lock and just need to fetch new dependencies from the package that is being updated, fix the lock file accordingly and have the tree ready?

yes. in most cases.
but the new updated version might bring in new requirements that break the whole dependency graph. these things exist in the real world. We need to recompute then. The strange things is: usally (if nothing important changes) the process is smart and very fast. So it must find something strange in your case and recompute too much.

$ .paket\paket update
Paket version <IP_ADDRESS>
Resolving packages for group Main:

xunit is pinned to 2.0
Services.DataAccess 0.2.0-unstable0013
Services.DataAccess.InMemory 0.2.0-unstable0013
EventSourcing 2.0.0-unstable0052
EventSourcing.EventStore 2.0.0-beta0037
EventSourcing.Subscriptions 2.0.0-beta0009
EventSourcing.Testing 2.0.0-unstable0052
Services.Base 0.1.0-ci0007
Autofac 3.5.2
Autofac.Extras.ServiceStack 2.0.2
AutoFixture 3.37.3
AutoFixture.AutoNSubstitute 3.37.3
AutoFixture.Xunit2 3.37.3
FAKE 4.10.5
FluentAssertions 4.1.1
Microsoft.CodeDom.Providers.DotNetCompilerPlatform 1.0.1
Microsoft.Net.Compilers 1.1.1
NSubstitute <IP_ADDRESS>
Projac.Connector 0.0.139
Serilog 1.5.14
Serilog.Sinks.Seq 1.5.27
ServiceStack 4.0.50
ServiceStack.Api.Swagger 4.0.50
ServiceStack.Client 4.0.50
ServiceStack.Interfaces 4.0.50
ServiceStack.Logging.Serilog <IP_ADDRESS>
ServiceStack.RabbitMq 4.0.50
Topshelf 3.3.1
Topshelf.Serilog 3.3.1
xunit.abstractions 2.0.0
xunit.runner.console 2.1.0
xunit.runner.visualstudio 2.1.0
xunit.core 2.0.0
xunit.assert 2.0.0
ServiceStack.Common 4.0.50
ServiceStack.Text 4.0.50
System.Runtime 4.0.20
System.Collections 4.0.10
System.Diagnostics.Debug 4.0.10
System.Globalization 4.0.10
System.Linq.Expressions 4.0.10
System.ObjectModel 4.0.10
System.Reflection 4.0.10
System.Runtime.Extensions 4.0.10
System.Text.RegularExpressions 4.0.10
System.Threading 4.0.10
System.Threading.Tasks 4.0.10
System.Xml.XDocument 4.0.10
System.Linq 4.0.0
System.Reflection.Extensions 4.0.0
System.Reflection.Primitives 4.0.0
System.Reflection.TypeExtensions 4.0.0
RabbitMQ.Client 3.5.7
Microsoft.Net.Http 2.2.29
CompareNETObjects <IP_ADDRESS>
EventStore.Client 3.3.1
EventStore.SerilogAdapter 1.0.0
Ix-Main 1.2.5
MassTransit 3.0.17
Mediatr 2.0.2
Newtonsoft.Json 7.0.1
Serilog.Sinks.Elasticsearch 2.0.70
System.Collections.Immutable 1.1.37
xunit.extensibility.core 2.0.0
System.IO 4.0.10
System.Text.Encoding 4.0.10
System.Xml.ReaderWriter 4.0.10
System.Diagnostics.Contracts 4.0.0
System.Private.Uri 4.0.0
System.Reflection.Emit 4.0.0
System.Resources.ResourceManager 4.0.0
NewId 2.1.3
Microsoft.Bcl 1.1.10
Elasticsearch.Net 1.7.1
Microsoft.Bcl.Async 1.0.168
Microsoft.Bcl.Build 1.0.21
System.Runtime.InteropServices 4.0.20
System.Text.Encoding.Extensions 4.0.10
System.IO.FileSystem 4.0.0
System.IO.FileSystem.Primitives 4.0.0
System.Reflection.Emit.ILGeneration 4.0.0
System.Runtime.Handles 4.0.0
System.Runtime.WindowsRuntime 4.0.10
System.Threading.Overlapped 4.0.0
Locked version resolution written to C:\Dev\Worker\Services.Customer\src\paket.lock
*2 minutes, 3 seconds - ready.                                                                   *

but why did you run update? I thought you changed only one package?
so try to run "paket update nuget X"

or what is the process you want to do?

$ .paket\paket update nuget Services.Base
Paket version <IP_ADDRESS>
Updating Services.Base in C:\Dev\Worker\Worker.Services.Customer\src\paket.
oup Main
Resolving packages for group Main:

Services.Base 0.1.0-ci0007
xunit is pinned to 2.0
Services.DataAccess 0.2.0-unstable0013
Services.DataAccess.InMemory 0.2.0-unstable0013
EventSourcing 2.0.0-unstable0052
EventSourcing.EventStore 2.0.0-beta0037
EventSourcing.Subscriptions 2.0.0-beta0009
EventSourcing.Testing 2.0.0-unstable0052
Autofac 3.5.2
Autofac.Extras.ServiceStack 2.0.2
AutoFixture 3.37.3
AutoFixture.AutoNSubstitute 3.37.3
AutoFixture.Xunit2 3.37.3
FAKE 4.10.5
FluentAssertions 4.1.1
Microsoft.CodeDom.Providers.DotNetCompilerPlatform 1.0.1
Microsoft.Net.Compilers 1.1.1
NSubstitute 1.9.2
Projac.Connector 0.0.139
Serilog 1.5.14
Serilog.Sinks.Seq 1.5.27
ServiceStack 4.0.50
ServiceStack.Api.Swagger 4.0.50
ServiceStack.Client 4.0.50
ServiceStack.Interfaces 4.0.50
ServiceStack.Logging.Serilog <IP_ADDRESS>
ServiceStack.RabbitMq 4.0.50
Topshelf 3.3.1
Topshelf.Serilog 3.3.1
xunit.abstractions 2.0.0
xunit.runner.console 2.1.0
xunit.runner.visualstudio 2.1.0
xunit.core 2.0.0
xunit.assert 2.0.0
ServiceStack.Common 4.0.50
ServiceStack.Text 4.0.50
System.Runtime 4.0.20
System.Collections 4.0.10
System.Diagnostics.Debug 4.0.10
System.Globalization 4.0.10
System.Linq.Expressions 4.0.10
System.ObjectModel 4.0.10
System.Reflection 4.0.10
System.Runtime.Extensions 4.0.10
System.Text.RegularExpressions 4.0.10
System.Threading 4.0.10
System.Threading.Tasks 4.0.10
System.Xml.XDocument 4.0.10
System.Linq 4.0.0
System.Reflection.Extensions 4.0.0
System.Reflection.Primitives 4.0.0
System.Reflection.TypeExtensions 4.0.0
RabbitMQ.Client 3.5.7
Microsoft.Net.Http 2.2.29
CompareNETObjects 3.3.0
EventStore.Client 3.3.1
EventStore.SerilogAdapter 1.0.0
Ix-Main 1.2.5
MassTransit 3.0.17
Mediatr 2.0.2
Newtonsoft.Json 7.0.1
Serilog.Sinks.Elasticsearch 2.0.70
System.Collections.Immutable 1.1.37
xunit.extensibility.core 2.0.0
System.IO 4.0.10
System.Text.Encoding 4.0.10
System.Xml.ReaderWriter 4.0.10
System.Diagnostics.Contracts 4.0.0
System.Private.Uri 4.0.0
System.Reflection.Emit 4.0.0
System.Resources.ResourceManager 4.0.0
NewId 2.1.3
Microsoft.Bcl 1.1.10
Elasticsearch.Net 1.7.1
Microsoft.Bcl.Async 1.0.168
Microsoft.Bcl.Build 1.0.21
System.Runtime.InteropServices 4.0.20
System.Text.Encoding.Extensions 4.0.10
System.IO.FileSystem 4.0.0
System.IO.FileSystem.Primitives 4.0.0
System.Reflection.Emit.ILGeneration 4.0.0
System.Runtime.Handles 4.0.0
System.Runtime.WindowsRuntime 4.0.10
System.Threading.Overlapped 4.0.0
C:\Dev\Worker\Services.Customer\src\paket.lock is already up-to-date

1 minute, 19 seconds - ready.

looks like your packages are all on nuget,org. Can you send me the paket.depedencies and lock files? Then I might be able to look deeper

Unfortunately those are on myget private feed:
Services.Base 0.1.0-ci0007
Services.DataAccess 0.2.0-unstable0013
Services.DataAccess.InMemory 0.2.0-unstable0013
EventSourcing 2.0.0-unstable0052
EventSourcing.EventStore 2.0.0-beta0037
EventSourcing.Subscriptions 2.0.0-beta0009
EventSourcing.Testing 2.0.0-unstable0052

I will figure something out

I improved the update performance. Can you please retry and tell me if things improved for you? And please run the update twice since we now cache more than before.

ping

Sorry. We are using paket in lots of projects and I executed the update many times with all recent versions, it works perfectly fine.


Install searxng

I am getting tired of the enshitification of search engines that seem to even reach DDG now... SearxNG seems to be a good solution to this issue. We should self-host it.

Testing on a public instance left me really unconvinced... Shelving this for now


Remove addCopy() when removeAction

create-project nette/web-project nette-blog
composer require webchemistry/forms-multiplier
Create form via readme example (https://github.com/WebChemistry/forms-multiplier#usage)
Containers cannot be removed (always copied back)
With this ugly change its working well

Code-review maybe required - Foreach for FilterCallbackIterator should be replaced with some "findContainerById()".

Test failing doesnt make sense for me. Dom structure seems ok, but why callback throw ->fail();?

If you want to delete last element, can you try set minCopies to zero?
$multiplier->setMinCopies(0);

https://github.com/WebChemistry/forms-multiplier/blob/master/src/Multiplier.php#L81
I must refactor whole component... I'll check it out

Maybe GIF would be better than my rusty english. :) bdump($_POST). With this PR bug doesnt apper.

Thank you for excellent demonstration. Did you try @dev version? I release v3.0.4 only 4 hours ago :/

Master (or v3.0.4) has same problems.

Oh, you are using Nette\Forms\Form instead of Nette\Application\UI\Form... it's my bad, I hope I found simpler fix https://github.com/WebChemistry/forms-multiplier/commit/97b557706065dd8258dfa9c6db7a0ffe2ef7534a

This commit works like a charm! Thank you.
PR is obsolete then.


Added generic camera component to hold projection matrix and replaced…

… uses os PerspectiveCamera
Description
Created a generic Camera component that just holds the projection matrix of the camera that will be updated every frame by the specific camera used (either perspective or orthographic).
Also replaced usages of PerspectiveCamera to use the generic one along with its projection matrix.
As a note, the active parameter of the PerspectiveCamera was also moved to the generic Camera component.
Checklist

[ ] Self-review changes.
[ ] Evaluate impact on the documentation.
[ ] Ensure test coverage.
[ ] Write new samples.
[ ] Add entry to the changelog's unreleased section.

Apart from what Riscado said, everything seems fine to me !!!

Don't forget to add an entry to the changelog btw :eyes: gotta get that credit


Error: Prisma Client is unable to run in an edge runtime. As an alternative, try Accelerate: https://pris.ly/d/accelerate.

Hi @satyaprakash-yadav! As the error message says, the stable version of Prisma Client currently only works in edge environments via Prisma Accelerate. We are actively working on making Prisma Client work in edge runtimes natively without requiring Accelerate and it's a high priority for us: we have already released driver adapters support in preview, which enables the usage of serverless and edge compatible database drivers, and we are currently working hard towards a public preview release of the feature that enables running the full Prisma Client on the edge soon. Please see the following issue: https://github.com/prisma/prisma/issues/21394.
If this error is unexpected for you and you don't actually deploy on the edge, then please open a new issue with more details and a reproduction. I'll go ahead and close this issue for now. Thank you!

Hey, I had this error message on matching routes from middleware, most interesting that Im not using any prismas things in middleware, but on matching routes I was having this error. The solution was to add runtime check in globalThis in prisma initializer.

Hey @satyaprakash-yadav @LexaPetrov, could you please give 5.10.0-integration-fix-client-exports-map.12?
Update your package.json with:

"@prisma/client": "5.10.0-integration-fix-client-exports-map.12"
"prisma": "5.10.0-integration-fix-client-exports-map.12"

Install the packages (eg npm install), then run prisma generate, and give it a try again.
Can you please let us know if this fixed your issue?

Hey @satyaprakash-yadav @LexaPetrov, could you please give 5.10.0-integration-fix-client-exports-map.12 a try?
Update your package.json with:

"@prisma/client": "5.10.0-integration-fix-client-exports-map.12"
"prisma": "5.10.0-integration-fix-client-exports-map.12"

Install the packages (eg npm install), then run prisma generate, and give it a try again.
Can you please let us know if this fixed your issue?

Yes, all works

this my prisma and nodejs version

@satyaprakash-yadav Please open a new issue instead of distributing your comments across 4 different issues. Include all information you can shared with us in that issue.

@satyaprakash-yadav you can also set this the version for Prisma packages to "5.9.1-dev.2" and try again, then let us know if that's fixed. I got a confirmation from someone using Next.js and Next-Auth v5 that this fixed the issue for them.
We will later release an official patch version.

https://github.com/prisma/prisma/releases/tag/5.9.1 is now available with the fix ✨
Please create a new issue if you find a bug.


Inaccurate helpfile for default craft command

Description
When typing help craft the helpfile appears to contain a copy+paste error.
Expected outcome
The help craft output should be specifically tailored to the craft command.
Actual outcome
--------------------------------------------------------------------------------
                                     craft
--------------------------------------------------------------------------------
Syntax: quest <log/list/complete/start> [npc] [number]

craft list                  View crafting recipe categories
craft list <category #>     List recipes for a given category
craft list   <cat #> <item #> View stats and ingredients for a given item
craft create <cat #> <item #> Create item viewed with list <#> <#>
--------------------------------------------------------------------------------

Steps to reproduce
On the staging branch, pull down the latest version, boot it up, log in, and type help craft.
Version of Ranvier
v1.1.1

Closed by #242


Styling DatePicker/TimePicker

Very good library, thanks. But aj need styling picker dynamically. I have defined 12 color styles for my app and user can choose from them. I can style your DatePicker by
#242424
#282828
but it is static. Can I setTheme of your Dialog DatePicker ? Or set color programatically (setAccentColor, setAccentColorDark)?
Thanks
Best regards
Peter

This is the same request as #15
It's somewhere on the todo list, but I'll probably not get around to it in the near term.

I am looking into it.


Cannot update Notification

Tried to update a notification and received the error: The Code has already been taken.

Fixed


Make parallel tests more stable

What was the end-user problem that led to this PR?
The problem was that since we run parallel tests by default, our CI is much less stable even though specs are faster.
What was your diagnosis of the problem?
My diagnosis was that our specs change folders back and forth for every test, and that's not thread safe.
What is your fix for the problem, implemented in this PR?
My fix is to stop changing folders in the main process during our specs.
Why did you choose this fix out of the possible options?
I chose this fix because it should improve stability of our specs.

@bundlerbot merge


Add Shiawase VIP x Ghost by Justin Bieber

Song Name
Shiawase VIP x Ghost
Artist Name
Justin Bieber
Source
Youtube
Youtube Link
pFjSq-4IJ6s
Direct File Link
No response
Song ID
1266014
Start Offset [ms]
0
Extra
Created from Auto Nong.
Created for level: 86407629
Downloaded: No

accept


i18n support for Italian language

Hi, I've added support for the Italian language.

Looks good, thank you so much! 👍


Fix for out_of_range exception

Based on https://www.cplusplus.com/reference/vector/vector/at/, when the argument (position) is greater than, or equal to, the vector size, an exception of type out_of_range is thrown.

This is my fault, I used shorter (not doubled) sequences for testing which caused the error. Thus I close this PR.


Errors problem json

Adds details on parameters and extends on the best practices

rephrased the part on working with problem+json. How do you see it now @zdne ?


fix: printer issue with a node

That JSONata AST is invalid - it has a JSONata node used where a tuple is expected:


8312 return empty systemConfigs if not present

https://github.com/Shippable/pm/issues/8312

after the first login, the api throws following error

the get route for system configs should just return empty object/array if the table is not present instead of throwing an exception on the console

@ric03uec
hmm... the route today is returning an object for a successful get call.  Typically (with shippable api) if a single-object GET object does not exist yet, we return 404, not empty object.  Are you sure we want empty object, or should I just return a 404? UI can just ignore it.
The object you show above is actually an error from the postgres client itself because the systemConfigs table does not even exist yet, so basically I can make all errors result in a 404, but you'll probably still see this in the logs, unless we explicitly hide it.

complete. closing.


Feature/examples section

Description
Added some examples that make us of the components and features provided by Design Guide

Codecov Report

Merging #225 into develop will decrease coverage by 0.94%.
The diff coverage is 73.64%.

@@            Coverage Diff            @@
##           develop   #225      +/-   ##
=========================================
- Coverage    89.94%    89%   -0.95%
=========================================
  Files          135    141       +6
  Lines         2139   2265     +126
=========================================
+ Hits          1924   2016      +92
- Misses         215    249      +34

Impacted Files
Coverage Δ

src/App/Home/index.js
75% <ø> (ø)
:arrow_up:

src/App/components/InputGroup/index.js
100% <ø> (ø)
:arrow_up:

src/App/routes/examples.js
100% <100%> (ø)

src/App/components/Card/index.js
75% <100%> (ø)
:arrow_up:

src/App/Examples/web/login/index.js
100% <100%> (ø)

src/App/Examples/web/customers/constants.js
100% <100%> (ø)

src/App/Examples/web/customers/index.js
66.21% <66.21%> (ø)

src/App/Examples/index.js
75% <75%> (-25%)
:arrow_down:

src/App/Examples/web/faq/index.js
76.19% <76.19%> (ø)

src/App/Examples/web/settings/index.js
82.35% <82.35%> (ø)

... and 6 more

Continue to review full report at Codecov.

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

Nice.
A Couple of comments:

The image on FAQ is still really large on big displays.
What is the reasoning behind "Profile description" and "User status" on the same line.


Option to Not Upload to Hugging Face Hub in HuggingFaceDatasetWriter

I’ve been using HuggingFaceDatasetWriter and noticed that it seems to default to uploading to the hub when I intended to save locally only.
Could we consider adding a parameter to prevent uploading to the hub?

Why would you use the HuggingFaceWriter if you don't want to upload to the hub? For local use you can just use the ParquetWriter, which is what the HuggingFaceWriter uses under the hood

Occasionally, there is a need to save data in the form of a Hugging Face dataset, whether using the load_from_disk function of datasets or loading data in the hf dataset format from other libraries.

@guipenedo
This option is quite minor; if you think it’s unnecessary, feel free to close this issue. However, if you believe adding this feature could be beneficial, I will prepare and submit a PR.

Occasionally, there is a need to save data in the form of a Hugging Face dataset, whether using the load_from_disk function of datasets or loading data in the hf dataset format from other libraries.

You can just use a ParquetWriter for this, it will be loadable with load_from_disk. This is what the huggingfacewriter uses under the hood, with the upload part on top. If you don't want to upload just use a normal ParquetWriter


fix link to github

📚 Documentation preview 📚: https://arviz-plots--91.org.readthedocs.build/en/91/

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

Project coverage is 84.76%. Comparing base (b5b8f4c) to head (a1276e4).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #91   +/-   ##
=======================================
  Coverage   84.76%   84.76%
=======================================
  Files          21       21
  Lines        2336     2336
=======================================
  Hits         1980     1980
  Misses        356      356

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


docs: Event Listeners - edit pass

What is it?

[ ] Feature / enhancement
[ ] Bug
[x] Docs / tests

Description
I have a few questions about some of the content. See in-line for details.
Use cases and why
n/a
Checklist:

[x] My code follows the developer guidelines of this project
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
[ ] Added new tests to cover the fix / functionality

Changes look great! Let me know when you are done with them and ready to merge these.


mysql json type

Display size of column 7: -4     Is this normal? If this is -4, the program will be painc.
[2023-11-19T04:49:41Z DEBUG arrow_odbc::schema] ODBC driver reported for column 1. Relational type: Varchar { length: 255 }; Nullability: Nullable; Name: 'username';
[2023-11-19T04:49:41Z DEBUG arrow_odbc::schema] ODBC driver reported for column 2. Relational type: Varchar { length: 255 }; Nullability: Nullable; Name: 'fullname';
[2023-11-19T04:49:41Z DEBUG arrow_odbc::schema] ODBC driver reported for column 3. Relational type: Varchar { length: 255 }; Nullability: Nullable; Name: 'password';
[2023-11-19T04:49:41Z DEBUG arrow_odbc::schema] ODBC driver reported for column 4. Relational type: Varchar { length: 255 }; Nullability: Nullable; Name: 'email';
[2023-11-19T04:49:41Z DEBUG arrow_odbc::schema] ODBC driver reported for column 5. Relational type: Varchar { length: 2083 }; Nullability: Nullable; Name: 'profile_img';
[2023-11-19T04:49:41Z DEBUG arrow_odbc::schema] ODBC driver reported for column 6. Relational type: TinyInt; Nullability: Nullable; Name: 'deleted';
[2023-11-19T04:49:41Z DEBUG arrow_odbc::schema] ODBC driver reported for column 7. Relational type: Unknown; Nullability: Nullable; Name: 'properties';
[2023-11-19T04:49:41Z DEBUG arrow_odbc::schema] ODBC driver reported for column 8. Relational type: TinyInt; Nullability: Nullable; Name: 'is_group';
[2023-11-19T04:49:41Z DEBUG arrow_odbc::reader] Relational type of column 1: Varchar { length: 255 }
[2023-11-19T04:49:41Z DEBUG arrow_odbc::reader] Relational type of column 2: Varchar { length: 255 }
[2023-11-19T04:49:41Z DEBUG arrow_odbc::reader] Relational type of column 3: Varchar { length: 255 }
[2023-11-19T04:49:41Z DEBUG arrow_odbc::reader] Relational type of column 4: Varchar { length: 255 }
[2023-11-19T04:49:41Z DEBUG arrow_odbc::reader] Relational type of column 5: Varchar { length: 2083 }
[2023-11-19T04:49:41Z DEBUG arrow_odbc::reader] Relational type of column 7: Unknown
[2023-11-19T04:49:41Z DEBUG arrow_odbc::reader] Display size of column 7: -4
thread 'odbc::odbc_drive::test::test_insert_into' panicked at /Users/simonyi/mosdb/arrow-odbc/src/reader/text.rs:52:14:
called `Result::unwrap()` on an `Err` value: TryFromIntError(())

Hello @web3creator ,
thanks for reporting this. Currently odbc2parquet expects display size to be a positive number. Yet, -4 is a special value in ODBC (NO TOTAL) and means "no upper bound. Could you help me, and tell me the type of the column with index 7 so I could write a reproducing test?
Best, Markus

@pacman82  mysql 8.0

Hello @web3creator ,
arrow-odbc 3.1.2 is released. I did not test with MySQL, but my assumption is, it will not panic in the face of a driver which reports negative display sizes. Instead it will provide a (hopefully) helpful error message.
Best, Markus

Please let me know if this resolves the issue for you. @web3creator

@pacman82 I'm really sorry, I just saw it，I just tested it. As you said, if the type is not supported, err can be returned without panic.But I still hope that if I don’t know, it can be parsed into the datatype::utf8 type, because the json type is frequently used in mysql.

Yes it can, but you need to use the with_max_text_size method then you build the reader. See: https://docs.rs/arrow-odbc/latest/arrow_odbc/struct.OdbcReaderBuilder.html#method.with_max_text_size
You should provide it with a reasonable upper bound of the largest JSON you expect. Providing this, you should be able to retrieve JSON as text.
Best, Markus

@pacman82 Thank you very much, now it is working

Happy to help. Thank you for opening the issue and reporting the bug.


Don’t update state after calling the completion block.

The code was firing the completion to signal that it was done, and then updating internal state after. We should be updating our state before firing the completion.
We saw crashes where firing the completion could trigger an update, which would synchronously invoke another render - this meant that the start of the render method would be called again (reading an old self.lastRenderedViewModel and calculating a diff based on it) which would immediately be followed by the termination of the previous render method that would assign the correct object to self.lastRenderedViewModel. At this point, it was too late as the next invocation was already using an out-of-date object.
The would either manifest as a crash where:

the collection view would be out of sync with the model at the end of performBatchUpdates:completion:
the model would be deallocated while the collection view was accessing it.

Note that there are no tests as part of this PR. These are being worked on in parallel as I want to get this fix out ASAP to verify that it fixes all crashes we're experiencing.

Current coverage is 93.25% (diff: 50.00%)

Merging #225 into master will decrease coverage by 0.02%

@@             master       #225   diff @@
==========================================
  Files            69         69
  Lines          4743       4743
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           4424       4423     -1
- Misses          319        320     +1
  Partials          0          0

Powered by Codecov. Last update 2fad2b2...77adb22


fix(build): download qcow src from an active link

jiva image is build by creating a build container that
downloads dependencies from external repositories. One
such dependency is on qcow tools project:
https://github.com/libyal/libqcow/
The older source tar has been removed from the above repo
which is causing jiva builds to fail. This PR updates
the build container to download from a recent active link.
Note: A more permanent solution is required to fix this flaky
builds due to breaking external dependencies. this will be taken
up in the upcoming releases.
Signed-off-by: kmova<EMAIL_ADDRESS>

current code of jiva doesn't seem to use qcow backends. So, we should safe in removing this dependency and its files.
As mentioned in the description, this can be decided and implemented in upcoming release.


Toggled element still displays in current refined values when false

We're currently using a toggle widget to display hits flagged as a 'special'. On initial render it shows up in the current refined values even when false. Once it is removed it then works correctly.
e.g.

Can you check and give me:

the version you are using (we recently published a new version)
the url when the filter is showing in current filters while not activated in the display
the way you initialize the toggle widget (options)
an example value for the "specials" attribute you are using (is it a boolean?)

Thanks

1.3
The URL doesn't show any query params on initial load when the current filters is showing 'specials' on page load but if I add and remove it I get the following:

search?q=&hPP=15&idx=journeys&p=0&fR[hasSpecialOffer][0]=false&is_v=1
The plugin was initialized like so:
    this.instantsearch.addWidget(
        instantsearch.widgets.toggle({
            container: '#journeys-specials-widget',
            attributeName: 'hasSpecialOffer',
            label: 'Only show specials',
            templates: {
                item: refinementItem
            },
            values: {
                on: true,
                off: false
            },
        })
    );

Example of field from algolia dashboard hasSpecialOffer: false

Do you have any other widget that is activated on the hasSpecialOffer attribute?

The only other mention of hasSpecialOffer is in the current refinements widget
this.instantsearch.addWidget(
    instantsearch.widgets.currentRefinedValues({
        container: '#journeys-current-refined-widget',
        clearAll: 'after',
        attributes: [
            {
                name: 'price',
                label: '',
                transformData: function(item) {
                    item.name = accounting.formatMoney(item.name);
                    return item;
                },
                template: '{{#operator}}{{{displayOperator}}} {{/operator}} {{name}}'
            },
            {
                name: 'hasSpecialOffer',
                label: 'Specials',
                template: '{{label}}',
            },
            {
                name: 'numberOfDays',
                label: 'days',
                template: '{{#operator}}{{{displayOperator}}} {{/operator}} {{name}} {{label}}'
            },
        ],
        templates: {
            header: 'Current Filters'
        },
    })
);

I can provide the staging URL if that is any help?

I can provide the staging URL if that is any help?

Oh yes it would help a lot! If it's a private one, send it to<EMAIL_ADDRESS>

For anyone wondering,
The default values option is: values: {on: true, off: undefined}. Which means: when "on", refine the attribute with true (boolean). When off, refine with undefined => show both true and false values.
So if you do not provide the values option, when the widget initializes, we will not refine on anything.
Let's say you have a "free shipping" toggle, it will show you by default both free and not free shipping. When you activate it, it will only show free shipping articles.
Given your context, this might not be what you want, you might for instance for to refine with false on initialization and when off.
To do so, pass values: {on: true, off: false}. But as soon as you do so, you will always have the default toggle "false" showing in the current refined values widgets. Because we did refine on the attribute with false.
This is why @davidpike7, in your example, it shows the filter inside the current refined values by default: this is the off value.

How could we make this more clear?
Is this in the end what you want? Maybe you want the default behavior (true/undefined)
Maybe you would want a "doNotRefineOnInit" option? But for users this would be not accurate.

Thanks again for being an awesome user of instantsearch.js and to give us feedback!

Thanks for the explanation @vvo. I've removed off: false from config and its working well now

Closing


No client capability for codeLens/resolve

I think there probably should be one since surely not all clients support it?

In the current protocol the resolve request is defined as a request to resolve the command of a code lens. Instead of adding a separate capability we should do the same as we did for completion items: we should add a capability that list the properties that can be resolve lazy on a code lens.

Yes in principle, although the only field that can reasonably be resolved lazily is the command: you need the range to know anything about it and the data is just for resolve anyway. But we might add more fields in future, so I still think following the design of the others makes sense.
It's worth noting that this will potentially be a bit awkward for servers. Since there was no capability, servers have had to assume that clients support it, so they might behave badly if a client suddenly says that it doesn't. Still, I think it would be an improvement.

Actually the client capability to list the items to be resolved lazily is already in since 3.16.0. See https://github.com/microsoft/vscode-languageserver-node/blob/dbaeumer/painful-yak-copper/protocol/src/common/protocol.ts#L3204
Since this is consistent with what we do for completion items I will close the issue.

Actually the client capability to list the items to be resolved lazily is already in since 3.16.0. See https://github.com/microsoft/vscode-languageserver-node/blob/dbaeumer/painful-yak-copper/protocol/src/common/protocol.ts#L3204
Since this is consistent with what we do for completion items I will close the issue.

Where? The link doesn't work.
CodeLensClientCapabilities doesn't mention anything?

Reopening. Looks like I was in the wrong file. Need to see what went wrong.


Make onError and onSuccess optional in ZFlow#Fold

As a serialization optimization - as flatMap/map is the most common case with a default "identity" error case

I'm on this one

I nearly have this one complete. However, I am stuck on the following:
@vigoo

in case they are None return with an identity remote function

However, there is no way to create an identity value of type EvaluatedRemoteFunction[A, ZFlow[R, E2, B]].
I put it down to one of the following:

I don't need a value of this type, in which case, I am not sure what we might mean.
There is some way to create a value of this type.

Any comments most welcome.

Yeah identity was not the proper word, what I meant is that when you deserialize the (Flow, Option[EvaluatedRemoteFunction], Option[EvaluatedRemoteFunction], Schema, Schema) product, you would get rid of the Options in the construct function by something like

onError.getOrElse("e => ZFlow.fail(e)")
onSuccess.getOrElse("a => ZFlow.succeed(a)")

how can we create these EvaluatedRemoteFunctions? We don't have a particular E and A in the deserializer but we have the error and result schema (as they are serialized too). EvaluatedRemoteFunction is just a pair of a Remote.Variable and an arbitrary Remote that somewhere refers to the given variable. So what we need is something like EvaluatedRemoteFunction(Remote.Variable(randomId, errorSchema), Remote.Flow(ZFlow.Fail(Remote.Variable(randomId))). I am not 100% sure you can generate this with the implicit conversions (as there are no scala-level type info present) but you can definitely create it "by hand" like this.
Note that on my branch I'm changing this a bit (separating the concept of a "local" variable used for function evaluation vs the user-defined remote variables) but that would not change much - and I think this PR will be ready first :)

Ah OK understood, thanks!


How to get the right index for array model?

const users = [{ name: 'Brad Pitt' }, { name: 'Bruce Wayne' }];

// UserDetails.js
const UserDetails = ({ user }) => (
  <Field model="users[??].name">
    <input value={user.name} />
  </Field>
);

The question is how do I fill the index inside the <Field model ... > ??

userId passing along to all the subcomponents seem to be little verbose. Do we have a better option?

This might be a React/JavaScript question rather than a specific React-Redux-Form question. You need to somehow get the index of each user inside the <UserDetails> component.
Here's a couple of approaches:
const users = ...;

const UserDetails = ({ user, index }) => (
  <Field model={`users[${index}].name`}>
    <input value={user.name} />
  </Field>
);

Or like this, in a mapStateToProps selector or otherwise:
const users = [{ name: 'Brad Pitt' }, { name: 'Bruce Wayne' }];
const indexedUsers = users.map((user, index) => ({ ...user, index }));

// now if you use indexedUsers instead of users...

const UserDetails = ({ user }) => (
  <Field model={`users[${user.index}].name`}>
    <input value={user.name} />
  </Field>
);

So, there's a couple of approaches to this. Hope that helps!


Quest bug with Menu entry swapper

Type
Other
Operating System
Windows
OS Version
Win 11
Bug description
There is a guy in my clan who was doing the Aid of Myreque quest and he killed Gadderanks but couldn't speak to him to continue the quest because he had that new Menu Entry Swapper "Remove Dead npc menus" and the option was hidden. I'm not sure which other quests contain interactions with something that has been considered defeated but I think it should be fixed! I wanted to report it in hopes that it helps!
Screenshots or videos
No response
RuneLite version
No response
Logs
No response

I've added this to #15135 for general tracking of NPCs needing fixing with this feature.


Issue importing data from Wakatime

Getting this in the logs:
31/08/2023 1:07:23
ts=2023-08-31T00:07:23.805655711Z level=Info host=14f27e1ca239 msg=importing 77 heartbeats for day 2022-01-31 00:00:00 UTC
31/08/2023 1:07:23
ts=2023-08-31T00:07:23.811234006Z level=Error host=14f27e1ca239 msg=failed to execute import request
31/08/2023 1:07:23
ts=2023-08-31T00:07:23.811234006Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list
31/08/2023 1:09:05
ts=2023-08-31T00:09:05.237221104Z level=Warning host=14f27e1ca239 msg=Failed to identify a user with the given token
31/08/2023 1:09:05
ts=2023-08-31T00:09:05.237221104Z level=Warning host=14f27e1ca239 msg=Failed to identify a user with the given token
31/08/2023 1:09:31
ts=2023-08-31T00:09:31.932038851Z level=Info host=14f27e1ca239 msg=received an import request from user "modem7"
31/08/2023 1:09:31
ts=2023-08-31T00:09:31.94446407Z level=Info host=14f27e1ca239 msg=processing import request for user "modem7"
31/08/2023 1:09:33
ts=2023-08-31T00:09:33.680829778Z level=Info host=14f27e1ca239 msg=importing 2 heartbeats for day 2023-01-01 00:00:00 UTC
31/08/2023 1:09:33
ts=2023-08-31T00:09:33.686152826Z level=Error host=14f27e1ca239 msg=failed to execute import request
31/08/2023 1:09:33
ts=2023-08-31T00:09:33.686152826Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list
31/08/2023 1:09:35
ts=2023-08-31T00:09:35.69752803Z level=Info host=14f27e1ca239 msg=processing import request for user "modem7"
31/08/2023 1:09:36
ts=2023-08-31T00:09:36.434877088Z level=Info host=14f27e1ca239 msg=importing 2 heartbeats for day 2023-01-01 00:00:00 UTC
31/08/2023 1:09:36
ts=2023-08-31T00:09:36.446137585Z level=Error host=14f27e1ca239 msg=failed to execute import request
31/08/2023 1:09:36
ts=2023-08-31T00:09:36.446137585Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list
31/08/2023 1:09:38
ts=2023-08-31T00:09:38.454981863Z level=Info host=14f27e1ca239 msg=processing import request for user "modem7"
31/08/2023 1:09:39
ts=2023-08-31T00:09:39.113185826Z level=Info host=14f27e1ca239 msg=importing 2 heartbeats for day 2023-01-01 00:00:00 UTC
31/08/2023 1:09:39
ts=2023-08-31T00:09:39.125903544Z level=Error host=14f27e1ca239 msg=failed to execute import request
31/08/2023 1:09:39
ts=2023-08-31T00:09:39.125903544Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list
31/08/2023 1:09:41
ts=2023-08-31T00:09:41.134660404Z level=Info host=14f27e1ca239 msg=processing import request for user "modem7"
31/08/2023 1:09:41
ts=2023-08-31T00:09:41.796713249Z level=Info host=14f27e1ca239 msg=importing 2 heartbeats for day 2023-01-01 00:00:00 UTC
31/08/2023 1:09:41
ts=2023-08-31T00:09:41.807771734Z level=Error host=14f27e1ca239 msg=failed to execute import request
31/08/2023 1:09:41
ts=2023-08-31T00:09:41.807771734Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list
31/08/2023 1:09:42
ts=2023-08-31T00:09:42.83975589Z level=Info host=14f27e1ca239 msg=checking pending import request for user "modem7"
31/08/2023 1:09:42
ts=2023-08-31T00:09:42.83975589Z level=Info host=14f27e1ca239 msg=import request for user "modem7": JobFailed
31/08/2023 1:10:24
ts=2023-08-31T00:10:24.720932214Z level=Info host=14f27e1ca239 msg=received an import request from user "modem7"
31/08/2023 1:10:24
ts=2023-08-31T00:10:24.734274269Z level=Info host=14f27e1ca239 msg=processing import request for user "modem7"
31/08/2023 1:10:26
ts=2023-08-31T00:10:26.325750599Z level=Info host=14f27e1ca239 msg=importing 2 heartbeats for day 2023-01-01 00:00:00 UTC
31/08/2023 1:10:26
ts=2023-08-31T00:10:26.34756054Z level=Error host=14f27e1ca239 msg=failed to execute import request
31/08/2023 1:10:26
ts=2023-08-31T00:10:26.34756054Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list
31/08/2023 1:10:28
ts=2023-08-31T00:10:28.358417376Z level=Info host=14f27e1ca239 msg=processing import request for user "modem7"
31/08/2023 1:10:28
ts=2023-08-31T00:10:28.984963502Z level=Info host=14f27e1ca239 msg=importing 2 heartbeats for day 2023-01-01 00:00:00 UTC
31/08/2023 1:10:28
ts=2023-08-31T00:10:28.997164398Z level=Error host=14f27e1ca239 msg=failed to execute import request
31/08/2023 1:10:28
ts=2023-08-31T00:10:28.997164398Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list
31/08/2023 1:10:31
ts=2023-08-31T00:10:31.010071046Z level=Info host=14f27e1ca239 msg=processing import request for user "modem7"
31/08/2023 1:10:31
ts=2023-08-31T00:10:31.665848418Z level=Info host=14f27e1ca239 msg=importing 2 heartbeats for day 2023-01-01 00:00:00 UTC
31/08/2023 1:10:31
ts=2023-08-31T00:10:31.676035907Z level=Error host=14f27e1ca239 msg=failed to execute import request
31/08/2023 1:10:31
ts=2023-08-31T00:10:31.676035907Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list
31/08/2023 1:10:33
ts=2023-08-31T00:10:33.686148133Z level=Info host=14f27e1ca239 msg=processing import request for user "modem7"
31/08/2023 1:10:34
ts=2023-08-31T00:10:34.837416853Z level=Info host=14f27e1ca239 msg=checking pending import request for user "modem7"
31/08/2023 1:10:34
ts=2023-08-31T00:10:34.837416853Z level=Info host=14f27e1ca239 msg=import request for user "modem7": JobPending
31/08/2023 1:10:35
ts=2023-08-31T00:10:35.0394501Z level=Info host=14f27e1ca239 msg=importing 2 heartbeats for day 2023-01-01 00:00:00 UTC
31/08/2023 1:10:35
ts=2023-08-31T00:10:35.045066132Z level=Error host=14f27e1ca239 msg=failed to execute import request
31/08/2023 1:10:35
ts=2023-08-31T00:10:35.045066132Z level=Error host=14f27e1ca239 msg=Prelude.head: empty list
31/08/2023 1:10:44
ts=2023-08-31T00:10:44.834957675Z level=Info host=14f27e1ca239 msg=checking pending import request for user "modem7"
31/08/2023 1:10:44
ts=2023-08-31T00:10:44.834957675Z level=Info host=14f27e1ca239 msg=import request for user "modem7": JobFailed

Tried the Wakatime API key with both waka_ and without.

Did any of the heartbeats were imported or nothing at all?

Nothing at all it seems

I tried this again, and got the following:
HAKA_DB_HOST: haka_db
HAKA_DB_PORT: 5432
HAKA_DB_USER: test
HAKA_DB_NAME: test
Waiting for the PostgreSQL service to become available ...
Connected to PostgreSQL
Database test already exists
NOTICE:  relation "schema_migrations" already exists, skipping
Running migrations from files found in /app/migrations
Initializing schema
Migrations schema initialized
Ok:	00001-add-tags.sql
Ok:	00002-add-token-name.sql
Migrations applied succesfully
Starting hakatime server ...
ts=2024-02-22T19:13:41.676251107Z level=Warning host=96bea23e9d2d msg=Missing refresh_token cookie from auth call
ts=2024-02-22T19:15:03.550137298Z level=Info host=96bea23e9d2d msg=registering user "modem7"
ts=2024-02-22T19:15:18.044910961Z level=Warning host=96bea23e9d2d msg=User modem7 doesn't have a project named null
ts=2024-02-22T19:18:39.731039792Z level=Info host=96bea23e9d2d msg=received an import request from user "modem7"
ts=2024-02-22T19:18:39.742987043Z level=Info host=96bea23e9d2d msg=processing import request for user "modem7"
ts=2024-02-22T19:18:41.964719789Z level=Error host=96bea23e9d2d msg=failed to execute import request
ts=2024-02-22T19:18:41.964719789Z level=Error host=96bea23e9d2d msg=json decoding failed: "Error in $.data[1].lineno: parsing Text failed, expected String, but encountered Number"
ts=2024-02-22T19:18:43.977129366Z level=Info host=96bea23e9d2d msg=processing import request for user "modem7"
ts=2024-02-22T19:18:44.66851633Z level=Error host=96bea23e9d2d msg=failed to execute import request
ts=2024-02-22T19:18:44.66851633Z level=Error host=96bea23e9d2d msg=json decoding failed: "Error in $.data[1].lineno: parsing Text failed, expected String, but encountered Number"
ts=2024-02-22T19:18:46.681602637Z level=Info host=96bea23e9d2d msg=processing import request for user "modem7"
ts=2024-02-22T19:18:47.500495445Z level=Error host=96bea23e9d2d msg=failed to execute import request
ts=2024-02-22T19:18:47.500495445Z level=Error host=96bea23e9d2d msg=json decoding failed: "Error in $.data[1].lineno: parsing Text failed, expected String, but encountered Number"
ts=2024-02-22T19:18:49.513019891Z level=Info host=96bea23e9d2d msg=processing import request for user "modem7"
ts=2024-02-22T19:18:50.560963387Z level=Error host=96bea23e9d2d msg=failed to execute import request
ts=2024-02-22T19:18:50.560963387Z level=Error host=96bea23e9d2d msg=json decoding failed: "Error in $.data[1].lineno: parsing Text failed, expected String, but encountered Number"
ts=2024-02-22T19:18:50.696145225Z level=Info host=96bea23e9d2d msg=checking pending import request for user "modem7"
ts=2024-02-22T19:18:50.697499904Z level=Info host=96bea23e9d2d msg=import request for user "modem7": JobFailed
ts=2024-02-22T19:21:33.101602582Z level=Info host=96bea23e9d2d msg=received an import request from user "modem7"
ts=2024-02-22T19:21:33.114976917Z level=Info host=96bea23e9d2d msg=processing import request for user "modem7"
ts=2024-02-22T19:21:34.598362456Z level=Error host=96bea23e9d2d msg=failed to execute import request
ts=2024-02-22T19:21:34.598362456Z level=Error host=96bea23e9d2d msg=json decoding failed: "Error in $.data[1].lineno: parsing Text failed, expected String, but encountered Number"
ts=2024-02-22T19:21:36.613195357Z level=Info host=96bea23e9d2d msg=processing import request for user "modem7"
ts=2024-02-22T19:21:37.374680218Z level=Error host=96bea23e9d2d msg=failed to execute import request
ts=2024-02-22T19:21:37.374680218Z level=Error host=96bea23e9d2d msg=json decoding failed: "Error in $.data[1].lineno: parsing Text failed, expected String, but encountered Number"
ts=2024-02-22T19:21:39.390292516Z level=Info host=96bea23e9d2d msg=processing import request for user "modem7"
ts=2024-02-22T19:21:40.444587289Z level=Error host=96bea23e9d2d msg=failed to execute import request
ts=2024-02-22T19:21:40.444587289Z level=Error host=96bea23e9d2d msg=json decoding failed: "Error in $.data[1].lineno: parsing Text failed, expected String, but encountered Number"
ts=2024-02-22T19:21:42.459490981Z level=Info host=96bea23e9d2d msg=processing import request for user "modem7"
ts=2024-02-22T19:21:43.142223268Z level=Info host=96bea23e9d2d msg=checking pending import request for user "modem7"
ts=2024-02-22T19:21:43.142223268Z level=Info host=96bea23e9d2d msg=import request for user "modem7": JobPending
ts=2024-02-22T19:21:43.162078341Z level=Error host=96bea23e9d2d msg=failed to execute import request
ts=2024-02-22T19:21:43.162078341Z level=Error host=96bea23e9d2d msg=json decoding failed: "Error in $.data[1].lineno: parsing Text failed, expected String, but encountered Number"
ts=2024-02-22T19:21:53.145260409Z level=Info host=96bea23e9d2d msg=checking pending import request for user "modem7"
ts=2024-02-22T19:21:53.146587767Z level=Info host=96bea23e9d2d msg=import request for user "modem7": JobFailed


Gabi/fix relay expected message size

This PR should fix the way we handle the length field in the DataChannel messages, previous to this fix relaying data (using the webrtc-rs crate) was impossible)
The new way to handle this is if the actual message is bigger than what this data field says we ignore the extra bytes (which I think is the correct way to do it according to spec)
Also, I added an integration test to verify relay messages using iptables, not the cleanest way to do it but the easiest, in this vein I tried to fix the caching for rust containers since 2 integration test in our current state would take ~20 minutes each.

@thomaseizinger I'm going to merge this as I want to test in staging with this relay.
Could you double check what you think of the cleanup now and specially the new tests as I'm not familiar with the proptest crate.


Add bittensor to supported apps

Network: bittensor
Website: https://bittensor.com
Discord: https://discord.gg/bittensor
Twitter: https://twitter.com/bittensor_/
Github (main): https://github.com/opentensor/bittensor
Github (substrate node): https://github.com/opentensor/subtensor
Symbol: TAO
SLIP: 0x800003ed
ss58 prefix: 13116

:link: zboto Link

Thanks for your contribution @camfairchild! You have v0.40.3 available to use your app!


Add utility classes for fixed height and width components

See CSS classes that contain 100px, etc.

I've reviewed the instances where we use these fixed-width or fixed-height classes, and my impression is that this technique is OK for prototyping, but isn't really right for production interfaces. If a component or layout needs precise sizing, we should be designing thatin the Kezuri environment where it's much easier to test.
I recommend that we create a set of limited utility classes and but store them within coggen-core and then try to phase them out over time.
These are the classes currently in use:

h-100px
h-150px
h-lg-150px
h-md-100px
mh-100px
mh-150px
mh-200px
mh-300px
mh-503px
min-h-250px
min-h-60px
min-w-100px
min-w-125px
min-w-150px
min-w-200px
min-w-300px
min-w-50px
min-w-90px
mw-400px
mw-500px
mw-680px
mw-850px
w-100
w-100px
w-150px
w-250px
w-lg-150px
w-lg-250px
w-md-100px
w-xl-400px
w-xl-600px
w-xxl-275px

@deepakmahakale @mohd-anas-ansari Have a look above and let me know if this makes sense.


Question on new type

Quick question on the type of new. Why does it have the type new :: forall s. s -> Effect (Ref s) instead of new :: forall s. s -> Ref s? I see no effects happening in the code.

Creating a Ref is effectful, because if new didn’t have that type it could be used to violate referential transparency. Consider:
let
  x = Ref.new “hi”
in
  Tuple x x

which in this hypothetical scenario would have the type Tuple (Ref String) (Ref String).
Comparing to the following:
Tuple (Ref.new “hi”) (Ref.new “hi”)

According to referential transparency these should be the same. They are not, however, because writing to one of the refs in the first tuple will also write to the other, whereas in the second case you have two distinct refs which can be updated independently of each other.

Thoughts on mentioning this in the API docs?

Also note that without it, one can violate the type system by giving a ref a polymorphic type and specializing it after the fact.
example =
  let
    ref :: forall a. Ref (Maybe a)
    ref = Ref.new Nothing
  in
    Type (ref :: Ref (Maybe Int)) (ref :: Ref (Maybe String))

These refs now share the same reference, but I've ascribed them different types. See http://mlton.org/ValueRestriction. This happens frequently with the combination of referential values that have polymorphic entities. For example, when Elm supported referential Channels (pre 0.18), you could violate the type system in the same way. Monadic plumbing prevents this from happening. The best you could try to create is Ref (forall a. Maybe a) which you can't do anything with.


Add Glayout checks in CI

This PR aims to enable CI checking for glayout. The vision is to enable DRC and LVS checks for the primitives and the components marked with the @cell decorator in glayout/components. This envolves the following changes:

[x] Create DRC script for glayout
[x] Create wrapper script to test all components for DRC errors
[x] Create .yml file for GitHub actions
[x] Modify LVS script (specifically for glayout)
[x] Create wrapper script to test all components for LVS errors

@alibillalhammoud @andylithia can you help out with a review?

@msaligane all checks have been added, but this shouldn't be merged until gf180 is added to docker image (required for gf180 drc run)

this should not be merged yet, many changes need to be made


How do I have no transforms in my queries.yaml

Hi!
I see that there are a lot of transforms in the queries.yaml file. I am trying to use mapzen with my own dataset. Will it be okay if I use no tranforms?
When I do not include transforms, I get an error. How can I write a queries.yaml without transforms?
Thanks!

Can you paste the error you're seeing here, please? The (TileStache related) transforms are mostly related to dealing with OpenStreetMap data so you could in theory operate without them on your own data.

If I do not include transform, I get this error :
Traceback (most recent call last):
File "tileserver/init.py", line 512, in
tile_server = create_tileserver_from_config(config)
File "tileserver/init.py", line 444, in create_tileserver_from_config
queries_config, template_path, reload_templates)
File "/usr/local/lib/python2.7/site-packages/tilequeue-0.7.1-py2.7.egg/tilequeue/command.py", line 346, in parse_layer_data
transform_fn_names=layer_config['transform'],
KeyError: 'transform'

Looks like we're expecting there to be at least 1 transform when the query
file is parsed. Either send a PR with the change or we can look at it
Monday.
On Fri, Feb 19, 2016 at 5:28 PM, divya1c<EMAIL_ADDRESS>wrote:

If I do not include transform, I get this error :
Traceback (most recent call last):
File "tileserver/init.py", line 512, in
tile_server = create_tileserver_from_config(config)
File "tileserver/init.py", line 444, in create_tileserver_from_config
queries_config, template_path, reload_templates)
File
"/usr/local/lib/python2.7/site-packages/tilequeue-0.7.1-py2.7.egg/tilequeue/command.py",
line 346, in parse_layer_data
transform_fn_names=layer_config['transform'],
KeyError: 'transform'
—
Reply to this email directly or view it on GitHub
https://github.com/mapzen/vector-datasource/issues/537#issuecomment-186477324
.

The PR in mapzen/tilequeue#71 will allow missing transform config items when merged. Until then, a work-around is to add an empty list as the value. For example:
layers:
  water:
    transform: []
    template: water.jinja2


Incomplete list of repositories for gitea

Hi,
the list of my personal, private repositories for my gitea server displays only 30 out of my 82 repositories and I haven‘t found a way to access the missing ones with git-touch. I don’t understand the order in which this list is presented. Moreover, under „me“ collaborative repositories are listed, too. The views are identical under Android and iOS. The web interface of gitea works well.

Hi, @hpodhaisky , it should have been fixed in the latest v1.5.1.
Closing, feel free to reopen it if there are other problems.

Hi, @pd4d10 , thanks it is better now: (in v1.5.1 under Android) I can only see my repositories under "me". But still only 30. I could live with 30 if there were an option to filter. Alternatively, a simple fix (for me) would just be to increase 30 to 100.
I believe the reason is the default of DEFAULT_PAGING_NUM=30 in https://docs.gitea.io/en-us/config-cheat-sheet/ .
Thus, git-touch needs the option to fetch more than one page.


Add logging and fix flickering test

Description
Fixes #3407
Increases the number of attempts ensureObjective will be retried to ensure that the test will succeeed.
Also, some additional logging has been added.
How Has This Been Tested? [Optional]
I spammed it on CI and did not see an error after these changes.

Checklist:
Code quality

[x] I have written clear commit messages
[x] I have performed a self-review of my own code
[x] This change does not have an unduly wide scope
[x] I have separated logic changes from refactor changes (formatting, renames, etc.)
[x] I have commented my code wherever necessary (can be 0)
[ ] I have added tests that prove my fix is effective or that my feature works, if necessary

Project management

[x] I have applied the appropriate labels
[x] I have linked to all relevant issues (can be 0)
[x] I have linked to all dependent issues (can be 0)
[x] I have assigned myself to this PR
[x] I have chosen the appropriate pipeline on zenhub for the linked issue

Of course the latest test run fails 😢

Of course the latest test run fails 😢

At least you added logging!

Closing as I'm going to raise a PR for just the logging increase.


tensorboard error

when i run this:python tracking/create_default_local_file.py --workspace_dir . --data_dir ./data --save_dir ./output
i get that error:
Traceback (most recent call last):
File "/home/pc_3270/OSTrack/tracking/create_default_local_file.py", line 4, in
from lib.train.admin import create_default_local_file_ITP_train
File "/home/pc_3270/OSTrack/tracking/../lib/train/init.py", line 1, in
from .admin.multigpu import MultiGPU
File "/home/pc_3270/OSTrack/tracking/../lib/train/admin/init.py", line 3, in
from .tensorboard import TensorboardWriter
File "/home/pc_3270/OSTrack/tracking/../lib/train/admin/tensorboard.py", line 7, in
from tensorboardX import SummaryWriter
ModuleNotFoundError: No module named 'tensorboardX'

you can install tensorboardX by pip install tensorboardX


No retry when status code 404

Can i have retry when status code is 404/502?
Retry only trigger when timeout.

Nope, you see that, if a page status code is 404, why do you want to retry any more?


Send 422 if keyword not found

What's this PR do?
Sends a 422 instead of 404 if an incoming chatbot request contains a keyword that doesn't have a matching Keyword entry in our Contentful space, Gambini.
How should this be reviewed?
Post to chatbot locally with a keyword that doesn't exist in Gambini, like willsmith. Confirm a 422 is returned:
{
  "error": {
    "code": 422,
    "message": "Keyword willsmith not found."
  }
}

Relevant tickets
Fixes #874
Checklist

[x] Tested on staging.

Codecov Report

Merging #878 into develop will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff           @@
##           develop    #878   +/-   ##
=======================================
  Coverage     11.3%   11.3%
=======================================
  Files           21      21
  Lines         1053    1053
=======================================
  Hits           119     119
  Misses         934     934

Impacted Files
Coverage Δ

app/routes/chatbot.js
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Unable to locate the elements within excel by inspect.exe

I'm trying to automate excel application and I couldn't able to locate the drop down control neither by inspect.exe nor by UIWinAppDriverUiRecorder.exe. Is there any other way to identify this element which is highlighted in the screen shot. Any help on this will be greatly appreciated.

Here is a workaround you can try:

Click on target cell to show the dropdown button

Move cursor to next cell on the right by calling MouseMove with an offset

Cursor should now be on top of the dropdown button, so click on it
         // LeftClick on DataItem ""E" 7" at (216,22)
         Console.WriteLine("LeftClick on DataItem \""E" 7\" at (216,22)");
         string xpath_LeftClickDataItemE7_216_22 = "/Pane[@ClassName=\"#32769\"][@Name=\"Desktop 1\"]/Window[@ClassName=\"XLMAIN\"][@Name=\"Book1 - Excel\"]/Pane[@ClassName=\"XLDESK\"]/Tab[@Name=\"Book1\"][starts-with(@AutomationId,\"Book\")]/TabItem[@Name=\"Sheet Sheet1\"][starts-with(@AutomationId,\"Sheet\")]/DataGrid[@Name=\"Grid\"][@AutomationId=\"Grid\"]/DataItem[@Name=\""E" 7\"]";
         var winElem_LeftClickDataItemE7_216_22 = desktopSession.FindElementByAbsoluteXPath(xpath_LeftClickDataItemE7_216_22);
         if (winElem_LeftClickDataItemE7_216_22 != null)
         {
              // 1) Click on cell to show drop down button
             winElem_LeftClickDataItemE7_216_22.Click();

             System.Threading.Thread.Sleep(1000);

              // 2) Move cursor to next cell on the right by calling MouseMove with an offset
             desktopSession.DesktopSessionElement.Mouse.MouseMove(winElem_LeftClickDataItemE7_216_22.Coordinates,
                 winElem_LeftClickDataItemE7_216_22.Size.Width + 5,
                 winElem_LeftClickDataItemE7_216_22.Size.Height / 2);

             // 3) Click on drop down button
             desktopSession.DesktopSessionElement.Mouse.Click(null);
         }
         else
         {
             Console.WriteLine($"Failed to find element using xpath: {xpath_LeftClickDataItemE7_216_22}");
             return;
         }

Thanks @JunlinZhu'. I tried the work around and it's working.


Modularize npmi

Pulls the nPMI calculations out into its own little module.

I ended up having to make another change in this too, and this is about reading and writing "feather" files.
I have changed this to being "json" instead. Because there are some other data structures that used feather, I had to change those at the same time.
SO you will additionally see:
1 - Changes from ".feather" to ".json" in the filenames in dataset_statistics.py
2 - Changes to the reading/writing of feather files in dataset_statistics.py and dataset_utils
3 - Removing a function we no longer needed due to that change (_set_idx_cols in dataset_statistics.py)


SUBMARINE-1010. Use kubectl wait for the minio pod in mlflow

What is this PR for?
Use init container to wait for the minio pod start. Add this container to mlflow and server pod. Add the rbac credential to mlflow pod.
What type of PR is it?
Improvement
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/SUBMARINE-1010
How should this be tested?
See the following video. It shows the logs of server and mlflow pod and the two pods run successfully.
https://youtu.be/T1eSeyeyXvk
Screenshots (if appropriate)
Questions:

Do the license files need updating? No
Are there breaking changes for older versions? No
Does this need new documentation? No

@pingsutw @KUAN-HSUN-LI please help me review the code, thanks.

Need to update this line. rbac.yaml -> server_rbac.yaml
https://github.com/apache/submarine/blob/4b30e71ec803e3c8209a73477fdea54d8a463869/submarine-cloud-v2/pkg/controller/submarine_server_rbac.go#L90

Ok. The reason that tests fail is because the init container image isn't deploy yet.


Fix the build: use correct udid for uninstall ssl cert

Fix the udid being sent into the uninstall ssl command.
Also quarantine the ssl test in Travis, since it is broken there.

Thanks for fixing this @imurchie


Use markdown api messages

Switches to using markdown formatted API requests/responses, updating the prompt, and parsing to/from Conversation/ChatMessage correctly. Includes some tests I used in development, so I figured I'd leave those in.
Closes #76

Looks good. Only change I can think of is moving the tests for the stringMessageBlock to be moved to its own file. I think it's fine as is though. Whenever we have more tests written, we can move them then.

Yeah I figured since we don't have any other tests really that leaving it there didn't matter much, but definitely could move it in the future if/when we add more.


Create reproducible example for Edinburgh

For https://raw.githubusercontent.com/nptscot/npt/main/data-raw/od_subset.csv, what should the origins and destinations be? All buildings to... schools? Workplaces?

Homes + workplaces as per message on Slack. Happy to take a look at results and I need to generate test outputs..

How do you generate subpoints for each of those today? For homes, all buildings, or do you filter for anything? How about for workplaces?
There's a few bugs with the Edinburgh example I'm working through, will let you know when it's ready for a look. For reference, the routing step took about 2s for the 138k requests from the OD csv

Today we use these for origins and destinations: https://github.com/nptscot/npt/blob/main/data-raw/oas.geojson

For the open data build..

Alright, fixed.
git clone https://github.com/dabreegster/routing-engines
cd routing-engines/examples/edinburgh
python3 setup.py
cargo run --release config.json

Load output/output.geojson with https://dabreegster.github.io/routing-engines/, or check out output/counts.csv.
You can also get full detail for some routes: cargo run --release config.json --detailed-routes=50. Check output/route*.geojson.
Not counting the time for cargo build, the first run to generate counts from 140k routes (- 5k errors) takes 10s total for me. If you run it again (using some cached files in intermediate, it's just 5s.

For the full build we also use OA centroids for origins but switch to OS POIs for destinations in the 'full' build as per https://github.com/nptscot/npt/blob/main/_targets.R#L136
@mem48 may have more info on how open/not the destination dataset is but seems closed from that code. You could approximate it pretty well with workplaces on OSM.

The LTS categories are still broken, working on it.

These timings are impressive! As it happens Malcolm and I were just talking about build times with units of hours not seconds :laughing: :snail: :turtle:

For the full build we also use OA centroids for origins but switch to OS POIs for destinations in the 'full' build

Thanks! For now, both origins and destinations in this are just all building centroids. setup.py creates em. We can get fancier with tag filtering to detect workplaces.

I'm getting the total of 140k requests from the all column in od_subset.csv. Do you have anything bigger? ;)

If you share the .geojson version we may be able to do a quick benchmark. Heads-up @juanfonsecaLS1 who is looking at the validation side of things.

Outputs at https://www.dropbox.com/scl/fi/rlvyw21q9y9xp7afxhoii/edinburgh_rnet.geojson?rlkey=iwg1e6frgerz5j95y9v5eyww1&dl=0 and https://www.dropbox.com/scl/fi/m1o5s5xchh5byl8elnuj4/edinburgh_counts.csv?rlkey=i5e4y2h9648q8h0fqg8op2u5v&dl=0

Oh yeah and this is not using an uptake model, modify config.json for that

It's using bicycle column for now I guess.. will check.

No sign of which value in the OD data it's using for the n. routes: https://github.com/dabreegster/routing-engines/blob/main/examples/edinburgh/config.json

OK: all should be replaced with bicycle here if you want an estimate of cycling levels in Edinburgh today (or 2011 which wasn't too different although cycling has defo grown since then): https://github.com/dabreegster/routing-engines/blob/main/examples/edinburgh/setup.py#L52

See setup.py. It's using all, you could change it there depending what we want to do -- look at converting driver trips or estimating current cycling.
(I'm still working on docs, but I'm making some different choices about config vs convention here. Input files need to have a very well-defined format. Less config for things like columns. Need to write little data prep scripts anyway to download input files, might as well do cleaning there too.)

Looking good and glad it's a useful example. Yeah from looking at setup.py it's worth replacing all with bicycle to compare with cycle counters and with baseline results generated by NPT.

Back to this reproducible example...
(is there any other? I was just trying to run something to make sure I have everything needed before proceed!)
I did this
cd examples/edinburgh
python3 setup.py
cargo run --release config.json

It made a lot of operations, but ended with an error.
    Finished release [optimized] target(s) in 0.04s
     Running `/media/rosa/Dados/GIS/od2net/target/release/od2net config.json`
Using config from config.json:
{
  "requests": {
    "description": "Existing home to school cycling trips in Edinburgh, from NPT data. The origins and destinations are both building centroids, since not every zone has a school.",
    "pattern": {
      "BetweenZones": {
        "zones_path": "zones.geojson",
        "csv_path": "od.csv"
      }
    },
    "origins_path": "buildings.geojson",
    "destinations_path": "buildings.geojson"
  },
  "cost": "Distance",
  "uptake": "GoDutchPCT",
  "lts": "BikeOttawa"
}

## everything
#### Load network
Trying to load network from /media/rosa/Dados/GIS/od2net/examples/edinburgh/intermediate/network.bin
#### Load network took 87.06607ms
#### Loading or generating requests
###### Loading origins
Loading points from /media/rosa/Dados/GIS/od2net/examples/edinburgh/input/buildings.geojson
###### Loading origins took 198.550525ms
###### Loading destinations
Loading points from /media/rosa/Dados/GIS/od2net/examples/edinburgh/input/buildings.geojson
###### Loading destinations took 197.017365ms
Got 207,989 origins and 207,989 destination
###### Loading zones from /media/rosa/Dados/GIS/od2net/examples/edinburgh/input/zones.geojson
###### Loading zones from /media/rosa/Dados/GIS/od2net/examples/edinburgh/input/zones.geojson took 775.214µs
###### Matching points to zones
0 zones have no matching origin points. Using centroid instead.
0 zones have no matching destination points. Using centroid instead.
###### Matching points to zones took 67.494409ms
###### Generating requests from /media/rosa/Dados/GIS/od2net/examples/edinburgh/input/od.csv
###### Generating requests from /media/rosa/Dados/GIS/od2net/examples/edinburgh/input/od.csv took 1.010092ms
Got 8,015 requests
#### Loading or generating requests took 464.92421ms
#### Routing
Trying to load CH from /media/rosa/Dados/GIS/od2net/examples/edinburgh/intermediate/ch.bin
###### Building RTree for matching request points to OSM nodes
###### Building RTree for matching request points to OSM nodes took 16.586681ms
Got counts for 56,408 edges
7,444 succeeded, and 571 failed
#### Routing took 70.970182ms
#### Writing output CSV
Skipped 0 edges (started/ended mid-edge)
#### Writing output CSV took 28.151276ms
#### Writing output GJ
Skipped 0 edges (started/ended mid-edge)
#### Writing output GJ took 133.135579ms
#### Converting to pmtiles for rendering
Running: "tippecanoe" "/media/rosa/Dados/GIS/od2net/examples/edinburgh/output/output.geojson" "-o" "/media/rosa/Dados/GIS/od2net/examples/edinburgh/output/rnet.pmtiles" "--force" "-l" "rnet" "-zg" "--drop-fraction-as-needed" "--extend-zooms-if-still-dropping" "--description" "{\"config\":{\"requests\":{\"description\":\"Existing home to school cycling trips in Edinburgh, from NPT data. The origins and destinations are both building centroids, since not every zone has a school.\",\"pattern\":{\"BetweenZones\":{\"zones_path\":\"zones.geojson\",\"csv_path\":\"od.csv\"}},\"origins_path\":\"buildings.geojson\",\"destinations_path\":\"buildings.geojson\"},\"cost\":\"Distance\",\"uptake\":\"GoDutchPCT\",\"lts\":\"BikeOttawa\"},\"num_origins\":7125,\"num_destinations\":6442,\"num_requests\":8015,\"num_succeeded_requests\":7444,\"num_failed_requests\":571,\"num_edges_with_count\":56408,\"routing_time_seconds\":0.07096822,\"total_meters_not_allowed\":2706.1546407716487,\"total_meters_lts1\":7060655.421423288,\"total_meters_lts2\":7214196.108788052,\"total_meters_lts3\":16797463.27973969,\"total_meters_lts4\":2840260.3781559914,\"total_time_seconds\":null,\"tippecanoe_time_seconds\":null}"
#### Converting to pmtiles for rendering took 71.908611ms
WARNING: Dropping timer during block everything. Probably crashing.
Error: No such file or directory (os error 2)

I am not sure what I am supposed to get, but there is actually a output.geogson file with 26MB in the output folder.
Any guidance on this will be very helpful :)
Next: Create an example for Lisbon! @partavogen already forked this repo and is trying to make that, but also facing some issues.

I think you're missing tippecanoe. https://github.com/Urban-Analytics-Technology-Platform/od2net/blob/main/docs/tutorial_examples.md#setup has all the prerequisites. https://github.com/felt/tippecanoe#installation or there's also instructions to run with docker
@partavogen, feel free to ask about any problems you hit

Thank you, that was it indeed!
I missed that tutorial link.
Now I'm ready :kite:
## everything took 38.60656751s

Summary:
      - Scrape OSM data took 1.870924485s
      - Split into edges took 399.138367ms
      - Building RTree for matching amenities to edges took 653.335348ms
      - Match amenities to closest edge took 47.117938ms
      - Calculate LTS for all edges took 200.903644ms
      - Calculate cost for all edges took 22.633144ms
    - Make Network from xml or pbf took 3.194178353s
    - Saving to /home/rosa/GIS/od2net/examples/edinburgh/intermediate/network.bin took 112.743049ms
  - Load network took 3.333523759s
    - Loading origins took 459.723639ms
    - Loading destinations took 443.483893ms
    - Loading zones from /home/rosa/GIS/od2net/examples/edinburgh/input/zones.geojson took 2.225474ms
    - Matching points to zones took 182.770747ms
    - Generating requests from /home/rosa/GIS/od2net/examples/edinburgh/input/od.csv took 2.949707ms
  - Loading or generating requests took 1.091331384s
    - Building InputGraph took 84.030618ms
    - Preparing the CH took 3.14475253s
    - Building RTree for matching request points to OSM nodes took 42.819263ms
  - Routing took 3.457530768s
  - Writing output CSV took 44.245049ms
  - Writing output GJ took 272.523907ms
  - Converting to pmtiles for rendering took 30.407325297s
- everything took 38.60656751s

Input: Existing home to school cycling trips in Edinburgh, from NPT data. The origins and destinations are both building centroids, since not every zone has a school.
- Origins: 7,125
- Destinations: 6,442
- Requests: 8,015
- Requests (succeeded): 7,444
- Requests (failed): 571
- Edges with a count: 56,180
- Total distance on not allowed roads: 3.0 km
- Total distance on LTS 1 roads: 7155.3 km
- Total distance on LTS 2 roads: 7199.3 km
- Total distance on LTS 3 roads: 16712.8 km
- Total distance on LTS 4 roads: 2842.6 km

Heads-up @dabreegster I'm giving this a spin now..

It's because of the sys.path.append("..") hack, probably. I had an old branch trying to set up Python modules properly, but I didn't get it working. Not sure why you're hitting this problem though. I'll look into it eventually :\

I should be able to debug it... I tried with
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

but that also didn't work. I'll try moving the contents of utils.py into setup.py to see if that works..

That did it, things are happening!

This is done! Great work on it Dustin, it's got big potential.


fix(frontends/lean/elaborator): @applications don't make thunks

If f : thunk A -> B and g : thunk A, then f g will automatically apply thunk parsing to create the ill-typed term f (λ_, g). With this PR, you can now write @f g in order to disable thunk parsing.

This PR is broken. Lean failed to compile the standard library. You should be able to reproduce the problem by executing the following commands in your build directory.
make clean-olean
make

Okay, this is baffling. I only get one breakage in the standard library, at lazy_list.append, but this doesn't make any sense since this was exactly my test case when I wrote it!
def append : lazy_list α → thunk (lazy_list α) → lazy_list α
| nil        l  := l ()
| (cons h t) l  := cons h (append (t ()) (l ()))
| (cons h t) l  := cons h (@append (t ()) l)

Is this what breaks for you? The test machines are showing breakage across the board, most likely because a different elaboration strategy is chosen, but this doesn't make any sense, since my change is trivial and explicitly only matters when (a) there is a thunk and (b) the @ explicit parameter is used. Help!

I didn't try to analyze the problem. The behavior is identical to the one in the cloud build:
https://travis-ci.org/leanprover/lean/jobs/245256729

@digama0 https://github.com/Kha/lean/commit/c22e38d fixes the build for me. I can't figure out how to push to this PR right now.

Merged with @kha's fix.


CoreDataStore with AppGroup

Hi, i want to store the CoreData Container with a custom URL to share it with a widget extension.
Here is my code:
let accessToken = SingleCoreDataStore<String>(databaseName: "accessToken") { objectModel in
        let container = NSPersistentContainer(name: "accessToken")
        let storeURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.com.justtreme.teamplaner")!.appendingPathComponent("accessToken.sqlite")
        let description = NSPersistentStoreDescription(url: storeURL)
        container.persistentStoreDescriptions = [description]

        container.loadPersistentStores { (_, error) in
            if let error = error {
                print(error.localizedDescription)
            }
        }

        return container
    }

I can store the data and retrieve it from the iOS app but it is not available on the widget extension.
This code is in a handler file wich is available for both targets.
Can someone help me with that?
Ferris

I have a similar problem and I still haven't been able to solve it.


updated Colab notebook to use keepsake instead of replicate

Hey guys, is the package supposed to be replicate or keepsake?
If it's the keepsake, then Colab notebook uses old package name.
I fixed that in Colab and updated link to new notebook.

Ah -- thanks so much! The main docs point at the correct docs, but clearly I forgot to update the readme. I've fixed in a separate commit so it points at the same notebook as docs.
The real fix would be to set up website with a redirect to the configured notebooks, so we can use the same canonical URL everywhere. https://keepsake.ai/docs/notebook-tutorial which redirected to the correct tutorial, or something.

Done the real fix in 1966564


Need help in configuring the in and out parameters!!!

Uploading official_video.zip…
Hi,@DHaylock.
I am trying to configure the config.json file to work for my office. I  am trying to count the number of people in and out , it is ether missing people or counting them more. Can you please check and let me know where i am making the mistake? I have added both the input video and config.json file. THanks in advance!!

http://pan.baidu.com/s/1nvoajO1
This link is video and my profile.


Add support to custom text spliter

Why are these changes needed?
Add support to use customized text spliter, such as text spliter imported from langchain or any other tools.
Related issue number
Closes #81
Checks

[ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
[x] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[ ] I've made sure all auto checks have passed.

Codecov Report

Merging #270 (f098545) into main (294e006) will decrease coverage by 0.08%.
The diff coverage is 76.47%.

@@            Coverage Diff             @@
##             main     #270      +/-   ##
==========================================
- Coverage   43.31%   43.24%   -0.08%
==========================================
  Files          17       17
  Lines        2133     2146      +13
  Branches      481      487       +6
==========================================
+ Hits          924      928       +4
- Misses       1126     1134       +8
- Partials       83       84       +1

Flag
Coverage Δ

unittests
43.24% <76.47%> (+0.01%)
:arrow_up:

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

Files
Coverage Δ

...gen/agentchat/contrib/retrieve_user_proxy_agent.py
29.31% <100.00%> (+0.37%)
:arrow_up:

autogen/retrieve_utils.py
69.94% <75.00%> (+0.99%)
:arrow_up:

... and 1 file with indirect coverage changes


Preview/1402 registry connector

Now registers with PO. Still need integration tests.

[EO Certificates] Kudos, SonarCloud Quality Gate passed!
  0 Bugs   0 Vulnerabilities   0 Security Hotspots   22 Code Smells
 71.0% Coverage  0.0% Duplication

These code smells should be handled


api docs: Fix the live reload system.

After adding the commit for loading the OpenAPI file only whe necessary, we didn't take into account the fact that self.data isn't initialized on the first run of spec().

Testing Plan: lint and mypy checks passed locally. Made sure that you can reach a docs page right after starting the server.

I think this change is incorrect and has no effect; I'd be curious for details on why you wrote it.

You're definitely right, my bad. The live reload system was failing for me shortly after rebasing the commit, and it was complaining about self.data being None, but I can't reproduce it anymore so I guess it was something temporary.
Closing the PR, apologies!


Add iframe element to Layouts

Closes #5740

Looks good. Waiting just to see if it should be in 1.9.2 or next one.

/cc @bleroy what do you think about this feature?

Not a mainline scenario. Can be done in a gallery module.

A Google Maps or YouTube video element are specific scenarios, but iframe is just a standard  HTML element like break, heading or paragraph.

Google Maps and YouTube are not good scenarios for this: both of those should have their own elements. Maps should be available as a gallery module, and YouTube is already handled by the media library's media element. If those sites change the way they are embedded, you would have to change your site in every single place you've used an iframe, whereas if they are specialized elements, it's just a template change. It's also much easier to manage this way. iFrame is a standard element, yes, but one that is problematic in many ways, and that is often actively avoided. There are plenty of elements that don't have a corresponding element, that would be more important to include, as a matter of facts, such as UL/LI.


Missing registers in radeco's register profile

[0x00400526]> #!pipe RUST_BACKTRACE=1 ./minidec
[x] Analyze all flags starting with sym. and entry0 (aa)
[x] Analyze len bytes of instructions for references (aar)
[x] Analyze function calls (aac)
[0x0040053e esil_mem_addeq_n: invalid parameterse)
[x] Emulate code to find computed references (aae)
[x] Analyze consecutive function (aat)
[aav: using from to 0x400000 0x402198
Using vmin 0x400000 and vmax 0x601040
aav: using from to 0x400000 0x402198
Using vmin 0x400000 and vmax 0x601040
[x] Analyze value pointers (aav)
[x] Constructing a function name for fcn.* and sym.func.* functions (aan)
[*] Constructing ...
thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore/option.rs:325
stack backtrace:
   1:     0x555f02d872ef - std::sys::backtrace::tracing::imp::write::h3800f45f421043b8
   2:     0x555f02d8c0db - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::h0ef6c8db532f55dc
   3:     0x555f02d8bd63 - std::panicking::default_hook::hf3839060ccbb8764
   4:     0x555f02d7dccd - std::panicking::rust_panic_with_hook::h5dd7da6bb3d06020
   5:     0x555f02d8c321 - std::panicking::begin_panic::h9bf160aee246b9f6
   6:     0x555f02d7ec8a - std::panicking::begin_panic_fmt::haf08a9a70a097ee1
   7:     0x555f02d8c2be - rust_begin_unwind
   8:     0x555f02dc1b6f - core::panicking::panic_fmt::h93df64e7370b5253
   9:     0x555f02dc1e48 - core::panicking::panic::h9d5bd65bbb401959
  10:     0x555f02cd3584 - _<std..option..Option<T>>::unwrap::h6aef091f4b6ff42e
                        at ../src/libcore/macros.rs:21
  11:     0x555f02cd3357 - _<middle..phiplacement..PhiPlacer<'a, T>>::read_register::h4ead5c0b182be7fe
                        at src/middle/phiplacement.rs:447
  12:     0x555f02ce2339 - _<frontend..ssaconstructor..SSAConstruct<'a, T>>::process_in::hd7618884e7f30e12
                        at src/frontend/ssaconstructor.rs:127
  13:     0x555f02ce0dd1 - _<frontend..ssaconstructor..SSAConstruct<'a, T>>::process_op::h4d0dd0078e677458
                        at src/frontend/ssaconstructor.rs:180
  14:     0x555f02cb3b4e - _<frontend..ssaconstructor..SSAConstruct<'a, T>>::run::h1b082c3ed2f8d414
                        at src/frontend/ssaconstructor.rs:482
  15:     0x555f02ca0ae3 - radeco_lib::frontend::containers::RadecoFunction::construct::h5d9b65935b8ad2d2
                        at src/frontend/containers.rs:100
  16:     0x555f02ce94ac - radeco_lib::frontend::containers::ssa_single_fn::he5096a7f47bddb01
                        at src/frontend/containers.rs:123
  17:     0x555f02bf5c4a - _<radeco_lib..frontend..containers..RadecoModule<'a> as std..convert..From<&'a mut T>>::from::_$u7b$$u7b$closure$u7d$$u7d$::hb44788f1fdd653c6
  18:     0x555f02bf5b37 - _<std..panic..AssertUnwindSafe<F> as std..ops..FnOnce<()>>::call_once::h527d3b6640403128
                        at ../src/libstd/panic.rs:284
  19:     0x555f02bf5a8e - std::panicking::try::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h3f5128ea6bbad281
  20:     0x555f02bf63d4 - std::panicking::try::call::h7da9b03a87cc71a2
                        at ../src/libstd/panicking.rs:272
  21:     0x555f02d95d2b - __rust_try
  22:     0x555f02d95cce - __rust_maybe_catch_panic
  23:     0x555f02bf571d - std::panicking::try::_$u7b$$u7b$closure$u7d$$u7d$::hf4d7c48fcd75690f
  24:     0x555f02bf55ef - _<std..thread..LocalKey<T>>::with::hfba6cb75f1a19d58
                        at ../src/libstd/thread/local.rs:211
  25:     0x555f02bf542f - std::panicking::try::h8b85037222c3ea8b
                        at ../src/libstd/panicking.rs:235
  26:     0x555f02bf530e - std::panic::catch_unwind::h6af3f394e3201ad9
                        at ../src/libstd/panic.rs:387
  27:     0x555f02bf5181 - std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::he15378db27dde864
  28:     0x555f02bf6757 - _<F as std..boxed..FnBox<A>>::call_box::h765aff2a4682d6c1
                        at ../src/liballoc/boxed.rs:543
  29:     0x555f02d8a914 - std::sys::thread::Thread::new::thread_start::h9e5bde00f3b3e2e2
  30:     0x7fd32f6c66f9 - start_thread
  31:     0x7fd32f1e6b5c - clone
  32:                0x0 - <unknown>
[+] Analyzing: sub.__gmon_start___248_420 @ 0x400420
  [*] Eliminating Dead Code
  [*] Propagating Constants
  [*] Eliminating More DeadCode
  [*] Eliminating Common SubExpressions
  [*] Writing out IR
[+] Analyzing: sym.frame_dummy @ 0x400500
  [*] Eliminating Dead Code
  [*] Propagating Constants
  [*] Eliminating More DeadCode
  [*] Eliminating Common SubExpressions
  [*] Writing out IR
[+] Analyzing: sym.__libc_csu_init @ 0x400570
  [*] Eliminating Dead Code
  [*] Propagating Constants
  [*] Eliminating More DeadCode
  [*] Eliminating Common SubExpressions
  [*] Writing out IR
[+] Analyzing: sym.__do_global_dtors_aux @ 0x4004e0
  [*] Eliminating Dead Code
  [*] Propagating Constants
  [*] Eliminating More DeadCode
  [*] Eliminating Common SubExpressions
  [*] Writing out IR
[+] Analyzing: sym.register_tm_clones @ 0x4004a0
  [*] Eliminating Dead Code
  [*] Propagating Constants
  [*] Eliminating More DeadCode
  [*] Eliminating Common SubExpressions
  [*] Writing out IR
[+] Analyzing: entry0 @ 0x400430
  [*] Eliminating Dead Code
  [*] Propagating Constants
  [*] Eliminating More DeadCode
  [*] Eliminating Common SubExpressions
  [*] Writing out IR
[+] Analyzing: sym._init @ 0x4003c8
  [*] Eliminating Dead Code
  [*] Propagating Constants
  [*] Eliminating More DeadCode
  [*] Eliminating Common SubExpressions
  [*] Writing out IR
[+] Analyzing: sym.deregister_tm_clones @ 0x400460
  [*] Eliminating Dead Code
  [*] Propagating Constants
  [*] Eliminating More DeadCode
  [*] Eliminating Common SubExpressions
  [*] Writing out IR
[+] Analyzing: sym.__libc_csu_fini @ 0x4005e0
  [*] Eliminating Dead Code
  [*] Propagating Constants
  [*] Eliminating More DeadCode
  [*] Eliminating Common SubExpressions
  [*] Writing out IR
[+] Analyzing: sym._fini @ 0x4005e4
  [*] Eliminating Dead Code
  [*] Propagating Constants
  [*] Eliminating More DeadCode
  [*] Eliminating Common SubExpressions
  [*] Writing out IR

binary (base64'd) https://gist.github.com/a44b88d77df07c1b6486204eaee34f44

This may be because the function uses xmm registers. Currently, radeco does not support these.

Will be nice to make radeco show more meaningful errors with context

On 09 Jul 2016, at 09:13, Sushant Dinesh<EMAIL_ADDRESS>wrote:
This may be because the function uses xmm registers. Currently, radeco does not support these.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

This is because float is not supported in Radeco, thus missing the xmm0..4 registers.


chore: Update S2 Dialog codemods

Updated the DialogTrigger/DialogContainer codemods to replace the Dialog child with Popover or FullscreenDialog depending on the type prop, and move other props to the child. Also took this opportunity to fix the spelling error in isDismissable 😄.

💯 🥇


Write instructions for sponsor's statement

What information is needed
Some formatting advice is here https://grants.nih.gov/grants/how-to-apply-application-guide/forms-e/general/g.430-phs-fellowship-supplemental-form.htm#9

Should also include more detail about letters of support and who to get them from


Update amp-bind sample with new setState syntax

Updates amp-bind samples to reflect latest changes of the syntax of AMP.setState

With the latest canary build, it should be possible to use the following code:
          <amp-selector name="color"                   layout="container"                   [selected]="selectedColor"                   on="select:AMP.setState({selectedColor:event.targetOption,                     selectedSlide:0,                     selectedSize:product[event.targetOption].sizes.includes(selectedSize)                                   ? selectedSize                                   : product[event.targetOption].defaultSize})">

Just tried it, this is blocked by 8251

Actually I was wrong, it was because I was not using an array in the json but an object

Fixed by #707


merge package template from Kronos-Tools/npm-package-template-minimal

package.json

chore(scripts): update semantic-release@semantic-release from template
chore(devDependencies): update<EMAIL_ADDRESS>from template

.travis.yml

chore(travis): merge from template .travis.yml

Coverage remained the same at 78.419% when pulling b6ddaa0f2c848fda8f352ce617702ae733f67c86 on template-sync-1 into 51fa016b7373c1879b451498443fc77212020b10 on master.

Codecov Report

Merging #150 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #150   +/-   ##
=======================================
  Coverage   83.16%   83.16%
=======================================
  Files          11       11
  Lines         594      594
  Branches      181      181
=======================================
  Hits          494      494
  Misses        100      100

Continue to review full report at Codecov.

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


[NETBEANS-54] Module Review o.apache.ws.commons.util

Updated maven coordinates for Apache WS Commons Util (Apache 2.0)
No notice found at http://svn.apache.org/viewvc/webservices/commons/trunk/modules/util/
No other licensing issues found (manifest.mf to be handled centrally)

The binary file is effectively identical. The difference is in the pom.xml files:
https://try.diffoscope.org/tsvpkrrvedcy.html


update: make sure button can be clicked

when message content is too long, the button is not visible in the current window, add foucs to make sure the button can be clicked.

@NatalieXSelina Thank you for contribution 🚀.


Cannot find module 'zombie'

Using Node 0.4.0 and Zombie 0.8.13
Thanks in advance

NODE_PATH MUST BE '/usr/local/lib/node_modules'


Update vcpkg OpenCL port to point here

The vcpkg OpenCL port currently points to old commits of the OpenCL headers and the ICD loader. It should be updated to point to here. That will:

Update it to current best practices for how to target OpenCL
Pick up OpenCL 3.0 support in both the ICD loader and the headers

@jenatali It is on my TODO list, but it's blocking on some other items. The SDK intends to update CMake dependence in a backwards compatible manner. Plans are detailed here which have already passed the headers repo and has slightly stumbled on ICD and CLHPP as they lack some crucial tests.
Once all the CI and CMake rework goes through (hopefully these efforts will be boosted in the coming month) I intend on updating the portfile.

Great, thanks! We had someone who was tripped up because they built a CL sample, and then ran it, and it didn't get CLOn12 support, because vcpkg's port put an old OpenCL.dll next to their exe. I haven't looked closely to see if this SDK throws away the DLL, but at least having an updated version would prevent that problem.

@jenatali I gave it a go some time ago, however I stumbled across vcpkg_from_github not supporting submodules. I requested this feature be implemented, however until it's not, the port will not become any simpler. It'll still require cloning from all the repos separately using the same tagged version.
As a workaround, this repo (like all other OpenCL ecosystem repos) could move to FetchContent or some similar capability (if we'd be willing to raise CMake version requirements, which I'd sooooo much like). FetchContent is CMake 3.11, it isn't a big jump for the SDK (it is for the other repos), and recursive behavior isn't even needed; the transitive submodules of every repo is only needed for testing, however the SDK doesn't intend on being a superproject for development purposes of the submodules themselves. (At least that was not the original intention.)
(On a larger scale, moving everything to FetchContent el al. would allow us to omit downloading deps we don't need. CMock is a submodule to Header for eg. but we only needed when building tests. Users wouldn't have to know in advance whether they'll want to build tests or not to perform a recursive clone or not. This is on our backlog, and I very much intend to do it, but currently other matters enjoy priority.)


Building Dense Flow  Faild

Building Dense Flow
CMake Error: The source directory "/home/sugon/code/temporal-segment-networks-master/lib/dense_flow" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found.  Stop.
Failed to build Dense Flow. Please check the logs above.

All tools built. Happy experimenting!

Hi, wcj
How do you solve this build issue? Thanks.


VideoPlayer gets width and height from platformSettings

fixes #331

Thanks for this PR @ricardo-a-alves-alb
Starting v5.0.0 the VideoPlayer plugin is no longer part of the Lightning-SDK. It’s been moved to the Metrological-SDK.
The PR itself looks good to me though. My suggestion would be to recreate it at the metrological-sdk.


chore(): regression fix for HEAD-53859f66f9

What this PR does / why we need it:
Which issue(s) does this PR fixes?:

Fixes #
Additional comments?:

refer to https://github.com/BirthdayResearch/jellyfishsdk/pull/2159


Favicons only generate half the time

Describe the bug
When running npm start, npm run build or npm run watch, favicon generation only occurs if the dist directory does not already contain favicons. If the dist directory does contain favicons from a previous build, the next build will not have any icons output.
To Reproduce
Steps to reproduce the behavior:

Run npm start
Observe favicons in dist directory
Run npm start
Observe no favicons in dist directory

Expected behavior
Favicons generate on every build.

Fixed in v0.11.0


Trigger based on current rate

PLEASE DO NOT DELETE AND FILL IN!
Problem starting automation based on state value
To Reproduce
I've created an automation with the trigger:

Expected behavior
I expected the automation to activate when the current price drops below 0
Home Assistant Version
2023.6.3
Integration Version
7.4.4
Fresh Install?
Fresh install
Home Assistant Logs
nothing in logs I can see

Hello. If you are having issues with automations triggering and you can see the history of the current price going below zero, then this would be a HA issue.
You can look at the traces of automations to work out why automations don't trigger. Below is exclusive so the value would need to be -0.01 before it would trigger. It also won't retrigger if if drops below 0 and then updates to another value that is still below 0 (see https://www.home-assistant.io/docs/automation/trigger/#numeric-state-trigger)
Did the history of the sensor show the correct price?

Hi , Thanks for the quick response. It was the fact that the prior value was also below 0 that was the root of the problem so the threshold was never crossed. User error !


Where should I edit code to change input image?

I want to change input image a little. with ground truth value.
I was looking in to the source code. Maybe ' image.py' 'load_data_detection' function could be ok??
but I'm not sure where to edit...
Can you give me a hint??

@richard0326 in 259th line of image.py:
img = Image.open(imgpath).convert('RGB') # for training
in 67th line of dataset.py:
same command is used for open images. You can modify the above lines.

Does it work in train as well??

@richard0326 you should try the codes before the question. Good luck.


⚠ File access has degraded performance

In ef6a65a, File access (https://fyle.uk/file/fish) experienced degraded performance:

HTTP code: 200
Response time: 6206 ms

Resolved: File access performance has improved in 4bc542a after 8 minutes.


fixed un-supported CanValidateInput in filament v3

https://github.com/filamentphp/filament/commit/dfe563d5dc21701a6b0a184154d5e9c657df15b9


Package missing in current win-64 channels

Description of your problem
What steps will reproduce the problem?
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Users\myname>conda install spyder_terminal -c spyder-ide
Fetching package metadata ...............
PackageNotFoundError: Package missing in current win-64 channels:

spyder_terminal

What is the expected output? What do you see instead?
Expect successful install
Please provide any additional information below
Maybe you've only released 32-bit so far?
I'm not sure why it wouldn't be found since I was specifying your custom channel.
Versions and main components

Terminal Version: not installed
Spyder Version: 3.1.4
Python Version: 3.6.1 64bits
Operating system: Windows 7

@eliot1785 Sorry, we haven't published our conda packages yet, they will be available on the coming days

But you can install pywinpty via conda and install spyder-terminal from sources

conda install pywinpty -c spyder-ide

Windows packages are now available at: https://anaconda.org/spyder-ide/spyder-terminal