text:
How to render the Signals and Axes at different quality

ScottPlot Version: 4.1.16
Operating System: W10
Application Type: WinForms
Question: Is there a way to render the Signals and Axes at different quality? For instance, I would like to render the Signals at Low quality always (for speed purposes), while the Axes at High quality. Basically, to be able to configure the plot something like this:
formsPlot1.Configuration.QualitySignals = ScottPlot.Control.QualityMode.Low;
formsPlot1.Configuration.QualityOther = ScottPlot.Control.QualityMode.High;

I am not sure if it is possible, because I can imagine that anti-aliasing is applied on the whole image, but I decided to still ask maybe there is a posibility for it.

Hi Scott,
I just came acrros one of your videos :) very impressive what you did. In the video (at least to me) it seems like the Axes ticks have High quality, while the Data is displayed at Low quality (no anti-aliasing). This is exactly what I meant in this topic. Please correct me if I am wrong in observing the video.

This is a minor topic. I will close.

repo: ScottPlot/ScottPlot


text:
Manual tick spacing alongside automatic

Feature Suggestion
Feature goes with PR #1814
Feature description: I'd like to be able to manually label certain major ticks, but keep the automatic ticks as well.
Code example:
// a code sample may improve communication
var plt = new ScottPlot.Plot();
double[] myCustomTicks = { Math.PI, 2 * Math.PI };
string[] myCustomLabels = { "π", "2π" };
plt.XAxis.ManualTickPositions(myCustomTicks, myCustomLabels, union: true);

Example implementation from #1814:

@swharden I decided to remove the closest tick to each custom tick so that the labels didn't overlap. Some users may not want this, though. Should I add a flag for users who want to keep all labels? Or maybe an enum?

Thanks for this @Xerxes004!
Following-up, I modified your #1814 so that this feature is an addition to automatic ticks (rather than a third type of ticks).
Users can now enable automatic ticks like this:
plt.XAxis.AutomaticTickPositions();

and if they want to add additional manual ticks which will always be displayed they can now do this:
double[] positions = { Math.PI, 2 * Math.PI };
string[] labels = { "π", "2π" };
plt.XAxis.AutomaticTickPositions(positions, labels);

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
SP5: consider cutting dependency on System.Drawing.Primitives

it doesn't seem to be used much anyway

Ha! It's not used once 🤦


text:
Convert WpfPlot to CustomControl

Purpose:
Use Control as base class for WpfPlot instead of UserControl to enable customization. (cf #2509)

add property to show / hide legend
add property to define legend position
add property to select traces palette
add property to select plot style
remove dead code

It is now possible to select WpfPlot palette and style directly from XAML

This control replace the previous without any change on existing XAML or C# code.
NOTE I could not change the ScottPlot5 version, because I am not able to load the solution (cf #2525)

Hi @KroMignon, thanks for this PR! I won't be able to review it thoroughly until tonight, but I'm happy to see you figured out the PR process and the tests are passing and I look forward to merging this soon! 🚀
I have one bit of feedback about a feature that was added:

It is now possible to select WpfPlot palette and style directly from XAML

I'm extremely hesitant to allow plot customizations from XAML. There are potentially thousands of little customizations that could be added (e.g., axis tick mark length), and if we allow some it will open the door for others to request more. Also, if we add XAML customizations to WPF then I would think we need to add the same to WinUI, Avalonia, Eto, Blazor, etc., and the maintenance burden grows as the number of supported controls grows. Although I think what you did here with properties and XAML is elegant and would be an ideal solution if ScottPlot were a WPF-only control, for the sake of maintainability I would feel better not customizing plots using styling, but instead interacting with the Plot object as demonstrated by the cookbook.
However, I custom XAML customizations are the type of thing that will be enabled by the new inherit-and-extend functionality that the core of this PR now allows 😉
Thanks again for your work on this, and I'm looking forward to hearing your thoughts!
Scott

Good morning @swharden
I can now open the ScottPlot 5 solution and I have started to look at the code. I have first to understand how the WPF control has been design before I implement my modification. SkiaSharp is new to me.
I will look at this more closely this week-end, I've got some ideas how it could be more WPF / MVVM "friendly" but it needs some tests.
Is it okay if I do some modification on ScottPlot.Control.Interaction, I am not sure I have to, but maybe 🤔

Hi @KroMignon, thanks again for your work on this!
To try to keep this PR clean and isolated to a single purpose I reverted some of your changes related to styling enhancements. This makes it easier to do a line-by-line evaluation of https://github.com/ScottPlot/ScottPlot/pull/2526/files
I don't have a lot of experience with WPF. Can you advise us about the purpose of Generic.xaml and whether it is required? It seems like we're pretty close to having a XAML-free control which makes me really happy. Is this functionality required and/or could it be performed programmatically?
Thanks for your input! I think we're getting pretty close to being ready to merge this in 🚀

Hi @KroMignon, thanks again for your work on this!
To try to keep this PR clean and isolated to a single purpose I reverted some of your changes related to styling enhancements. This makes it easier to do a line-by-line evaluation of https://github.com/ScottPlot/ScottPlot/pull/2526/files

That's fine for me 👍

I don't have a lot of experience with WPF. Can you advise us about the purpose of Generic.xaml and whether it is required? It seems like we're pretty close to having a XAML-free control which makes me really happy. Is this functionality required and/or could it be performed programmatically?

A WPF Control requires at least a default style, which will be loaded by OnApplyTemplate(). In the style, we will define the content of the control. If there is no default style, the component will be empty/transparent.
For this control, the style contains a picture (to show the graph) and a label (to show the error messages). In fact, it is the same structure as the previous UserControl. The name of those items (picture and label) is important to be able to extract them from the style, with Template.FindName().
The difference with a UserControl, is that now it is possible to customize the control, which is not possible with a UserControl (cf. https://www.wpftutorial.net/CustomVsUserControl.html)

Thanks for your input! I think we're getting pretty close to being ready to merge this in 🚀

Your welcome 😉

EDIT: After this is merged we can revisit styling and palette improvements in a separate issue/PR

Thanks for the clarification @KroMignon! I read some more information about custom controls and WPF templates and it makes a lot more sense now - thanks for pointing me in the right direction.
I plan to release a new package today on NuGet, but I'm still hesitant to merge this in. I found one bug that I'll try to fix now, and depending on how easy it is to correct and/or how many other bugs I find, I may push this back until I have more time to review and test it thoroughly.
Here's the bug I found this morning. I suspect it relates to events not being handled as expected...
<Window x:Class="WpfApp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApp"
        mc:Ignorable="d"
        xmlns:ScottPlot="clr-namespace:ScottPlot;assembly=ScottPlot.WPF"
        Title="ScottPlot Sandbox - WPF"
        WindowStartupLocation="CenterScreen"
        Height="450"
        Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <ScottPlot:WpfPlot Name="WpfPlot1" Grid.Row="0"/>
        <ScottPlot:WpfPlot Name="WpfPlot2" Grid.Row="1"/>
    </Grid>
</Window>

using System.Windows;

namespace WpfApp
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            WpfPlot1.Plot.AddSignal(ScottPlot.DataGen.Sin(51, 2));
            WpfPlot2.Plot.AddSignal(ScottPlot.DataGen.Cos(51, 2));

            WpfPlot1.Refresh();
            WpfPlot2.Refresh();

            WpfPlot1.Configuration.AddLinkedControl(WpfPlot2); // update plot 2 when plot 1 changes
            WpfPlot2.Configuration.AddLinkedControl(WpfPlot1); // update plot 1 when plot 2 changes
        }
    }
}

main branch
this PR

Maybe this is a niche case, because this works... so I'm guessing it's some type of difference in window size evaluation inside the initializer? The size of the control is evaluated to determine how large to make the plot area.
using System.Windows;

namespace WpfApp
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            Loaded += (s, e) =>
            {
                WpfPlot1.Plot.AddSignal(ScottPlot.DataGen.Sin(51, 2));
                WpfPlot2.Plot.AddSignal(ScottPlot.DataGen.Cos(51, 2));

                WpfPlot1.Refresh();
                WpfPlot2.Refresh();

                WpfPlot1.Configuration.AddLinkedControl(WpfPlot2);
                WpfPlot2.Configuration.AddLinkedControl(WpfPlot1);
            };
        }
    }
}

However, it's these type of unexpected changes in behavior that concern me considering how many existing users have code in the wild that depends on the functionality of WpfPlot to remain stable  😅

Looking at the original WpfPlot control, OnSizeChanged is not invoked by the main window or the image, but the grid... I wonder if this difference is what is causing the discrepancy
https://github.com/ScottPlot/ScottPlot/blob/065383a3b6182e35edbe39c2606528bd147bb013/src/ScottPlot4/ScottPlot.WPF/WpfPlot.xaml#L22
I'm probably going to have to put this down for a while because I don't want it to consume a disproportionate amount of time considering the other issues I'm trying to clear today 😅
Let me know if you have any thoughts or suggestions for how to track this down, otherwise I'll pick it up again in a day or two! Thanks again for your work on this

Looking at the original WpfPlot control, OnSizeChanged is not invoked by the main window or the image, but the grid... I wonder if this difference is what is causing the discrepancy
https://github.com/ScottPlot/ScottPlot/blob/065383a3b6182e35edbe39c2606528bd147bb013/src/ScottPlot4/ScottPlot.WPF/WpfPlot.xaml#L22

I am not a WPF specialist, so maybe I am wrong. You cannot use the OnSizeChanged from the Image itself, because it depends on the load image.
I have used the size of the control itself, because the Grid should follow the size of the control. It looks like I missed something 😞.

I'm probably going to have to put this down for a while because I don't want it to consume a disproportionate amount of time considering the other issues I'm trying to clear today 😅
Let me know if you have any thoughts or suggestions for how to track this down, otherwise I'll pick it up again in a day or two! Thanks again for your work on this

As I am really new to PR, could you please tell me how I can import the changes you have done into my clone (I create a branch to test the changes)?
Or what would be the best way to continue with your changes?
I would look at this more closely tomorrow.
Perhaps you should way before merge this change to the main branch.

It looks like I missed something

No worries! There are tons of little corner cases and it's hard to catch everything. The things that I frequently miss are when I make a change that breaks support for display scaling, because that's really difficult to test 😅

As I am really new to PR, could you please tell me how I can import the changes you have done into my clone (I create a branch to test the changes)?

I recommend using the GitHub Desktop app. It's really easy to use (command line git and git inside Visual Studio can both be pretty confusing)
https://desktop.github.com/
Using the GitHub desktop you can open this repository, switch to the branch for this PR, and click "fetch" or "pull" to bring the latest code onto your computer.

I recognize dealing with multi-author branches and pull requests is pretty confusing at first, but once you figure it out once it gets a lot easier! 🚀

Let me know if you have any thoughts or suggestions for how to track this down, otherwise I'll pick it up again in a day or two! Thanks again for your work on this

I think I found what's going wrong after reading Microsoft documentation.
The SizeChanged event is not the best choice, it should be replaced with LayoutUpdated, because every time LayoutUpdated is emitted ActualHeight and ActualWidth are valid. This is not always the case with SizeChanged event.

The SizeChanged event ... should be replaced with LayoutUpdated

I gave this a quick try, but the control crashes maybe because of some type of infinite loop 😅

Hello @swharden,
I made some changes to try to fix the issue with WPF Sandbox app. Now it looks good for me 🚀 😄
Hope it is okay for you:

little change in Backend to avoid creating a new Bitmap when resizing is done with same size
update WpfPlot to override Control function instead of using events
WpfPlot: always create Backend instance with 1x1size to ensure a Bitmap will be created and then resized. This solves the issue.

Fantastic work @KroMignon! That was a complicated behavior to figure out. I'm excited to try this out and merge it in! 🚀

This works great - merging it in now!
I made one small change so the scroll wheel respects direction: https://github.com/ScottPlot/ScottPlot/pull/2526/commits/8d3c065fe247ccb6c11bf2fa402bcd944a579ada
I learned a lot about WPF by studying the topics discussed above - thanks again for the initial suggestion and creating the PR!

Very good news this morning 🎉, I am excited to use new ScottPlotV4 release !
I am very happy I could help, and will starts soon a new PR for ScottPlotV5, this should be done faster... I hope 🙈

source: gharchive/pull-request

authors: KroMignon swharden


text:
FEATURE: Optimizer creates repairing policies in the TOSCA accepted by the Deployer

This PR makes the Optimizer module create repairing policies in the syntax given in Section 7.3 of this document https://docs.google.com/document/d/1Z9RdaWn54IomgI-jCiw-tdutsCdDoHfk67PNUASOFmY/edit# .
There is also a bit of refactoring of previous repeated code.
In order to have a finished way to create these policies, for the next PRs it is still required to specify which modules can scale. Following the last directives, I will create the documentation of the module description, usage and run (I do not add it now due to lack of time as somebody may want to see the code for discussion in the next meeting).

Thanks @perezp.
Could you add some test to check the policies generation?

I'm writing tests for the generated policies. Thanks @kiuby88

Current coverage is 32.14%

Branch #170 has no coverage reports uploaded yet.

No diff could be generated. No reports for master found.

Powered by Codecov. Updated on successful CI builds.

@kiuby88
I addressed your comments and I solved a bug which made travis fail.
There are now a lot of commits, do you want me to squash now or after you check the comments and changes?

+1

Thanks for the review @kiuby88 . Merging....

authors: codecov-io kiuby88 perezp

repo: SeaCloudsEU/SeaCloudsPlatform

license_source: bigquery


text:
Does sea-orm-cli generate MigrationName by current datetime, not Fixed Date

code link:https://github.com/SeaQL/sea-orm/blob/fff738a706d8097bb2b92d7a1fad3b67c2cde653/sea-orm-cli/src/commands.rs#L232
Now:

Suggestion:

Hey @baoyachi, sorry for the delay. Good suggestions! Actually, it's very similar to this feature: creating new migration file with filename of current date time

https://github.com/SeaQL/sea-orm/pull/656
This line, to be exact: https://github.com/SeaQL/sea-orm/pull/656/files#diff-0ad0c0489cc7359f48740c645608cad9aaf0318787c7d1b7fc0910828f2429e4R234

Btw... with this PR landed. We no longer has to specify name of the migration explicitly

https://github.com/SeaQL/sea-orm/pull/736
So, the template now becomes: https://github.com/SeaQL/sea-orm/blob/beef8211d82567858a9ea403d3cb7e54176fa92a/sea-orm-cli/template/migration/src/m20220101_000001_create_table.rs#L3-L4

I'll open this for anyone who feel interested to contribute :)

I want try.

Please go ahead! Thanks in advance! Feel free to ping me here or at Discord if you need help. Just open a draft PR and ask for comments / review :)

Hey @baoyachi, I'll assign this to you

repo: SeaQL/sea-orm


text:
EOS-25262 Merging Main branch to Kubernetes branch for hare fixes and verification

Adding the important commits present in main branch to kubernetes branch
Rebased with latest kubernetes branch

Testing
Testing done with Motr's branch - https://github.com/Seagate/cortx-motr/tree/kubernetes_main
in 3 Node deployment in containers

custom image - http://eos-jenkins.colo.seagate.com/job/GitHub-custom-ci-builds/job/centos-7.9/job/cortx-all-image-custom-ci/1033/parameters/
(build 1033)
motr branch - https://github.com/Seagate/cortx-motr/tree/kubernetes_main
Deployed docker image

[root@ssc-vm-g2-rhev4-1756 ~]# docker images ghcr.io/seagate/cortx-all
REPOSITORY                  TAG                    IMAGE ID       CREATED       SIZE
ghcr.io/seagate/cortx-all   2.0.0-1033-custom-ci   778a9ea53044   4 hours ago   1.91GB

kubectl get pods

[root@ssc-vm-g2-rhev4-1756 ~]# kubectl get pods
NAME                                                   READY   STATUS    RESTARTS   AGE
consul-6v5t2                                           1/1     Running   0          4h5m
consul-bnzzj                                           1/1     Running   0          4h5m
consul-gkqlm                                           1/1     Running   0          4h5m
consul-server-0                                        1/1     Running   0          4h5m
consul-server-1                                        1/1     Running   0          4h5m
consul-server-2                                        1/1     Running   0          4h5m
cortx-control-pod-7c64974dd6-94p4p                     4/4     Running   34         3h57m
cortx-data-pod-ssc-vm-g2-rhev4-1734-65887b8fc9-rghzp   9/9     Running   0          3h57m
cortx-data-pod-ssc-vm-g2-rhev4-1756-65f6f9fddc-zrpm7   9/9     Running   0          3h57m
cortx-data-pod-ssc-vm-g2-rhev4-1913-66df965968-rtcj4   9/9     Running   0          3h57m
gluster-ssc-vm-g2-rhev4-1756-7c99c7fc4d-47xz2          1/1     Running   0          4h3m
kafka-0                                                1/1     Running   0          4h4m
kafka-1                                                1/1     Running   0          4h4m
kafka-2                                                1/1     Running   0          4h4m
openldap-0                                             1/1     Running   0          4h5m
openldap-1                                             1/1     Running   0          4h5m
openldap-2                                             1/1     Running   0          4h5m
zookeeper-0                                            1/1     Running   0          4h4m
zookeeper-1                                            1/1     Running   0          4h4m
zookeeper-2                                            1/1     Running   0          4h4m

All the services are up and running. S3 services are stable.
[root@cortx-data-headless-svc-ssc-vm-g2-rhev4-1734 /]# hctl status
Data pool:
    # fid name
    0x6f00000000000001:0x75 'storage-set-1__sns'
Profile:
    # fid name: pool(s)
    0x7000000000000001:0xba 'Profile_the_pool': 'storage-set-1__sns' 'storage-set-1__dix' None
Services:
    cortx-data-headless-svc-ssc-vm-g2-rhev4-1756  (RC)
    [started]  hax        0x7200000000000001:0x2d  inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1756@2001
    [started]  ioservice  0x7200000000000001:0x30  inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1756@3001
    [started]  ioservice  0x7200000000000001:0x3b  inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1756@3002
    [started]  confd      0x7200000000000001:0x46  inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1756@3003
    [started]  s3server   0x7200000000000001:0x49  inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1756@4001
    [started]  s3server   0x7200000000000001:0x4c  inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1756@4002
    cortx-data-headless-svc-ssc-vm-g2-rhev4-1913
    [started]  hax        0x7200000000000001:0x7   inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1913@2001
    [started]  ioservice  0x7200000000000001:0xa   inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1913@3001
    [started]  ioservice  0x7200000000000001:0x15  inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1913@3002
    [started]  confd      0x7200000000000001:0x20  inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1913@3003
    [started]  s3server   0x7200000000000001:0x23  inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1913@4001
    [started]  s3server   0x7200000000000001:0x26  inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1913@4002
    cortx-data-headless-svc-ssc-vm-g2-rhev4-1734
    [started]  hax        0x7200000000000001:0x53  inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1734@2001
    [started]  ioservice  0x7200000000000001:0x56  inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1734@3001
    [started]  ioservice  0x7200000000000001:0x61  inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1734@3002
    [started]  confd      0x7200000000000001:0x6c  inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1734@3003
    [started]  s3server   0x7200000000000001:0x6f  inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1734@4001
    [started]  s3server   0x7200000000000001:0x72  inet:tcp:cortx-data-headless-svc-ssc-vm-g2-rhev4-1734@4002
[root@cortx-data-headless-svc-ssc-vm-g2-rhev4-1734 /]#

Performed S3 IOs successfully
Created 2 files -

10MB
100MB

Uploaded to the bucket and downloaded and verified.
[root@ssc-vm-g2-rhev4-1756 ~]# aws s3 ls
[root@ssc-vm-g2-rhev4-1756 ~]# aws s3 mb s3://mybucket
make_bucket: mybucket
[root@ssc-vm-g2-rhev4-1756 ~]# dd if=/dev/zero of=file10mb bs=1M count=10
10+0 records in
10+0 records out
10485760 bytes (10 MB) copied, 0.038858 s, 270 MB/s
[root@ssc-vm-g2-rhev4-1756 ~]# aws s3 cp file10mb s3://mybucket/file10MB
upload: ./file10mb to s3://mybucket/file10MB
[root@ssc-vm-g2-rhev4-1756 ~]# aws s3 ls s3://mybucket/
2021-10-29 05:23:05 10485760 file10MB
[root@ssc-vm-g2-rhev4-1756 ~]# aws s3 cp s3://mybucket/file10MB file10mbDn
download: s3://mybucket/file10MB to ./file10mbDn
[root@ssc-vm-g2-rhev4-1756 ~]# diff file10mb file10mbDn

[root@ssc-vm-g2-rhev4-1756 ~]# dd if=/dev/zero of=file100mb bs=10M count=10
10+0 records in
10+0 records out
104857600 bytes (105 MB) copied, 0.238556 s, 440 MB/s
[root@ssc-vm-g2-rhev4-1756 ~]# ls
cortx-all-1009.tar cortx-all-1033.tar cortx-k8s cortx-re file100mb file10mb file10mbDn get_helm.sh
[root@ssc-vm-g2-rhev4-1756 ~]# aws s3 cp file100mb s3://mybucket/file100MB
upload: ./file100mb to s3://mybucket/file100MB

View rendered README.md
View rendered Testing_Verification_History.md
View rendered ha-simulator/README.md

@mssawant  please review and lets see if we can merge

repo: Seagate/cortx-hare


text:
🛑 IPFS Gateway 1/2 is down

In 0cc608d, IPFS Gateway 1/2 (https://ipfs.seanstaffiery.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: IPFS Gateway 1/2 is back up in 383cef4.


text:
Belindas-closet-nextjs_6_369_enable-auto-assign-issues

Resolves #369
Once merged, this should auto-assign developers to the issues they create for this repo.

Looks good to me. Thanks for the work on this issue.

Looks good to me. Thanks, Taylor

This will be a great feature enhancement added to the project. Looks great

Great job! This feature is very convenient! I found an interesting link too: https://github.com/andrewlock/auto-assign-issues

authors: Diego-Cano MaddasaHatter MuhammadNSC kaimanasse15 taylorpapke

repo: SeattleColleges/belindas-closet-nextjs


text:
undefined field 'tags'

Thanks for the info. tags was missing in the type definition. I added them to the latest release.

repo: Sebaestschjin/typed-tabletop-simulator


text:
Refactor suggestions about @Input and implementing a custom decorator

The code is currently using inputs array of strings on component metadata to tell Angular that properties with these names are to be considered inputs. This way of listing such properties is currently considered bad practice according to official Angular styleguide. It makes sense: maintaining is difficult because it's scattered around, and let's not even begin on typos and refactoring.
So my first suggestion is moving away from inputs and using @Input() instead.
In a similar fashion, we're maintaining an array of strings _mapOptionsAttributes in order to iterate over them more easily. This can be solved with a custom decorator; here's a proposed simple implementation.
function MapOptionAttribute() {
  return function (target: SebmGoogleMap, key: string) {
    if (!target.constructor._mapOptionsAttributes) {
      target.constructor._mapOptionsAttributes = [];
    }
    target.constructor._mapOptionsAttributes.push(key);
  }
}

And example usage:
class SebmGoogleMap {
   @Input()
   @MapOptionAttribute()
   public longitude: number;

   // We basically need this just for typing information in here.
   // The actual value is assigned through the decorator.
   private static _mapOptionsAttributes: string[];
}

The accompanying JS bin in action is also available.
How does it seem? Any suggestions? @SebastianM, if you like the idea, I could work out a PR.

It was mentioned in https://github.com/SebastianM/angular2-google-maps/pull/863#issuecomment-274323914 that a reason for not doing this is being unable to generate docs. There doesn't seem to be a proper document generation tool for Angular (yet). However, ng-bootstrap has a custom script for generating docs which is probably worth checking out.


text:
Weirdness with sampler

Dear Sebastian,
I seem to be having a difficulty with the Bingham sampler-- it always produces the same sample (which is a degenerate sample).  I am going to include some example code and then the output.
I compiled with "-lbingham -lm" and nothing else interesting.
First, the code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "bingham.h"
#include "bingham/util.h"
#include "bingham/bingham_constants.h"
#include "bingham/hypersphere.h"

int main(){

	// create n 4-D unit vectors
	int n = 10,i,j;
	bingham_t B_true;

	/* Make a non-uniform Bingham distribution */
	double Z[3] = {1, 2, 5};
	double V[3][4] = {{1,0,0,0}, {0,0,1,0}, {0,0,0,1}};
	double *Vp[3] = {&V[0][0], &V[1][0], &V[2][0]};
	bingham_new(&B_true, 4, Vp, Z);

	/* Print out some details */
	printf("B_true:\n Z:");
	for (i=0;i<3;i++){
		printf("  %.3f",B_true.Z[i]);
	}
	printf("\n");

	/* Draw some samples from that distribution */
	double **X = new_matrix2(n,4);
	bingham_sample(X, &B_true, n);

	/* Print the first few samples */
	for (i=0;i<3;i++){
		printf(" Sample %d: ",i);
		for (j=0;j<4;j++){
			printf("  %.3f",X[i][j]);
		}
		printf("\n");
	}

	/* cleanup */
	free_matrix2(X);
	bingham_free(&B_true);
	return(0);
}

Next, the output:
B_true:
 Z:  1.000  2.000  5.000
********* seed = 1439290056
d_off = nan, d_diag = nan
 Sample 0:   0.000  1.000  0.000  0.000
 Sample 1:   0.000  1.000  0.000  0.000
 Sample 2:   0.000  1.000  0.000  0.000

The concentration parameters Z should be in the range [-900,0]. 0 represents a uniform distribution, towards -900 the distribution gets more concentrated and peaked. Can you try correct Z parameters and report back?
On August 11, 2015 1:02:15 PM CEST, wfbradley notifications@github.com wrote:

Dear Sebastian,
I seem to be having a difficulty with the Bingham sampler-- it always
produces the same sample (which is a degenerate sample).  I am going to
include some sample code and then the output.
I compiled with "-lbingham -lm" and nothing else interesting.
First, the code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "bingham.h"
#include "bingham/util.h"
#include "bingham/bingham_constants.h"
#include "bingham/hypersphere.h"

int main(){

	// create n 4-D unit vectors
	int n = 10,i,j;
	bingham_t B_true;

	/* Make a non-uniform Bingham distribution */
	double Z[3] = {1, 2, 5};
	double V[3][4] = {{1,0,0,0}, {0,0,1,0}, {0,0,0,1}};
	double *Vp[3] = {&V[0][0], &V[1][0], &V[2][0]};
	bingham_new(&B_true, 4, Vp, Z);

	/* Print out some details */
	printf("B_true:\n Z:");
	for (i=0;i<3;i++){
		printf("  %.3f",B_true.Z[i]);
	}
	printf("\n");

	/* Draw some samples from that distribution */
	double **X = new_matrix2(n,4);
	bingham_sample(X, &B_true, n);

	/* Print the first few samples */
	for (i=0;i<3;i++){
		printf(" Sample %d: ",i);
		for (j=0;j<4;j++){
			printf("  %.3f",X[i][j]);
		}
		printf("\n");
	}

	/* cleanup */
	free_matrix2(X);
	bingham_free(&B_true);
	return(0);
}

Next, the output:
B_true:
Z:  1.000  2.000  5.000
********* seed = 1439290056
d_off = nan, d_diag = nan
Sample 0:   0.000  1.000  0.000  0.000
Sample 1:   0.000  1.000  0.000  0.000
Sample 2:   0.000  1.000  0.000  0.000

Reply to this email directly or view it on GitHub:
https://github.com/SebastianRiedel/bingham/issues/7

Dear Sebastian,
Thank you, that fixed it!
For future reference, how does the code define a Bingham distribution (i.e. "V" and "Z")?  Based on the parameterizations I am more familiar with, I was assuming that Z[i]>=0 and V[i][] were unit length, both of which appear to be false.  Is there some document I should be reading to figure this stuff out?

The code is originally Jared Glover's. He describes the convention and code in his Bingham related publications. You can easily find them in Google scholar.
Fyi, the V vectors are unit vectors.
On August 11, 2015 4:43:49 PM CEST, wfbradley notifications@github.com wrote:

Dear Sebastian,
Thank you, that fixed it!
For future reference, how does the code define a Bingham distribution
(i.e. "V" and "Z")?  Based on the parameterizations I am more familiar
with, I was assuming that Z[i]>=0 and V[i][] were unit length, both of
which appear to be false.  Is there some document I should be reading
to figure this stuff out?

Reply to this email directly or view it on GitHub:
https://github.com/SebastianRiedel/bingham/issues/7#issuecomment-129912448

Ah, of course.  For other readers, a definition can be found on page two of Tracking the Spin on a Ping Pong Ball with the Quaternion Bingham Filter.  I'd copy the definition, but I don't know how to write the math with Git's markdown format.
And on more careful examination, the V vectors are unit length, as you mentioned; I'd made a mistake interpreting the precision.

authors: SebastianRiedel wfbradley

repo: SebastianRiedel/bingham


text:
Installing module causes database error

Trying to install this on our server causes:
AppApi: Error creating db-tables: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'JSON NOT NULL, token_secretvarchar(100) NOT NULL,expires_in int(11' at line 10
Rest of the error is missing.
Trying to create new Application causes:
The application could not be saved: SQLSTATE[42S02]: Base table or view not found: 1146...
So something is breaking during installation.
Just posting this here incase there's something unorthodox going on with the modules installation. First time we've encountered this and we've done dozens of Processwire sites with many modules before.

Thank you @Hurmeli !
I noticed problems with the installation routine a few days ago when I was working on another module. Somehow the code that is defined in the module in the ___install function doesn't seem to be executed anymore. As soon as I add my own ___install implementation, the installation throws an error. In the AppApi module, all database tables are created in this function.
I don't know yet exactly where this error comes from and I am debugging it. Right now I'm assuming a bug in the ProcessWire core, but I need to test further. Please let me know if you find out more in the meantime!

Hey @Hurmeli,
I think your issue could be solved. I have found out that some versions of MariaDB seem to have problems with JSON for the database column type. It's recommended to use LONGTEXT instead, so I changed the db-initialization logic for it.
Please report back if the issue is still apparent!

authors: Hurmeli Sebiworld

repo: Sebiworld/AppApi


text:
Remove JwksSupplier from the public API

JwksSupplier interface has 2 implementations:

JwksSupplierJwksUri
JwksSupplierEmbeddedJwks

The first impl works with a SoftwareStatement that has a jwks_uri defined, the second impl works with a SoftwareStatement that has an embedded jwks defined.
The issue with the current impl is, because these classes are public, you can call the wrong supplier type for the SoftwareStatement. These classes are currently only used by RegistrationRequestJwtSignatureValidationService to validate the signature of the registration request, as there is no way to plug behaviour into this service then it makes sense to move the supplier classes in here and make them private.
Additional cleanup task, rename the suppliers to make them follow the naming convention of using a prefix:

JwksUriJwksSupplier
EmbeddedJwksSupplier

Alternatively, we could allow the JwksSupplier behaviour to be plugged into the RegistrationRequestJwtSignatureValidationService to allow customers to extend it if necessary.

repo: SecureApiGateway/SecureApiGateway


text:
Partnership > Marketing user can create "Partnership" even user have only "Global R" access

Roles: Marketing
Describe the bug
Partnership > Marketing user can create Partnership even user have only Global R access
Steps to Reproduce

Login as Admin user
Create a project and go to the project detail page
Login as a Marketing user
Open created project
Click on the partnership button
Add partnership

Expected Result
The partnership should not be created
Actual Result
Marketing user can create Partnership even user have only Global R access
See video -
https://user-images.githubusercontent.com/5212585/118809669-8a686700-b8c8-11eb-8a47-57531f9e3a06.mp4

FYI: @ParkeBrown @michaelmarshall
cord-field# 1d6e8100

@ParkeBrown @CarsonF @parashara1
Tested with latest develop d49b012 and it's working fine now. Attaching a video for reference. Closing the issue. Thanks!
See video :
https://user-images.githubusercontent.com/5212585/132639169-1d15c800-3606-4634-890f-e5eb9c268f11.mp4

repo: SeedCompany/cord-field


text:
[Bugfix] Allow PSBTOverviewScreen to truncate "self-transfer"

Fixes #215
Truncating "self-transfer" gives the UI the horizontal room it needs to properly render.

LGTM
Code reviewed and tested on local device without issue

LGTM
Code reviewed and tested on local device without issue

authors: kdmukai newtonick

repo: SeedSigner/seedsigner


text:
executable damaged

Hi Andrei &Elika, when I double click the executable I get this message: "idslabel" is damaged and can't be opened. You should move it to the Trash. I am on OS 10.11.5. It does work when I launch it from command line. Thank you for your work on this!

well that's not good...
I'll look into this

authors: AnneSWarlaumont andreiamatuni

repo: SeedlingsBabylab/idslabel


text:
Is it possible to read I-Bus with some modifications?

Sorry if this is a stupid question, I am on a crash course trying to learn all this stuff, but Is it possible to read I-Bus with this same shield and or some modifications to the code?

Hello, I think I-Bus is not supported by this shield.
Thanks.
Loovee

license: mit


text:
pt estimate for T5s in parseT5 function is deprecated

The pT for T5s in the output NTuple are computed as follows:
float pt = quintupletsInGPU.innerRadius[quintupletIndex] * kRinv1GeVf;
...
ana.tx->pushbackToBranch<float>("t5_pt", pt);

However, the pT estimate in parseT5 is just the average of the T3 pT's (which is somewhat questionable per #214):
// Compute pt estimates from inner and outer triplets
const float ptAv_in = abs(dr_in * k2Rinv1GeVf / sin((betaIn_in + betaOut_in) / 2.));
const float ptAv_out = abs(dr_out * k2Rinv1GeVf / sin((betaIn_out + betaOut_out) / 2.));

// T5 pt is average of the two pt estimates
const float pt = (ptAv_in + ptAv_out) / 2.;

It's my understanding that the pT as computed for the T5s in the output NTuple are "more correct," and that both the pTs from the output NTuple and parseT5 are used and therefore giving inconsistent results. I am working on a PR (will include link here when available) that will add some additional branches for the GNN NTuple, so I can make the fix in that PR as well if desired.

@jkguiang Is this still an issue? Did you deal with it in any of your PRs,as mentioned in the description?

Closed by #388

authors: VourMa jkguiang

repo: SegmentLinking/TrackLooper


text:
The previous step2 file is incompatible with CMSSW_14_1_X

The CI was running into segfaults with CMSSW_14_1_0_pre0 after I switched to using the full file with 100 events, but it worked briefly while it was still using a newer file that only had 10 events.
I was able to reproduce the issue on the UCSD and Cornell machines, and after some testing I verified that the issue was the old step2 file.
I'm generating a new step2 file with 100 events using CMSSW_14_1_0_pre0 and we'll have to deploy it to the CI, and the UCSD and Cornell machines.

@ariostas   what's the cmsDriver command used for testing?
where is the reference step2 file coming from?
is it one from evourlio/LST/samples/RelValTTbarForCMSSW1300pre4/CMSSW_13_0_0_pre4/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/130X_mcRun4_realistic_v2_2026D88PU200-v1/ ?

@slava77 it's this one: evourlio/LST/step2_21034.1_100Events.root

@slava77 it's this one: evourlio/LST/step2_21034.1_100Events.root

the provenance shows that this was in CMSSW_13_0_0_pre4. I'm aware of some L1-related data format changes; but then we are not reading L1 objects, not obvious if it's still possibly related.
anyways, it sounds like it's not a part of a large production.
It should be more straightforward to reproduce this file.
I suggest to use HLT:@fake in step2; perhaps even try without L1TrackTrigger,L1: the output file will be a bit smaller and will also not have products that we are not using.

@slava77 @VourMa Could someone who has write permissions to /data2/segmentlinking on cgpu-1 create a CMSSW_14_1_0_pre0 directory and make a symlink to /ceph/cms/store/user/anriosta/LST/samples/CMSSW_14_1_0_pre0/step2_21034.1_100Events.root?

I can do it.

Done!

authors: VourMa ariostas slava77


text:
🛑 Strapi is down

In db5a66c, Strapi (https://strapi.sekai.best) was down:

HTTP code: 525
Response time: 1385 ms

Resolved: Strapi is back up in 4350a84 after 13 minutes.

repo: Sekai-World/uptime-monitor


text:
Rewrite the plugin to run in an exclusive system

The motivation for this was that it lets us get rid of all the Bevy reflection machinery and the requirement to register every trigger (which makes 'trigger combinators' much harder to use). The downside is that the triggers and transitions now run in an exclusive system, which could be worse for performance. We can ameliorate this using the ComputeTaskPool to spread running the machine across threads.
I also added some functionality tests.
I kept the Reflect bound on MachineState, even though it's probably not necessary, in case it winds up being useful for better debugging information or something later.
(Suggestion: don't review the PR one commit at a time, it's a bit messy; just look at the final diff.)
Breaking changes

TriggerPlugin no longer exists and is not necessary; StateMachinePlugin is all that's needed.
State builders now take their input by value instead of as a reference
Triggers can now only take ReadOnlyStateParams
The Trigger set no longer exists, since we check triggers and run transitions in the same system

Thanks!

authors: Seldom-SE deifactor


text:
Right sidenav opening from left side of page.

Just getting started with semantic-ui.
Seem to have run into a problem with the right sidebar opening from the left side of the page. Only  happens while there is a visible left sidebar. Do I need to put each sidebar in a different container div?
http://jsfiddle.net/rduvhn8u/30/
click inside the Need Help input box to load right sidebar.
Prelim debug:
If I take out the left sidebar the code runs and the right sidebar works great.

If you call sidebar with an init object it will reinitialize and destroy the previous instance.
Try syntax like this
http://jsfiddle.net/bzx2x929/

Thanks. Worked great!

authors: debutmyname jlukic

repo: Semantic-Org/Semantic-UI


text:
[Menu] Make a Menu containing another Menu stackable

Currently a menu containing another menu does not stack properly.
For example in http://jsfiddle.net/05d2qsgy/2/ you can see that the menu button "help" in the second menu is missing when the menu is stacked.
My solution is to add the following css code:
@media only screen and (max-width: 767px) {
.ui.stackable.menu .right.menu,
.ui.stackable.menu .right.item {
display: block;
}
}
Now you can see that the menu button "help" in the second menu is stacked properly http://jsfiddle.net/05d2qsgy/1/.

See #3604.

authors: Banandrew gujiman


text:
Is the gap between .ui.fixed.menu and .ui.grid enough?

An grid after an fixed top menu receives a top padding of 2.75rem. Is it working for you? In my case, the grid is still rendered over the top menu. Is that "by design"?

This issue is not valid.


text:
[Dropdown] Change direction of Dropdown menu

I'm using Semantic-UI and Angular for developing a web app.
Following to Semantic-UI documentation about dropdown, I created the following button:

Menu

     {{m.name}}

I would like to change the direction of the menu, and set it on the left, instead of right. Do you know how can I reach that?
Could be a good idea to have a direction/orientation option?
Here is a Plunker.

Did you get a chance to read : Menu Direction in Dropdown ?

Yes, I read it, but it wasn't what I'm looking for. I mean direction of the dropdown menu, not direction for a sub-menu of the dropdown menu.

Guess, what you're asking is similar to this issue: #3716

But still, that's again dropdown, then (left)/(right) side menu..

I see, thank you anyway. So that's a feature request that has not yet been accomplished. Am I right?

Hi @smartm0use, try to use
, it’s the only thing that can work out of the box. Closing the issue as a duplicate of #3716, I see no difference between the two.

@Banandrew As I said before that solution wasn't I looking for. It should be like Floating appearance, but I need one button instead of two.

I am looking for bottom left direction dropdown

authors: Banandrew Utsho-Sadhak-Joy smartm0use vinayakkulkarni


text:
Добавить больше рассчетных примеров в лекцию про кубит

Рядом с примерами на NumPy прямо матрички расписать еще для наглядности.

Добрый день.
Могу взяться за этот issue.
И вопрос - для измерений ("Еще пара слов об измерениях") так же нужны формулы?
Спасибо
Леонид

@flatslm Я тогда лучше объясню, откуда этот issue взялся. Был фидбек о том, что все очень сложно:

У numpy расчета есть большой недостаток. Он что-то посчитал, кажется понятно что, а потом надо посчитать в первом задании скалярное произведение, я его считаю. А ответ не получается

я сейчас перечитываю статью про кубиты. Все начинается просто и понятно, а потом фигак фигак Правило Борна. И приходит понимание, что чет я не умею считать ожидаемое значение оператора. Общая проблема вызвана наверное слабой математической подготовкой и быстрым усложнением.
Кажется, что если бы я в ручную посчитал побольше операций над векторами и матрицами, то лучше бы понял. Этим и занимаюсь по вечерам. Потом расскажу, помогло ли )

Отсюда и родилась идея о том, что помимо операций на NumPy надо рядом расписать все то же в виде матриц, явно показать как все получается и т.д. Именно примеры, прямо с цифрами. Наверное в измерения тоже надо, так как людям может быть трудно понять, как работает правило Борна, как считаются мат-ожидания результата измерения какого-то оператора в каком-то состоянии и т.д.

@flatslm Я добавил тебя в коллабораторы репозитория. Просто у нас ломается деплой стэйджинг версии и все проверки, если Pull-Request идет из форка. Поэтому просьба делать сразу внутри этого репозитория, просто создав ветку.

authors: SemyonSinchenko flatslm

repo: SemyonSinchenko/qmlcourse


text:
[WIP] Lecture/simon algorithm

Тут удалилась лекция Саймона, возвращаю. Скоро разрулю

Не, чет тут мешанина


text:
change hover/focus border on header nav

surface-4 border by default
text-color on hover/focus
add !important to rad/kanj/vocab nav colors

I think this looks pretty good. I left the check for min-width: 1024 px to style the border around the magnifying glass. Probably unnecessary, but wanted to tread lightly. I've not done a lot of testing of this theme at different screen resolutions in general.
I only added selectors for :hover and :focus. I think that's right, but let me know if I should add :active as well.

After looking a bit more into it, the bevel values are both set to 4px. So it's either an issue with rendering on my browser or the negative margin of the span element is not taken into consideration, when calculating the bevels.
There are 3 potential solutions I can think of:

Leave it be, it's a minor issue, that might not be worth fixing.

Make the border-radius of the whole button larger.

Make the border-radius of the span smaller.

Im gonna trust your judgement here. Do what you consider to be the best solution and if that happens to be leaving it as is, feel free to merge into main.

Yup, that's how it works with the default WK styling. The span with the count doesn't get a visible border (on hover/focus or normally).
I think it's due simply to the span having a higher z-index. They've got a weird  negative margin thing going on, too. Let me poke a bit and see if it's easy to fix.

@Sepitus-exe How does this look?
Normal:

Hovering over lessons:

I just gave a z-index of -1 to the span.

Changing the z-index introduces a whole seperate, more sever issue. The span is no loger visible on narrow resolutions.
It would probably be safer to remove the border-radius and the negative margins from it.

The span is no longer visible on narrow resolutions.

How did you create that screenshot? At resolutions below 1024px wide, the shortcuts and levels/radicals/kanji/vocab/help nav items disappear for me. The header stops being sticky, too.
I'm not able to reproduce your screenshot.

I just scrolled down a bit so the L/R buttons would appear and used the F12 console to shrink the width of the screen.
The header has its position set as fixed, so it shouldn't disappear on its own.

F12 console to shrink the width of the screen

You mean the inspector in the browser? (I'm on a mac.)
I'm unable to reproduce on either Brave or Firefox. What browser are you using?
The entire mini-nav thing for reviews and lessons shouldn't appear at screen resolutions below 1024px wide, I think.
That seems to be an independent issue, regardless. I'm tempted to merge with the z-index fix as the span "belongs" to the link as it were. It makes sense for the the border-outline to cover everything.

it seems to be an issue only on non-dash pages.

Aha! Let me look into that (was only looking at the dashboard).

I'm struggling to figure out why the span disappears at widths below 1024px. Very weird.
I'm tempted to just add a media query so the z-index change only affects resolutions above 1024px wide, and revert to the original behavior for narrow screens.
If I can't figure it out, that's what I will merge.

Aha. It's something to do with using display: flex; at lower resolutions.
This is getting too painful to futz with. I'm just going to use a media query.

Okay, we can revisit this at some point if desired.
Current behavior is to have a border surrounding the entire nav link at higher screen resolutions. At lower screen resolutions it reverts to the top "leave it be" behavior shown in this comment

authors: Sepitus-exe wrex

repo: Sepitus-exe/WKElementaryDark


text:
amazon_cognito_identity_dart_2 new edition conflict

I use ^3.3.0 version of amazon_cognito_identity_dart_2
I don't want to downgrade\
0.1.25

I guess it is the best module in Dart modules.

bad:
SimpleS3
minio

If you have the time to fork this library and test that it works with the latest version of amazon_cognito_identity_dart_2, a PR would be incredibly welcome!

FYI
flutter pub add aws_s3_upload command's result
Because aws_s3_upload <1.2.0 depends on amazon_cognito_identity_dart_2 ^0.1.25+1 and aws_s3_upload >=1.2.0 depends on amazon_cognito_identity_dart_2 ^1.0.3, every version of aws_s3_upload requires amazon_cognito_identity_dart_2 ^0.1.25+1 or ^1.0.3.
So, because MKBContainerFortune depends on both amazon_cognito_identity_dart_2 ^3.3.0 and aws_s3_upload any, version solving failed.
pub finished with exit code 65

dependency_overrides:
  amazon_cognito_identity_dart_2: ^3.3.0

in pubspec.yaml

authors: Serdnad mkbsugita


text:
Support for Inline arrays in C# 12 preview?

https://devblogs.microsoft.com/dotnet/new-csharp-12-preview-features/#inline-arrays

Is anyone working on this? I may be willing to do so, but I'm hesitant because I don't have much experience with source generators.

This is planned (along with all other new polyfills for C# 12), just waiting for the language to be stable first 🙂
The design of several of the new attribute types has changed over time, so I want them to stabilize before adding polyfills.

Hey Sergio, I love your work!
Following on from the C#12 theme, with .NET 8 now released I can’t wait to start using it!
Are you able to share the plans for C#12 support? Is there anything the community can do to help?
Thanks :)

Hmm, today I was curious how we can do things by ourselves. So I decided to play around with things myself in order to see how far I can get, and what happened was actually quite interesting.
After setting my csproj TFM to net481 I got several errors, but most obviously that the InlineArray attribute was missing.
So I just decided to copy the official InlineArrayAttribute.cs .NET source file into my project.
Which solved that part of the problems.
Another error shown about missing System.Runtime.InteropServices.MemoryMarshal.CreateSpan was shown by IntelliSense (but somehow not by the compiler output itself) at that point on my code where I assigned values to my internal array for all the indices.
I was eventually able to remove it by making my own public static partial class MemoryMarshal implementation with a CreateSpan method and modify that a bit so that it could compile on .NET Framework as well.
However, after these actions, the following more serious compiler error still remained:
error CS9171: Target runtime doesn't support inline array types.

To me, that suggests that the current situation is that inline arrays are actually impossible on .NET Framework at all, or at least that Roslyn compiler itself does not allow you to do this at least.
So in that case I guess PolySharp alone will not be able to solve it I guess...

Oh, I forgot this one. Actually completed by #81.

"inline arrays are actually impossible on .NET Framework at all"

That is correct, it requires runtime support. This is why it's part of the "runtime supported" attributes which are dummy and don't actually do anything (like eg. [UnmanagedCallersOnly]), and are opt-in. They're only meant to make multi-targeted code cleaner.


text:
Didn't run on Ubuntu

Traceback (most recent call last):
File "Training Data Collection/caputre_training_date.py", line 1, in
from sneakysnek.recorder import Recorder
File "/home/dao/.local/lib/python2.7/site-packages/sneakysnek/recorder.py", line 26
raise RecorderError(f"Unsupported platform '{sys.platform}'")
^
SyntaxError: invalid syntax

Could it be as Ubuntu returns   'linux2' for sys.platform while expected is "linux2" ?

The invalid syntax is because you aren't running on Python 3.6+
The platform for Ubuntu is covered: https://github.com/SerpentAI/sneakysnek/blob/master/sneakysnek/recorder.py#L16

Thanks!

authors: nbrochu suchitsha

repo: SerpentAI/sneakysnek


text:
Application failing on Safari 6.2.8

System – OS X 10.8.5
Processor 2.66 GHz Intel Core 2 Duo
Memory – 8GB 1067 MHz DDR3
Various tests to test eligibility  (eg Income approx $38000 1 dependent) and front page worked correctly by showing eligibility. Clicked on apply but failed to get to next screen with just white screen.
Shut down browser and tried again. Still failed.

@Br3nda @ssibbehh I dont really have a way to test this. My Safari is 9.2.1 and it works fine for this version. Only other option I can think of is by purchasing browserstack but its not free

@gthurstonnz can you bring your safari device to the lab?

I'll see what I can do. I'll check in with Bron and Jess. When do you need
it by?
On Sat, Aug 4, 2018 at 4:30 PM Brenda Wallace notifications@github.com
wrote:

@gthurstonnz https://github.com/gthurstonnz can you bring your safari
device to the lab?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ServiceInnovationLab/pancake-frontend/issues/504#issuecomment-410422667,
or mute the thread
https://github.com/notifications/unsubscribe-auth/An_Eq_HdjtnrygNKHAFVvlG-fML6ywm6ks5uNSNtgaJpZM4VnNj-
.

repo: ServiceInnovationLab/pancake-frontend


text:
Fix chrome ts

sorry potato pc people

Fixes problems that rose after typescript migration in chrome branch

hahaha ofc ofc. Wonderful!


text:
Make boiling oil engineers pour automatically.

It is hard to use boiling oil pot engineers as a human player, you have to manually pour the oil in a certain direction which makes them a poor option for defence compared with fire throwers, as it takes a lot of time to manually make several oil pot throwers use their oil, when there may be other things you need to do with castle defense such as recruiting new troops. It would be good if you could have the option to put oil pot engineers on aggressive mode and they would automatically pour the oil if units were in range, then they would automatically return and get oil and go back to their position.

Actually, you can do that!
On aggressive mode, they will pour their oil as soon as 1 enemy unit is in range, and on defensive mode they will pour their oil as soon as 3 enemy units are in range.
Right after they emptied their oil pot, they will run back to the oil smelter, get their pot filled up again and then return to their previous position on some wall/tower/gate.

Oops, had the original pre-Warchest version of Stronghold Crusader where the oil engineers didn't appear to autopour and haven't used oil engineers since, didn't realise this was fixed now officially!

authors: Heroesflorian PitchNeeded


text:
Some video for firefly about bugs and glitches to fix, but also some useful hints(tricks) for overall playing.

I'm already talking about some SHC tricks/glitches/bugs. I'm going to showcase them on Crusader(game) soon too. Let me know what you think about it, maybe underneath the video in the comments section(so it'll be forever visible, even for future for firefly?)? ;) Help push up the topic, so Firefly might finally take an interest in fixing/removing/altering those, once Warlords will come out. Cheers!
~Rakso
Youtube video

I like how everybody is trying to use "issue" section as promotion stand

I like how everybody is trying to use "issue" section as promotion stand

i think that shows 2 things:

we are in a desperate need for fixing bugs of the game, the video showcases alot of bugs, which apperently are in present in Stronghold Crusader. I know that your mod fixed some issues, that were not adressed by sh0wdown, which are mostly multiplayer related, while sh0wdowns mod fixes so many issues with the AI (which i am really exited and happy about!).

We are in a desperate need to unite Crusader friends on a commen plattform. There is no official plattform from firefly that works. So there are many plattforms popping up, each claming to be the one, but not really all the people know of all of these and they are scattered around the world. Even the chinese community must have their own plattform for the game.

This is how the Firefly Forum looks like.
http://archive.fireflyworlds.com/index.php?option=com_fireboard&Itemid=271&func=showcat&catid=17
If i try to enter the general section of  Stronghold Cruisader Original, i am promptet with 502 bad gateway. It seems like not a hole lot of care is put into this.
But at least they have a working discord now. And maybe, just maybe, they will notice their huge fanbase about the original 2D titles some day and adress some issues.
Keep up the great work guys and spread the word about the game!

Yeah, I have to agree with Krarilotus. There is no central point for the Stronghold and Stronghold Crusader community, and this bug-tracker is at the moment the most active thing.
And as long as Sh0wdown and his mods accept 'issues'/posts like this, it is fine I guess. (But obviously, not the perfect solution, but I guess there will be no alternative in the future).

authors: J-T-de JuGGerNaunT Krarilotus Rakso69


text:
Error 405 when sending email

Description
I've been experiencing an issue when attempting to send an email using this library. Specifically, I'm receiving a HTTP 405 error. I suspect this issue may be related to a change in mailchannels. This was working fine for a couple months and stop working today.
Additional Information
From preliminary research, MailChannels, has recently published an article detailing various security measures against domain name spoofing, called "Domain Lockdown". This might be a potential reason for the issues we're facing. Linked below are their help posts:

Sending Email from Cloudflare Workers using MailChannels Send API
Secure your domain name against spoofing with Domain Lockdown™

Note that participation in Domain Lockdown is now mandatory for Cloudflare Workers users.

I've tried to configure the Domain Lockdown they write about with no luck. Does anybody now how to set this up?
Thank you.

Facing the same issue here

Sometimes Vercel returns a 405 when a response isn't sent, like when an error is thrown. For me it's failing when calling Email.send with the error Error sending email.

authors: abhishekmg francofantini treyhuffine


text:
0MC3

Use the preview tab to see the example given below. Edit the relevant information and preview the changes before submitting. You may delete these instructions.

Key
Value

ID
0MC3

Source
Vaaran Bhai Gurdas Ji

Page
28

Line
gur isKI DIrju Drmu; iprm ipAwlw Ajru jrxw [

Correction
THIS ≠ THAT

PROOF (EDITION)
Image:

Correction:
gur isKI ≠ gurisKI
Proof:
Vaaran Bhai Gurdaas Ji | November 2011 | Shamsher Singh Ashok | SGPC, Sri Amritsar
Image:

authors: UmeetSingh bhajneet

repo: ShabadOS/database


text:
useMutation without id

Hi, I have question about mutations.
I have this backend controller:

React-query-swagger generates this:

And now, because I have ID in url, it is needed while initializing useUsersPUTMutation.
So I cannot use useMutation for multiple users. Or sometimes I dont know ID on initialization.
So I'm doing workaround and using Client.usersPUT(id, body) directly when I know ID.
But I'm wondering if it is good practice to using usersPUT directly, and if I'm not loosing any of features that useUsersPUTMutation adds.
Thank you in advance for your time :)

Personally I'm not using mutations that often.
I mean, I almost never send GET requests directly (always work with useQuery), but for POST/PUT/DELETE requests, in over 60% of the cases I send them via client methods, and not via mutations.
So for me it feels ok :)

repo: Shaddix/react-query-swagger


text:
Problem passing multiple parameters to "RegisterMethod" registered method

Currently i'm implementing a library in Go which needs to get multiple parameters on a method call:
https://github.com/chiguireitor/godot-gobtcsuite/blob/154bc8fec32c87dc9a8c8f7dba0a67c3850f5605/src/gobtcsuite.go#L280
That call is getting the first parameter right, but the rest of the Variants in the args array come with weird values. For example, calling with 3 ints i do:
fmt.Sprintf("%d %d %d", args[0].GetType(), args[1].GetType(), args[2].GetType())

and get
2 81748992 81748992

as result
Edit: It should be noted that the expected result should be 2 2 2 seems like the args array is only getting initialized on the first value, i've been trying to debug this but can't find where's my method getting called to change it on godot's or godot-go's code.

I'm seeing the same issue here - any update?

repo: ShadowApex/godot-go


text:
How to turn on and turn off botplay with lua script?

What is your question?
How to turn on and turn off botplay with lua script?

setProperty('botPlay',false)

thanks

authors: AziziPGM NS-Unfair zwl1619

repo: ShadowMario/FNF-PsychEngine


text:
arrows and notesplashes changes mid song

Describe your problem here.
something like in endless
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

This is an event that sets the note skins and splashes.
function onCreate()
for i = 0, getProperty('unspawnNotes.length')-1 do
if getPropertyFromGroup('unspawnNotes', i, 'noteType') == '' then
setPropertyFromGroup('unspawnNotes', i, 'texture', 'your note here', 'your note here');
setPropertyFromGroup('unspawnNotes', i, 'noteSplashTexture', 'your splash here');
end
end
end
If you want to send more than one:
function onUpdate(elapsed)
if curStep >= (your number here) then
setPropertyFromGroup('unspawnNotes', i, 'texture', 'your note here', 'your note here');
setPropertyFromGroup('unspawnNotes', i, 'noteSplashTexture', 'your splash here');
(repeat as many times as you want)

authors: Itz-Miles MrSomethingoridk


text:
Black screen or crash on song

Describe your bug here.
So uh, I just loaded the game by lime test windows, and when I select a song, it crashes. But black screen is on the character editor.
Any help please? I worked on it and it looks like I lost most of the work on it.
Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Source
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
I remember adding a new credit section, no errors to it tho.

also i have a good laptop/pc so yea


text:
in the character editor there should be an option to put a "beat" on certain frames

What feature do you want to get added on the base engine?
in the character editor there should be an option to put a "beat" on certain frames as to make it on that frame a beat gets hit
To test your sight, and reliability, please select the option of what should NOT be requested.
Stage Editor, 6K+ support, and winning icons.

What exactly is a "beat"?

so you know when a character puts there head down on there idle I'm saying there should be a feature where you can pick the frame or frames it happens on

that means changing how beats are calculated for a feature with little use

that means changing how beats are calculated for a feature with little use

thats not exactly what it would do for example for the people in front player and opponent there idle animation plays once every other beat what I'm saying is that you could put the frame on wich the animations starts each beat or other beat like how GF head hits every beat it wouldn't change how it was calculated because it doesn't change anything besides an animation

I barely got that but isn't that what indices are for

character.danceEveryNumBeats?

You could probably do this using a LUA event. Either using characterDance('dad/boyfriend/gf'), or characterPlayAnim('dad/boyfriend/gf', 'idleanimationname', true) in a LUA event, and then placing the event wherever you want a beat in the chart editor. I haven't tested it yet, so I'm not sure if it would work. One main problem I could think of is that the normal idle animation would play in the middle of the new beat, but I'm not sure.


text:
Tier augments still not applied in some vanilla methods which spawn mobs

The augments from the current world tier are not applied when mobs are spawned by the following vanilla methods:

Generating chunks
Generating structures containing mobs
Breeding
Throwing eggs
Building iron or snow golems

In all five cases, apotheosis:tier_augments_applied is 1b in the entity's NBT data, but no tier augments are applied.
However, the same mobs spawned naturally, from a spawner, or from the /summon command do get the tier augments applied.
Mod list:
Apotheosis-1.21.1-8.0.1
ApothicAttributes-1.21.1-2.5.0
ApothicEnchanting-1.21.1-1.2.5
ApothicSpawners-1.21.1-1.1.1
cloth-config-15.0.140-neoforge
emi_enchanting-0.1.2+1.21+neoforge
emi-1.1.18+1.21.1+neoforge
NoChatReports-NEOFORGE-1.21.1-v2.9.1
Patchouli-1.21-87-NEOFORGE
Placebo-1.21.1-9.6.1

Looks like the check is ignoring creative players when considering options for applying the tier augments, and it still marks the entity when the augments cannot be applied due to no available players.

https://github.com/Shadows-of-Fire/Apotheosis/commit/d48d65cc6fb932eb05f9b7c2fba27b8755692f80

repo: Shadows-of-Fire/Apotheosis


text:
NullPointerException

MC Version: 1.15.2
Forge Version:  31.2.30
Mod Version: 3.2.4
Placebo Ver: 3.1.0
I get a crash due to a Null Pointer Exception during the Mod loading process before MC starts
Crash Log
crash-2020-08-08_23.57.59-client.txt
Latest.log
latest.log

That's a nonsense crash caused by another mod erroring earlier in the loading process.  The debug.log has the actual information, but its not likely an apoth error

authors: Shadows-of-Fire ThatBenderGuy


text:
incompatible with curios

Placebo-1.16.5-4.6.0 is incompatible with the curios api
https://www.curseforge.com/minecraft/mc-mods/curios

This is not a valid report by any means, apoth uses curios alongside placebo 4.6, and you have't provided any actual data

how come you think that apotheosis uses curios? curios is not listed in the relations section of apotheosis.

ok, sorry, let me rephrase:
placebo 4.6.0 does not run.

authors: PhiCecHey Shadows-of-Fire

repo: Shadows-of-Fire/Placebo


text:
i got "File Not Found"

i got "File Not Found", any hints?

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

ID: aac83aaa-403c-bbb5-1381-9e1e39913e41
Version Independent ID: 6cb358f2-72b2-aa3d-6ac4-48352f199eda
Content: Add a web part to a page in a SharePoint-hosted SharePoint Add-in
Content Source: docs/sp-add-ins/add-a-web-part-to-a-page-in-a-sharepoint-hosted-sharepoint-add-in.md
Product: sharepoint
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

Thanks @peterremote1980 , could you please provide more information about your issue? such as what did you do and what is the problem.

Closing due to no response.

repo: SharePoint/sp-dev-docs


text:
Can't use loadLegacyFabricCss in SPFX 1.8

Category

[ ] Question
[ ] Typo
[x] Bug
[ ] Additional article idea

Expected or Desired Behavior
According to SPFX 1.8 documentation, it is possible to add "loadLegacyFabricCss": true to web part manifest file in order to force old fabric CSS to be loaded in the page.
Observed Behavior
After adding the mentioned property ("loadLegacyFabricCss": true) to web part manifest file, execution of commands gulp serve or gulp bundle failed and after webpacking the following error message is displayed:
[15:29:01] Error - [write-manifests] Manifest validation error (./src/webparts/helloWorld/HelloWorldWebPart.manifest.json):
(#/) Data does not match any schemas from 'oneOf'
(#/) Missing required property: description
(#/) Missing required property: extensionType
(#/componentType) No enum match for: WebPart
(#/) Additional properties not allowed: loadLegacyFabricCss
(#/) Missing required property: items
(#/) Missing required property: rootComponentId
Steps to Reproduce

Create new spfx 1.8 project containing web part.

Add "loadLegacyFabricCss": true to web part manifest file. Here is Example of such manifest file:

Run command gulp serve or gulp bundle and you will get the mentioned error:

Thank you to @srideshpande for finding a temporary solution.  The final one will require an update to our public packages.
Go to the below location
node_modules\@microsoft\sp-module-interfaces\lib\manifestSchemas\jsonSchemas\client-side-web-part-manifest.schema.json

Add the following line to the file before the 'canUpdateConfiguration' entry
 "loadLegacyFabricCss": { "$ref": "any-value.schema.json" }

save, and run gulp or gulp build or gulp bundle or gulp --ship.

@patmill Is this fixed yet? I am facing the same issue when I used it yesterday.
@araLT Can you reopen the bug as it is not fixed yet and the temporary solution would not work in build pipelines?
For now, I am just including the fabric css file directly using require('../../../../node_modules/office-ui-fabric-core/dist/css/fabric.min.css'); till this is fixed.

@patmill  is this fixed yet?
I am also facing same issue but with another property 'supportedHosts:["SharePointWebPart","TeamsTab"]'
When I am passing this values in manifiest file of project I am getting error.

Fixed with the v1.8.1 release - see release notes at - https://github.com/SharePoint/sp-dev-docs/wiki/SharePoint-Framework-v1.8.1-release-notes

authors: VesaJuvonen abhishek-raj araLT patmill salahsaleh


text:
Filtering in Office Fabric UI React

Hi Team,
I am using SPFX with React and using the Office fabric UI for design. As of now I am able to add drop down icon near to the column header in Detailslist by using ColumnActionsMode.hasDropdown.

I want to show the drop down menu by clicking on the drop down icon as like below image

@sang1205  Can you please provide more information?

Not clear if this is a question about SPFx (doesn't appear so) or Office UI Fabric React (appears so). If you're having an issue, please add details around your context.
If it's a question on how to do something, respectfully you need to provide a lot more "here's what I've tried" instead of a generic "someone help me do this."

@sang1205 I was able to implement something like this by passing an IContextualMenu props object into the menuProps of a CommandBarItem in a CommandBar.
Though we don't use DetailsList, we made our own list component instead, but I'm sure it can be done with a column header like that.
So it can be done, it's just a matter of putting the right props in the right place, once I figured that out I think I finally understand Fabric, after two years of using it...
Perhaps look at these props for DetailsList

onColumnHeaderClick
onColumnHeaderContextMenu

IDetailsList documentation

@sang1205  Can you please provide more information?

I have updated my question . Please check and let me know if you can help

This question isn't so much about SharePoint dev / SPFx, it's more specific on how to use the Office UI Fabric React library. I suggest you please post your question to the OUIFR projects as they have more context and can likely provide a solution. Feel free to cross-link this issue.
https://github.com/OfficeDev/office-ui-fabric-react

authors: KaushalKhamar andrewconnell ng-lboyle sang1205


text:
Custom Sharepoint Permissions using Microsoft Graph

Category

[x] Question
[ ] Typo
[x] Additional article idea

Question
Is there a way to modify custom Sharepoint Online permissions using Microsft Graph API.
This article explains the entire process but uses the old api. Is there a way to do the above steps but using Graph API v1.0
Environment details (development & target environment)

Your Developer Environment: MacOS
Target Environment: SharePoint Online
Framework: Node.js v12
Browser(s): FireFox
Tooling: VS Code

No, the MS Graph only supports CRUD operations on sites, lists, & list items along with following sites: https://docs.microsoft.com/en-us/graph/api/resources/sharepoint?view=graph-rest-1.0

authors: andrewconnell gurleensethi


text:
Viva Connections Desktop App Issue: Custom API calls are failing

What type of issue is this?
other
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested

[ ] 💥 Internet Explorer
[ ] 💥 Microsoft Edge
[ ] 💥 Google Chrome
[ ] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)

Additional environment details
Desktop App for Microsoft Teams
Issue description
Following authentication calls in MS Teams Desktop client are failing while calling custom AD authenticated API calls.
https://tenant.sharepoint.com/_api/Microsoft.SharePoint.Internal.ClientSideComponent.Token.AcquireOBOToken?resource=resource id&clientId=SharePointOnlineClientExtensibilityWebApplicationPrincipalID
Error messages differ from time to time. Following have been observed:

AADSTS500131: Assertion audience does not match the Client app presenting the assertion. The audience in the assertion was 'https://tenant.sharepoint.com/' and the expected audience is 'api://tenantid/microsoft.spfx3rdparty.com' or one of the Application Uris of this application with App ID (SharePoint Online Client Extensibility Web Application Principal). The downstream client must request a token for the expected audience (the application that made the OBO request) and this application should use that token as the assertion.\

2.One or more errors occurred.
3.Authentication Method is not allowed.
Please refer below screenshots for the same.

@Srpatil212 - are you using Sync to Teams to add the SPFx app to the Teams? or do you have a custom manifest?
If the latter - could you please share the manifest?
Thanks!

@AJIXuMuK  Since this is Viva Connections app of Microsoft teams , we have just added the app in Teams. Our home site for sharepoint tenant has custom spfx webparts and in them we have api calls.
Viva connections app is opening our sharepoint home site and the custom api calls in spfx webparts failing as mentioned above.

@Srpatil212 could you please send the request id and request date?
You can find those in the request headers.

I can share the request id and date with you separately. Please let me know your microsoft communication id.

@Srpatil212 it's aterentiev@microsoft.com

Marking as feedback needed as haven't heard anything back.
We also made some changes that can potentially fix this issue.
These changes should be rolled out next week.


text:
Update toc.yml

Category

[X] Content fix/update

What's in this Pull Request?
Adding the "What's new in the Migration API" to the TOC.  The article is already published and live.

Learn Build status updates of commit 3db8d28:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/toc.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

authors: JoanneHendrickson VesaJuvonen


text:
fy2021q1 refresh

updated demos to SPFx v1.11
update pictures, resources, and steps to account for dependency updates

Excellent, thanks AC and Rob for the updates for 1.11.

authors: VesaJuvonen andrewconnell


text:
Security Trimmed menus and list

Category

[x] Question
[ ] Bug
[ ] Enhancement

Expected or Desired Behavior

I would like to see security trimming on menus and in footer. When a user is on the site, I would like them to see just what they have permission to see.

Observed Behavior

In the nav menus and in the footer all options are showing instead of just the sites where user has permission. If you look in Gear Icon > Site Settings > Site Collection Navigation the navigation settings option is missing. I understand the trimming option is on that settings page.

Is there a setting that is wrong? What am I missing?

Hub site navigation cannot be security trimmed currently. This is native functionality out of the box.
As for the footer that comes in the starter kit, you can permission menu items in the PnP-PortalFooter-Links library where the items are created.
If you are talking about the footer on the collaboration sites, these cannot be permission trimmed as it's using the term store.
Hope this helps.

I can understand that. Microsoft is aware of the limitation of the current hub navigation, so you can expect the functionality around hub nav to grow over time.
Alternatively, you have a couple options.

Put a "sites" web part on the page that show the current user's sites they have access to. So instead of linking them in the Nav, you link them in the page.

If you have a development team, build your own custom navigation that sits on top of Hub Navigation to pull in sites. I did something similar https://beaucameron.net/2018/04/17/security-trimmed-hub-site-navigation-updates/

Thank you for your suggestions. I think I have some reading to do on permissions. The portalfooter seems to show all the team sites regardless of permissions. I'll verify that I have the settings correct so only the users Teams show up.

The links in the portal footer are driven from the list. So you can permission items in that list to the users you want. If you are noticing that you made the chance, and it's still showing the same links. Clear your cache. :)

repo: SharePoint/sp-starter-kit


text:
使用说明

这个怎么用，能写个使用说明吗谢谢

1.在浏览器登录玩遍ios
2.按F12打开开发者工具，刷新页面，在网络选项卡中找到这个包

3.复制cookie:后面的所有内容
4.Fork本仓库
5.前往你Fork的仓库 Setting - Secret - Action添加一个名为 COOKIES 的密钥，将刚刚的内容粘贴进去
6.点亮你仓库的star
7.然后会每天签到，Cookie大概15天会过期，15天后重复1，2，3，5步骤更新一下secret里面的cookie就行
PS.吐槽下每天签到只给0.15 :-(

谢谢了


text:
dateNF parsing option ignored

I still have a parsing problem in version 0.10.2.
dateNF is used for formatting the output but not as parsing option.
In my example

COD,DES,DATE,NUM
01,ZEROONE,12/01/2009,1.2
02,ZEROTWO,16/02/2016,3

dates are in dd/mm/yyyy format.
The parsing system from base64 text returns 12/01/2009 as 30/11/2009 (with time zone problem), clearly reading from the format mm/dd/yyyy. 16/02/2016 returns data type string, because 16 is not a valid month.
Fiddle proving it: https://jsfiddle.net/92qu04vd/2/

@mmancosu thanks for continuing this :) There are two questions to ask: what does Excel do and what should we do?
"What does Excel do?" Excel 2016 US locale treats 16/02/2016 as a string and 12/01/2009 as a "date with timezone problem", precisely how we handle it right now:

To reproduce, type '16/02/2016 in A2 to force text interpretation, type 16/02/2016 in B2, and =IF(TYPE(B2)=2,"TEXT",IF(TYPE(B2)=1,"NUMBER","OTHER")) in C2
"What should we do?" As for dateNF, that controls the final object but not how the values are read.  Now that you mention it, that's not a bad idea (interpret the dateNF as a mask, and if the text matches the mask then interpret the numbers accordingly).

@SheetJSDev thanks for your work :)
My needs is to parse the date string and understand which date is. Excel does exactly what did you show us. It will be great if dateNF could be interpreted as a mask. The following part of Data Number Format documentation made me suppose that dateNF worked exactly in the way I need:

...
To get around this ambiguity, parse functions accept the dateNF option to override the interpretation of that specific format string.

The context of that paragraph was:

Format 14 (m/d/yy) is localized by Excel: even though the file specifies that number format, it will be drawn differently based on system settings. It makes sense when the producer and consumer of files are in the same locale, but that is not always the case over the Internet.

Specifically for that format, Excel will use the client settings to draw the date.  If you go to regional and language settings, you can change the computer locale and Excel will show different text!  That only happens for one number format, everything else remains the same. https://github.com/SheetJS/js-xlsx/issues/326#issuecomment-286014758  The original locale isn't stored in the file (its stored for some XLS files but XLSX and other formats have no provision for saving the original locale) so you can't magically deduce what was originally used, hence the option.
But your interpretation makes more sense :) What we can do is specifically test for the number format first.

Yeah, I misunderstood the meaning of Format 14 :)
What do you mean with your last words?

Hi @SheetJSDev, is there something new about this issue? :)

A complete solution would be the inverse of SSF, but for now the date format is tokenized and a "fixed" date is produced by matching fields and rewriting as ISO8601 (if the value matches the date format).

authors: SheetJSDev mmancosu

repo: SheetJS/js-xlsx


text:
Rendered Documentation Freezes

There's seems to be some issues with the docs page.
It's been freezing: https://sheetjs.gitbooks.io/docs/
Browser tried: chrome, firefox, safari
OS tried: ubuntu,  mac os

There's an open issue with the gitbook service: https://github.com/GitbookIO/gitbook/issues/1788
The rendered documentation displays the https://github.com/SheetJS/js-xlsx/blob/master/README.md with a table of contents on the left column.  The content is the same, so use the README in the meanwhile.


text:
vue3 vite2使用报错： does not provide an export named 'default'

SyntaxError: The requested module '/node_modules/.vite/xlsx.js?t=1646880501094&v=ac5f7de7' does not provide an export named 'default'

Use
import * as XLSX from 'xlsx'

or "named imports":
import { utils, writeFileXLSX } from 'xlsx';

Use
import * as XLSX from 'xlsx'

or "named imports":
import { utils, writeFileXLSX } from 'xlsx';

good

authors: SheetJSDev hb2013 mengandxa

repo: SheetJS/sheetjs


text:
11613 DEV add routeRoles for route POST /passthrough/subscriptions/:id/customReports

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

this is done, closing.

repo: Shippable/admiral


text:
🛑 ShippersEdge Shipment API is down

In 0a771a9, ShippersEdge Shipment API (https://api.shippersedge.com/v4/shipment/29491477) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ShippersEdge Shipment API is back up in e527513.

repo: ShippersEdge/upptime


text:
how to test new model on BFCL?

I need to evaluate a model on BFCL, but it's not listed in the predefined model catalog. Do I have to create a custom model_handler.py file to achieve this, or is there another file that can be used directly to define a new model?

Hi @zhangyingerjelly, the process of adding a new model is documented in this section of the BFCL README. Let us know if you have more questions. We're happy to discuss this in the Discord channel as well if you're facing issues setting it up.

If the model is private, feel free to do step 1-4 in the above screenshot. Thanks!

Adding on to Charlie's comment. You also need to add the model information in MODEL_METADATA_MAPPING(code here); otherwise the final score table won't generate.
BTW, if your model outputs in a common format (eg, OpenAI, Claude, etc), you should take a look at all the existing model handlers first; very likely you can re-use one of them.

authors: CharlieJCJ HuanzhiMao zhangyingerjelly

repo: ShishirPatil/gorilla


text:
Image dimension getting shrinked (No control over it)

Current behavior
After compression image's dimensions get shrinked
Eg. I have an image with dimensions 4640x3472
after using the following compression code
const result = await Image.compress(b64_string, {
  quality: 0.5,
  input: "base64",
  maxHeight: 10000,
  maxWidth: 10000,
});

the output is an image of dimension 1250x936  even though i specified maxWidth and maxHeight to 10,000
Expected behavior
I want an output image of dimension 4640x3472 with 0.5 quality
Platform

[X] Android
[ ] iOS

React Native Version
react-native: 0.67.4
React Native Compressor Version
"react-native-compressor": "^1.5.2"

Never mind... Reading image dimensions programmatically is giving the wrong value... MaxWidth and MaxHeight is working as expected.
Image.getSize(`file://${path}`, (width, height) => {
        files.push({uri: `file://${path}`, width, height, quality: 1});
 });

This function is giving me wrong width/height not sure why

repo: Shobbak/react-native-compressor


text:
Add a lint rule to discourage the the usage of factory functions

WHY are these changes introduced?
This PR is continuation of this work to introduce some conventions into our codebase to ensure the codebase evolves healthily and that developers have a great experience contributing to the repository. In particular, I'm adding an ESLint rule that makes lint fail if new modules use the following pattern:
import { error } from "@shopify/cli-kit"

const SomeError = () => {
  return new error.Abort("some custom message")
}

function someService() {
   // Before
  throw SomeError()

  // Now
  throw new error.Abort("some custom message")
}

WHAT is this pull request doing?
I'm adding the ESLint rule with a shitlist of modules that haven't yet adopted the new convention. This ensures that we adopt the new convention in new modules and that there's some accountability to motivate the migration of the modules in the list.
How to test your changes?
yarn lint must succeed.
Measuring impact
How do we know this change was effective? Please choose one:

[x] n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
[ ] Existing analytics will cater for this addition
[ ] PR includes analytics changes to measure impact

Checklist

[x] I've considered possible cross-platform impacts (Mac, Linux, Windows)
[x] I've considered possible documentation changes
[x] I've made sure that any changes to dev or deploy have been reflected in the internal flowchart.

Next here is adding some documentation around:

Error and result types.
When and how to throw errors
How to test logic that throws errors.

repo: Shopify/cli


text:
Allow 404 to be caught be ErrorBoundary in Route

WHY are these changes introduced?
Currently, (with the remix V2 v2_errorBoundary flag) when a 404 is thrown, it is not caught by the Error boundary.

WHAT is this pull request doing?
This PR adds a default exported function that returns null. This allows the ErrorBoundary in root.tsx to catch the 404 errorStatus.

HOW to test your changes?

run skeleton build locally
visit a non existing URL (e.g. localhost:3000/dsadsadsa)
Ensure the Error boundary is rendered

Checklist

[x] I've read the Contributing Guidelines
x ] I've considered possible cross-platform impacts (Mac, Linux, Windows)
[ ] I've added a changeset if this PR contains user-facing or noteworthy changes
[ ] I've added tests to cover my changes
[ ] I've added or updated the documentation

Closing in favour of #1215

repo: Shopify/hydrogen


text:
Remove pg gem as a development requirement

PosgreSQL is not an actual development requirement for this gem and asking everyone to install it only discourages contributions and make it less approachable for cloud-based environments like codespaces.
For many parts of the maintenance tasks even an in-memory sqlite database will suffice.
So this PR removes the pg gem from the Gemfile and moves it to a separate gemfile which will be used on CI only.

I think the expected check can be removed from the required checks in the default branch settings.

Right ❤ Thank you! I'm going to bring the postgres steps as required after merging this PR as those don't seem to show up until merged

Nice 👍

authors: adrianna-chang-shopify nvasilevski


text:
Check for pending migrations when watcher is fired

Check for pending migrations, notify the user and offer to run them. The idea is that if any modifications are made to the db/migrate directory, we check if there are pending migrations.
If there are, we show a dialog and offers to run them. If the user decides to do it, we then fire a request to the server to run the migrations.
Note: we only show the dialog if a migration is deleted or created, otherwise it can become really annoying when you are editing the migration you just created.

Perhaps we can also have it check for pending migrations when launched?

repo: Shopify/ruby-lsp-rails


text:
Consolidate docs to Jekyll site

Motivation
We should move all in-used documentation to Jekyll so users won't need to jumping between GH and the documentation site. It'll also make content easier to maintain.
Implementation

Moved addons, roadmap, version managers, troubleshooting, semantic highlighting, and editors documentation to Jekyll
Updated all the links to these documents

Sidebar structure

Automated Tests

Manual Tests

@vinistock Do we still need SEMANTIC_HIGHLIGHTING.md? I don't see it being linked from anywhere.

Did you move the semantic highlighting docs? I don't see the file on GH.

repo: Shopify/ruby-lsp


text:
Always use complete URI for store key

Motivation
There are scenarios where we can receive the same file path with different schemes from VS Code. For example, when someone is looking at the diff editor, we receive the same path twice with two different schemes:
file:///foo/bar.rb
git:///foo/bar.rb

Because we were using the file path as the storage key, these two URIs would conflict and result in inconsistent internal state in the LSP. If you closed the git version, it would delete the file version too and that file would no longer exist (from the LSP's perspective).
Implementation
The switch to use file paths and untitled names as the storage key was a mistake. We should always use the complete URI so that there are no conflicts and each scheme has a separate version of the document. VS Code sends duplicate requests for each scheme version, so we should respect that and treat them as separate documents.
Automated tests
Added some examples that catch the issue.

I think it's worth responding to requests on git schemes, since it's useful to have consistent highlighting and navigation available when comparing two versions of the same file. If we only support file, then we'd have different features available on each diff side.


text:
Support lz4 compression

https://github.com/cloudflare/golz4 should be simple enough
https://issues.apache.org/jira/browse/KAFKA-1456
https://issues.apache.org/jira/browse/KAFKA-1493

And yet as with snappy, the framing format kafka uses is not supported by the "normal" go lz4 package.
http://fastcompression.blogspot.ca/2013/04/lz4-streaming-format-final.html

Again? That's annoying...

This is still not documented on the official protocol page, we don't need it, and nobody else seems to be asking for it. I'm gonna icebox this until somebody actually wants it.

Kafka v 0.10 supports LZ4 with correct offsets:
https://cwiki.apache.org/confluence/display/KAFKA/KIP-57+-+Interoperable+LZ4+Framing
https://issues.apache.org/jira/browse/KAFKA-3160
Can this be reopened?

I'll re-open, but I don't have any time to implement this in the next little while so it won't mean much.

See #786

@eapache I guess this can be closed. I tried the LZ4 on our 0.10.0.1 cluster. It didn't outperform GZIP for our usecase but it works.

Yup, thanks. If anybody really wants the weird framing support then that can be another ticket but I doubt anyone cares.

authors: cdstelly eapache edenhill rtreffer

repo: Shopify/sarama


text:
Fix HighWaterMarkOffset and messages offset in mocks.Consumer

The  behavior of the PartitionConsumer is the HighWaterMarkOffset()
method to only return zero until the first message is consumed but the
mocks.PartitionConsumer is updating the HighWaterMarkOffset() every time
the YieldMessage is called.
This commit changes the PartitionConsumer behavior to be the same as the
real PartitionConsumer.
Fix #2050

My bad I didn't saw that the behavior of the Consumer was fixed by #2082

My bad I didn't saw that the behavior of the Consumer was fixed by #2082


text:
How to use api-codegen-preset in checkout UI extensions?

Is it possible to use api-codegen-preset within a checkout UI extension? I tried setting it up according to the docs, but it didn't work.
Here is the .graphqlrc.ts:
import { ApiType, shopifyApiProject } from '@shopify/api-codegen-preset';

// See https://www.npmjs.com/package/@shopify/storefront-api-client
export default {
  schema: 'https://shopify.dev/storefront-graphql-direct-proxy/2024-04',
  documents: ['./src/**/*.{js,ts,jsx,tsx}'],
  projects: {
    default: shopifyApiProject({
      apiType: ApiType.Storefront,
      apiVersion: '2024-04',
      documents: ['./src/**/*.{js,ts,jsx,tsx}'],
      outputDir: './types',
    }),
  },
};

Here is the output:
✔ Parse Configuration
⚠ Generate outputs
  ❯ Generate to ./types/storefront-2024-04.schema.json
    ✔ Load GraphQL schemas
    ✖
      Unable to find any GraphQL type definitions for the following pointers:
      - ./src/**/*.{js,ts,jsx,tsx}
    ◼ Generate
  ❯ Generate to ./types/storefront.types.d.ts
    ✔ Load GraphQL schemas
    ✖
      Unable to find any GraphQL type definitions for the following pointers:
      - ./src/**/*.{js,ts,jsx,tsx}
    ◼ Generate
  ❯ Generate to ./types/storefront.generated.d.ts
    ✔ Load GraphQL schemas
    ✖
      Unable to find any GraphQL type definitions for the following pointers:
      - ./src/**/*.{js,ts,jsx,tsx}
    ◼ Generate

Am I missing something, or does it not work in a UI extension?
I double checked the paths were correct.
I confirmed the query was named:
      const { data } = await query(
        `#graphql
        query getProductsOnOffer($handle: String!, $first: Int!) {
          collection(handle: $handle) {
            products(first: $first) {
              nodes {
                id
                title
                images(first:1){
                  nodes {
                    url
                  }
                }
                variants(first: 1) {
                  nodes {
                    id
                    price {
                      amount
                    }
                  }
                }
              }
            }
          }
        }`,
        {
          variables: { handle: 'automated-collection', first: 5 },
        },
      );

Hi @nboliver-ventureweb, what version of api-codegen-preset are you using?

@matteodepalo I'm not sure what version it was, it would have been the latest version out when this ticket was created. I have since removed it from the project because it wasn't working.
@pinktonio No, I haven't had a chance to revisit it, but would be keen to get it working!

Did you try adding the extension pluckConfig as described here? https://github.com/Shopify/shopify-app-js/blob/5134bcc4344fe42518873ec1b2d213a435948e11/packages/api-clients/api-codegen-preset/README.md#example-graphqlrcts-file

I had the same issue, but I was able to resolve it. I hope this helps others as well.
// .graphqlrc.ts
import {ApiType, shopifyApiProject} from '@shopify/api-codegen-preset';

export default {
  schema: 'https://shopify.dev/admin-graphql-direct-proxy',
  documents: ['src/graphql/*.ts'], // This doesn't work
  projects: {
    default: shopifyApiProject({
      apiType: ApiType.Admin,
      apiVersion: '2024-10',
      outputDir: './types',
      documents: ['src/graphql/*.ts'], // This configuration works
    }),
    documents: ['src/graphql/*.ts'], // This doesn't work
  },
};

This is my configuration file. One thing to be careful about is that you need to include documents within shopifyApiProject. If you don't, the path you reference will be overwritten, and **/*.{ts,tsx} will always be referenced.
// src/graphql/query.ts
export const SHOP_QUERY = /* GraphQL */ `
  query Shop {
    shop {
      name
    }
  }
`;

This is the query I wrote. There is another important thing to note here: you must use /* GraphQL */ as the magic comment instead of #graphql. While #graphql was referenced when I was working with Hydrogen, for some reason, @shopify/api-codegen-preset pluckConfig doesn't seem to function correctly.

@nboliver-ventureweb good point, I'll reopen this so that we can keep track of the change to the docs.

repo: Shopify/shopify-app-js


text:
The app couldn’t be loaded

When I start and type https://xxxx/login?shop=yyy.myshopify.com in browser, it goes to installation page to ask for permission. However, it does not works when I select a store to test from my app. There is no ‘/login’ in url
I have fixed this by adding
app.get('/)', async (req, res) => {
return res.redirect(‘/login?${req.query.shop}’);
});
However, it get’s caught in a redirect loop. App is installed incorrectly. It displays: “The app couldn’t be loaded. The app can’t load due to an issue with browser cookies. Try enabling cookies in your browser …”
I started application by “shopify app serve”
Any help here is appreciated.
Thanks.

We have fixed this.Thanks

We have fixed this.Thanks

repo: Shopify/shopify-marketplaces-admin-app


text:
http://shopify.github.io/shopify_api

The url in the description 404s http://shopify.github.io/shopify_api

where i can find the complete documentation for this rails gem and its usage. i know shopify api reference. but i am looking for this gem specific usage.

Fixed, closing.


text:
Add support for ApiPermissions#revoke

Fixes https://github.com/Shopify/shopify_api/issues/438.
Adds support for ApiPermission#revoke, which allows applications to remotely uninstall themselves.
Removes the OAuth class as it's now deprecated.

Actually, the OAuth#revoke action still seems to be working, so I don't think we want to 🔥it here. Maybe we can just add a comment to let folks know that it is deprecated in favour of ApiPermission#revoke.

Added the kernel warning as @jtgrenz suggested. I've also changed the class method on ApiPermission from self.revoke to self.destroy to be more descriptive.


text:
Outdated

Just getting started with CLI 3.
I came here from a link in the Shopify docs but this example is already outdated as it uses a yml file instead of toml.
It also didn't make sense to me why a global app embed would go in the blocks folder. I guess there was nowhere else to put it?

Too bad.

repo: Shopify/theme-extension-getting-started