"No Module Named Canon-Interface" Error Windows Jupyter

I keep getting this error. I used the code copied from an easy example on the CVXPY website.

I have Anaconda on my windows and I installed it just like the website said:
conda install -c https://conda.anaconda.org/omnia scs
pip install cvxpy

Note, I don't know whether or not this is important, but I have Julia, R and Python on my laptop.
So, I am not sure how to solve this problem. Please help!!

The syntax you're using in the variable declaration suggests that you are using CVXPY 0.4. We are about  to make an official switch to 1.0. Can you try installing 1.0 from source? We are happy to help with installation issues in 1.0.

So, I ran conda install -c cvxgrp cvxpy from the CVXPY 1.0 website. First, it says, 'All requested packages are already installed.' but when I run nosetests, it says this:

I don't know why the packages seem to be inside 'Julia' when they should be inside Python. Not sure if that is the problem.

Your nose is installed inside Julia, which is bad. Conda is inside Julia, which is also bad. You need to fix your environment before we can say more.

So, I uninstalled Conda and reinstalled it in my C:\Users\username\Anaconda3. I installed CVX1.0 version. Now, I ran the 2nd Control example from the Examples page and I am getting the optimal solution. But nosetests gives me 21 errors. Is this ok?

Is this with Python 2 or Python 3?

@SteveDiamond , can you create a Git Issue explaining the difficulty with Anaconda + Python 3 + Windows? Maybe this is something I can help with.
@rohithdesikan, you can try installing cvxpy from source, or via pip.


LOM-339: Test data and initial tests for primary fields checks and xs…

LOM-339

What was done
Small changes in code and tests
How to install

Update dev-LOM-339-tests to package.json in project that uses this module
On drupal-helfi-form-tool project git checkout feature/LOM-339-tests

How to test

[ ] Project root: run  vendor/bin/phpunit public/modules/contrib/helfi_helsinki_profiili/
[ ] Check that everything is ok

FYI @jiisuominen Added test branch to form-tool project.
We might need to look into atv module dependency lock, if we could allow dev-* or something - as now we need update that version lock too (made test branch there too), when testing this module. Didn't find any good solutions yet.


Save to Subdirectory resulting in "Error Downloading" Message on Firefox

As of the most recent update, when I download to a custom subdirectory ( E:\Art - Collected_Furry ) I receive an [ERROR DOWNLOADING] Message. While on a custom subdirectory, the "Create Artist Subdirectories" field no longer stays checked either, after exiting the settings and going back into them. Everything functions perfectly when downloading to the default location of the downloads folder, including artist subdirectories

I think FF is currently trying to force the 3.2.0 version as an update even though it's marked as non compatible with FF 55 and 56 and then because 3.2.1 is marked as uncompatible users won't get updated to 3.2.1.

This is a duplicate of #11 , WebExtensions don't support downloading outside the download directory.

@Selth 3.2.1 doesn't fix the download path issue, it just clarifies it has to be a subdirectory. We can't downgrade older browsers though so users will have to do it manually.


#112 Feat autoscaling group policy in Terraform

Add autoscaling targets and policy for both frontend and worker. Add ec_cluster_name to platform outputs. Adds step to README.MD.
Thanks for submitting a pull request! Below are a few things you can do to help us more quickly review your changes.
Checklist
I have…

[x] summarized below my changes and noted which issues (if any) this pull request fixes or addresses.
[x] thoroughly outlined below the steps necessary to test my changes.
[x] attached screenshots illustrating relevant behavior before and after my changes.
review and update SSAG documentation if needed.

Summary of Changes
This pull request…

Updates Readme file for application to add terraform fmt so the lines of code I wrote will automatically format itself to a canonical format and style.
Added appautoscaling target and appautoscaling policy for both the frontend and worker ECS services within the staging cluster.
Added an output file in the platform outputs file to retrieve the ecs cluster name in order to be used for the autoscaling.

Testing
To verify the changes proposed in this pull request…

Followed the Terraform steps to verify that the autoscaling policy applied within each service.
Set the scaling average CPU target to 10% with a 5 second cool-down and applied the following command to stress the system using ApacheBench and initiate a scale-up event:
ab -n 100000 -c 200  https://stage.solo.code.mil/.
Observed the service scale up the tasks in response to the increased traffic according to the scaling policy.
Observed the service scale down the number of tasks as the traffic decreased.

Screenshots
Attach relevant before and after screenshots here.

changed PR name and update verbiage on it.


fix test gardener-integration

Description
Changes proposed in this pull request:

fix test gardener-integration

/test pre-serverless-integration-k3s

/test pre-serverless-integration-k3s


Is “/mnt/static-channel-backup-external” listed?  nope 8-(

Lightning/Channel Backup/Option 1: Local Backup/Set up a mounting point for the storage device
$ sudo mkdir /mnt/static-channel-backup-external
$ sudo chattr +i /mnt/static-channel-backup-external
done

I ran through this part of the guide twice,
updated the /etc/fstab twice
Is “/mnt/static-channel-backup-external” listed?
nope "...no such file or directory"
Any idea why it isnt listed?
in the meantime, I'll try using the remote github repositry method to backup.
cheers,
Environment

Hardware platform: [e.g. Raspberry Pi 4,
Operating system: [e.g, Raspberry Pi OS 64bit, Debian 11, ... ]

Ibelieve it's because the folder was created at: /mnt/static-channel-backup-external
You invoke df from the root folder of user "admin" (/home/admin) and you provide a relative path, therefore it's trying to find the folder at: /home/admin/static-channel-backup-external (which does not exist)
Instead, you need to either provide the absolute path: df -h /mnt/static-channel-backup-external
Or else, you need to move to the parent folder of the targeted folder first before using the relative path:
cd /mnt
df -h static-channel-backup-external


MissingRequiredOptionError when specifying required Value after enumerable Options

 Issue by SuperFXMaster
Tuesday Oct 11, 2016 at 19:24 GMT
Originally opened as https://github.com/gsscoder/commandline/issues/361

The following options class:
public class CommandLineOptions
{
    [Value(0, Required = true)]
    public string InputFileName { get; set; }

    [Option('o', "output")]
    public string OutputFileName { get; set; }

    [Option('i', "include", Separator = ',')]
    public IEnumerable<string> Included { get; set; }

    [Option('e', "exclude", Separator = ',')]
    public IEnumerable<string> Excluded { get; set; }
}

When provided to the default parser, with the commandline app.exe --exclude=a,b InputFile.txt results in a MissingRequiredOptionError: A required value not bound to option name is missing. I expected the library to accept InputFileName = InputFile.txt and --exclude=a,b as Excluded = { "a", "b" }. Is there something else required to make this work as I expect, or is it a bug?

 Comment by nemec
Tuesday Oct 11, 2016 at 19:57 GMT

Yes, I think that's a bug. If you set Required=false you'll see that a, b, and InputFile.txt are all part of Included. Additionally, the "EnableDashDash" setting doesn't work either:
void Main()
{
    var p = new Parser(s =>
    {
        s.EnableDashDash = true;
    });
    var result = p.ParseArguments<CommandLineOptions>("--exclude=a,b -- InputFile.txt".Split());
    result.WithNotParsed(e => e.Dump());
    result.WithParsed(d => d.Dump());
}

public class CommandLineOptions
{
    [Value(0, Required = true)]
    public string InputFileName { get; set; }

    [Option('o', "output")]
    public string OutputFileName { get; set; }

    [Option('i', "include", Separator = ',')]
    public IEnumerable<string> Included { get; set; }

    [Option('e', "exclude", Separator = ',')]
    public IEnumerable<string> Excluded { get; set; }
}

 Comment by SuperFXMaster
Wednesday Oct 12, 2016 at 16:20 GMT

As a workaround, the commandline --exclude=a,b --output=OutFile InFile works fine, just as -e a b c -o OutFile InFile does. It seems like the problem arises when the --exclude option is directly before the Required parameter.

 Comment by anthonylangsworth
Saturday Oct 22, 2016 at 11:50 GMT

This appears to be fixed in the master branch, @SuperFXMaster and @nemec . I cannot reproduce the issue. Please let me know if I am incorrect.

 Comment by nemec
Saturday Nov 05, 2016 at 07:01 GMT

I'm still having issues on the master branch  with the code snippet I posted above, as well as @SuperFXMaster's.

 Comment by hugener
Monday Mar 13, 2017 at 18:21 GMT

Had quick look into this and could let the example above to run by changing the order of parameters in Concat in the following line:
https://github.com/gsscoder/commandline/blob/master/src/CommandLine/Core/Tokenizer.cs#L54
The changed line becomes:
return tokenizerResult.Map(tokens => values.Concat(tokens));
I'm not sure it's valid for other cases though. Maybe someone who knows more about it can have a look. It would be nice to get a stable version.

This will be fixed by #684 once it's merged in.


filtering and search features

Thanks for the great resource. Wondering if there is a roadmap/anticipated timeline for the "filtering and search features"?

Hi, @mvuorre! We are currently improving how the #request-a-review channel on our community Slack as a first step; after that, we'll start bringing recommendation and search back to PREreview.org itself, so, hopefully, we'll have more to share by the end of H1 2024.

If you have feedback you'd like to share with us about what might be most useful to you in that work, please don't hesitate to schedule a user research chat with me<EMAIL_ADDRESS>or to share your ideas on the #community-feedback channel of the Slack.


[Feature Request] Where is $ ? :(

Should this be an RFC?

[X] This is not a substantial change

Which package is this a feature request for?
Other/unknown (please mention in description)
Description
Ids from elements that lay in the main DOM (not in a ShadowDom) are automatically bound to the main window object. e.g.
<img id=myimage>
<script>
  const imgElement = window.myimage // <-
</script>

I remember in Polymer there were this accessor $ registered on any Custom Element built from this API
myCustomElement.$.myimage

This is something that was lost over new specifications, I believe because you guys are trying to make the library as much lightweight as possible.
But I also see that you are trying to make writing applications easier offering many cool features from directives to experimental tools from the Lit lab.
This is how you would access an element with an id in Lit now
class extends LitElement {
  @query('#myimage') imgElement?: HTMLImageElement;
}

(and you have to add a new query directive everytime you want to access a new element...)
But worst if you use plain JavaScript
this.shadowRoot?.querySelector('#myimage') // erk

So basically, how would one implement that on his own:
class LitWithIds extends LitElement {
  get $ () {
    return Object.fromEntries(
      [...this.shadowRoot?.querySelectorAll('[id]')].map(el => [el.id, el])
    )
  }
}

class MyElement extends LitWithIds {}

It's really not much of a deal to write but I have to include that in a custom element every time I want to use this feature (that is almost every time by default). And the problem here $ will return a any object in TypeScript.
I don't understand why it's not a build feature directly available in the framework... and why Polymer had it?
So here's what I propose, if you want to keep the main library tiny, why not giving this as a Lit-labs feature?
import { bindIds } from '@lit-labs/helpers';

class extends LitElement {
  @bindIds() $
}

(I couldn't think of a better name but just providing an example)
Or it could just be a directive, so plain JavaScript users still can use it
import { IdsBinder } from '@lit-labs/helpers';

class extends LitElement {
  const $ = new IdsBinder(this);
}

Just sharing ideas here. Again I could code it myself every time I make a new project but It's always comforting to use a feature that was made by you from the Lit team and to know that everyone is using the same thing.
🙇♂
Alternatives and Workarounds
alternatives already provided into the description

Polymer's $ feature really isn't necessary. this.shadowRoot.querySelector() works fine. Lit is just much more minimal than Polymer was and we try to have the smallest API possible over the standard DOM.


How to get a score of 100

Hey Max,
First off, thanks for creating/maintaining this awesome library !
I've been trying to find a way to get a score of 100 when comparing the strings 'simplee worde' and 'very simple big word'. Knowing that that:
>>> fuzz.partial_ratio('simplee','simple')
100.0
>>> fuzz.partial_ratio('worde','word')
100.0

By reading the docs, I thought that partial_token_set_ratio would work but it didn't.
>>> fuzz.partial_token_set_ratio('simplee worde','very simple big word')
69.23076923076923

I assume that's because there are no perfectly similar words between both ? (if i put simple instead of simplee it gives me 100)
Also, I found out that by adding letters after the worde increased the score to a cap of 75.00 but adding the letters to the end of the word simplee made the score drop to a lower limit of 55.17.
>>> fuzz.partial_token_ratio('simpleeadassdsdl worde','very simple big word')
55.172413793103445
>>> fuzz.partial_token_set_ratio('simplee wordeeaaasasdasd','very simple big word')
75.0

In case you're wondering, the other fuzz modules performed worse.
This is some strange behaviour that I don't understand because I don't know the underlying algorithms you're using.
Maybe you can shed some light here, and tell why, in this case, it's not possible to get a score of 100.

I am also a new user. I'm trying to figure out how to use this library with symbols inside the strings.
>>> from fuzzywuzzy import fuzz, process
>>> x = ['atk', 'atk%', 'atk!', 'atk$']

>>> process.extract('atk!', x)
[('atk', 100.0, 0), ('atk%', 100.0, 1), ('atk!', 100.0, 2), ('atk$', 100.0, 3)]

>>> fuzz.ratio('atk', 'atk%')
86

>>> process.extract('atk!', x, scorer=fuzz.ratio)
[('atk', 100.0, 0), ('atk%', 100.0, 1), ('atk!', 100.0, 2), ('atk$', 100.0, 3)]


Activity Stack

What is this
Keep activities open while finish() is not called, startActivity(....), wil add activity to top on stack, when you call finish() current activity will removed from stack and resume previous activity.

Implemented in https://github.com/GabrielBRDeveloper/MasterUI/commit/ac510153879383b4dd9a3e6f0f1c0cf6d8816142


⚠ Bofrost.de has degraded performance

In e454efb, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 2487 ms

Resolved: Bofrost.de performance has improved in 75fd572.


Update xcjobs

Coverage remained the same at 91.996% when pulling 71bcdc1105760fd1a39d8ffe943de8197f504635 on unbuffered-io into efe9bd469d4cf248cdfaedaef113a9d3410830bf on master.


bower fails behind company firewalls

This issue may be similar to issue #1741:
I have installed the latest Git for Windows. Still I am not able to connect to GitHub:
C:\Users\me>git ls-remote --tags --heads git://github.com/jquery/jquery.git
fatal: unable to connect to github.com:
github.com[0: <IP_ADDRESS>]: errno=No such file or directory

No proxy or anything in my way.

That's how firewalls work :) Bower 1.6.2 respects HTTPS_PROXY and HTTP_PROXY for git repositories, so you might try this. You can also use this trick to make git re-write git:// urls to https:// urls.


Develop

Coverage increased (+0.01%) to 92.942% when pulling 78497e63a087d48b4a59fa885fcbd7f2d19028e4 on develop into 0c6a0ca257b84e54c8cbccb2fd05c9d6c6849ca4 on master.


about tag-proposal and test_swin_unit6_sample4

Hi~
Thank you for your contribution!  And I have some problems about TAG proposal and slidding winfow proposal which the unit-level=6.
I flllow u guide of these to change the code in line 181-185, but the terminal say:
IOError:[Error 2] No such file or directory:'../THUMOS_14_two_stream_feature/val_denseflow/video_validation_0000268.mp4_8817.0._8823.0.npy
I search this file in zip and could not find this ,and I run the code again the error still appear while the name of file is change to another.
What wrong with this ? And what's the different between tag_proposal and swin_unit6 when train, if we only modify the dir of dataset and change the txt fle?
Best whishes!

I met the same question, have you solved it?

I met the same question, have you solved it?

no...

I met the same question, have you solved it?

I met the same question, have you solved it?

set unit_size = 6.0 here.

No... I've given it up.

I met the same question, have you solved it?

set unit_size = 6.0 here.

I had done it，it‘s useless.

Hi, i found that the real reason are the wrong files of train_clip and test_clip. There should be matched files for PATE/TAR and unit_6/unit_16. But the authors only provided PATE_unit_6 and TAR_unit_16.


[REVIEW] senai-d

GitHub Profile Link
https://github.com/senali-d

Some suggestions from my point of view -

Hide Github stats widgets as it always says A+ for every profile
Add timezone to your profile
You haven't joined any org yet, Join @EddieHubCommunity 😉
Add descriptions to your pinned repository

Thank you for the profile review


Serialize array of strings?

Hi Team,
When I try to serialize Array of strings, I am getting an index out of range panic. Can you please post an example of writing an array of strings?

Hi @kartiksura, can you please attach some code that didn't work for you?
Thanks

http://play.golang.org/p/JKHtzR-szQ
I refered to the schema from the following article:
http://technicaltidbit.blogspot.in/2013/02/avro-tips.html

Ok so SpecificDatumWriter does not yet implement complex types writing, only GenericDatumWriter does at the moment. This will probably be one of the next things to be implemented, hopefully will find time to do it this week.
And one thing more, your schema is incorrect a bit, the type in messages field should not be a JSON array for Avro arrays (only union types should be arrays), so the schema for this field should look like this:
{ "name": "messages", "type": { "type": "array", "name": "messagestype", "items": { "name": "message",                        "type": "string" } } }
You may open a separate issue for SpecificDatumWriter complex types so we definitely focus on that and don't forget.
Thanks

Hi @kartiksura, I got this fixed in #22, your code should now work fine assuming you fixed the schema


IpHelper::inRange IPv6 match error

What steps will reproduce the problem?
I'm trying to use the inbuilt IpHelper class for checking IP addresses are in the given range or not. My range is 2620:0:2d0:200::7/32 and the IP I want to check is 2620:0:0:0:0:0:0:0.
What is the expected result?
The 2620:0:0:0:0:0:0:0 is the start range of the 2620:0:2d0:200::7/32 so it should contain it, the result should be true.
What do you get instead?
var_dump(\yii\helpers\IpHelper::inRange('2620:0:0:0:0:0:0:0', '2620:0:2d0:200::7/32')); // bool(false)

Additional info
Checked Symfony and Java version, both gives true result for this range and address.
var_dump(\Symfony\Component\HttpFoundation\IpUtils::checkIp('2620:0:0:0:0:0:0:0', '2620:0:2d0:200::7/32')); // bool(true)

For java: https://seancfoley.github.io/IPAddress/
import inet.ipaddr.IPAddressString;

public class Main {
    public static void main(String [] args) {
        final boolean result = matches("2620:0:0:0:0:0:0:0","2620:0:2d0:200::7/32");
        System.out.println(String.format("Result: %s", result ? "match" : "not match")); // "match"
    }

    private static boolean matches(String ip, String subnet) {
        IPAddressString one = new IPAddressString(subnet);
        IPAddressString two = new IPAddressString(ip);
        return one.getAddress().contains(two.getAddress());
    }
}

Q
A

Yii version
<IP_ADDRESS>

PHP version
7.2.19

Operating system
Ubuntu 18.04.3 LTS

According to CIDR to IPv6 Conversion, the first IP of 2620:0:2d0:200::7/32 is 2620:0:2d0:200::7, so I would say 2620::0 is indeed not in this range.

@Thoulah I think that tool is wrong.

Fair enough! First hit in Google failed me.

fixed, please merge.

Merged in #17511
@mucsitamas thanks for the report, @kamarton thank you for a fix!


Overlay without drivingScrollview

I've been stuck at another issue, I try to create a layout with 3 notches (0, 0.3 & 0.9 fractional height). I do not want a driving scrollview in the middle position, as the user should be able to interact with the other UI. The height of the ScrollView is wrong in that case and always has the height of the largest notch, so I am not able to scroll to the bottom. The behaviour seems to work only, when a contained ScrollView is used as a drivingScrollView. I tried to use the translation to update the overlay contents, but that results in very poor performance and a lot of glitches.

Hi @martindaum, 1.1.0 will integrate an adjustment content mode.
You can now force the content to have the same height as the overlay:
private var behavior: some DynamicOverlayBehavior {
    MagneticNotchOverlayBehavior<Notch> { notch in
        // ...
    }
    .contentAdjustmentMode(.stretch)
}

It should do the trick. Let me know ;)

It does what it should in terms of fixing the scrollview issue, but there is a glitch when scrolling down. The overlay resizes immediately. We could live with that, but the other issue arises, is when using the stretch mode, the overlay always stays above the safe area even if it should be hidden.

could you share a sample code?

Hey. Answering for @martindaum. Based on your README example, following small sample shows the "Header" Text in the safe area when using .contentAdjustmentMode(.stretch), while without it "Header" gets hidden.
enum Notch: CaseIterable, Equatable {
    case hidden, min, max
}

struct ContentView: View {

    @State private var notch = Notch.min

    var body: some View {
        Button("Show/Hide") {
            withAnimation {
                notch = notch == .hidden ? .min : .hidden
            }
        }
        .dynamicOverlay(myOverlayContent)
        .dynamicOverlayBehavior(myOverlayBehavior)
        .ignoresSafeArea()
    }

    var myOverlayContent: some View {
        VStack {
            Text("Header")
                .draggable()

            List {
                Text("Row 1")
                Text("Row 2")
                Text("Row 3")
            }
        }
    }

    var myOverlayBehavior: some DynamicOverlayBehavior {
        MagneticNotchOverlayBehavior<Notch> { notch in
            switch notch {
            case .max:
                return .fractional(0.8)
            case .min:
                return .fractional(0.3)
            case .hidden:
                return .fractional(0.0)
            }
        }
        .disable(.hidden)
        .notchChange($notch)
        .contentAdjustmentMode(.stretch)
    }
}


ML 5.6: Binning (V)

Description
📌  Issues for Week 5
Welcome to 'ML' Team, good to see you here
:arrow_forward: This issue will helps readers in acquiring all the knowledge that one needs to know about ----
Binning.
:red_circle: To get assigned to this issue, add your Batch Numbers mentioned in the spreadsheet of "Machine Learning", the approach one would follow and choice you prefer (Documentation, Audio, Video)
✔ Domain : Machine Learning
:red_circle::yellow_circle: Points to Note :

The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.

"Issue Title" and "PR Title should be the same. Include issue number along with it.

Changes should be made inside the Machine Learning/Machine_Learning/Feature_Engineering_and_Performance_Metrices Branch.

Follow Contributing Guidelines & Code of Conduct before start Contributing.

This issue is only for 'GWOC' contributors of 'Machine Learning' domain.

:white_check_mark: To be Mentioned while taking the issue :

Full name
Batch Number
GitHub Profile Link
Which type of Contribution you want to make :

[ ] Video

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎
Domain
Machine Learning
Type of Contribution
Video
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

@Isha307 , Can you please assign me this issue mam.
I am M. Ashish Reddy,
Batch Number: 2
Serial Number: 260
GitHub Profile Link: https://github.com/ashish-reddy-20-08
Approach: A detailed explanation with examples.

Issue assigned @ashish-reddy-20-08


Add Auto matching of Keywords in Guides

Purpose

Automate the linking processes for Internal and External resources
Overview of used projects in guide from jboss and others
Help promote the other projects
Help users find e.g. internal module info

How
In the simplest form this could be:
Map<Keyword, List<ResourceLink>> keywords;

a Awstruct Extension would scan the content of all site guides for matches. Found matches are registered in the Guide Keywords map and the keyword it self is marked in the content.
We can then in the GUI use this information in two ways:

Show a list in the side bar with 'referenced projects'
Mark the keyword in the content it self

Both of those 'links' could show matched ResourceLink's.
And then to the interesting part, how to build the keyword lists:

Extension to populate the Keywords based on our own Modules (e.g. Name, ContainerName)
Extension to read the JBoss.org project REST api
Manually added to a yaml file
?

A match on "JBoss AS 7" could show links to:

The JBoss AS 7 Project Page on jboss.org
The JBoss AS 7 Arquillian Container Module page
?

If done generically, the same could be used to replace manual linking to user names, jira issues...
List<Matcher> matchers;

List<ResourceLink> match(String content) {
  List<ResourceLink> matches = new ArrayList<>;
  for(Matcher matcher : matchers) {
    matches.addAll(matches.find(content));
  }
  return matches;
}

That's pretty neat idea. Maybe we can also look at concepts and tools for semantic web (starting from DOAP for instance)?

yea, interesting thought. create a new issue

ignore the first one. I must say, choosing # as a prefix for issue numbers is not ideal. Unless you commit using -m, # is a comment. Which then force you to put the number at the end of the line..  (one can of course argue that the message it self is more valuable then the tracking number but.. )

Preview - Referenced Projects Section - Image


Add more calendars.

Only have 5 countries currently.
Would like to add as many as possible.
This is an easy task, will just take a bit of time.

can i take this task?

Sure :) take a look at what is already implemented for an idea of what needs to be done.
Thanks for your interest !

Getting this error while building locally on mac air m1.
dakshdagariya@Dakshs-MacBook-Air RustQuant % cargo build
error: failed to download `color_quant v1.1.0`

Caused by:
  unable to get `packages` from source

Caused by:
  failed to download replaced source registry `crates-io`

Caused by:
  failed to read `/Users/dakshdagariya/.cargo/registry/src/index.crates.io-6f17d22bba15001f/color_quant-1.1.0/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

Hi, I'm not getting that error. Looks like a problem with the plotters crate.
Is your Rust up-to-date? Try rustup update and re-compile and let me know what happens.

Hi thanks @avhz  I'm able to build now but how to run this locally getting this.
dakshdagariya@Dakshs-MacBook-Air RustQuant % cargo run
error: a bin target must be available for `cargo run`

RustQuant is a library, not a binary. So you can't run it.
You may find the Rust book helpful: https://doc.rust-lang.org/book/
I believe there's a chapter about libraries and binaries.

okay thanks a lot.


organize ng-sample directory to scale better

This brings some organization to the sample that should allow for clearer growth paths to easily support more examples and test components with less confusion.

I rebased this to latest master and merged it manually. Thanks for contributing!


Modifications to remove unnecessary channels

@noboruma / @ramanan-ravi  -- Please review this carefully. I do not see a need for using any channels here.....

@shyam-dev the reason for having channels here is to fulfill two goals:

Send results as soon as they arrive, so we can so spread ingestion on neo4j over time
Keep memory of secret scanner as low as possible

If we capture all secrets in one go, it means we need to keep all secrets in memory and push everything at once, this is not optimal both CPU wise (on neo4j ingestion) and memory wise (secret scan RAM usage)

@noboruma
The "send results as soon as they arrive is not satisfied here. We call "range" function on the channel. That will not work till we call "close" on the channel.
So, effectively, we are treating the channel as an array. With the lock primitives in place, this will cause loss of performance.
If the need is to send results as soon as we get it, the channel should have a reader routine.


Font configuration options

It would be good to have fonts configurable via the URL parameters. At least the following

font-size
font-family

Additional GFonts would be a nice-to-have.

I am on this ;)

Fixed the basics, just external/gfonts to go :)


refactor: disable hostsconfigagent for both linux and windows

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Disable hostsConfigAgent service since it's not used anymore. (it was used by private cluster with legacy none private dns zone, those clusters are all migrated to new implementation now so the hosts config is not required.)
Will have a following pr to cleanup everything related(script, variable): https://github.com/Azure/AgentBaker/pull/3892
Which issue(s) this PR fixes:

Fixes #
Requirements:

[x] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[ ] tested upgrade from previous version

Special notes for your reviewer:
Release note:
none

@levimm could you rebase the PR and resolve the conflicts?


Pull Opt[A] out of Spire in separate project

I'm seeing myself using Opt[A] in a lot of my projects, and I have sometimes a dependency on Spire just for it.
It would also be nice to have Opt available in Scala JS, even with a plain unoptimized implementation, for cross-compilation sake.
I'd like to split Opt in his own subproject, like spire-opt.
What do you think ?

Actually, I'd like to see also the cfor family in this package.

+1
I have a few immutable collections that just uses Eq, Order and Opt from Spire. Having the whole of spire as a dependency is a bit heavy. So having Opt separately would be very helpful. Then I could just depend on non/algebra and wherever Opt ends up in...

I'm going to try creating a project called plint which will contain a lot of this generally-useful code.
My plan is to include:

Opt[_]
bit-packing/unpacking macros
macro support/inlining support
loop macros (e.g. cfor)

How does this sound?

@non, can I help you on this ?


Add support for animated gifs/webp

Currently only the first frame is displayed.
Should be able to set options - continuous, play once, click to stop.

It looks like at least basic support for this can be added if you're using the coil image loader:
https://github.com/coil-kt/coil/tree/2.7.0/coil-gif


DSA <IP_ADDRESS> Array Rotations (Using reversal)

Description
Rotation of array using reversal, blockswap methods, cyclic rotation.
Task

[ ] Documentation
[ ] Audio
[ ] Video

Note

While requesting the issue to be assigned, please mention your NAME & BATCH NUMBER.
Kindly refer to Issue Guidelines.
In case you see that the issue has already been assigned, try to request for a different task within the same issue.
Changes should be made inside the DSA/directory & DSA branch.
Name of the file should be same as the issue.
This issue is only for 'GWOC' contributors of 'DSA' Domain.

I hold a good experience in DSA since past year and can present a welll structured documentation on the same.
Could u please assign it to me. @pjdurden
AYUSHI CHAUHAN
Barch-01

Please assign this to me. I'd like to contribute in the form of documentation.
Ananya Joshi
DSA batch2

Can you please assign this issue to me. I'd like to contribute in the form of documentation.
Ayush Jha
DSA batch3

Please assign this issue to me. I'd like to contribute in the form of documentation.
Ayush Jha
DSA batch3

Hey @pjdurden,
Shabi Kaushal this side. I am good with Data Structures and Algorithms. I can implement them in C/C++/Python lucidly as well as document it.
Shabi Kaushal (DSA Batch 05)
issue #448

@ayushjha952 Assigned to you. Go ahead

/assign

@Subhradeep10 this issue was assigned to me, right?

/assign


Backport fixes to release/2.7

chore(bors): merge pull request #887

887: Fix regression for pool creation timeout retry r=tiagolobocastro a=tiagolobocastro

    test: use tmp in project workspace

    Use a tmp folder from the workspace allowing us to cleanup up things like
    LVM volumes a lot easier as we can just purge it.

    Signed-off-by: Tiago Castro<EMAIL_ADDRESS>
---

    test(pool): create on very large or very slow disks

    Uses LVM Lvols as backend devices for the pool.

    This test ensures that the pool creation is completed by itself and also
    that a client can also complete it by calling create again.

    Signed-off-by: Tiago Castro<EMAIL_ADDRESS>
---

    fix: allow pool creation to complete asynchronously

    When the initial create gRPC times out, the data-plane may still be creating
    the pool in the background, which can happen for very large pools.
     If the pool creation completes before, then
    we retry the creation flow.
    The reason why we don't simply use very large timeouts is because the gRPC
    operations are currently sequential, mostly due to historical reasons.
    Now that the data-plane is allowing concurrent calls, we should also allow
    this on the control-plane.
    TODO: allow concurrent node operations

    Signed-off-by: Tiago Castro<EMAIL_ADDRESS>
---

    fix: check for correct not found error code

    A previous fix ended up not working correctly because it was merged
    incorrectly, somehow!

    Signed-off-by: Tiago Castro<EMAIL_ADDRESS>
---

    chore: update terraform node prep

    Pull the Release key from a recent k8s version since the old keys are no
    longer valid.
    This will have to be updated from time to time.

Co-authored-by: Tiago Castro<EMAIL_ADDRESS>

fix(resize): atomically check for the required size

Ensures races don't lead into volume resize failures.

Signed-off-by: Tiago Castro<EMAIL_ADDRESS>

test(bdd/thin): fix racy thin prov test

Add retry waiting for condition to be met.

Signed-off-by: Tiago Castro<EMAIL_ADDRESS>

feat(topology): remove the internal labels while displaying

Signed-off-by: sinhaashish<EMAIL_ADDRESS>

fix(fsfreeze): improved error message when volume is not staged

Signed-off-by: Abhinandan Purkait<EMAIL_ADDRESS>

fix(deployer): increasing the max number of allowed connection attempts to the io-engine

Signed-off-by: sinhaashish<EMAIL_ADDRESS>

fix(topology): hasTopologyKey overwites affinityTopologyLabels

Signed-off-by: sinhaashish<EMAIL_ADDRESS>

bors try

bors merge

bors merge


Line numbers in coverage wrong with coverageprocessor

I have a repo with my test mule project here: https://github.com/japhar81/redux_template
clone, npm run test and open coverage/index.html. It shows the issue pretty clearly;

Sorry just realized the remapped coverage is in a separate directory. So that works -- however the text summary does not -- is that intentional?

@japhar81 do you mean summary in console? If yes, unfortunately we can't affect it as for now...

@Igmat I did -- here's what I found to work (in case anyone stumbles on this);

tsconfig.json should target ES6
tsconfig.json should set inlineSourceMap to true
Install/configure ts-jest per readme

With those in place I seem to get proper percentages (but not line numbers) in the text summary that's printed, and proper line numbers in the re-mapped output.


Contributor Demographic Diversity

Based on the languages removed,added or byte per language changed in the pr diff, the contributor gets a multiplier towards their own vote in order to encourage diversity within the democracy.

Like the implementation, but not sure if this is something which should count towards your vote weight, especially not with a 1:3 ratio...

This is definitely not something which should count. All this does is incentivise people to clutter the repository with random code in as many languages as possible for no reason. :-1:

@mikesmiffy128: that's called chaos

Okay, but language diversity doesn't achieve anything. We're not even talking about culture here - that's a whole other debate - but this is literally just challenging people to shoehorn in code that fewer people will understand, probably making democracy more difficult due to the added effort of understanding multiple obscure languages.
There is literally no benefit to doing this.


Store transactions in a separate database index

Designs
https://github.com/ZcashFoundation/zebra/blob/main/book/src/dev/rfcs/0005-state-updates.md#rocksdb-data-structures
Tasks

Make the changes
Increment the database version
If you created new Rust modules, make sure the regenerate state paths are up to date in https://github.com/ZcashFoundation/zebra/blob/main/.github/workflows/test.yml

Hey team! Please add your planning poker estimate with ZenHub @conradoplg @jvff @oxarbitrage @teor2345 @upbqdn


Couldn't retrieve the server process ID

Hello guys,
I know that much issues were opened with this error message, however I can't find someone with the same issue than mine.
I created a server with forge-1.12.2-<IP_ADDRESS>21 to use the FTBPresentsDirewolf20112-2.5.0-1.12.2 modpack.
After downloading the jar installer and using the command java -jar forge-1.12.2-<IP_ADDRESS>21-universal.jar --installServer, everithing is going fine until I try to launch the server.
Here is my mscs.properties :
mscs-enabled=true
mscs-server-version=1.12.2
mscs-server-jar=forge-1.12.2-<IP_ADDRESS>21-universal.jar
mscs-initial-memory=1024M
mscs-maximum-memory=8192M
mscs-server-args=nogui

I got this error after lauching my server with mscs start ftb : Error starting the server: couldn't retrieve the server's process ID.
And here is my console.out file
A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:70)
        at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34)
Caused by: java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
        at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
        ... 6 more

The server tries to run on a Debian 8 VPS with java version 12.0.1

Hi @TheoDurr. I wonder if this is an issue with Java 12?  Can you try running with an older version of Java, say Java 8?

You got right, it was an Issue with java12.
I didn't remembered it was so hard to install java8 😮
Thanks anyway !


Check which stacks are updated or deleted when a stack is being released

Signed-off-by: Steven Groeger<EMAIL_ADDRESS>Checklist:

[x] Read the Code of Conduct and Contributing Guidelines.

[x] Followed the commit message guidelines.

[ ] Stack adheres to Appsody stack structure.

Modifying an existing stack:

[ ] Updated the stack version in stack.yaml

Currently, on a stack release the stack will be being built is determined from the TRAVIS_TAG.
When using the TRAVIS_TAG, If a stack is moved or deleted  that stack is not added to the list to be built. This causes issues as a deleted / removed stack will not be removed from the index file.
This PR changes the way   the stacks to be built are checked. When a release. build is being performed the commit that is associated with the TRAVIS_TAG is checked to see which stacks in the commit match the stack name in the TRAVIS_TAG. If this check doesn't find any matching stacks then the stack named in the TRAVIS_TAG is added to the built list for each repo that is configured.
This latter check will aways add the stack for each repo, but this will not cause issues if the stack doesn't exist in the repo as it will just try and remove it.
This PR also removes some unwanted log output from package.sh
Contributing a new stack:

Describe how application dependencies are managed:

Explain how Appsody file watcher is utilized:

Describe other Appsody environment variables defined by the stack image:

Describe any limitations and known issues:

Related Issues:

@Kamran64 @EnriqueL8 Any update to getting this PR reviewed and merged?

I'll take a look at it


MINOR: fix some warnings in the broker

LGTM. Waiting for tests to pass (or at least for unrelated errors...) before merging. Do you want this merged to 2.3 as well?


Add .NET isolated API info to the Functions Overview

@fabiocav and @anthonychu does this look OK? Felt we kind of needed something in the API overview article.

@ggailey777 I'm still waiting for a response from @fabiocav and @anthonychu before merging this. To my eyes, this a lot better than what's there currently, so you have my sign off.


Don't lose time precision

There are many build steps that take only milliseconds (such as copying small resource files)
Rounding everything to a second causes overlaps in time. etc.
There's no good reason to lose the precise data we already have (could round at the very end for the UI)

Hi @rudro thanks for your PR. It makes sense, the first version of the tool used a non rounded Double to store it but I changed it because I wasn't sure how to handle it in Javascript. I saw that you took care of that issue. I'm currently in a trip but I will review it this week.


URL is set too?

what do i set url to? my website name? i cant firgure it out

Url in c# part is url to www/login/index.php. So if you upload content of www folder to web server admin dashbord is avaible at http/https://example.com/admin/index.php and url for login (C# part) is http/https://example.com/login/index.php

thx.

Url in c# part is url to www/login/index.php. So if you upload content of www folder to web server admin dashbord is avaible at http/https://example.com/admin/index.php and url for login (C# part) is http/https://example.com/login/index.php

Thank u. Any chnace you can add a login system to the admin panel :)

I'm working on new version with login system, but I will release it when it will be fully working, ETA 6 months.


Increasing number of steps in extrude_rotation

Hello. Could you tell me how to increase the number of steps taken extrude_rotate a polygon so that the step size in angle is smaller please?
s = rotate_extrude(360) * polygon([[1, 0], [2, 0], [2, 1], [1, 1], [1, 0]])
stl("file.stl", s)

gives

which has 10 faces on the outer diameter and 8 on the inner. How can I make these numbers arbitrarily high?

You can prefix with set_parameters(atol=..., rtol=...). See https://plut.github.io/ConstructiveGeometry.jl/dev/meshing/#Parameters

Perfect - thank you. For future readers, here is the fix:
using ConstructiveGeometry
s = set_parameters(atol=0, rtol=1e-3) * rotate_extrude(360) * polygon([[1, 0], [2, 0], [2, 1], [1, 1], [1, 0]])
stl("file.stl", s)


Hi,do you have been balancing image ,because some relations just have a little

not sure I understand this question - I didn't do any extra preprocessing on the data, if that helps.


Build golang1.7 from source.

As of now, go plugin doesn't support to version option and
we're not able to specify go 1.7 as the preferred compiler to
build each docker and its components.
An open bug can be found here
https://bugs.launchpad.net/snapcraft/+bug/1616985
Meanwhile, golang1.7 deb package for the archs[armhf,arm64,ppc]
can not be found in the ppa we imported.
https://launchpad.net/~jonathonf/+archive/ubuntu/golang-1.7
So in order to release docker-snap for all archs, we have to
create custom plugin and build golang-1.7 from source as
the compiler that we're going to use to build docker snap.

It looks like we are shipping the "snap" folder in the .snap, with the snapcraft plugins, this shouldn't be part of prime. Can we remove it, please?

Can we run the docker daemon as dockerd instead, please?


Auth0 signin doesn't use cursor:pointer when hovering over buttons

As shown in the video below, the buttons in our Auth0 template don't show the pointer-style cursor. It should.
https://youtu.be/5IAcet7mCa8

Seems like there's a comma missing in that sentence at the bottom.
By continuing, you agree...

@scissorsneedfoodtoo might have more context

The login area button is also missing this. Where you need to "submit your one time code".

Source code is available here: https://github.com/freeCodeCamp/auth0-templates/branches

Closed via https://github.com/freeCodeCamp/auth0-templates/pull/16


Failed to use factory data as commisioning data provider (CON-633)

We are trying to use the ESP32 factory partition for the data for

Commisionable data
Device Attestation Data
Device instance Info

I have copied light_switch in the examples, and added below config in the sdkconfig.defaults
CONFIG_ENABLE_CHIP_SHELL=n
CONFIG_BUILD_CHIP_TESTS=n
CONFIG_CHIP_FACTORY_NAMESPACE_PARTITION_LABEL="fctry"
CONFIG_CHIP_CONFIG_NAMESPACE_PARTITION_LABEL="fctry"
CONFIG_CHIP_COUNTERS_NAMESPACE_PARTITION_LABEL="fctry"
CONFIG_CHIP_KVS_NAMESPACE_PARTITION_LABEL="fctry"
CONFIG_ENABLE_ESP32_FACTORY_DATA_PROVIDER=y
CONFIG_ENABLE_ESP32_DEVICE_INSTANCE_INFO_PROVIDER=y
CONFIG_FACTORY_COMMISSIONABLE_DATA_PROVIDER=y
CONFIG_FACTORY_DEVICE_INSTANCE_INFO_PROVIDER=y
Below is the generated onboard code excel

But somehow when I flashed the project and flashed generated partition data, the device seems to fail to get pass code, but isntead used the default pass code.
And as a result, my QR code/Manual pairing code are different to the generated ones.

Attached the log from the monitor
light_switch_log.txt
ESP IDF version: v5.0.2
Matter SDK: release/v1.1 548ef58b604ef1df208e4a040803a4218e213103

More info:
I actually tried to pair with the QR code/Manual code displayed in the monitor log, but failed.
But with the excel QR code/Manual code, the commissioning succeeded.
So I think there is a bug there

Hi!
We have the need to extract the QR code / Manual Pairing code to display on screen

I used the above API to retrieve the QR code/Manual Code.
The problem is the extracted QR code/manual code from program isnt matching whats programmed (in fctry partition) and whats effective (the fctry partition one is effective by testing commissioning)
So its definitely an issue here unless I am using the wrong code to extract those information.

@eme-bennytang The device just has the salt and verifier and not the actual passcode. Hence, it is not able to generate the QR code or manual pairing code that has the passcode. The APIs above should be only for test/development and would be using the test values (say 20202021) directly.

I am not sure if I understand this correctly, please correct me if I am wrong:

Although generated factory partition has --passcode option (or random generated if not input), but the passcode is just a numeric representation of the "salt" and "Spake2p verifier", which both are actually stored in the partition, but not the passcode
So when the program tried to read passcode from the partition it will fail since no actual "passcode" stored, just "salt" and "Spake2p verifier", but this 2 information will be combined to a effective passcode (which is the one in the generated partition summary file)
With same concept, QR code is the ASCII representation of passcode/discriminator/vendorID/productID....etc, thus not really the effective one
Thus explain why I can commission with the summary QR code/manual code

My next question is: if we need really need to extract those (QR code/manual code) in code and display it on screen (for commissioning), what better way can we do that?
e.g. Get the "salt" and "verifier" and do the same numerical operation to generate the result passcode and hence QR code/Manual code?

@eme-bennytang

"salt" and "Spake2p verifier", which both are actually stored in the partition, but not the passcode

That's right.

So when the program tried to read passcode from the partition it will fail since no actual "passcode" stored, just "salt" and "Spake2p verifier"

Correct.

but this 2 information will be combined to a effective passcode (which is the one in the generated partition summary file)

It's the other way round. The salt and verifier are calculated from the passcode

My next question is: if we need really need to extract those (QR code/manual code) in code and display it on screen (for commissioning), what better way can we do that?
e.g. Get the "salt" and "verifier" and do the same numerical operation to generate the result passcode and hence QR code/Manual code?

You cannot generate passcode from salt and verifier. Passcode to verifier is a one way operation. The only option is to to have the actual passcode on the device and then create the salt and verifier from it in the firmware.

Thanks both for the clear explanation.
In fact we are displaying those info on screen AND print it in the package box.
Anyway, I think the only way is to extract those info while generating the factory partition and program it to some region to read in code.
For the mfgtool.py, is it possible to also program the passcode with the key "pin-code" so that I can read it with the test API?

Otherwise I will just program it in other partition and read it with our own implementation

@eme-bennytang I would strongly suggest you to please read through Matter Specification Section 5.1.7. Generation of the Passcode before doing anything.
We did not add the passcode in the manufacturing partition due to security considerations listed in the above section.
What you see in the ESP32Config.[cpp | h] could be the leftover and I think it's better we don't keep it alongside the verifier and salt.

@shubhamdp
So are you saying if we are using static passcode, there is no way that we can read those information FROM the unit, but instead need to gather the information generated in the summary?
How am I suppose to check in production stage whether my programmed static passcode is the one I am expecting?
There must be a way to check against the outside passcode against the passcode inside the unit?  (QR/Manual code in the summary vs the effective QR/Manual code in the unit to ensure the printed label is correct)

@shubhamdp
So are you saying if we are using static passcode, there is no way that we can read those information FROM the unit, but instead need to gather the information generated in the summary?

@eme-bennytang I am not saying anything, I am stating what is in the specification. Please see the below excerpt from the specification.

If the static passcode is supplied to the device, its storage location SHALL be physically isolated from the location where the PAKE verifier is stored and SHALL only be accessible through local interfaces and SHALL NOT be accessible to the executing unit handling the PAKE verifier.

You can still have the passcode in the device but make sure it is isolated from where verifier is stored.

How am I suppose to check in production stage whether my programmed static passcode is the one I am expecting?
There must be a way to check against the outside passcode against the passcode inside the unit? (QR/Manual code in the summary vs the effective QR/Manual code in the unit to ensure the printed label is correct)

You can try commissioning the device with the passcode/qrcode/manual-pairing-code and see if that works. Or, there are tools to generate the verifier from the passcode and you can validate the verifier. (c++ and python).
Event better, just do a PASE with the pincode on the box with that device which contains the corresponding verifier and that way you can validate that it connected with the same device.
But, if you still want it in the device, then I would suggest please store it somewhere safe as per the constraints laid out by specifications.
PS: Pincode is part of qrcode and manual pairing code

@shubhamdp Well understood, Thanks for the great help all! I will be closing the issue


promote-assembly: add missing comma

Closing in favor of https://github.com/openshift/aos-cd-jobs/pull/2940


Make no-autoload-config option work again

The no-autoload-config option stopped working after 1.1.1.
It should work still.

[x] documentation is added or updated
[x] tests are added or updated

Hi Paul!
Thanks for taking care of this regression.  As a small side opinion: maybe introducing a helper such as ossl_ensure_config_loaded() would make the code easier to maintain?
This helper could be made no-op if OPENSSL_NO_AUTOLOAD_CONFIG is defined and would allow to:

Remove the potentially error-prone #if !defined … && !defined … conditions
Skip having to check for OPENSSL_NO_AUTOLOAD_CONFIG everywhere where it's needed now and in the future

@evgenykotkov, I did contemplate adding such a call but while making the changes it didn't seem worthwhile given the other code I could remove.  Some of the other conditional checks looked like being expensive and they can also be avoided by this approach.
Still, such a call might be worth introducing at some point.

Ping @openssl/committers for second review please.

Merged to all three branches.  OpenSSL 3.0 required a manual fix but it was fairly trivial.
Thanks for the reviews.

I think this deserves a CHANGES.md entry.


When the user clicks on an event/class on schedule, there should be a modal that allows you to add description

Hours: 5
Parent Issue: #65

This is how it currently looks like:

Make sure to do: npm install sweetalert to get all the appropriate files.

Looks good for now but just need to add
npm install sweetalert --save
the save is so it gets stored in our project
Ill try working on how to to let the user add a description

Now it looks like this

@j-suguma this is what the pop looks like now. I was also able to add the section and component (lec/lab/tut) in the calendar view but it changes the colours so I removed them. Tomorrow, we can look at maybe changing the colour theme so we can re-add them or figure out another way so that it doesn't affect the colours of each course.

@jameelbrochu i fixed it so that the type of class and the section appear without changing the color, is it good?

I think we should change the components to full names (Lecture, Tutorial, Laboratory) by creating if statements from the info from the database like we did for the TBA course times. And then have the "Laboratory" become "Lab" in the popup so it takes up less space. And remove the brackets on the calendar view.

Alright how does it look now? I made the changes you requested

only problem is if the course time slot is too small cant see all the details

Perfect! I think we will probably need to re-increase the height of the calendar so that all the details fit. I'll look into it.

Small bug: In the popup, it shows LEC and TUT instead of Lecture and Tutorial.

This issue can be closed. When the user clicks on an event on the schedule, a modal popup appears with all the course details, also allowing the user to input text for adding course descriptions.

Time: 3 hours


it doesn't work in 2 cases.

nested matrix

$\Omega^TA\Omega=\begin{pmatrix}\begin{pmatrix}a_1&b_1 \\ -b_1&a_1\end{pmatrix}\\&\ddots\\&&\begin{pmatrix}a_s&b_s \\ -b_s&a_s\end{pmatrix}\\&&&\lambda_{2s+1}\\&&&&\ddots\\&&&&&\lambda_n\end{pmatrix}$

* in matrix

$\begin{pmatrix}a&*\\0&b\end{pmatrix}$

I also have this problem, Need to use four backslashes to escape newlines.
You can try markdown-it-latex2img

I also have this problem, Need to use four backslashes to escape newlines.
You can try markdown-it-latex2img

Thx, it deserves a try!


The current UI culture isn't respected - messages continue to be displayed in English

Steps to reproduce

Run on Windows.
Make sure that Deutsch (Deutschland) (German (Germany) is installed as a Windows UI (display) language via the Windows 10 Settings application.

[cultureinfo]::CurrentUICulture = 'de-DE'; Get-Item nosuch 2>&1 | Should -match 'nicht gefunden'

Expected behavior
The test should succeed.
Actual behavior
The test fails:
Expected regular expression 'nicht gefunden' to match Cannot find path 'C:\Users\User\nosuch' because it does not exist., but it did not match.

That is, the error message was still emitted in English.
This is a regression of sorts from Windows PowerShell, where the above test succeeds.
However, Windows PowerShell's problem is that [cultureinfo]::CurrentUICulture is reset after each command line.
Environment data
PowerShell Core 7.0.0-preview.4

I am not sure that localized help was published. Debug shows internall exception and fallback to en-US.

The test actually tests error messages, not help content.
I naively assumed that since localized DLLs are present in $PSHOME (although on Unix platforms there are only 2) that at least startup messages, error messages, ... would already be localized.
Is this being tracked somewhere? Is there a roadmap?

/cc @SteveL-MSFT? 🙂

:) Thanks, @iSazonov  - I'm closing this.


Add license files to array-init-cursor and planus crates

Hi, thanks for this library! This PR symlinks the license files so they're included in the published array-init-cursor crate (could also copy if it that's better).
Edit: Sorry for all the noise - just noticed they're missing from the planus crate as well.

Thanks for the PR!
Would you mind also putting it in the planus-cli directory? Otherwise I'll do it myself in a follow-up PR.

No problem - added.

Thanks!


Refactored output and input into more concrete types.; Added S3 writer.

cc @4n4nd

I was able to test using the remoteread api with the following command:
 go run ./cmd/obslytics export --input-config='{"type":"remoteread","endpoint":"http://demo.robustperception.io:9090/api/v1/read","tls_config":{"insecure_skip_verify":true}}'\
      --output-config='{"type":"parquet","path": "output/up.parquet","storage": {"type":"s3", "config": {"bucket": "DH-DEV-DATA-SCIENCE-TUTORIAL", "endpoint":  "s3.xxxxx.com", }}}' --match="up"\
      --resolution=1h --min-time="2020-09-19T23:59:59Z" --max-time="2020-09-20T00:59:59Z"\
      --debug

It works :+1:
But I was not able to test the Thanos StoreAPI method, because I don't have access to a thanos instance.

Thanks @4n4nd for quick review :heart:
Hope @iNecas you don't mind if we merge so we can move forward.

I sure don't mind: whatever it takes to move this project forward! :+1:


Fix use future restarting tasks

Fixes #1206
When a future was restarted, it canceled the old task. The documentation stated that it would allow the old task to continue. This PR changes that behavior to allow the task to continue.
Problem in 1206:

Future 1 starts. It is assigned id 0
Future 2 starts. It is assigned id 1
Future 1 resolves, and marks the scope as dirty. This restores the id 0 in the id pool.
Future 2 resolves, and marks the scope as dirty. This restores the id 1 in the id pool.
Future 2's scope reruns and a new future is created. It is assigned the newly restored id 0. It manually restored the already restored id 1 to the pool.
Future 1's scope reruns and a new future is created. It is assigned the newly restored id 1. It manually restored the already restored id 0 to the pool. This removes Future 2's task, causing the task to never finish

When you call restart on a future, don't you expect it to cancel the old future?


Add generic earth icon / Link earth live wallpaper

Description
Today on "random icon merge requests":
I've added a generic_earth icon modeled after the OG picture of earth. Not sure about 12px stroke though.
Used it for some live wallpaper of earth that otherwise has an image (!) as an icon. Yikes!
https://play.google.com/store/apps/details?id=com.afkettler.earth

Type of change

:x: Bug fix (non-breaking change which fixes an issue)
:white_check_mark: Icon addition (non-breaking change that adds/modifies Lawnicons's icons)
:x: General change (non-breaking change that doesn't fit the above categories like copyediting)

Icons addition information

Icons added

App Name (com.afkettler.earth)
App Name (com.afkettler.pro.earth)

Icons linked

App Name (linked com.afkettler.earth to @drawable/generic_earth)
App Name (linked com.afkettler.pro.earth to @drawable/generic_earth)

I think a thick border with 8px inside lines looks weird. But have a look yourself:


Feature/ranking

added domain restrictions (en_EN & de_DE) and testing page for en_EN
crawler now only crawls on defined domains when run
run crawler and see less weird stuff in database
please tell me if anything inappropiate still slips through :)

I manually merged the changes since there were too many other changes for a conflict free merge. @palebDUE your changes are on master!

Please close this Pull Request :)


Navigation

Description
added an animated circular navigation.
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue no.)
#353

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Explain the Testing instructions
Test Configuration:

Operating system: windows
Version: 10
Text-editors used: brackets

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK

@Vamp-harshit


Failure to build

Hi, cloning the repo then navigating and running "cargo build" results in the following error :
  error[E0432]: unresolved import `iced_native::widget::NewScrollable`
 --> src/virtual_scroller.rs:5:5
  |
5 | use iced_native::widget::NewScrollable;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `NewScrollable` in `widget`
  |
help: a similar name exists in the module
  |
5 | use iced_native::widget::Scrollable;
  |                          ~~~~~~~~~~
help: consider importing this struct instead
  |
5 | use crate::new_scrollable::NewScrollable;

so anyways i did as suggested and it works, though there are warnings when trying to run examples later.
warning: unused variable: `item`
  --> src/virtual_scroller.rs:62:27
   |
62 |                 |col, (i, item)| {
   |                           ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
   |
   = note: `#[warn(unused_variables)]` on by default

warning: function `snap_to` is never used
   --> src/new_scrollable.rs:366:8
    |
366 | pub fn snap_to<Message: 'static>(id: Id, offset: RelativeOffset) -> Command<Message> {
    |        ^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

Fixed this issues.


MAP_AT_K implementation is wrong

Description
Hi, after several thoughts on it and performing my own tests, I think that the implementation of map_at_k is not correct.
https://github.com/microsoft/recommenders/blob/main/recommenders/evaluation/python_evaluation.py
The return statement shows the following:
return (df_merge["rr"] / df_merge["actual"]).sum() / n_users
Although the function documentation does advice that:
2. The MAP is meant to calculate Avg. Precision for the relevant items, so it is normalized by the number of         relevant items in the ground truth data, instead of k.
I think it is mistaken and should normalize (divide) by the min(k, actual).
By dividing just by the "actual" column, what is computed is the recall, not the precision.
In other words, if I measure how well I am recommending some items to a user, by dividing by the "actual" makes the MAP for that user dependent on how many items he/she bought.  So if I recommend 3 items and the user purchases those 3 plus 5 more, the MAP metric will be different to a situation in which I recommend 3 items and the user purchases those 3 plus 10 more.  Which doesn't make sense because the mean average precision should be independent of how many items are purchased (unless actual < k) as it is expected to measure precision, not recall.
Having said the above, I think that the return value should be instead something similar to this:
df_merge["top_k"] = k
df_merge["denominator"] = df_merge[["top_k", "actual"]].min(axis=1)
 return (df_merge["rr"] / df_merge["denominator"]).sum() / n_users
I would really appreciate your comments on this!
Thank you in advance!

Well, we have seen different ways to define these metrics in the literature and practice. We opted to follow the Spark MLLib definition of MAP, as we note in the docstring i.e. the definition that can be found here https://spark.apache.org/docs/2.3.0/mllib-evaluation-metrics.html#ranking-systems
They divide by the "actual" number, whereas @abitbetter suggests dividing my min(k, actual) instead.
There are pros and cons for both ways; I see the argument in favor of the latter but on the other side if k is larger than the number of relevant items then it is not possible to achieve 100% precision with the latter definition.
I suggest that @abitbetter implements the alternative definition so that it can be activated with a flag (a boolean argument added in the MAP signature). Also to add a case testing this definition in the MAP test.

I think it would be good to provide a reference for the proposed definition, but I think one desired feature is that MAP increases with k. The definition we use is used in information retrieval, see e.g. https://en.wikipedia.org/wiki/Evaluation_measures_(information_retrieval)#Average_precision from information retrieval where typically there are more relevant documents than k.

The document of Spark MLlib indeed says the MAP is calculated based on the actual relevant item. However, I also found that the formula used in precision@k on the same page uses min value of actual relevant items and k. Plus, I see discussions in different places about MAP where the two are misused...
Here is my suggestion:

I would agree on what @abitbetter suggested as MAP calculates the "mean" of average precision which essentially is precision@k so it should be consistent with the definition of precision@k.
Perhaps the precision@k function in the same .py file needs to be updated as well because it calculates the precision by using only k as the denominator - similar to above, the min value of k and "actual" should be used.


How to pass data using the constructor arguments???

How to pass data using the constructor arguments???
i.e await user?.notifyLater(new Notification(data));
then in notification class constructor (private user: User) {     super()   }

Just like you said, you just need to remove the super() call, as notification classes not extends a base notification class.
Be aware that data passed to notifyLater will be serialized, so passing in a model may not work as expected, as the model will be serialized.

ok,,Thanks


Broken pipe error when running object_storage_service benchmark

Hi,
Has anyone seen this error, Broken pipe, during benchmark object_storage_service?
./pkb.py --project=elite-firefly-786 --benchmarks=object_storage_service --machine_type=n1-standard-2
pkb.log
...
2015-02-25 21:38:46,569 vm_util.py:335 INFO     Running: /usr/bin/ssh -A -p 22<EMAIL_ADDRESS>-2 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PreferredAuthentications=publickey -o PasswordAuthentication=no -o ConnectTimeout=5 -o GSSAPIAuthentication=no -o ServerAliveInterval=30 -o ServerAliveCountMax=10 -i /tmp/perfkitbenchmarker/run_fcd580f8/perfkitbenchmarker_keyfile /scratch0/run/object_storage_api_tests.py --bucket=pkbfcd580f8 --storage_provider=GCS --iterations=200 --scenario=ListConsistency
2015-02-26 01:34:05,081 vm_util.py:349 DEBUG    Ran /usr/bin/ssh -A -p 22<EMAIL_ADDRESS>-2 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PreferredAuthentications=publickey -o PasswordAuthentication=no -o ConnectTimeout=5 -o GSSAPIAuthentication=no -o ServerAliveInterval=30 -o ServerAliveCountMax=10 -i /tmp/perfkitbenchmarker/run_fcd580f8/perfkitbenchmarker_keyfile /scratch0/run/object_storage_api_tests.py --bucket=pkbfcd580f8 --storage_provider=GCS --iterations=200 --scenario=ListConsistency. Got return code (0). STDOUT: STDERR: Warning: Permanently added '<IP_ADDRESS>' (ECDSA) to the list of known hosts.^M
…..
 Got return code (0). STDOUT: []
STDERR: Deleted [https://www.googleapis.com/compute/v1/projects/elite-firefly-786/zones/us-central1-a/instances/perfkit-fcd580f8-0].

+Stanley
On Fri, Feb 27, 2015 at 12:29 AM, Hung<EMAIL_ADDRESS>wrote:

Hi,
Has anyone seen this error, Broken pipe, during benchmark
object_storage_service?
./pkb.py --project=elite-firefly-786 --benchmarks=object_storage_service
--machine_type=n1-standard-2
pkb.log
...
2015-02-25 21:38:46,569 vm_util.py:335 INFO Running: /usr/bin/ssh -A -p 22
<EMAIL_ADDRESS>-2 -o UserKnownHostsFile=/dev/null -o
StrictHostKeyChecking=no -o IdentitiesOnly=yes -o
PreferredAuthentications=publickey -o PasswordAuthentication=no -o
ConnectTimeout=5 -o GSSAPIAuthentication=no -o ServerAliveInterval=30 -o
ServerAliveCountMax=10 -i
/tmp/perfkitbenchmarker/run_fcd580f8/perfkitbenchmarker_keyfile
/scratch0/run/object_storage_api_tests.py --bucket=pkbfcd580f8
--storage_provider=GCS --iterations=200 --scenario=ListConsistency
2015-02-26 01:34:05,081 vm_util.py:349 DEBUG Ran /usr/bin/ssh -A -p 22
<EMAIL_ADDRESS>-2 -o UserKnownHostsFile=/dev/null -o
StrictHostKeyChecking=no -o IdentitiesOnly=yes -o
PreferredAuthentications=publickey -o PasswordAuthentication=no -o
ConnectTimeout=5 -o GSSAPIAuthentication=no -o ServerAliveInterval=30 -o
ServerAliveCountMax=10 -i
/tmp/perfkitbenchmarker/run_fcd580f8/perfkitbenchmarker_keyfile
/scratch0/run/object_storage_api_tests.py --bucket=pkbfcd580f8
--storage_provider=GCS --iterations=200 --scenario=ListConsistency. Got
return code (0). STDOUT: STDERR: Warning: Permanently added
'<IP_ADDRESS>' (ECDSA) to the list of known hosts.^M
.....
 Got return code (0). STDOUT: []
STDERR: Deleted [
https://www.googleapis.com/compute/v1/projects/elite-firefly-786/zones/us-central1-a/instances/perfkit-fcd580f8-0
].
--
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/issues/136.

--
Anthony F. Voellm (aka Tony)
Google Voice:<PHONE_NUMBER>
https://www.google.com/voice/b/0?pli=1#phones
Blog: http://perfguy.blogspot.com/

From the log provided, the test has completed successfully, but when it tries to print the result to std out, it got an broken pipe error, which typically happens if your standard out is to a terminal window which you have just logged-out or timedout.
Make sure you don't log out of your shell window that you started this test, or redirect your standard out to a file.

But I ran it with nohup and redirected the output std error and std output to a file as follow:
nohup ./pkb.py --project=elite-firefly-786 --benchmarks=object_storage_service --machine_type=n1-standard-2 2>&1 | tee object_storage_service.out &
This works fine with other benchmarks where the PerfKitBenchmark Results Summary was printed out successfully to the output file, even when the ssh connection was terminated.

This issue is pretty simple: we failed to write to stdout when doing a simple "print result" from the test. Make sure the stdout is robust and accessible for the duration of this test will fix this problem. Perhaps this is just a transient error, but I am not sure.
I have been using redirects all the time on this benchmark as well and have been running it for weeks, never seen this problem.
Just for trying, let's not use tee command here, but just write to the file. (you can always do tail -f on the file to see the real time results)

Thanks, Stanley. With your first explanation, I went ahead and disabled SSH timeout (I have root access), and this time the test took much longer (>10 hrs) and completed successfully with the perfkitbenchmarker_results.json file generated. There's still one error at the very end when it's trying to clean up and remove the bucket:
Traceback (most recent call last):
File "./pkb.py", line 21, in
sys.exit(Main())
File "/root/PerfKitBenchmarker/perfkitbenchmarker/pkb.py", line 358, in Main
return RunBenchmarks()
File "/root/PerfKitBenchmarker/perfkitbenchmarker/pkb.py", line 324, in RunBenchmarks
RunBenchmark(benchmark, collector)
File "/root/PerfKitBenchmarker/perfkitbenchmarker/pkb.py", line 244, in RunBenchmark
benchmark.Cleanup(benchmark_specification)
File "/root/PerfKitBenchmarker/perfkitbenchmarker/benchmarks/object_storage_service_benchmark.py", line 819, in Cleanup
OBJECT_STORAGE_BENCHMARK_DICTIONARY[FLAGS.storage].Cleanup(vms[0])
File "/root/PerfKitBenchmarker/perfkitbenchmarker/benchmarks/object_storage_service_benchmark.py", line 722, in Cleanup
DeleteBucketWithRetry(vm, remove_content_cmd, remove_bucket_cmd)
File "/root/PerfKitBenchmarker/perfkitbenchmarker/benchmarks/object_storage_service_benchmark.py", line 351, in DeleteBucketWithRetry
raise BucketRemovalError('Failed to remove the bucket')
perfkitbenchmarker.benchmarks.object_storage_service_benchmark.BucketRemovalError: Failed to remove the bucket

Reviewing the log, I saw a lot of the same error (number of attempts 120) below:
2015-02-27 03:28:10,893 ERROR    Failed to perform the removal op. Number of attempts: 1. Error is Got non-zero return code (1) executing /home/perfkit/google-cloud-sdk/bin/gsutil -m rm -r gs://pkbb260fddb/*
Full command: /usr/bin/ssh -A -p 22<EMAIL_ADDRESS>-2 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PreferredAuthentications=publickey -o PasswordAuthentication=no -o ConnectTimeout=5 -o GSSAPIAuthentication=no -o ServerAliveInterval=30 -o ServerAliveCountMax=10 -i /tmp/perfkitbenchmarker/run_b260fddb/perfkitbenchmarker_keyfile /home/perfkit/google-cloud-sdk/bin/gsutil -m rm -r gs://pkbb260fddb/*
STDOUT: STDERR: Warning: Permanently added '<IP_ADDRESS>' (ECDSA) to the list of known hosts.^M
Removing gs://pkbb260fddb/file-11.dat#1425002760376000...
...
2015-02-27 04:46:21,199 ERROR    Failed to perform the removal op. Number of attempts: 117. Error is Got non-zero return code (1) executing /home/perfkit/google-cloud-sdk/bin/gsutil rb gs://pkbb260fddb
2015-02-27 04:46:52,775 ERROR    Failed to perform the removal op. Number of attempts: 118. Error is Got non-zero return code (1) executing /home/perfkit/google-cloud-sdk/bin/gsutil rb gs://pkbb260fddb
2015-02-27 04:47:24,483 ERROR    Failed to perform the removal op. Number of attempts: 119. Error is Got non-zero return code (1) executing /home/perfkit/google-cloud-sdk/bin/gsutil rb gs://pkbb260fddb
2015-02-27 04:47:56,362 ERROR    Failed to perform the removal op. Number of attempts: 120. Error is Got non-zero return code (1) executing /home/perfkit/google-cloud-sdk/bin/gsutil rb gs://pkbb260fddb
2015-02-27 04:48:26,393 ERROR    Exceeded max retry limit for removing the empty bucket
2015-02-27 04:48:26,393 ERROR    Error during benchmark object_storage_service
raise BucketRemovalError('Failed to remove the bucket')
BucketRemovalError: Failed to remove the bucket
raise BucketRemovalError('Failed to remove the bucket')
perfkitbenchmarker.benchmarks.object_storage_service_benchmark.BucketRemovalError: Failed to remove the bucket

Right, this is a known issue with the cloud provider "GCP" where a 503 service side error would be returned when we attempt to delete an EMPTY bucket. We added retries up to 120 times to tolerate this but apparently and unfortunately in this particular case, after many hours and 120 times of retrying, the bucket is still not removed.
The good news is there is no limit of number of buckets you can have on GCS, so this won't block you from creating new buckets later.
The mitigation is wait for a few more days and come back trying to delete this bucket manually using gsutil rb "bucket name"

Doesn't this effect "End to End Runtime" with 120 times of retries? Actually, it did not even print out End to End Runtime.

It's the balance between proper resource cleanup and test runtime. We initially had this test without much wait and simply bail when we failed to cleanup the bucket, but that left lots of resource hanging around which isn't very good either (e.g., some provider enforces a limit of max 30 buckets). With added wait and tenacious retry, we were able to successfully clean-up for almost all cases but there is still a very long tail of cases that requires even longer wait, for those, we have to err on the side of having a "reasonable" test runtime and bail.

End to End Runtime will only be printed if the benchmark succeeded. So if
the benchmark failed or it is spitted by running with
run_stage=prepare/run/cleanup, there won't be a End to End Runtime.
On Fri, Mar 20, 2015 at 10:17 AM, stfeng<EMAIL_ADDRESS>wrote:

It's the balance between proper resource cleanup and test runtime. We
initially had this test without much wait and simply bail when we failed to
cleanup the bucket, but that left lots of resource hanging around which
isn't very good either (e.g., some provider enforces a limit of max 30
buckets). With added wait and tenacious retry, we were able to successfully
clean-up for almost all cases but there is still a very long tail of cases
that requires even longer wait, for those, we have to err on the side of
having a "reasonable" test runtime and bail.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/issues/136#issuecomment-84076482
.


"Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component" error when using Connected Router with Electron

I have been working on this for the past day as I cannot seem to find the cause.
I have a fairly simple toy model:
      <Provider store={store} context={ReactReduxContext}>
        <PersistGate persistor={persistor}>
          <ConnectedRouter history={history} context={ReactReduxContext}>
            <View style={{ backgroundColor: "red" }}>
              <Text>Test!</Text>
            </View>
          </ConnectedRouter>
        </PersistGate>
      </Provider>

And I get this error:
Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
    at resolveDispatcher (/Users/andy/Desktop/Projects/AppDir/Frontend/SpecificApp/node_modules/react/cjs/react.development.js:1465)
    at useMemo (/Users/andy/Desktop/Projects/PandaistOfficial/Frontend/PandaistDict/node_modules/react/cjs/react.development.js:1520)
    at Provider (/Users/andy/Desktop/Projects/AppDir/Frontend/SpecificApp/node_modules/react-redux/lib/components/Provider.js:24)
    at renderWithHooks (react-dom.development.js?61bb:14803)
    at mountIndeterminateComponent (react-dom.development.js?61bb:17482)
    at beginWork (react-dom.development.js?61bb:18596)
    at HTMLUnknownElement.callCallback (react-dom.development.js?61bb:188)
    at Object.invokeGuardedCallbackDev (react-dom.development.js?61bb:237)
    at invokeGuardedCallback (react-dom.development.js?61bb:292)
    at beginWork$1 (react-dom.development.js?61bb:23203)

react-native-logs.fx.ts?51a9:34 The above error occurred in the <Provider> component:
    in Provider (created by startApp)
    in startApp (created by ExpoRootComponent)
    in ExpoRootComponent
    in div (created by View)
    in View (created by AppContainer)
    in ChildrenWrapper (created by Root)
    in _default (created by Root)
    in Root (created by AppContainer)
    in div (created by View)
    in View (created by AppContainer)
    in AppContainer

I am still using a class component for my top component, as I haven't migrated yet, but I don't think that would be the issue here (and I have tested switching to functional component temporarily, and saw no change).
If I do an even simpler toy example:
            <View style={{ backgroundColor: "red" }}>
              <Text>Test!</Text>
            </View>

No error is thrown.
Web version works absolutely fine.
What could be causing this issue?

    "react": "^16.14.0",
    "react-dom": "^16.14.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",
    "react-native-unimodules": "~0.11.0",
    "react-native-web": "~0.13.12",
    "react-redux": "^7.2.0",
    "react-responsive": "^8.2.0",
    "react-router-dom": "^5.2.0",
    "redux": "^4.1.0",
    "redux-api-middleware": "^3.2.0",
    "redux-persist": "^6.0.0",
    "redux-persist-transform-immutable": "^5.0.0",

Relevant versions of packages


Formatting monsterbox when breaking across columns

Similarly to paperbox as described in #51, monsterbox renders its top and bottom decorations on both parts when it is broken across a column. Unlike paperbox, it is valid for a monsterbox to break across a column.
Does anyone know how to suppress the rendering of the top and bottom decorations that are rendered in the middle when the monsterbox breaks across a column?

Hm. On second look, it seems that monsterbox is already handling the break correctly.


Feature request: Add source branch names to PRs list

Take https://github.com/sindresorhus/refined-github/pulls for example.
It would be great to indicate which user:branch each PR was from in the PRs list without clicking to the PR to see this information. Something like this can go next to the date or something. Thoughts?

@ahmetb seems like a duplicate of #103


Changes for Application Gateway Spec

I have recently created hyak spec for Application Gateway under Network. These are the corresponding changes in azure-sdk-for-net.

Can one of the admins verify this patch?

Hi @kagamsft, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (kaga). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, or work for Microsoft Open Technologies, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

add to whitelist

Remove app.config
Increment nuspec project version
Build project so the assembly file version gets updated with the new one


Make amenity=post_box clickable to display operator and collection_times

All is in the title. See https://wiki.openstreetmap.org/wiki/Tag:amenity%3Dpost_box

Hi, any willing to do it? Or to not do it? Such small feature would participate to the Qwant maps benefits compared to other map providers.


Module / respond_to? as types

Problem
In Ruby, several collection classes implement the Enumerable module as a type of contract. There are others around sorting and other ideas, so I'd thought to try and type against them:
# typed: true

extend T::Sig

sig { params(list: Enumerable).returns(Integer) }
def sum(list)
  list.reduce(0, :+)
end

def main
  sum([1, 2, 3])
end

Granted this is a slightly contrived example, but it still returns an error:
editor.rb:5: Malformed type declaration. Generic class without type arguments Enumerable https://srb.help/5004
     5 |sig { params(list: Enumerable).returns(Integer) }
                           ^^^^^^^^^^
Errors: 1

Side note: Error 5004 doesn't exist in the documentation.
Proposed solution
In YARDoc and other "soft" static typing systems in Ruby, modules and respond_to? interfaces are accepted as types.
Something could act as an Enumerable which would satisfy certain type constraints, or playing off of duck typing a constraint could be satisfied by the fact that a class implements that method.
The above example is how Enumerable might work. respond_to? would be more interesting, though a potential API would be:
sig { params(list: respond_to?(:each)).returns(Integer) }

In some Pattern matching implementations I use respond_to? to designate an interface to get extra power using ===, which might look like this:
sig do
  params(
    conditions: T::Array[respond_to?(:===)],
    object: T.any
  ).returns(T.boolean) # probably not right
end
def match(conditions, object)
  conditions.all? { |c_name, c_matcher| c_matcher === object.send(c_name) }
end

The signature would indicate that there's significance to the === on each of the conditions provided, which could be used for some interesting hinting in editors as well. Doubly so if used in conjunction with YARDoc or a similar standard to tie in explanations to that.

This should also work:
https://sorbet.run/#%23 typed%3A true
class A
  extend T%3A%3ASig

sig { params(list%3A T%3A%3AEnumerable[Object]).returns(Integer) }
def sum(list)
  list.reduce(0%2C %3A%2B)
end
end

def main
  A.new.sum([1%2C 2%2C 3])
end
# typed: true
class A
  extend T::Sig

sig { params(list: T::Enumerable[Object]).returns(Integer) }
def sum(list)
  list.reduce(0, :+)
end
end

def main
  A.new.sum([1, 2, 3])
end

@rafaelfranca is correct. We expect people who want to type these STDLIB objects that are generics to use their T:: equivalents.

For posterity: the specific solution of responds_to? as a type is something we are unlikely to ever support, because just knowing that a method responds to a name does not mean we know it's arity let alone the types of the method parameters themselves.

How does one do duck-typing, especially on the core classes?  If I want to write a signature for a method that accepts something that responds to to_s, how can I do that?  I understand that if I control the code entirely, I could do this by mixing-in modules, but I don't control the core classes.


[SDKMAN] [minor] 'gradle.bat' marked as executable on linux

when installing gradle on linux via:
sdk install gradle 5.4

the gradle.bat file is needlessly placed in the PATH and marked as executable.
this pollutes the shell tab autocomplete.

Sounds like an easy enough thing to contribute as a PR. It seems to be coming from https://github.com/gradle/gradle/blob/master/subprojects/distributions/distributions.gradle#L94-L97. Changing this would also require to align https://github.com/gradle/gradle/blob/master/buildSrc/subprojects/integration-testing/src/main/kotlin/org/gradle/gradlebuild/test/fixtures/IntTestImagePlugin.kt#L170-L173. Finally the change for the distribution would need to add an integration test in DistributionIntegrationSpec.


(maint) Fix resource_spec.rb test

Previously the test was creating a Puppet::Type 'test', and not removing the type at the end of the spec.
That created a possibility where
This PR cleans up the name of the type, and removes it at the end of spec.

I was having issues running specs locally on my macbook, if resource_spec was ran before capability_spec I'd see failures. With this change specs now pass.


support for account activity API

Added account activity API support (https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/api-reference)
Changes include:

Premium account activity API
support for perform_request(:json_put, ...)
tests
documentation

TODO:

API: get count of currently active subscriptions
API: list of currently active subscriptions
Figure out how to pass bearer token for above APIs

Not sure what can be done to reduce the lines in set_multipart_options! (codeclimate.com error), any suggestions how to support json_put without increasing the number of lines in set_multipart_options! ?


Introduce a output filepath for summary data

This may have follow up PR - to fix the release issue that requires an update on hyperledger-updates.

Merging with privilege to unblock and try start-here.hyperledger.org


React Native?

How much would it take to make Fynx work with React Native?
I see you have a router. I'd guess I could just ignore the router and use the other parts?

I see there is no dependency to the view layer. Sorry ;)


Missing description and observation fix

There was a problem with disappearing description and observation caused by manual sync for editors set as noSync.
To fix this, simply move the noSync check from the onUpdate event to the updateHTML method.
Closes #347 and again fixed and closed #280

My test with the PR  :
Original finding

Edit and save :

swap between definition / proof
Result :

It return me the result original
Have I done something wrong?

Yes, my fault. If we does not sync values we have problem with binding finding model and editor. So reviewed again and found that noSync flag is not responsible for initial bug with disappearing description. After debugging I found that when we switch tabs faster than initial data of editor loads. Than we have problem with overwriting our description with empty string. So now I check that data is already loaded and only after initial data is loaded we can sync values with our binded object.

Good work :)


Add http_referer to the http_base.yaml context

In a mass hosting environment it would be interesting to know what customer/domain has been affected by the alert/decision.
Please add the http_referer information (evt.Parsed.http_referer) to the http_base.yaml in order to get a hint of the domain in the context data. The target_uri tag doesn't include the domain part.

In a mass hosting environment it would be interesting to know what customer/domain has been affected by the alert/decision.
Please add the http_referer information (evt.Parsed.http_referer) to the http_base.yaml in order to get a hint of the domain in the context data. The target_uri tag doesn't include the domain part.

Hey 👋🏻
I had a similar idea #957 , however, some of the CrowdSec team are wary of adding this by default due to privacy concerns. So I purpose we create a http_extended.yaml context that will have the additional context fields and the user can opt in to send this will alert context by installing this.

You can also add this yourself to the context by creating a file /etc/crowdsec/contexts/custom_http_context.yaml and adding:
context:
 http_referer:
  - evt.Parsed.http_referer

@LaurenceJJones I like that idea. Honestly, it's kind of confusing for me to have to remember all the custom stuff I have to set up with each install.
@blotus I did. I'm waiting for some events to happen to check if it works.


Allow mapping 'close modal' behavior

I moved a few things around so that you can make your own keymapping to close the modal window.
This also defines modalbind.default_keys setting which can be used to create bindings that are mapped on all modals.
I also added 'Return'  as a default mapping for closing the window.

Thanks, this looks useful. I added an additional setting to hide the bindings in the new default_keys table from the listing (default is showing them).
Please use tabs for indentation next time, I know some people prefer spaces but I think we can agree that both in the same file are not ideal ;-)


ONNX model import

Following https://github.com/facebookresearch/maskrcnn-benchmark/issues/27, I am opening a new issue since it's not totally related.
It would be nice to be able to export the model to ONNX for later reuse with different frameworks and/or languages.

I think it might be difficult to have our detection models be ONNX-exportable in the near future.
The reason being that they have a few custom operators, and those operators are not in the ONNX standard.
Adding them to the ONNX standard could be possible, but I believe this requires some time and discussion between different teams. Also, having other frameworks implement those operators is yet another story.

It looks like some people are already working on it:

https://github.com/onnx/models/issues/17
https://github.com/onnx/onnx/issues/1552

That's good to know. Once ONNX supports the required ops, we can see what can be done on our side.

I have a newbie question.  Once ONNX supports the rest of the operators, will this then need to be integrated into Caffe2, or will there be some sort of 'hook' to pick these changes up so we could move forward with the model conversion?  I'm currently working on trying to convert a custom trained FPN model, with the ultimate goal to run on TensorRT, and am stuck.  I would be willing to do some branch testing if I knew how the final integrations for onnx/onnx#1010 were going to work out. Please advise

hi @hadim
have u exported the model to ONNX?
can u give me some tips how to do it?

https://github.com/facebookresearch/maskrcnn-benchmark/pull/138 needs to be fixed first.

Can the models be exported now?
The ONNX models repo contains a pre-trained Faster R-CNN model from maskrcnn-benchmark. However, it does not seem to have been exported directly.

现在可以导出模型吗？
ONNX模型存储库包含来自maskrcnn-benchmark 的预训练的Faster R-CNN模型。但是，它似乎没有直接导出。

Have you converted successfully?


Files downloaded by phrase pull should end with newline

Files should end with newline, otherwise there can be issues with version control, such as unexpected results of diff and blame. When using phrase pull however, the file which is downloaded doesn't contain a final newline. If a code style tool like prettier is used, this causes a warning and can lead to additional work by the developer to either add a newline every time the file is downloaded, or exclude translation files from formatting.
The proposed solution is to add a final newline to the downloaded files.

Hi @dkimmich-onventis, first of all apologize the late reply.
We have discussed this internally and created an item for our product research.
For the current state I suggest to trigger a small script that adds the newline when you need it.


Changing the shape of animation apis

Remove loop api and make it a part of single api
Change the wordings
Change the path animation default to 2 second
Rename animation-old.ts to legacy.ts to reflect how the api is categorized.

Old:

New:

Usage:

Fixes https://github.com/microsoft/pxt-arcade/issues/1280


Add check for param in doc string that is not in the function signature.

If we remove a parameter from a function/method signature we need to also remove it from the doc string. ruff does not check to make sure that all parameters mentioned in the doc string exist in the signature but it should.

It should also flag for a parameter that is in the signature (other than self) that is not included in a doc string if there is a doc string that includes a parameter list.

Thanks. The doctring rules are tracked in https://github.com/astral-sh/ruff/issues/12434

Sorry for dropping a dupe on y'all. Too many issues to go through and find.

Sorry for dropping a dupe on y'all. Too many issues to go through and find.

Yeah, and GitHub search does no good job at finding....


updated README

closes #55
also I have added table Of Contents inside Readme.
Signed-off-by: nitin mewar<EMAIL_ADDRESS>

@nitinmewar we follow the commit style mentioned here. In this PR's case, the commit should be like this:
docs: update README with info around running tests locally
- add Table of Contents

Examples: https://github.com/keptn-sandbox/datadog-service/commits/master
You can fix the commit message using:
git commit --amend

One small thing here and we are good.

@nitinmewar you might be interested in this: https://github.com/keptn-sandbox/datadog-service/issues/82


BigQuery: rewrite simple app tutorial.

Add additional region tags to support tutorial rewrite.
Use nicer struct read for printing results.
Use more relevant query from public datasets.

LGTM, just a couple nits

Looks like you need to run gofmt. LGTM otherwise.

I can't quite tell what's going on with the tests.
I already froze the docs to a commit hash, so this should be safe to merge whenever.


Update laptop kexts order

I all kept your kexts, i just added the MinKernels that were missing!
The only kext I added is SMCLightSensor.kext (not specific to HP).

I don't like most of the comments you changed. The comment field is meant for short but concise descriptions of what a kext does. And a comment like "Allows reading Embedded Controller fields over 1 byte long, vastly reducing the amount of ACPI modification needed (if any) for working battery status" is neither short nor concise and it's also directly copied from the EC Enabler Repo.
"Any" as arch is perfectly fine. Especially in regards to compatibility. If someone would like to install a 32 bit macOS on a legacy device it wouldn't boot otherwise.

Please don't make any more pull requests!


[MP-156] Backport some changes from upstream to make this a standalone pod hopefully compatible with RN 0.59 link system

we are abandoning this fork and going back to mainline version on npm (it no longer requires feedback SDK to be integrated.)


Making Userfriendly function for python driver

Making Userfriendly function for python driver
Create

Creating Nodes and Edges

Read

Getting Nodes and Edges in python datastructure

Update

Updating nodes and edges

Delete

Deleting nodes and edges

make PR #783

Creating nodes and edges
Getting all edges