Imports are not formatted when long import lines are present

On some inputs containing long lines, rustfmt makes no changes, either to those lines or any other imports. Using shorter identifiers fixes the problem.
To Reproduce
Run rustup run nightly rustfmt --verbose --config imports_granularity=Crate --emit stdout on this input file:
use foo::bar;
use foo::{quuz, baz};
use abaadfsasdfdsfdfas::aasdffjsioejr::abc::sdsdf::sdfsdfsdf::sdfsdfdsf::{
    asdfasdefasdasdfsdfdfasdf::asdfasdasedfafasdfasdf,
};

The input file will be returned unchanged.
Expected behavior
Delete the final s from the initial abaadfsasdfdsfdfas and the correct behavior is seen; the output is
use abaadfsasdfdsfdfa::aasdffjsioejr::abc::sdsdf::sdfsdfsdf::sdfsdfdsf::asdfasdefasdasdfsdfdfasdf::asdfasdasedfafasdfasdf;
use foo::{bar, baz, quuz};

I can reproduce the same behavior with merge_imports=true on stable.
Meta

rustfmt version: rustup run nightly rustfmt --version returns rustfmt 1.4.36-nightly (7de6968 2021-02-07).
From where did you install rustfmt?: rustup
How do you run rustfmt: rustfmt

Done some more testing, and no option is needed to trigger this issue. If the first character of the last name in a format would go over the end of the line, then imports are not formatted. Try this with rustfmt --emit stdout test.rs
use z123::z1234567::z1234567::z1234567::z1234567::z1234567::z1234567::z1234567::z1234567::z1234567::asdf;
use b;
use a;

It is output unchanged. However, bump up the line width by one, and it correctly sorts the imports into alphabetical order: rustfmt--config max_width=101 --emit stdout test.rs:
use z123::z1234567::z1234567::z1234567::z1234567::z1234567::z1234567::z1234567::z1234567::z1234567::asdf;
use b;
use a;

Hey, can I get the only-with-option tag removed from this issue, now we know that it can be reproduced with no options? Thanks!

Hey, can I get the only-with-option tag removed from this issue, now we know that it can be reproduced with no options? Thanks!

Sure, although worth noting that the labels are really just for categorization, and this one primarily as a reminder when adding tests; the presence/absence of the only-with-option label has no impact on priority, etc.
Another thing to keep in mind is that it was a conscious decision in many cases to have rustfmt bail and revert to the original formatting in cases where it's impossible to format within the max_width constraints. I know that's not ideal in many cases and there's been some active discussions about changing that behavior, but it's not a minor change/quick fix.

Ah, fair, yep I'd assumed it was a prioritization thing.
For my example, one way to format such an import within max_width would be something like:
use a;
use b;
use z123::z1234567::z1234567::z1234567::z1234567::z1234567::z1234567::z1234567::z1234567::z1234567::{
    asdf,
},

Do you think that would be acceptable? If so, how difficult do you think it might be for someone new to the project to make this change? Right now the imports of my project are a bit of a mess and I'd love to automate cleaning them up, but we're blocked on that by this issue.

Do you think that would be acceptable? If so, how difficult do you think it might be for someone new to the project to make this change? Right now the imports of my project are a bit of a mess and I'd love to automate cleaning them up, but we're blocked on that by this issue.

Deepest apologies @ciphergoth, this must've slipped through a crack in the notifications inbox.
I think we'd have to version gate any change, but I do think your proposal may align closely enough the the Style Guide prescriptions for imports to be viable.
I'm not sure I can quantify the difficulty as I'm not sure what the root cause is. It seems to only popup in the presence of a tree, so I'd probably suggest starting somewhere around the location linked below. I suppose there's a chance it could be a simple fix, but imports can start to get complicated quickly so I also wouldn't be surprised if it ends up being involved and complex
https://github.com/rust-lang/rustfmt/blob/master/src/imports.rs#L967-L983


TypeScript: Feature Request: Fill switch statement on Enum (Visual Studio 2019)

Hi,
Not a bug, but a feature request please. Have been asked to post feature request here.
Version Used:
N/A
Steps to Reproduce:

Create an enum.
Create a variable in a method for that enum, assign value.
Type sw(tab)(tab) and press Enter.

Expected Behavior:
Like C#, enum values to be auto-listed as cases.
 let status: StatusETW = etw.EtwStatusId as StatusETW;
            switch (status) {
                case StatusETW.Cancelled:
                    break;
                case StatusETW.Completed:
                    break;
                case StatusETW.Draft:
                    break;
                case StatusETW.EligibleToWork:
                    break;
                case StatusETW.Expired:
                    break;
                case StatusETW.UnComplete:
                    break;
                case StatusETW.Unlock:
                    break;
                default:
                    break;
            }

Actual Behavior:
This happens:
let status: StatusETW = etw.EtwStatusId as StatusETW;
            switch (status) {

                default:
            }

Kind Regards.

That would be very nice to have in VSCode, too!

vs implment this uses snippet. https://docs.microsoft.com/en-us/visualstudio/ide/code-snippet-functions?view=vs-2019
But I think this should be a codeaction in typescript.
switch(expr)
{
default:
}

When cursor at switch or expr , and if expr's type is an enum type and empty switch body, should enable the code action to generate all enum cases.
Here enum means real enum type or union type like 'A'|'B'|1|true|null.


Doesn't work with MonkeyLoader's RML compatibility

I can probably make this work eventually

Currently got this working in a branch but it needs two DLLs to support both loaders https://github.com/Nytra/ResoniteHotReloadLib/tree/monkeySupport

This is ready to be used however when you open the project you need to build both HotReloadCore and then the one for whichever mod loader you are using, then copy both DLLs to rml_libs


[Bug]: add built on appsmith badge for error pages

Is there an existing issue for this?

[X] I have searched the existing issues

Description
https://www.figma.com/file/nVvIoLuCmTjvivejSnCML8/5XX-Error-states?node-id=2-179&t=ZNH2RybRhKQmYw3Q-0
https://github.com/appsmithorg/appsmith/pull/21917#issuecomment-1501492395
Steps To Reproduce
Got to an error page (e.g. turn off network)
Notice built on appsmith badge missing in CE (cloud and self-hosted)
Shouldn't be shown on EE edition.
Public Sample App
No response
Environment
Production
Issue video log
No response
Version
Appsmith v1.9.15-SNAPSHOT

I don't think this makes any sense


Item does not drop in touch device unless tapped outside div

Problem:
So I have this list with a Sortable applied to it. I am using VueJs along with Vuetify. I was initially using Vue.Draggable but decided to just use the base library i.e. Sortable since it gets the work done and is much more fluid. The problem however now (which was with vueDraggble as well) that in such an HTML layout (pen attached) the item does not DROP and an OVERLAY stays unless the user taps or touches somewhere on the screen.
You can reproduce this by going into iPad mode (works on chrome only, tested also on an actual iPad) and drag an item in the list, it doesnt drop.

From the console you can see that the the onEnd doesnt fire unless I click outside. Why does this happen? Also interesting is that I'm using it in another page with loads of complicated HTML and it doesn't happen there.
JSBin/JSFiddle demonstrating the problem:
Note: Please click APPLY SORTABLE to turn sortable on, for some reason the mounted was running before the DOM.
https://codepen.io/adnanchang/pen/yLNNqPb?editors=1010

If you're using Vue, then you should use the component. It's there for a reason.
Thank you for providing a demonstration. Since the project is in vue without using the recommended component, there's nothing we can do.
The vue-draggable component reverses any DOM chages that Sortable makes, and allows Vue to do the changes based on the data. The source code of the component is quite complex because it's doing a lot of work to guarantee it the data and the DOM stay synced.
I got this error in the console of my chromium when loading it up. Did you get something similar in the example?
vue.js:640 [Vue tip]: <v-row v-for="item in items">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.

Hi, actually I was using vueDraggable in the beginning and the problem persisted since then. And since I am taking out vuedraggable all over the project, I thought I could use just SortableJS over all, any idea why this is happening and how I can work around it? It doesnt happen on desktop.
And no, I dont see such an error.

Have you posted on the vue-draggable issues? He may be able to help you out, since it's a bug.
https://github.com/SortableJS/Vue.Draggable/issues
There's nothing we can do here, as the issues is related to Sortable in the framework and not Sortable on it's own.

Hi, actually I was using vueDraggable in the beginning and the problem persisted since then. And since I am taking out vuedraggable all over the project, I thought I could use just SortableJS over all, any idea why this is happening and how I can work around it? It doesnt happen on desktop.
And no, I dont see such an error.

Did you find any solution to this? I am having the same problem. I've used SortableJS direct first.. had the problem. Then now using vueDraggable which uses SortableJS, and still have the same problem.
The problem appears to be in the underlying SortableJS and not VueDraggable.. will report any findings here. It's needing an extra tap anywhere on the screen for the dragOver to register..

Hi, actually I was using vueDraggable in the beginning and the problem persisted since then. And since I am taking out vuedraggable all over the project, I thought I could use just SortableJS over all, any idea why this is happening and how I can work around it? It doesnt happen on desktop.
And no, I dont see such an error.

@adnanchang Did you find any solution to this? I am having the same problem. I've used SortableJS direct first.. had the problem. Then now using vueDraggable which uses SortableJS, and still have the same problem.
The problem appears to be in the underlying SortableJS and not VueDraggable.. will report any findings here. It's needing an extra tap anywhere on the screen for the onEnd to register..

Problem:
So I have this list with a Sortable applied to it. I am using VueJs along with Vuetify. I was initially using Vue.Draggable but decided to just use the base library i.e. Sortable since it gets the work done and is much more fluid. The problem however now (which was with vueDraggble as well) that in such an HTML layout (pen attached) the item does not DROP and an OVERLAY stays unless the user taps or touches somewhere on the screen.
You can reproduce this by going into iPad mode (works on chrome only, tested also on an actual iPad) and drag an item in the list, it doesnt drop.

From the console you can see that the the onEnd doesnt fire unless I click outside. Why does this happen? Also interesting is that I'm using it in another page with loads of complicated HTML and it doesn't happen there.
JSBin/JSFiddle demonstrating the problem:
Note: Please click APPLY SORTABLE to turn sortable on, for some reason the mounted was running before the DOM.
https://codepen.io/adnanchang/pen/yLNNqPb?editors=1010

I finally found why, you're using your sortable component inside a v-tab item and the touch directive of v-tab-item is messing with your sortable component, you have to put your component outside a tab or find a way to disable touch directives on tabs.

I met the same problem using Vuetify. If it helps someone: you need to add the "touchless" attribute to your " v-tabs-items"


Unable to look at the links for the Mods

Basically with the new update you cannot scroll down to look at the links for the mods (I use them to get more information) Id have to either enlarge the window or look it up manually to get the link.

You have to move the splitter.
 ⇒


added korkut

Quick and simple image processing at the command line.
By submitting this pull request, I promise I have read the contribution guidelines twice and ensured my submission follows it. I realize not doing so wastes the maintainers' time that they could have spent making the world better. 🖖
⬆⬆⬆⬆⬆⬆⬆⬆⬆⬆

...

Thanks for the suggestion. I'm unfortunately going to pass on this one. I have a lot of PRs to review, so I'm not able to write a custom response.


fix: Test one more refactoring for buttons

One more try for button refactoring
In this case we add classes specifically for a button with all variants and such.
I have only fixed for 2 buttons, secondary and primary. So it will be a huuuuge amount of code to be added in the component libraries.
As you see - the conditions in the components will grow a lot. But for the classes - it can be structured so we don't add duplicates(what I have here can be even more granular but I chose not to do it all for this POC). And in that matter we can be sure that the colors and sizes won't be overidden. No importants(I think) will be needed.

@siljec @BalbinaK A small POC(only two buttons fixed) with the second suggestion I had in my previous PR for the button refactoring. Wdyt?

I'm not a huge fan of the fact that we are adding a lot more code to handle this, but I agree that it's nice to avoid to use important to override "same" classes! But the buttons looks good, and I agree that it will be easier to find issues 💪


Add new agents of go 17 and go 18

The upstream PR is https://github.com/kubesphere/devops-agent/pull/70

/hold until we have a release


Make the password requirements more easily identifiable.

Problem
In a previous round of testing:
Many users did not see the hint text for creating a password and it took more than 1 try to create an acceptable password. 4/6 people put in passwords that did not meet the requirements.
Solution
Make the password requirements more easily identifiable. Potentially breaking them into bullets.

Working on this here: https://www.figma.com/file/89fRce4gmy64UIArSZoAM8/v3.-GC-Forms-(builder-and-vault)?type=design&node-id=694-39799&t=yRchStV7VlQ7LSU4-4

Proposed design, splitting password creation on a new page that would mirror the password reset, be more similar to Notify's "Create a password" pattern, and help reduce cognitive load for users:

Related to https://github.com/cds-snc/platform-forms-client/issues/2129#issuecomment-1563406793


Add let operator

We need a form of operator that does not bind the operator name in its template. Analogous to let name = macro {}.
// stack overflow
operator + 12 left { $r, $l } => #{ (function(l, r) { return l + r})($r, $l0) }

Some bikeshedding:
// terrible, not analogous to real let
let operator + 12 left { $r, $l } => #{ (function(l, r) { return l + r})($r, $l0) }
// ugly
let + = operator 12 left { $r, $l } => #{ (function(l, r) { return l + r})($r, $l0) }

// or we could invert, current syntax doesn't bind in template
operator + 12 left { $r, $l } => #{ (function(l, r) { return l + r})($r, $l0) }
// to opt into binding in the template
operator rec + 12 left { $r, $l } => #{ (function(l, r) { return l + r})($r, $l0) }
rec operator + 12 left { $r, $l } => #{ (function(l, r) { return l + r})($r, $l0) }
roperator + 12 left { $r, $l } => #{ (function(l, r) { return l + r})($r, $l0) }

Actually, it it ever necessary to have the operator bound in the template? Maybe we just drop any syntax that binds in the template?

Any idea if this is/has been implemented (perhaps in a separate branch)?
The reason I ask is that for most cases, I can separate the use of the native operators into a separate module, import them, and redefine the operators using the operator macro:
var lops = require('./lifted-operators');

operator +   14 { $r } => #{ lops.add(0, $r) }
operator +   12 left { $l, $r } => #{ lops.add($l, $r) }
...

where, in lifted-operators.js, I can define the add function using +.
However, there is a particular use case for operator macros, where it is desirable for the redefined operators to have global scope when necessary. For example, when doing abstract interpretation, which in turn, typically requires operator overloading.
The idea there is to take whatever js program desired, with all the respective require statements, and have the redefined operators take global scope for the program and its dependencies.
With this in mind, I have two (inter-related) questions:

What would be the most effective way of achieving the requirement for global operator rewriting?
If I have a separate operators.sjs file with the redefined macros, how could I export the redefined operators without naming the exports differently?

Any idea if this is/has been implemented (perhaps in a separate branch)?

No I haven't had time to work on this yet.

What would be the most effective way of achieving the requirement for global operator rewriting?

You mean have sjs automatically walk each require statement and install the custom + etc. operators? Currently the only hacky way I can think of would be to write a require macro that uses the path to the dependency and compiles it to a new file using the sweet.js API with your custom operators as a module and then expand to a normal require with its path pointing to the freshly compiled file.
We should be able to make this less hacky when es6-modules lands.

If I have a separate operators.sjs file with the redefined macros, how could I export the redefined operators without naming the exports differently?

Sorry, I'm not sure what you're asking.

You mean have sjs automatically walk each require statement and install the custom + etc. operators? Currently the only hacky way I can think of would be to write a require macro that uses the path to the dependency and compiles it to a new file using the sweet.js API with your custom operators as a module and then expand to a normal require with its path pointing to the freshly compiled file.

Right. That's what I figured I'd have to do.
I was planning on using a version of sweetify with browserify that didn't restrict itself to .sjs files.

We should be able to make this less hacky when es6-modules lands.

Ah I see. Thanks.

If I have a separate operators.sjs file with the redefined macros, how could I export the redefined operators without naming the exports differently?
Sorry, I'm not sure what you're asking.

Apologies, I'm not entirely sure how to frame the question.
Suppose I had a macros file operators.sjs that looked like this:
operator +   14 { $r } => #{ ad.add(0, $r) }
...

How would/should I write the exports and/or requires such that I can use these in a node-loader style to do what I wanted in the other question; basically have these operator-macros apply to those other files. I'm thinking this will require, in say foo.js where I want to apply the macros, something like:
var sjs = require('sweet.js');
var ops = require('./macros/operators.sjs')

but I don't quite understand
a. how to export operator macros -- I don't seem to be able to write
module.exports = {
  +: +,
  ...
}

b. how not to then have to refer to the macros themselves as ops.+ within foo.js
I'm not sure if that explains the question any better. :-)

Ah! Got it I think.
Yeah, so this one gets tricky. The "right" answer is wait for es6-modules but since I'm in the middle of thesis writing this might be a while.
But there are still some hacky solutions in the meantime.
Fist, to your question about exporting operators, it's just like exporting normal macros in sweet.js so to export + you just export +. But we currently have no way of namespaceing them on import, so you can't do ops.+ (in es6-modules you'll be able to though!).
The simplest solution for you might be a harness snippet you just concatenate with the files you want to compile. So harness.js might look like:
var lops = require("lifted-operators");
operator + 14 { $r } => #{ lops.add(0, $r) }
// other custom operators

Then you can just add it to the beginning of every file you want to compile:
var harness = fs.readFileSync("harness.js");
sweet.compile(harness + foo)
// ...

Adding the harness and compiling could be done either through your deep require macro or if you don't need to automatically walk the require paths you could just do this as a little sjs replacement compile script. This is basically what I did with sweet-virtual-values.
Does that help?

Ah I see. Ok I think I understand better now.
The issue was I didn't want to refer the the operators as ops.+. Basically, there are these preexisting files that use the various js operators +, -, etc. and I want to inject my lifted functions into those locations; e.g. turn a+b into ops.mul(a,b) using sweetjs macros, by making the most minimal of changes to the prexisting files, ideally none at all, but I don't know if that's likely.
What I have now is basically the same as what you suggest, except I abstracted the require statement in harness.js into a macro of its own.
I did this mainly because I wanted to be able to run both on the command-line and on the browser.
So now, to run in the browser, I can call browserify with the sweetify transformation that should compile things appropriately with the macros.
For the command-line use, I just do what you suggest and call sweet.compile with the requisite require and appropriate macros and things should work.
I'm quite pleased with this setup. This gives me a quite general setup to do abstract interpretation in javascript.
I'm using all this for the ad package, which should allow for the computation of the gradients of arbitrary programs in javascript (More on AD).
Good luck with the thesis!

Ooh neat project! Keep me posted on how it works out!

I'm mass closing issues due to the release of 1.0 obviating lots of bugs. If you feel this issue is something we still need to address feel free to reopen.


RV3028 RTC with PICO, manual set time doesn't work correctly.

Pi Pico with latest Pimoroni uf2 file, attached to PICO Breakout Garden with RV3028 in first i2c socket.
rtc.set_time(00, 00, 09, 02, 06, 07, 00)
gets me
Date: 06/07/2048, Time: 09:00:20AM
and
rtc.set_time(00, 00, 09, 02, 06, 07, 21)
gets me
Date: 06/07/2069, Time: 09:00:00AM
Using 2021 for year gets me
ValueError: year out of range. Expected 0 to 99
EDIT: Is the following correct?
rtc.set_time(sec, min, hour, weekday, date, month, year)
sec = 0-59
min = 0-59
hour = 0-23
weekday = 1-7
date = 1-31
month = 1-12
year = 0-99
Somebody else on the Pimoroni forum suggested the following.
It looks like a library bug. rtc.set_time constrains the year to the range [00-99], but then calls the corresponding RV3028 driver routine, which treats it as a 16-bit unsigned int and subtracts 2000 from it.
When you take all that into account, the results you got are actually inevitable:
00 (rtc) → -2000 (RV3028) → 0xf830 (16-bit uint) → 72 (BCD) → 48 (decimal)
21 (rtc) → -1979 (RV3028) → 0xf845 (16-bit uint) → 105 (BCD) → 69 (decimal)
2021 (rtc) → 21 (RV3028) → 0x0015 (16-bit uint) → 33 (BCD) → 21 (decimal)
Methinks rtc.set_time should actually take the full year instead of artificially constraining the input value.
https://forums.pimoroni.com/t/rv3028-rtc-with-pico-set-time-to-local-time/17419

Looks like you - or the forum user at least - are correct. I definitely prefer the "2000 to 2099" range exposed by the RV3028 library, so I'll tweak Python to enforce that instead.

It should be fixed in this CI build of MicroPython if you want to give it a shot (and if this link actually works for you!) - https://github.com/pimoroni/pimoroni-pico/suites/3180769646/artifacts/73343152

I am not smart.

Thanks Phil, I downloaded and loaded that firmware.uf2 file to that PICO and the set time now works. Entering 2021 for year got me 2021.


add issue and pr templates

Add issue and PR templates per community guidelines of Github

[x] PR description included and stakeholders cc'd
[ ] sanitycheck passes
[ ] relevant documentation is changed or added

Notes: Added issue and pull request templates.

replaces #10170

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@ea716bf). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master   #10276   +/-   ##
=========================================
  Coverage          ?   53.05%
=========================================
  Files             ?      214
  Lines             ?    26200
  Branches          ?     5646
=========================================
  Hits              ?    13900
  Misses            ?    10027
  Partials          ?     2273

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 ea716bf...dd6acce. Read the comment docs.

Is this supposed to have reviewers?


Unique and Exist validator fixes

Q
A

Is bugfix?
yes

New feature?
no

Breaks BC?
no

Tests pass?
yes

Fixed issues
#13842

@vladis84 check the code. That's what I was talking about.

Same fix should be added to ExistValidator as well, as it has the same problem.

This implements parts of what is discussed in #7263

@klimov-paul added fix for ExistValidator.

This could be simplified a lot if #11646 will be merged.

@cebe can you take a look at #11646?

Sure, but its not trivial to handle. I already spent a lot of time on that issue and finding a good solution is quite hard.

Then I'm going to merge this one as is.

Adjusted method names.

no need to hurry with this.

@cebe done.

@dynasource done.


Short decription of the RK4 method.

Change a notation (y_0 to \tilde y) to avoid a confusion.
Add the section on Runge-Kutta (and RK4).
Add a link to video. :-)

thanks!


Request to correct Slew / Step conditional formula on Windows Server 2016 and later OS.

Hi, I'm Kazuya of Microsoft Japan CSS.
The following public information is incorrect because the element of whether to use UpdateInterval is missing.
Windows Time service tools and settings (Configure computer clock reset)
https://docs.microsoft.com/en-us/windows-server/networking/windows-time-service/windows-time-service-tools-and-settings#configure-computer-clock-reset

Windows Server 2016 and later:
|CurrentTimeOffset| ÷ (16 × PhaseCorrectRate × pollIntervalInSeconds) ≤ SystemClockRate ÷ 2

Please modify as follows.

Windows Server 2016 and later:
In Windows Server 2016 and later, the correction element of PhaseCorrection whether to use UpdateInterval is implemented.
It is calculated as follows.
First, PhaseCorrection is calculated using the following formula.
PhaseCorrection = |CurrentTimeOffset| ÷ (16 × PhaseCorrectRate × pollIntervalInSeconds)
Next, PhaseCorrection is corrected using the following formula.
MaximumCorrection = |CurrentTimeOffset| / (UpdateInterval in Seconds)
PhaseCorrection = min(PhaseCorrection, MaximumCorrection)
Then, it is determined whether the following condition is satisfied.
PhaseCorrection ≤ System Clock Rate ÷ 2

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

ID: 1d09b16e-4bbb-91fa-3d84-e7623ec4dc07
Version Independent ID: b6eadad5-0167-34b6-ed3a-16fa7ee83c60
Content: Windows Time service tools and settings
Content Source: WindowsServerDocs/networking/windows-time-service/Windows-Time-Service-Tools-and-Settings.md
Product: windows-server
Technology: networking
GitHub Login: @Teresa-Motiv
Microsoft Alias: v-tea

@v-dasis,
Please update the author/ms.author metadata for this article. I'm still getting pinged for changes and fixes, and I don't have the correct repo permissions to reassign them.

Teresa, you would still be the owner for this article. My involvement ended after re-organizing/clarifying the content as part of the BI metrics improvement task our team did for specific Windows Server articles (high page count, high bounce rate, negative user comments, etc).  It does not extend to our team of 3 to become the new owners/authors for all articles we touch as part of this effort. I would recommend reaching out to the PM(s) for Time of Service to see who they recommend reassigning ownership to. Thanks.

#assign:xelu86

Hey @kayoda23,
Thanks again for contacting Microsoft. We value your feedback.
A documentation change has been made concerning the formulas used and will be live after the next business day. We will be closing this as resolved. Thank you and have a most pleasant day. #please-close


[FEA] Support write a Hive text table

I wish we can support writing a Hive text table.
Eg:
import org.apache.spark.sql.functions._
import spark.implicits._
import org.apache.spark.sql.types._

var df = spark.sparkContext.parallelize(Seq(1)).toDF()
df=df.withColumn("value82", (lit("123456.78").cast(DecimalType(8,2)))).
           withColumn("value63", (lit("123.456").cast(DecimalType(6,3)))).
           withColumn("value1510", (lit("12345.0123456789").cast(DecimalType(15,10)))).
           withColumn("value2510", (lit("123456789012345.0123456789").cast(DecimalType(25,10)))).
           withColumn("value2901", (lit("1234567890123456789012345678.1").cast(DecimalType(29,1)))).
           withColumn("value3802", (lit("123456789012345678901234567890123456.01").cast(DecimalType(38,2)))).
           withColumn("timestring", (lit("1997-02-28 10:30:00.012")))

df.write.format("parquet").mode("overwrite").save("/tmp/df.parquet")
df=spark.read.parquet("/tmp/df.parquet")
df.createOrReplaceTempView("df")

spark.sql("create table test_hive_text_table  as select * from df")

Not-supported-messages:
!Exec <DataWritingCommandExec> cannot run on GPU because not all data writing commands can be replaced
  ! <CreateHiveTableAsSelectCommand> cannot run on GPU because GPU does not currently support the operator class org.apache.spark.sql.hive.execution.CreateHiveTableAsSelectCommand

The Spark RAPIDS plugin does not currently support writing Hive delimited text files. It would be good to add this, so as to support queries like:
CREATE TABLE my_text_table AS SELECT ...

This should accelerate the write to my_text_table. For the moment, the supported types can be kept identical to those that have read support. i.e. All types except:

STRUCT
ARRAY
MAP
BINARY


Not able to update the admin user via the UI

No logs are shown in the console. I am not able to update the admin user data. Is this expected? If so, I do not see any warning pop-up because the "Save" button is still blue.

confirming, https://github.com/pulp/pulp-ui/blob/main/src/containers/settings/user-profile.tsx#L116
looking into making it work again, it seems user-edit does work partially


Mismatch between package name and sourceInfo

What happened:
I scanned my spring boot project using maven. Among the SBOM results, it was confirmed that the file names of sourceInfo and package name were different.

package name/version is xsdlib/2013.6.1, but sourceInfo is woodstox-core-6.2.4.jar
What you expected to happen:
I expected that there would be a package name and sourceInfo matching it.
Steps to reproduce the issue:
After adding woodstock-core version 6.2.4 to pom.xml, create a war file through mvn install to create a target folder. Then, create sbom from the entire project folder using the syft program. (I used spdx-json format.)
Anything else we need to know?:
N/A
Environment:

Output of syft version: syft 0.100.0
OS (e.g: cat /etc/os-release or similar): Windows 10(22H2) build 19045.3803

Thanks for the report @SSJune821 -- sometimes Java archives contain multiple packages (very common for .ear, .war, and similar but also can be true for JARs). Would you be able to provide a set of steps to reproduce the problem to make sure we're understanding it correctly?

Thanks for the report @SSJune821 -- sometimes Java archives contain multiple packages (very common for .ear, .war, and similar but also can be true for JARs). Would you be able to provide a set of steps to reproduce the problem to make sure we're understanding it correctly?

@kzantow Yes. I created a Spring Starter project using STS4. And in pom.xml
<dependency>
<groupId>com.fasterxml.woodstox</groupId>
<artifactId>woodstox-core</artifactId>
<version>6.2.4</version>
</dependency>

Add and create a war file with maven install. After that, target my project folder and run syft  --output spdx-json=mybom.json
Thank you

Hi @SSJune821,
Thanks for the details. As a simple test, I downloaded the woodstox-core jar directly and ran Syft on it:
tgerla@Timothys-MacBook-Pro-2 syft-2483 % syft .
 ✔ Indexed file system                                                                                .
 ✔ Cataloged contents                                                                       cdb4ee2aea69cc6a83331bbe96dc2caa9a299d21329efb0336fc02a82e1839a8
   └── ✔ Packages                        [3 packages]
NAME           VERSION   TYPE
isorelax       20090621  java-archive
woodstox-core  6.2.4     java-archive
xsdlib         2013.6.1  java-archive

So I believe that this jar file indeed includes both woodstox-core and xsdlib. The sourceInfo field is not necessarily going to match the name of every package found, but instead it's a simple text descriptor of the origin of the package. In this case, xsdlib and isorelax are packages found inside the woodstox-core jar, which is what the sourceInfo field is saying.
Does this help?

Just a quick follow up: I checked the syft json response for this the result you're showing in your original example looks correct:
    {
      "id": "623ab3ae0e79af29",
      "name": "xsdlib",
      "version": "2013.6.1",
      "type": "java-archive",
      "foundBy": "java-archive-cataloger",
      "locations": [
        {
          "path": "/woodstox-core-6.2.4.jar",
          "accessPath": "/woodstox-core-6.2.4.jar",
          "annotations": {
            "evidence": "primary"
          }
        }
      ],
      "licenses": [],
      "language": "java",
      "cpes": [
        "cpe:2.3:a:xsdlib:xsdlib:2013.6.1:*:*:*:*:*:*:*",
        "cpe:2.3:a:java:xsdlib:2013.6.1:*:*:*:*:*:*:*",
        "cpe:2.3:a:dev:xsdlib:2013.6.1:*:*:*:*:*:*:*",
        "cpe:2.3:a:msv:xsdlib:2013.6.1:*:*:*:*:*:*:*"
      ],
      "purl"<EMAIL_ADDRESS>      "metadataType": "java-archive",
      "metadata": {
        "virtualPath": "/woodstox-core-6.2.4.jar:net.java.dev.msv:xsdlib",
        "pomProperties": {
          "path": "META-INF/maven/net.java.dev.msv/xsdlib/pom.properties",
          "name": "",
          "groupId": "net.java.dev.msv",
          "artifactId": "xsdlib",
          "version": "2013.6.1"
        },
        "pomProject": {
          "path": "META-INF/maven/net.java.dev.msv/xsdlib/pom.xml",
          "parent": {
            "groupId": "net.java.dev.msv",
            "artifactId": "msv",
            "version": "2013.6.1"
          },
          "groupId": "net.java.dev.msv",
          "artifactId": "xsdlib",
          "version": "",
          "name": "MSV XML Schema Library",
          "description": "XML Schema datatypes library"
        }
      }
    }

      "name": "xsdlib",
      "SPDXID": "SPDXRef-Package-java-archive-xsdlib-623ab3ae0e79af29",
      "versionInfo": "2013.6.1",
      "supplier": "NOASSERTION",
      "downloadLocation": "NOASSERTION",
      "filesAnalyzed": false,
      "sourceInfo": "acquired package info from installed java archive: /woodstox-core-6.2.4.jar",

The virutal path in the syft json output shows that this package was pulled from the woodstox-core archive:
/woodstox-core-6.2.4.jar:net.java.dev.msv:xsdlib

@tgerla is spot on about how sourceInfo is being used.


bump version in package.json to v2.17.6

release version v2.17.6

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Several errors when invoking res-2 options that are template dependent when using --output-spaces

I am using fmriprep version 1.4.0.
Basically it looks like for many MNI152 templates, I am not able to successfully run with the res-2 option. Are there some templates for which this will work or must I only stick to native BOLD dimensions?
I am invoking fmriprep with the following options --use-aroma and --output-spaces MNI152NLin2009cAsym MNI152NLin6Asym:res-2   fsaverage5 T1w.
I hit the following error:
Process Process-2:
Traceback (most recent call last):
  File "/usr/local/miniconda/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/local/miniconda/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/cli/run.py", line 608, in build_workflow
    work_dir=str(work_dir),
  File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/base.py", line 258, in init_fmriprep_wf
    use_syn=use_syn,
  File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/base.py", line 549, in init_single_subject_wf
    skull_strip_template=skull_strip_template,
  File "/usr/local/miniconda/lib/python3.7/site-packages/smriprep/workflows/anatomical.py", line 305, in init_anat_preproc_wf
    template_list=vol_spaces)
  File "/usr/local/miniconda/lib/python3.7/site-packages/smriprep/workflows/norm.py", line 103, in init_anat_norm_wf
    'This is embarrassing - custom templates are not (yet) supported.'
NotImplementedError: This is embarrassing - custom templates are not (yet) supported.Please make sure none of the options already available via TemplateFlow fit your needs.

On the other hand, when I invoke --output-spaces MNI152NLin2009cAsym MNI152NLin6sym:res-2   fsaverage5 T1w, I get a different read only nipype error, probably because the default directory where templates are being modified has no write access.
The crash report is related to this node
Node: fmriprep_wf.single_subject_xxxxx_wf.anat_preproc_wf.anat_norm_wf.registration
with the following error
num_threads = 4
orientation = RAS
out_report = report.svg
reference = T1w
reference_image = <undefined>
reference_mask = <undefined>
settings = <undefined>
template = MNI152NLin6Sym
template_resolution = 1

Traceback (most recent call last):
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/multiproc.py", line 69, in run_node
    result['result'] = node.run(updatehash=updatehash)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 472, in run
    result = self._run_interface(execute=True)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 563, in _run_interface
    return self._run_command(execute)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 643, in _run_command
    result = self._interface.run(cwd=outdir)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 375, in run
    runtime = self._run_interface(runtime)
  File "/usr/local/miniconda/lib/python3.7/site-packages/niworkflows/interfaces/mni.py", line 125, in _run_interface
    ants_args = self._get_ants_args()
  File "/usr/local/miniconda/lib/python3.7/site-packages/niworkflows/interfaces/mni.py", line 344, in _get_ants_args
    desc=None, suffix=self.inputs.reference)
  File "/usr/local/miniconda/lib/python3.7/site-packages/templateflow/api.py", line 39, in get
    _s3_get(filepath)
  File "/usr/local/miniconda/lib/python3.7/site-packages/templateflow/api.py", line 139, in _s3_get
    with filepath.open('wb') as f:
  File "/usr/local/miniconda/lib/python3.7/pathlib.py", line 1176, in open
    opener=self._opener)
  File "/usr/local/miniconda/lib/python3.7/pathlib.py", line 1030, in _opener
    return self._accessor.open(self, flags, mode)
OSError: [Errno 30] Read-only file system: '/opt/templateflow/tpl-MNI152NLin6Sym/tpl-MNI152NLin6Sym_res-01_T1w.nii.gz'

Relatedly, I was using the template/ resampling grid options to output the fmri in exactly the same size and shape as the MNI152 2mm brain distributed with FSL (91x109x91) so that I could save the data as vectorized npy files... is this no longer possible? (Also getting these errors now)

Hi @mnarayan,
Regarding the first error, you are right. That exact problem led us to brew several release candidates, up until rc4 - could you please check that is not happening anymore with version 1.4.1rc4?
Regarding the second error, you are right again. Can you describe a bit further your settings so that I can give you a recommendation on how to run it?
@alexlicohen yes, you would do that with the <template-id>:res-2 semantic (see https://fmriprep.readthedocs.io/en/latest/spaces.html)

Thanks Oscar.
So on using 1.4.1rc4 I did not run into any issues when I simply added :res-2  to the default template MNINLin2009Asymc but without --use-aroma, it seems to work fine. That is, I seem to be able to specify :res-2 without an issue in this case.
 It looks like whatever happens as a consequence of invoking --use-aroma.

I also realized that --output-spaces MNI152NLin6Asym:res-2 gives me the output I want, but an example in the documentation of how to appropriately set a custom template would be useful for those that need it, i.e.,
is it:
--output-spaces /standard/MNI152_T1_2mm_brain_mask.nii.gz
or:
--output-spaces /standard/MNI152_T1_2mm_brain_mask.nii.gz:res-2
or something else...

Hi @alexlicohen I totally agree that an example of custom templates should be added to the docs - I have added a new issue. If you feel like writing it, please let me know and I'll provide further details.

Hi @mnarayan,
If I understood correctly, you are managing to work with and without --use-aroma after switching to 1.4.1rc4?
Regarding the second error, can we follow up via neurostars? I believe more people will be interested in fixing that particular issue. Posted here - https://neurostars.org/t/fmriprep-templateflow-fails-with-oserror-errno-30-read-only-file-system/4588.
Please reopen this issue if you feel this didn't address all the issues.


fix: Update aws-sdk packages to mitigate reported vulnerability

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `yarn` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

package.json
yarn.lock

Note for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.
Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

471/1000  Why? Recently disclosed, Has a fix available, CVSS 3.7
Regular Expression Denial of Service (ReDoS) SNYK-JS-FASTXMLPARSER-5777726
No
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Regular Expression Denial of Service (ReDoS)

:tada: This PR is included in version 1.4.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Remove trailing white-space (mainly in source downloaded from Code Pro…

Hi Andrew,
Just testing a pull request.
However, these whitespace fixes are worth adding.

Thanks for that - it's really appreciated.


small bug for chinese user

press "shift“ to switch input method is the commonly used in chinese.
but in atom, when press "shift+cmd+..." is invited the input method switch,but is not mine intent

What do you mean by the "input method"? What keyboard layout are you using?

@mnquintana By "input method", @jatlee means to switch from typing English to Chinese, and vice versa.  Google Pinyin Input and the builtin Microsoft Pinyin are just two examples that use the shift key to switch between writing English and Chinese.  I don't think keyboard layout is relevant here.
That being said I can't reproduce this by trying to press Shift+Ctrl+L or Ctrl+Shift+L to activate the grammar selector.


Couldn't install on Archlinux

Hi, I tried to install following the instruction, but couldn't...
it seems to be a syntax problem... could you help?
[root@alarm plex-lastfm-scrobbler-master]# python setup.py install
running install
running build
running build_py
running build_scripts
running install_lib
byte-compiling /usr/lib/python3.4/site-packages/plex_scrobble/plex_monitor.py to plex_monitor.cpython-34.pyc
File "/usr/lib/python3.4/site-packages/plex_scrobble/plex_monitor.py", line 50
except urllib2.URLError, e:
^
SyntaxError: invalid syntax
byte-compiling /usr/lib/python3.4/site-packages/plex_scrobble/scrobble_cache.py to scrobble_cache.cpython-34.pyc
File "/usr/lib/python3.4/site-packages/plex_scrobble/scrobble_cache.py", line 48
print u'time={key}, artist={artist}, track={track}, album={album}age={age}'.format(
^
SyntaxError: invalid syntax
byte-compiling /usr/lib/python3.4/site-packages/plex_scrobble/pre_check.py to pre_check.cpython-34.pyc
File "/usr/lib/python3.4/site-packages/plex_scrobble/pre_check.py", line 18
print self.BAR
^
SyntaxError: invalid syntax
byte-compiling /usr/lib/python3.4/site-packages/plex_scrobble/lastfm.py to lastfm.cpython-34.pyc
File "/usr/lib/python3.4/site-packages/plex_scrobble/lastfm.py", line 64
except urllib2.URLError, e:
^
SyntaxError: invalid syntax
running install_scripts
changing mode of /usr/bin/plex-scrobble.py to 755
running install_data
running install_egg_info
Removing /usr/lib/python3.4/site-packages/plex_scrobble-1.3.3-py3.4.egg-info
Writing /usr/lib/python3.4/site-packages/plex_scrobble-1.3.3-py3.4.egg-info

@howtoslip thanks for reporting. Looks like Arch is using Python 3.4 as their default Python interpreter. Plex Scrobble will not work with Python 3 yet.
Do you have a Python 2 installation on that host? try python2 from a shell? I would also recommend against installing the script as root. Try to install within a Python 2 virturalenv as a non privileged user. The README should have some details on how to go about this.
Some details with regards to Arch specific and multiple python versions at http://stackoverflow.com/questions/7297094/proper-way-to-manage-multiple-versions-of-python-on-archlinux .

hi @howtoslip, this should now be resolved under https://github.com/jesseward/plex-lastfm-scrobbler/pull/45


Fix enum name.

I got this compilation error:

error: no associated item named Nodiv found for type stm32f103xx::rcc::cfgr::PllxtpreR in the current scope
--> src/frequency.rs:69:13
|
69 |             rcc::cfgr::PllxtpreR::Nodiv => 1,
|             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error

Thanks, I just changed the name from nodiv to div1 to match the stm hal. you'll want to pull my most recent changes, this is still in flux. Look at the new blinky example, it's updated to blink the led on the bluepill.

Thanks! Will try it on my stm32f1 board. Dont know if it is the same as the bluepill though.

you'll need to change the memory.x file, replace 64K with 128K and 20K with 8K. you'll also need to change the led pin in led.rs from 13 to 9. I think it should work after that.

Brilliant! It works. But it really is a bluepill board. It just wasnt named like that when i bought it.


Network module

Describe the issue
A clear and concise description of what the bug is.
Network module doesn't update ESSID when connected
Expected behavior:
Update the ESSID of the current connection.
A clear and concise description of what you expected to happen.
Show current network ESSID when connected
Actual behavior:
It displays previous ESSID used. If I restart the bar it will update to the current connection. Otherwise, will keep displaying previously used connection
What actually happens
Was it working before?

Did you also experience this bug in an earlier version of polybar?
If no, what was the last version where this worked correctly?

To Reproduce
A minimal but complete config with which the problem occurs:

List any other steps needed to reproduce the issue besides starting polybar with the config you posted above.
Polybar Log
Post everything polybar outputs to the terminal when you run it and the issue occurs below
No errors when starting polybar

Screenshots
If applicable, add screenshots to help explain your problem.
Environment:

WM: bspwm
Distro: Archlinux
Output of polybar -vvv:
polybar 3.3.0-92-g7724c4dc

Features: +alsa +curl -i3 -mpd +network(libnl) +pulseaudio +xkeyboard
X extensions: +randr (+monitors) -render -damage -sync +composite +xkb +xrm +xcursor
Build type: Release
Compiler: /usr/bin/c++
Compiler flags: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -Wextra -Wpedantic -O3 -DNDEBUG
Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
Additional context
Add any other context that you think is necessary about the problem here.

So when you connect to another network it doesn't update the essid?
Could you please add steps to reproduce this if you are doing anything out of the ordinary. For me it always updated the ssid when the network changed.

I am not doing anything out of the ordinary. If I connect to a wireless connection. It always shows the previous used connection. For example I go to a coffee shop in the morning, then I go back home and connect there. It shows the ESSId from the coffee shop. Unless I reload polybar

This does look like a bug. This has never happened to me before, at least not as far as I'm aware.
Could you check that the ssid is properly updated in the output of iw dev wlp3s0 info where you replace wlp3s0 with your own wireless interface.
Are other things like upspeed and downspeed also not updating in the network module?

Yes, it is properly updated. Yet my bar is showing the one I used a day ago. LitteBigWifi5 is the one previously used.
iw dev wlp2s0 info
Interface wlp2s0
ifindex 7
wdev 0x500000001
addr 44:1c:a8:e1:db:13
ssid hackedwifi
type managed
wiphy 5
channel 161 (5805 MHz), width: 20 MHz, center1: 5805 MHz
txpower 31.00 dBm

Are other things like upspeed and downspeed also not updating in the network module?

Could you answer this question. It will help us track down what exactly is going wrong.

Yes, those work. The SSID doesn't update as reflected on the link below. I am connected to PEETS and polybar shows the previous SSID used about a day ago.
https://imgur.com/a/Axvl3PG

I'm also experiencing this bug. If it helps, I've noticed it on my MacbookPro15,5 running Arch Linux but not my T480s running Fedora. Both machines are have polybar 3.4.0.
I can reliably reproduce the issue on Arch with the following steps:

Have two wireless networks saved in NetworkManager, network A and network B.
Connect to network A
systemctl suspend
Either move out of range of network A or stop it from broadcasting (just tested with a mobile hotspot)
Make sure you're in range of network B
Resume the system. The machine will connect to network B since it can no longer find network A, but polybar will still display network A's SSID.

At this point, I can disconnect from and reconnect to network B, switch back to network A, switch to a third network C, or even restart NetworkManager, but polybar will still be stuck on network A until I kill it.

At this point, I can disconnect from and reconnect to network B, switch back to network A, switch to a third network C, or even restart NetworkManager, but polybar will still be stuck on network A until I kill it.
I still have this issue. I have not been able to find a way to resolve it.

I tried to reproduce the issue but I was unable to do so.
However could I ask someone who has that bug to launch polybar with the following command and try to reproduce this bug.
NLCB=debug NLDBG=4 polybar -l trace [rest of your command]

Please send me the full log (you can replace your IP, SSID by fake info if you want). Just avoid to launch polybar for a long time as it'll produce a lot of logs.
I'll try to figure what I can do with that.

Hope this can help: https://gist.github.com/evan-goode/3c0b957b1d664b01e49fc9738d3bf85a
While the log was running, I followed steps 1 through 6 as described above, then ran systemctl restart NetworkManager.


⚠ SolarOscp has degraded performance

In 8fc6dcd, SolarOscp ($SOLAROSCP_URL) experienced degraded performance:

HTTP code: 200
Response time: 435 ms

Resolved: SolarOscp performance has improved in 92c16b1 after 25 minutes.


git install instruction are incomplete

The page
https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
is missing some pre-reqs for redhat linux at least.
I also had to install these guys:
yum install gcc gcc-c++ autoconf automake perl-devel perl-CPAN

Is this still an issue? I'm not familiar enough with the RHEL/CentOS/Fedora ecosystems to track down what the git-all source installs.
This is also actually about the Pro Git book, so even if this is still an issue, it should be reopened over at that repository.


Example/nextjs with noscript

This example show how to use <noscript></noscript> with images

@nndung179 I think you need to make a new PR with just your example folder added.


Wildy hunter consumption rebalancing

🐛 Bug Report
 Currently hunter in the wildy (black chins/sallies) have a very high consumption rate relative to in game. Before peak times were coded the avg consumption of pots led to around 4k brews for 200m hunter (meaning 1 brew every 50k hunter exp approximately lol). It would be nice to rebalance this to closer reflect in game usage.
 Even 1k brews would be an extremely high rate given that it would mean a brew basically every hour but it would perhaps be a middle ground that could be agreed upon. Especially since as more things require food, it would be nice to not have to use a relatively absurd amount of brews and super restores that could be better saved for pvm down the road.

Wildy hunter hasnt been touched and a rebalance seems valid from their suggestions


Add method to list user configured in the userpass backend

There's a create_userpass() method and a delete_userpass() method, but no list_userpass() method. Until now.
Tests included.

I had to add more methods, so closing this in favor of https://github.com/ianunruh/hvac/pull/175.


Fixes #1704 - execute bot by identifier

Coverage: 94.01% (+0.006%) from 94.004% when pulling f437ace257820a89240ffb13cd1b270c821bba4a on cody-execute-bot-by-identifier into 99414065e8234aba8990a60af92431a392f0367e on main.


Mordecai Install with Anaconda Python on Windows 10

I had some trouble installing mordecai with Python's pip on Windows, so I did some troubleshooting, resolved some package version clashing, and finally had a working solution documented here:
https://github.com/ryerson-ggl/mordecai-geoparser-on-windows
This might help others who need some more detailed instructions for installing mordecai (at least for version mordecai-2.0.1.post1).

This is very helpful! Thank you very much.


Packs generator subdirectory check

Summary
Verifies that the component_subdirectory is set before generating packs. This is especially important when running the assets:precompile task.
Fixes #1566
Pull Request checklist

[x] Add/update test to cover these changes
[x] ~Update documentation~
[x] Update CHANGELOG file

This change is

@blackjack26 Please let me know if you are still working on it.

I've got some insight into the CI failures:
The X.2 errors all say Could not find component registered with name X, but the names of those components shouldn't be X, they should all be generated/X.
Since they are not, that means that load_pack_for_generated_component isn't doing what is expected, probably because render_options.auto_load_bundle is falsy.

Sounds like we definitely need CI fixed!

So... this is really weird, but it looks like adding debugging statements forces ReactOnRails configuration to initialize sooner (with the correct values) & this fixed the tests?

I think we need to fix the issue at this part of the code:
https://github.com/shakacode/react_on_rails/blob/e0d5d0e368c5bf5badd188abed5367a07c72e5f8/lib/react_on_rails/packs_generator.rb#L186-L190

But also, I have a different interpretation of the issue. I think the reported bug is actually a feature here. component_subdirectory is the name of exclusive directories from which we want to get files to process. When it is set to nil, we don't have any exclusive directory to look into, so we include all files under source_path.
Let's not hurry for merge.

@ahangarha although components_search_path is where we use configuration.components_subdirectory, waiting until we call components_search_path to check if configuration.components_subdirectory has been set wastes processing time & complicates the code more than immediately checking if configuration.components_subdirectory has been set as soon as PacksGenerator.instance.generate_packs_if_stale is called.
Guard clauses are not just band-aids. They are an attempt to simplify code, by eliminating edge cases.


API test errors in Visual Studio

Visual Studio apparently tries to load GenAPI into its .NET Framework-based (?) MSBuild process:
3>W:\Projects\wpf-math\src\WpfMath.ApiTest\WpfMath.ApiTest.csproj(38,9): error MSB4062: The "Microsoft.DotNet.GenAPI.GenAPITask" task could not be loaded from the assembly C:\Users\fried\.nuget\packages\microsoft.dotnet.genapi\7.0.0-beta.23060.4\build\\..\tools\net472\Microsoft.DotNet.GenAPI.exe. Could not load file or assembly 'file:///C:\Users\fried\.nuget\packages\microsoft.dotnet.genapi\7.0.0-beta.23060.4\tools\net472\Microsoft.DotNet.GenAPI.exe' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

For now, I have no idea how to fix this. GenAPI is a Microsoft-produced task, how come it's broken in VS?

Seems to be a problem in GenAPI's Microsoft.DotNet.GenAPI.targets:
<GenAPIAssembly Condition="'$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)\..\tools\net472\Microsoft.DotNet.GenAPI.exe</GenAPIAssembly>

which doesn't even exist. Changing this to .dll makes the build work again.
Also combined with the build being slightly weird in Visual Studio (e.g. the Lc task also exists for .NET, even though it shouldn't – but only when building in VS). And yes, the check for .NET Core vs. Framework in the build target then assumes .NET Framework.


[PE-D][Tester E] Unable to upload bmp format file as medical file

After selecting a bmp file to be uploaded, the list of medical files for the specific patient is not updated with the newly added file.

Labels: severity.High type.FeatureFlaw
original: venuslimm/ped#18

User guide add only accept pdf jpg jpeg and png file

Fix


Errors do not display

Describe the bug
When submitting invalid code this is the output

Using the dots I can change output renderer

using the built-in renderer I can see the error message

Please complete the following:
Which version of .NET Interactive are you using? There are a few ways to find this out:
Version: 1.59.0-insider (user setup)
Commit: 50b3811fdc5b5c80ca516a2edfffedcbd464b033
Date: 2021-07-15T05:13:58.348Z
Electron: 13.1.6
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Windows_NT x64 10.0.22000

OS

[X] Windows 10
[ ] macOS
[ ] Linux (Please specify distro)
[ ] iOS
[ ] Android

Browser

[ ] Chrome
[ ] Edge
[ ] Firefox
[ ] Safari

Frontend

[ ] Jupyter Notebook
[ ] Jupyter Lab
[ ] nteract
[ ] Visual Studio Code
[X] Visual Studio Code Insiders
[ ] Other (please specify)

Screenshots
If applicable, add screenshots to help explain your problem.

@brettfo  is this related to the PR from Don

oops, i'll get that PR fix soon , also I think we have a problem at our end as well. I'll fix this ASAP.

oops, i'll get that PR fix soon , also I think we have a problem at our end as well. I'll fix this ASAP. Should be an issue only in insiders, apologies.

Thank you so much. yes it is happening only in insiders.

Fixed in our insiders, it should be available first thing monday morning.


Incompatability with loaforcsSoundAPI?

[Error  : Unity Log] NullReferenceException
Stack trace:
loaforcsSoundAPI.Patches.AudioSourcePatch.TryReplaceAudio (UnityEngine.AudioSource __instance, UnityEngine.AudioClip clip, UnityEngine.AudioClip& replacement) (at ./Patches/AudioSourcePatch.cs:85)
loaforcsSoundAPI.Patches.AudioSourcePatch.PlayOneShot (UnityEngine.AudioSource __instance, UnityEngine.AudioClip& clip) (at ./Patches/AudioSourcePatch.cs:40)
(wrapper dynamic-method) UnityEngine.AudioSource.DMDUnityEngine.AudioSource::PlayOneShot(UnityEngine.AudioSource,UnityEngine.AudioClip,single)
UnityEngine.AudioSource.PlayOneShot (UnityEngine.AudioClip clip) (at <2b2e47a8d13e478fbaa048194b560eac>:IL_0001)
SCP1507.SCP1507.Scp1507.DoQuackSound () (at ./src/SCP1507/AudioRelay.cs:18)
SCP1507.FlamingoManager.FlamingoManager+d__16.MoveNext () (at ./src/FlamingoManager/FlamingoManager.cs:251)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :IL_0026)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
SCP1507.FlamingoManager.FlamingoManager:HonkManager() (at ./src/FlamingoManager/FlamingoManager.cs:243)

I do not think it is an error with LoaforcSoundAPI. That mod patches the UnityAudioSource so it will always be reported when there is an error with the Audio. I will look into what could be causing the issue!


Time out

You try to use a model that was created with version 2.4.0.dev0, however, your version is 2.4.0. This might cause unexpected behavior or errors. In that case, try to update to the latest version.

/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/torch/cuda/__init__.py:141: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 11040). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver. (Triggered internally at ../c10/cuda/CUDAFunctions.cpp:108.)
  return torch._C._cuda_getDeviceCount() > 0
Traceback (most recent call last):
  File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
    yield
  File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpx/_transports/default.py", line 113, in __iter__
    for part in self._httpcore_stream:
  File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 367, in __iter__
    raise exc from None
  File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 363, in __iter__
    for part in self._stream:
  File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpcore/_sync/http11.py", line 349, in __iter__
    raise exc
  File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpcore/_sync/http11.py", line 341, in __iter__
    for chunk in self._connection._receive_response_body(**kwargs):
  File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpcore/_sync/http11.py", line 210, in _receive_response_body
    event = self._receive_event(timeout=timeout)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpcore/_sync/http11.py", line 224, in _receive_event
    data = self._network_stream.read(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 124, in read
    with map_exceptions(exc_map):
  File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/contextlib.py", line 158, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
    raise to_exc(exc) from exc
httpcore.ReadTimeout: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/gradio/queueing.py", line 495, in call_prediction
output = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/gradio/route_utils.py", line 233, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/gradio/blocks.py", line 1608, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/gradio/blocks.py", line 1188, in call_function
prediction = await utils.async_iteration(iterator)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/gradio/utils.py", line 513, in async_iteration
return await iterator.anext()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/gradio/utils.py", line 639, in asyncgen_wrapper
response = await iterator.anext()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/gradio/chat_interface.py", line 487, in _stream_fn
first_response = await async_iteration(generator)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/gradio/utils.py", line 513, in async_iteration
return await iterator.anext()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/gradio/utils.py", line 506, in anext
return await anyio.to_thread.run_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/gradio/utils.py", line 489, in run_sync_iterator_async
return next(iterator)
^^^^^^^^^^^^^^
File "/workspace/user/projects/chat-with-mlx/app.py", line 173, in chatbot
for chunk in response:
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/openai/_streaming.py", line 44, in iter
for item in self._iterator:
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/openai/_streaming.py", line 56, in stream
for sse in iterator:
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/openai/_streaming.py", line 48, in _iter_events
yield from self._decoder.iter(self.response.iter_lines())
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/openai/_streaming.py", line 224, in iter
for line in iterator:
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpx/_models.py", line 861, in iter_lines
for text in self.iter_text():
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpx/_models.py", line 848, in iter_text
for byte_content in self.iter_bytes():
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpx/_models.py", line 829, in iter_bytes
for raw_bytes in self.iter_raw():
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpx/_models.py", line 883, in iter_raw
for raw_stream_bytes in self.stream:
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpx/_client.py", line 126, in iter
for chunk in self._stream:
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpx/_transports/default.py", line 112, in iter
with map_httpcore_exceptions():
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/contextlib.py", line 158, in exit
self.gen.throw(typ, value, traceback)
File "/workspace/user/miniconda3/envs/mlx-chat/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout: timed out

I have the same problem.

Hi, this product is meant for Apple Macbook that are running Apple Silicon chip (M1/M2/M3). I see that you have CUDA in there, which is absolutely incompatible with this app. If you are using Nvidia cards, please consider Chat with RTX

Thanks

Hi, this product is meant for Apple Macbook that are running Apple Silicon chip (M1/M2/M3). I see that you have CUDA in there, which is absolutely incompatible with this app. If you are using Nvidia cards, please consider Chat with RTX

thinks


chore: properly handle linking and evaluating modules

Summary
Based on https://github.com/nodejs/node/issues/33216#issuecomment-623039235

Test plan
Tests should still pass

Hmm, broke. I might need to refactor some more as I had this working at some point. Probably broke it ripping out debug code when opening this PR

A version of this landed in #11150


SwiftCharts line chart jumps when starting to pan to the right

I asked this question on Stack Overflow but I thought I'd ask here as well.
I'm creating a chart using SwiftCharts based on the Trendline example provided with the library. In my application, I'm charting weight lifting events showing the single highest lift weight on each distinct day. In my example, I'm charting 4 Bench Press events.
The chart renders when the view controller is first displayed, but when I pan to the right it stutters, spreads out, and the points move. This is what that looks like:

Note that when the chart is first rendered, the lowest plotted value (208.0) appears to be between Mar 12 and Mar 13, yet after it does that stutter thing, the point moves to the right of Mar 13.
The chartPoints being plotted are:
▿ 4 elements
▿ 0 : Mar 12, 239.17
▿ 1 : Mar 13, 208
▿ 2 : Mar 15, 267.17
▿ 3 : Mar 18, 240
Here's the view controller:
`Note that when the chart is first rendered, the lowest plotted value (208.0) appears to be between Mar 12 and Mar 13, yet after it does that stutter thing, the point moves to the right of Mar 13.
The chartPoints being plotted are:
▿ 4 elements
▿ 0 : Mar 12, 239.17
▿ 1 : Mar 13, 208
▿ 2 : Mar 15, 267.17
▿ 3 : Mar 18, 240
Here's the view controller:
import UIKit
import SwiftCharts

class ChartViewController: UIViewController {

fileprivate var chart: Chart? // arc
fileprivate let dataManager = CoreDataHelper()

override func viewDidLoad() {
    super.viewDidLoad()

    let labelSettings = ChartLabelSettings(font: ChartDefaults.labelFont)

    let liftEventTypeUuid = "98608870-E3CE-476A-B1E4-018D2AE4BDBF"

    let liftEvents = dataManager.fetchLiftsEventsOfType(liftEventTypeUuid)

    let dailyLiftEvents = liftEvents.reduce(into: [Date:[LiftEvent]](), { dailyLiftEvents, currentLiftEvent in
        dailyLiftEvents[Calendar.current.startOfDay(for: currentLiftEvent.date), default: [LiftEvent]()].append(currentLiftEvent)
    })
    let dailyMaxLiftEvents = dailyLiftEvents.map({$0.value.max(by: {$0.oneRepMax < $1.oneRepMax})})
    var sortedLiftEvents = dailyMaxLiftEvents.sorted(by: { $0?.date.compare(($1?.date)!) == .orderedAscending })

    var readFormatter = DateFormatter()
    readFormatter.dateFormat = "dd.MM.yyyy"

    var displayFormatter = DateFormatter()
    displayFormatter.dateFormat = "MMM dd"

    let date = {(str: String) -> Date in
        return readFormatter.date(from: str)!
    }

    let calendar = Calendar.current

    let dateWithComponents = {(day: Int, month: Int, year: Int) -> Date in
        var components = DateComponents()
        components.day = day
        components.month = month
        components.year = year
        return calendar.date(from: components)!
    }

    func filler(_ date: Date) -> ChartAxisValueDate {
        let filler = ChartAxisValueDate(date: date, formatter: displayFormatter)
        filler.hidden = true
        return filler
    }

    let chartPoints = sortedLiftEvents.map { ChartPoint(x: ChartAxisValueDate(date: ($0?.date)!, formatter: displayFormatter), y: ChartAxisValueDouble(($0?.calculateOneRepMax().value)!)) }

    let highestWeight = sortedLiftEvents.last??.oneRepMax.value
    let lowestWeight = sortedLiftEvents.first??.oneRepMax.value

    let yValues = stride(from: roundToTen(x: lowestWeight! - 40), through: roundToTen(x: highestWeight! + 40), by: 20).map {ChartAxisValueDouble(Double($0), labelSettings: labelSettings)}

    let xGeneratorDate = ChartAxisValuesGeneratorDate(unit: .day, preferredDividers: 2, minSpace: 1, maxTextSize: 12)
    let xLabelGeneratorDate = ChartAxisLabelsGeneratorDate(labelSettings: labelSettings, formatter: displayFormatter)
    let firstDate = sortedLiftEvents.first??.date
    let lastDate = sortedLiftEvents.last??.date

    let xModel = ChartAxisModel(firstModelValue: (firstDate?.timeIntervalSince1970)!, lastModelValue: (lastDate?.timeIntervalSince1970)!, axisTitleLabels: [ChartAxisLabel(text: "Date", settings: labelSettings)], axisValuesGenerator: xGeneratorDate, labelsGenerator: xLabelGeneratorDate)

    let yModel = ChartAxisModel(axisValues: yValues, axisTitleLabel: ChartAxisLabel(text: "1-RM", settings: labelSettings.defaultVertical()))
    let chartFrame = ChartDefaults.chartFrame(view.bounds)

    var chartSettings = ChartDefaults.chartSettingsWithPanZoom // was ChartDefaults.chartSettings
    chartSettings.trailing = 80

    // Set a fixed (horizontal) scrollable area 2x than the original width, with zooming disabled.
    chartSettings.zoomPan.maxZoomX = 2
    chartSettings.zoomPan.minZoomX = 2
    chartSettings.zoomPan.minZoomY = 1
    chartSettings.zoomPan.maxZoomY = 1

    ChartAxisValuesStaticGenerator.generateYAxisValuesWithChartPoints(chartPoints, minSegmentCount: 10, maxSegmentCount: 20, multiple: 2, axisValueGenerator: {ChartAxisValueDouble($0, labelSettings: labelSettings)}, addPaddingSegmentIfEdge: false)

    let lineModel = ChartLineModel(chartPoints: chartPoints, lineColor: UIColor.red, lineCap: .round ,animDuration: 1, animDelay: 0)

    let trendLineModel = ChartLineModel(chartPoints: TrendlineGenerator.trendline(chartPoints), lineColor: UIColor.blue, animDuration: 0.5, animDelay: 1)

    let coordsSpace = ChartCoordsSpaceLeftBottomSingleAxis(chartSettings: chartSettings, chartFrame: chartFrame, xModel: xModel, yModel: yModel)
    let (xAxisLayer, yAxisLayer, innerFrame) = (coordsSpace.xAxisLayer, coordsSpace.yAxisLayer, coordsSpace.chartInnerFrame)

    let chartPointsLineLayer = ChartPointsLineLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, lineModels: [lineModel])

    let trendLineLayer = ChartPointsLineLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, lineModels: [trendLineModel])

    let settings = ChartGuideLinesDottedLayerSettings(linesColor: UIColor.black, linesWidth: ChartDefaults.guidelinesWidth)
    let guidelinesLayer = ChartGuideLinesDottedLayer(xAxisLayer: xAxisLayer, yAxisLayer: yAxisLayer, settings: settings)

    let chart = Chart(
        frame: chartFrame,
        innerFrame: innerFrame,
        settings: chartSettings,
        layers: [
            xAxisLayer,
            yAxisLayer,
            guidelinesLayer,
            chartPointsLineLayer,
            trendLineLayer
        ]
    )

    view.addSubview(chart.view)
    self.chart = chart
}

private struct liftWeightItem {
    let number: Int
    let text: String

    init(number: Int, text: String) {
        self.number = number
        self.text = text
    }
}

private struct liftDateItem {
    let name: String
    let quantity: liftWeightItem

    init(name: String, quantity: liftWeightItem) {
        self.name = name
        self.quantity = quantity
    }
}

func createChartPoint(dateStr: String, percent: Double, readFormatter: DateFormatter, displayFormatter: DateFormatter) -> ChartPoint {
    return ChartPoint(x: createDateAxisValue(dateStr, readFormatter: readFormatter, displayFormatter: displayFormatter), y: ChartAxisValueDouble(percent))
}

func createDateAxisValue(_ dateStr: String, readFormatter: DateFormatter, displayFormatter: DateFormatter) -> ChartAxisValue {
    let date = readFormatter.date(from: dateStr)!
    let labelSettings = ChartLabelSettings(font: ChartDefaults.labelFont, rotation: 45, rotationKeep: .top)
    return ChartAxisValueDate(date: date, formatter: displayFormatter, labelSettings: labelSettings)
}

func roundToTen(x : Double) -> Int {
    return 10 * Int(round(x / 10.0))
}

class ChartAxisValuePercent: ChartAxisValueDouble {
    override var description: String {
        return "\(formatter.string(from: NSNumber(value: scalar))!)%"
       }
   }
}

My suspicion is that it has something to do with the rendering of the x-axis so I've tried adjusting the preferredDividers and minSpace values:
let xGeneratorDate = ChartAxisValuesGeneratorDate(unit: .day, preferredDividers: 2, minSpace: 1, maxTextSize: 12)

but that doesn't fix it.
I've read through the documentation several times but I still haven't been able to figure it out. This is a beautifully written library so I'd really like to be able to use it. Any help is greatly appreciated.

Sorry, I realized this is for reporting issues with the library and isn't the place for help. I'm closing it. Anybody with the power to delete it, please feel free to do so.


Use sprockets to handle less files through the asset pipeline

While switching from asset-pack to asset-pipeline we reduced the amount of the work the server has to do to deal with assets (very much like rails).  In the meantime, we ran into some issues with .less files that were not watched properly, so we introduced sprockets-less to remove the ugly hack in the main.less file (/= depends_on something.less).
But, there seems to be a little (big/huge) bug/missing piece in sprockets-less that prevents the use of sprockets-helpers. Which means that fonts (i.e. glyphicons) are not using the proper url, with a digest at the end, inside those .less files
For that we need font-url()to work.
There are some options to fix this:

Switch the entire stylesheets to sass (sprockets-sass is working great with bootstrap-sass [bower or even the gem])
Improve sprockets-less to work as expected (it is actually very close to its sass counterpart in terms of codebase)
This PR is working as well, I copied the fonts to the public directory and included a bootstrap-sprockets.less with a hack to reference the fonts properly. (not a great option, but it can work for now, while we are working on something better)

Bonus: I looked at a nice sprockets port for node.js project [https://www.npmjs.com/package/mincer]

The problem would affect images, should we use sprocket helpers for them in less, right?
It'd be nice to fix it at some point but it's not vital and I say: ship it!

FWIW, my friend @rachelandrew says you hardly need CSS pre-processors these days.

It is still very convenient. Nesting the rules, using functions etc.  Customising bootstrap is also easier with the .less/.scss version of it.

@mattwynne is that what she's saying there? ;) I understand: "start with HTML/CSS, do not necessarily use them". Preprocessors have advantages (e.g. taking care of vendor prefixes for you, in an up-to-date fashion (as long as you keep the preprocessor up-to-date), keeping your source files clean of them).

I dunno, if Rachel has time perhaps she'll enlighten us. She's a purist :)

Hey! Please don't quote me out of context. I've never described myself as a "purist" either. If you are interested in my thoughts on Sass I'm moderating a free ALA online event next week on the subject. Removing myself from these notifications as I'm traveling and can live without the extra email.

looks at shoes *


How can I convert .off to .ply?

My ModelNet40 only has .off data. Can you tell me how to convert to .ply,? thank you

My ModelNet40 only has .off data. Can you tell me how to convert to .ply,? thank you

You can read blogs online. My off_ To_ Ply was written by myself. At present, there is a problem. The points are relatively sparse.

How get .play data of modelnet40?

off_To_Ply

I have a similar problem，Can you provide the code for your blog，off_To_Ply

you can see  this changed version of pointnet.pytorch: https://github.com/wuyiulin/pointnet.pytorch, the author has add a convert scripts to convert .off to .ply

you can see this changed version of pointnet.pytorch: https://github.com/wuyiulin/pointnet.pytorch, the author has add a convert scripts to convert .off to .ply

but it may takes 10min to process using threads, cause the dataset is relatively huge


add xxljob test

Please fill up those following information before send Pull request

Pull request NO: 2537
Agent repository URL: https://github.com/IAMTJW/incubator-skywalking.git
Testcases repository URL: https://github.com/IAMTJW/agent-auto-integration-testcases.git

@ascrutae I think the discussion about the purpose of plugin should move back to Apache repo. If the plugin only acts as an localspan to group the task as a trace, that still makes sense.


Replaced current menu with Headless UI Menu component

Issue #6

It should not affect the menu in larger screens

made changes to the code


rework parts of coredns and server code part 2

This got a bit out of hand but I think the end result is much easier to understand and reason about.
see commits for details, it might be easier to just read the final coredns file for review rather than trying to make sense of the diff as a lot of code was moved around

/lgtm


STDIN / ARGF support

Is it possible to support STDIN / ARGF in mruby-cli?
I'm very new to the project and mruby.
After watching and reading a couple presentations about mruby-cli, I feel Hadoop and Spark stream based data processing for map-reduce jobs would be another great application of mruby-cli.  In order to support stream based map-reduce in Hadoop and Spark, mruby-cli will need STDIN and ARGF support.

Have written a small library which can handle STDIN like readline, https://github.com/Asmod4n/mruby-linenoise. It can kind of handle a file/pipe as input, but allocates as much ram as it gets input.

@metapsj It's a good idea.
I don't think it's the role of mruby-cli to provide a solution to this for now. If your mruby-cli app requires to work with stdin, the best is to use a mruby gem doing that, as @Asmod4n suggested.
@Asmod4n is your mgem multi-platform?

@toch currently would need cygwin on windows, but am investigating to use the ms open tech fork of it https://github.com/MSOpenTech/redis/tree/3.0/deps/linenoise

thanks keep us informed. I'm thinking of listing useful mruby gems that are multi-plateform and can be used for mruby-cli apps.


Unable to install VSIX Installer extension for VS17

Problem encountered on https://dotnet.microsoft.com/learn/machinelearning-ai/ml-dotnet-get-started-tutorial/install
Operating System: windows
26/07/2019 01:46:53 PM - Microsoft VSIX Installer
26/07/2019 01:46:53 PM - -------------------------------------------
26/07/2019 01:46:53 PM - vsixinstaller.exe version:
26/07/2019 01:46:53 PM - 15.9.3041
26/07/2019 01:46:53 PM - -------------------------------------------
26/07/2019 01:46:53 PM - Command line parameters:
26/07/2019 01:46:53 PM - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\z003v57f\Downloads\MLNET_Model_Builder.vsix
26/07/2019 01:46:53 PM - -------------------------------------------
26/07/2019 01:46:53 PM - Microsoft VSIX Installer
26/07/2019 01:46:53 PM - -------------------------------------------
26/07/2019 01:46:54 PM - Initializing Install...
26/07/2019 01:46:54 PM - Extension Details...
26/07/2019 01:46:54 PM - 	Identifier         : FE96D051-645F-4309-AE99-107A776B0DA2
26/07/2019 01:46:54 PM - 	Name               : ML.NET Model Builder (Preview)
26/07/2019 01:46:54 PM - 	Author             : Microsoft
26/07/2019 01:46:54 PM - 	Version            : 16.0.1907.1703
26/07/2019 01:46:54 PM - 	Description        : Simple UI tool to build custom machine learning models.
26/07/2019 01:46:54 PM - 	Locale             : en-US
26/07/2019 01:46:54 PM - 	MoreInfoURL        :
26/07/2019 01:46:54 PM - 	InstalledByMSI     : False
26/07/2019 01:46:54 PM - 	SupportedFrameworkVersionRange : [4.5,)
26/07/2019 01:46:54 PM -
26/07/2019 01:46:58 PM - 	SignatureState     : ValidSignature
26/07/2019 01:46:58 PM - 	SignedBy           : Microsoft Corporation
26/07/2019 01:46:58 PM - 	Certificate Info   :
26/07/2019 01:46:58 PM - 		-------------------------------------------------------
26/07/2019 01:46:58 PM - 		[Subject]       : CN=Microsoft Corporation, OU=OPC, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
26/07/2019 01:46:58 PM - 		[Issuer]        : CN=Microsoft Code Signing PCA 2010, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
26/07/2019 01:46:58 PM - 		[Serial Number] : 330000026ECE6AE5984BFC96A900000000026E
26/07/2019 01:46:58 PM - 		[Not Before]    : 07/09/2018 02:30:30 AM
26/07/2019 01:46:58 PM - 		[Not After]     : 07/09/2019 02:30:30 AM
26/07/2019 01:46:58 PM - 		[Thumbprint]    : 99B6246883B4B32EA59AE18B36945D205A876800
26/07/2019 01:46:58 PM -
26/07/2019 01:46:58 PM - 	Supported Products :
26/07/2019 01:46:58 PM - 		Microsoft.VisualStudio.Community
26/07/2019 01:46:58 PM - 			Version : [15.0.28307.665,17.0)
26/07/2019 01:46:58 PM - 		Microsoft.VisualStudio.Enterprise
26/07/2019 01:46:58 PM - 			Version : [15.0.28307.665,17.0)
26/07/2019 01:46:58 PM - 		Microsoft.VisualStudio.Pro
26/07/2019 01:46:58 PM - 			Version : [15.0.28307.665,17.0)
26/07/2019 01:46:58 PM -
26/07/2019 01:46:58 PM - 	References         :
26/07/2019 01:46:58 PM - 	Prerequisites      :
26/07/2019 01:46:58 PM - 		-------------------------------------------------------
26/07/2019 01:46:58 PM - 		Identifier   : Microsoft.VisualStudio.Component.CoreEditor
26/07/2019 01:46:58 PM - 		Name         : Visual Studio core editor
26/07/2019 01:46:58 PM - 		Version      : [15.0,17.0)
26/07/2019 01:46:58 PM -
26/07/2019 01:46:58 PM - 		-------------------------------------------------------
26/07/2019 01:46:58 PM - 		Identifier   : Microsoft.VisualStudio.Workload.NetCoreTools
26/07/2019 01:46:58 PM - 		Name         : .NET Core cross-platform development
26/07/2019 01:46:58 PM - 		Version      : [15.0,17.0)
26/07/2019 01:46:58 PM -
26/07/2019 01:46:58 PM - 		-------------------------------------------------------
26/07/2019 01:46:58 PM - 		Identifier   : Microsoft.NetCore.ComponentGroup.DevelopmentTools.2.1
26/07/2019 01:46:58 PM - 		Name         : .NET Core 2.1 development tools
26/07/2019 01:46:58 PM - 		Version      : [15.0,17.0)
26/07/2019 01:46:58 PM -
26/07/2019 01:46:58 PM - Signature Details...
26/07/2019 01:46:58 PM - 	Extension is signed with a valid signature.
26/07/2019 01:46:58 PM -
26/07/2019 01:46:58 PM - Searching for applicable products...
26/07/2019 01:46:58 PM - Found installed product - Microsoft Visual Studio Premium 2012
26/07/2019 01:46:58 PM - Found installed product - Microsoft Visual Studio Professional 2012
26/07/2019 01:46:58 PM - Found installed product - Microsoft Visual Studio 2012 Shell (Integrated)
26/07/2019 01:46:58 PM - Found installed product - Global Location
26/07/2019 01:46:58 PM - Found installed product - Visual Studio Enterprise 2017
26/07/2019 01:46:58 PM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable1& skuData)    at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)    at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)    at VSIXInstaller.App.Initialize(Boolean isRepairSupported)    at VSIXInstaller.App.Initialize()    at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

@ankushmadankar thanks for reporting this issue.
What version of Visual Studio 2017 do you have installed? We currently support  15.9.12 and later.

Microsoft Visual Studio Enterprise 2017
Version 15.9.11
VisualStudio.15.Release/15.9.11+28307.586
Microsoft .NET Framework
Version 4.7.03056
Installed Version: Enterprise
Visual C++ 2017   00369-60000-00001-AA619
Microsoft Visual C++ 2017
Application Insights Tools for Visual Studio Package   8.14.20131.1
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2017   15.9.04012.0
ASP.NET and Web Tools 2017
ASP.NET Core Razor Language Services   15.8.31590
Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2017   5.2.61435.0
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0   15.9.03024.0
Azure App Service Tools v3.0.0
Azure Functions and Web Jobs Tools   15.9.03024.0
Azure Functions and Web Jobs Tools
C# Tools   2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
CodeMaid   11.0.183
CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, R, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
GitHub.VisualStudio   <IP_ADDRESS>81
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
JavaScript Language Service   2.0
JavaScript Language Service
JavaScript Project System   2.0
JavaScript Project System
JetBrains ReSharper Ultimate 2017.2.2    Build 109.0.20171006.122324
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2019 JetBrains, Inc.
Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v<IP_ADDRESS>
Microsoft Continuous Delivery Tools for Visual Studio   0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.
Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft Library Manager   1.0
Install client-side libraries easily to any web project
Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards   1.0
Microsoft Visual C++ Wizards
Microsoft Visual Studio Tools for Containers   1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package
Node.js Tools   1.4.21001.1 Commit Hash:8dd15923800d931b153ab9e4de74e42a74eba5e6
Adds support for developing and debugging Node.js apps in Visual Studio
NuGet Package Manager   4.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
ProjectServicesPackage Extension   1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
ResourcePackage Extension   1.0
ResourcePackage Visual Studio Extension Detailed Info
ResourcePackage Extension   1.0
ResourcePackage Visual Studio Extension Detailed Info
Snapshot Debugging Extension   1.0
Snapshot Debugging Visual Studio Extension Detailed Info
SQL Server Data Tools   15.1.61903.01040
Microsoft SQL Server Data Tools
Syntax Visualizer   1.0
An extension for visualizing Roslyn SyntaxTrees.
TypeScript Tools   15.9.20918.2001
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools   2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual F# Tools 10.2 for F# 4.5   <IP_ADDRESS>.  Commit Hash: 6e26c5bacc8c4201e962f5bdde0a177f82f88691.
Microsoft Visual F# Tools 10.2 for F# 4.5
Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for Containers   1.0
Visual Studio Tools for Containers

Please check readme file mention supported version as Visual Studio 2017 15.6 or later or Visual Studio 2019. Please update pre-requisite section with latest support version for tool.


Please add shortcode support for (hugo, hexo, leanpub, etc...)

Following the discussion at #2
Don't know if this is possible, but it would be great to provide Hugo shortcode support alongside the existing Hexo support.
The Pendulum shortcode for Hexo is {% asset_img url "caption" %}.
To make this work with Hugo the shortcode needs to be like so {{% asset_img "url" "caption" %}}.
Adding the double quotes to the shortcode URL is essential to make Pendulum an out-of-the-box editor for Hugo. The double curly brackets are not that essential.
Also here is the actual Hugo shortcode that I authored for use in tandem with Pendulum.
This shortcode will render an img that is in the same directory as the respective content file of a Hugo project. I am getting the content directory path with a bit of RegEx and as a bonus I have included the imageConfig function to get the dimensions of the image.
Contents of asset_img.html

{{ $base := $.Page.Permalink | replaceRE "([^/]*)/$" "" }}
{{ $link := $.Page.RelPermalink | replaceRE "([^/]*)/$" "" }}
{{ $file := .Get 0 }}
{{ $.Scratch.Add "src" $link }}
{{ $.Scratch.Add "src" $file }}
{{ $src:= $.Scratch.Get "src"}}
{{ $config := imageConfig (printf "/content/%s" $src) }}

If you choose to support the Hugo shortcode, feel free to include the above to the Release Notes to help other users.
Again thank you very much for Pendulum.

Hey,
it would be nice to get some example syntax for various Hugo or Hexo shortcodes, which pendulum could support. It should support the asset_img with a single bracket, but that's not that hard to change, the biggest difficulty mostly lies in the fact that there's more shortcodes and it's time consuming to list and implement them, but I would love to increase support in a more systematic way.
Could you prepare a table which could be used for implementing this? I'm thinking something along the lines of the following columns:

shortcode name (asset_img) + link to shortcode docs,
shortcode examples ({{% asset_img ...%}})
expected output (![](image...))

As you can see, the biggest issue here is scope. Implementing individual shortcode renderers however is trivial, when one has a reasonable idea where to start. I'd put the above into the readme so it's clear what shortcodes are supported.

There is no longer a need for Hugo shortcode support.
Hugo now supports markdown images relative to content files with Page Bundles.

I've re-titled the issue as it might still be interesting for somebody to implement their own markdown-flavor or otherwise markup. I am locking it for conversation, because my previous comment clarifies what needs to be done if somebody is looking to add some markup into pendulum. Thanks for understanding ;)