Fine-tuned models

Are the fine-tuned models available for use?
I am looking for fine-tuned model on 'C' PL for code summarization

Can I use the model @https://huggingface.co/microsoft/unixcoder-base-nine/tree/main and the example @ https://github.com/microsoft/CodeBERT/tree/master/UniXcoder#3-code-summarization to generate summaries without fine-tuning?
is it necessary to have the code in the format : context = """

def write_json(data,file_path): ?
especially #?

Yes. You can.
You need to have a special token <mask0> to tell the model where need to fill the content. Thus, you need to choose the position according to the language.

For example, if you use C language, you may use // <mask0>. Since the model is a pre-trained model without fine-tune, you must follow the real format.

Thanks!
Can I provide a .c or .json file (containing source code) as the input while testing?

In fact, you can modify the code by yourself, so that it can support files as the input.

Hi, could you provide a sample for input file for codesearch task?

No. You can load the file and write a loop statement to generation summarization for each code.

https://github.com/microsoft/CodeBERT/tree/master/UniXcoder#3-encoder-only-mode

How do I give a batch of examples through a file? In what format should the file contain the data?

We only provide an example to tell how to use the model to calculate the similarity of a code and a text (https://github.com/microsoft/CodeBERT/tree/master/UniXcoder#3-encoder-only-mode).  You need to implement the remaining part by yourself, including collecting code corpus, encoding them into embeddings, retrieving code by cosine distance.

thanks.
But there is option for fine tuning and evaluating mentioned in https://github.com/microsoft/CodeBERT/tree/master/UniXcoder/downstream-tasks/code-search#fine-tune-setting
Could you let me know what format the .jsonl files are ( eg: --train_data_file dataset/AdvTest/train.jsonl )

https://github.com/microsoft/CodeXGLUE/tree/main/Text-Code/NL-code-search-Adv#data-format


only output spacing if arguments present

If there are no arguments for a method then output () not ( )

@cvuorinen this PR now how conflicts due to the moving of the method template code. Do you want me to resubmit or just close this?

Sorry, I have completely missed this PR! Don't know why GitHub didn't send me email about it.
I can merge it if you resubmit.
And thanks for contributing. I'll check my GitHub notification settings so I will get notified about PR's in the future and handle them more quickly.


Introduce OnEveryFailure notification option

Move the first/repeated failure options into the Advanced section
Fixes #520

Thanks!
Have you considered documenting the manual test suite in the repo? Automating test scenarios might be a good way for the community to contribute.

There's no manual test for release, each change gets manually tested once just to make sure any UI looks correct and edge cases like first build of a job are checked

Basically I like to play around with a new feature to make sure its right.
Once its in and I'm happy the test coverage will be there to prevent regressions and give confidence in making changes in that area


Straight org-roam links not supported?

It doesn't seem to work for links like:
[[roam:foo]]

Even though backlinks appear in org-roam buffer. Only if the link is vanilla org link such as:
[[file:20210108200947-foo.org]]

Then it shows it on the page. Seems it doesn't work with org-roam-link-auto-replace set to nil

Added a custom variable org-roam-server-link-auto-replace. By default it is set to t. It will replace Org-roam's roam links with file links.
https://github.com/org-roam/org-roam-server/commit/0dddb3c63483ea194e014f53f9f1955da73374f0
https://github.com/org-roam/org-roam-server/commit/c7793202e9929dc2a415482779141e7b429421ce

Added a custom variable org-roam-server-link-auto-replace. By default it is set to t. It will replace Org-roam's roam links with file links.
https://github.com/org-roam/org-roam-server/commit/0dddb3c63483ea194e014f53f9f1955da73374f0
https://github.com/org-roam/org-roam-server/commit/c7793202e9929dc2a415482779141e7b429421ce

I still can't make it work. Is there something I'm missing. So I have:

A few notes that contain [[roam:foo]] links
My org-roam-link-auto-replace is set to nil
In Emacs Org-roam buffer shows backlinks when visiting Foo note
I tried:

setting org-roam-server-link-auto-replace to nil, restarted server
setting org-roam-server-link-auto-replace to t

And that did not work for me. Graph shows all the notes that lead to "Foo" scattered around like miserable orphans.

I still can't make it work. Is there something I'm missing. So I have:

A few notes that contain [[roam:foo]] links
My org-roam-link-auto-replace is set to nil
In Emacs Org-roam buffer shows backlinks when visiting Foo note
I tried:

setting org-roam-server-link-auto-replace to nil, restarted server
setting org-roam-server-link-auto-replace to t

And that did not work for me. Graph shows all the notes that lead to "Foo" scattered around like miserable orphans.

I only fixed the html export, I forgot about the graph. I will look into it when I got some time.

I only fixed the html export, I forgot about the graph. I will look into it when I got some time.

The problem is edges for those links are filtered by the sql query in the graph function because they are not stored as file in the database. Query results are file -> file but the actual link for roam-link is id -> file. During the database creation adding org-roam-link-replace-all won't help either because the database isn't created yet so it can't replace the org-roam links. I also tested with org-roam-graph and the result is the same.
@jethrokuan do you have any suggestions?

The problem is edges for those links are filtered by the sql query in the graph function because they are not stored as file in the database. Query results are file -> file but the actual link for roam-link is id -> file. During the database creation adding org-roam-link-replace-all won't help either because the database isn't created yet so it can't replace the org-roam links. I also tested with org-roam-graph and the result is the same.
@jethrokuan do you have any suggestions?

Might have to rethink the whole caching and interaction mechanism in Org-roam, I think this will come back to bite us later on. Will post up some redesign plans soon-ish.

Might have to rethink the whole caching and interaction mechanism in Org-roam, I think this will come back to bite us later on. Will post up some redesign plans soon-ish.

Also, while we at it (I'm not sure if this is related), can we please discuss the possibility of including links to headings (i.e.: [[roam:filename*Heading]] type of links) in the graph at some point?

Also, while we at it (I'm not sure if this is related), can we please discuss the possibility of including links to headings (i.e.: [[roam:filename*Heading]] type of links) in the graph at some point?


Mouse Utilities: Drag & Move/Resize (Hotkey)

Description of the new feature / enhancement
While holding hotkey (for example ALT key) user can move window by left-clicking anywhere on given window. Also, while holding hotkey, user can resize window by right-clicking anyewhere on given window.
Scenario when this would be used?
This is a great (tough simple) feature which I found in Gnome. I never thought that moving and resizing windows could be so fast.

Time, of course. Now in Windows if user want to move window, one need to grab the titlebar. With the hotkey grabbing area simply expands - user can click anywhere on it to drag and move.
This would work even better for resizing - now user need to find this little spot on the edge of window to click and resize. With bigger resolutions it's often hard. With hotkey user can right-click anywhere on the window-area and resize it without hassle.
There are apps which have specific Focus Mode - for example Windows Terminal. In this mode titlebar is hidden, so if you want to move the terminal you need to toggle it, then move, then toggle it again. With hotkey you are just gaining precious power-user time.

Supporting information
As I said before - I found this option very useful in Gnome (I am dualbooting from some time now).
I found also a little utility to make it work.
It's called AltSnap, and here is it's repository. This would be really nice if you could work with the author to get it on PowerToys board - especially that the big ammount of work is actually done already.

Using an autohotkey script you can do this also:https://www.autohotkey.com/docs/v1/scripts/index.htm#EasyWindowDrag_(KDE). But I prefer it to be available in PowerToys.

You can also use AltSnap  utility for that

You can also use AltSnap  utility for that

Yes, I've actually even mentioned it in my post. It's always better to have some utils bundled though - especially in Windows (which I'm using ocasionally). I'm still using AltSnap and it works, but it just would be cool to have it inside PowerToys.

duplicate of https://github.com/microsoft/PowerToys/issues/269

/dup https://github.com/microsoft/PowerToys/issues/269


Alternate Layout - Coding window on the right and feedback combined into question.

Thanks! General look and feel comments: (a) make feedback window stand out a bit from the coding window (make feedback background color #fffff7 in light mode and make code background color #333a42 in dark mode), (b) align the question set and dark/light buttons under feedback window but keep the language and reset code buttons aligned under the code window, (c) we need a way to switch between the two alternative UIs (a toggle button or a new client html file, whichever is easiest--don't need to be elaborate since we will likely drop one of the UIs after user testing).
Other UX issues that should be addressed (a) when switching between questions, feedback is lost and reset, (b) when there are multiple syntax errors, only the most recent one is displayed. These are outside the original scope for the alternative UI, but they are much more apparent in this UI. I'll open issues for these two items.

Note: for (c) I recommended to Theresa that we just replace the existing UI in this branch (no toggle button needed) for the sake of technical simplicity. Switching UIs during the user test can be done using git.

Okay, I added the colors to make the feedback window stand out and also moved around the buttons (and consolidated the styles as such). Yeah, for (c) switching between the UIs would mean that we would just have this as another directive and a large amount of redundant code between the two.

As discussed offline, when user gets the answer correct, feedback is cleared, the next step is appended, and a congratulatory note is appended after that. I would expect the existing feedback to remain, append the congratulatory feedback first, then append the next step.

The Next button overlay is not off center. It was statically set for the other UI; so, it doesn't align properly for this version. See screenshot below:

Okay, I've re-merged with master with some of the new stuff, and I think this solution works but may need some additional testing.
I've basically removed the instruction that used to be in the old window that pointed you to other instruction window because it was just redundant at this point. It still has the congratulatory one when you finish though. Also the next button CSS should be fixed.

Hrm, still need to make some changes because the merging has caused a bit of a mess.

Okay, I think for the most part I've cleaned it up, but there might be slight issues with the look of the new reinforcement stuff which I can probably handle in a separate PR.

Looks great!

Um, I thought we were only going to merge this once we've confirmed it should replace the current version?
I guess I could create a new branch for the previous three-window version if we still want to test...

Yeah, I think it was a pain for theresa-lee to keep up with the branch syncs, we seem to be planning on the 2 window design, we had users and UX person point to 2 window, and we have prior commits we can test on. We can do the quick internal user checks before the end of the week to confirm. Feel free to use the internal team mail for further discussion on this.


Submissions Group 132: 2311734_2311847_2311727_2210447_2311441

Team [132]: Implementation of Simulated Annealing (SA) and First Fit Decreasing (FFD) Algorithms for the 2D Cutting Stock Problem
1. Overview
In this pull request, our team introduces two algorithms designed to address the 2D Cutting Stock Problem: Simulated Annealing (SA) and First Fit Decreasing (FFD). These algorithms aim to optimize the use of stock materials, reducing waste while also considering computational efficiency.
Simulated Annealing (SA): A probabilistic optimization technique inspired by metallurgy's annealing process. SA starts with an initial feasible cutting pattern and iteratively explores the solution space, adjusting the "temperature" parameter to balance exploration and exploitation. It gradually reduces the probability of accepting suboptimal solutions to converge towards an optimal or near-optimal cutting plan.
First Fit Decreasing (FFD): A heuristic algorithm that sorts the cutting items in descending order by size and places each item in the first available stock piece that can accommodate it. FFD is efficient and simple, making it well-suited for large-scale problems with constrained computational resources. The algorithm aims to minimize the number of stock pieces used and reduce material waste.
2. Algorithmic Enhancements
Simulated Annealing (SA):
Implemented an exponential cooling schedule to balance exploration and exploitation more effectively.
Tuned the cooling rate to ensure the algorithm converges within a reasonable computational timeframe.
First Fit Decreasing (FFD):
Optimized the sorting mechanism to handle large datasets efficiently.
Reduced the number of required comparisons during sorting to enhance overall performance.
3. Comparison of Algorithms

Metric
Simulated Annealing
First Fit Decreasing
Random
Greedy

Average Fill Ratio
0.445
0.250
0.923
0.291

Average Time (s)
88.2
37.7
36.9
40.6

Average Trim Loss (%)
0.6278
0.1509
0.7647
0.2451

Analysis from results table:
Random Policy excels in maximizing space utilization quickly but suffers from high trim loss. Suitable for applications needing fast results where some inefficiency is tolerable.
Simulated Annealing (SA) provides a balanced solution with better overall packing, ideal for scenarios where time is less of a constraint.
First-Fit Decreasing (FFD) efficiently minimizes trim loss while maintaining fast computation times, making it ideal for applications prioritizing space efficiency without significant time delays.
Greedy Policy offers a quick solution with low trim loss but sacrifices fill ratio. It is suitable for cases where minimizing wasted space is important but not the highest priority.
4. Challenges and Solutions for Simulated Annealing
Balancing Exploration and Exploitation:
Solution: Fine-tuned the cooling schedule to maintain optimal balance, ensuring sufficient exploration early on while ensuring convergence in later stages.
Handling Large Datasets Efficiently:
Solution: Optimized data structures and implemented efficient sorting algorithms to manage and process large datasets without performance degradation.
Minimizing Computational Time:
Solution: Parallelized certain components of the algorithm and leveraged optimized mathematical libraries to reduce computation time.
5. Implementation Details - Roles and Contributions
Nguyễn Đức Trung Kiên (2311734 – L04): Implementation of the First Fit Decreasing Algorithm.
Huỳnh Nhật Linh (2311847 – L04): Implementation of the Simulated Annealing Algorithm.
Đỗ Nguyễn Quốc Kiên (2311727 – L02): Modeling the 2D Cutting Stock Problem.
Trịnh Việt Cường (2210447 – L03): Supported the integration of both algorithms into the main application workflow.
Nguyễn Đăng Minh Khang (2311441 – L04): LaTeX coding and integration of the report.

Please revise the PR in Dec 16. Otherwise, your group will get 0 score for code.

Please read the submission instruction carefully and see other merged prs.

I have pulled a new request, which is #401, can you please check is it able
to merge?
Vào Th 2, 16 thg 12, 2024 vào lúc 20:12 Duc Quang Nguyen <
@.***> đã viết:

Please read the submission instruction carefully and see other merged prs.
—
Reply to this email directly, view it on GitHub
https://github.com/martinakaduc/MM241-Assignment/pull/113#issuecomment-2545599970,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BFCFCSP72LMUUQ4LM2ZXDVT2F3GVVAVCNFSM6AAAAABTTTIZROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBVGU4TSOJXGA
.
You are receiving this because you authored the thread.Message ID:
@.***>


fix: add missing deprecated JSDoc tag to pluck overload signatures

Description:
Adds @deprecated to all overload signatures of pluck operator.
The implementation was already marked as deprecated, but that wasn't picked up by tooling, e.g. TypeScript, eslint-plugin-deprecation, IntelliJ, ...

Thank you for catching this.


Updated FAQ

Updated FAQ
Thanks for contributing to the Harness Developer Hub! Our code owners will review your submission.
Description

Please describe your changes:  Updated FAQ

[x] Successful preview build.
[ ] Code owner review.
[ ] No merge conflicts.
[ ] Release notes/new features docs: Feature/version released to at least one prod environment.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://66388928c2628291e7e8898b--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://6638add3d79e9eb14751f2d1--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://6638ebfad79e9ee91f51f2ab--harness-developer.netlify.app


CAPS clic on inventory

Description of new idea or improvement on existing one
Hello,
I installed your plugin on my server and my players would like to know if it is possible to add the following functionality:
In Minecraft when you want to collect several items at the same time (crafting, melting, cooking ...) you use the CAPS right click key. However when we do this the plugin does not take into account the number of items retrieved. On the other hand you have marked that the plugin was compatible with 1.16 and in this version there is a method allowing to add this functionality, here it is https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/inventory/ClickType.html .
Congratulations for your jobs !
Have a good day !

Caly -

There is an option in generalConfig called Crafting.PayForEachCraft which doing this.

There is an option in generalConfig called Crafting.PayForEachCraft which doing this.


CircularDependencyError when using custom Image model

093d07357ee13d4ea830db136ef037180824ddae added a migration dependency to the swappable Image model.
But a custom Image model inherits from File, so filer.0001_initial needs to be applied before the custom Image model. It of course leads to a CircularDependencyError.
The solution is to remove that dependency. No django-filer model depends on Image, so it can be removed safely.

Could you test b37d9b7

It works! :)


docs(alert): Alerts examples responsiveness issues

Some of the examples in the Alert page have issues with responsiveness:

Possibly related to #496

Hey @nikolovlazar! Since that was my doing, you can assign it to me. I was looking to still survey some of these examples to see if they should be updated because of the overflow fix.

@noobinthisgame / @nikolovlazar So the whiteSpace: pre I applied to LiveCodePreview is the primary culprit here. I could remove it entirely, or resort to say normal.
At 375px mobile width, the first Alert example with now render like this:

However, in the Form Control Sample Radio Group the last radio will now look like this:

Where should the importance be placed here? This is clearly a conflict in base styles of unrelated components in how they are handled here in the preview container. Would the Alert examples take priority because there is a higher visual impact in the issue and that the Alert component has a base style of overflow: hidden?

@jacobhq this is a part of #496, because there were other examples overflowing the preview container, so overflow:auto was applied to contain the previews.
Removing whiteSpace: pre will also fix the example you provided, because that prop was added with the overflow in hopes that it would simply maintain the original space in the desktop view. Unfortunately these side effects were overlooked.

However, there are still some examples that would need to be addressed because of the overflow applied, such as some text content being compressed. (that was my primary reason for adding whiteSpace)


Revert "Updated changelog, readme and release_notes for next release"

Reverts chef/knife-ec2#296

Not using this.


Create object wrappers for core GNU/*nix utilities

This got brought up during the sync with azure-cli. It would be awesome to have some kind of wrappers for core GNU/*nix management tools (e.g. ifconfig, iptables, etc.) so that you can manipulate the output of these tools as if they were PS cmdlets.
So, for instance, where ifconfig might return:
eth0 Link encap:Ethernet HWaddr 00:0C:29:40:93:9C
     inet addr:<IP_ADDRESS> Bcast:<IP_ADDRESS> Mask:<IP_ADDRESS>
     UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
     RX packets:1771 errors:0 dropped:0 overruns:0 frame:0
     TX packets:359 errors:0 dropped:0 overruns:0 carrier:0
     collisions:0 txqueuelen:1000
     RX bytes:138184 (134.9 KiB) TX bytes:49108 (47.9 KiB)
     Interrupt:67 Base address:0x2000

Get-Ifconfig might return an object that includes properties like inetaddr, Bcast, and Mask. Even if these are all strings, I imagine it could actually entice a beginner to intermediate *nix admin to use PowerShell for scripting against tools that may have better core networking/storage/etc support than .NET-based cmdlets.

With the release of Crescendo, Users can now wrap any platform specific command for a more PowerShell cmdlet-like experience including object based output.  With this accelerator, the PowerShell community can build and share PowerShell modules containing linux and windows commands.  For detailed information, see the Crescendo docs.


Any thoughts for supporting ViewModel or Code behind changes

Any thoughts on supporting this? For e.g. I update Button click handler/command method and then see the button execute new method without deploying solution again. Just like Xaml reload but for C# reload. Is it possible.

it is not possible for now. not sure that we add it

https://twitter.com/Andrik_Just4Fun/status/1155963687980507136

ok, hopefully we VS users can use it, too. Will this also work for UWP?

Its working like a charm. Thanks for implementing it so soon. Waiting for VS windows as its my main IDE.

ok, hopefully we VS users can use it, too. Will this also work for UWP?

extension for VS for Windows is pushed as well.
Good question, i didn't check. So, you can do it :)

Its working like a charm. Thanks for implementing it so soon. Waiting for VS windows as its my main IDE.

1.4.0 is here https://marketplace.visualstudio.com/items?itemName=StanislavBavtovich.hotreloadxamarinforms

Good question, i didn't check. So, you can do it :)

doesn't work for me. I've made the extension update, added the attribute, but when the app is running, the Visual Studio text editor is locked and I can't type any code changes.

@MagicAndre1981 https://docs.microsoft.com/en-us/visualstudio/debugger/how-to-enable-and-disable-edit-and-continue?view=vs-2019

the setting is already enabled. I now started the app without debugger, connected Hotreload, but code changes make no difference.

the setting is already enabled. I now started the app without debugger, connected Hotreload, but code changes make no difference.

have you added HotReloader.CSharpVisual attribute to your ContentPage ?
Keep in mind that you cannot mix xaml and code yet

yes, I added the attribute.
I found this bug report:
https://github.com/xamarin/Xamarin.Forms/issues/1574

ok, I also see the error message Failed to emit module 'FooApp' like in this Stackoverflow question, but I can't set PDB type to full, because here UWP also has a bug, that prevents debugging at all for Full symbols if shared code is .net standard 2.0:
https://github.com/dotnet/standard/issues/621
https://github.com/xamarin/Xamarin.Forms/issues/2712

Does it only works on Android & ios Simulators as you have mentioned in the doc? I was trying on a real device and was not successful at first attempt.

Does it only works on Android & ios Simulators as you have mentioned in the doc? I was trying on a real device and was not successful at first attempt.

not sure
But i think it should work

But i think it should work

for me it also doesn't work with Lineageos OS 14.1 device connected via adb over Wifi

tested now with VS2019 16.3 Preview1 also shows this for Android app on real device:

and in error list I get Failed to emit module 'FooApp'
In debug output I can see that Hotreload shows its debug messages so it is running

@AndreiMisiukevich can you share a demo app that works for you so that I can compare it with my csproj and detect differences?  Also have you tried it on real phone? As I already run inside a VM, running the emulator is difficult (nested VM).

Unfortunately I am on vacation now.
You can try to play with sample app in free time. But frankly speaking I am not sure that code reloading is working on Win

ok. I tried everything, but can't get it working.
To disable the error, I need to uncheck "Edit an continue" in options as suggested for a different tool that also offers C# code reloading:

But when I set breakpoint and edit code, I see the original values are assigned.

ok, I see a warning about Mono.Sharp conflict:
There was a conflict between "Mono.CSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=0738eb9f132ed756" and "Mono.CSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=0738eb9f132ed756".
1>    "Mono.CSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=0738eb9f132ed756" was chosen because it was primary and "Mono.CSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=0738eb9f132ed756" was not.
1>    References which depend on "Mono.CSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=0738eb9f132ed756" [C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Mono.CSharp.dll].
1>        C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Mono.CSharp.dll
1>          Project file item includes which caused reference "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Mono.CSharp.dll".
1>            Mono.CSharp
1>    References which depend on "Mono.CSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=0738eb9f132ed756" [].
1>        D:\Foo.App\packages\Xamarin.HotReload.1.4.19\lib
1>etstandard2.0\Xamarin.Forms.HotReload.Reloader.dll
1>          Project file item includes which caused reference "D:\Foo.App\packages\Xamarin.HotReload.1.4.19\lib
1>etstandard2.0\Xamarin.Forms.HotReload.Reloader.dll".
1>            Xamarin.Forms.HotReload.Reloader, Version=<IP_ADDRESS>, Culture=neutral, processorArchitecture=MSIL
1>            D:\Foo.App\Foo.App\Foo.App\bin\Debug\Foo.App.dll
1>Found conflicts between different versions of "Mono.CSharp" that could not be resolved.

can this be the cause of the failure? As you see (packages\Xamarin.HotReload.1.4.19\lib
1>etstandard2.0\Xamarin.Forms.HotReload.Reloader.dll)  I have to use packages.config, do you use the new PackageReference Include instead?

@MagicAndre1981 Im also getting error about Mono.CSharp conflict due to which my project build is failing. Did you find any workaround?

@Im-PJ fill new issue pls
It's bug and should be fixed (stay on 15 minor version, without code)

Im sorry which version you mean exactly.

@Im-PJ https://www.nuget.org/packages/Xamarin.HotReload/1.4.15

@AndreiMisiukevich I created a new ticket

@AndreiMisiukevich
when capturing Exception data with WPR.exe I see this NotSuportedException with callstack from Hotreload:

Line #
etw:ActivityId
Provider Name
Task Name
Time (s)
Opcode Name
Field 1
Stack
Message
Event Name
Id
Process
Cpu
ThreadId
Field 1
Field 2
Field 3
Field 4
Field 5
Field 6
Field 7
Field 8
Field 9
Field 10
Field 11
Field 12
Field 13
Field 14
Field 15
Field 16
Count
Time (s)

56

130,868269600

coreclr.dll!MethodDescCallSite::CallTargetWorker

1

57

130,868269600

System.Private.CoreLib.dll!System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

1

58

130,868269600

System.Private.CoreLib.dll!System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

1

59

130,868269600

System.Private.CoreLib.dll!System.Threading.Tasks.Task.ExecuteEntryUnsafe()

1

60

130,868269600

System.Private.CoreLib.dll!System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)

1

61

130,868269600

System.Private.CoreLib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)

1

62

130,868269600

System.Private.CoreLib.dll!System.Threading.Tasks.Task+<>c.<.cctor>b__278_1(System.Object)

1

63

130,868269600

System.Private.CoreLib.dll!System.Threading.Tasks.Task.InnerInvoke()

1

64

130,868269600

Xamarin.Forms.HotReload.Reloader.dll!Xamarin.Forms.HotReloader+<>c::b__24_8 0x0

1

65

130,868269600

System.Private.CoreLib.dll!System.Reflection.Assembly.Load(Byte[])

1

66

130,868269600

System.Private.CoreLib.dll!System.Reflection.Assembly.Load(Byte[], Byte[])

1

67

130,868269600

System.Private.CoreLib.dll![COLD] System.AppDomain.CheckLoadByteArraySupported()

1

68

130,868269600

coreclr.dll!IL_Throw

1

and the exception message is:
ExceptionMessage=Assembly.Load(byte[], ...) is not supported in AppX.;
So it looks like System.Private.CoreLib.dll!System.Reflection.Assembly.Load(Byte[]) doesn't work in UWP. Now I need to find a way to capture .net Exceptions in Android.

@MagicAndre1981 well, I will disable code reloading, because it doesn't work

have you ever tested it with Android or only iOS?

tested with android on MAC

tested with android on MAC

real device or emulator? Because run Win10 in a VM I always test real devices, because Android Emulator doesn't support nested VMs. Here I use Adb over Wifi/LAN to connect to a tablet/phone and run the apps

@MagicAndre1981 both

this is really wired. Can you add more debug code so that I can logging in debug window?


Project with path ':detox' could not be found in project ':app'.

What happened?
Gradle build causes following error:
A problem occurred evaluating project ':app'.
> Project with path ':detox' could not be found in project ':app'.

This is very likely due to the proguard exemption:
proguardFile "${project(':detox').projectDir}/proguard-rules-app.pro"

What was the expected behaviour?
Gradle build should complete with success.
Was it tested on latest Detox?

[X] I have tested this issue on the latest Detox release and it still reproduces.

Did your test throw out a timeout?

[ ] I have followed the instructions under Identifying which synchronization mechanism causes us to wait too much.

Help us reproduce this issue!
I have a monorepo project and detox was initially installed on a root node_modules (which made maven path url("$rootDir/../node_modules/detox/Detox-android") invalid). I reconfigured project and now it's in the subproject's node_modules. I cleared Android studio and gradle cache, but it still fails with the error above.
I followed all the steps in Project Setup for both iOS and Android.
In what environment did this happen?
Detox version: 20.0.3
React Native version: 0.66.4
Node version: 16.18.0
Device model: Pixel_XL_API_33
Android version: Tiramisu
Test-runner: jest
Detox logs
Detox logs
paste logs here!

Device logs
Device logs
paste logs here!

More data, please!
No response

Ooh I just looked at documentation for Detox Next version and it has this entry instead:
proguardFile "${rootProject.projectDir}/../node_modules/detox/android/detox/proguard-rules-app.pro"

which makes gradle build successfully!
Probably should be the same for 20.x documentation?

Okay, we'll make sure to refresh the docs. @d4vidi cc

Ooh I just looked at documentation for Detox Next version and it has this entry instead:
proguardFile "${rootProject.projectDir}/../node_modules/detox/android/detox/proguard-rules-app.pro"

which makes gradle build successfully! Probably should be the same for 20.x documentation?

It works 👍🏼


added process.env.NODE_ENV support esbuild

Similar to rollup.config, added support for process.env.NODE_ENV in esbuild config.
// rollup.config.js
processEnv: `export default ${JSON.stringify({
  NODE_ENV: process.env.NODE_ENV,
  ...buildHelpers.getEnvAppVars(dotenv.parsed),
})}`,

Many third-party modules like redux rely on NODE_ENV. Currently, bundling with esbuild throws an error because of NODE_ENV.

@michielvandergeest cla is now signed properly 😄  Can you again have a look?

Hey, @michielvandergeest were you able to have a look?


Reading files only with depthLimit:0 also reads directories.

example:
const files = klawSync(os.homedir()+'/Documents', {nodir: true, depthLimit: 0});
with above line i get the file and directory names. But dir names are just truncated file path in children.
result-> file.txt, dirname, dirname2
directory names are actually pointing to the files in child directories but truncated.
i.e -> dirname/file-in-child.txt

Hey, i confirm i have the same issue.
So to "fix" i use a filter filter({stats}){                     return stats.isFile();                 }

Sorry for the late reply! I've been so busy lately. I'll look into it. In the meantime, any help is welcome!


[Figma Design] Admin Dashboard Page

Your task is:

[x] Design a dashboard page for manager, content included:

Statistics of 3D models by category (this pie chart is reasonable).
Statistics of the top 10 best-selling models.
Statistics on how many models are uploaded in a week/month/quarter.
Statistics on profits earned by week/month/quarter (this is usually a line chart).
Statistics on how many new users and how many users use the system in a month

LGTM


PP-4563 - Updating packages that depended on cryptiles

Because of https://www.npmjs.com/advisories/720
interestingly both modules have just dropped Cryptiles rather than
update to non vulnerable version

This got fixed hours before my first day back after Christmas ☺
https://github.com/pact-foundation/pact-node/issues/132#issuecomment-451042542


Support for building on FreeBSD

Currently there is no way to build EOSIO under FreeBSD machines.

Fixed via PR #1548 but no block.one developers routinely check FreeBSD so may break in future


Release v2.0.0

The aim of this PR is to keep track of all the activities needed to release the new major version of our monitoring module.
TODO:

[x]  Rename files in packages to follow the same convention as the kube-prometheus upstream project
[x] Remove OVH
[x] Remove goldpinger package
[x] Remove metrics-server package
[x] Add images to registry.sighup.io
[x] Add blackbox-exporter package
[x] Add prometheus-adapter package to replace metrics-server
[x] Update alertmanager-operated package
[x] Update grafana package
[x] Update kube-proxy-metrics package
[x] Update kube-state-metrics package
[x] Update node-exporter package
[x] Update prometheus-operated package
[x] Update prometheus-operator package
[x] Update x509-exporter package
[x] Update CI/CD
[x] Update README

Remember to check if the new alertmanager configuration sends the x509 alerts

There are some new namespaces that we should consider:
tigera-operator
calico-system
calico-api
vmware-system-csi

The first 3 are introduced by the Tigera Operator in the Networking module, and the last one is from the VMware CSI Driver for on-prem installations that in the latest versions moved from kube-system to this dedicated namespace.


rustfmt takes way too long to format a long chain of binary operations

Programming along, and suddenly I notice that rustfmt isn't fixing my horrible formatting. I opened up top and found a few rustfmt processes at 100%. I think it's something to do with this bunch of |:
https://github.com/saethlin/tinygui/blob/master/src/window.rs#L23

I think this is a case of exponential blowup. With 20 operands in the chain rustfmt takes ~7 seconds to run, at 21 operands it takes ~15, at 22  it takes ~30, at 23 it takes ~1 minute...

I can confirm, this is gone on the latest nightly. Guess maybe I should just use all nightly tools by default...

Awesome, thank you!


Proposal to evolve transformer architecture

Task to do
Write a proposal and plan to modify the transformer architecture
Reason
We want to balance reliability, reproducibility, and developer ergonomics of the pipeline transformers
Result

A lightweight architecture decision record checked into AgPipeline/computing-pipeline to capture the requirements, reasoning, solution, and implementation plan
ZenHub epic and GitHub issues for the implementation plan

Steps to take

[ ] Summarize and justify requirements for transformers (david starts this) agpipeline/issues-and-projects#152
[ ] Give reasons why current solution doesn't meet all of these = generalize to explanation of our decisions, analysis of trade-offs.
[ ] Write a draft proposal to evolve the current solution so it meets all the requirements

[ ] migrate this to wiki; summarize etc
[ ] dig up other stuff too.
[ ] why dag workflows? (see gist) vs message queue

[ ] Create an iterative plan with steps to implement the proposal
[ ] Get approval from David for proposal and the plan to implement it
[ ] Create epic with issues for the plan

Related proof of concept: https://github.com/AgPipeline/issues-and-projects/issues/132

Is this done? What remains to be done on this other than documenting the notes and creating new issues?

closing, all subtasks complete and >3 years old. no longer relevant to open projects


Support "Accept" header content preference in error page example

I experienced this confusion when testing the 404 example with Backbone.js (which internally uses jquery).
When Backbone calls $.getJSON, the Accept header is set to application/json, text/javascript, */*; q=0.01.  However, an HTML response is returned rather than a JSON response.
To prevent confusion for others it would be preferable to use the array argument type, which will  select the best match for media type, properly returning a JSON response if application/json is first in the "Accept" request-header list.

Yep, makes sense. This or even just using the res.format() function.

Ah I was not aware of the res.format() function.  I agree this is much cleaner and easier to understand.  I've updated and re-tested


[#86b0cncd1] removed internal_id from the ExecutionEngine model

Task linked: CU-86b0cncd1 Client Model requires internal_id and errors out


Intermittent JavaScript Unit Test Failures

Task Description

Sometimes the JS unit tests fail after some time with the following error:
TypeError: Cannot read properties of null (reading 'createEvent')
    at Object.invokeGuardedCallbackDev (/home/runner/work/web-stories-wp/web-stories-wp/node_modules/react-dom/cjs/react-dom.development.js:3905:26)
    at invokeGuardedCallback (/home/runner/work/web-stories-wp/web-stories-wp/node_modules/react-dom/cjs/react-dom.development.js:4056:31)
    at flushPassiveEffectsImpl (/home/runner/work/web-stories-wp/web-stories-wp/node_modules/react-dom/cjs/react-dom.development.js:23543:11)
    at unstable_runWithPriority (/home/runner/work/web-stories-wp/web-stories-wp/node_modules/scheduler/cjs/scheduler.development.js:468:12)
    at runWithPriority$1 (/home/runner/work/web-stories-wp/web-stories-wp/node_modules/react-dom/cjs/react-dom.development.js:11276:10)
    at flushPassiveEffects (/home/runner/work/web-stories-wp/web-stories-wp/node_modules/react-dom/cjs/react-dom.development.js:23447:14)
    at Object.<anonymous>.flushWork (/home/runner/work/web-stories-wp/web-stories-wp/node_modules/react-dom/cjs/react-dom-test-utils.development.js:992:10)
    at Immediate.<anonymous> (/home/runner/work/web-stories-wp/web-stories-wp/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1003:11)
    at processImmediate (node:internal/timers:464:21)

Example run:
https://github.com/google/web-stories-wp/runs/3868035090?check_suite_focus=true
A quick Google search suggests that this might be due to some unmocked API call or missing await on some assertion

Feels like this has been happening less often recently.


Change Invalid feedback line-height (with small-font-size)

Related issues
Closes #1588
Description
Use line-height-sm for invalid-feedback with small-font-size.
Motivation & Context
The .invalid-feedback redefined the font-size without redefining line-height.
Types of change

Bug fix (non-breaking which fixes an issues)

Live previews

https://deploy-preview-1638--boosted.netlify.app/

Checklist

[x] I have read the contributing guidelines
[x] My code follows the code style of the project (using npm run lint)
[ ] My change introduces changes to the documentation
[ ] My change introduces changes to the migration guide
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] All new and existing tests passed

Haven't reviewed the PR but if a new var is created, it must be mentioned in the migration guide


DNN ImageHandler is broken in 9.8.0

Description of bug
Having clean DNN 9.8.0 install, and the only thing that worked with DNN ImageHandler is profilepic mode. Other modes including securefile, file, placeholder produce 403 - Forbidden: Access is denied HTTP errors, but no errors in the log.
Steps to reproduce

Add the following code to Text/HTML module instance (update the fileid if necessary):

securefile:

file:

placeholder:

profilepic:

See error.

Current behavior
Generated images (except one for profile picture) are not displayed.
Expected behavior
All kinds of generated images are displayed.
Screenshots
From DNN 9.8.0:

From DNN 8.0.4:

Error information
There is no corresponding errors in the site logs.

Affected version

[x] 09.08.00 latest supported release

Affected browser
Checked with three different browsers:

[x] Firefox
[x] Chromium
[x] Opera

This was introduced by #4185 (f2c61004fc683ccc4446cae0b2892f71685cd501), which added a permissions check for profile images, but that permissions check is also being applied to non-profile images.


[pull-request:create] Allow to define choices in PR table

Q
A

Branch
master

Bug fix?
no

New feature?
yes

BC breaks?
no

Deprecations?
no

Tests pass?
yes

Fixed tickets

License
MIT

Doc PR

TODO:
- [ ] Improve tests, mainly the logic related to validator.

I think it's easier to mark a question as a choice/confirm, and also making it possible to configure this on the pr-template configuration.
table-pr:
    branch: ['Branch', master]
    bug_fix: ['Bug fix?', no, confirm]
    new_feature: ['New feature?', no, confirm]
    bc_breaks: ['BC breaks?', no, confirm]
    deprecations: ['Deprecations?', no, confirm]
    tests_pass: ['Tests pass?', no, confirm]
    fixed_tickets: ['Fixed tickets', '']
    license: ['License', MIT, ['MIT', 'BSD-3']]

I prefer to left the validation stuff to another PR. Please share any thoughts about the proposed choice syntax. Any comment is welcome.

@phansys just a note, glad that you did not change the behavior because i actually like that you can just type 'n' and not the full no word.


runtume error

----> 8 white_clip = clip1.fl_image(process_image)
Name error.
I guess this line have a problem "clip1 = VideoFileClip("test_videos/solidWhiteRight.mp4")"
it was look like not finding solidWhileRight.mp4.
what is the solution about this complie error . not found solidWhiteRight.mp4
Thanks

Though we are a little late to respond, You can visit this thread for the issue you are facing. Still, if this couldn't resolve the issue, we encourage such user-specific issues to be raised on the Knowledge hub so that our experienced mentors can chime in and new students can also learn from the discussion thread.
Thank you


findByIds literally not a thing ???

Please read the instructions linked below before opening an issue.
https://vincit.github.io/objection.js/guide/contributing.html#issues

my bad. Please delete thanks!


Change endpoint invoker to RequestDelegate

Fixes https://github.com/aspnet/Routing/issues/677
Yay or nay? Can anyone think of a real-world use for the next delegate with an endpoint?

Replaced by https://github.com/aspnet/Routing/pull/712


Private name generated weak map/set should be marked as pure

Describe the bug
So compressor could remove them
Input code
class A {
    #b = 123
}

Config
No response
Playground link
https://play.swc.rs/?version=1.2.144&code=H4sIAAAAAAAAA0vOSSwuVnBUqOZSAALlJAVbBUMjY65aAMgGJ8gYAAAA&config=H4sIAAAAAAAAA21TQZLjIAz8C%2BccdvYwhzxgq%2BawtU%2BgCAiHrAGXJDJxpfL3FbaD7WRvqOkWUkvc1YWsOt7VYJAA64nGxOamjgpsNGQxDKwOQhPIm57goAYMV8Pwlf6cLmBZHRkLPA6KDXbAVUk%2Ff3x8iqrPmaDpYkjBj%2FUNm%2BOAQFTPIioRElPjGcT8TXPagzrl3INJb7E2pENi6ABXqc19bwYCfTXYFPU1g4Fy2kGFwekB87CVJxc45CRhAx0Yp212ayMuoPQdrrAhSR4hJZLi9qCDU%2Bm66u38NFxNX8S%2BFt8mK%2BTRpjvnQKx9SfQCLdXOwhmaG11YwWsELpienEsOaefFXwCpszdEycRN%2FRPuZRZ7pv8PKyQvg%2BSxoTLltaoEnTSnQ%2FCtw1o1IAdoJARXLNQO7Zp8AXcNUXCgwXuxu4npO7A9b6ricYDs273YZvw6hDnUz6Xao3UP3sBfUhZv57Hg0fD5FaMxnnL%2FliICn7N7g8UJzq8gygrfhle0JAfiM7jNRaEaLr8tmtS1XXtUILtSgftkyPQNP9Vj%2FXbPHaHfC3FK9A8VB8qvAgQAAA%3D%3D
Expected behavior
should output empty string
Actual behavior
output new WeakMap()
Version
1.2.144
Additional context
No response

Is it currently possible to add comments for elements with DUMMY_SP?

No, we can't. I'm not sure how can it be implemented without a huge performance drop.
I considered using SyntaxContext for comments, but it means that we have to check for SyntaxContext while generating codes.

Ok I got a idea, which may sounds dirty but could work:
As BytePos is a u32, reserve 232 - 216 for dummy sp, so when generate code, comments can be emitted, and when generate sourcemap, ignore everything larger than 232 - 216

Sounds reasonable.
Hmm...
Wow, I think it's a quite clever solution. Will you do it? I can do it if you want.

Sure, I will do it tomorrow. Could you point to where swc generates source map?

The actual code lives at https://github.com/swc-project/swc/blob/1196cc81554607323ff11bb211e8914886149ac6/crates/swc_common/src/source_map.rs#L1101-L1199


Duplicate token sets across themes.

When i add to a theme i want to be able to duplicate those styles across theme from within the plugin.
the specific example im working through is states. I would love to duplicate the naming convention and change the values in other themes.

Bit confused by the term usage here, do you want to duplicate a Token set (the thing on the left of the plugin) to somewhere else? Or are you referring to individual tokens here?

Ah so sorry!
If I have a group of tokens like a primary color ramp I would like to right click on primary within one theme and move it to another.
I'm currently doing this with the Jason editor and copy and pasting (since we are in testing phase for this tool and our theme structure is evolving over time)
I imagine something like
Right click on group name, options (rename, copy, move, duplicate, ect)
I imagine duplicate asking if I want to duplicate this across themes. (Instead of the current workflow that is copy and paste across themes)

"I imagine duplicate asking if I want to duplicate this across themes. (Instead of the current workflow that is copy and paste across themes)"
That would be gold. Please add it asap!
Great need for a Pro users

We'll work on this for the January release.


Can a function key be assigned to the "Edit" link?

This is a very helpful little plugin, thanks for that.
I was wondering if it would be possible to assign a short cut key to the "Edit" link in the notification bar?  It's easier to press a few keys than hitting a small link in the upper right of the IDE (at least for me).

Thank you.  Sounds like what I was looking for, and it is already available as an update :)


Caching of external api calls from within SvelteKit

Describe the problem
The following situation:
On my new personal website, I wanted to call the dev.to api to show the links in the blog section.
I made it work by adding an json endpoint and including it in the SSR.
The problem I see is that with every request to /blog the dev.to api will be called again (with a lot of traffic the might block me).
So if I could cache the response for about 1 hour, I could drastically reduce the api calls even when a lot of traffic hits.
As far as I understand it cloudflare has some functionallity like that.

Cloudflare docs

Vercel docs

Describe the proposed solution
I would be nice to have something similar to cloudflare, where we use cache controll on the request/response.
Alternatives considered
No response
Importance
nice to have
Additional Information
No response

I know that other SSG projects have this and it's wonderful, the one I'm specifically speaking of is 11ty / eleventy - Quick Tip #009—Cache Data Requests

You have a variety of options, depending on exactly what behaviour you want. You can return a cache-control header from your endpoint...
export async function get() {
  const res = await fetch(`https://dev.to/api/articles?username=dreitzner`);

  return {
    headers: {
      'cache-control': 'public, max-age=3600'
    },
    body: {
      articles: await res.json()
    }
  }
}

...or, if you wanted to respect the original cache headers (probably not, since it looks like the dev.to API uses public, no-cache), and you don't need to munge the response in any way, you can just proxy it...
export function get() {
  return fetch(`https://dev.to/api/articles?username=dreitzner`);
}

...or, since the API doesn't need a private key, you could fetch the data in load and use maxage, which will hit the API during SSR but then cache the rendered page, and hit the API directly for client-side navigation rather than going via your endpoint (which will result in more API hits if people navigate between blog posts, but from many IP addresses):
<script context="module">
  export async function load({ fetch }) {
    const res = await fetch(`https://dev.to/api/articles?username=dreitzner`);

    return {
      maxage: 3600,
      props: {
        articles: await res.json()
      }
    };
  }
</script>

Personally I'd probably opt for the first one, since it means you have the opportunity to slim down the response to just the bits you need. Though I'd typically pick a much lower maxage (a few minutes at most, rather than an hour), so that you can handle getting slashdotted (oops, might have just aged myself) while avoiding stale content.

@Rich-Harris thank you for your detailed answer.

it can't be in the load function => there is an api key, that dev.to wants as a header and I want to respect that ;)
as my blog-writing is very limited (full time job and 4 kids) I would go so far as to cache the response 1 day, as it would only augment other data
if I'm not mistaken cache headers will only be honored by the browser and not inside svelte-kit/serverless function, that would result in calling the api once for each user

The approach I would like to see, would be on the platform side with a standard interface/approach inside sveltkit that will be transformed by the adapter.
If I'm not mistaken cloudflare approuches this by adding a parameter (cf) to their fetch options:
const devTo = await fetch(
	'https://dev.to/api/articles?username=dreitzner',
	{
		headers: {
			'api-key': `${import.meta.env.VITE_DEVTO_API_KEY}`,
		},
		mode: 'cors', // no-cors, *cors, same-origin
		credentials: 'same-origin', // include, *same-origin, omit
		cf: {
			// Always cache this fetch regardless of content type
			// for a max of 60 seconds before revalidating the resource
			cacheTtl: 60,
			cacheEverything: true,
		},
	}
)

This should be cached inside the worker context and the api should not be called until the cache is invalid.
Another good example usecase (from my daily business) would be product data, that updates only once a day.
To call the api again and again would add unnecessary overhead and would slow down the response from the serverless function.
I hope I articulated what I would like to achieve well enough :)
Thanks again

I have a similar issue where I want the server to cache the response, but my server is, well, serverless. So can't use something like keyv as above (at least to my knowledge). I like the idea of something writing out a static file and then all client-side pages access this file, and periodically this file triggers it to be rebuilt. Not sure how to do that, and it's probably out of scope for Sveltekit to handle I guess

I just learned about the "Incremental Static Regeneration" ergonomics in Next.js and they truly are on the next level.
You just return revalidate: 30 from your getStaticProps and if a request hits the cache after 30 seconds, the route will be regenerated in the background and only if that succeeds the newly generated route is shown... If you want to do this on demand, you can omit revalidate in get static props and use endpoints as webhooks to revalidate programmatically after you change something inside your cms... 🤯
This honestly blows my mind and I wonder if something like this would be possible to implement for svelte kit as well?

3. if I'm not mistaken cache headers will only be honored by the browser and not inside svelte-kit/serverless function, that would result in calling the api once for each user

It depends. Cache-Control: max-age=3600 will be respected by browsers, but Cache-Control: public, max-age=3600 will be respected by CDNs as well — in other words, if you have a CDN in front of your app, then only the first request in a ten minute window should hit the origin server. (Subsequent requests will have an additional Age header, so that a response served 7 minutes into the window will only be cached by the browser for the remaining 3 minutes.)

I like the idea of something writing out a static file and then all client-side pages access this file, and periodically this file gets rebuilt as data changes/goes stale.

I just learned about the "Incremental Static Regeneration" ergonomics in Next.js and they truly are on the next level.

Yes, we definitely want to adopt ISR (particularly on-demand ISR, where revalidation is triggered by a webhook notifying of a change, rather than requests). It's something we hope to implement after 1.0

Going to close this as I don't think there's much we can or should do, short of #661, beyond the existing ability to set cache-control headers. Though I will note that it ought to be possible to do fetch(url, { cf }) in endpoints in the Cloudflare Workers context, since we're just using the platform-provided fetch implementation.

I'm dynamically generating images as well as json data and I've tried setting Cache-Control: public, max-age={maxAge} but I'm noticing in all responses an absence of the CF-Cache-Status header. I'm serving from a custom domain so I would expect to be hitting the Cloudflare CDN cache. I've used workers external to svelte or the site functionality so I know how it's supposed to work so I'm a little lost on what's going on and why resources returned with a Cache-Control: public, max-age={maxAge} header aren't being caught by the cf origin cache.
Here's an example image resource served on a custom domain with the Cache-Control header set.
https://smol.xyz/glyphs/585a3c0c05f9ea1dc037b0726f151e6bc375a1714097444a560147cfa8683624/lrg.png
I would expect to see a CF-Cache-Status header in the response and for it to be HIT after the initial request.

Answering my own question:
You have to implement the CF Worker https://developers.cloudflare.com/workers/runtime-apis/cache/ API per route and then ensure you pass the headers from any retrieved cache response (the piece I was missing) which includes the CF-Cache-Status header.
Would be nice (and maybe possible I just don't know where) to intercept all incoming Worker requests to inspect it for a cache key. I tried the hooks handler method but it doesn't have access to the caches variable, which I think makes sense if I understand when and where the handler method fires

For anyone curious stumbling upon this in the future. First "Hi!" 👋
Next here's some helper methods I'm using to make interacting with the cache across lots of endpoints more sane.
export async function getCache(request, bodyType) {
  const cache = caches.default
  const cacheUrl = new URL(request.url)
  const cacheKey = new Request(cacheUrl.toString(), request)

  const response = await cache.match(cacheKey)

  if (response) return {
    cacheKey,
    cached: {
      body: await response[bodyType]().then(Buffer.from),
      headers: response.headers
    }
  }

  return { cacheKey }
}

export function setCache({
  context,
  key,
  body,
  headers
}) {
  const cache = caches.default

  context.waitUntil(cache.put(key, new Response(body, { headers })))
}

Then use it something to the tune of
const { cacheKey, cached } = await getCache(request, 'arrayBuffer')

if (cached) {
  body = cached.body
  headers = cached.headers
}

else {
  const { context } = platform

  // create your body

  headers = {
    'Content-Type': mimeType,
    'Content-Length': body.length,
    'Access-Control-Allow-Origin': '*',
    'Cache-Control': `public, max-age=${maxAge}`
  }

  setCache({
    context,
    key: cacheKey,
    body,
    headers,
  })
}

You have a variety of options, depending on exactly what behaviour you want. You can return a cache-control header from your endpoint...
export async function get() {
  const res = await fetch(`https://dev.to/api/articles?username=dreitzner`);

  return {
    headers: {
      'cache-control': 'public, max-age=3600'
    },

I have added this cache-control header to my page's index.ts endpoint, but I can't see that it is having any effect. My site is hosted on Vercel and the response headers say:
cache-control: public, max-age=0, must-revalidate
x-vercel-cache: MISS
If I go to /page/__data.json it returns the correct "public, max-age=3600" cache headers. But visiting /page/ directly does not seem to trigger the cache.
Visiting the __data.json returns a response within 50ms so the cache is working for the actual endpoint. But visiting the page itself is several hundred ms, which is consisent with a completely uncached page.
Is there some other recommended way to cache pages/routes that are rendered with data from endpoints with the same name?
As in:
/page/index.ts -- fetches data and returns it as props
/page/index.svelte -- the page

For those that stumble upon this issue.
I was doing Cache-Control instead of cache-control. Wasted a good hour on that.
Cheers!

@multiplehats bro anyone that says they haven't been there is straight lying through their teeth...my fav is when it's something you've done before, wanna beat myself senseless with a frozen tuna lol.

@multiplehats @blujedis Aren't HTTP Headers case-insensitive, what's the difference?

@multiplehats @blujedis Aren't HTTP Headers case-insensitive, what's the difference?

Thought so too. But that happened to solve it for me at the time. This is a long time ago though.


Clojure: allowed unicode characters highlighted as errors

In Clojure it is possible to create symbols containing unicode word-class characters, e.g.:
(rok-przestępny? 2000)

Here: Polish letter 'eogonek' (latin small letter E with ogonek) causes this character to be marked as error.

Please report the upstream project: https://bitbucket.org/birkenfeld/pygments-main
This gem is just a binding to it.


Typo when finishing Wintertodt (both OSB and BSO)

After finishing Wintertodt, the @tag isnt followed by a comma. All other activities are

resolved


Vector: add index_type alias

Hello,
I'm trying my hand at fixing some assorted bugs in Vc.
Fixes #252.

Hi! Thank you for your contribution!
I have to say, I am not a fan of this duplicated interface, but at least with your change it is consistent now.


Shadow

hi !
Congrulation for your amazing project !
Will it be possible in a future version of shading manage ?
Currently if a cube hides another cube relative to a spot hidden then the cube is illuminated as if the other cube does not exist ....

I suspect not :( because it is all software rendered it would of course be possible but very, very slow I expect. For advanced shading you are better off using a WebGL library.


problems on firefox mobile

Only on mobile firefox (android), I have the problem, that imagesLoaded with collagePlus does not seem to work right.
The collage is broken and it looks as if the function is fired before all images are loaded. I am not sure if the problem is imagesLoaded or the EventEmitter or eventie. collagePlus works without imagesLoaded, so I think it is perhaps not the problem.
here is my code:
$(document).ready(function() {

    //image loading & percent
    function imgpercent(){
        var imagecount = 0;
        var imagestotal = $('.Image_Wrapper').length;
        $('.Collage').imagesLoaded()
            .progress( function( instance, image ) {
                imagecount++;
                var percent = 100 / imagestotal * imagecount;
                $('#progress').text(Math.floor(percent) + '%');
            })
            .always( function( instance ) {
                collage();
                $('#progress').hide();
            });
    };
    imgpercent();

    //random pics
    $('.randpics').imagesLoaded()
            .always( function( instance ) {
                randcollage();
            });
});

The functions collage and randcollage (they are included before the other code without 'document ready function'):
function collage(){
	$('.Collage').removeWhitespace().collagePlus({
		'targetHeight': 250,
		'allowPartialLastRow' : true
	}).fadeTo('fast',1);
};
function randcollage(){
	$('.randpics').removeWhitespace().collagePlus({
		'targetHeight':100,
		'allowPartialLastRow' : true
	}).fadeTo('fast',1);
};

I only have problems with firefox on android. (here --> https://flavuur.de )
Does somebody have similar problems, or a solution?

Is there a general difference between 'desktop firefox' and firefox mobile, perhaps a different javascript engine ?
I have tried with Windows 8 + firefox and archlinux/gnome + firefox which worked, and android + firefox on a fairphone and android + firefox on a samsung smartphone, which both produced a 'destroyed' image-collage. So I thought, there could be a difference between firefox and firefox for android, but I don't know where. Sorry if this is a bit offtopic.

it seems, that i had another function that called collage() before all images were loaded.
	$(window).bind('resize', function() {
		if($(window).width() != width){
                   //start collage
		}
	});

it should rearrange the photos, when the browser-window is resized, but i think it fired too early, perhaps because of scrollbars (?). I have built this around it, now it seems to work:
$(window).bind('load', function() {
    //rearrange photos
});


Custom Shader Hangs on AssembleDebug

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

Write a custom shader in a .frag file and add it to your app following this vid:
https://www.youtube.com/watch?v=OpcPZdfJbq8&list=PLjxrf2q8roU0WrDTm4tUB430Mja7dQEVP
Run it and see that it works
Start modifying the shader to do what you want it to, running regularly

Expected results
My app runs and the shader paints each time
Actual results
I get stuck in a state where the app hangs on Running Gradle task 'assembleDebug'.... eventually across many attempts to run, it finally works but then shortly later I'm get back into the hanging state.
I also sometimes get the following error from intellij:

Revert changes does not appear to actually change the file.
I've tried:

flutter clean
copying over the file to a new one with a different name
intentionally injecting syntax errors into my shader.
closing and re-opening android studio.
running targeting web instead of android (initially worked, then web got stuck in the same state)

Code sample
Code sample
#version 460 core

#include <flutter/runtime_effect.glsl>

uniform vec2 uSize;
uniform vec4 uColor0;
uniform vec4 uColor1;
uniform vec4 uColor2;
uniform vec4 uColor3;

out vec4 FragColor;

void main()
{
    vec2 pixel = FlutterFragCoord() / uSize;
    FragColor = uColor1;
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
I'm including the log output as a .txt here because the logs were longer than allowed by Github:
flutter_shader_bug_output.txt
The above hangs indefinitely on the last line.
Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.10.1, on Microsoft Windows [Version 10.0.22621.1778], locale en-US)
    • Flutter version 3.10.1 on channel stable at C:\Users\Waffl\Documents\code\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d3d8effc68 (10 days ago), 2023-05-16 17:59:05 -0700
    • Engine revision b4fb11214d
    • Dart version 3.0.1
    • DevTools version 2.23.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at C:\Users\Waffl\AppData\Local\Android\sdk
    • Platform android-33, build-tools 32.1.0-rc1
    • Java binary at: C:\Program Files\Android\Android Studio2\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Enterprise 2019 16.11.3)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise
    • Visual Studio Enterprise 2019 version 16.11.31702.278
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)

[√] Android Studio (version 2022.2)
    • Android Studio at C:\Program Files\Android\Android Studio2
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)

[√] IntelliJ IDEA Community Edition (version 2020.2)
    • IntelliJ at C:\Users\Waffl\AppData\Local\JetBrains\IntelliJ IDEA Community Edition 2020.2.2
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 202.8070

[√] VS Code (version 1.77.0)
    • VS Code at C:\Users\Waffl\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (4 available)
    • sdk gphone x86 64 (mobile) • emulator-5554 • android-x64    • Android 13 (API 33) (emulator)
    • Windows (desktop)          • windows       • windows-x64    • Microsoft Windows [Version 10.0.22621.1778]
    • Chrome (web)               • chrome        • web-javascript • Google Chrome 113.0.5672.127
    • Edge (web)                 • edge          • web-javascript • Microsoft Edge 113.0.1774.50

[√] Network resources
    • All expected network resources are available.

• No issues found!

Okay I now have a more consistent repro. I switched to targeting windows and:

ran flutter with the sample code above. Everything worked as expected.
made minor edits such as changing the output color and used hot restart. Still working.
Switched to the shader code I actually want. Flutter run hangs.
Reverted to the original code. Flutter run still hangs.

Here is the code of death:
#version 460 core

#include <flutter/runtime_effect.glsl>

uniform vec2 uSize;
uniform vec4 uColor0;
uniform vec4 uColor1;
uniform vec4 uColor2;
uniform vec4 uColor3;

out vec4 FragColor;

void main()
{
    vec2 pixel = FlutterFragCoord() / uSize;
    //FragColor = uColor0;
    FragColor = color_from_coon_surface(vec2(0.0, 0.0), vec2(1.0, 0.0), vec2(1.0, 1.0), vec2(0.0, 1.0), uColor0, uColor1, uColor2, uColor3, pixel.x, pixel.y);
}

vec4 color_from_coon_surface(
vec2 p0,
vec2 p2,
vec2 p3,
vec2 p4,
vec4 color0,
vec4 color1,
vec4 color2,
vec4 color3,
float u,
float v
) {
    vec4 colorC1 = mix(surface.color0, surface.color1, u);
    vec4 colorC2 = mix(surface.color3, surface.color2, u);
    return mix(colorC1, colorC2, 1 - v);
}

I presume there's some sort of error in it that is getting swallowed and somehow breaking the build state?

FWIW, I get actual errors on linux, which can be fixed by

declaring color_from_coon_surface before its usage
don't use nonexistent surface

Compilation to SkSL failed.
/path/shader.frag: GLSL to SPIRV failed; Compilation error. 25 error(s) and 0 warning(s).
/path/shader.frag:17: error: 'color_from_coon_surface' : no matching overloaded function found
/path/shader.frag:17: error: 'assign' :  cannot convert from ' const float' to ' out 4-component vector of float'
/path/shader.frag:32: error: 'surface' : undeclared identifier
/path/shader.frag:32: error: 'color0' : vector swizzle too long

/path/shader.frag:32: error: 'color0' : unknown swizzle selection
/path/shader.frag:32: error: 'color1' : vector swizzle too long

/path/shader.frag:32: error: 'color1' : unknown swizzle selection
/path/shader.frag:32: error: '=' :  cannot convert from ' global float' to ' temp 4-component vector of float'
/path/shader.frag:33: error: 'color3' : vector swizzle too long

/path/shader.frag:33: error: 'color3' : unknown swizzle selection
/path/shader.frag:33: error: 'color2' : vector swizzle too long

/path/shader.frag:33: error: 'color2' : unknown swizzle selection
/path/shader.frag:33: error: '=' :  cannot convert from ' global float' to ' temp 4-component vector of float'

#version 460 core

#include <flutter/runtime_effect.glsl>

uniform vec2 uSize;
uniform vec4 uColor0;
uniform vec4 uColor1;
uniform vec4 uColor2;
uniform vec4 uColor3;

out vec4 FragColor;
vec4 color_from_coon_surface(
vec2 p0,
vec2 p2,
vec2 p3,
vec2 p4,
vec4 color0,
vec4 color1,
vec4 color2,
vec4 color3,
float u,
float v
) {
    vec4 colorC1 = mix(color0, color1, u);
    vec4 colorC2 = mix(color3, color2, u);
    return mix(colorC1, colorC2, 1 - v);
}

void main()
{
    vec2 pixel = FlutterFragCoord() / uSize;
    //FragColor = uColor0;
    FragColor = color_from_coon_surface(
      vec2(0.0, 0.0), vec2(1.0, 0.0), vec2(1.0, 1.0), vec2(0.0, 1.0),
      uColor0, uColor1, uColor2, uColor3, pixel.x, pixel.y
    );
}

Thanks! I've been chatting with someone in the flutter discord and we've narrowed things down a lot more:

Sometimes when my shader code has errors (like the two above that you pointed out) shader compilation hangs instead of throwing an error message
When it hangs, my IDE (Android Studio) gets out-of-sync with the file on disk so my edits aren't actually writing to disk after that point
Android Studio and/or shader compilation (not sure which is doing it) generates my_shader.frag~, my_shader_2.frag~... files that, as far as I can tell, contain the first hanging version of the file
Deleting these files and then vim editing the correct file sometimes seems to break things out of the hanging loop

@caseycrogers I also face the similar issue as @miDeb mentioned above, but even when using the proper code, there is only white screen on my device (I'm checking this on Android) and I don't get stuck at assembleDebug.
For other side issues, maybe your host machine's memory is low, please check it from Task Manager to see if it's high-load or something else.

I think you must put your shaders.frag in the lib folder, not in assets..

Hi @huycozy, I am also seeing this issue. I'm only using half of my system memory (32GB), so it's not an out of memory issue.
I'm developing a desktop application on Windows 11 with Visual Studio Code.
Here are my reproduction steps:

Clone the Flutter samples repository
Open the simple_shader example (code here)
Modify shaders/simple.frag by adding the following line at the start of main():pow(2, 3).toDouble();

Run flutter run

At this point, I expect to see an error indicating that .toDouble() is invalid.
Instead, compilation hangs indefinitely. This also leaves two dangling dart.exe processes, one of which seems to have locked the simple.frag file. In order to modify the shader file again, I must kill the current compilation with Ctrl+C, and then use the task manager to kill any remaining dart.exe processes.

Here is my flutter doctor -v output:

Click to open
[√] Flutter (Channel stable, 3.10.5, on Microsoft Windows [Version 10.0.22621.1848], locale en-US)
    • Flutter version 3.10.5 on channel stable at C:\Users\qbgee\Documents\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (3 weeks ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.6.0)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.6.33712.159
    • Windows 10 SDK version 10.0.22000.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] VS Code (version 1.79.2)
    • VS Code at C:\Users\qbgee\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.68.0

[√] Connected device (2 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22621.1848]
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 114.0.1823.67

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 3 categories.

Hi @SecondFlight
I checked the issue with your steps to reproduce but I can see it outputs as expected (error in .toDouble()). It also produces the same error on Android and macOS platforms.

Logs - Windows
Launching lib\main.dart on Windows in debug mode...
main.dart:1
  C:\WIP\ReproduceIssues\samples\simple_shader\shaders\simple.frag:15: error: 'toDouble' : vector swizzle too long
  C:\WIP\ReproduceIssues\samples\simple_shader\shaders\simple.frag:15: error: 'toDouble' : unknown swizzle selection
  C:\WIP\ReproduceIssues\samples\simple_shader\shaders\simple.frag:15: error: 'toDouble' : unknown swizzle selection
  C:\WIP\ReproduceIssues\samples\simple_shader\shaders\simple.frag:15: error: 'toDouble' : unknown swizzle selection
  C:\WIP\ReproduceIssues\samples\simple_shader\shaders\simple.frag:15: error: 'toDouble' : vector swizzle selection out of range
  C:\WIP\ReproduceIssues\samples\simple_shader\shaders\simple.frag:15: error: '' : function call, method, or subroutine call expected
  C:\WIP\ReproduceIssues\samples\simple_shader\shaders\simple.frag:15: error: '' : no matching overloaded function found
  C:\WIP\ReproduceIssues\samples\simple_shader\shaders\simple.frag:15: error: 'toDouble' : vector swizzle too long
  C:\WIP\ReproduceIssues\samples\simple_shader\shaders\simple.frag:15: error: 'toDouble' : unknown swizzle selection
  C:\WIP\ReproduceIssues\samples\simple_shader\shaders\simple.frag:15: error: 'toDouble' : unknown swizzle selection
  C:\WIP\ReproduceIssues\samples\simple_shader\shaders\simple.frag:15: error: 'toDouble' : unknown swizzle selection
  C:\WIP\ReproduceIssues\samples\simple_shader\shaders\simple.frag:15: error: 'toDouble' : vector swizzle selection out of range
  C:\WIP\ReproduceIssues\samples\simple_shader\shaders\simple.frag:15: error: '' : function call, method, or subroutine call expected
  C:\WIP\ReproduceIssues\samples\simple_shader\shaders\simple.frag:15: error: '' : no matching overloaded function found

flutter doctor -v (stable & master)
[√] Flutter (Channel stable, 3.10.5, on Microsoft Windows [Version 10.0.19045.2965], locale en-US)
    • Flutter version 3.10.5 on channel stable at C:\WIP\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (5 days ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\AndroidSDK
    • Platform android-33, build-tools 33.0.0
    • ANDROID_HOME = C:\AndroidSDK
    • Java binary at: C:\Program Files\Android\Android Studio Electric Eel 2022.1.1\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.4)
    • Visual Studio at D:\DOWNLOADWORK\VS2022
    • Visual Studio Community 2022 version 17.4.33213.308
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)

[√] Android Studio (version 2022.1)
    • Android Studio at C:\Program Files\Android\Android Studio Electric Eel 2022.1.1
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[√] VS Code (version 1.79.0)
    • VS Code at C:\Users\ADMIN\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.66.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19045.2965]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 114.0.5735.134
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 113.0.1774.42

[√] Network resources
    • All expected network resources are available.

• No issues found!

[!] Flutter (Channel master, 3.12.0-4.0.pre.121, on Microsoft Windows [Version 10.0.19045.3086], locale en-US)
    • Flutter version 3.12.0-4.0.pre.121 on channel master at C:\WIP\flutter_master
    ! Warning: `flutter` on your path resolves to C:\WIP\flutter\bin\flutter, which is not inside your current Flutter
      SDK checkout at C:\WIP\flutter_master. Consider adding C:\WIP\flutter_master\bin to the front of your path.
    ! Warning: `dart` on your path resolves to C:\WIP\flutter\bin\dart, which is not inside your current Flutter SDK
      checkout at C:\WIP\flutter_master. Consider adding C:\WIP\flutter_master\bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5182697c0d (2 hours ago), 2023-06-19 21:37:33 -0400
    • Engine revision a91bb3f566
    • Dart version 3.1.0 (build 3.1.0-230.0.dev)
    • DevTools version 2.24.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly
      to perform update checks and upgrades.

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\AndroidSDK
    • Platform android-33, build-tools 33.0.0
    • ANDROID_HOME = C:\AndroidSDK
    • Java binary at: C:\Program Files\Android\Android Studio Electric Eel 2022.1.1\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.4.4)
    • Visual Studio at D:\DOWNLOADWORK\VS2022
    • Visual Studio Community 2022 version 17.4.33213.308
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)

[√] Android Studio (version 2022.1)
    • Android Studio at C:\Program Files\Android\Android Studio Electric Eel 2022.1.1
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[√] VS Code (version 1.79.2)
    • VS Code at C:\Users\ADMIN\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.66.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19045.3086]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 114.0.5735.134
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 113.0.1774.42

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.


Full redo of #170 (my first attempt at improving logic)

but accomplished in less commits so changes are easier to see
pretty much https://github.com/anudeepND/whitelist/pull/170#issuecomment-687565149
If no changes

If user added and if left behind from previous script version and if new added

@anudeepND If you choose to merge this after testing you'll have to change line 72 & 73 of whitelist.py to your master again
whitelist_remote_url = 'https://raw.githubusercontent.com/anudeepND/whitelist/master/domains/whitelist.txt'
remote_sql_url = 'https://raw.githubusercontent.com/anudeepND/whitelist/master/scripts/domains.sql'

I only changed so it could be proved to work other places while testing, since domains.sql also changed some

@mwoolweaver Thanks for the PR. Merging


add sample template

Signed-off-by: Hiroshi Miura<EMAIL_ADDRESS>

We have been discussing shipping templates for Pinax apps for quite some time and we have decided (but not announced yet) that we should really add them to pinax-theme-bootstrap or any other theme that comes along. Bundling templates with reusable apps is tricky because it couples the templates with a particular frontend framework (e.g. Bootstrap).

Changes Unknown when pulling d7f79461f385a61557b6c74e07954c35713a3303 on miurahr:add-sample-templates into ** on pinax:master**.


AssertionError: Default process group is not initialized

I only have a single GPU, so  i use 'pods_train --num-gpus 1' to train the model. Here is the Error i'm getting:
ERROR [08/06 03:03:31 pods.engine.trainer]: Exception during training:
Traceback (most recent call last):
File "/home/BorderDet/cvpods/engine/trainer.py", line 90, in train
self.run_step()
File "/home/BorderDet/cvpods/engine/trainer.py", line 194, in run_step
loss_dict = self.model(data)
File "/home/sdb/anaconda2/envs/mmdet/lib/python3.6/site-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/home/BorderDet/cvpods/modeling/meta_arch/borderdet.py", line 167, in forward
bd_box_delta,
File "/home/BorderDet/cvpods/modeling/meta_arch/borderdet.py", line 234, in losses
dist.all_reduce(num_foreground)
File "/home/sdb/anaconda2/envs/mmdet/lib/python3.6/site-packages/torch/distributed/distributed_c10d.py", line 897, in all_reduce
_check_default_pg()
File "/home/sdb/anaconda2/envs/mmdet/lib/python3.6/site-packages/torch/distributed/distributed_c10d.py", line 187, in _check_default_pg
"Default process group is not initialized"
AssertionError: Default process group is not initialized
[08/06 03:03:31 pods.engine.hooks]: Total training time: 0:00:00 (0:00:00 on hooks)

The issue is solved. If you have only a single GPU, you need to comment out all the codes containing 'dist' in cvpods/modeling/meta_arch/borderdet.py


Past commit change altered code inconsistently

Looking at the commits of the last few weeks and I run into this: https://github.com/konstruktoid/ansible-role-hardening/commit/ded07017d673eaa9842f9e82c8c92f68749e56fd#diff-e859dde9a1e131eb9dd0766f31c9a43e88a3818ca8b4f882faf98a8729b5d9d7
In tasks/aide.yml.
The old code looks like this, on line 165:
when: ansible_os_family == "RedHat" and not rhelaidedbnew.stat.exists

And the new code like this:
  when:
    - ansible_os_family == "RedHat"
    - rhelaidedbnew.stat.exists

That's not the same code. The not was removed. What used to be A && !B is now A && B. And there's a few more like that.
Is this intended?

Nope, that's a bug, accidentally wiped that not.

Far as I was able to tell, that commit and the aide role was the only affected

Yeah, I'll go over it all again and fix the aide task.
Thanks for the report @KoenDG


[storage] cookieStorage doesn't work with Solid-Start

Describe the bug
When using cookieStorage with makePersisted, the server console always prints "It seems you attempt to use cookieStorage on the server without having solid-start installed".
Workaround: Copy https://github.com/solidjs-community/solid-primitives/blob/d74956b93850672afcb519d917ca9b08e9457362/packages/storage/src/cookies.ts into my project and convert require("solid-start/server") to a normal top level import.
Minimal Reproduction Link
https://stackblitz.com/edit/github-n4ho5j-u5pz4k?file=src%2Froutes%2Findex.tsx

The code you've shown is executed both on the server and the client - and it seems that the server import for useRequest fails. If you want it to only store cookies on the client in solid-start, you need to import isServer from "solid-js/web" and use
const [value, setValue] = isServer
  ? createSignal("initial")
  : makePersisted(
      createSignal("initial"),
      { name: "value", storage: cookieStorage, storageOptions: { path: "/", maxAge: 60 * 60 * 24 * 7 } }
    );

If you want it to only store cookies on the client in solid-start,

No, I want to read the value on SSR, that's why I used cookieStorage, but it doesn't work.

Understood.

I think I have an idea. It reduces the convenience a bit, but on the other hand makes it far more flexible: I'll accept a requestAccessor (that either returns Request or, like useRequest, { request: Request }) and a cookieSetter as optional options.

https://github.com/solidjs/solid-start/blob/e83271fef5469b4e4e986566f8d07e84388558c9/packages/start/server/ServerContext.tsx#L7-L13
export const useRequest = () => {
  return useContext(ServerContext)!;
};

export const useServerContext = () => {
  throw new Error("useServerContext is deprecated. Use useRequest instead.");
};

I think useServerContext is the old name and no longer be used.

Thanks, the docs are still on the old name. In any case, even though it should work out of the box in other cases than stackblitz, you can use the getRequest option to give useRequest to makePersisted manually and it will no longer rely on the attempted optional import that breaks in stackblitz - after PR  is merged and released.

This should no longer be an issue, since require is called in a try-catch block. You can still supply it in the getRequest option if you actually use the new version from PR#482 (https://github.com/solidjs-community/solid-primitives/blob/92041fd34e6113e9789256a651a0f31859dfa0da/packages/storage/src/cookies.ts):
const [value, setValue] = makePersisted(
      createSignal("initial"),
      {
        name: "value",
        storage: cookieStorage,
        storageOptions: { path: "/", maxAge: 60 * 60 * 24 * 7, getRequest: useRequest }
      }
    );

Yes, I can supply getRequest with the new option. However, the try-catch block will never success, my StackBlitz repro is using Solid-Start template, not Solid, and it doesn't work.

That should not be an issue, even with the try-catch block failing, as the function you supply in getRequest will override the useRequest that could not be loaded.

btw. related issue for using localStorage: https://github.com/solidjs-community/solid-primitives/issues/501


Sharing a db between node and browser

Lets say I generated a db myDb.json using node.js. How would loki support loading that json into a new DB in the browser?

you could ajax request it and use db.loadJSON to load into a new loki db instance.

That works loading the db, but the collections array is empty in the browser. Also worth noting the ENV property is 'NODEJS' in the browser.

It should work as that function is what we use internally when loading from disk...
Are you by chance partitioning?  If your database is under 50 or so megs on the node side, you should be fine with regular LokiFilesystemAdapter and even that is way to big to send as ajax for most purposes...   or would this be a specially controlled upload process of sorts?

It being loaded into the bundle by webpack. Here is the example:
const JSONdb = require('../nycOpenData.json')
const JSONstring = JSON.stringify(JSON);

db.loadJSON(JSONstring);
db.loadDatabase({}, () => {
      console.log(db);
});

nycOpenData.json is about 500k

I think your example has variable name typo where you are calling stringify().
If you are getting an object then call db.loadJSONObject instead.
Here is example deserializing from string.

I don't think that is the problem because only this solution works:
const JSONdb = require('../nycOpenData.json')
db.loadJSONObject(JSONdb);

db.loadDatabase({}, () => {
Object.assign(db.collections, JSONdb.collections);
});

Without Object.assign it has no collection. I'm attaching the actual json (it's a public dataset).
nycOpenData.json.zip

So you shouldn't need to call loadDatabase at all since your loading manually but I cam look at your sample file later today

Yea it works for me in node at least with the following code :
const loki = require("lokijs");
const JSONdb = require('../nycOpenData.json')

// Example showing deserializing from a string
var db = new loki('sandbox.db');

db.loadJSONObject(JSONdb);

db.collections.forEach(function (coll) {
  console.log("coll '" + coll.name + "' has " + coll.data.length + " records.");
});

Wonder if it works for you using that code in the browser? You likely would have to bundle.

I've think I've tried enough varieties to conclude loki is probably working correctly.
You should try the basic successful methods I have posted above and use whatever diagnostic capabilities are available to you to figure out where it stops working for you.  Check sizes of json (possibly by doing a JSON.stringify) and inspect the object collections in that object to see if collections array is empty before passing that object into loadJSONObject.
Let me know if you find anything to suggest otherwise but this seems beyond the scope of loki at this point.


Discussion: Legacy Pond (Legacy control container in XAML) for XAML Desktop

Discussion: Legacy Pond (Legacy control container in XAML) for XAML Desktop
A long-lasting application may have many legacy controls that needs to be hosted inside XAML. Therefore, it would be valuable to create a legacy-in-XAML container, opposite to XAML Island, to allow WinUI to contain them and make these old controls work properly.

Hi @reli-msft - thanks for the suggestion!  We've been talking about the very same thing internally, and it's on our internal backlog already.
At the moment, we're spending pretty much all our time on WinUI 3, so that'll come before this feature - which means this'll be parked on the backlog for a good while.
To help us out, could you describe more about which legacy controls you'd like to host inside XAML, so we can capture your requirements?  My thought at the moment is that we'd make a way to host an HWND to interop with as many legacy technologies as possible - but I could imagine we could build "interop helper libraries" to common technologies - much like how WPF has a way to more easily host Windows Forms controls, which is just a helper/wrapper atop WPF's HwndHost.
Are the legacy controls in your case from WPF?  Windows Forms?  MFC?

We also have similar problem. Right now we have WPF app that uses lot of c++ code through HwndHost control. We are planing to move Wpf app to WinUI and moving Xaml works great without problems, but what about HwnHost, is this going to be possible with WinUI3.

In our case we have a MFC control (yes, that's a very old application).

I am curious about this from WinForms, have an old application I received which I am trying to modernise.
Currently looking at XAML islands. The hardest part is the custom painting (System.Drawing) code.
Also unsure what a good replacement for that would be, since in WinUI there is no Win2D support yet and also no SkiaSharp.

I also would want this. I am using windowless Rich Edit controls to render complex text layouts, but that control will only render into a raw HDC. Without the ability to host a raw WinForms control in the XAML tree that Rich Edit can use, I am forced to use multiple top-level Islands, which I understand is very buggy right now.


$cookie exclusion does not work

Enable Russian filter
Add @@||yandex.$cookie rule to the user filter
Open news.yandex.ru and refresh a few times
You will see that some of the cookies are removed

core/pull-requests/1094


Label creation

Hi @LinxuanHu
We need to create at least 10 labels for our own project.

do you have any suggestion for the labels

yes add labels like: group discussion, high priority, check milestone

So editing former labels is counted as a new label or not?

there are several labels already there when we start, does it count to the 10 labels?

@poojashresthacode I think you need to add new labels.

there were 9 labels, so we need 19 in total?

Are we allowed to create labels other than the maintainer?

only maintainer can do that

So only the maintainer will get two points for this, right?

labels and milestones are shared project points, so i think once your group have created enough labels and milestones, every member in the group will get the same points

Yeah, you are right.

So only the maintainer will get two points for this, right?

It's a shared point. So, everyone gets that point, including the maintainer.


Update galaxy lab iframe URLs

Hey @cat-bro - this updates all galaxy lab URLs to their final resting place, but depends on this PR being merged:
https://github.com/galaxyproject/galaxy_codex/pull/167

Looks good to me. Ping me when it's ready to go (codex bit merged)

Ok good to go @cat-bro


How can I get a PDF version of article published on distill.pub?

How can I get a PDF version of article published on distill.pub?

e.g. this one http://distill.pub/2016/augmented-rnns/#neural-turing-machines

For most purposes, we discourage the use of PDFs because they will no longer be interactive. If you really need one, use your browsers print -> save as pdf option.
Depending on your reason for wanting a pdf, you may be able to use the "archive html" file. This is a single file which contains the entire article and can function completely offline. For example: http://distill.pub/2016/augmented-rnns/index.archive.html


Mention Viewport.render_target_clear_mode property is intended for 2D usage

Targeting 3.2 since it seems this property has moved to the SubViewport class in master.
Making a separate PR for master now.
In response to https://github.com/godotengine/godot/issues/33831

Thanks!


let's encrypt integration

Each cluster will get a wildcards certificate *.xxxxx.lb.rancher.cloud from let's encrypt.
Todo: implement renew logic for certificates.