[WIP] Prepare chunks on the fly

Motivation and context

How has this been tested?

Checklist

[ ] I submit my changes into the develop branch
[ ] I have added description of my changes into CHANGELOG file
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] I have linked related issues (read github docs)
[ ] I have increased versions of npm packages if it is necessary (cvat-canvas,
cvat-core, cvat-data and cvat-ui)

License

[x] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.
[ ] I have updated the license header for each file (see an example below)

# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT

Create new task dialog:

Use color picker icon instead of “Label color”
The color picker should show the current color

Color picker dialog:

It should have “OK”, “Cancel” and “Reset” buttons (see Gimp screenshot)

Job view:

Use “color by” == “label” by default
Use color picker dialog implemented for create new task dialog
Use color picker icon to choose a color
You can choose color only if “color by” equals to “instance” or “group”. Thus “Enter” and “color picker” is enabled only when “color by” != “label”.

Pull Request Test Coverage Report for Build 6984

93 of 332 (28.01%)  changed or added relevant lines in 8 files are covered.
104 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.9%) to 68.782%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

cvat/apps/engine/models.py
9
12
75.0%

cvat/apps/engine/views.py
8
12
66.67%

cvat/apps/engine/frame_provider.py
9
21
42.86%

cvat/apps/engine/cache.py
13
43
30.23%

cvat/apps/engine/task.py
22
58
37.93%

cvat/apps/engine/media_extractors.py
11
69
15.94%

cvat/apps/engine/prepare.py
19
115
16.52%

Files with Coverage Reduction
New Missed Lines
%

src/session.js
104
53.98%

Totals

Change from base Build 6968:
-0.9%

Covered Lines:
11791

Relevant Lines:
16663

💛  - Coveralls

@Marishka17 , need to fix a couple of codacy issues.

@Marishka17 , need to resolve conflicts.
@azhavoro , could you please comment or approve the PR?

LGTM, but need to fix a couple of minor comments and add some tests.

HI,When does this pr  merge

I have merged the PR with some minor modifications manually.


Brand.yml doesn't follow the overriding font families in monospace-block and monospace-inline

If I have a Shiny for Python App with the brand.yml contents as the following:

Brand.yml
meta:
  name:
    full: "Retro Arcade Brand"
    short: "RetroArc"
  link:
    home: https://retroarc.example.com
    mastodon: https://mastodon.social/@retroarc
    github: https://github.com/retroarc
    linkedin: https://linkedin.com/company/retroarc
    twitter: https://twitter.com/retroarc
    facebook: https://facebook.com/retroarc

# logo:
#   images:
#     icon-light: logos/retroarc-icon-light.png
#     icon-dark: logos/retroarc-icon-dark.png
#     wide-light: logos/retroarc-wide-light.png
#     wide-dark: logos/retroarc-wide-dark.png
#     tall-light: logos/retroarc-tall-light.png
#     tall-dark: logos/retroarc-tall-dark.png
#   small:
#     light: logos/retroarc-icon-light.png
#     dark: logos/retroarc-icon-dark.png
#   medium:
#     light: logos/retroarc-wide-light.png
#     dark: logos/retroarc-wide-dark.png
#   large:
#     light: logos/retroarc-tall-light.png
#     dark: logos/retroarc-tall-dark.png

color:
  palette:
    pink: "#E83E8C"
    blue: "#007BFF"
    cyan: "#17A2B8"
    teal: "#20C997"
    green: "#28A745"
    yellow: "#FFD700"
    orange: "#FF7F50"
    red: "#FF3333"
    purple: "#6F42C1"
    indigo: "#6610F2"
    black: "#1A1A1A"
    white: "#F8F8F8"
  foreground: black
  background: white
  primary: purple
  success: green
  info: cyan
  warning: yellow
  danger: orange
  light: white
  dark: black

typography:
  fonts:
    - family: Quantico
      source: google
      weight: [700]
      style: [normal, italic]
      display: swap
    - family: Monda
      source: file
      files:
        - path: Monda.ttf
          weight: 400..700
    - family: Pacifico
      source: google
      weight: 400
      style: normal
      display: swap
  base:
    family: Pacifico
    size: 17px
    weight: 400
    line-height: 1.5
  headings:
    family: Monda
    weight: 400
    line-height: 1.2
    style: normal
  monospace:
    family: Share Tech Mono
    size: 0.9em
    weight: 400
  monospace-inline:
    family: Pacifico
    # size: 0.9em
    weight: 400
    color: green
    background-color: "#1a1a1add"
  monospace-block:
    family: Pacifico
    size: 1.1em
    weight: 400
    color: green
    background-color: yellow
    line-height: 1.4
  link:
    weight: 400
    background-color: purple
    color: white
    decoration: "underline"

defaults:
  bootstrap:
    defaults:
      my-pink: "$brand-pink"
  shiny:
    theme:
      preset: shiny
      rules: |
        .navbar-brand { color: $my-pink }
      # TODO: Find an appropriate theme variable to set
      # navbar-bg: $brand-purple

If you observe the monospace sections, the monospace has the family Share Tech Mono while all other monospace-* have the font family as Pacifico

But in the app, the monospace-inline and monospace-block still inherit the font from monospace not monospace-inline and monospace-block as shown in the app screenshot.

As I see it, the user can set a base line font family for monospace but then monospace-inline and monospace-block can override the font family as they see fit.

Great catch, thanks @karangattu. Will be fixed shortly.


GUI: add sound effects

Pull Request checklist
Note: these are not necessarily requirements

[ ] I reformatted the code with clang-format
[x] I checked to make sure my submission worked
[x] I am the author of submission or have permission from the original author
[x] Requires update of the PS2SDK
[ ] Requires update of the gsKit
[ ] Others (please specify below)

Two small bug fixes, one to stop crash at init if user navigates menus and one to stop crash at unloading hdl server if the current theme is not saved to cfg.
Add sound effects (code for external files found in themes & default royalty free sounds)
Royalty free sounds source:
made by @Tupakaveli //boot sound
made by @RivalK93 //cancel
http://www.flashkit.com/soundfx/Interfaces/Switches/Switch19-intermed-5235/index.php //confirm
http://www.flashkit.com/soundfx/Interfaces/Clicks/ambient_-agent_vi-8701/index.php //cursor
http://www.flashkit.com/soundfx/Interfaces/Zings/Reminder-public_d-291/index.php //message
http://www.flashkit.com/soundfx/Interfaces/Zips/idg-zip3-intermed-2896/index.php //transition
It is a run-time option, It has been tested by the community, thanks to all the testers:
dekkit, jolek, RivalK93, svotib, TnA, Tupkaveli, VeditaBR.
and a HUGE thanks to @sp193 for all his help; contributing code, advice and trouble-shooting and making changes to the PS2SDK that support this feature.
Test-Build (sfx and boot sound are enabled by default in the test build for sake of ease they are off by default in PR)
http://frd.li/91ced1b1e263d82802cb41a4fb29610b

So? Is it going to be merged?
On another note: It already got merged into the OPL Daily Builds!

Sounds good to me! 👍

Really nice choice of subtle sounds - well done!

@KrahJohlito, there is a problem with the covers using a custom theme in the last
sfx test build.
Navigating through the game list some covers disappears forever, and sometimes
some covers appears repeated in a different game.
This seems that do not happens in the previous sound test build v1.2.
Tested with Bumblebee and Spider themes.
Best regards.

I've located the problem, I will fix it soon and add a commit to the PR.
Thank you sir

@ElPatas1
Fix for game ART in custom themes.
It was also found that for per theme (external) sfx having a theme loaded with a short boot sound and switching to one with a long boot sound would result in the difference in duration being played back at theme change as it was trying to occupy the same amount of memory as the shorter sound. This has also been fixed. Thanks to @Tupakaveli for spotting this.
I will add the commit to the PR when you've had a chance to test this build and give it approval.
(no rush)
Thank you.
Fix-Build
http://frd.li/30f9e45a5ac6bcc19fef0b6567c9a06e

@KrahJohlito: THX for the update!
@Tupakaveli: Wow! Interesting spoting, haha! :) Great job finding it and great Job Krah for finding the cause and fixing it!
@El_Patas1: Yes, please take your time! You had been 'chosen', specifically because you can compile them and because you test these things sooo thoroughly!
The 'firewall' (alpha/beta-testers who found most bugs) have certainly faund most things, but probably not all! Even once you tested and approved it, we will probably still find some issues, but it's still at a stage where it is 'ready for the end-user'! :)
Take your time! :)

@ElPatas1
I tested the current ifcaro beta build and the HDL server issue of unloading and trying to launch a game is present here also (console locks up at loading config), I am not sure of the cause but it is not a problem caused by this PR.
HDL server seems to have a few issues with its current code, only thing I could suggest is to force an exit at unload so OPL can reinit properly but that's more of a work-around.
Yes, sorry I was just doing a basic compile. Here is a PADEMU build if you wish to make sure it is still functioning correctly.
http://frd.li/6c76bf727c385bffaf4e67599aa2c8ad
Thanks

Yes, you are right, in the r1200 the freeze happens after unloading the HDLServer,
is strange, this problem was fixed long time ago and now happens again.
I continue testing the covers, and when i have time i search in which build
started again this problem.
Best regards.

New merge incoming? :)

@ElPatas1
I've updated the pull request to include the fix for ART in custom themes that I broke just before I made the PR, since the HDLServer issue is not related to this PR perhaps a new issue can be opened about it and this can go through?
@Jay-Jay-OPL
The folder for custom sfx was changed just before the pull request to better match the existing theme folders ie device/aspect so 'THM/thm_nameoftheme/sound' is what you're looking for.
It was here in the code
https://github.com/ifcaro/Open-PS2-Loader/pull/157/files#diff-d7645d842acf6db941b3a2dce2c0ffe4R1110
the whole time, all you had to do was look.
All the best.

@KrahJohlito, i tested previous OPL stable versions and the freeze happens also while starting
a game after unloadind the HDLServer, nobody noticed it never.
Then yes, i think is better separate this problem from this pull request.
Please eliminate your fix of saving the config before the initialitation of the HDLServer
from the code of this pull request as do not fixes really the problem, and also eliminate
the string of  "Settings must be saved before continuing" from the "src/lang.c" file
and i merge it.
Best regards.

THX @Krah!
You can still keep a copy of it somewhere, but like @ElPatas1 said, it is neither fixing the root of the problem (even tho', it is a half way working workaround), nor is it caused by the SFX-Code, so it is good to rather keep it for a separate PR, or fix the root of the issue. :)


Create circled Button

Opened by @jvaclavik

(Original issue https://github.com/kiwicom/universal-components/issues/257)

Done: https://github.com/kiwicom/universal-components/pull/261
(working also in Margarita)


Support for DOM events on the player

Since the player is an iframe, it might be useful to enable listening to the native DOM events such as click and focus to avoid the iframe focus detection workarounds.
For example, one such use case could be if the developer wants to expose additional controls somewhere within the app once the video is focused.
I'm suggesting this assuming it would be easy to do in the same manner that the other events are exposed from the iframe (using the  Window.postMessage() method).
Thoughts?

Hi Miro,
Sorry for the delay.
This is indeed an interesting idea. What are the events that you would like to see transmitted?

@olivierapivideo no problem, thanks for taking time to address this! 😊
focus and focusout would serve our purpose well, as described in the use-case above.

Hi Miro,
The version 1.2.6 is released, you can now listen to the following events: useractive, userinactive, mouseenter, and mouseleave.
Please let me know if it's ok for you.


How to check for error in Swift 3

Prior to swift 3, I was checking for any kind of error like this:
func audioPlayer(_ audioPlayer: AudioPlayer, didChangeStateFrom from: AudioPlayerState, to state: AudioPlayerState) {
    if state == .failed(.foundationError(nil)) {
         // handle error
    }
}

But after converting to swift 3, the nil always gives a compile time error. How to check for failed loading(regardless of the reason)?

if case .failed = state should do the trick

Worked. Thanks.


KAFKA-5846; Used Singleton NoOpConsumerRebalanceListener in the Kafka…

…Consumer#subscribe call.

I haven't removed the internal class 'NoOpConsumerRebalanceListener', as it might conflict with the existing users who's using it.

retest this please

@ijuma
call for review.

retest this please

@ijuma @tedyu
Could you please review / merge the changes ? If there any additional changes required, please let me know.


Weird equation compiling error

The following equation does not compile when I render my post:
\begin{align}
\log L(\mathbf{\theta}|\mathbf{x}) &= \mathbb{E}_{P(\mathbf{z}|\mathbf{x}, \boldsymbol{\theta})}\log \Big(L(\mathbf{\theta}|\mathbf{x},\mathbf{z})\Big)  - \mathbb{E}_{P(\mathbf{z}|\mathbf{x}, \boldsymbol{\theta})}\log \Big(P(\mathbf{z}|\mathbf{x}, \boldsymbol{\theta})\Big).
\end{align}

Interestingly, the latex code does render in my IDE.

Also interesting, if I remove either of the \mathbb{E}_{P(\mathbf{z}|\mathbf{x}, \boldsymbol{\theta})} terms,  the equation compiles.

It renders for me, so it is probably an interaction with your content management system (CMS).  Is any of the un-rendered equation showing in italics, for example?  Markdown renderers often use underscores (_) to delimit italics, do if {P(\mathbf{z}|\mathbf{x}, \boldsymbol{\theta})}\log \Big(L(\mathbf{\theta}|\mathbf{x},\mathbf{z})\Big)  - \mathbb{E} is in italics (the stuff between two underscores), that might be the problem.
Otherwise, you should look at the page source (the actual page source in the browser, not your editor version), and check that there are no HTML tags in the middle of the math that have been inserted by the CMS.  That would be the other reason for the expression not being processed.

Yes, P(\mathbf{z}|\mathbf{x}, \boldsymbol{\theta})}\log \Big(L(\mathbf{\theta}|\mathbf{x},\mathbf{z})\Big) - \mathbb{E}{P(\mathbf{z} is in italics . Is this solvable?

Try using \_ rather than just _ in the two places they occur.
I don't know what CMS you are using, but if you do
$$
\log L(\mathbf{\theta}|\mathbf{x}) = \mathbb{E}_{P(\mathbf{z}|\mathbf{x}, \boldsymbol{\theta})}\log \Big(L(\mathbf{\theta}|\mathbf{x},\mathbf{z})\Big)  - \mathbb{E}_{P(\mathbf{z}|\mathbf{x}, \boldsymbol{\theta})}\log \Big(P(\mathbf{z}|\mathbf{x}, \boldsymbol{\theta})\Big).
$$

does it work (note the removal of the & in addition to changing from \beign{align}...\end{align} to $$...$$).
If that works, then it looks like the CMS only protects math within dollar sign delimiters, not \begin...\end delimiters.  In that case, you might be able to use
$$
\begin{align}
\log L(\mathbf{\theta}|\mathbf{x}) &= \mathbb{E}_{P(\mathbf{z}|\mathbf{x}, \boldsymbol{\theta})}\log \Big(L(\mathbf{\theta}|\mathbf{x},\mathbf{z})\Big)  - \mathbb{E}_{P(\mathbf{z}|\mathbf{x}, \boldsymbol{\theta})}\log \Big(P(\mathbf{z}|\mathbf{x}, \boldsymbol{\theta})\Big).
\end{align}
$$

to do it.
The other alternative would be to modify the plugin that you are using to handle \begin...\end delimiters as well.  You might need to contact the plugin author about that.

Ok perfect! Yup, adding the \ works. So in the end, the following modified latex compiles perfectly:
$$
\begin{align}
\log L(\boldsymbol{\theta}|\mathbf{x}) &= \mathbb{E}\_{P(\mathbf{z}|\mathbf{x}, \boldsymbol{\theta})}\log \Big(L(\boldsymbol{\theta}|\mathbf{x},\mathbf{z})\Big)  - \mathbb{E}\_{P(\mathbf{z}|\mathbf{x}, \boldsymbol{\theta})}\log \Big(P(\mathbf{z}|\mathbf{x}, \boldsymbol{\theta})\Big).
\label{eq:post-variation-inequality-exp}
\end{align}
$$
``


Disparity to depth

Hello,
The network outputs the disparity between the left and right images. I would like to estimate the depth. The formulae for depth is :
depth = baseline * focal / disparity
I'm not able to get good results. Is there a script for calculating the depth ?

Hi, the equation is correct. you can use this script to generate the point cloud https://github.com/mileyan/pseudo_lidar/blob/master/preprocessing/generate_lidar.py
Please let me if you have any questions.


base: Adding modulo intlv option to AddrRange

Added a new constructor to AddrRange which enables interleaving across any number of channels using the modulo operation instead of the traditional hashing. At this point the functionality is there but I still need to clean it up and add comments as well as fix some of the tests that were added. These changes shouldn't affect functionality of any existing work.

Basic idea is as follows:

User specifies granularity by passing in "lowest_modulo_bit", so if the user wanted to interleave every 64 bytes this number should be 6

The user also passes in how many channels we are interleaving in the "modulo_by" parameter

From here to check if an incoming address is in the addr range we ignore the first "lowest_modulo_bit" number of bits. Then modulo by the value passed in to "modulo_by" and check if this matches intlvMatch.

The main difficulties came in trying to removeIntlvBits and addIntlvBits because all (64 - lowest_modulo_bit) bits are used for interleaving

So instead of just using a mask to move around the intlv bits we divide. Whatever bits are lost in the divide we know wont matter as they were already used to find the right channel.

By using this divide we end up with a sequential address range with the size of the total AddrRange/number of channels

Added support for holes in AddrRange using the new modulo based interleaving constructor. A list of AddrRanges can be passed in as "holes" which this AddrRange does not contain.

I haven't had the time to add tests yet, I've done some basic testing with some traffic generators and it works. Would like to get some feedback before I take the time to write and annotate my tests.
The modulo interleave tests I wrote before still need comments and some tuning.

I can take a closer look and give feedback soon.  I have two high level questions out of curiosity to see what this can enable.

Does this allow for odd number of memory controllers? (e.g., could I have 6GiB of memory with 3 memory controllers?)
Does the "holes" support allow for something like an address range from 0GiB - 5GiB with a 1GiB hole from 3GiB to 4GiB (i.e., X86's memory layout)?

Yes, theoretically this should support any number of memory controllers with any size AddrRange, of course it wont divide perfectly even if the user gives it a Range of 8 GiB between 3 channels. But yes, odd number included!
Yes, that was the exact goal for enabling these holes.

As an additional note apologies for the random meaningless changes, I tried using clang format to help with formatting but it ended up changing some other stuff which I have not been able to go through and change back yet, but I will hopefully be able to work on that some tomorrow.

I wasn't able to get to this last week, but I want to let you know I haven't forgot about this PR and I hope to test it out this week.
@powerjg @BobbyRBruce I think this can help finally fix the x86 "hole" problem in stdlib.  (Formerly known as gem5-11 on the old JIRA).

I think ideally this sounds like a great idea considering right now I just have an if statement to check if it ModuloAddr or not. But I'm unsure of how much time this would take to implement

I am currently trying to test it with the X86 board wby adding support for this constructor in ChanneledMemory. My initioal test was just in SE mode using traffic generators and not using the standard library. I can forward that script along if you'd like, or I can forward along the X86Board script once I finish testing it

I am currently trying to test it with the X86 board by adding support for this constructor in ChanneledMemory. My initial test was just in SE mode using traffic generators and not using the standard library. I can forward that script along if you'd like, or I can forward along the X86Board script once I finish testing it

I can wait until you finish testing it.  Thanks again,

I haven't forgotten about this, still trying to get this to work. I'm working on changing some of the parts of the X86 board to work with this address range. Will update when I've found the solution.

With this commit you should be able to run things in FS mode and with kvm and in the standard library. I added a standard library component called DIMM_DDR5_4400_x86_Holes that can be used for testing. I also removed the panic from the x86 board and still need to add a warning there.  I ended up needing to make some changes to the kvm cpu to get it to work.
I left my changes on the example x86-ubuntu-run-with-kvm.py as a test for it.
My next steps are to over haul the AddrRanges to have a BaseAddrRange class that ModuloAddrRange can inherit.

I think the AbstractMemory class is what holds the AddrRange of the memory, but I'm not sure if its possible to add support for multiple ranges there, and don't think I have the expertise to do that in time for the release. I think if we want to look at it again after the release I'd be happy to take a quick look then and see if it seems possible/if I think i can do it.

But if you have two ranges (0GB...3GB and 4GB...5GB) you are forced to either give up hashing or you get restricted to very specific sizes, e.g., channels with interleaving can be no more than 1GB each so they divide 3GB.

How come? I am not familiar with the interleaving code and I am only picturing this as an image. Where is the 1GB limit coming from?

Having multiple ranges is also not supported by stdlib. Here is a quote from @powerjg on my PR when proposing this exact idea for stdlib:

This isn't possible in gem5 in general. You can't interleave with multiple memory ranges. The only way I know to hack around this is to create a special memory controller which maps the other range. Otherwise, you would end up with * controllers, which is (also) unrealistic.

Well also having AddrRanges with holes is not supported :)
It's just a matter of implementing things.
I am just scared of complicating such an important class like AddrRange which IMHO it should be as simple as possible. We should (but I understand I might not be getting the full picture) either use a list/vector of ranges to model holes, or to push the complexity into a new class


How to use with NuxtJS ?

How to use with NuxtJS ? I try to use plugins, if (browser) but no ones works.
Someone can help me ?

Currently Splitting is dependent on browser methods for creating elements. We hope to support browserless/static generation, but it require some big rewrites. See #28 for where we're working to resolve this.
#26 #30 may also be relevant.


Add a couple more token fixed symbols

To support :: and =>

Arrow i like, both thin and fat.
Should we just make : repeatable?


MAHOUT-1888: [WIP] Performance Bug with Mahout Vector Serialization

Do not merge, this is still WIP.


DbToolsStorage filename strategy

I'm interested in this feature, is it implemented? I'm a bit lost because it's marked as closed but no other information. Let me know :)

This was closed because we were targeting an MVP and didn't want to pollute our task list with potentially useless features. We wanted some user feedback in order to priorize tasks and features.
Originally, the idea of having a file strategy was to allow users to use their own directory structure for dumps, along some default implementations, such as <YEAR>/<MONTH>/ for example.
Further we'd like to have this hidden behind an FilenameStrategyInterface or such for allowing users to implement their own.
Is that what you'd need ?

I understand now, it's exactly what I need.
The use case is: I have a project with a global backup mechanism in place, but it needs the file to follow a specific naming convention.

Understood ! That's indeed a use case we would want to support as well.
OK, I leave this issue opened, we should be able to work on this within the next week, please do not hesitate asking for a status update.

@jrmgx feature is now implemented and will be part of the next release.
In order to use it, you need to ether extend MakinaCorpus\DbToolsBundle\Storage\AbstractFilenameStrategy if don't need to change the root storage directory, or implement MakinaCorpus\DbToolsBundle\Storage\FilenameStrategyInterface if you need it to be different (if you have a single database, you don't need to fully implement the interface, but you may simply change the default storage path in configuration instead).
One important thing, the final directory will always be the concatenation of the getRootDir() and the generateFilename() methods. Default getRootDir() implementations suffices the root directory with the connection name as a folder, if you want to change this behavior you need to implement fully the interface.
Once done, you need to register your custom implementation using this:
# file: config/packages/db_tools.yaml
db_tools:
    storage:
        filename_strategy:
            my_dbal_connection_name: App\DbTools\Storage\MyCustomFilenameStrategy

The strategy can be a stateless class with no constructor arguments, case in which you don't need to register it into the container and let the extension will do it for you, or it be configured using the container, case in which you can replace the class name by the service identifier in configuration (since it's the best practice to leave the class name be the service identifier, it should not change the configuration in the end, but if you have multiple connections and need to register more than once the same class, you can name the services, it'll work).


event json support and some tweaks

Hey @xadhoom :)
Thanks for the contribution!
It looks good overall, and I'm sorry to bother you: but is it possible to close and split this pull into different pull requests according to what each of them do? Applying different patches in different pulls (for different things) will help in tracing changes and reviewing the code.
Thanks in advance!

sure, going to close and reopen as requested. I'll remove the messages for stop, since it makes no sense after all.


chore(examples): update yarn.lock

coverage: 97.236%. remained the same
when pulling 7b487ad10d984224082193c6c9fd6a2d3f49b179 on examples-lock-file
into<PHONE_NUMBER>b32d5626e81b4e9a26ab46c9febcbc on master.


chore(LocationComponent): provide convenience constructor for Vector3i

chore: prefer set() over new instances in copyFrom()

umm looks like it seem to work fine in multiplayer?


fix: optimism gas refunds

Prior to the Regolith update, deposit transactions should not receive gas refunds as ETH. For all other cases, non-deposit or post-regolith gas refunds are handled as in Mainnet.

I am a bit confused, why test_consume_gas_with_refund is failing. This should now exactly match the bevior before the API changes: https://github.com/bluealloy/revm/blob/b28c154759934e3577f959f1c237e5210c201777/crates/revm/src/handler/optimism.rs#L84-L89
and my full OP block execution tests with this PR pass while I was getting receipt mismatches before.

cc @clabby

Actually, the test was wrong.
With #888, the optimism tests were simply copied over, but before that, handle_call_return did not include the refund calculation, which happened in calculate_gas_refund. Now both happen in first_frame_return and the tests need to be adapted.
To make this a bit clearer, I also renamed handle_call_return to first_frame_return, which is the actual name in the handler.

Makes sense! would want to check it up as I messed it up, but it will be merged today. Thank you!


feat: update version guage metrics

Signed-off-by: Gaius<EMAIL_ADDRESS>
Description

Update version guage metrics.

Related Issue

Motivation and Context

Screenshots (if appropriate)
Types of changes

[ ] 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 change)
[ ] Documentation Update (if none of the other choices apply)

Checklist

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.

Codecov Report

Merging #1927 (6fa2449) into main (100887f) will increase coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1927      +/-   ##
==========================================
+ Coverage   43.12%   43.17%   +0.05%
==========================================
  Files         132      132
  Lines       16983    16983
==========================================
+ Hits         7324     7333       +9
+ Misses       9108     9098      -10
- Partials      551      552       +1

Flag
Coverage Δ

Object-compatibility-e2etests
?

e2etests
?

unittests
43.17% <ø> (+0.05%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

client/daemon/peer/piece_manager.go
52.99% <0.00%> (-0.41%)
:arrow_down:

...ent/daemon/peer/peertask_piecetask_synchronizer.go
54.12% <0.00%> (+3.66%)
:arrow_up:


Azure-IoT-Sdk for C release 2020-12-09

Describe the pull request

What does your PR fix? Fixes #
It updates references of our ports to reflect our new release done on 12/09/2020.

Which triplets are supported/not supported? Have you updated the CI baseline?

Does your PR follow the maintainer guide?

Hi @ewertons
Thanks for your PR.
Have you tested these features in this PR?

Thanks @NancyLi1013 ! Fixed. Yes, we've tested these changes.

LGTM now, thanks for your PR @ewertons.

Looks great, thanks!


🐛 Update packages to get project to run

@Wajeed-msft Can you pull this down and verify please?

@spjpgrd - What errors were you getting when you tried latest code? Is it failing while trying out something specific?
@clearab - I just did the clean build with latest code and I don't see any build error.

@Wajeed-msft — Heads down on a project right now, so just letting you know I'll get errors captured later in the day on Friday 👍

@Wajeed-msft @clearab @spjpgrd  - just checked on this and verified. For me it didn't fix ALL of the build errors, but if fixed two of the three, so much appreciated! I think there are some issues with my local versions of things like npm, so I'll be pulling in a hot-fix for the last error shortly.
Thanks again for working to update this!


Fail to deploy a Node.js project to a Linux function app with error "Service Unavailable"

OS: Win 10
Build Version: 20191112.1
Repro Steps:

Create a Linux function app with Premium hosting plan and node.js 10 template.
Create a Linux project with JavaScript language and Http trigger template.
Debug --> Deploy.

Expect:
Succeed to deploy the Node.js 10 project to the Linux function app.
Actual:
Fail to deploy with error "ServiceUnavailable".

More Info:

This issue does not reproduce when deploying a project to Windows function apps.

Could be related to https://github.com/microsoft/vscode-azurefunctions/issues/1682

I can't repro this anymore. Could have been fixed on the platform side or could have been fixed with 1682


CI and VCS provider for GitLab Server

Hi,
Firstly many thanks for plugin.
I am using GitLab server. Could you please add ci and vcs providers for GitLab server?

Happy to accept a PR!
You just need to find out the relevant GitLab env vars and map them here
https://github.com/YOU54F/cypress-plugins/blob/fadab5409bdcf16e999b63c11471b0e9d34b3a7c/cypress-slack-reporter-old/src/slack/slack-alert.ts#L725-L788
Just dropping these here for anyone that wants to pick it up

https://docs.gitlab.com/ee/ci/variables/
https://about.gitlab.com/blog/2021/04/09/demystifying-ci-cd-variables/


Error: Cannot read property 'replace' of undefined

I have a functioning zint installation. I have cloned your repo and npm installed it as per instructions.
I have fed a simple .csv file in (part1, location1 etc). Your script generates the requested output directory with an index.html file and an 'images' directory but fails with the following error
Error: Cannot read property 'replace' of undefined
The index.html file is correctly formed and the 'images' directory is correctly created but it contains no files.

Thanks for reporting it. I have added a backtrace to error message, could you please try again and post it?

Having your csv would also be useful (not the whole thing, 5-10 lines).

Thanks for quick response. I have run again with backtrace;
Error: Cannot read property 'replace' of undefined
TypeError: Cannot read property 'replace' of undefined
at escape (/Users/johnpateman/Kicad/partkeepr-label-gen/index.js:139:6)
at saveHTML (/Users/johnpateman/Kicad/partkeepr-label-gen/index.js:147:6)
at main (/Users/johnpateman/Kicad/partkeepr-label-gen/index.js:163:4)
at /Users/johnpateman/Kicad/partkeepr-label-gen/index.js:170:2
at Object. (/Users/johnpateman/Kicad/partkeepr-label-gen/index.js:171:3)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
FYI I am running this on a Mac - OS X 10.11.
I can't attach my .csv file (not permitted) but it is as follows (and was typed in Atom so shouldn't have any funny line endings or anything)
Test1, Rack0
Test2, Rack1
Test3, Rack2
Test4, Rack3
Test5, Rack4
Test6, Rack5
Test7, Rack6
Test8, Rack7

The csv file is probably missing one line which should be generated by partkeepr. In particular, the script looks for columns titled name and storageLocation.name (see here). The error message could be more informative — that's on me. Anyway, you file should look like this:
name,storageLocation.name
Test1, Rack0
Test2, Rack1
Test3, Rack2
Test4, Rack3
Test5, Rack4
Test6, Rack5
Test7, Rack6
Test8, Rack7

Thank you - will try that.
I had some minor issues exporting from PartKeepr - the export function generated a 'blob' and not a clean .csv with a lot of extraneous lines so I just stripped them all out leaving the bare text.
John Pateman
Sent from my iPhone

On 14 Nov 2016, at 06:19, Vlad Ivanov<EMAIL_ADDRESS>wrote:
The csv file is probably missing one line which should be generated by partkeepr. In particular, the script looks for columns titled name and storageLocation.name (see here). The error message could be more informative — that's on me. Anyway, you file should look like this:
name,storageLocation.name
Test1, Rack0
Test2, Rack1
Test3, Rack2
Test4, Rack3
Test5, Rack4
Test6, Rack5
Test7, Rack6
Test8, Rack7
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Thank you - adding back in the name, storageLocation.name solved the problem.
I had some slight problems exporting from PartKeepr - it returns a 'blob' file with a lot of extraneous formatting rather than a bare .csv. I stripped quite a lot out this out but obviously to much! Copying and pasting works fine.
This looks a really useful utility - thank you for releasing it and thank you for your helpful support.

Glad I could help. Regarding the partkeepr export — it used to work fine.
Note that having quotes and backslashes in csv is fine and should be
handled as well. So are additional columns — they will be skipped.
14 нояб. 2016 г. 13:44 пользователь "John"<EMAIL_ADDRESS>написал:

Thank you - adding back in the name, storageLocation.name solved the
problem.
I had some slight problems exporting from PartKeepr - it returns a 'blob'
file with a lot of extraneous formatting rather than a bare .csv. I
stripped quite a lot out this out but obviously to much! Copying and
pasting works fine.
This looks a really useful utility - thank you for releasing it and thank
you for your helpful support.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/resetnow/partkeepr-label-gen/issues/1#issuecomment-260303676,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB9j5wyHdteNQWgBZQz2QhlH0fIcU2nBks5q-DuHgaJpZM4Kwv0B
.


Enable opensource images multi-platform building

@ganisback

@ganisback @SeanHH86 please help review

@MasonXon the fix looks good, just a little comment


jenkins: dependency_pipeline job is using close to 100Gb of space

Spun out of https://github.com/adoptium/infrastructure/issues/3285#issuecomment-1957046869:
94298548	dependency_pipeline
282769152	build-scripts/jobs/jobs/jobs

I suspect the dependency pipeline job is not set to discard old artifacts. Can we implement some form of cleanup policy on those or is there a reason that it needs to use that amount of space?

I have configured that job to Discard old builds, Max days to keep a build is 30 days, number of builds to keep as 10.

I have configured that job to Discard old builds, Max days to keep a build is 30 days, number of builds to keep as 10.

Thanks for the quick fix on this - it's down to using 3Gb now by the look of it - good to hear there wasn't a strong reason to retain them :-)
I've now got 679Gb on the jobs file system so I feel we'll been fine for a while!


UI Masks should allow fading

Hi guys, this is a suggestion i've come up with after avoiding using Masks for the sole reason that they're highly pixellated.
This is an issue from the forum: https://forum.playcanvas.com/t/ui-mask-pixelated/11346
Something similar happens with what i'm trying to implement, you can see here:

I have this setup in which the cursor is this shape, and the background image of the shape (inside a Mask with the same shape image) scrolls in a direction, making for a pretty cool effect.
You can see how the image that is being used as the Mask comes up really pixellated, it would be amazing if we could have UI Masks that actually allow fading so this pixellated effect doesn't happen.
Note: On some screen resolutions it is less appreciable but it's still there.

Update:
So I don't know if Masks are not intended to be used for things like this, but I found a neat workaround since you guys made it possible for UI elements to use custom Materials.
You make a New Material, you set the Opacity texture to the shape you want to mask the Image as, and then it just works, smooth as hell!

I'll now post this solution on the forum in case anyone runs into the same issues. UI Masking is really good for stuff like a scrollview which are rectangular shaped, but anything complex causes these pixellated artifacts - and maybe it's just the way it should be.
In any case, lemme know!

@sakidev - thanks for the update - the masking uses the stencil buffer and with stencils pixels are a either stenciled or not - and this can lead to pixelated if the edge is not exactly horizontal or vertical - the workaround you found: using a material with opacity map is an efficient solution - which is probably the recommended method for your use case.

UI Element Image does not allow materials, only textures.  What am I missing here?

UI Element Image does not allow materials, only textures. What am I missing here?

There's an API for it here: https://developer.playcanvas.com/en/api/pc.ElementComponent.html#material

How did I miss that!  I'm sorry for wasting your time :(


Apply automated validation pipelines for external dependencies

AS InfoSec
I WANT automated pipelines to be applied for external dependencies
SO THAT vulnerabilities could be detected and fixes deployed ASAP
Acceptance Criteria

[ ] Separate GitHub Actions pipelines for all Components
[ ] Separate GitHub Actions pipelines for all Modules
[ ] Pipelines can be called out manually separately
[ ] ~Pipelines can be called out manually to complete all pipelines one-by-one in a row~
[ ] Pipelines are called out as scheduled cronjobs at 00:00 daily
[ ] Pull requests are automatically created for all vulnerabilities and suggestions
[ ] Configure pipelines per actual requirements of Components / Modules

Technical requirements

[ ] GitHub Actions Snyk pipeline
[ ] GitHub Actions SonarCloud pipeline
[ ] GitHub Actions Dependabot pipeline

Scope

[ ] All pipelines run on dev branch
[ ] ~All pipelines run on test branch~
[ ] ~All pipelines run on stage branch~
[ ] ~All pipelines run on main branch~

Components

[ ] https://github.com/buerokratt/Ruuter
[ ] https://github.com/buerokratt/DataMapper
[ ] https://github.com/buerokratt/Resql
[ ] https://github.com/buerokratt/TIM
[ ] ~https://github.com/buerokratt/Turvis~
[ ] ~https://github.com/buerokratt/XTR~

Modules

[ ] https://github.com/buerokratt/Chat-Widget
[ ] https://github.com/buerokratt/Buerokratt-Chatbot
[ ] https://github.com/buerokratt/Analytics-Module
[ ] https://github.com/buerokratt/Service-Module
[ ] https://github.com/buerokratt/Training-Module

Note: Ruuter Has a problem in compiling tests in Git Actions, waiting alar insight on it


Error then crash

I keep getting this when launching the exe, then it crashes:
Google API key provided.
Trello app key provided.
Forwarding messages.
Logging enabled.
Unhandled Exception: System.AggregateException: One or more errors occurred. ---

System.Net.WebException: The remote server returned an error: (401) Unauthoriz
ed.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchron
ization)
--- End of stack trace from previous location where exception was thrown ---
at Parse.Internal.InternalExtensions.<>c__DisplayClass71.<OnSuccess>b__6(Tas k t)    at System.Threading.Tasks.ContinuationResultTaskFromTask1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Parse.Internal.InternalExtensions.<>c__DisplayClass71.<OnSuccess>b__6(Tas k t)    at System.Threading.Tasks.ContinuationResultTaskFromTask1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Parse.Internal.InternalExtensions.<>c__DisplayClass71.<OnSuccess>b__6(Tas k t)    at System.Threading.Tasks.ContinuationResultTaskFromTask1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Parse.Internal.InternalExtensions.<>c__DisplayClass71.<OnSuccess>b__6(Tas k t)    at System.Threading.Tasks.ContinuationResultTaskFromTask1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Parse.Internal.InternalExtensions.<>c__DisplayClass71.<OnSuccess>b__6(Tas k t)    at System.Threading.Tasks.ContinuationResultTaskFromTask1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceled
Exceptions)
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotifica tion)    at System.Threading.Tasks.Task1.get_Result()
at NadekoBot.Commands.ServerGreetCommand..ctor() in C:\Users\Master\Documents
\Visual Studio 2015\Projects\NadekoBot\NadekoBot\Commands\ServerGreetCommand.cs:
line 37
at NadekoBot.Modules.Administration..ctor() in C:\Users\Master\Documents\Visu
al Studio 2015\Projects\NadekoBot\NadekoBot\Modules\Administration.cs:line 19
at NadekoBot.NadekoBot.Main() in C:\Users\Master\Documents\Visual Studio 2015
\Projects\NadekoBot\NadekoBot\NadekoBot.cs:line 105

You must supply proper Parse ID and key credentials. They are mandatory since the last release.
Taken from the readme:
**For ParseID and ParseKey, you need to register on http://www.parse.com, get those values and create an app with these 3 classes: 'CommandsRan', 'Requests' and 'Stats' in order to make the logging work. **
Here is an image explaining where to find the 2 things you  need.
http://i.imgur.com/bXsL19z.png
If you still have issues, join the nadekolog discord server (link is at the top of the readme)

Awesome! That worked. Thanks!

Will you also push the latest music stability update to the beta release. (the pre-compiled one)

that means you didn't supply proper bot mention id inside credentials.
Start your bot and do .uid @Psefwolfbot copy that id and put it inside <@X> where it says bot mention in the credentials like this: <@12312332131>

here is an image  http://i.imgur.com/Ix22iLY.png

Is there a way to disable the auto response when you PM the bot? I don't want my users knowing all the commands & abusing them.

No only if you are compiling it yourself

Right, what would I change to forgo the 'help PM' function?

Main class

Please create a new ticket for a new issue. The best way to get answers is to join our discord server


make sqlite fail?

macOS 10.15
xcode 11
cd ~/.emacs.d/elpa/develop/emacsql-sqlite-20190727.1710/sqlite
make

log: sqlite3.c:20071:24: error: unknown type name ‘time_t’; did you mean ‘size_t’?

This looks like a broken C toolchain on your system. The SQLite source
includes the standard header time.h which defines time_t. Your C
compiler must be able to compile this program without that error:
#include <time.h>
#include <stdio.h>
int main(void)
{
time_t t = time(0);
printf("%lu\n", (unsigned long)t);
return 0;
}
Using something like this:
$ cc example.c
If it can't, then it's definitely a problem with your toolchain.

#include <time.h> #include <stdio.h> int main(void) { time_t t = time(0); printf("%lu\n", (unsigned long)t); return 0; }
it is error when i try run cc test.c

test.c:11:5: error: unknown type name 'time_t'; did you mean 'size_t'?

Yeah, your C toolchain is broken. You'll have to figure out how to fix
that before using EmacSQL. Maybe try searching for that error message
along with the version of your operating system, or the name of wherever
you got your compiler. Or maybe just reinstall the compiler. Ultimately
that small example C source I gave you must compile and run cleanly. Use
it to test your C toolchain as you try to fix it.


removed UUID from SchemaValidator

Modified the handler to get the swagger file from message context.

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


Aquilon 1.12.58: /system/archetype/os in object template has the wrong type

In Aquilon 1.12.58, the broker still generate /system/archetype/os as a string according to the old schema. It was changed to a dict one year ago for the reasons explained in https://github.com/quattor/template-library-core/pull/142. The broker should adapt to the new schema, potentially with an option to ease the transition at MS.
This is required for the template library support in Aquilon (see https://github.com/quattor/template-library-core/pull/177). This is a subissue for #90.

hmm.. When quattor/template-library-core#142 was introduced it was explicitly called out that this did not require a change to aquilon because this was set in templates. Now it appears I wasn't aware that @jrha was using an older version of aqd which predates 3b82d80015 that should have blocked
https://github.com/quattor/template-library-core/pull/142 from being merged.
So I think we need to go back and undo #142.

I've opened quattor/template-library-core#181 to revert the breaking changes from quattor/template-library-core#142, reverting the entirety of quattor/template-library-core#142 would be overkill.


RTU server dies when request from an unregistered unit

Device::Modbus::RTU code in start method and under:
my $resp = $self->modbus_server($req_adu);
should be protected for non-response scenario. I.e request_for_others called
Ex.
if(defined $resp) {
my $resp_adu = $self->new_adu($resp);
$resp_adu->unit($req_adu->unit);
$self->log(4, "< " . Dumper $resp_adu);
    # And send the response!
    $self->write_port($resp_adu);
}

The issue you reported is now fixed and a new test file has been added. The new distribution is now in CPAN. Thank you for finding this issue!


correct a mistake

you can't leave off target as it's a mandatory field;
docker service create --name my-web --publish published=8080,mode=host --replicas=3  nginx
invalid argument "published=8080,mode=host" for "-p, --publish" flag: missing mandatory field "target"
See 'docker service create --help'.

As the original author points out, with --publish you always need to specify the port that you want to open in the container. You use either --publish <port> or --publish target=<port> for this.
The terminology is a bit confusing but

published=<port> refers to the port on the host
target=<port> refers to the port on the container

So I can confirm that this change is correct. Let's ship it.


Edit hdinsight-hbase-analyze-twitter-sentiment.md

Edit complete. In addition to suggestions in text, sending this to Jonathan:
Lines 682: I added the semicolon because you used it everywhere else: The HBase table name is "tweets_by_words"; …please verify that this was the right thing to do ;)
Line 975: Changed tweetStream to twitterStream (twitterStream is what is shown in the code)

Hi @ClarityQueen, 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 (v-diree). 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;


Remove "Calculate" button on Results page

Is your feature request related to a problem? Please describe.
The calculate button is confusing and annoying. Results should be automatically recalculated when need upon refreshing.

Tasks

[ ] Define function on Server that checks reliably if a result needs recalculation
[ ] Run check before loading result data from the database


Interface Updates

Adjusts backgrounds to use systemBackground and system label colors, enabling dark mode.
Removes Large Titles
Adds titles to tab bar along with system icons.

Brilliant work! Embarrassingly I wasn't Watching this repo so I didn't notice it until now. 😊
If you have the time to finish up #38 I would really appreciate that. Autumn is when we mark dead trees for replacement in Winter so the map will help us work out where everything is for checking.


Error when trying to use a let binding in the quantifier as part of a trigger, fixes #121

@Chris-Hawblitzel I'm going to land this, but please have a look when you get the chance. Thanks!


Defining a lambda in a class member emits incorrect "self" warning

Environment data

Language Server version: <IP_ADDRESS>
OS and version: OS X 10.14.6
Python version (& distribution if applicable, e.g. Anaconda): 3.7.3 (Anaconda)

Expected behaviour
No warning should be issued when defining a lambda function as the value of a class member.
Actual behaviour
When defining a lambda as a class member, an incorrect warning is issued that the function should have "self" as the first argument:
Method '<lambda>' should have 'self' as first argument.
This also occurs if the lambda is a member of a member of a class.
Logs
Code Snippet / Additional lnformation
class TestClass:
    FOO = lambda x: 'foo'

Yep, we need to add IsLambda to IPythonFunctionType, then check that it's not a lambda in CheckValidFunction. Lambdas are just wrappers around functions in our parser, so the scope that lambda appears to exist in is the class scope, so is getting picked up as one and linted.

There is IsLambda() extension on IPythonFunctionType I believe.

That'd work, yeah. Funny that it just checks the function name being <lambda> though...

Thanks for the quick fix guys!


Fix notification bell count and UserInfoNavigation

@jlhughes the AgentAuthService logic exists on the foam side, along with the junctions and relationships that pertain to the functionality.


ENH: add Normal Inverse Gaussian (nig) distribution to scipy.stats (distributions.py)

The Normal Inverse Gaussian distribution gains quite a lot of momentum in the last years as a fat tail distribution (finance, Levy processes, extreme values, etc. see http://en.wikipedia.org/wiki/Normal-inverse_Gaussian_distribution)
I am mathematician and newbee in Python. Out of curiosity I coded with scipy a method to compute risk measures with nig distribution. Therefore, I added the nig ppf to the library of continuous distribution functions in distributions.py. This was not difficult, I copied the code used for other distributions. However, being new to python, this may be not optimal.
I crossed checked with Matlab and R and so far it matches the result obtained there.
I am still thinking about a method to compute the cdf as well as the ppf since there are no close form for them and the performance are very poor in comparison with the equivalent in R or Matlab (This is central for our applications).
Being new to python, git and all the stuff I hope that I did the things at least halfway right.

Hi,
I looked a bit into the NIG Distribution. In my view, the random variates can be generated via V + sqrt(V)*X where X is standard normal and V is inverse gaussian (using suitable parameters). This way, one would not need to invert the CDF but rely on the invgaussian already implemented in scipy. However, invgaussian also has problems with the CDF for certain Parameters (mu <= 0.0028 does not work according to https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.invgauss.html#scipy.stats.invgauss)
For the CDF, potentially the approach above could help as well: one could write the CDF as the convolution of the Gaussian CDF and the gaussian inverse density. I would need to test if this is faster.
To complete this pull request, what would be required? would it be enough if rvs can be generated in a fast way whereas the cdf is still "suboptimal" (i.e. "slow")

Writing the CDF as a convolution is even slower, so that does not help.
However, the rvs method should be fine now, see https://github.com/chrisb83/scipy/tree/norminvgaussian
If this is considered to be enough to have a useful implementation, I would write tests for the distribution.
One would also Need to decide if the current implementatin of _cdf using some kind of optimization should be kept or if one simply want to rely to the inherited cdf method (slower, but more simple).
Feedback welcome...

However, the rvs method should be fine now, see https://github.com/chrisb83/scipy/tree/norminvgaussian

Nice.
My memory on this topic is a bit fuzzy. This PR and gh-6739 are competing right? IIRC this one was in better shape (did not double check that). Opening a new PR with your changes is probably the best way to go about reviewing your code.

If this is considered to be enough to have a useful implementation, I would write tests for the distribution.

I'd say it depends on how slow cdf is; just annoyingly slow is a lot better than unusably slow.

I believe that this pull request was implemented in pull request #8171 and can be closed.

Yes, let's close it

Ah missed that. Thanks @vyasr!


readme: add link to the consult and marginalia package

@raxod502 I added add consult link at a prominent place ~and modified the swiper section. The swiper section seemed a bit harsh to me. From my understanding after working on consult, I think such a swiper-like search is something which comes out naturally without doing much. It is obviously open for debate if that is a real search or isearch replacement. But it is nice to have options I think.~

Just so you know, the make lint test complains that some of your lines are too long.

@okamsn Oh I didn't know there is linting for the md files too. Taking it to the logical conclusion I guess :)

Ping @clemera @raxod502. Is this ready to be merged or do you want some things changed?

I have seen this and I like the changes but wanted to wait for @raxod502 as these edits touch parts where he wrote his personal opinion and I can't know how he feels about it.

I have seen this and I like the changes but wanted to wait for @raxod502 as these edits touch parts where he wrote his personal opinion and I can't know how he feels about them.

Yes, sure. In the swiper section, the technical and personal subjective parts were a bit intermingled. I tried to untangle this a little bit, hopefully without changing the overall message.

@clemera I added a marginalia link and removed the rewriting of the section. Is it okay to merge it like this?

Looks good to me, thanks!

Are you finished with this?

Yes!

Thanks!

I have seen this and I like the changes but wanted to wait for @raxod502 as these edits touch parts where he wrote his personal opinion and I can't know how he feels about them.

Sorry for the delay! In general I don't mind if you go ahead with things, I can always raise concerns later if needed. But, I doubt that would happen. I think it's better for projects like this to represent a community consensus rather than just being my personal opinion about everything. I think stripping out some of the opinionated parts will be an improvement.


Rainbow charge issue

Switch charging led to "Rainbow"
Press some key while in charging mode
Colors starts to blink madly and completely random.

I don't seem to have that issue. Can you send me the that profile that's causing the behavior (Go to settings, profile folder, and send me the .xml file of that profile)

I'll do that a bit later. Seems to be some problems with LED overall - sometimes (maybe when low at battery, but driver reports 40%) it will start madly blinking red at random.

I also get this problem. I only get it when in bluetooth mode; but it does not always occur.
XML link: https://mega.co.nz/#!FBsjFCza!7v8EhIIUh8Sid5mtQtIQeDa_DgajISWZNVFTfGbKhFo
Also, I get massive CPU usage when rainbow mode is on and it's charging. I just turned it off.


[Concurrency] Don't diagnose nonisolated(unsafe) properties during flow isolation.

Properties declared with nonisolated(unsafe) are always safe to access from anywhere.
Resolves https://github.com/apple/swift/issues/73294

@swift-ci please smoke test

Thank you!


ISPN-7680 - enabled karaf-maven-plugin to validate Karaf features

@paoloantinori any update?

Hmm, tried to resolve conflicts myself but not sure this has worked. Let me close the PR and send a new one with the conflicts fixed.

Submitted new PR fixing conflicts #5117


When opening a directory, insert mode is not activated

When you open yazi and then highlight (hover) a directory item, and press enter to open it, a new floating window with yazi is opened.
However, this new floating window does not currently seem to start in insert mode, which means keybindings don't work.
You can currently work around this limitation by pressing i to enter insert mode, but a better solution should be come up with.
This was very briefly discussed in #55

Tested this a bit this morning and for me it enters the insert mode, but the active window is not the yazi floating window but the window with empty buffer underneath it.
So for me it requires manually entering normal mode (with esc) , switching to yazi floating window and then entering insert mode.  Then it works.
I've not done much Lua/Neovim code but I think if something like this would be run after opening directory it might help:
-- Check if the current buffer's filetype is 'yazi'
local current_ft = vim.bo.filetype
if current_ft ~= 'yazi' then
    -- Iterate through available windows
    for _, win in ipairs(vim.api.nvim_list_wins()) do
        local buf = vim.api.nvim_win_get_buf(win)
        -- Check if the buffer's filetype is 'yazi'
        local win_ft = vim.api.nvim_buf_get_option(buf, 'filetype')
        if win_ft == 'yazi' then
            -- Switch to the window and enter insert mode
            vim.api.nvim_set_current_win(win)
            vim.cmd('startinsert')
            break
        end
    end
end

I tried to insert the code and test it with the plugin but haven't found the right place to insert it to (maybe some kind of lifecycle issue with autogroups?).

I spent a couple of hours trying to crack this, but couldn't solve it yet.
Let's keep this open. A solution may be available later.
For now I think the best thing you can do is manually enter insert mode after opening a directory with i.

@tkivela hi, I just found a workaround/fix for this. Would you have time to verify it has been solved?
If there are issues remaining, I will reopen this issue.

For some reason it still starts with insert mode in [No Name] buffer like this

If I manually enter normal mode (with Esc) and the switch to Yazi window it works ok.

Hmm that's super strange. I noticed for me it now works after neovim has already started. But opening a directory from the command line does not work now.

Can you try the following? Create a file called repro.lua with the following contents:
Details

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify('./.repro', ':p')

-- set stdpaths to use .repro
for _, name in ipairs({ 'config', 'data', 'state', 'cache' }) do
  vim.env[('XDG_%s_HOME'):format(name:upper())] = root .. '/' .. name
end

-- bootstrap lazy
local lazypath = root .. '/plugins/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    'git',
    'clone',
    '--filter=blob:none',
    'https://github.com/folke/lazy.nvim.git',
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)
vim.g.mapleader = ' '

-- install plugins
local plugins = {
  'folke/tokyonight.nvim',
  {
    'mikavilpas/yazi.nvim',
    dependencies = {
      'nvim-lua/plenary.nvim',
    },
    event = 'VeryLazy',
    keys = {
      {
        -- 👇 choose your own keymapping
        '<leader>fy',
        function()
          require('yazi').yazi()
        end,

        { desc = 'Open the file manager' },
      },
    },
    setup = function(_, opts)
      require('yazi').setup(opts)
    end,
    ---@type YaziConfig
    opts = {
      open_for_directories = true,
    },
  },
}
require('lazy').setup(plugins, {
  root = root .. '/plugins',
})

vim.cmd.colorscheme('tokyonight')

Next, start neovim with nvim -u repro.lua. It will launch in a sandbox environment and install minimal packages for this session only.
In the sandbox neovim session, launch yazi and open a directory in it with enter. Does it stay in insert mode when the new directory is displayed for you?

Yes the problem that I gave a screenshot is in the case neovim is opened from the terminal with a directory as a parameter and config option open_for_directories = truefor the plugin.
I can try the repro.lua script tomorrow if needed.

Ok, that sounds like I still need to work on that part 🤔

Good idea using repro config file!
When launching with nvim -u repro.lua and starting yazi.nvimwith the keymapping in the repro config (<leader>fy) the yazi window is in normal mode and stays in normal mode when entering directories. It works ok, no problems there. The parent window seems to be in TERMINALmode:

With nvim ./foodirectory -u repro.lua it now seems to open netrw instead of Yazi which is odd. With my own config it still opens Yazi window, but the focus in on wrong window and in insert mode. I have LazyVim "distro" as a base (https://www.lazyvim.org) so the difference might be in it. I tried to disable all my custom autocommands and even all set Vim options but it didn't make a difference.

Tested this a bit this morning and for me it enters the insert mode, but the active window is not the yazi floating window but the window with empty buffer underneath it. So for me it requires manually entering normal mode (with esc) , switching to yazi floating window and then entering insert mode. Then it works.
I've not done much Lua/Neovim code but I think if something like this would be run after opening directory it might help:
-- Check if the current buffer's filetype is 'yazi'
local current_ft = vim.bo.filetype
if current_ft ~= 'yazi' then
    -- Iterate through available windows
    for _, win in ipairs(vim.api.nvim_list_wins()) do
        local buf = vim.api.nvim_win_get_buf(win)
        -- Check if the buffer's filetype is 'yazi'
        local win_ft = vim.api.nvim_buf_get_option(buf, 'filetype')
        if win_ft == 'yazi' then
            -- Switch to the window and enter insert mode
            vim.api.nvim_set_current_win(win)
            vim.cmd('startinsert')
            break
        end
    end
end

I tried to insert the code and test it with the plugin but haven't found the right place to insert it to (maybe some kind of lifecycle issue with autogroups?).

in the file lua/yazi.lua, I put this piece of code inside of the vim.schedule function and it fixed this problem for me.

Hmm that seems like this might be some kind of tricky timing issue. @dinomon456 would you have any idea if this could be reproduced?
Can you try if you can reproduce it using the reproduction script here https://github.com/mikavilpas/yazi.nvim/blob/master/repro.lua

Hmm that seems like this might be some kind of tricky timing issue. @dinomon456 would you have any idea if this could be reproduced?
Can you try if you can reproduce it using the reproduction script here https://github.com/mikavilpas/yazi.nvim/blob/master/repro.lua

when i use the reproduction script with options open_for_directories = true and lazy = false and open a directory with nvim -u repro.lua directory/ I get put into insert mode in the no name buffer and I need to click on to the yazi buffer to use it.


Roadmap

[x] CI
[x] All Streams
[x] Discovery
[x] Catalog ingestion
[x] Rate Limiting
[x] Error Handling
[x] Testing with actual data
[x] Be sure documentation is clear (Should happen along the way)
[x] Add MIT License
[ ] Release 1.0.0 to PyPi
[x] Submit to Stitch
[x] Submit to Meltano Hub

Order will jump around, and there will be individual issues for most units of work. This is the higher level task to be sure we get everything done!

[ ] Full code review

Not going to release 1.0.0 until we feel like it later. This works as it is, if we need some more stability in the api later we can circle back to this.


Variants icon and interface

Place variants icon to the far right since it is optional, possibly put icon in parenthesis to indicate optionallity
Dark green icons for finished but inactive.

Position fixed in https://github.com/localfoodnodes/localfoodnodes/commit/d6116af0440006555ce14d2a881af735c257a0a2. Dark green doesn't look good against the background


undefined properties should be ignored when constructing from an object

message Test {
	optional int32 foo = 1;
}

This works fine:
new Test({
    foo: null
});

But this throws:
var a;

new Test({
    foo: a
})

Error: Illegal value for Message.Field .Test.foo of type int32: undefined (not an integer)

I think undefined properties should be treated the same as null properties, i.e. ignored. That would also make it consistent with the multi-argument construction, which checks for undefined.

Looks like this is no longer an issue in 4.0.0-pre. Sorry about the noise!


typings do not allow for nodejs:10 action kind

only nodejs:6 and nodejs8 are accounted for

@dgrove-oss suggests changing this to have type Kind = string rather than trying to keep this module in sync with ... upstream openwhisk but also with whatever manifest a particular provider may have imposed.


Move docs to master

Summary
This leverages the docs on master feature released by GitHub recently.
Preview at dustinfarris.com/ember-redux
Details
All docs are in /docs on master now.  Everything looks pretty much the same.  Jekyll config is the same, as are layouts/includes.  The main difference is that front-matter is no longer required in the markdown files.
This PR is a first step toward some additional work I want to do on the docs (including a future PR adding API docs).
This will need to be tested after deploying in case I missed something required for the ember-redux.com domain.
Deploying

Merge this PR

Adjust the GitHub pages Source by going to Settings => Options

After testing, the gh-pages branch can be deleted

+100 for the work here - super excited to have docs/code on one branch (avoids the gh-pages context switch when people submit PRs that need some doc updates + code updates)

@dustinfarris the urls look on point /thanks for the extra effort around this. The only thing worth calling out is my font-awesome box at the bottom isn't identical to what shows up today (hate it or was it just a oversight skipping that css/custom hacks) ?

Was cutting corners.  My plan is to overhaul the docs in general.  I can put this back if you want to maintain what was in place in the interim.  Not a problem, just time—and not a lot really.  Let me know.


[android] Canvas disappear in Modal when app is resumed from background

Description
If you have Canvas inside of RN Modal component and you suspend app to background and then return to your app, Skia Canvas completely disappear. Seems to be Android issue only.
I found out that I can hotfix this by manually triggering rerender of Canvas when AppState change, but it's not idea and there is still visible blink of Canvas.
Video:
https://github.com/Shopify/react-native-skia/assets/5837757/bb8c7002-d3a7-4b27-96b0-f8162bdb82a5
Version
0.1.233
Steps to reproduce

Open Modal with Skia Canvas
Switch to different app
Switch back to your app => Canvas is gone

Snack, code example, screenshot, or link to a repository
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Modal, View, Button } from "react-native";
import { Canvas, Circle } from "@shopify/react-native-skia";
import React, { useState } from "react";

export default function App() {
  const [isModalVisible, setModalVisible] = useState(false);

  const showModal = () => {
    setModalVisible(true);
  };

  return (
    <View style={styles.container}>
      <Button title="Open Modal" onPress={showModal} />

      <Modal animationType="slide" visible={isModalVisible}>
        <View style={styles.container}>
          <Canvas style={{ flex: 1, width: "100%" }}>
            <Circle r={128} cx={128} cy={128} color="red" />
          </Canvas>
          <Button title="Hide Modal" onPress={() => setModalVisible(false)} />
        </View>
      </Modal>

      <StatusBar style="auto" />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: "#fff",
    alignItems: "center",
    justifyContent: "center",
  },
});

Hi @wcandillon, I would like to try to fix this one myself, but I am not sure where should I look first. Can give me small hint where to begin?

same, anyone know how to fix?

@tamacroft I was not able to figure out fix for Skia itself but here is workaround that you can use. Use this hook in you components:
import { useEffect, useState } from 'react';
import { AppState } from 'react-native';

/**
 * It's necessary because Skia Android bug when Icon components are used in Modal component.
 * After app is suspended to background and then resumed, icons are not rendered.
 * This is a workaround for this issue.
 * @see https://github.com/Shopify/react-native-skia/issues/2135
 */
export const useRerenderOnAppStateChange = () => {
    const [_, setRerender] = useState(0);

    useEffect(() => {
        const handleChange = () => {
            setRerender(prev => prev + 1);
        };
        const subscription = AppState.addEventListener('change', handleChange);

        return () => subscription.remove();
    }, []);
};

And then you skia component:
const MyCanvas = () => {
   useRerenderOnAppStateChange();

   return <Canvas>.....</Canvas>
}

Hello,
Is this issue specific to a particular device or Android version? I’m experiencing the same problem, but it doesn't happen on all my devices.
The Skia Canvas disappear just as it does in your video, but only on my Huawei P30 running Android 10.

Hello, Have you solved this problem? I meet the save issue at my Honor 90Pro base on Android 12

Hello,
Is this issue specific to a particular device or Android version? I’m experiencing the same problem, but it doesn't happen on all my devices.
The Skia Canvas disappear just as it does in your video, but only on my Huawei P30 running Android 10.

Hello, Have you solved this problem? I meet the save issue at my Honor 90Pro base on Android 12

Sadly, no.
I don't have time at all to investigate, but it seems to be manufacturer specific. Honor and Huawei are pretty similar


Update user-sendmail.md

Fixes the MIME sending example the current base64 example has truncated headers and is incomplete which means it will generate an error if tried and is confusing to anybody developing and trying to understand this feature using this example. This change fixes the truncated header and includes a simple example that decodes to
From: Adele Vance<EMAIL_ADDRESS>To: Alex Wilber<EMAIL_ADDRESS>Subject:Test Message
Content-Type: multipart/mixed;
boundary="004_TYZPR04MB698173FD002152D5ADB8FB47C8BCATYZPR04MB6981apcp"
MIME-Version: 1.0
--004_TYZPR04MB698173FD002152D5ADB8FB47C8BCATYZPR04MB6981apcp Content-Type: multipart/alternative;
boundary="000_TYZPR04MB698173FD002152D5ADB8FB47C8BCATYZPR04MB6981apcp"
--000_TYZPR04MB698173FD002152D5ADB8FB47C8BCATYZPR04MB6981apcp Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
test text body
--000_TYZPR04MB698173FD002152D5ADB8FB47C8BCATYZPR04MB6981apcp Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

test html body

--000_TYZPR04MB698173FD002152D5ADB8FB47C8BCATYZPR04MB6981apcp--
--004_TYZPR04MB698173FD002152D5ADB8FB47C8BCATYZPR04MB6981apcp Content-Type: text/plain;
Content-Disposition: attachment;
filename="test.txt"
this is the attachment text
--004_TYZPR04MB698173FD002152D5ADB8FB47C8BCATYZPR04MB6981apcp--
based on the examples from https://learn.microsoft.com/en-us/graph/outlook-send-mime-message and https://learn.microsoft.com/en-us/previous-versions/office/developer/exchange-server-2010/aa563375(v=exchg.140)

@gscales , can you please update the topic in the /beta folder as well? Thanks!

@gscales , can you please update the topic in the /beta folder as well? Thanks!

@Lauragra Okay updated

#feedback-addressed


Create LICENSE

Proposing Unlicense, based on #11

Added a CC-BY License: https://github.com/woutervdijke/CatGPT/commit/718ba510765e19239bae9b7fbb3a97855b2257e5


[BUG] Access to the path 'Global\xxxx.Mutex' is denied

Version
Which LiteDB version/OS/.NET framework version are you using. (REQUIRED)
LiteDB 5.0.19 (was previously on 5.0.17 and updated to .19 to see if this issue persisted).
.NET 7.0.
Describe the bug
Unable to access database via 2 different .NET applications.
One application is a .NET MAUI/Blazor application running .NET 7.0.
Second application is a .NET 7.0 Worker Service running as a Windows Service.
Expected behavior
Both applications access LiteDB without any issues.
Screenshots/Stacktrace
System.UnauthorizedAccessException: 'Access to the path 'Global\E1AA37A6E09B3AA16E62C8E7D9E4F3EA1E461A3B.Mutex' is denied.'
Additional context
Both applications can happily access the LiteDB when the worker service application is being run via debug in Visual Studio, however once the service is published and installed as a WIndows Service this Mutex issue comes into play and the Blazor app will throw the exception about access to the Global Mutex being denied. (LiteDB Studio also does this).

It would seem that fixing this was simple as the Global mutex stuff was not handled for anything other than .NET Framework
Adding in the mutex creation for NETSTANDARD 2 OR GREATER, the below fixes the Glabal mutex issue caused above.
..\LiteDB\Client\Shared\SharedEngine.cs
using LiteDB.Engine;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
#if NETFRAMEWORK
using System.Security.AccessControl;
using System.Security.Principal;
#endif
#if NETSTANDARD2_0_OR_GREATER
using System.Security.AccessControl;
using System.Security.Principal;

            try
            {
#if NETFRAMEWORK
                var allowEveryoneRule = new MutexAccessRule(new SecurityIdentifier(WellKnownSidType.WorldSid, null),
                           MutexRights.FullControl, AccessControlType.Allow);

                var securitySettings = new MutexSecurity();
                securitySettings.AddAccessRule(allowEveryoneRule);

                _mutex = new Mutex(false, "Global\\" + name + ".Mutex", out _, securitySettings);
#elif NETSTANDARD2_0_OR_GREATER

                var allowEveryoneRule = new MutexAccessRule(new SecurityIdentifier(WellKnownSidType.WorldSid, null),
                           MutexRights.FullControl, AccessControlType.Allow);

                var securitySettings = new MutexSecurity();
                securitySettings.AddAccessRule(allowEveryoneRule);

                _mutex = MutexAcl.Create(false, "Global\\" + name + ".Mutex", out _, securitySettings);
#else
                _mutex = new Mutex(false, "Global\\" + name + ".Mutex");
#endif
            }
            catch (NotSupportedException ex)
            {
                throw new PlatformNotSupportedException("Shared mode is not supported in platforms that do not implement named mutex.", ex);
            }
        }

We have managed to get our 2 applications working now with not too big of a change, .NET needs handling similarly to .NET Framework to avoid access being denied to the Global mutex
..\LiteDB\Client\Shared\SharedEngine.cs
#if NETFRAMEWORK
using System.Security.AccessControl;
using System.Security.Principal;
#endif
#if NETSTANDARD2_0_OR_GREATER
using System.Security.AccessControl;
using System.Security.Principal;
#endif

            try
            {
#if NETFRAMEWORK
                var allowEveryoneRule = new MutexAccessRule(new SecurityIdentifier(WellKnownSidType.WorldSid, null),
                           MutexRights.FullControl, AccessControlType.Allow);

                var securitySettings = new MutexSecurity();
                securitySettings.AddAccessRule(allowEveryoneRule);

                _mutex = new Mutex(false, "Global\\" + name + ".Mutex", out _, securitySettings);
#elif NETSTANDARD2_0_OR_GREATER

                var allowEveryoneRule = new MutexAccessRule(new SecurityIdentifier(WellKnownSidType.WorldSid, null),
                           MutexRights.FullControl, AccessControlType.Allow);

                var securitySettings = new MutexSecurity();
                securitySettings.AddAccessRule(allowEveryoneRule);

                _mutex = MutexAcl.Create(false, "Global\\" + name + ".Mutex", out _, securitySettings);
#else
                _mutex = new Mutex(false, "Global\\" + name + ".Mutex");
#endif
            }
            catch (NotSupportedException ex)
            {
                throw new PlatformNotSupportedException("Shared mode is not supported in platforms that do not implement named mutex.", ex);
            }
        }

We have the same issue


Notifications are sent on US time.

⚠ Please verify that this bug has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

📝 Describe your problem
I have tried changing the display time zone and server time zone in the settings and changing the docker container time, but the time is still US time. I really can not solve, modify the source code is only valid for email, Ali SMS failed to change over.
📝 Error Message(s) or Log
None
🐻 Uptime-Kuma Version
1.21.3
💻 Operating System and Arch
centos 7.9
🌐 Browser
Google Chrome 114.0.5735.91
🐋 Docker Version
Docker 24.0.2
🟩 NodeJS Version
No response

It will be fixed in the upcoming version.

它将在即将发布的版本中修复。

Ok, thanks, looking forward to the new version.

@HYDeath given that has been resolved by #3203, could you close this issue?
The next version will be released soon-ish see https://github.com/louislam/uptime-kuma/milestone/31 for further details

@HYDeath given that has been resolved by #3203, could you close this issue? The next version will be released soon-ish see https://github.com/louislam/uptime-kuma/milestone/31 for further details

OK


create md-input-wrapper to eventually replace md-input

addressed comments, PTAL

LGTM, I'll let @jelbourn do the rest of the review.

Comments addressed

Addressed comments & rebased

LGTM, as discussed we'll hold off on merging until after alpha.11

Following 20ee360912fb4d7f59b218566b478ecec7a88088, Is a version release to npm expected? Current version (beta 11) works the old way.

Soon

How is it supposed to work?
I replaced
      <md-input placeholder="Username"
                [(ngModel)]="username"
                (keyup.enter)="doLogin()"></md-input>

by
    <md-input-container>
      <input mdInput
             placeholder="Username"
             (keyup.enter)="doLogin()"
             [(ngModel)]="username">
    </md-input-container>

And the style changed from:

to:

Is this intended? I'm using "@angular/material": "^2.0.0-beta.1"

mdInput => md-input
See the examples here: https://material.angular.io/components/component/input

The link states

must be marked with the mdInput directive.

And also does the README at:
https://github.com/angular/material2/blob/master/src/lib/input/README.md

@OlliL The README is relevant to with what's on master. You'll want to look at the docs site (linked by @abdulhaq-e) for the documentation of the latest release.

I see.
Having multiple <input> elements in one <md-input-container> seems not to render nicely. I'll go for multiple <md-input-container> elements - one for each <input> element for now. This seems to work now fine. Thanks!


Dynamic phone mask

I want set the dynamic mask by country, its possible something like this?
var countryCode = 32
$(".phone").inputmask("phone", {
   countrycode: countryCode
});

i think this should do with regex

@tiagoporto ,
Setting the countryCode will prefix pasted values, and initial values and values you set.  Not when you type.
But in case for belgium (32) you can use phonebe as alias.
You can always modify the mask function in the phone alias and filter the mask by the given country


Ollama support

Is your feature request related to a problem? Please describe.
Describe the solution you'd like
I would like the option to connect to an Ollama server.
Describe alternatives you've considered
Additional context

Please add this.

this would be real cool.


error in the s/dger case (mx1 vs 1xn) in mtimes

I met the following errors in this special case. I think using ger inside mtimes is the best.
unittest
{
    import std.stdio;
    auto a = [1.0, 2.0].sliced(2, 1);
    auto b = [1.0, 2.0].sliced(2, 1);
    auto bt = b.transposed;

    // without slice
    // (linked with cblas) ** On entry to cblas_dgemm parameter number 11 had an illegal value
    // (linked with mkl_rt) Intel MKL ERROR: Parameter 11 was incorrect on entry to cblas_dgemm.
    writeln(mtimes(a, bt)); // [[6.911e-310, 9.85365e-317], [0, 0]]

    // but OK with slice
    assert(mtimes(a, bt.slice) == [[1, 2], [2, 4]]);

    // also I think mir.blas.ger is nice when a.length!1 == 1 && b.length!0 == 1
    import mir.blas : ger;
    auto c = uninitSlice!double(a.length!0, bt.length!1);
    c[] = 0;
    ger(1.0, a[0..$,0], b[0..$,0], c);
    assert(c == [[1, 2], [2, 4]]);
}

I think this is related to the LDB (the 11th arg) specification http://www.netlib.org/lapack/explore-html/d1/d54/group__double__blas__level3_gaeda3cbd99c8fb834a60a6412878226e1.html#gaeda3cbd99c8fb834a60a6412878226e1
       On entry, LDB specifies the first dimension of B as declared
       in the calling (sub) program. When  TRANSB = 'N' or 'n' then
       LDB must be at least  max( 1, k ), otherwise  LDB must be at
       least  max( 1, n ).

where B.shape == [k, n]
P.S.
The following transposed B (1 < k < n) seems to be OK. I think only k=1 has the problem.
unittest
{
    auto a = [1.0, 2.0,
              3.0, 4.0,
              5.0, 6.0].sliced(3, 2);
    auto b = [1.0, 2.0,
              3.0, 4.0,
              5.0, 6.0].sliced(3, 2);
    auto bt = b.transposed;
    auto result = [[5, 11, 17], [11, 25, 39], [17, 39, 61]];
    // OK
    assert(mtimes(a, bt) == result);
}

@9il Thank you for fast merge! but I still have a question on my ger example for the recurrent neural network backpropgation algorithm.
git clone https://github.com/ShigekiKarita/numir-char-rnn.git
git checkout -b  <branch-name> origin/<branch-name>
git submodule update --init --recursive # lubeck is submoduled
dub clean --all-packages
dub run --compiler=ldc2 -b=release-nobounds
dub run --compiler=ldc2 -b=release-nobounds

using mir.blas.gemm (ger commented) via mtimes
https://github.com/ShigekiKarita/numir-char-rnn/blob/mir-blas-gemm/source/app.d#L63-L72
dub run --compiler=ldc2 -b=release-nobounds  59.09s user 0.94s system 395% cpu 15.180 total
using mir.blas.ger (ger uncommented) via mtimes
https://github.com/ShigekiKarita/numir-char-rnn/blob/mir-blas-ger/source/app.d#L63-L72
dub run --compiler=ldc2 -b=release-nobounds  46.70s user 0.59s system 395% cpu 11.968 total
using direct call of mir.blas.ger
https://github.com/ShigekiKarita/numir-char-rnn/blob/master/source/app.d#L84-L94
dub run --compiler=ldc2 -b=release-nobounds  21.89s user 0.20s system 390% cpu 5.661 total
Do you have any comments on the reason why this ger inside mtimes is much slower than the raw ger?

@ShigekiKarita

gemm vs ger: BLAS operations are not optimized for cases like k = 1. So gemm performs gemm even if it can call ger. Other possible optimization is call gemv if only on of matrixes is a vector.
Lubeck vs mir-blas/mir-lapack: Lubeck allocates a memory for result. This memory probably not in CPU cache. So, if you preallocate all memory and use only mir-blas/mir-lapack (and without D's hashmaps) then your algorithm will be faster. Both Python and Lubeck use internal BLAS implementation. So if you want win Python you need to preallocate memory,  which is not possible in numpy.

3.Take a look into this line:
auto dh = mtimes(params["Why"].transposed, dy).slice;

There are two memory allocations. The first one is mtimes, the second one is slice.

Thanks, I see. Do you have a plan to add  an optional argument to store the result in lubeck? As we can see it in numpy and torch, it is good for the preallocation strategy.

@9il The mtimes documentation could be adjusted to say "General matrix-matrix multiplication. Allocates result to an uninitialized slice using GC."
I don't know how many of the other functions that will be in lubeck will need to think about these sorts of issues. It probably makes sense to create an Issue for further discussion on pre-allocation or the use of alternate allocators.

Thanks, I see. Do you have a plan to add an optional argument to store the result in lubeck? As we can see it in numpy and torch, it is good for the preallocation strategy.

The gemm wrapper for ndslice from mir-blas do the same.

@9il The mtimes documentation could be adjusted to say "General matrix-matrix multiplication. Allocates result to an uninitialized slice using GC."

PR is welcome. In the same time it is a general Lubeck concept. Lubeck was originally created to port a commercial Matlab library to D. Similarity, readability, and simplicity were key features. The speed was too, but it was already increased more then one hundred times compared with the original Matlab code.

I don't know how many of the other functions that will be in lubeck will need to think about these sorts of issues. It probably makes sense to create an Issue for further discussion on pre-allocation or the use of alternate allocators.

Currently @EmTee70 works on matrix classes that can hold different payloads (like symmteric, diagonal and other matrixes) and have "*" overloaded operation.
I thought a lot about RC based separate Matrix type system with clever expressions that will be felt like Julia or Matlab. Something like that:
Assume it can hold different types of matrixes:

dense
symmetric
diagonal
sparse
tridiagonal

and is clever enough, for example, to fuse at run-time an expressions like
Mat C = alpha * J * J.t - beta * B * R;

into two BLAS (openblas) calls:
syrk (11 - symmetric rank k operation) for
C = alpha * J * J.t.
and than
gemm (12 - general rank k operation) for
`C -= beta * B * R`

Plus it would be able to solve linear systems using lapack:
B /= A;

@Laeeth, @firoozye, possibly it may be a good concept for math programming in D.

@9il Submitted PR.
I"m glad progress is being made on general matrix classes. Would Jean-Louis Leroy's open multi-methods library be useful for these run-time features? He has Matrix examples, but I don't see ones that implement operator overloading.


pipenv fails to install matplotlib

Attempting to install matplotlib using pipenv erroneously pulls in subprocess32. Installing directly with pip under a virtualenv works correctly. My python setup is a described by jacobian (ie, pyenv->pipsi->pipenv). This is on Raspbian GNU/Linux 9.4 (stretch), an ARM platform.
$ python -m pipenv.help output
Pipenv version: '11.9.0'
Pipenv location: '/home/pi/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv'
Python location: '/home/pi/.local/venvs/pipenv/bin/python'
Other Python installations in PATH:

2.7: /usr/bin/python2.7

2.7: /usr/bin/python2.7

3.5: /usr/bin/python3.5m

3.5: /usr/bin/python3.5

3.6: /home/pi/.pyenv/shims/python3.6m

3.6: /home/pi/.pyenv/shims/python3.6

3.6.4: /home/pi/.pyenv/shims/python

2.7.13: /usr/bin/python

2.7.13: /usr/bin/python2

3.6.4: /home/pi/.pyenv/shims/python3

3.5.3: /usr/bin/python3

PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '3.6.4',
 'os_name': 'posix',
 'platform_machine': 'armv7l',
 'platform_python_implementation': 'CPython',
 'platform_release': '4.9.80-v7+',
 'platform_system': 'Linux',
 'platform_version': '#1098 SMP Fri Mar 9 19:11:42 GMT 2018',
 'python_full_version': '3.6.4',
 'python_version': '3.6',
 'sys_platform': 'linux'}

System environment variables:

LS_COLORS
SSH_CONNECTION
LANG
OLDPWD
INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH
INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS
INFINALITY_FT_CONTRAST
PYENV_VIRTUALENV_INIT
INFINALITY_FT_STEM_FITTING_STRENGTH
INFINALITY_FT_GLOBAL_EMBOLDEN_X_VALUE
XDG_SESSION_ID
USER
INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT
INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH
INFINALITY_FT_GAMMA_CORRECTION
PWD
HOME
TEXTDOMAIN
SSH_CLIENT
TMUX
INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH
SSH_TTY
INFINALITY_FT_BRIGHTNESS
MAIL
TERM
SHELL
INFINALITY_FT_USE_VARIOUS_TWEAKS
TMUX_PANE
PYENV_SHELL
SHLVL
INFINALITY_FT_BOLD_EMBOLDEN_Y_VALUE
INFINALITY_FT_GLOBAL_EMBOLDEN_Y_VALUE
INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH
LOGNAME
DBUS_SESSION_BUS_ADDRESS
XDG_RUNTIME_DIR
PATH
INFINALITY_FT_FILTER_PARAMS
INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS
INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE
INFINALITY_FT_STEM_ALIGNMENT_STRENGTH
INFINALITY_FT_BOLD_EMBOLDEN_X_VALUE
INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH
INFINALITY_FT_FRINGE_FILTER_STRENGTH
_
PYTHONDONTWRITEBYTECODE
PIP_PYTHON_PATH
PYTHONUNBUFFERED

Pipenv–specific environment variables:
Debug–specific environment variables:

PATH: /home/pi/.pyenv/plugins/pyenv-virtualenv/shims:/home/pi/.pyenv/shims:/home/pi/.pyenv/bin:/home/pi/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
SHELL: /bin/bash
LANG: en_GB.UTF-8
PWD: /home/pi

Contents of Pipfile ('/home/pi/Pipfile'):
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]

[dev-packages]

[requires]
python_version = "3.6"

Expected result
Matplotlib successfully installed
Actual result
Matplotlib install fails b/c it's trying to pull in subprocess32, which is not needed by Python3.6. Full log attached. pipenv-matplotlib.log
pi@raspberrypi:~/tmp$ pipenv install matplotlib -v 2>&1 |tee pipenv-matplotlib.log
Creating a virtualenv for this project…
Using /home/pi/.pyenv/versions/3.6.4/bin/python3.6m (3.6.4) to create virtualenv…
Running virtualenv with interpreter /home/pi/.pyenv/versions/3.6.4/bin/python3.6m
Using base prefix '/home/pi/.pyenv/versions/3.6.4'
New python executable in /home/pi/.local/share/virtualenvs/pi-V9tpwFal/bin/python3.6m
Also creating executable in /home/pi/.local/share/virtualenvs/pi-V9tpwFal/bin/python
Installing setuptools, pip, wheel...done.

Virtualenv location: /home/pi/.local/share/virtualenvs/pi-V9tpwFal
Installing matplotlib…

...

INFO:notpip.req.req_set:Collecting subprocess32==3.2.7
INFO:pip9.download:File was already downloaded /home/pi/.cache/pipenv/pkgs/subprocess32-3.2.7.tar.gz
INFO:pip9.utils:Complete output from command python setup.py egg_info:
INFO:pip9.utils:This backport is for Python 2.x only.

----------------------------------------
Traceback (most recent call last):
  File "/home/pi/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/resolver.py", line 82, in <module>
    main()
  File "/home/pi/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/resolver.py", line 71, in main
    clear=do_clear,
  File "/home/pi/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/resolver.py", line 63, in resolve
    verbose=verbose,
  File "/home/pi/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/utils.py", line 425, in resolve_deps
    pre,
  File "/home/pi/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/utils.py", line 336, in actually_resolve_reps
    resolved_tree.update(resolver.resolve(max_rounds=PIPENV_MAX_ROUNDS))
  File "/home/pi/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 102, in resolve
    has_changed, best_matches = self._resolve_one_round()
  File "/home/pi/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 200, in _resolve_one_round
    for dep in self._iter_dependencies(best_match):
  File "/home/pi/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 297, in _iter_dependencies
    dependencies = self.repository.get_dependencies(ireq)
  File "/home/pi/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 174, in get_dependencies
    legacy_results = self.get_legacy_dependencies(ireq)
  File "/home/pi/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 222, in get_legacy_dependencies
    result = reqset._prepare_file(self.finder, ireq, ignore_requires_python=True)
  File "/home/pi/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/patched/notpip/req/req_set.py", line 644, in _prepare_file
    abstract_dist.prep_for_dist()
  File "/home/pi/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/patched/notpip/req/req_set.py", line 134, in prep_for_dist
    self.req_to_install.run_egg_info()
  File "/home/pi/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/vendor/pip9/req/req_install.py", line 439, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/home/pi/.local/venvs/pipenv/lib/python3.6/site-packages/pipenv/vendor/pip9/utils/__init__.py", line 707, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip9.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/tmp4e0pkookbuild/subprocess32/

Steps to replicate
run pipenv install matplotlib

Ah I think I’ve found the culprit. https://github.com/matplotlib/matplotlib/blob/v2.2.2/setupext.py#L1444
They were doing dependency resolution dynamically with Python code which Pipenv can’t resolve correctly. The problem is similar to #1229.
Are you running Pipenv on Python 2? This can be worked around by installing Pipenv on the same Python version as the virtualenv’s. (This would cause problems the other way around, when you develop Python 2 projects, but there’s no other way at the moment.)

I can't reproduce this at all, tried using your exact pipfile using python3. Based on the logs you provided you are using an extra set of links from piwheels.org but I'd highly recommend completely uninstalling pipenv and reinstalling it from scratch from master if you're still having this problem.

Yeah that's what I did... Pretty sure pipenv is running under Python 3.6.4,
installed with pyenv & pipsi (will double check tomorrow)
Any chance this is a platform issue (running on a ARM-based Raspberry Pi)?
On Mon, Apr 9, 2018, 5:18 PM Dan Ryan<EMAIL_ADDRESS>wrote:

I can't reproduce this at all, tried using your exact pipfile using
python3. Based on the logs you provided you are using an extra set of links
from piwheels.org but I'd highly recommend completely uninstalling pipenv
and reinstalling it from scratch from master if you're still having this
problem.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pypa/pipenv/issues/1900#issuecomment-379897131, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAe2AOh_GKu8-XjHI283bufkeNCFxItvks5tm9ASgaJpZM4TFjIs
.

Piwheels.org seems a bit odd that it's in there... I'll investigate further
On Mon, Apr 9, 2018, 6:23 PM Dan Ryan<EMAIL_ADDRESS>wrote:

Could certainly be, would be interested if anyone with one can try to repro
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pypa/pipenv/issues/1900#issuecomment-379912372, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAe2AEDJ9RFAJCwwCHEwbXUAIRyQi9rhks5tm99kgaJpZM4TFjIs
.

@uranusjr confirmed, pipenv is running under python 3.6.4 installed via pyenv.
Hmmm.

@techalchemy by default, Raspbian includes the following in /etc/pip.conf:
[global]
extra-index-url=https://www.piwheels.org/simple

removed piwheels as an extra index, but problem persists.
pipenv-matplotlib-3.log

Strange, subprocess32 shouldn’t be picked up in this context. May try deleting caches?

@uranusjr no dice :-(
(oh, this is still @wearpants  btw, switched accounts)
pipenv-matplotlib-4.log

Something is very wrong with, like, many things. The resolver clearly thinks your virtualenv runs Python 2. It even tries to download the cp27 (CPyhton 2.7) wheel. How about… deleting the virtualenv (pipenv --rm) and start from scratch?