[BUG] Nvidia_drm.modeset=1 is not properly set, based on nvidia module names in /lib/modules/[your-kernel-version]/updates/dkms

Describe the bug
If nvidia modules in /lib/modules/[your-kernel-version]/updates/dkms are named different than nvidia for example I have (and there will be plenty of people which will have the same name) nvidia-current-drm.ko, nvidia-current-modeset.ko, nvidia-current-peermem.ko, nvidia-current-uvm.ko, nvidia-current.ko, which is basically nvidia-current, instead of nvidia
the nvidia_drm.modeset=1 will not be applied, thus you won't be able login to Wayland session, etc.
To check if nvidia_drm.modeset is loaded, I run:
sudo cat /sys/module/nvidia_drm/parameters/modeset. If the answer is 'Y' it is loaded. If it's 'N', it's not.
To Reproduce
Steps to reproduce the behavior:

Run sudo envycontrol -s nvidia (or sudo envycontrol -s hybrid)
Nvidia_drm is not loaded if you have different nvidia modules names as described earlier.

Expected behavior
Properly load nvidia_drm.
System Information:

Model: Lenovo Legion Y540 17"
Distro: Debian GNU/Linux trixie/sid x86_64
Kernel: 6.5.10-x64v3-xanmod1
DE/WM and Display Manager (if applicable): KDE Plasma
EnvyControl version: 3.3.0
Nvidia driver version: 525.125.06-2
lspci output:

00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 07)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 07)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:14.3 Network controller: Intel Corporation Cannon Lake PCH CNVi WiFi (rev 10)
00:15.0 Serial bus controller: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #0 (rev 10)
00:15.1 Serial bus controller: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #1 (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:17.0 SATA controller: Intel Corporation Cannon Lake Mobile PCH SATA AHCI Controller (rev 10)
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 (rev f0)
00:1d.5 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #14 (rev f0)
00:1e.0 Communication controller: Intel Corporation Cannon Lake PCH Serial IO UART Host Controller (rev 10)
00:1f.0 ISA bridge: Intel Corporation HM470 Chipset LPC/eSPI Controller (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 VGA compatible controller: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] (rev a1)
06:00.0 Non-Volatile memory controller: ADATA Technology Co., Ltd. XPG SX8200 Pro PCIe Gen3x4 M.2 2280 Solid State Drive (rev 03)
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

Additional context
To properly load nvidia_drm, (if you have different nvidia modules names like described earlier, in my case nvidia-current) change line generated by EnvyControl in file located in /etc/modprobe.d/nvidia.conf
from options nvidia-drm modeset=1
to options nvidia-current-drm modeset=1.
After that regenerate your initramfs image by running: sudo update-initramfs -u -k all and reboot. Every time you change mode via EnvyControl, it overrides that file, so you have to repeat that every time you need.

@Klusio19 just checked my Ubuntu 23.10 with Nvidia 535.129.03 install and the kernel module is named nvidia-drm (not sure if this is a Debian specific caveat).
I'm not sure how we can reliably detect the appropriate name if we're into the following situation:
Integrated mode --> Hybrid/Nvidia mode
Since the Nvidia modules are not loaded in this mode.
However I can implement an opt-in CLI flag like --use-nvidia-current.
Let me know what you think.

I found out about the Nvidia modules naming scheme here in the forum: (https://forums.debian.net/viewtopic.php?t=154344), the guy says it's because of DKMS. So I don't think it is Debian-specific, however it doesn't really matter here.
You are correct about the fact that in situations where switching from integrated -> hybrid/Nvidia there is no way to determine what the names of the Nvidia modules are. At the moment I can't think about anything better, than the solution provided by you. I think a simple CLI argument would be enough.
Also if you decide to implement that, a small update in the readme about that situation with Nvidia modules naming scheme would be helpful. But I'm sure you are aware of that 🙂

@Klusio19 please test the new 3.3.1 release

Uppgraded, using the flag works flawlessly, nvidia_drm module is properly loaded now!


Refactoring is in doctests for slow downloads

What does this PR do?
Changes the logic introduced in https://github.com/Lightning-AI/metrics/pull/1505 to an env variable instead.
Additionally, add skipping to rouge metric if download is not available as it sometimes silently halts (and there timeout the tests).

Before submitting

[ ] Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
[ ] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure to update the docs?
[ ] Did you write any new necessary tests?

PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?
Make sure you had fun coding 🙃

Shall we extend timeout for the one ci check?


Added initial tests for the components and fix the failing tests

Added initial tests for the components and fix the failing tests
handledProps is an issue after the typescript PR was merged. There is already TODO for this...
  // TODO(zuko): we need to generated `handledProps`
  const handledProps = Component.propTypes ? Object.keys(Component.propTypes) : []

All tests are passing now.


issue found on: server/auth.go:78:47: commentFormatting

an issue has been detected in source code: ./server/auth.go:78:47: commentFormatting: put a space between // and comment text

This issue has been fixed already.


Extension is not working

VSCode:
Version: 1.44.2
Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd
Date: 2020-04-16T17:50:03.709Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.3.0-42-generic

I'm finding the same issue.  It worked (with issues) when I first loaded the extension but on a restart of VSCode nothing happens.
The issues I allude to are:

All the commands in the right click menu were duplicated - that caused me to finally restart VSC which corrected the menu but nothing works...
Inserting a ToC works but it is all on one line with the word 'auto' inserted where a newline should apprear.  Easy enough to fix with find and replace

could you try to remove the extension then install it again?

@huntertran Sorry, it not work.
I switched this extension to version 3.0.3 and it worked.

I think I found the problem. The Linux file names are case sensitive.
I update the extension to 3.0.8. Please check if it works.
Thanks

I think this problem has existed since version 3.0.4, Because version 3.0.3 works normally, but after switching to version 3.0.4 it does not work.

I found that the version tags of this repository has not been updated since v2.2.2, I suggest that you add a tag every time you release a new version for this extension. so that you can easily use the following link to compare the differences between the two versions.
https://github.com/huntertran/markdown-toc/compare/v3.0.3...v3.0.4

I found that the version tags of this repository has not been updated since v2.2.2, I suggest that you add a tag every time you release a new version for this extension. so that you can easily use the following link to compare the differences between the two versions.
v3.0.3...v3.0.4

haha that exactly what I'm doing now

I'm on MacOS, I try to run the command and it fails with the following message and no other information.
Running the contributed command: 'extension.updateMarkdownToc' failed.

which version are you using?

I am on MacOS also.
VSCode 1.46.1
Auto Markdown TOC is v3.0.9.
Seeing same issue. If I type the tag manually:
<!-- TOC -->

<!-- /TOC -->

Then use the context menu to update, the above tag will disappear.

@J-Siu can you share the simplified version of the markdown document? I'm testing on version 3.0.9 of the extension. As soon as I pasted the tags, the TOC appeared as expected

@huntertran
I installed 3.0.10 and same result. My README.md is in repo: https://github.com/J-Siu/hugo-theme-sk3
Seems I found the cause from .md side. Issue happen if md file don't have L1 heading(#). You can try with following:
## t21
## t22
## t23
### t31
## t24

It will work after adding a fake L1 heading:
# t

But that is annoying.

@J-Siu please try again with version 3.0.11

@huntertran yes 3.0.11 is working!


ENH: improve performance of pycompare.find_matched_paths

[CHANGED] move type conversion out of the loop!

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

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.008%) to 92.104%

Totals

Change from base Build<PHONE_NUMBER>0:
0.008%

Covered Lines:
33198

Relevant Lines:
36044

💛  - Coveralls


Webview is very laggy during scroll and click actions

Bug description:
Webview is very laggy during scroll and click actions
Environment:

OS:
OS version:
react-native version: 0.72.4
react-native-webview version:13.6.0

This is not actionable. Where are you seeing this? Do you have a sample project to share?

Found the issue.
It was the from the following warning
tried to use permissions api while not attached to an activity
When I removed unwanted permission (Bluetooth admin & connect) from the app webview is smooth.


Add new functions for loading Manta SV from individual files instead of merges

Pull Request Checklists
Important: When opening a pull request, keep only the applicable checklist and delete all other sections.
Checklist for all PRs
Required

[ ] I tested the new code for my use case (please provide a reproducible example of how you tested the new functionality)

[ ] I ensured all dplyr functions that commonly conflict with other packages are fully qualified.

This can be checked and addressed by running check_functions.pl and responding to the prompts. Test your code after you do this.

[ ] I generated the documentation and checked for errors relating to the new function (e.g. devtools::document()) and added NAMESPACE and all other modified files in the root directory and under man.

Optional but preferred with PRs

[ ] I updated and/or successfully knitted a vignette that relies on the modified code (which ones?)

Checklist for New Functions
Required

[ ] I documented my function using ROxygen style.)

[ ] All parameters for the function are described in the documentation and the function has a decriptive title.

Example:
#' Use GISTIC2.0 scores output to reproduce maftools::chromoplot with more flexibility
#'
#' @param scores output file scores.gistic from the run of GISTIC2.0
#' @param genes_to_label optional. Provide a data frame of genes to label (if mutated). The first 3 columns must contain chromosome, start, and end coordinates. Another required column must contain gene names and be named `gene`. (truncated for example)
#' @param cutoff optional. Used to determine which regions to color as aberrant. Must be float in the range [0-1]. (truncated for example)

[ ] My function uses a library that isn't already a dependency of GAMBLR and I made the package aware of this dependency using the function documentation import statment.

Example:
#' @return nothing
#' @export
#' @import tidyverse ggrepel

Checklist for changes to existing code

[ ] I added/removed arguments to a function and updated documentation for all changed/new arguments

[ ] I tested the new code for compatability with existing functionality in the Master branch (please provide a reprex of how you tested the original functionality)

Is this a draft that you will update or someone should pick it up and complete? Seems like some functions are work in progress, not sure if this is ready for review

If the SV functionality was merged in PR #148 , is this PR in the works, or will transform into something else? Just wondering if this should be open, converted into a draft, or closed?

I think this was rolled into Adam's PR already

I think this PR should go into master, The PR I started with the new manta SV functions did not have the other updates added to this PR.

I looked over the changes, I think yes not all edits were used in the earlier PR. There are some edits for the new colors and handling of the remote functionality. I think yes it needs to be merged and needs to go to master


update available

it says there is an update. how I can update it?

Some individuals are using this technology for blackmail and scamming purposes. We need to investigate this issue thoroughly. Soon, we will be able to address it effectively.


[FEATURE] Select text and add hotkey OR add a command to automatically convert current selection to text

Description of the Problem
It's annoying to have to manually add text and have to fix the bracket placement, such as when I have Student(x) and I want "Student" to be in plaintext. If I wanted to fix it after typing "Student", I'd have to type the shortcut for /text{}, and then delete the last bracket and add it to the end of "Student".
Description of the Solution
I would like to have the option to be able to highlight the text and type a shortcut like "T" to automatically convert the current selection to text, like the visual snippets.
Alternatively, you could add it to the command palette like you did for \boxed
Additional

N/A

N/A

Hello,
How is your proposal different from the visual snippets?

I didn't see anything in the README about any snippets that give selected text the \text tag. Is there something I missed?

You can define a visual snippet to accomplish that. Try adding the following line to your snippets and see if it does the trick:
{ trigger: "T", replacement: "\\text{ ${VISUAL} }", options: "mA" },

Oh! That worked! Thank you!


Fix lifecycle order issue

Purpose

Describe the problems, issues, or needs driving this feature/fix and include links to related issues.

Fixes #
Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, releated PRs, TODO items or any other notes related to the PR.

Check List

[x] Read the Contributing Guide
[ ] Required Balo version update
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

Merging #16120 into jballerina will increase coverage by 0.01%.
The diff coverage is 0%.

@@               Coverage Diff                @@
##             jballerina   #16120      +/-   ##
================================================
+ Coverage          10.6%   10.61%   +0.01%
- Complexity         2451     2452       +1
================================================
  Files              1466     1466
  Lines             70587    70520      -67
  Branches           8409     8392      -17
================================================
+ Hits               7483     7489       +6
+ Misses            62453    62381      -72
+ Partials            651      650       -1

Impacted Files
Coverage Δ
Complexity Δ

...ballerinalang/compiler/desugar/ServiceDesugar.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...lang/compiler/semantics/analyzer/CodeAnalyzer.java
0% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...llerinalang/compiler/semantics/analyzer/Types.java
0% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...allerinalang/net/grpc/ServerServiceDefinition.java
59.18% <0%> (+2.04%)
4% <0%> (+1%)
:arrow_up:

...a/org/ballerinalang/net/grpc/ServicesRegistry.java
89.47% <0%> (+26.31%)
1% <0%> (ø)
:arrow_down:

Continue to review full report at Codecov.

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


Issue with custom routes rendering on client-side

Hello everyone,
I'm running into the following issue:

When I navigate to a given route, /projects/foo (server-side rendering) I get the page displayed without issues.

When I navigate to a given route, /projects/bar (client-side rendering, from inside the app) a message shows on the page, "An unexpected error has occurred.", and after ~5 seconds, the page reloads correctly and in terminal appears the following message: "Client pings, but there's no entry for page: /projects".

I'm not sure why I'm running into this issue and I'm glad if anyone can help me out...
I've created a sample repo for anyone to reproduce this issue (hopefully or not it will reproduce what I've described above).
https://github.com/joaocrq/nextjs-issue
If it's needed more info, let me know!
Thank you a lot!
cc @timneutkens

This is what I could observe, the error is because you put the wrong

Change <Link href="/projects?name=foo" as="/projects/foo">
To <Link href="/project?name=foo" as="/project/foo">
and server.js
 server.get("/projects/:name", (req, res) => {
return app.render(req, res, "/project", { name: req.params.name });
});
`
to
server.get("/project/:name", (req, res) => {     return app.render(req, res, "/project", { name: req.params.name });   });
Because in pages it is called project.js

@joaocrq  I've been working here let me know if it works

@aranajhonny Thank you very much for your quick reply!
But, I thought that if I declared routes with express it wouldn't matter the filename in pages/, because it was being specified in render method:
app.render(req, res, **"/project"**, { name: req.params.name })

as the method signature suggests:
export async function render (req, res, **pathname**, query, opts) {

in https://github.com/zeit/next.js/blob/master/server/render.js
Or have I misunderstood the meaning of that pathname?
Thanks for your help!

@joaocrq the only thing that has to be changed in this case is this:
<Link href="/project?name=foo" as="/projects/foo">
In this case:

/project is the filename in pages
?name=foo is the query parameter (this is parsed server side by your custom server, but you have to provide them manually client side)
as is the path in sync with your custom server.

To answer your question about pathname, in Next.js we don't have a way to know /projects/foo is actually /project?name=foo on the server. This is the reason you have to provide it manually. There are some people in the community that made wrappers for this though. Have a look at: https://github.com/fridays/next-routes


cleanup for ks

PR cleans up the KS example a bit, but somehow the lower resolution variants are not showing great results. @sandreza can you take a look?

The issue was that L=100 is too large for N = 32. Previously the simulations were done with L = 22, which allows for an exploration of "barely resolved" dynamics and "well-resolved" dynamics


Please add back NetStandard support (or UWP support)

It seems 1.6 had removed .NET Standard support. But I want to keep updating SokcetIO.NET library.
Can you add .NET Standard support back to this project ?
Thanks.

Hi, @FatJohn,
As you can see here: https://github.com/dotnet/standard/blob/master/docs/versions.md, current versión (1.3) of NetStandard  project have to work with1.6.
Just for understand in detail your question, Can you provide more detail about what exactly are you doing?  Are you working on UWP projects, Are you tryng to add packaget Nuget to another NetStandard or maybe NetCore Project?, Please, help us acording this way.
In another hand you can check this (unofficial) package: https://github.com/juanluelguerre/SocketIoClientDotNet/tree/master/releases
Thans a lot
Regards
Juanlu

https://github.com/Quobject/SocketIoClientDotNet/issues/145

Tracking @ kerryjiang/WebSocket4Net#131

Hi, @juanluelguerre
Yes I'm using SocketIO.Net in UWP project. Since the newst version is not compatible with UWP. I'm using the previous version for now.
Hi @mattqs,
Thanks, glad to know Net Standard support will be back.


GraphQL mode

I'm aware of graphql/codemirror-graphql nonetheless I think it would make sense to support syntax highlighting for GraphQL out-of-the-box without the need for another package.

We're planning to move to having less languages in the main distribution, in order to reduce maintenance burden. So no, moving external packages in isn't an option.

I see. Will there be some kind of contrib Github organization and a standartized way around using languages?

Yes, but I've been too busy with other stuff to set something up.

@marijnh is it possible we could re-open this? I'm one of the maintainers for codemirror-graphql as of recent. would be nice to ship with support for just syntax highlighting. If it matters, monaco ships with a simple default graphql mode out of the box now. The way we have architected it, the mode is already a standalone module within our package. codemirror-graphql contains a bunch of other code that would be irrelevant. So let me know if you'd still be open to a slim PR?

No, we're not going to add modes anymore. You'll have to distribute it as a separate package.

we already do, with hundreds of thousands of downloads a week on npm, its called codemirror-graphql
all im asking for is a simple syntax mode. the reason is that my employer, a f50 company, is still on bitbucket server which only has your default modes as of bb 3.5. i think i understand why GraphQL cant take precedence over F***script though its used far more, guessing for legacy reasons? will codemirror 6 reset which modes are shipped in their core? monaco has a nice list of no more than 22 that theyve researched carefully if you were curious. they implement syntax support in about 60 lines. our existing syntax mode is only a few lines but thats because we bring in our streaming parser

will codemirror 6 reset which modes are shipped in your core?

Yes. It'll ship 0 modes in the core.


Last row is cut off on Android tablets

Make sure to check the demo app(s) for sample usage
✅
Make sure to check the existing issues in this repository
✅
If the demo apps cannot help and there is no issue for your problem, tell us about it
On android tablets, the last row of the calendar view is cut off.
Which platform(s) does your issue occur on?

Android
Android version: 8.1.0
Android emulator & device: Nexus 9 API 27

Please, provide the following version numbers that your issue occurs with:

CLI:  5.0.2
Cross-platform modules: 5.2.2
Runtime(s):

iOS: 5.1.0
Android: 5.1.0

Please, tell us how to recreate the issue in as much detail as possible.
Open the date picker on an android tablet...

@MCurran16 Please try v1.2.0 and let me know if it resolves this issue. Thanks :)


Conflict with fly package

According to flyjs/fly#45 I was brought into awareness that there exists a conflict between both Flightplan and Fly.
I wouldn't worry just yet, but due to the fact the issue was brought twice over in the Fly HQ, I thought I would bring it up here as well just to spread awareness.
Workarounds on my side

Do nothing.

Symlink bin/index.js to a another name fyl, fl, fy, etc.

Add a script to package.json that symlinks this out of the box so you can do npm run symlink2.

Either Flightplan or Fly could make a concession and change the CLI name. I was able to obtain the fly package in the npm registry so having you first npm i fly and then run Fly with a name other than fly would be amusing at best though :stuck_out_tongue_winking_eye:

After Thoughts
On a different note though. I wonder how challenging it would be to write a Flightplan for Fly or viceversa and starting a collaboration effort between both projects. :fireworks:

I agree with the idea that npm install -g fly and then using fly as the command to launch tasks makes sense. On the other hand flightplan was released in early 2014 and was using fly ever since. Because of the fact that we both seem to be stuck with fly we should collaborate.
A possible solution would be to detect and handle if there's either a flightplan.js or Flyfile.js and execute it no matter which fly command is linked globally. If both files exist we could prompt the user to clarify which file he wants to use. If we do this we could probably create a separate module and get both the ownership for it. From my side this shouldn't be a problem, do you think this is doable?

@pstadler

On the other hand flightplan was released in early 2014...

:sweat_smile: Yes, indeed.

From my side this shouldn't be a problem, do you think this is doable?

Of course.

A possible solution would be to detect and handle if there's either a flightplan.js or Flyfile.js and execute it no matter which fly command is linked globally. If both files exist we could prompt the user to clarify which file he wants to use.

This one solution with a minor speed penalty. Another thing we could do would be to check whether one is already installed (during the first time install or run) and prompt the user to resolve the conflict.
What about local installations? If the user has node_modules/.bin on her $PATH, then it should shadow a global installation correct?
I went ahead and published conflict on npm meanwhile we figure out a viable conflict resolution. I'll add you as an owner there as well.

What about local installations? If the user has node_modules/.bin on her $PATH, then it should shadow a global installation correct?

That's true. But then again if you install both projects locally you'll run into to the same problem. It's a mess.
What's the purpose of the conflict module?

The conflict mode would be a module to help users that present a name conflict like we are now. It's just a tentative name and there still no code.

That's true. But then again if you install both projects locally you'll run into to the same problem. It's a mess.

True. I think we can give this issue low priority, however I would keep it open just to remind me I have to get around it at some point. I don't know how stable things are around here, but dev is still pretty crazy over at Fly and I am getting ready to release a new version soon :smile:

Flightplan is pretty stable. I'm planning to change the API to use orchestrator or a similar approach at some point, but I'm hesitating rewriting bigger parts because of ES6 generators. Interestingly, that's exactly the approach you're taking with Fly which opens quite some possibilites.
I'm even thinking about writing flightplan-next as a Fly module. The fact that this project is not yet very stable is not helping much. How would you write such a module?

Related: https://github.com/npm/npm/issues/7130

@pstadler Please let me say that again in a different way, development over at Fly is "crazy" in the sense that there is a bunch of new features I am currently working on while other folks are working on the plugins factories and other core members work on the website. I really don't expect the API to change significantly or at all, so in that sense it's more or less stable.
I can help you write a Fly plugin, but what is flightplan-next about? I tried searching your repos, but didn't  find anything.

I'm closing this issue for now, if we find a solution it would be great, but I won't push this any further in the near future.


New version: LinwoodCloud.Butterfly version 2.0.0

Pull request has been created with WinGet Releaser v2 :rocket:
Microsoft Reviewers: Open in CodeFlow

@wingetbot waivers Add Validation-Executable-Error


Require Ruby 2.0+

Also test on Ruby 2.2 and 2.3.0

Not sure why travis is sad though

I'm a bit confused on what's going on there.  Time to try to repro that locally. This should have been absolutely trivial.

@sethvargo Running in a container in travis fixed it.

👍

Wanna merge?

Oh - you don't have commit. Let's fix that.


Homepage not showing posts

I am trying to create a new jekyll site with this theme installed as a gem. I went through all the steps in the Getting started guide ("Starting from jekyll new"), but the default Recent articles homepage doesn't seem to pick up the posts in the _posts folder. What can cause this issue, is there any additional configuration necessary?

Hard to say. Please provide a sample repo. Can't troubleshoot without it.

This should be it

This repo isn't for my Minimal Mistakes theme. Please open an issue on that repo.
https://github.com/mmistakes/minimal-mistakes

Ah, my bad, sorry for that. I just created this issue over the correct repo.


Test Issue created at Thu, 25 Nov 2021 15:05:00 GMT

Test issue body  Thu, 25 Nov 2021 15:05:00 GMT

Comment on issue at Thu, 25 Nov 2021 15:05:02 GMT


Color Parameter of New-Chartbar override other color of Bar Chart

Hi,
If I specify colors on New-ChartBar, it overrides other color of Bar chart.
If I set colors on the first New-ChartBar cmdlet, it overrides the other color of other New-ChartBar cmdlet
even though I specify different color.
  New-ChartBar -Name '2022' -Color Violet,YellowGreen -Value 20,130
  New-ChartBar -Name '2023' -Color Blue,Orange -Value 10,140
  New-ChartBarOptions -Type barStacked100Percent

Yes, it doesn't work that way. You can't have different colors on different Bars. 2 values on chart bar means 2 colors only in total.
Colors property was added to fix:

https://github.com/EvotecIT/PSWriteHTML/discussions/362

You still have to use either Legend to provide colors once for both values of a bar, or you could use one per bar which will build up the colors properly.

Okay. I see.
Thank you.


How is the [Bug Report] loading component compatible with ie9, which has no animation effect, or how to customize gif images?

Element UI version
2.10.1
OS/Browsers version
win/ie9
Vue version
2.6.10
Reproduction Link
https://codepen.io/pen
Steps to reproduce

What is Expected?
希望自定义图片路劲，兼容ie9动画效果
What is actually happening?
不兼容ie9，不能自定义除icon外的图片

pr welcomed


Remove deprecated API to connect direct channel

Should use shouldEstablishDirectChannel property instead.

Looks like this broke on travis - https://travis-ci.org/firebase/firebase-ios-sdk/builds/515808414

@ryanwilson I think the PR needs your approval to be merged.


[Match details] Show match graphs, similar to omeda.city match page

This could show gold over time, kills over time, player damage, win probability, kills on map, etc.

Unfortunately the API creator does not plan on exposing the graph data any time soon so I can't accurately create these.


Fix tophat script

Description
see https://github.com/Shopify/webgen/pull/235
This PR updates the tophat script via a create-shopify bump. The main issue this was fixing was caused by the presence of both the react-router and @shopify/react-router packages.

🎩 the 🎩 and it works great. Thanks for the fast turn around.


Wording on readme

I spent a little while trying to debug this gem it kept failing. Turns out it is because exclude_from_localizations is required, although the readme leads one to believe it's optional:
To avoid redundancy, it is possible to exclude files and folders ...
I was adding things one at a time following along with the directions. Might be worth it to add that to the readme.

Fixed on 1.4.0


[now dev] Cant use bcrypt on @next/node

Running Now CLI 15.2.1-canary.0 dev (beta)
End up getting this error, regardless of rebuilds or reinstalls:
Error: The module '/private/var/folders/_5/_7x_3yqn6kx16bd9sbl2k32w0000gn/T/zeit-fun-5c352d6635888/api/src/lib/binding/bcrypt_lib.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (module.js:681:18)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.module.exports.toStr (/private/var/folders/_5/_7x_3yqn6kx16bd9sbl2k32w0000gn/T/zeit-fun-5c352d6635888/api/src/main.ts:316108:18)
    at __webpack_require__ (/private/var/folders/_5/_7x_3yqn6kx16bd9sbl2k32w0000gn/T/zeit-fun-5c352d6635888/api/src/main.ts:22:30)
    at Object.<anonymous> (/private/var/folders/_5/_7x_3yqn6kx16bd9sbl2k32w0000gn/T/zeit-fun-5c352d6635888/api/src/main.ts:64048:16)
    at __webpack_require__ (/private/var/folders/_5/_7x_3yqn6kx16bd9sbl2k32w0000gn/T/zeit-fun-5c352d6635888/api/src/main.ts:22:30)

on Now CLI 15.3.0 dev (beta) same problem...

I was able to get it to work by downgrading node to 8.11.3

Closing because the @now/node builder now uses your system installed version of node, partially to fix this issue. So if you happened to run npm install/yarn before starting up now dev, it will now work as expected.


Could you update the version of dependencies?

The dependencies of this project have updated.Jwt-cpp have some Breaking Changes.Drogon and picojson and so on have updated too.Could you please update a new version that can  use the new version of the dependencies,thank you very much.

您好，您的邮件我已经收到，我将在最短的时间内作出回复，谢谢，祝  万事如意！


htslib: 1.16 -> 1.17

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/samtools/htslib/releases.
meta.description for htslib is: A C library for reading/writing high-throughput sequencing data
meta.homepage for htslib is: http://www.htslib.org/
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.17 with grep in /nix/store/9cpdvglrik8z8q5dqlsd7y8rvqr5w88a-htslib-1.17
found 1.17 in filename of file in /nix/store/9cpdvglrik8z8q5dqlsd7y8rvqr5w88a-htslib-1.17

Rebuild report (if merged into master) (click to expand)

18 total rebuild path(s)

18 package rebuild(s)

First fifty rebuilds by attrpath
angsd
bcftools
deeptools
delly
htslib
mosdepth
nimPackages.hts-nim
octopus-caller
platypus
python310Packages.HTSeq
python310Packages.cnvkit
python310Packages.pysam
python311Packages.HTSeq
python311Packages.cnvkit
python311Packages.pysam
samtools
tebreak
truvari

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/9cpdvglrik8z8q5dqlsd7y8rvqr5w88a-htslib-1.17 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A htslib https://github.com/r-ryantm/nixpkgs/archive/13c4f23a96d58769a9d54807cc11e09de824cf5a.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/9cpdvglrik8z8q5dqlsd7y8rvqr5w88a-htslib-1.17
ls -la /nix/store/9cpdvglrik8z8q5dqlsd7y8rvqr5w88a-htslib-1.17/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package marked as broken and skipped:

truvari

9 packages failed to build:

deeptools
python310Packages.HTSeq
python310Packages.cnvkit
python310Packages.pysam
python311Packages.HTSeq
python311Packages.cnvkit
python311Packages.pysam
samtools
tebreak

7 packages built:

angsd
bcftools
delly
htslib
mosdepth
nimPackages.hts-nim
octopus-caller

Maintainer pings
cc @mimame for testing.

@ofborg build samtools

Related pull requests
pysam: https://github.com/NixOS/nixpkgs/pull/222906

closed by #225865


inter-ui: [duplicate] remove inter-ui

Motivation for this change
This font seems to be a duplicate and outdated version of:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/data/fonts/inter/default.nix
Revamp of whatever disaster happened here: https://github.com/NixOS/nixpkgs/pull/117827
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Please also remove the entry in top-level.nix.

@SuperSandro2000 thanks, just pushed seconds ago

And I missed something else, sorry about that: it also requires an entry in aliases.nix.

@SuperSandro2000 good point!

@SuperSandro2000 let me know if you need anything else


[Utils] Make sure to write the rewritten file in refactor-check-compiles

raw_fd_ostream was defined to be static, presumably so it would live
past the end of the inner switch scope. Define it in main directly to
ensure its destructor is called. Also fix up some other issues, eg. EC
wouldn't have been in scope, and the consumers passed to the
Duplicating stream were never freed.
Rename DuplicatingSourceEditConsumer to
BroadcastingSourceEditConsumer to better describe its purpose.

@swift-ci please test

Yeah, I probably should have - added one now.
@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - 717a932a3f8ecc70147f8d01a4b17ea4918b4c9c

@swift-ci please test macOS platform


About camera size of observation

Hi~ I'm curious about the image size of the observation. When I create an env like below
mt1 = MT1(task_name, seed=seed)
env = mt1.train_classes[task_name](render_mode='rgb_array')
env.set_task(mt1.train_tasks[task_id])

How can I change the img size of the observation in the env? Thanks a lot!

Hi! I haven't tried this so I am not 100% sure it will work, but you should be able to pass a desired height and width into the mujoco renderer. If you go to this line that init function calls the gymnasium mujoco env. If you add height=X, width=Y, you should be able to manipulate the image size.

Thanks a lot! How can I go into this function to change the size? Are there some external parameters that can be controlled? By the way, I find that in some codebases, we can use the following code to create an env with given img size:
mw_gym_make(name, cam_height=img_size, cam_width=img_size, cam_name=cam_name, train_distrib=train, seed=seed)

Unfortunately, I find that the function mw_gym_make is deleted in the lasted version of metaworld. Are there any similar functions? Thanks a lot!

No there aren't any similar functions in MW right now


about claims_codes_hs_300.txt.gz

Hi,
I am confused about the codes in the IDX_IPR_C_N_L_month_ALL_MEMBERS_fold1_s300_w20_ss5_hs_thr12.txt file inside claims_codes_hs_300.txt.gz. Do they refer to icd-9 codes? But when I tried to find a particular icd-9 code in there, it didn't match.
Thanks.

very late but looking into the code all the ICD9 codes are the lines that start with IDX_ then its the code, you might have also seen the period removed in the data so
IDX_250.70 which is diabetes
is sometimes seen as
25070


Fix doc comment string typos

Evidently a bad copy/paste/modify operation.

fieldalignment linting errors will be sorted later after an upstream bug report is reviewed.


Moving to sqlmodel

This one ended up being absolutely massive.
I needed to update to the most current SQLAlchemy to work with asyncio, which wound up driving the following changes:

SQLModel replaces SQLAlchemy
Pydantic V2 update from V1
FastAPI replaces Flask (since Flask routes aren't async)

And I renamed app/ to server/ because that was such a frequent overload.

Thy will be done.


[new] hide existing voting results to non-voted members.

Is your feature request related to a problem? Please describe.
If a new member (aka. non-voted member) see the voting results, which could/would lead the cognitive bias.
Describe the solution you'd like
Hide the voting results for any non-voted members (or non signed in, or guest)
Describe alternatives you've considered
no.
Additional context
I would like we would ONLY support this option, not 2 options for the space could choose, because it makes sense for any proposals, otherwise it will loose the meanings for votings. (maybe only delegation is okay for the following votes)

@bobjiang This will be implemented soon here #996


Could not find a declaration file for module

Could not find a declaration file for module 'react-moengage'. '/Users/Projects/React-Web/node_modules/react-moengage/dist/react-moengage.js' implicitly has an 'any' type.
Try npm i --save-dev @types/react-moengage if it exists or add a new declaration (.d.ts) file containing declare module 'react-moengage';ts(7016)

Have you found any solution of that @lakshyapunhani ?


Partial choice of entity is not working without the Id field

Versions:
.Net 6
Redis OM 0.5.0
Redis modules:
Redis search 2.4.16
Redis JSON 2.2.0
Steps to reproduce:
Create models, like that:
public class NecessarySubEntity {
      public SomeSubModel Field1 { get; set; }
      public SomeSubModel Field2 { get; set; }
}

public class SomeSubModel {
      public long Id { get; set; }
      public string Name { get; set; }
}

[Document(IndexName = "SomeModel", Prefixes = new[] { "SomeModel" }, StorageType = StorageType.Json)]
    public class SomeModel
    {
        [RedisIdField]
        [Indexed(Aggregatable = true, Sortable = true)]
        public long Id { get; set; }

        [Indexed(Aggregatable = true, Sortable = true)]
        public long? Timestamp { get; set; }

        [Indexed(CascadeDepth = 1)]
        public SomeSubModel Field1 { get; set; }

        [Indexed(CascadeDepth = 1)]
        public SomeSubModel Field2 { get; set; }

        .....

        [Indexed]
        public SomeStatus? SomeStatusId { get; set; }
}

Insert 100+ entities to Redis.
Execute it the next way:
public async Task<IList<NecessarySubEntity>> GetData(
             int? count,
             Expression<Func<SomeModel, bool>>? predicate = null)
        {
            try
            {
                var source = redisCollection;

                if (predicate != null)
                {
                    source = redisCollection.Where(predicate);
                }

                if (count.HasValue)
                {
                    source = source.Take(count.Value);
                }

                var resulted = source.Select(it => new NecessarySubEntity
                {
                    Field1 = it.Field1 ,
                    Field2 = it.Field2
                });

               // ToList or ToListAsync doesn't matter
                var result = await resulted.ToListAsync();

                return result;
}

Actual result:
result is empty
Expected result:
result has a list of the values from Redis.
Comments:
It start working when I added the Id field to NecessarySubEntity, even though I do not select it.
I mean:
var resulted = source.Select(it => new NecessarySubEntity
                {
                    Field1 = it.Field1 ,
                    Field2 = it.Field2
                });

OR
var resulted = source.Select(it => new NecessarySubEntity
                {
                    Id = it.Id,
                    Field1 = it.Field1 ,
                    Field2 = it.Field2
                });

It works correctly when the NecessarySubEntity contains the Id filed.
Like:
public class NecessarySubEntity {
      public long Id { get; set; }
      public SomeSubModel Field1 { get; set; }
      public SomeSubModel Field2 { get; set; }
}

When I remove the Id field, it starts to return empty results.

One more problem, returned subentity is empty, like:
[
  {
     Id == 1234,
     Field1 is null,
     Field2 is null
  },
  {
     Id == 12345,
     Field1 is null,
     Field2 is null
  }
]

I see what's happening -
Redis OM is trying to build the alias of the field rather than building out the path to the field when it's requested to pull back a sub-entity.
So when you execute one of those queries you get something like:
FT.SEARCH" "SomeModel" "(@Field2_Name:{bar})" "LIMIT" "0" "100" "RETURN" "2" "Field1" "Field2"

Those aren't valid paths (or aliases) in the return statement, so it's not pulling anything back. What it ought to do is request it with the path:
FT.SEARCH" "SomeModel" "(@Field2_Name:{bar})" "LIMIT" "0" "100" "RETURN" "2" "$.Field1" "$.Field2"

This also explains why the Id "works" with null results for the fields as it produces something analogous to:
FT.SEARCH" "SomeModel" "(@Field2_Name:{bar})" "LIMIT" "0" "100" "RETURN" "3" "Field1" "Field2" "Id"

Since Id is a known alias it will pull your Id back, and you'll get the parts of the document it was able to identify and pull back. However that doesn't change the fact that it doesn't know what to do with Field1 and Field2, so those are just ignored.
Will fix.
In the iterm the easy (but definitely less efficient) thing to do is just to materialize the query ahead of the select:
var res = (await collection.Where(x => x.Field2.Name == "bar").ToListAsync()).Select(x=>new NecessarySubEntity{Field1 = x.Field1, Field2 = x.Field2}).ToList();

Hello, thanks for the quick reply.
Waiting for a new release.
About your idea, yep, you described how it's implemented now on our side.
But is not acceptable, because we have a very large object and the entire object's deserialization takes a lot of time.


Page 107 g.setFont (40.0f)  is not working in Juce 8

In juce 8 it need to be
g.setFont (juce::FontOptions (40.0f));

Yes, this has changed in JUCE 8. Writing g.setFont(40.0f); should still work, but it is deprecated, which means that it is no longer the preferred way of setting font sizes.


Fix package code example

Code example has lower case 'teradata' which does not work due to the dbt-hub company name being Teradata. Changing case to capital T fixes.
resolves #

Description

Checklist

[ ] I have run this code in development and it appears to resolve the stated issue
[ ] This PR includes tests, or tests are not required/relevant for this PR
[ ] I have updated the CHANGELOG.md with information about my change

Change has already been made
Thanks @Austin1


Introduce latest:PHP-X.Y Tag

Please describe the feature you would like to see implemented.
Would be nice to introduce a specific php-version tag for compatibility of composer packages.

We have already:

0.3.2-php-8.2
0.3.2-php-8.1
0.3.2-php-7.4
0.3.2-php-7.2

that should be enough 🤔

Ahh for latest yes it's right now not there

Thank you @shyim 🙏


RTOS does not work on STM32L476RG

Blinky stops working if i link with RTOS.

what git sha are you using ? latest master? toolchain?

Im using the online compiler.

Im using the online compiler.

Share with us the lib versions (mbed + rtos)

cc @adustm @LMESTM @bcostm

rtos: 117
mbed: 121

what does it mean stops working, does not blink?
Yes.

The RTOS on STM32L4 was failing on all toolchains. Some fixes have been added #1889 #1846.

Works on master(a4fb64978938)


[Bug] Can't Quantize llava-v1.6-34b  (AssertionError)

Checklist

[x] 1. I have searched related issues but cannot get the expected help.
[x] 2. The bug has not been fixed in the latest version.

Describe the bug
Hello Guys.
I'm having trouble trying to quantize the llava-v1.6-34b model here, following this tutorial.
I've successfully quantized smaller models (liuhaotian/llava-v1.6-vicuna-7b and liuhaotian/llava-v1.6-vicuna-13b) but when I try with the 34B, got the following error:
Reproduction
export HF_MODEL=liuhaotian/llava-v1.6-34b
export WORK_DIR=quantized_vlms/llava-v1.6-34b-4bit
lmdeploy lite auto_awq $HF_MODEL --work-dir $WORK_DIR
Environment
sys.platform: linux
Python: 3.10.14 (main, May  6 2024, 19:42:50) [GCC 11.2.0]
CUDA available: True
MUSA available: False
numpy_random_seed:<PHONE_NUMBER>
GPU 0,1: NVIDIA GeForce RTX 3090
CUDA_HOME: /usr
NVCC: Cuda compilation tools, release 12.0, V12.0.140
GCC: gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0
PyTorch: 2.2.2+cu121
PyTorch compiling details: PyTorch built with:
  - GCC 9.3
  - C++ Version: 201703
  - Intel(R) oneAPI Math Kernel Library Version 2022.2-Product Build 20220804 for Intel(R) 64 architecture applications
  - Intel(R) MKL-DNN v3.3.2 (Git Hash 2dc95a2ad0841e29db8b22fbccaf3e5da7992b01)
  - OpenMP 201511 (a.k.a. OpenMP 4.5)
  - LAPACK is enabled (usually provided by MKL)
  - NNPACK is enabled
  - CPU capability usage: AVX2
  - CUDA Runtime 12.5
  - Built with CUDA Runtime 12.1
  - NVCC architecture flags: -gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_90,code=sm_90
  - CuDNN 8.9.2
  - Magma 2.6.1
  - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=12.1, CUDNN_VERSION=8.9.2, CXX_COMPILER=/opt/rh/devtoolset-9/root/usr/bin/c++, CXX_FLAGS= -D_GLIBCXX_USE_CXX11_ABI=0 -fabi-version=11 -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=pedantic -Wno-error=old-style-cast -Wno-missing-braces -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=2.2.2, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=1, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, USE_ROCM_KERNEL_ASSERT=OFF,

TorchVision: 0.17.2+cu121
LMDeploy: 0.5.1+
transformers: 4.40.0
gradio: 3.35.2
fastapi: 0.111.0
pydantic: 2.8.2
triton: 2.2.0
NVIDIA Topology:
        GPU0    GPU1    CPU Affinity    NUMA Affinity   GPU NUMA ID
GPU0     X      SYS     0-7,32-39       0               N/A
GPU1    SYS      X      8-15,40-47      2               N/A

Legend:

  X    = Self
  SYS  = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
  NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
  PHB  = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
  PXB  = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
  PIX  = Connection traversing at most a single PCIe bridge
  NV#  = Connection traversing a bonded set of # NVLinks

Error traceback
export HF_MODEL=liuhaotian/llava-v1.6-34b                                                                                py lmdeploy rtadewald@ 23:25:09
export WORK_DIR=quantized_vlms/llava-v1.6-34b-4bit
lmdeploy lite auto_awq $HF_MODEL --work-dir $WORK_DIR
can't find model from local_path liuhaotian/llava-v1.6-34b, try to download from remote
Fetching 23 files: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 23/23 [00:00<00:00, 6520.82it/s]
/home/rtadewald/miniconda3/envs/lmdeploy/lib/python3.10/site-packages/transformers/models/llava/configuration_llava.py:103: FutureWarning: The `vocab_size` argument is deprecated and will be removed in v4.42, since it can be inferred from the `text_config`. Passing this argument has no effect
  warnings.warn(
2024-07-18 23:26:17,140 - lmdeploy - INFO - matching vision model: LlavaVisionModel
You are using a model of type llava to instantiate a model of type llava_llama. This is not supported for all configurations of models and can yield errors.
2024-07-18 23:26:17,833 - lmdeploy - INFO - CLIPVisionTower.load_model: openai/clip-vit-large-patch14-336
2024-07-18 23:26:18,218 - lmdeploy - INFO - CLIPVisionTower.load_model: openai/clip-vit-large-patch14-336
/home/rtadewald/.local/lib/python3.10/site-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
Move model.embed_tokens to GPU.
Move model.layers.0 to CPU.
Move model.layers.1 to CPU.
Move model.layers.2 to CPU.
Move model.layers.3 to CPU.
Move model.layers.4 to CPU.
Move model.layers.5 to CPU.
Move model.layers.6 to CPU.
Move model.layers.7 to CPU.
Move model.layers.8 to CPU.
Move model.layers.9 to CPU.
Move model.layers.10 to CPU.
Move model.layers.11 to CPU.
Move model.layers.12 to CPU.
Move model.layers.13 to CPU.
Move model.layers.14 to CPU.
Move model.layers.15 to CPU.
Move model.layers.16 to CPU.
Move model.layers.17 to CPU.
Move model.layers.18 to CPU.
Move model.layers.19 to CPU.
Move model.layers.20 to CPU.
Move model.layers.21 to CPU.
Move model.layers.22 to CPU.
Move model.layers.23 to CPU.
Move model.layers.24 to CPU.
Move model.layers.25 to CPU.
Move model.layers.26 to CPU.
Move model.layers.27 to CPU.
Move model.layers.28 to CPU.
Move model.layers.29 to CPU.
Move model.layers.30 to CPU.
Move model.layers.31 to CPU.
Move model.layers.32 to CPU.
Move model.layers.33 to CPU.
Move model.layers.34 to CPU.
Move model.layers.35 to CPU.
Move model.layers.36 to CPU.
Move model.layers.37 to CPU.
Move model.layers.38 to CPU.
Move model.layers.39 to CPU.
Move model.layers.40 to CPU.
Move model.layers.41 to CPU.
Move model.layers.42 to CPU.
Move model.layers.43 to CPU.
Move model.layers.44 to CPU.
Move model.layers.45 to CPU.
Move model.layers.46 to CPU.
Move model.layers.47 to CPU.
Move model.layers.48 to CPU.
Move model.layers.49 to CPU.
Move model.layers.50 to CPU.
Move model.layers.51 to CPU.
Move model.layers.52 to CPU.
Move model.layers.53 to CPU.
Move model.layers.54 to CPU.
Move model.layers.55 to CPU.
Move model.layers.56 to CPU.
Move model.layers.57 to CPU.
Move model.layers.58 to CPU.
Move model.layers.59 to CPU.
Move model.norm to GPU.
Move model.vision_tower to GPU.
Move model.mm_projector to GPU.
Move lm_head to CPU.
Loading calibrate dataset ...
/home/rtadewald/.local/lib/python3.10/site-packages/datasets/load.py:1429: FutureWarning: The repository for ptb_text_only contains custom code which must be executed to correctly load the dataset. You can inspect the repository content at https://hf.co/datasets/ptb_text_only
You can avoid this message in future by passing the argument `trust_remote_code=True`.
Passing `trust_remote_code=True` will be mandatory to load this dataset from the next major release of `datasets`.
  warnings.warn(
/home/rtadewald/.local/lib/python3.10/site-packages/datasets/load.py:1429: FutureWarning: The repository for ptb_text_only contains custom code which must be executed to correctly load the dataset. You can inspect the repository content at https://hf.co/datasets/ptb_text_only
You can avoid this message in future by passing the argument `trust_remote_code=True`.
Passing `trust_remote_code=True` will be mandatory to load this dataset from the next major release of `datasets`.
  warnings.warn(
Token indices sequence length is longer than the specified maximum sequence length for this model (1190301 > 4096). Running this sequence through the model will result in indexing errors
model.layers.0, samples: 128, max gpu memory: 13.08 GB
model.layers.1, samples: 128, max gpu memory: 16.58 GB
model.layers.2, samples: 128, max gpu memory: 16.58 GB
model.layers.3, samples: 128, max gpu memory: 16.58 GB
model.layers.4, samples: 128, max gpu memory: 16.58 GB
model.layers.5, samples: 128, max gpu memory: 16.58 GB
model.layers.6, samples: 128, max gpu memory: 16.58 GB
model.layers.7, samples: 128, max gpu memory: 16.58 GB
model.layers.8, samples: 128, max gpu memory: 16.58 GB
model.layers.9, samples: 128, max gpu memory: 16.58 GB
model.layers.10, samples: 128, max gpu memory: 16.58 GB
model.layers.11, samples: 128, max gpu memory: 16.58 GB
model.layers.12, samples: 128, max gpu memory: 16.58 GB
model.layers.13, samples: 128, max gpu memory: 16.58 GB
model.layers.14, samples: 128, max gpu memory: 16.58 GB
model.layers.15, samples: 128, max gpu memory: 16.58 GB
model.layers.16, samples: 128, max gpu memory: 16.58 GB
model.layers.17, samples: 128, max gpu memory: 16.58 GB
model.layers.18, samples: 128, max gpu memory: 16.58 GB
model.layers.19, samples: 128, max gpu memory: 16.58 GB
model.layers.20, samples: 128, max gpu memory: 16.58 GB
model.layers.21, samples: 128, max gpu memory: 16.58 GB
model.layers.22, samples: 128, max gpu memory: 16.58 GB
model.layers.23, samples: 128, max gpu memory: 16.58 GB
model.layers.24, samples: 128, max gpu memory: 16.58 GB
model.layers.25, samples: 128, max gpu memory: 16.58 GB
model.layers.26, samples: 128, max gpu memory: 16.58 GB
model.layers.27, samples: 128, max gpu memory: 16.58 GB
model.layers.28, samples: 128, max gpu memory: 16.58 GB
model.layers.29, samples: 128, max gpu memory: 16.58 GB
model.layers.30, samples: 128, max gpu memory: 16.58 GB
model.layers.31, samples: 128, max gpu memory: 16.58 GB
model.layers.32, samples: 128, max gpu memory: 16.58 GB
model.layers.33, samples: 128, max gpu memory: 16.58 GB
model.layers.34, samples: 128, max gpu memory: 16.58 GB
model.layers.35, samples: 128, max gpu memory: 16.58 GB
model.layers.36, samples: 128, max gpu memory: 16.58 GB
model.layers.37, samples: 128, max gpu memory: 16.58 GB
model.layers.38, samples: 128, max gpu memory: 16.58 GB
model.layers.39, samples: 128, max gpu memory: 16.58 GB
model.layers.40, samples: 128, max gpu memory: 16.58 GB
model.layers.41, samples: 128, max gpu memory: 16.58 GB
model.layers.42, samples: 128, max gpu memory: 16.58 GB
model.layers.43, samples: 128, max gpu memory: 16.58 GB
model.layers.44, samples: 128, max gpu memory: 16.58 GB
model.layers.45, samples: 128, max gpu memory: 16.58 GB
model.layers.46, samples: 128, max gpu memory: 16.58 GB
model.layers.47, samples: 128, max gpu memory: 16.58 GB
model.layers.48, samples: 128, max gpu memory: 16.58 GB
model.layers.49, samples: 128, max gpu memory: 16.58 GB
model.layers.50, samples: 128, max gpu memory: 16.58 GB
model.layers.51, samples: 128, max gpu memory: 16.58 GB
model.layers.52, samples: 128, max gpu memory: 16.58 GB
model.layers.53, samples: 128, max gpu memory: 16.58 GB
model.layers.54, samples: 128, max gpu memory: 16.58 GB
model.layers.55, samples: 128, max gpu memory: 16.58 GB
model.layers.56, samples: 128, max gpu memory: 16.58 GB
model.layers.57, samples: 128, max gpu memory: 16.58 GB
model.layers.58, samples: 128, max gpu memory: 16.58 GB
model.layers.59, samples: 128, max gpu memory: 16.58 GB
model.layers.0 smooth weight done.
model.layers.1 smooth weight done.
model.layers.2 smooth weight done.
model.layers.3 smooth weight done.
model.layers.4 smooth weight done.
model.layers.5 smooth weight done.
model.layers.6 smooth weight done.
model.layers.7 smooth weight done.
model.layers.8 smooth weight done.
model.layers.9 smooth weight done.
model.layers.10 smooth weight done.
model.layers.11 smooth weight done.
model.layers.12 smooth weight done.
model.layers.13 smooth weight done.
model.layers.14 smooth weight done.
model.layers.15 smooth weight done.
model.layers.16 smooth weight done.
model.layers.17 smooth weight done.
model.layers.18 smooth weight done.
model.layers.19 smooth weight done.
model.layers.20 smooth weight done.
model.layers.21 smooth weight done.
model.layers.22 smooth weight done.
Traceback (most recent call last):
  File "/home/rtadewald/miniconda3/envs/lmdeploy/bin/lmdeploy", line 8, in <module>
    sys.exit(run())
  File "/home/rtadewald/miniconda3/envs/lmdeploy/lib/python3.10/site-packages/lmdeploy/cli/entrypoint.py", line 36, in run
    args.run(args)
  File "/home/rtadewald/miniconda3/envs/lmdeploy/lib/python3.10/site-packages/lmdeploy/cli/lite.py", line 139, in auto_awq
    auto_awq(**kwargs)
  File "/home/rtadewald/miniconda3/envs/lmdeploy/lib/python3.10/site-packages/lmdeploy/lite/apis/auto_awq.py", line 131, in auto_awq
    smooth_layers(layers, fc2fcs, norm2fcs, act_scales, w_group_size,
  File "/home/rtadewald/miniconda3/envs/lmdeploy/lib/python3.10/site-packages/lmdeploy/lite/quantization/awq.py", line 259, in smooth_layers
    smooth_ln_fcs(ln, fcs, a_scales[a_name], group_size)
  File "/home/rtadewald/miniconda3/envs/lmdeploy/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/home/rtadewald/miniconda3/envs/lmdeploy/lib/python3.10/site-packages/lmdeploy/lite/quantization/awq.py", line 118, in smooth_ln_fcs
    assert torch.isnan(p).sum() == 0
AssertionError

Two possible solutions:

adjust your quantization settings such as sample nums or calibration dataset
modify files following https://github.com/InternLM/lmdeploy/pull/1844/files

Hello, @AllentDan, thanks for your answer.
Unfortunately none of the proposed solutions worked for me.
This getting the Assertion Error  here:
File "/home/rtadewald/miniconda3/envs/lmdeploy/lib/python3.10/site-packages/lmdeploy/lite/quantization/awq.py", line 118, in smooth_ln_fcs
assert torch.isnan(p).sum() == 0
AssertionError

Sorry for the late replay, I can do awq normally through:
lite auto_awq llava-v1.6-34b --work-dir llava-v1.6-34b-awq --calib-seqlen 512 --calib-dataset pileval

The NAN value was from act_scale, which I suppose it might be related to a calibration prompt that can generate a NAN value inside the layer.

It is an online dataset.


ItemSync v2.3.1

Bugfix and animations for other players in the same room a key is used

(would be appreciated to only include the latest commit, but in the grand scheme of things it doesn't matter that much, i only have to scroll a bit further)


BagOfWords

I got 7 errors from building the code.

What version of ML.NET did you use? What errors are you getting?

Line 47: Says the statement is too amibigious
Line 54 and 56 says the object is not found.

Are you building it in Visual Studio or in another IDE like Rider?

I first compiled using Vim and .NET Core CLI. Then tried Visual Studio.....both throw these errors


How can I build gdal with ecw support option

Hi,
How can I enable --with-ecw option in gdal build to support ecw image files?

You can modify the port. This driver needs an external SDK, so it will need extra work. Licensing is not as permissive as desirable, making it more difficult to maintain it as an official port feature.
https://gdal.org/drivers/raster/ecw.html
Alternatively, you can try to inject related CMake options from a custom triplet file via VCPKG_CMAKE_CONFIGURE_OPTIONS.

You can modify the port. This driver needs an external SDK, so it will need extra work. Licensing is not as permissive as desirable, making it more difficult to maintain it as an official port feature.
https://gdal.org/drivers/raster/ecw.html
Alternatively, you can try to inject related CMake options from a custom triplet file via VCPKG_CMAKE_CONFIGURE_OPTIONS.

Hello, is this suggestion effective for you?

Much thanks for dg0yt's comment.

You can modify the port. This driver needs an external SDK, so it will need extra work. Licensing is not as permissive as desirable, making it more difficult to maintain it as an official port feature. https://gdal.org/drivers/raster/ecw.html
Alternatively, you can try to inject related CMake options from a custom triplet file via VCPKG_CMAKE_CONFIGURE_OPTIONS.

Thanks for your answer. But I don't know what I should change in the port. Can you tell the necessary changes?


Applying a format to the DateRangePicker field has no effect

I am using the date picker as a field (and not a filter) with displayFormat set to DD-MM-YYY and format set to Y-m-d. Each time the date range is return in the same format as the displayFormat, rather than format.
For example:
When filtering between 01-01-1970 and 01-01-2024, here's my form schema  -
DateRangePicker::make('date_range')
    ->label('Select date range')
    ->displayFormat('DD-MM-YYYY')
    ->format('Y-m-d'),

And the value is returned as 01-01-1970 - 01-01-2024, rather than the expected value of 1970-01-01 - 2024-01-01.

format is used to define the date for Carbon to read from Javascript (Used mostly in query or default values) , it should match the displayFormat in (PHP format style).
In your case just use displayFormat.

Thank you for coming back to me.
I would like the value to display as 01-01-1970 - 01-01-2024 in the input field and then be submitted to PHP as 1970-01-01 - 2024-01-01, as mentioned in my original comment. I don't think you suggestion facilitates this.

Do you mean you want to save the value in a different format to database?
On Wed, May 1, 2024, 10:23 AM Stewart Doxey @.***>
wrote:

Thank you for coming back to me.
I would like the value to display as 01-01-1970 - 01-01-2024 in the input
field and then be submitted to PHP as 1970-01-01 - 2024-01-01, as
mentioned in my original comment. I don't think you suggestion facilitates
this.
—
Reply to this email directly, view it on GitHub
https://github.com/malzariey/filament-daterangepicker-filter/issues/71#issuecomment-2088086318,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIPCALJ52IJ5YNYYOJGSSSDZACJ7JAVCNFSM6AAAAABGYPDUL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBYGA4DMMZRHA
.
You are receiving this because you modified the open/close state.Message
ID: @.***
.com>

Yes, that's correct. Maybe I am misunderstanding the documentation but I have read it that you can display one format in the input field and then submit that to the codebase and database in a different format. Hence the displayFormat and format attributes.

Sorry at the moment, the feature is not available .
On Wed, May 1, 2024, 10:30 AM Stewart Doxey @.***>
wrote:

Yes, that's correct. Maybe I am misunderstanding the documentation but I
have read it that you can display one format in the input field and then
submit that to the codebase and database in a different format. Hence the
displayFormat and format attributes.
—
Reply to this email directly, view it on GitHub
https://github.com/malzariey/filament-daterangepicker-filter/issues/71#issuecomment-2088092411,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIPCALJ7E2CAZ5SMCNVVCU3ZACK3DAVCNFSM6AAAAABGYPDUL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBYGA4TENBRGE
.
You are receiving this because you modified the open/close state.Message
ID: @.***
.com>

My misunderstanding. Thank you for coming back to me!


Implement Paramspace helper and testcase.

This is inspired by the work on JUDI from @soumitrakp. Thanks a lot Soumitra!
Key idea:
Snakemake already brings everything to handle parameter spaces in any way (sub-spacing for certain rules and even depending on wildcard values, the ability to read or generate spaces on the fly or from files via pandas, etc. However, there was so far no easy way to translate a space into wildcard patterns, and translate it back into concrete parameters for scripts and commands. This is now solved via the new Paramspace helper, which can be used as follows:
from snakemake.utils import Paramspace
import pandas as pd

# declare a dataframe to be a paramspace
paramspace = Paramspace(pd.read_csv("params.tsv", sep="\t"))

rule all:
    input:
        # Aggregate over entire parameter space (or a subset thereof if needed)
        # of course, something like this can happen anywhere in the workflow (not
        # only at the end).
        expand("results/plots/{params}.pdf", params=paramspace.instance_patterns)

rule simulate:
    output:
        # format a wildcard pattern like "alpha~{alpha}/beta~{beta}/gamma~{gamma}"
        # into a file path, with alpha, beta, gamma being the columns of the data frame
        f"results/simulations/{paramspace.wildcard_pattern}.tsv"
    params:
        # automatically translate the wildcard values into an instance of the param space
        # in the form of a dict (here: {"alpha": ..., "beta": ..., "gamma": ...})
        simulation=paramspace.instance
    script:
        "scripts/simulate.py"

rule plot:
    input:
        f"results/simulations/{paramspace.wildcard_pattern}.tsv"
    output:
        f"results/plots/{paramspace.wildcard_pattern}.pdf"
    shell:
        "touch {output}"

Given that params.tsv contains:
alpha	beta	gamma
1.0	0.1	0.99
2.0	0.0	3.9

This workflow will run as follows:
[Fri Nov 27 20:57:27 2020]
rule simulate:
    output: results/simulations/alpha~2.0/beta~0.0/gamma~3.9.tsv
    jobid: 4
    wildcards: alpha=2.0, beta=0.0, gamma=3.9

[Fri Nov 27 20:57:27 2020]
rule simulate:
    output: results/simulations/alpha~1.0/beta~0.1/gamma~0.99.tsv
    jobid: 2
    wildcards: alpha=1.0, beta=0.1, gamma=0.99

[Fri Nov 27 20:57:27 2020]
rule plot:
    input: results/simulations/alpha~2.0/beta~0.0/gamma~3.9.tsv
    output: results/plots/alpha~2.0/beta~0.0/gamma~3.9.pdf
    jobid: 3
    wildcards: alpha=2.0, beta=0.0, gamma=3.9

[Fri Nov 27 20:57:27 2020]
rule plot:
    input: results/simulations/alpha~1.0/beta~0.1/gamma~0.99.tsv
    output: results/plots/alpha~1.0/beta~0.1/gamma~0.99.pdf
    jobid: 1
    wildcards: alpha=1.0, beta=0.1, gamma=0.99

[Fri Nov 27 20:57:27 2020]
localrule all:
    input: results/plots/alpha~1.0/beta~0.1/gamma~0.99.pdf, results/plots/alpha~2.0/beta~0.0/gamma~3.9.pdf
    jobid: 0

This is a really cool feature that is going to make at least one of my workflows a lot easier to read and maintain. Thank you :)
The pattern is currently restricted to create a new directory level for each parameter, right? This could lead to very deep folder structures that might be inconvenient to work with. From a data management standpoint it might be helpful to group some parameters into the filename, specifically for human readability and to maintain metadata in case a file is moved.
Would/ could/ should there be a way to pass a custom pattern to Paramspace to override this (reasonable) default behavior? Another option could be to add annotations to the parameter file grouping parameters into directory and file name parameters.

I implemented a version of this allowing to pass custom patterns while keeping the default behavior intact. Please consider this a first draft/ proposition. If this runs contrary to your goal for this, feel free to ignore this.
This example uses the pattern "{}/{}_{}" which groups the latter two parameters (beta and gamma) into one file name.
from snakemake.utils import Paramspace
import pandas as pd

# Add the pattern here
paramspace = Paramspace(pd.read_csv("params.tsv", sep="\t"), pattern="{}/{}_{}")

rule all:
    input:
        expand("results/plots/{params}.pdf", params=paramspace.instance_patterns)

# rest as above
# [...]

This results in the following paths:
[Sun Dec  6 18:46:11 2020]
rule simulate:
    output: results/simulations/alpha~2.0/beta~0.0_gamma~3.9.tsv
    jobid: 4
    wildcards: alpha=2.0, beta=0.0, gamma=3.9

[Sun Dec  6 18:46:11 2020]
rule simulate:
    output: results/simulations/alpha~1.0/beta~0.1_gamma~0.99.tsv
    jobid: 2
    wildcards: alpha=1.0, beta=0.1, gamma=0.99

[Sun Dec  6 18:46:11 2020]
rule plot:
    input: results/simulations/alpha~1.0/beta~0.1_gamma~0.99.tsv
    output: results/plots/alpha~1.0/beta~0.1_gamma~0.99.pdf
    jobid: 1
    wildcards: alpha=1.0, beta=0.1, gamma=0.99

[Sun Dec  6 18:46:11 2020]
rule plot:
    input: results/simulations/alpha~2.0/beta~0.0_gamma~3.9.tsv
    output: results/plots/alpha~2.0/beta~0.0_gamma~3.9.pdf
    jobid: 3
    wildcards: alpha=2.0, beta=0.0, gamma=3.9

[Sun Dec  6 18:46:11 2020]
localrule all:
    input: results/plots/alpha~1.0/beta~0.1_gamma~0.99.pdf, results/plots/alpha~2.0/beta~0.0_gamma~3.9.pdf
    jobid: 0

Hi Henning,
Could you please have a look at the discussion here:
https://twitter.com/johanneskoester/status/1332423263251795968
Thank you,
Soumitra
On Sun, Dec 6, 2020 at 12:52 PM Henning Timm<EMAIL_ADDRESS>wrote:

I implemented a version of this allowing to pass custom patterns while
keeping the default behavior intact. Please consider this a first draft/
proposition. If this runs contrary to your goal for this, feel free to
ignore this.
This example uses the pattern "{}/{}_{}" which groups the latter two
parameters (beta and gamma) into one file name.
from snakemake.utils import Paramspace
import pandas as pd
Add the pattern here
paramspace = Paramspace(pd.read_csv("params.tsv", sep="\t"), pattern="{}/{}_{}")
rule all:
input:
expand("results/plots/{params}.pdf", params=paramspace.instance_patterns)
rest as above
[...]
This results in the following paths:
[Sun Dec  6 18:46:11 2020]
rule simulate:
output: results/simulations/alpha~2.0/beta~0.0_gamma~3.9.tsv
jobid: 4
wildcards: alpha=2.0, beta=0.0, gamma=3.9
[Sun Dec  6 18:46:11 2020]
rule simulate:
output: results/simulations/alpha~1.0/beta~0.1_gamma~0.99.tsv
jobid: 2
wildcards: alpha=1.0, beta=0.1, gamma=0.99
[Sun Dec  6 18:46:11 2020]
rule plot:
input: results/simulations/alpha~1.0/beta~0.1_gamma~0.99.tsv
output: results/plots/alpha~1.0/beta~0.1_gamma~0.99.pdf
jobid: 1
wildcards: alpha=1.0, beta=0.1, gamma=0.99
[Sun Dec  6 18:46:11 2020]
rule plot:
input: results/simulations/alpha~2.0/beta~0.0_gamma~3.9.tsv
output: results/plots/alpha~2.0/beta~0.0_gamma~3.9.pdf
jobid: 3
wildcards: alpha=2.0, beta=0.0, gamma=3.9
[Sun Dec  6 18:46:11 2020]
localrule all:
input: results/plots/alpha~1.0/beta~0.1_gamma~0.99.pdf, results/plots/alpha~2.0/beta~0.0_gamma~3.9.pdf
jobid: 0
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/snakemake/snakemake/pull/776#issuecomment-739538357,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB7HEZGCNMMZ3GQIIWUEFFDSTPAFPANCNFSM4UFIIT5Q
.

I implemented a version of this allowing to pass custom patterns while keeping the default behavior intact. I hope I managed to direct my PR against this branch successfully ;) Please consider this a first draft/ proposition. If this runs contrary to your goal for this, feel free to ignore this.
This example uses the pattern "{}/{}_{}" which groups the latter two parameters (beta and gamma) into one file name.
from snakemake.utils import Paramspace
import pandas as pd

# Add the pattern here
paramspace = Paramspace(pd.read_csv("params.tsv", sep="\t"), pattern="{}/{}_{}")

rule all:
    input:
        expand("results/plots/{params}.pdf", params=paramspace.instance_patterns)

# rest as above
# [...]

This results in the following paths:
[Sun Dec  6 18:46:11 2020]
rule simulate:
    output: results/simulations/alpha~2.0/beta~0.0_gamma~3.9.tsv
    jobid: 4
    wildcards: alpha=2.0, beta=0.0, gamma=3.9

[Sun Dec  6 18:46:11 2020]
rule simulate:
    output: results/simulations/alpha~1.0/beta~0.1_gamma~0.99.tsv
    jobid: 2
    wildcards: alpha=1.0, beta=0.1, gamma=0.99

[Sun Dec  6 18:46:11 2020]
rule plot:
    input: results/simulations/alpha~1.0/beta~0.1_gamma~0.99.tsv
    output: results/plots/alpha~1.0/beta~0.1_gamma~0.99.pdf
    jobid: 1
    wildcards: alpha=1.0, beta=0.1, gamma=0.99

[Sun Dec  6 18:46:11 2020]
rule plot:
    input: results/simulations/alpha~2.0/beta~0.0_gamma~3.9.tsv
    output: results/plots/alpha~2.0/beta~0.0_gamma~3.9.pdf
    jobid: 3
    wildcards: alpha=2.0, beta=0.0, gamma=3.9

[Sun Dec  6 18:46:11 2020]
localrule all:
    input: results/plots/alpha~1.0/beta~0.1_gamma~0.99.pdf, results/plots/alpha~2.0/beta~0.0_gamma~3.9.pdf
    jobid: 0

very good suggestion! Only one thing: the pattern should probably contain the names. That would be more in line with the rest of Snakemake.


How to create a completely custom excel sheet?

Prerequisites
Versions

PHP version: 7.1
Laravel version: 5.7
Package version: 3.1

Description
Is there a way to create a fully custom excel sheet like in version 2.1(where we directly access the method of the $excel object). I have a complex excel sheet to generate with multiple tables and cell arrangements. I was able to directly create the excel using Excel::create function in version 2.1. I am having a lot of difficulty in creating the same excel file when I upgraded to version 3.1.
Additional Information
The code for generating the excel sheet in version 2.1 is below. It generates two tables separated by a blank cell. Each row in a table may be arranged in a hierarchical order and hence the cell may have to be generated recursively. And some more lines need to be added at the end of the table (Net Profit/loss).
public function export(Request $request)
    {
        return Excel::create('income-expense-report', function($excel)use($request){
            $excel->sheet('income-expense-report', function($sheet)use($request){

                $accounts = $this->getAccountWithBalance($request);

                $income = $accounts->where('account_type',AccountType::INCOME);
                $expense = $accounts->where('account_type',AccountType::EXPENSE);
                $netIncome = $income->sum('total') - $expense->sum('total');

                $generateCell = function($accounts,$sheet,&$row) use(&$generateCell)
                {
                    foreach ($accounts as $account)
                    {
                        $sheet->row($row++,[
                            str_repeat(' ',$account->nodeLevel*4).$account->name,
                            NumberFormat::format($account->balance)
                        ]);
                        if($account->child->count())
                        {
                            $generateCell($account->child,$sheet,$row);
                            $sheet->row($row++,[
                                str_repeat(' ',$account->nodeLevel*4).'Total '.$account->name,
                                NumberFormat::format($account->total)
                            ]);
                        }
                    }
                    return $sheet;
                };
                $row = 1;
                $sheet->row($row++,['Income']);
                $sheet = $generateCell($income,$sheet,$row);
                $sheet->row($row++,['Total Income',NumberFormat::format($income->sum('total'))]);
                $row++;
                $sheet->row($row++,['Expense']);
                $sheet = $generateCell($expense,$sheet,$row);
                $sheet->row($row++,['Total Expense',NumberFormat::format($expense->sum('total'))]);
                $row++;
                $sheet->row($row,function($row){$row->setFontWeight('bold');})->row($row,['Net Profit/Loss',NumberFormat::format($netIncome)]);
            });
        })->export('xls');
    }

    protected function getAccountWithBalance($request)
    {
        $balance = new AccountBalance();

        $accounts = Account::whereIsRoot()->whereIn('account_type',[AccountType::INCOME,AccountType::EXPENSE])->get();

        $balance->setAccounts($accounts->pluck('id')->toArray())
                ->subAccounts(true);

        if($request->get('txn_date_start'))
        {
            $balance->setStartDate($request->get('txn_date_start'));
        }

        if($request->get('txn_date_end'))
        {
            $balance->setEndDate($request->get('txn_date_end'));
        }

        return $balance->get();
    }

I tried using the BeforeSheet listener to access the $excel object, but since it is a static function, I am unable to access the $request object which is being injected to the Exportable class for the purpose of filtering the query.

Did you already have a look at
Upgrading to 3.* from 2.1?
There are some notes about the replacement of the create() and also an example of an upgrade.

Try using the non-static listener approach then: (closures) https://docs.laravel-excel.com/3.1/exports/extending.html , there you can access $this->request. Alternatively you could access the request via the helper request().

Thank you for the quick reply. I used @patrickbrouwers closure approach and it has solved the issue. The export class given below if anybody want to know.
namespace App\Exports;

use Maatwebsite\Excel\Concerns\WithEvents;
use Maatwebsite\Excel\Events\BeforeSheet;
use App\Helpers\AccountBalance;
use App\Helpers\NumberFormat;
use App\AccountType;
use App\Account;

class IncomeExpenseReportExport implements WithEvents
{
    protected $request;

    function __construct($request)
    {
        $this->request = $request;
    }

    public function registerEvents(): array
    {
        return [
            BeforeSheet::class => function(BeforeSheet $event) {

                $sheet = $event->sheet;

                $accounts = $this->getAccountWithBalance($this->request);

                $income = $accounts->where('account_type',AccountType::INCOME);
                $expense = $accounts->where('account_type',AccountType::EXPENSE);
                $netIncome = $income->sum('total') - $expense->sum('total');

                $generateCell = function($accounts,$sheet,&$row) use(&$generateCell)
                {
                    foreach ($accounts as $account)
                    {
                        $sheet->append([
                            str_repeat(' ',$account->nodeLevel*4).$account->name,
                            NumberFormat::format($account->balance)
                        ],'A'.$row++);
                        if($account->child->count())
                        {
                            $generateCell($account->child,$sheet,$row);
                            $sheet->append([
                                str_repeat(' ',$account->nodeLevel*4).'Total '.$account->name,
                                NumberFormat::format($account->total)
                            ],'A'.$row++);
                        }
                    }
                    return $sheet;
                };
                $row = 1;
                $sheet->append(['Income'],'A'.$row++);
                $sheet = $generateCell($income,$sheet,$row);
                $sheet->append(['Total Income',NumberFormat::format($income->sum('total'))],'A'.$row++);
                $row++;
                $sheet->append(['Expense'],'A'.$row++);
                $sheet = $generateCell($expense,$sheet,$row);
                $sheet->append(['Total Expense',NumberFormat::format($expense->sum('total'))],'A'.$row++);
                $row++;
                $sheet->append(['Net Profit/Loss',NumberFormat::format($netIncome)],'A'.$row++);
            },
        ];
    }

    protected function getAccountWithBalance($request)
    {
        $balance = new AccountBalance();

        $accounts = Account::whereIsRoot()->whereIn('account_type',[AccountType::INCOME,AccountType::EXPENSE])->get();

        $balance->setAccounts($accounts->pluck('id')->toArray())
                ->subAccounts(true);

        if($request->get('txn_date_start'))
        {
            $balance->setStartDate($request->get('txn_date_start'));
        }

        if($request->get('txn_date_end'))
        {
            $balance->setEndDate($request->get('txn_date_end'));
        }

        return $balance->get();
    }
}

and in the controller
public function export(Request $request)
    {
        return Excel::download(new IncomeExpenseReportExport($request),'report.xls');
    }

谢谢你帮了我的大忙了！Thanks♪(･ω･)ﾉ


How to support >1 function in a :component

I'd like to mix different components together in the same Entry. Something like this:
defmodule BrmblWeb.Storybook.Components.Typography do
  use PhxLiveStorybook.Entry, :component

  alias BrmblWeb.UI.Typography

  def description, do: "Typography components"

  def stories do
    [
      %Story{
        id: :h1,
        function: &Typography.h1/1,
        attributes: %{},
        slots: [~s|.h1 heading|]
      },
      %Story{
        id: :h2,
        function: &Typography.h2/1,
        attributes: %{},
        slots: [~s|.h2 heading|]
      }
    ]
  end
end

That doesn't work since a :component assumes all the same :function:
app1_1  | == Compilation error in file lib/brmbl_web/storybook.ex ==
app1_1  | ** (KeyError) key :function not found
app1_1  |     (phx_live_storybook 0.3.0) expanding struct: PhxLiveStorybook.Story.__struct__/1
app1_1  |     storybook/components/typography.exs:16: BrmblWeb.Storybook.Components.Typography.stories/0

Is this a good idea? If so, do you have any plans to add this already (or can you share any tips on how you might like to see it implemented?)

I had been thinking about it today. At first, it seemed like a good idea to me, and I really get what you're trying to do on the stories tab.
But then, I tried to figure out how this would work with the playground, and it doesn't look like a good idea anymore :)
You need to declare attribute definition at the module level but you cannot have any guarantee that all the functions you are using share the same API, so that would be clumsy at best.
If I take your Typography example, I guess I would rather use a wrapper component with a single function for all headings:
<.heading level={1}>My title</.heading>
<.heading level={2}>My title</.heading>


Rebuild for framecpp 2.8

This PR rebuilds this package against the latest framecpp.

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

I think this needs to wait for conda-forge/lalframe-feedstock#30.


How to handle progress finished when the client has not yet responded to window/workDoneProgress/create?

I'm working on server side progress reporting. My current implementation sends window/workDoneProgress/create followed by $/progress notifications immediately. In other words: It treats window/workDoneProgress/create like a notification as it is not waiting for a client response.
Main reason for this implementation is that a lengthy operation should not get longer by waiting for a slow client to respond.
However, I saw this thread that implies my implementation is not compliant to LSP: https://github.com/microsoft/language-server-protocol/issues/923
To my understanding the server is not allowed to send $/progress notifications until the client has respond to window/workDoneProgress/create. Is that correct?
I don't want to block the lengthy operation until the client has repsonded. Instead I start the lengthy operation immediately and hold $/progress notifications back until the client is ready.
With this implemenation I can run into the situation where the lengthy operation has finished before the client responded to  window/workDoneProgress/create.
What should the server do in this situation?

Wait for the client response only to send $/progress with "kind":"end"
Just send  $/progress with "kind":"end" without waiting for the client
Not send anything to the slow client. It should clean up the progress UI ressources after a while.

I don't think cancellation of the window/workDoneProgress/create request is suitable here since there could be an overlap where the client responds in the same moment when the server requests cancellation.

@Wosi the only save option is (1) Wait for the client response only to send $/progress with "kind":"end"
Otherwise clients might show the progress for every.

Does that makes sense?

Thank you, @dbaeumer. It's all clear now.

@Wosi just to be clear, never use server-initiated work done progress for handling requests like textDocument/references or workspace/symbol. Instead you can rely on the client passing a workDoneProgressToken in the request.
window/workDoneProgress/create is suitable for background tasks like indexing though.

Thanks for the hint, @rwols.
I'm using server initiated progress only for reindexing and in cases where updating diagnositcs takes longer than usual. I never use it when handling requests.


Black block hover on + icon appears wider than the rest of the +  icon seen in Entity explorer

the + icon hover now conforms with other icons


Missing git tag for release 2.8.0

The version 2.8.0 is released on public Maven Central Repository but the corresponding tag (and release) in GitHub is missing.
It would be great if it the tag can be added to the specific commit used to generate the build the release uploaded to Maven Central Repository. This will allows us to compare changes between 2 specific versions.
Thanks in advance!

Will fix this!


warn Package @rnw-community/react-native-payments has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in ....

Hello Mr Vitaly
I got the below error after installing<EMAIL_ADDRESS>Using 0.65.5 because my project must use node version 16.19.0 and the latest version requires node>=18.
So after the installation and I tried running metro the below happens:

The errors:
warn Package @rnw-community/react-native-payments has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in ....
warn Package react-native-screens has been ignored because it contains invalid configuration. Reason: "dependency.platforms.android.componentDescriptors" is not allowed
For your reference:
"react": "17.0.2",
"react-native": "0.67.5",
"@rnw-community/react-native-payments": "0.65.5",
"react-native-screens": "^3.12.0"

@fcbjimmy Did you fix a problem? Can I still help you?


Investigate support for limits.

Perhaps this is already supported, but I am unclear which dynamically generated query features are supported.
Below are examples from:
http://docs.spring.io/spring-data/jpa/docs/current/reference/html/
User findFirstByOrderByLastnameAsc();
User findTopByOrderByAgeDesc();
Page queryFirst10ByLastname(String lastname, Pageable pageable);
Slice findTop3ByLastname(String lastname, Pageable pageable);
List findFirst10ByLastname(String lastname, Sort sort);
List findTop10ByLastname(String lastname, Pageable pageable);

From what I can tell spring-data-dynamodb supports both findBy and queryBy in a similar fashion.  For either case it will attempt to build a dynamo db QueryRequest first and fall back on a Scan if the properties are not a HashKey/RangeKey or listed as the HashKey/RangeKey of a GSI.
I haven't seen anything in the code base that would support things like "Top" or "First", but there is support for Pageable and Sort.  With the caveat that Sort will only work if it is performed on a RangeKey and I thought I saw something about Pageable having some limitations as well.
As for the property comparisons, I have found this method which appears to provide the following support, written as spring-data keyword mapping to dynamodb condition ComparisonOperator keyword:

IN -> Not sure which dynamodb mapping, but appears to check if a property exists in an array/collection.
CONTAINING -> CONTAINS
STARTING_WITH -> BEGINS_WITH
BETWEEN -> BETWEEN
AFTER -> GT
GREATER_THAN -> GT
BEFORE -> LT
LESS_THAN -> LT
GREATER_THAN_EQUAL -> GE
LESS_THAN_EQUAL -> LE
IS_NULL -> NULL
IS_NOT_NULL -> NOT_NULL
TRUE -> EQ
FALSE -> EQ
SIMPLE_PROPERTY -> EQ, but has special conditions if the property is a HashKey/RangeKey.
NEGATING_SIMPLE_PROPERTY -> NE

Lastly, case insensitivity is NOT supported.
Take this with a grain of salt as it just comes from my limited use of the library and poking through the code.

Awesome! Thank you for clarifying which comparisons and keywords are supported. We should add this list to the README to clarify the subset of supported features. I'll be looking through this project more in the upcoming days and I hope to use it in a new project. So far I have successfully used the AND keyword and the BETWEEN, AFTER, GREATER_THAN, BEFORE, LESS_THAN, GREATER_THAN_EQUAL, LESS_THAN_EQUAL property comparisons using java.util.Date.

I've created the following page in the wiki with the information that I've detailed above: https://github.com/derjust/spring-data-dynamodb/wiki/Supported-Spring-Data-Comparison-Operators
I don't think the page is 100% complete or accurate, but is it enough to close this issue?
@derjust is this a duplicate of issue 5?

Yeah, that definitely answered my question however I'd like to keep the issue open a reminder to look into supporting the first and top keywords for limiting queries. I apologize for the combined enhancement request / question post.

It somewhat overlapping with #5 - Following this issue more in what @fpoolev intented

Hi,
I am trying to build a query against a table with a timestamp based sorting. The thing is that if I do  findByTimestampBetweenAndDevice the query works ok without using @EnableScan.
However if I use findByTimestampBetweenAndDeviceAndRelaysNotNull it throws and Exception saying that I need to use @EnableScan.
I can do a query like the last one using a Query via the Amazon DynamoDB web panel.  I am building the query correctly?
Someone has been sucessful with these kind of operators?
Thanks


[re2] Build error on arm64-osx

Computing installation plan...
The following packages will be built and installed:
<EMAIL_ADDRESS>
re2:arm64-osx@2024-04-01#1
upb[codegen,core]:arm64-osx@2022-06-21#1
<EMAIL_ADDRESS>Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet arm64-osx...
Compiler found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
Restored 0 package(s) from /Users/wubo/.cache/vcpkg/archives in 14.2 us. Use --debug to see more details.
Installing 1/4<EMAIL_ADDRESS>Building<EMAIL_ADDRESS>-- Downloading https://github.com/google/re2/commit/9ebe4a22cad8a025b68a9594bdff3c047a111333.patch?full_index=1 -> 9ebe4a22cad8a025b68a9594bdff3c047a111333.patch...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Trying to load bundleconfig from /Users/wubo/.vcpkg/vcpkg/vcpkg-bundle.json
[DEBUG] Failed to open: /Users/wubo/.vcpkg/vcpkg/vcpkg-bundle.json
[DEBUG] Bundle config: readonly=false, usegitregistry=false, embeddedsha=nullopt, deployment=Git, vsversion=nullopt
[DEBUG] Metrics enabled.
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Feature flag 'dependencygraph' unset
[DEBUG] 1000: execute_process(curl --fail -L https://github.com/google/re2/commit/9ebe4a22cad8a025b68a9594bdff3c047a111333.patch?full_index=1 --create-dirs --output /Users/wubo/.vcpkg/vcpkg/downloads/9ebe4a22cad8a025b68a9594bdff3c047a111333.patch.47658.part)
[DEBUG] 1000: cmd_execute_and_stream_data() returned 0 after   906484 us
[DEBUG] Trying to hash /Users/wubo/.vcpkg/vcpkg/downloads/9ebe4a22cad8a025b68a9594bdff3c047a111333.patch.47658.part
[DEBUG] /Users/wubo/.vcpkg/vcpkg/downloads/9ebe4a22cad8a025b68a9594bdff3c047a111333.patch.47658.part has hash 83c1a4cc4ddd6e1443f5201f7f00cf6a0729d0a0fb8fc5068c3d80766238d72f019f1fddaeffebcc2d4322a07daf2203214121cdda039b10a5f39214b9fa8647
error: Failed to download from mirror set
error: File does not have the expected hash:
url: https://github.com/google/re2/commit/9ebe4a22cad8a025b68a9594bdff3c047a111333.patch?full_index=1
File: /Users/wubo/.vcpkg/vcpkg/downloads/9ebe4a22cad8a025b68a9594bdff3c047a111333.patch.47658.part
Expected hash: 167a0153bf24e77db2b8555a7d6391acf740dc4720a71e6ce19a3533c7e0a49923d9584ff32544a454837a25eedace00cb2ef9ddbf4250deb5f2c5aeda04ac26
Actual hash: 83c1a4cc4ddd6e1443f5201f7f00cf6a0729d0a0fb8fc5068c3d80766238d72f019f1fddaeffebcc2d4322a07daf2203214121cdda039b10a5f39214b9fa8647
[DEBUG] /Users/runner/work/1/s/src/vcpkg/base/downloads.cpp(1031):
[DEBUG] Time in subprocesses: 906484us
[DEBUG] Time in parsing JSON: 0us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 273us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 908 ms (906894us)

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (message):
  Failed to download file with error: 1
  If you are using a proxy, please check your proxy setting. Possible causes are:

  1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable
     to `https://address:port`. This is not correct, because `https://` prefix
     claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr
     , etc..) is an HTTP proxy. Try setting `http://address:port` to both
     HTTP_PROXY and HTTPS_PROXY instead.

  2. If you are using Windows, vcpkg will automatically use your Windows IE Proxy Settings
     set by your proxy software. See https://github.com/microsoft/vcpkg-tool/pull/77
     The value set by your proxy might be wrong, or have same `https://` prefix issue.

  3. Your proxy's remote server is out of service.

  If you've tried directly download the link, and believe this is not a temporary
  download server failure, please submit an issue at https://github.com/Microsoft/vcpkg/issues
  to report this upstream download server failure.

Call Stack (most recent call first):
scripts/cmake/vcpkg_download_distfile.cmake:270 (z_vcpkg_download_distfile_show_proxy_and_fail)
ports/re2/portfile.cmake:1 (vcpkg_download_distfile)
scripts/ports.cmake:175 (include)

Fixed by https://github.com/microsoft/vcpkg/pull/38148.

Duplicate of #38146