Feature to Automatically Create Log of All Loot & Ability to Export CSV List

Placeholder & Notes
Loot Log
Logs all loot processed by GogoLoot.
Clear Log Alert

When zoning into a new Instance, needs to ask a user, "Do you want to reset GogoLoot Log?"
Disable Loot Log? More UX...
What about... World Bosses. Oof.

Export

Ability to filter by item quality.
Needs UX.

Support for "That's My BIS"
https://thatsmybis.com/

Needs to export All Purples, All Mounts, and All Recipes.

Just need:

PLAYER NAME, ITEM ID
Gogowarrior,29764
Aevala,29767

Few notes...
You'd get prompted to start a new Loot Tracking Session every time you changed instances.
Only tracks items looted via GogoLoot / through the Master Looter.
Hitting the Export Button would open a big text select where you could copy the text so you could paste it into your destination.
The CSV list for TMB would just be:

CHARACTER NAME, ITEM ID
Gogowarrior,29764
Aevala,29767

The TSV list would just be:
Date, Character Name, Item ID, Item Quality, Item Name, WoWHead Link


remove cuBLAS header from extern "C" warpper

ref to https://github.com/jlblancoc/suitesparse-metis-for-windows/issues/63, cuBLAS has its own way to deal with C++ compilers.
Remove extern "C" warpper for cublas_v2.h at https://github.com/dmlc/tvm/blob/master/src/contrib/cublas/cublas_utils.h
Under MSVC 1920 Win10 with CUDA 10.1, with the warpper, there will be errors; without the warpper, I could get tvm complied.

A PR is more than welcomed


Vectorisation all casts to same datetime

Hi Kyle
First of all thanks for this great package!
I am having trouble to get the vectorization to work as per your example
I have a pandas date frame with  a 'Date' column of (datetimes) and a long and lat (floats)
When I run the vector operation I am  getting a single date back (ref attachment)
What could I be doing wrong?
Thanks a lot
Michiel

Michiel,
I managed to reproduce your example. The problem is that your date series is TZ-naive and it should be TZ-aware. (And I understand the get_times() API should tell you this...) You can correct it for example by localizing it to a given timezone:
df['Date'] = df['Date'].dt.tz_localize('utc')

If you want a set up a local hourly date series for some place with a non-fixed UTC-offset (think DST changes), you might be better off with initializing your date series right away as a TZ-aware series, something like
df['Date'] = pd.date_range('1979-01-01', '2019-01-01', inclusive='left', freq='H', tz='Europe/Budapest')

Another remark, there will be one sunrise time per local day, so you'll computationally better off if you use a dataset with just a single observation per day.


Parameter name conflicts with sos environment

For this SoS example I got this bash script generated:
Rscript <function script at 0x2ae090cb7620> seed=4 N="c(40,200)" b="c(3,1.5,0,0,2,0,0,0)" rstd=3 oftrain="'data_4.train.csv'" oftest="'data_4.test.csv'"

this is because script, my workflow parameter, conflicts with an imported SoS function. I think we should check and prevent it from happening.

There are some mechanism to prevent the use of sos keywords in places in parameters, but assignments are not monitored for performance reasons. This actually lead to a more serious question: should we allow sos keyword to be overwritten? At least in python you can easily overwrite system functions (e.g. id=5 where id is a builtin function) and sos should perhaps follow suit.

should we allow sos keyword to be overwritten?

I guess so! and even more interesting in R:
> t = 5
> t(matrix(1))
     [,1]
[1,]    1

(but i think it is fair enough to not do that ^)

Allowing users to override sos keyword is the right thing to do. Think about this scenario:

Write a working workflow
Install a newer version of sos or another python module that introduces a  new action or target
Your workflow no longer works

The thing with R is different because t(matrix) is essentially matrix.t so changing t=5 did not touch the member function of matrix.

Sure. My point is that interface-wise R can make this distinction but we do not have to do the same. Overriding is good enough

Your example should now work as expected.

@BoPeng sorry too soon I guess ...
gaow@trico:~/tmp/05-Sep-2018$ cat test.sos
[1]
parameter: input = 5
output = 10
python: expand=True
  print({input})
gaow@trico:~/tmp/05-Sep-2018$ sos run test.sos
ERROR: File contains parsing errors: /home/gaow/tmp/05-Sep-2018/test.sos
	[line  4]:
Invalid parameter name input: input is a SoS keyword

However it works if parameter is removed.

This is caused by this line of code and I am not quite sure if we should life the gate here. As far as I can tell now, sos process input: etc in parsing time so they will not enter sos running namespace so it should not matter to have parameters named input, task etc.

Does your example work now?

It was broken due to a typo but I fixed it. Should be good now.

Thanks. I was editing directly on github.com (no access to desktop) and could not see the diff before I commit.


Fix averaging, correct a couple tmbi => tmbg typos

With the current averaging, the more steps are done, the lower the averages become. Proposed PR fixes that.

Natalia!


Logout for Shared Computers (Revoke the Token)

I apologize because I'm not entirely sure if this is an issue with nemiro.oauth, oauth in general or if I'm just missing something important.
In addition to the existing table-based login for my site, I'm adding some social logins.  Thanks to nemiro.oauth, that's going pretty quickly and working just fine for me.
Unfortunately, many of my users are going to be using a shared computer.  I was planning to add some code to my existing Logout button to disconnect the user's social logins as well but I can't find a method to do that.  From what I've read elsewhere, I think I need to revoke the token for each.  But the token is abstracted away from me so I'm not sure how to do that.  Even if it is possible (and I suspect you will tell me it is :)), I wonder if you might consider making a method (in OAuthWeb?) for it to keep it simple, or at least add it to Problems and Solutions.
Keep up the good work!

Unfortunately, not all providers support this feature. So I did not become do it.
But in the future I am planning to return to this issue and make updating and deactivation of the access token.
Thank you for your message!
This will speed up the process and maybe I will find a solution in version 1.9.

Thanks!
I really appreciate your efforts so far - and today's new release!

Were you thinking of adding a method to the client base class or just implementing in each provider client?  You mentioned that not all providers support this feature so, while I I'm experimenting, I'm adding this to just the provider client(s) for now.  Given the unlikelihood of getting a defined response, I wasn't sure how to implement a base method that would be distinguishable from an implemented override.  But, if you decide to add something to the base, it's no big deal - this can just be the override (for Google at least).  :)
/// <summary>
/// Revoke the token (a.k.a. log off)
/// </summary>
/// <returns>
/// <para>Nothing</para>
/// </returns>
public void RevokeToken()
    {
        // execute the request
        var result = OAuthUtility.Get("https://accounts.google.com/o/oauth2/revoke?token=" +
                              this.AccessToken["access_token"].ToString());
    }

I'd be happy to help add these to as many provider client implementations as we can (once you approve a template of how it should work).
...or would it be cleaner/better for me to just go get XxxxxxClient.AccessToken and do this in my code independently?

I have already started work in this direction. At the moment, there is only an outline.
OAuthBase
public virtual bool SupportRevokeToken
{
  get
  {
    return false;
  }
}

public virtual bool SupportRefreshToken
{
  get
  {
    return false;
  }
}

public virtual RequetResult RevokeToken(string accessToken = null)
{
  throw new NotSupportedException();
}

public virtual AccessToken RefreshToken(string accessToken = null)
{
  throw new NotSupportedException();
}

For each provider will have to write the code for refreshing and/or revoking an access token.
I have not yet fully decided on types and method names :-)
A little later, I will update the code in GitHub.

Awesome, thanks!

I think I've come to the realization that it's not (just) revoking the token that I need in order to log users out.
When I click on the button to login, the provider remembers who I am and helpfully logs me in again.  If one of my users saves their login on the shared computer, the next person won't be able to login.
Google has an authorization parameter of approval_prompt=force - and that seems to take care of it.  Are you aware of any other providers which support something like that?  Without it, I'm somewhat sunk (at least for people using the shared computer).

approval_prompt=force - is to re-request permissions.
You can specify any parameters when registering the client:
OAuthManager.RegisterClient
(
  new GoogleClient
  (
    "1058655871432-83b9micke7cll89jfmcno5nftha3e95o.apps.googleusercontent.com",
    "AeEbEGQqoKgOZb41JUVLvEJL"
  )
  {
    Parameters = new NameValueCollection { { "approval_prompt", "force" } }
  }
);

But if your browser cookies remain, it will not help. For safety, the user must have an account on a shared computer and/or should not save cookies.

I checked, revoke access token programmatically is available only for: Facebook, Dropbox and Google.

Thanks!  I think that's going to be another nail in the coffin for me.

Just do not save the access token in the application settings. Use memory. And clearing cookies.


Make it more obvious when cmdlet parameters are flag-based enumeration types

Summary of the new feature/enhancement

Parameters that are flag-based enumeration types (e.g., System.Management.Automation.ScopedItemOptions) i.e. types that allow combining values (bit-ORing) them implicitly accept an array of values, courtesy of PowerShell's flexible type conversions.

However, this fact isn't an obvious from the syntax diagrams; in effect you need to know the specifics of the parameter types in order to infer whether multiple values are accepted:

Purely on a formal level, the fact that the parameter type is a scalar (e.g. ScopedItemOptions) rather than an array (e.g., ScopedItemOptions[]) provides no indication - which is what you see with Get-Command -Syntax
Those cmdlets that provide MAML based help may explicitly list the individual enum values, but again there is nothing that indicates that combinations are allowed (and from the values themselves that cannot necessarily inferred).
If the parameter name is a singular (e.g., New-Variable -Option) rather than a plural (e.g., Get-ChildItem -Attributes), it too doesn't provide any clues.

Using the example of New-Variable with its -Option parameter:
# CURRENT behavior:
PS> Get-Command -Syntax New-Variable
New-Variable ... [-Option <ScopedItemOptions>]

Note the singular name, and the scalar type name, neither of which provide a strong clue that an array of values - e.g.,
New-Variable foo bar -Option ReadOnly, AllScope can be passed (the plural in the type name does to an extent, but not every flag-based enumeration is guaranteed to have that).
# CURRENT behavior:
PS> Get-Help  New-Variable
...
New-Variable ... [-Option {None | ReadOnly | Constant | Private | AllScope | Unspecified}] ...
...

The listing of all values again provides no clue that multiple values may be passed.
User shouldn't have to determine the full type name and perform a .NET documentation lookup just to learn when a given enum type is flag-based, i.e. accepts an array of values.
Proposed technical implementation details (optional)
As an aside, re documentation: the parameter descriptions should explicitly mention when a parameter type is a flag-based enumeration, and the examples should ideally comprise at least one command that shows a combination - see https://github.com/MicrosoftDocs/PowerShell-Docs/issues/7357

Enhance the syntax diagrams to indicate flag-based enumerations, e.g. with a trailing + (a trailing [] to suggest an array may get too cluttered, given the liberal use of [ and ] in syntax diagrams).

Selectively disable this for cmdlets where a flag-based enum is situationally used as a single-value parameter, such as Add-Member -MemberType, as @SeeminglyScience  points out, and he proposes using a new attribute, [SingleEnumValue] to decorate such parameters - this should drive both the syntax-diagram representation and should prevent attempts to pass multiple values at the parameter-binder level, and ideally also guide tab-completion behavior - see below.

Establish a convention to use the plural in the names of parameters whose type is a flag-based enumeration. [This contravenes established PowerShell practice, as @SeeminglyScience notes; the syntax diagram enhancement should be enough (and, as is already the case, properly named .NET flag enums imply their flag-based nature by a plural in their type name)]

Applied to the examples above:
# WISHFUL THINKING:
PS> Get-Command -Syntax New-Variable
New-Variable ... [-Options <ScopedItemOptions>+]

# WISHFUL THINKING:
PS> Get-Help  New-Variable
...
New-Variable ... [-Options {None | ReadOnly | Constant | Private | AllScope | Unspecified}+] ...
...

How does this will correlate with docs? Will we need with PowerShell-Docs repository process?

The linked issue suggests always making it explicit in parameter descriptions when a parameter implicitly accepts multiple (an array of) values due to its type being a flag-based enum, and also suggests making at least one of the examples show a call with multiple values.

If the syntax diagrams get enhanced, the topics would automatically reflect that, I presume, but the enhancement would also need to be described in about_Command_Syntax.

Will we need with PowerShell-Docs repository process?

I don't understand.

Will we need with PowerShell-Docs repository process?

I don't understand.

Sorry, I mean "sync". If we add new value to an enum the Engine will generate new syntax diagram automatically but static docs will be not updated.

But we're not talking about adding new values to existing enums here (which can cause backward compatibility issues) - this sounds like an unrelated issue to me.

I think @iSazonov is trying to ensure someone knows that docs would need to be explicitly regenerated if the syntax diagram were to be changed.

Enhance the syntax diagrams to indicate flag-based enumerations, e.g. with a trailing + (a trailing [] to suggest an array may get too cluttered, given the liberal use of [ and ] in syntax diagrams).

I think that's probably the way to do it.  Though not all parameters typed as flag enums will actually accept multiple values, like Add-Member -MemberType.  Maybe a additional attribute like SingleEnumValue to disable that conditionally.

Establish a convention to use the plural in the names of parameters whose type is a flag-based enumeration.

This would be counter to the typical recommendation of always singular, e.g. Get-ChildItem -Name instead of Names.

Thanks, @SeeminglyScience.
Good point about Add-Member -MemberType.
The plural issue is tricky, for sure - PowerShell and .NET clash here: PowerShell favors the singular, whereas by convention flag-based enums use plural names (e.g., ScopedItemOptions ).
But, given that explicitly array-based parameters have singular names too (e.g., -Path), I agree that it makes sense to stick with PowerShell's convention - I've updated the OP accordingly.
As for coordinating with the docs team to ensure regeneration: good point, but I think it makes sense to wait for this proposal to be green-lighted first.

P.S: I really like the [SingleEnumValueAttribute] idea, as it could drive not just the syntax diagram representation, but also parameter binding (Add-Member currently needs to use an explicit check, in the .ProcessRecord() method), and perhaps also tab-completion (which, however, currently happily lets you construct an array even for true scalar parameters, falling back to filename completion for the bogus elements - related to #14147).

transferring to the interactive wg


2020-10-10 Syncronizing datahub-web

7f757e3a Automatic pr creation Author: Ignacio Bona Date: Thu, 29 Oct 2020 19:53:02 -0700
2a7bbfc4 Bump metadata-models to fix features search Author: Ignacio Bona Date: Fri, 6 Nov 2020 15:49:28 -0800
3a73de43 META-13172: Datasets link not working on charts page Author: Ignacio Bona Date: Thu, 5 Nov 2020 11:13:23 -0800
5bb75a10 Fixing Change log modal Author: Ignacio Bona Date: Thu, 5 Nov 2020 10:48:36 -0800
69b3f4ac [META-13227] Adds session id information to tracking events Author: cptran777 Date: Tue, 3 Nov 2020 17:35:30 -0800
c85c30ea Adding entity name as caching key Author: Ignacio Bona Date: Wed, 4 Nov 2020 17:40:26 -0800

+1

+1

Fyi in github, go files changed -> review changes -> approve -> submit
:p


Please add custom stub

It could be epic if we can have a custom stub option.
IDK if this program has a backdoor I don't fully trust it, but that's great work.
What's the builder area btw... Because for the moment the injecter can only do every option mentioned but where is the payload BEFORE the injection?

if you belive there is backdoor instead of saying it you have to proof it  it s still foolish to say that there  is backdoor while you have the source code

if you belive there is backdoor instead of saying it you have to proof it it s still foolish to say that there is backdoor while you have the source code

You can put a release with a backdoor and put the source code without it.
Also I'm mainly a python coder and reading someone else code without a big amount of comment in a language that I don't really know is kinda hard for me.

you could use dnspy to read the code  i don t think it s issue to  accuse project of backdoor without any proof so i will close this issue


add variable layout dmc app

Hi @milanzmitrovic
Thanks for adding this example - I like the stocks data source, and it's great to see some more dash-mantine-components examples too!
I think it would be nice to show off a few more dmc components.  For example, instead of using html.Br we could use the dcm.Space component.  We could also use dmc.Title instead of html.H2
The example can be simplified by controlling the width of the DataTable using style_table={"overflowX": "auto"}, rather than wrapping the table in a dmc.Container. Also, Plotly Express figures accept data in either "wide" or "long" format, so there is no need to transform the data.
Here's a version I've been playing with.  The main thing I'm struggling with in both versions is that on certain screen sizes, you can't change the row/column orientation with the dropdown.  I think maybe the breakpoints are interfering.  Do you know a solution?  If not, what do you think of just relying on the breakpoints rather than having a dropdown?
from dash import Dash, dcc, Input, Output, dash_table, callback
import dash_mantine_components as dmc
import plotly.express as px

data = px.data.stocks()

app = Dash(__name__)

app.layout = dmc.Container(
    [
        dmc.Title("Equity prices - Line chart and Table data", align="center"),
        dmc.Space(h="xl"),
        dcc.Dropdown(
            ["Row oriented", "Column oriented"],
            value="Row oriented",
            id="variable-layout-x-layout-dropdown",
            placeholder="select columns or rows",
        ),
        dmc.Space(h="xl"),
        dcc.Dropdown(
            options=data.columns[1:],
            id="variable-layout-x-stock-dropdown",
            multi=True,
            placeholder="select stocks",
        ),
        dmc.Space(h="xl"),
        dmc.SimpleGrid(
            [
                dcc.Graph(id="variable-layout-x-line_chart"),
                dash_table.DataTable(
                    data.to_dict("records"),
                    [{"name": i, "id": i} for i in data.columns],
                    page_size=10,
                    style_table={"overflowX": "auto"},
                ),
            ],
            cols=1,
            id="variable-layout-x-simple_grid_layout",
            breakpoints=[
                {"maxWidth": "lg", "cols": 2, "spacing": "sm"},
                {"maxWidth": "sm", "cols": 1, "spacing": "sm"},
            ],
        ),
    ],
    fluid=True,
)

@callback(
    Output("variable-layout-x-line_chart", "figure"),
    Input("variable-layout-x-stock-dropdown", "value"),
)
def select_stocks(stocks):
    if stocks is None or stocks == []:
        stocks = data.columns

    fig = px.line(data, x="date", y=stocks, )
    fig.update_layout(
        margin=dict(t=50, l=25, r=25, b=25),
        yaxis_title="Price Change",
        xaxis_title="Date",
        legend_title_text='Stocks'
    )
    return fig

@callback(
    Output("variable-layout-x-simple_grid_layout", "cols"),
    Input("variable-layout-x-layout-dropdown", "value"),
)
def grid_layout(value):
    if value == "Row oriented":
        return 2
    return 1

if __name__ == "__main__":
    app.run_server(debug=True)

I think it would be nice to show off a few more dmc components. For example, instead of using html.Br we could use the dmc.Space component. We could also use dmc.Title instead of html.H2

---> Done! I put dmc.Space(), dmc.Title(), dmc.Select(), dmc.MultiSelect().

The example can be simplified by controlling the width of the DataTable using style_table={"overflowX": "auto"}, rather than wrapping the table in a dmc.Container. Also, Plotly Express figures accept data in either "wide" or "long" format, so there is no need to transform the data.

---> Thanks for this advice, I didn't know that Plotly can work with wide data. I always used to melt it into long format :) I learned sth very important in this example! Now code looks much easier to understand.

Here's a version I've been playing with. The main thing I'm struggling with in both versions is that on certain screen sizes, you can't change the row/column orientation with the dropdown. I think maybe the breakpoints are interfering. Do you know a solution? If not, what do you think of just relying on the breakpoints rather than having a dropdown?

---> I removed following lines and layout switching (vertical, horizontal) works good!
breakpoints=[
                {"maxWidth": 980, "cols": 2, "spacing": "sm"},
                {"maxWidth": 755, "cols": 2, "spacing": "sm"},
                {"maxWidth": 600, "cols": 1, "spacing": "sm"},
    ]

This is new version of code, please let me know what you think. If everything is good, I will update PR :)

from dash import Dash, html, dcc, Input, Output, dash_table, callback
import dash_mantine_components as dmc
import plotly.express as px
import pandas as pd

data = px.data.stocks()
data['date'] = pd.to_datetime(data['date'])

app = Dash(__name__)

app.layout = dmc.Container([

    dmc.Container([
        dmc.Title('Equity prices - Line chart and Table data', style={'textAlign': 'center'}),

        dmc.Select(
            label="Layout style",
            placeholder="Select one",
            id="layout-dropdown",
            value="Row oriented",
            data=['Row oriented', 'Column oriented']
        ),

        dmc.Space(h=20),

        dmc.MultiSelect(
            label="Select stock you like!",
            placeholder="Select all stocks you like!",
            id="stock-dropdown",
            value=["GOOG", "AAPL"],
            data=[{'label': i, 'value': i} for i in data.columns[1:]]
        ),

        dmc.Text(id="multi-selected-value"),

        dmc.Space(h=20),

    ], fluid=True),

    dmc.SimpleGrid([

        dcc.Graph(id='line_chart'),

        dash_table.DataTable(
            data.to_dict('records'),
            [{"name": i, "id": i} for i in data.columns],
            page_size=10,
            style_table={'overflow-x': 'auto'}
        ),
    ],
        cols=1,
        id='simple_grid_layout'
    )
],

)

@callback(
    Output('line_chart', 'figure'),
    Input('stock-dropdown', 'value')
)
def select_stocks(stocks):

    fig = px.line(
        data_frame=data,
        x='date',
        y=stocks,
        template='simple_white'
    )

    fig.update_layout(
        margin=dict(t=50, l=25, r=25, b=25),
        yaxis_title='Price',
        xaxis_title='Date'
    )

    return fig

@callback(
    Output('simple_grid_layout', 'cols'),
    Input('layout-dropdown', 'value')
)
def grid_layout(value):
    if value == 'Row oriented':
        return 2
    else:
        return 1

if __name__ == '__main__':
    app.run_server(debug=True)

HI @milanzmitrovic
Thanks for updating the app.   The dmc.Select and dmc.MulitSelect are nice additions, and yes, the layout updates properly using the dropdown with the breakpoints excluded.  My only concern - since we have so few dmc examples --  is that people might think dmc apps aren't responsive - and that it's necessary to use a callback to change the layout.
I think the date in the table looks nicer if you exclude this line:
data['date'] = pd.to_datetime(data['date'])

What's the purpose of putting  half the layout in a separate  dmc.Container?  I think the layout is easier to understand with only one dmc.Container  as the  outer container of the layout.
What is this line for?
dmc.Text(id="multi-selected-value"),

We can let Adam chime in here too :slightly_smiling_face:

HI @AnnMarieW

Thanks for updating the app. The dmc.Select and dmc.MulitSelect are nice additions, and yes, the layout updates properly using the dropdown with the breakpoints excluded. My only concern - since we have so few dmc examples -- is that people might think dmc apps aren't responsive - and that it's necessary to use a callback to change the layout.

--> Yeah, I see your point. That is good question. Initial idea was to create app that will show possibilities of dmc layout. I do not know, lets see what Adam thinks?

I think the date in the table looks nicer if you exclude this line:
data['date'] = pd.to_datetime(data['date'])

--> I removed this line, seems unnecessary.

What's the purpose of putting half the layout in a separate  dmc.Container? I think the layout is easier to understand with only one dmc.Container as the outer container of the layout.

--> It was useful in some of previous version of app, now it is unnecessary. I removed inner dmc.container.

What is this line for?
dmc.Text(id="multi-selected-value"),

--> I do not know, probably I used it in some of previous version of app. Right now it is not used, so I removed it.

from dash import Dash, dcc, Input, Output, dash_table, callback
import dash_mantine_components as dmc
import plotly.express as px

data = px.data.stocks()

app = Dash(__name__)

app.layout = dmc.Container([

    dmc.Title('Equity prices - Line chart and Table data', style={'textAlign': 'center'}),

    dmc.Select(
        label="Layout style",
        placeholder="Select one",
        id="layout-dropdown",
        value="Row oriented",
        data=['Row oriented', 'Column oriented']
    ),

    dmc.Space(h=20),

    dmc.MultiSelect(
        label="Select stock you like!",
        placeholder="Select all stocks you like!",
        id="stock-dropdown",
        value=["GOOG", "AAPL"],
        data=[{'label': i, 'value': i} for i in data.columns[1:]]
    ),

    dmc.Space(h=60),

    dmc.SimpleGrid([

        dcc.Graph(id='line_chart'),

        dash_table.DataTable(
            data.to_dict('records'),
            [{"name": i, "id": i} for i in data.columns],
            page_size=10,
            style_table={'overflow-x': 'auto'}
        ),
    ],
        cols=1,
        id='simple_grid_layout'
    )
],

)

@callback(
    Output('line_chart', 'figure'),
    Input('stock-dropdown', 'value')
)
def select_stocks(stocks):

    fig = px.line(
        data_frame=data,
        x='date',
        y=stocks,
        template='simple_white'
    )

    fig.update_layout(
        margin=dict(t=50, l=25, r=25, b=25),
        yaxis_title='Price',
        xaxis_title='Date'
    )

    return fig

@callback(
    Output('simple_grid_layout', 'cols'),
    Input('layout-dropdown', 'value')
)
def grid_layout(value):
    if value == 'Row oriented':
        return 2
    else:
        return 1

if __name__ == '__main__':
    app.run_server(debug=True)

HI @milanzmitrovic Hi @AnnMarieW
Thank you both for working on this app. I agree that allowing users to manipulate the app layout through a callback risks giving them the impression that dynamic layouts in DMC needs a callback and is more complicated than necessary. I much prefer the built-in breakpoints to generate dynamic layout since it's easier than the callback.
The app has great dmc features so it's a perfect learning opportunity for our readers. Also, I added the dcc.download to the app since we have two examples (D-12) on the example-dash-index site, and with this app we can now add a link to the dash docs download  page.
Please feel free to comment on the code. If you're both ok with it, feel free to update the PR, Milan.
from dash import Dash, dcc, html, Input, Output, dash_table, callback
import dash_mantine_components as dmc
import plotly.express as px

data = px.data.stocks()

app = Dash(__name__)

app.layout = dmc.Container([

    dmc.Title('Equity prices - Line chart and Table data', style={'textAlign': 'center'}),

    dmc.Space(h=20),
    dmc.Button("Download Data", id="btn_csv"),
    dcc.Download(id="download-dataframe-csv"),
    dmc.Space(h=10),

    dmc.MultiSelect(
        label="Select stock you like!",
        placeholder="Select all stocks you like!",
        id="stock-dropdown",
        value=["GOOG", "AAPL"],
        data=[{'label': i, 'value': i} for i in data.columns[1:]]
    ),

    dmc.Space(h=60),

    dmc.SimpleGrid([

        dcc.Graph(id='line_chart'),

        dash_table.DataTable(
            data.to_dict('records'),
            [{"name": i, "id": i} for i in data.columns],
            page_size=10,
            style_table={'overflow-x': 'auto'}
        ),
    ],
        cols=2,
        id='simple_grid_layout',
        breakpoints=[
            {"maxWidth": 1500, "cols": 2, "spacing": "md"},
            {"maxWidth": 992, "cols": 2, "spacing": "sm"}, # common screen size for small laptops
            {"maxWidth": 768, "cols": 1, "spacing": "sm"}, # common screen size for tablets
        ]
    )
], fluid=True, px=100
)

@callback(
    Output('line_chart', 'figure'),
    Input('stock-dropdown', 'value')
)
def select_stocks(stocks):

    fig = px.line(
        data_frame=data,
        x='date',
        y=stocks,
        template='simple_white'
    )

    fig.update_layout(
        margin=dict(t=50, l=25, r=25, b=25),
        yaxis_title='Price',
        xaxis_title='Date'
    )

    return fig

@callback(
    Output("download-dataframe-csv", "data"),
    Input("btn_csv", "n_clicks"),
    prevent_initial_call=True,
)
def func(n_clicks):
    return dcc.send_data_frame(data.to_csv, "mydf.csv")

if __name__ == '__main__':
    app.run_server(debug=True)

@milanzmitrovic don't forget to please update the ID so they start with filename-x-


patchelf: 0.14.3 -> 0.14.5

Update patchelf from 0.14.3 to 0.14.5 (they appear to have skipped 0.14.4).
Motivation for this change
This contains a bugfix needed in order for nixpkgs to work on mips64.
Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Due to the number of rebuilds this causes it needs to go to staging instead of master.

Regarding the ofborg failures:
The job running on runner GitHub Actions 4 has exceeded the maximum execution time of 360 minutes.

The operation was canceled.

If I'm reading this correctly this is not necessarily and indication of a problem with the PR.  I think ofborg is just saying that the PR causes so much stuff to rebuild that it skipped the check?

I think ofborg is just saying that the PR causes so much stuff to rebuild that it skipped the check?

Yes, it often fails with anything that causes a stdenv rebuild.


Installation of GGTOOLS

I couldn't install ggtools on python 3.8.0 because cartopy have not .whl file for this version. Please, give some suggestions. Thank you very much.

The test and installation environment of ggtools is py37. Maybe it would be better for you to switch to py37. Alternatively, it is also possible to suggest Cartopy to upgrade to py38.

你好，
我用命令pip install ggtools时
提示ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-install-twpv1we6\pySphericalPolygon\setup.py", line 6, in
long_description=open('README.rst').read(),
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa4 in position 1138: illegal multibyte sequence
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-install-twpv1we6\pySphericalPolygon
python版本：3.7.3。
安装源文件
提示：Processing dependencies for ggtools==1.1.3
error: numpy 1.16.5 is installed but numpy>=1.17.4 is required by {'pyshtools'}
而我numpy版本是1.17.4，请问如何解决呢？谢谢！

I have mentioned the 'gbk' error to the developers of pySphericalPolygon a few weeks ago, but they are currently on Christmas, so there is no reply yet. For the solution of this problem, please refer to https://github.com/omrivolk/pySphericalPolygon/issues/3. For the second question, just upgrade numpy with conda or pip.

I have mentioned the 'gbk' error to the developers of pySphericalPolygon a few weeks ago, but they are currently on Christmas, so there is no reply yet. For the solution of this problem, please refer to omrivolk/pySphericalPolygon#3. For the second question, just upgrade numpy with conda or pip.

I have tried the method you gave, but the problem still exist by using the two installation method . My numpy version is 1.18.0。I am confused.

By replacing the pySphericalPolygon package with the newly developed sphericalpolygon package, the installation issue with GGTOOLS has been fixed. Try reinstalling ggtools or upgrading to the latest version.


Can I create workflow with jaeles?

Jaeles has a lot of feature but one feature is missing that is connecting many template like nuclei. I use nuclei only for that feature. But I really love it jaeles has that same feature too

Yup, I'm planning to add that on the next release :D.

Ohhh thanks bro.. then it will be most powerful tool ever


Include visual and bonding System Analysis

Is your feature request related to a problem? Please describe.
The current code successfully determines the shortest distances from each site and generates a .json file. Using this json file, we want to generate a distribution of bonds for compounds with the identical unique elements. Here are current sketches for a ternary and a binary system, respectively.

Furthermore, we want to generate Excel files containing the number of bonds for each structure types shown below.

system_analysis_bond.xlsx
system_analysis_overview.xlsx

It has been implemented in https://github.com/bobleesj/cif-bond-analyzer/pull/20.


Describe how to redirect from load function but preserving query

Describe the problem
I just spent a lot of time debugging an issue where apparently our url query was being url encoded twice.
The issue stemmed from the following approach in a load function
export const load = async ({page}) => {
  if (page.path === '/actions' {
    return {
       status: 301,
       redirect: `/actions/board?${page.query}`,
    }
  }
...
}

However when calling toString on an instance of UrlSearchParams the resulting string is url encoded, and it appears that the string returned as redirect is also encoded causing it to be encoded twice.
Describe the proposed solution
The most awesome approach would be kit detecting this issue and when compiling inserting decodeURI
 return {
   status: 301,
   redirect: `/actions/board?${decodeURI(page.query.toString())}`,
 };

However you could argue that this would be too much "magic".
Alternatives considered
An alternative approach could be a secondary argument for the return type of a load function that preserves existing query params on redirect
 return {
   status: 301,
   redirect: `/actions/board`,
   preserveQuery: true
 };

However this could be argued as inelegant, as it would both be an unnecessary property in 90% of the load cases, and it would be difficult it you wanted to preserve the existing query, and append a parameter
Importance
would make my life easier
Additional Information
As a minimum I would suggest updating the docs here to make it clear that the string is url encoded and you don't have to do it on your end.

In my opinion, the most user friendly thing would be to not automatically encode the redirect url in the first place, that seems like some unexpected magic to me.

Agreed. I just got bitten by this and it took a long time to track down the issue. This sort of auto encoding isn't standard or expected as far as I know. And you'd think generating the query from URLSearchParams should be supported, but right now it isn't. I'd call this a bug, not just lack of documentation.

At a certain point we stopped URL-encoding redirects, so this should work correctly:
export const load = async ({page}) => {
  if (page.url.pathname === '/actions' {
    return {
       status: 301,
       redirect: `/actions/board?${page.url.searchParams}`,
    }
  }
...
}


Added forth.

Can't say it wasn't fun!
I went ahead and added an exercise skeleton, to guide the student.
Let me know if it's ok or not. :)

I like it. The code is very readable, feels idiomatic and doesn't suffer from unwrapitis.
Thanks for putting in the effort to translate such a big exercise.

Thank you! :bow:


RC source-build build fails building coreclr with cmake error on RHEL 7.4

Scanning dependencies of target clrjit [ 74%] Building CXX object src/utilcode/dyncrt/CMakeFiles/utilcode.dir/__/__/__/version.cpp.o [ 74%] Linking CXX static library libutilcode.a [ 74%] Building CXX object src/jit/standalone/CMakeFiles/clrjit.dir/__/alloc.cpp.o error: Could not read profile: Unsupported format version [ 74%] Built target utilcode 1 error generated. make[2]: *** [src/jit/standalone/CMakeFiles/clrjit.dir/__/alloc.cpp.o] Error 1 make[1]: *** [src/jit/standalone/CMakeFiles/clrjit.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Scanning dependencies of target protononjit

I think this might be a clang error rather than a CMake error.  I have a working machine with CMake <IP_ADDRESS> and clang 3.9.1 and a repro machine with CMake 3.3.2 and clang 3.6.2.

If it's clang, I think it could be fixed by adding the -nopgooptimize flag in CoreCLR, trying this now.

cc @omajid

I built using the prereqs Docker image from CI and it built without issues: cmake 3.3.2 and clang 3.6.2 These are the same as my repro machine that uses an older prereqs image.

Wild guess based on this:  Do you have any packages matching optimization.*.PGO.CoreCLR?  I'm wondering if they don't get included in the tarball.

On prereqs_2 there was no occurrence of profile-instr-use. Ergo, PGO wasn't used.

Ok, I logged https://github.com/dotnet/source-build/issues/514 to get our environment right and turn PGO back on by default.

Fixed by #513.

One last follow-up: according to LLVM, PGO requires LTO which requires LLVMgold which requires ld plugin support.  On our CI docker image I get:
[root@77810b22880b /]# ld -plugin
ld: unrecognized option '-plugin'

which indicates no plugin support, vs my working PGO machine with
[chris@crummel-rh2 ~]$ ld -plugin
ld: -plugin: missing argument

So that seems to be the root cause of PGO not running on the CI image at all.
(I'll put this in the other issue too).


Custom Advancements

Just adding custom advancements which FTB has a mod u can do this with which would help with mod progression / help people start with some mods they wouldnt of tried before :)

Duplicate of Custom Quests


Constraint DSL: Halo

Halo around physical or virtual subcircuits:
{
  "constraint": "Halo",
  "north": Optional[int]
  "south": Optional[int]
  "east": Optional[int]
  "west": Optional[int]
  "instances": Optional[List[str]]
}

Example # 1:
{"constraint": "Halo", "north": 100, "south": 100}

There should be >=100nm gap between the north and south boundary for the subcircuit being placed.
Example # 2:
{ "constraint": "GroupBlocks", "instances": ["a", "b"], "instance_name": "xgm"}
{"constraint": "Halo", "east": 100, "west": 100, "instances": ["xgm"]}

There should be >=100nm gap between the east and west boundary for the subcircuit to be generated for xgm.

#1244 extends Boundary constraint instead of adding a new constraint.


Library not supporting image cropping in iOS WebView

I have implemented the library in ReactJS website to crop images after they've been selected by the user. I am then loading the React web page in a WebView in an iOS app.
However, the library in unsupportive towards cropping images with 24 MP resolution (res 4284 X 5712) from the iPhone 15 Pro Max photo gallery which is selected by the user from the WebView of the iOS app.
Would like you to provide support for HEIC images with 24 MP (res 4284 X 5712) resolution.

HEIC is not supported by browser canvas element so you have to crop it on
the server. There is nothing this library can do to support HEIC. Also this
library doesn’t do crop previews, an example is in the demo but it’s not
bullet proof, you will have to resize your crop previews down to a max size
so that they don’t hit iOS size limits
On Tue, 7 May 2024 at 15:27, rahul-appinventiv @.***>
wrote:

I have implemented the library in ReactJS website to crop images after
they've been selected by the user. I am then loading the React web page in
a WebView in an iOS app.
However, the library in unsupportive towards cropping images with 24 MP
resolution (res 4284 X 5712) from the iPhone 15 Pro Max photo gallery which
is selected by the user from the WebView of the iOS app.
Would like you to provide support for HEIC images with 24 MP (res 4284 X
5712) resolution.
—
Reply to this email directly, view it on GitHub
https://github.com/sekoyo/react-image-crop/issues/589, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFZT6VSUTG5L3SUAPS32V3ZBB645AVCNFSM6AAAAABHKM7MZ2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI4DENJQGI4DANI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@sekoyo  HEIC, in a way, is supported by browser canvas element. Otherwise, I would not have success with cropping images with lesser resolutions on iPhone 13 (all variants), iPhone 14(all variants) & iPhone 15.

Ah yes you’re right, it’s supported in safari
On Tue, 7 May 2024 at 15:37, rahul-appinventiv @.***>
wrote:

@sekoyo https://github.com/sekoyo HEIC, in a way, is supported by
browser canvas element. Otherwise, I would not have success with cropping
images with lesser resolutions on iPhone 13 (all variants), iPhone 14(all
variants) & iPhone 15.
—
Reply to this email directly, view it on GitHub
https://github.com/sekoyo/react-image-crop/issues/589#issuecomment-2097646988,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFZT6RPHBIIQXCTVQZ7ADTZBCAEPAVCNFSM6AAAAABHKM7MZ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJXGY2DMOJYHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Ah yes you’re right, it’s supported in safari
…

So would you please look into how the library can provide support for cropping HEIC images with 24 MP (res 4284 X 5712) resolution in a WebView on iOS?
My app is about to go live and this is the only issue stopping my client from marketing their product.

@rahul-appinventiv did you find any solution, i doing exactly the same using web page in mobile webview, but the cropped image does not match user selection

@AsadAlihp None.
Waiting for @sekoyo to fix this.


"track_files nil" not respected in latest release

I believe this is due to a bug introduced in #447, per my comments here: https://github.com/colszowka/simplecov/pull/447/files

Actually, on second look, those comments weren't accurate.  The issue seems to remain though that the config setting isn't respected anymore.

Could you expand on what you mean by "the config setting isn't respected anymore"? Is that true no matter what is passed to track_files or only with nil?

@craiglittle, we just did some more investigation and it indeed seems like the issue is that track_files nil no longer has any effect.  track_files false works though.
Is this change intentional? If so, maybe the solution is to simply add a note to the changelog.


BUG: Dark mode is not working in Team page

Is there an existing issue for this?

[X] I have searched the existing issues

What went down?
https://github.com/mdazfar2/HelpOps-Hub/assets/125277258/ae67728c-4d4c-43a9-8ba7-a23d06454082
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@RamakrushnaBiswal jus i have to link js to this page

i know after assign me i can do it @pandeyji711


Fix use of FingerTree.search

The predicate needs to satisfy the properties given in the docs
http://hackage.haskell.org/package/fingertree-<IP_ADDRESS>/docs/Data-FingerTree.html#g:4
Fixed uses of search in TxSeq and in ChainFragment and added a test for TxSeq and added an additional test for ChainFragment. The ChainFragment test was not failing, but it's not clear to me yet why not.

Nice catch!


Please allow us to make "Progressive Web Apps" using dragon.

Is your feature request related to a problem? Please describe.
Making "Progressive Web Apps" for popular smartphone devices using the dragon web framework.
Describe the solution you'd like
The future of smartphone Apps will be based on using web framework based apps such as using the concept of "Progressive Web Apps". Due to the fact that only one or two languages can be used to do front end, back end and App development work all under the dragon web framework. "Progressive Web Apps" is highly productive and it is gaining massive traction now. I believe it will be the best interest for the "Dragon" web framework to allow C++ developers to make "Progressive Web Apps" using the dragon web framework due to not using node.js.
Describe alternatives you've considered
node.js, which is "no bueno".
Additional context
Documentation and tutorials on how to get started with "Progressive Web Apps" development using the dragon web frame work. Many C++ developers would be able to do a full stack professional work only using C++, JavaScript, HTML and CSS, gaining high performance and productivity. Best of all we do not need much effort to mess with swift/android dev tools which is a career of it own.

Thanks for your feature request. I am actually working on a mobile project where Drogon is used as a backend layer for the client applications (Android & iOS), so that code from server & client can be reused (like the data model, or the service layer).
I have made the following observations:

Actually the toughest part is the integration of C++ into a native iOS / Android project, and can easily take an extensive amount of time to fine-tune things and get the whole setup working. As this is highly project-dependent I don’t see how the framework or its tools like drogon_ctl could assist here.
While it probably would be possible to create native mobile applications without entering the appropriate IDEs, you still need their proprietary tools to deploy to both platforms. The best integration speaking in practical terms from my experience after I tried several approaches is to have a structure with at least three projects: one backend project that can be cross-compiled on server, iOS & Android, one iOS project with Swift, and Objective-C++ as the bridge to C++, and one Android project with Kotlin + JNI as the bridge.
As it is already possible to integrate other client side JavaScript frameworks with Drogon (the official Drogon website uses Vue.js for the frontend as an example), PWAs should also be possible, but the tools support is missing, and there are probably some open deployment questions regarding the specific platforms.

It also depends on the PWA frontend framework how to integrate native code. With Flutter as an example, which does not really integrate with native tools, but uses message passing instead, you will still need to do the project setup described in the first step. In the end you will need all the different technologies + the frontend framework, which will make the whole setup even more complicated to the point where I’m not sure it’s worth anymore.
To sum it up: I think this should be possible, but I see the future more in native frameworks of the mobile vendors. SwiftUI and Jetpack Compose are already declarative, and very similar to HTML, they are even similar to themselves. This way the complicated backend & service logic can be moved to Drogon, while you can still use native, compiled, and fast frameworks to render the UI on mobile devices, which usually consists of simpler code parts. You also get the benefit that you can fully use the underlying hardware, and integrate with mobile payment services, which is not always possible with PWAs.

@rbugajewski thank you for the helpful information.


Revisit isEmpty methods

Currently generating isEmpty methods, but they might actually not be needed.  It doesn't seem like the other languages need them, and if folks build their protos into modules/frameworks, they might not deadstrip, bloating things up.  So if they aren't really needed (maybe for the current isEqualTo (and that might not be fully correct)), dropping them is likely the correct call.

<Standard reminder that adding stuff later if there's demand is always possible, but removing isn't.>

I think the generated isEmpty is only still being used in one case:  the equality test on messages uses it to ensure that a message with no allocated storage class is considered equal to one where the storage class is allocated but "empty."
An alternative approach would be to always allocate the backing storage object.  Then this case never arises.  Empty objects (allocated but with no fields set) should be uncommon, so I don't see a big drawback.  It would also simplify the uniqueStorage() implementation.


Fix spacing issues of cards on home page for large screens

Description
Currently the spacing for the people and encounter summary cards gets messed up on very large screens.
Acceptance Criteria

[x] The cards top layer still line up with the bounds of the page (ie, last one is in line with the button)
[x] The bottom cards do not end up spread out.

Implementation details

This is happening because the cards are currently being displayed as flex box space around
This may require some fiddling with the gap, or even the other component spacing.

Testing notes

Make sure to test it still lines up nicely for a range of sizes, including small screens.

I've fixed it in the final bug fixes prs!


Scrollbar Issue

I wanted to just use the scrollbar directives in my project that uses ui.bootstrap.
I have dropdown menu, which I want to limit in size and at the lumx scrollbar to.
However, the scrollbar either doesn't appear or is incorrectly sized.
See: http://plnkr.co/edit/FBaCx1u7lg2oDNwwo0mW?p=preview (make sure to have the preview pane wider than 1024px)

Scrollbar will soon be deprecated as we choose to use the browser scrollbar.


optimize downloads by skipping already-downloaded files

This is analogous to the upload --resume_media option, but is
enabled all the time instead of being optional since the overhead
is so low. We're already querying every media, so just including the
md5 (or image_md5) field is almost for free. Then we have the md5sum
handy in case there is an existing file at the destination local path,
and decide whether that local file is valid or not.
download_file() was changed to take md5 argument for when it is available;
when it is not available, just put in an empty string. Don't want it
to be an arg with default, because sometimes passing it and sometimes
not could mess with the way download_files() is passing it arguments.

Not a huge fan of complicating download_file with a new argument that seems unlikely to be used outside of this one use case.
I'd prefer to have a separate method for filtering out downloads that already exist locally by md5 hash (or a function that filters and then calls download_file(s) such as download_changed_files).
If you'd rather keep this logic in download_files it may be time to switch from using arbitrary tuple of args to a namedtuple or small dataclass to make passing "assets" around easier.

I was intending to put this at the download_file() level so that API users calling media.download() would have the benefit as well, including conservator videos download which could be use to script large sets of video downloads.

Not great, but better?


Fix bug in glob pattern matching

What's changed?
The bug makes it incorrectly overmatch the path a-test/test.txt from the glob pattern **/*-test/*-test/test.txt.
Anyone you would like to review specifically?
@shanman190
Any additional context
https://github.com/openrewrite/rewrite/issues/3658
Checklist

[x] I've added unit tests to cover both positive and negative cases
[x] I've added the license header to any new files through ./gradlew licenseFormat
[x] I've used the IntelliJ IDEA auto-formatter on affected files

Thanks @Wallman for the bug fix! 🎉


Channel: Add delete function

About

Just easy way to delete channels
Status

[x] These changes have been tested against Discord API or do not contain API change.
[ ] This PR includes only documentation changes, no code change.
[ ] This PR introduces some Breaking changes.

Why not just use guild.channels.delete(id)?

(By the way, if anything, this method should be on the GuildChannel class, as it's not possible to delete non-guild channels, such as (group) DMs.)

(By the way, if anything, this method should be on the GuildChannel class, as it's not possible to delete non-guild channels, such as (group) DMs.)

Technically you have how to close the channel, but i do not know the difference of this for a bot

Why not just use guild.channels.delete(id)?

I did not know I had but, if receive only the channel is kinda weird do GuildChannel.guild.channels.delete(GuildChannel.id) but it makes sense

Technically you have how to close the channel, but i do not know the difference of this for a bot
You're right, it's the same endpoint.

Seems reasonable to me. But should be a part of GuildChannel class, not Channel (which includes DM channels that cannot be deleted).


Daemon not starting

I build hemcoin daemon on ubuntu 16 when I start ./hemcoind i got this error
root@ubuntu-512mb-nyc3-01:~/thc/src# ./hempcoind
root@ubuntu-512mb-nyc3-01:~/thc/src# Hempcoin server starting
Hempcoin: Error initializing database environment /root/.Hempcoin! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.
It won't start.

I'm sry after a fresh re-build everything works fine.


An all-in-one #define directive for the double precision.

Suggestion
It’d be convenient if jc_voronoi.h could provide a single #define flag that sets all the following directives by default:
#define JC_VORONOI_IMPLEMENTATION
#define JCV_REAL_TYPE double
#define JCV_ATAN2 atan2
#define JCV_SQRT sqrt
#define JCV_FLT_MAX DBL_MAX
#define JCV_PI 3.141592653589793115997963468544185161590576171875

because I believe that, most of the time, those settings are not configured separately.

Hi @issuefiler
The point is to have configurability since some users do use their own functions of the game engine etc.
Also you can easily do this yourself in a wrapper header that you use.
As such, I don't think there's enough merit to bring this change the code.


fixed header width

The navigation bar of the close menu is not the right width

The navigation bar of the close menu is not the right width

This happens when the sidebar shrinks


Display placeholder while first plot is loading

Currently, the user does not see any output while the first plot is being created. We can use asynchronous calls so that a placeholder is put in place while the data is loaded and the plot processed.

This is being done as part of #21, so closing as duplicate


Comments are lost when running ts function

Starting with the following resource:
apiVersion: v1
kind: Namespace
metadata: # this is a test
  name: foo

And I run the label_namespace function:
kpt fn source . | node <path to func> -d label_name=color -d label_value=orange | kpt fn sink .

The result is:
apiVersion: v1
kind: Namespace
metadata:
  name: foo
  labels:
    color: orange

The expectation here is that the comment on the metadata field should be preserved.

@mengqiy Can you also see if this happens with Go SDK ?
This is a critical bug because this will impact the pkg update functionality.

I will take a look at this this afternoon.

https://github.com/GoogleContainerTools/kpt/issues/1815 may be related.

@mortent We don't have a label_namespace function, what function are you running?

@mengqiy I was using the label_namespace that is one of the examples in the Typescript SDK.

The TS SDK uses https://www.npmjs.com/package/js-yaml which doesn't support and doesn't have a plan to support preserving comments: https://github.com/nodeca/js-yaml/issues/494 https://github.com/nodeca/js-yaml/issues/549
yawn-yaml is an lib that claims to preserve comments. But it appears the project is not actively maintained. Using it directly may introduce other issues.
We may need to explore other ways to preserve comments.

Looking at the functions in cnrm.git.corp.google.com/blueprints, it looks like only generate-folders functions is written in ts.
I have snyc'd with @droot. kpt has some logic to copy comments in the orchestrator layer, but it appears it doesn't work. I will need to investigate it.

render and eval preserve comments by copy comment from input resources to function output resources.
However, using pipe will lose comments if functions don't preserve comments.
kpt fn source . | node <path to func> -d label_name=color -d label_value=orange | kpt fn sink .

We should document it in the developer guide.

When you invoke a function using kpt fn render or using fn eval, kpt preserves the comments across the function execution. So the function can completely drop the comments, but orchestrator (kpt in this case) will restore the comments. The way comment preservation logic works is that it keeps the state in memory that maps the comment to the
YAML document node in the AST. This saves the function authors from writing their own comment preservation code, like in this case, TS SDK doesn't preserve comments.
However, in this case, since the function is invoked directly on the resources using unix PIPE syntax (not through kpt fn render|eval command), the comments can not be preserved (so it is working as expected). The issue can be avoided by invoking the function using following steps (still need to verify):

Wrapping node <path to func> - label_name=color -d label_value=orange in a bash script  set-label.sh
kpt fn source . | kpt fn eval - --exec-path set-label.sh | kpt fn sink .

@mengqiy do you see any holes in my logic above ?
@mikebz removing customer label since it doesn't affect the generage-folders function because they are always invoked using kpt fn commands and also lowering the priority.

do you see any holes in my logic above ?

I think this should work

The general problem here is tracked by https://github.com/GoogleContainerTools/kpt/issues/2046
I think we need to make this easier by using something like option 2

I think we need to make this easier by using something like option 2

Yes, your are right, this can be eliminated by supporting option 2 in #2046
I think supporting option 2 enables invoking wrappers very easily, for ex,
fn eval --exec-path node path/to/my.js -- <function-args>

fn eval --exec-path startlark path/to/starlark-script -- <function-args>

I, now realize, may be renaming --exec-path to --exec might be better. @frankfarzan WDYT ?
@Shell32-Natsu

Renaming to exec sounds good to me. We should do that sooner rather than later.

fn eval --exec-path startlark path/to/starlark-script --

This doesn't make a lot of sense to me.
When user develops starlark functions, they can do the following:
fn eval --image gcr.io/kpt-fn/startlark:v0.1 --fn-config path/to/starlark-fn-config

The starlark image is not changing. It is easy enough for developer to iterate on the starlark script.

Had a offline chat with @Shell32-Natsu Rename --exec-path to --exec. Will involve updating the docs as part of that.

The starlark image is not changing. It is easy enough for developer to iterate on the starlark script.

During the function development mode, developer can work directly on the starlark script without editing the script in the YAML. They can use their existing IDE tooling etc. to develop starlark script. That's the benefit I see.

I guess we don't want to maintain a standalone starlark interpreter.
We can provide a small tool to wrap a starlark script in a StarlarkRun CR.
The UX would be:
$ wrapStarlarkScript --input=path/to/source.star --output=path/to/starlark-fn-config.yaml
$ fn eval --image gcr.io/kpt-fn/startlark:v0.1 --fn-config path/to/starlark-fn-config.yaml


@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I rerendered the recipe in conda-forge/geoalchemy-odm2-feedstock#4.


BlockChain - Piece: Adding kittie details

Adding more details of kitties such as Gender, Tradable status, Price, and Name.
This was in the proposal.

This is done
Blockcside implementation
Name of Kitty : https://github.com/mlabs-haskell/Tuxedo/blob/4caa90a2cc88b70973427c55c154f5af224118b8/wardrobe/kitties/src/lib.rs#L212
Price : https://github.com/mlabs-haskell/Tuxedo/blob/4caa90a2cc88b70973427c55c154f5af224118b8/wardrobe/tradable_kitties/src/lib.rs#L60
Gender no need to add , since parent field is samin KittyData is same as Gender.
Tradable status is also not needed , as Price field is Option i.e it can take any of the 2 values i.e Some() Or None
If it None , then kitty is not for sale and if it is Some() then kitty is for sale.

Since blockchain-side implementation is done I moving to Done as it is already submitted in the https://github.com/mlabs-haskell/Tuxedo


Bump to v1.1.2

Codecov Report

Merging #98 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #98   +/-   ##
=======================================
  Coverage   88.73%   88.73%
=======================================
  Files           9        9
  Lines         870      870
=======================================
  Hits          772      772
  Misses         98       98

Continue to review full report at Codecov.

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

@mstruebing 👋Can you publish the new version to AUR?


Broken decimal parsing when using BeforeValidator

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
The Pydantic docs  specify that decimal.Decimal can be properly parsed even when in strict mode.
This works fine, when not using a BeforeValidator. But when using a noop BeforeValidator this breaks, as the values are already parsed as floats.
I have added example code for better understanding:
from decimal import Decimal
from typing import Any

from pydantic import BaseModel, model_validator

class M(BaseModel):
    a: Decimal
    b: Decimal
    c: Decimal

    @model_validator(mode="before")
    @classmethod
    def val(cls, value: Any) -> Any:
        #value["a"] is of type float
        return value

if __name__ == "__main__":
    json = """{"a": 0.1, "b": 0.1, "c": 0.1}"""
    m = M.model_validate_json(json, strict=True)

This results in:

3 validation errors for M
a
Input should be an instance of Decimal [type=is_instance_of, input_value=0.1, input_type=float]
For further information visit https://errors.pydantic.dev/2.7/v/is_instance_of
b
Input should be an instance of Decimal [type=is_instance_of, input_value=0.1, input_type=float]
For further information visit https://errors.pydantic.dev/2.7/v/is_instance_of
c
Input should be an instance of Decimal [type=is_instance_of, input_value=0.1, input_type=float]
For further information visit https://errors.pydantic.dev/2.7/v/is_instance_of

When you delete the "val"-method it does not output any error.
Python, Pydantic & OS Version
pydantic version: 2.7.1
        pydantic-core version: 2.18.2
          pydantic-core build: profile=release pgo=true
               python version: 3.12.3 (tags/v3.12.3:f6650f9, Apr  9 2024, 14:05:25) [MSC v.1938 64 bit (AMD64)]
                     platform: Windows-10-10.0.19045-SP0
             related packages: mypy-1.10.0 typing_extensions-4.11.0

This is the expected behavior of the before (model) validator, the input is untouched. You probably want to use an after model validator: in this case, value["a"] will be a Decimal instance. If you need more flexibility, you can also use a wrap validator

Please note, that I am not doing any validation. I am using the BeforeValidator as simple hook, to do something else before the validation starts.
From my POV a noop BeforeValidator should not break the validation.
From the docs  i would expect that a, b and c are strings at the before validation stage.
Also decimal seems to have another problem with lossy data, which may or may not be related to the data being passed as float instead of a string.

After thinking some more about it, i guess that pydantic is switching from json validation to python validation, when a BeforeValidator exists. This would be quite strange behaviour.
On the data type in the BeforeValidator side note: probably everything should be a string at this stage. For ints it is no problem, but floats have already lost precision at this point (I can not get it back at this stage), if i want to do my own validation.

Hmm, I would still expect this to work with a before validator. I'll chat with the team first thing tomorrow and solidify whether or not this is expected behavior.
Thanks for reporting this issue!

Yes my bad it's only with a plain validator that nothing gets called after the plain validator!

Oke perfect, thanks :)

Indeed, this is a bug!


Create mspvl

mspvl.com - MSP Velayuthanadar Lakshmithaiammal Polytechnic Collegem Pavoorchatram

@smtwkla Please rename lib/domains/com/mspvl to lib/domains/com/mspvl.txt

@smtwkla Pull request merged. Thank you!


Configure dependabot for xterm.js, TypeScript, and React

Adds a Dependabot configuration to the repository.

Configuration Added: A .github/dependabot.yml file is introduced to enable Dependabot updates for the project.
Package Ecosystem: Specifies the package ecosystem as "npm" and sets the directory to the root ("/").
Schedule: Configures Dependabot to run on a weekly schedule.
Versioning Strategy: Implements a versioning strategy where Dependabot ignores patch and major updates for @xterm/xterm and typescript, and patch and minor updates for react. This aligns with the task to monitor @xterm/xterm and typescript for minor version changes, and react for major version changes.

For more details, open the Copilot Workspace session.

The Versioning Strategy was wrong... I fixed it manually.


Devise session reset on subsequent request

I used:
Devise (3.5.1)
Omniauth (1.2.2)
Warden (1.2.3)
On a trial project, a new one using Mongoid as the ORM. Sessions controller are created anew, and used, instead of the Devise's standard, and changed into:
class UserDevise::SessionsController < Devise::SessionsController
  def new
    super
  end

  def create
    puts "AUTH OPTIONS"
    puts auth_options
    self.resource = warden.authenticate!(auth_options)
    puts "RESOURCE"
    puts self.resource.inspect
    set_flash_message(:notice, :signed_in) if is_flashing_format?
    sign_in(resource_name, resource)
    yield resource if block_given?

    session[:whatever] = "ADAM PAHLEVI"

    puts session.keys

    flash.delete(:notice)

    if current_user.data.prereg
      if params[:original_url]
        redirect_to params[:original_url]
      else
        redirect_to main_app.root_path
      end
    else
      # prereg_path
      redirect_to main_app.root_path
    end
  end

  def destroy
    signed_out = (Devise.sign_out_all_scopes ? sign_out : sign_out(resource_name))
    super
    flash.delete(:notice)
  end
end

My session (whatever) is persisted, but Warden's session is reset on subsequent request. I don't know why.

Are you doing sign up with ajax or something like that? In any case, it is very hard to find out what is wrong with such a code snippets, so  Can you please provide a sample application that reproduces the error?

No Ajax. I am new to Git, should I set up a new repo to this? I used git mainly only to push something.

I already undergone several test in different rails version. And, the strange thing is not in the devise itself, but rather in MongoDB, or should i say... mongoid?
If a mongo db is shared by two different app... what happen is that, you can login (under same devise configuration) but the session won't persist.
I don't know if this is a mongo/rails/devise problem...

I confirm that there's problem with sharing mongodb database for devise's user login.
I used an entirely new project, new, as in "rails new." First, with a separate database, everything is OK. Then, I changed the db to use the same mongoid db, and then problem begin to occur: that is, session not persisted.
Strange...

@saveav Are you still seeing this issue? I am using Devise and Mongoid and may have a similar problem - I seem to be losing authenticated state within Warden. Trying to work out if this is related.

Which mongoid version are you using? It was a mongoid bug which should hopefully be fixed.

Using Mongoid 4.0.2. So this should be fixed in Devise 3.5.2?


example doesnt do anything on shake

on iPhone Simulator the example provided doesnt work. Neither does it work in my very own application. To get it right, on shake i should see the log on the simulator right inside my app right?

Some one reported something similar on the main package: https://github.com/leisim/logger/issues/20. Could you try the suggestion from there?

I'm having the same issue, can you please create a working sample?

I tried adding LogConsoleOnShake (to the body of my home screen) and it does not seem to do anything.  I'm trying to use this on a physical iPhone device because I am investigating a mysterious bug that only seems to impact the first run on a physical device.

I had trouble to make it work, and I found that :

logs must be called once the LogConsoleOnShake has been put in the widget tree.
debugOnly = false does not seems to work. Sending an APK to someone must be built as debug (flutter build apk --debug)
dependencies must be the following :

logger: 0.7.0+1
logger_flutter: ^0.7.1

I can't get anything to log on release builds

@tamoyal -- though it's not germane to this issue, not seeing log messages on release builds is intentional.  Please see filters in the dependency: logger @https://github.com/leisim/logger/tree/master/lib/src/filters.  In particular, DevelopmentFilter, which is used by default.


Change package.json so that project can run without global installation of mocha

I propose to change package.json as following.
-- added lines.
    "scripts": {
        "start": "node index",
        "test": "mocha test"
    },
 ...
,
    "devDependencies": {
        "mocha": "^2.5.3"
    }

this way project will work with following commands even mocha is not globally installed.
npm install
npm start
npm test

I already made these changes in my fork.

And if I use Jasmine?

I don't know about jasmine; but, right now, this project package.json references mocha.
If you have no global installation of mocha, following workflow gives  error.
npm install
npm test

><EMAIL_ADDRESS>test /your/folder/to/pg-auth
> mocha .

sh: 1: mocha: not found
npm ERR! Test failed.  See above for more details.

Ahh - true I had forgotten that I included the mocha tests in there :). Care to add this to a PR?


Feat/docker enhancements

This PR will:
Lock to major builder version 1 to make use of new functionalities and fixes as they become available
See: https://docs.docker.com/build/dockerfile/frontend/#stable-channel
Also use set -e on RUN's heredoc syntax to avoid a build to succeed even when a build stage fails.

Our minimum requirement to the Dockerfile is 1.4, because the usage of heredoc
https://docs.docker.com/build/dockerfile/release-notes/
So I’m not sure what is the best strategy here

Our minimum requirement to the Dockerfile is 1.4, because the usage of heredoc
https://docs.docker.com/build/dockerfile/release-notes/
So I’m not sure what is the best strategy here

...dockerfile:1 implies dockerfile:1.X, so were covered.

from https://docs.docker.com/build/dockerfile/frontend/#stable-channel

We recommend using docker/dockerfile:1, which always points to the latest stable release of the version 1 syntax, and receives both "minor" and "patch" updates for the version 1 release cycle.

/cc @tuler

...dockerfile:1 implies dockerfile:1.X, so were covered.

I know. Ok, let’s change it then.


Vulnerability roundup 84: unit-01-eth2.network: 1 advisory

search, files

[ ] CVE-2019-7401 CVSSv3=9.8 (nixos-unstable)

Scanned versions: nixos-unstable: 0f5ce2fac0c. May contain false positives.

bogus


Fixing wrong commas

Male male......

Thank you @Exyss i will make sure to cite you in my presentation. This is a great PR! Have a good day.

No problem! Let me know if i can be of some more use


FID Score improvement

Hi there,
I have a dataset of 600 images. I trained the styleGAN-1 with all of them (resolution = 256) and got the maximum FID = 86 at kimg = 7726.
For training  your data-efficient-gans network, I used 110 images (resolution = 256) and at kimg = 201, I got FID = 114, and at kimg = 301, the FID = 119.
May I ask what should I do to get better FID score? because the tutorial says, the data-efficient network is supposed to get 1.7 time better FID than normal styleGAN. Thanks for your support and response.
Best

The FID value is sensitive to the number of reference images. As the whole training set is used as the reference distribution, the FID values would be poorly comparable between different datasets (e.g., 110 vs. 600 in your case). I would suggest using the same datasets and training it a little longer.


passing data with link

Last time I open Issue if route does not exist, I following the Readme.md
I want to ask, do you have any documentation for pass parameter or data based on input field?
I mean on nova we have default button 'Submit' to save it on DB
Can this Packages Button do action like default submit button nova?
So, I want to create button using this package to save the data on Table A
and default nova button to save data on Table B
It's possible for do it?

@adityadees  this package is not meant as a replacement for Nova's default create/save etc buttons. You can make links and supply parameters to them using the link method for outside of nova and create detail index methods for routes inside nova.

@adityadees this package does not provide such functionality. Perhaps it can be build in, but I would have to research that when I have some time.


Add release.yaml and RELEASE.md

This PR adds a release.yaml Github action to make it easier to publish SlateDB releases. The action is triggered through the Github actions page. To run it, SlateDB committers input a version number and click "run workflow". The workflow will:

Verify that the version adheres to the semantic versioning format.
Check out the latest code from the main branch.
Update the version in Cargo.toml to the specified version.
Commit the changes and push to the main branch.
Create a Github release with the specified version and auto-generated release notes.
Publish a release to crates.io.

I've also added a RELEASE.md to describe this process.

Merging optiomistically


[PORT]Add test for NumericEvaluator

Fixes #3258
Description
Add the test for class NumericEvaluator

Pull Request Test Coverage Report for Build 535660571

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.006%) to 84.682%

Files with Coverage Reduction
New Missed Lines
%

libraries/botbuilder-lg/src/templateExtensions.ts
1
84.48%

Totals

Change from base Build 534650136:
-0.006%

Covered Lines:
18212

Relevant Lines:
20518

💛  - Coveralls


Released version of moq does not print correct version

I just downloaded the pre-compiled version of moq v0.2.0 from Github releases and it does not print the correct version:
$ moq -version
moq version dev

Expected:
$ moq -version
moq version v0.2.0

I had used goreleaser to build the binaries. Not sure why the version was not passed in using ldflags. Steps followed:
$ git tag --annotate --message="Release v0.2.0" v0.2.0
$ goreleaser release --rm-dist

@matryer Is there anything wrong with the above steps?

Those commands are slightly different to what I use, see the README.md.
But I don't know why that would make a difference. Maybe @caarlos0 has an idea?

Hey!
Your goreleaser config is setting Version (capital V) instead of version... probably that's the issue...

@caarlos0 Thanks for helping :) So it should be - -X main.Version={{.version}}?

@caarlos0 Thanks for your help. That's it, the variable is unexported in main and they don't match.

Verified, this is fixed. Thanks everyone.
➜  moq_0.2.1_macOS_x86_64 ./moq -version
moq version 0.2.1


Broken symlink

Errors when running pd. I attempted a fresh install before this. Not sure how I ended up in this state:
❯ sh -c "$(curl -sL https://raw.githubusercontent.com/martindstone/pagerduty-cli/master/install.sh)"
This script requires superuser access.
You will be prompted for your password by sudo.
Installing CLI from https://ms-pagerduty-cli.s3-us-west-2.amazonaws.com/channels/stable/pd-darwin-arm64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 34.3M  100 34.3M    0     0  1018k      0  0:00:34  0:00:34 --:--:--  836k
v16.19.0
pd installed to /usr/local/bin/pd
/Users/mwarkentin/.local/share/pagerduty-cli/client/bin/pd: line 16: /Users/mwarkentin/.local/share/pagerduty-cli/client/bin/../0.1.18-3cb4ffe/bin/pd: No such file or directory

❯ pd
/Users/mwarkentin/.local/share/pagerduty-cli/client/bin/pd: line 16: /Users/mwarkentin/.local/share/pagerduty-cli/client/bin/../0.1.18-3cb4ffe/bin/pd: No such file or directory

Hi @mwarkentin ,
Sometimes the local cache gets messed up by update. If you remove the directory ~/.local/share/pagerduty-cli then the error should go away. Let me know.
Thanks,
Martin

Thanks Martin!  That solved my issue also, which was the same thing.

Sorry, this fixed it and I guess I forgot to update. Maybe good to document in the README or similar..


Throwing errors

At the moment Palikka fails silently in many cases where it might probably be a good idea to throw some errors with explanations. However, as that would lead to larger file size the question is that is the library simple enough to ignore error reporting completely?

Since v0.3.0 palikka has adopted a convention to throw errors early on within the scope of public API methods. Required data and data types are checked.


refactor: Update Recognizers-Text references

#minor
Related PR: https://github.com/microsoft/botbuilder-js/pull/ 4524
Description
This PR updates all npm Recognizers-Text dependencies' references with botbuilder-stdlib Recognizers-Text packages.
Specific Changes

Updated all Recognizers-Text dependencies in package.json files with the one located in botbuilder-stdlib.
Updated all Recognizers-Text imports path to point to  botbuilder-stdlib vendors folder.

Testing
The following image shows the bot working with the new Recognizers-Text packages inside BotBuilder.

Pipelines will not pass until the first PR gets merged


add append mode to avoid conflicted getMainLooper().setMessageLogging()

Currently BlockCanary directly calls getMainLooper().setMessageLogging() to do monitor, which may conflicts with the original logging set by app, we can add a append mode for those situation.

i don't konw what means add a append mode?

@huangqichao currently BlockCanary directly calls getMainLooper().setMessageLogging() to do monitor, if developer's app already used main looper's messageLogging to do something, this will overwrite the original one, thus we need append the MessageLoggin instead of set it.

Thanks, but how to append the MessageLogging?

my trouble is : the webview constructor will reste the mainlooper.logging null ,is that means i can't use blockcanary if my project used webview?

why does your webview constructor do this?

Not my webview, that's sdk source code. Prehaps google's engineer also did something like monitor the mainlooper performance by this way.

我提出的问题，解决方式是可以在 Application onCreate方法里，在初始化BlockCanary之前，初始化一个WebView，即可。

@huangqichao Did you fixed the issue about Webview ?

@thanhlv93 I think he solved it by creating a webview before initialize BlockCanary, maybe you can try this, while I still cannot find where WebView set main thread's looper logging, I still cannot solve this problem, I will appreciate if you can help provide where WebView do this.

@markzhai  I'm running as you said set initialize BlockCanary after create a webview. If I find out where does the webview do this , I will let you know .

The webview set the logging null in the native code, and only once! You can add a breakpoint in setMessageLogging and read the trace ,you'll find out where does the webview do this.

大佬，我们项目使用了setMessageLogging是 Looper.getMainLooper().setMessageLogging主线程的 Looper 设置进去的，但是另外一个库也使用了Looper.getMainLooper().setMessageLogging。这钟冲突你说的追加MessageLoggin是什么意思呢，求指导下

您发给我的信件已经收到。
谢谢!


Don't Merge! Regression pull request test

Docs Build status updates of commit e739708:
:clock10: Pending: waiting for processors (17 builds ahead of you)
:warning: Docs Build is busy, currently there are 17 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit e739708:
:clock10: Full build: the average full build time is 18 min(s) 45 sec(s), this is based on the last 197 build(s) for this repository.

Docs Build status updates of commit e739708:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details
Dependent Files

TestingPullRequest.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit e739708:
:clock10: Pending: waiting for processors (7 builds ahead of you)
:warning: Docs Build is busy, currently there are 7 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit e739708:
:clock10: Full build: the average full build time is 18 min(s) 45 sec(s), this is based on the last 200 build(s) for this repository.

Docs Build status updates of commit e739708:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details
Dependent Files

TestingPullRequest.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Is there any way to close a datastore?

So after pending tasks are finished, invoke the close callback and client side can be noticed that the datastore is closed? It's useful when you want to drop or rename the data file without shutting down the server entirely.

Same Question... @louischatriot is there anyway to close the datastore?
And Does it free in-memory that occupied when loading database?

I ran into this when I was doing https://github.com/zevero/passwordless-nedbstore
In order to run the passwordless-tokenstore test multiple nedb instances will open the same file. This is not handled very well. Since I did not find a possibility to close the datastore I had to make a hack, so that all the tests get always the first nedb instance.
In practice I dont need a close, but for testing purposes it would be nice!

I have another issue:
Just made an app with a single test user.
Now that I want to finish it, I like the idea to use a seperate db for every user.
But there can be thousands of them (hopefully).
For now I will cache the opened dbs for consecutive access.
On the long term it would be nice to close it again (ideally autoclose after some timeout).

I have seen your hack but this is feature should definitely be part of nedb's api.

From the docs...

You can manually call the compaction function with yourDatabase.persistence.compactDatafile which takes no argument. It queues a compaction of the datafile in the executor, to be executed sequentially after all pending operations. The datastore will fire a compaction.done event once compaction is finished.

Does this not work?

Close database feature would be very useful when used on server side. Assume the server generates and persist events on regular basis which later on could be queried for some reasons. The best solution would be to load database on demand right after the query has arrived, perform find, send the results back and finally close the large database to release resources. The same for storing events into it or even better, some kind of append function which will only append records and then close database file without the need to load and parse, prepare indexes and so on.

@zevero i learned from experience (and confirmed from nedb's author) that multiple nedb instances (running in separate processes) on a single file will corrupt that file.
in your password example, if u have a unique constraint for "username" or "email", it will get violated by race-conditions from the multiple nedb instances, @ which point nedb will refuse to load the file and crash

See PR #414.


Drop ffmpeg-java.jar dependency

Get rid of the ffmpeg-java.jar dependencies.
Note that these dependencies have never been part of the Maven artifact io.github.borewit:lizzy.

Replaced by commit https://github.com/Borewit/lizzy/commit/7da7ae0f7e9cdfd738b9bfe5d554cb2fe69347b3


changing ADMIN_DOMAIN instructions are unclear

Hello.
I'm trying to change the configured ADMIN_DOMAIN as documented in https://github.com/zulip/zulip/blob/master/README.prod.md but i get a error:
zulip@zulip:~/deployments/current$ ./manage.py shell
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
Type "copyright", "credits" or "license" for more information.

IPython 1.2.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: from zerver.models import *

In [2]: r = get_realm(settings.ADMIN_DOMAIN)

In [3]: r.domain=mydomain.tld
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-3-68ce94c942f4> in <module>()
----> 1 r.domain=mydomain.tld

NameError: name 'mydomain' is not defined

Any hints?
thanks and cheers

I suspect that you've changed the value of ADMIN_DOMAIN in settings.py before running this, and so you're not finding the original realm you created.

Realm.objects.all() in the manage.py shell will tell you what realms you have; the "zulip.com" one is for bots and the other one is your current ADMIN_DOMAIN

Hi Tim.
Thanks for your answer. I changed back the ADMIN_DOMAIN in settings.py to the domain i see in Realm.objects.all(). Restarted Zulip and tried again to set r.domain. Same outcome.
In [4]: r.domain = mydomain.tld
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-4-f253879fa524> in <module>()
----> 1 r.domain = mydomain.tld

NameError: name 'mydomain' is not defined

In [5]: Realm.objects.all()
Out[5]: [<Realm: zulip.com 1>, <Realm: mydmain.tld 2>]

In [6]:

I just wanna correct a typo. But i can start over if there is no easy solution.

thanks and cheers

Oh I misread your report; the issue is just that you need to put quotes around your domain, i.e.
r.domain = "mydomain.tld" instead of r.domain = mydomain.tld
since you're giving it a literal python string, not a variable like settings.ADMIN_DOMAIN

I'll fix the documentation typo, sorry about that!


styles that are not injected do count for initial bundle size.

🐞 Bug report
Command (mark with an x)

[ ] new
[x] build
[ ] serve
[ ] test
[ ] e2e
[ ] generate
[ ] add
[ ] update
[ ] lint
[ ] xi18n
[ ] run
[ ] config
[ ] help
[ ] version
[ ] doc

Is this a regression?
Unknown
Description
We generate different themes for our production build.
All are based on the same base styles with a different variables.scss.
We produce new files on each production build (which is handled by our ci/cd so build time is not that important).
the different styles are defined in the "styles" section of angular.json:
            "styles": [
              {
                "input": "./src/projects/contrast/styles.scss",
                "bundleName": "contrast",
                "inject": false
              },
              {
                "input": "./src/projects/projecta/styles.scss",
                "bundleName": "923a0aa8-73de-46f4-966a-26f1c39ce8e6",
                "inject": false
              },
              {
                "input": "./src/projects/projectb/styles.scss",
                "bundleName": "d945e725-7e1e-4fa5-b372-3d577b3d94cb",
                "inject": false
              },
and so on
              "src/styles.scss"
            ],
            "scripts": [
            ],

As you can see, the files are not injected.
In the production index.html I have verified that the files are not injected.
However, recently the budget exceeded for initial error caused our build to fail:
ERROR in budgets: Exceeded maximum budget for initial. Budget 5 MB was not met by 270 kB with a total of 5.26 MB.

When we removed the different themes, the error dissapeared.
When looking at the build log it looks like the size of all the additional themes are included sum of the initial bundle size and thus are the cause of exceeding the limit (but in fact they are not, which is 👍 )

🔬 Minimal Reproduction
🔥 Exception or Error

ERROR in budgets: Exceeded maximum budget for initial. Budget 5 MB was not met by 270 kB with a total of 5.26 MB.
The command '/bin/sh -c ng build --prod --source-map=false' returned a non-zero code: 1

🌍 Your Environment

Angular CLI: 9.1.4
Node: 12.13.0
OS: darwin x64

Angular: 9.1.4
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.901.4
@angular-devkit/build-angular     0.901.4
@angular-devkit/build-optimizer   0.901.4
@angular-devkit/build-webpack     0.901.4
@angular-devkit/core              9.1.4
@angular-devkit/schematics        9.1.4
@angular/cdk                      9.2.2
@ngtools/webpack                  9.1.4
@schematics/angular               9.1.4
@schematics/update                0.901.4
rxjs                              6.5.5
typescript                        3.7.5
webpack                           4.42.0

We are having the same issue which breaks our deployments.  The issue, for me, does not happen when I am on<EMAIL_ADDRESS> It does present itself when I am on<EMAIL_ADDRESS>


By default, users get copies of meeting invitation

When you create a group in admin center, the following value set to a group. So users do not get copies of group emails but users get copies of meeting invitations by default.
AutoSubscribeNewMembers                : False
AlwaysSubscribeMembersToCalendarEvents : True
If you check [Send copies of group conversations and events to group members] in admin center, AutoSubscribeNewMembers turns into true. So users get copies of emails and meeting invitations.
(FYI, if AlwaysSubscribeMembersToCalendarEvents is False, users get a copies of calendar events because AutoSubscribeNewMembers specifies conversations and calendar events.)

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks

@MikePlumleyMSFT Please merge this PR. Thanks.


Add kapacitor deployment

Signed-off-by: Lorenzo Fontana<EMAIL_ADDRESS>

For this as for influxdb we need services, pvcs and ingresses: https://github.com/gianarb/influxdb-operator/issues/5


proposal: Add {{.Capabilities}} to template objects for capabilities detection

It is becoming increasingly common to need access to information about a Kubernetes cluster in order to generate manifest files from templates.
One way we could handle this is to introduce a new object in the default template scope. This object would be called {{.Capabilities}} and would provide the following:

Access to the resource kinds
Access to features that are enabled or disabled (like PV)

So it might look like this:

.Capabilities.APIVersions: A list of api version strings supported by the Kubernetes API server (e.g. batch/v1beta1, decorated with a Has(string) bool method.
.Capabilities.PersistentVolumes: A boolean indicating whether PersistentVolumes is enabled on this cluster.

This would allow things like:
{{ if .Capabilities.Has "batch/v1beta1" }}
# declare a job
{{ end }}

Or
{{ if .Capabilities.PersistentVolumes }}
# Create a volume
{{ else }}
# Use an emptydir or something
{{ end }}

The catch to this is that we could only expose capabilities that we can detect by querying Kubernetes API.

Related to #1583

So there doesn't appear to be a way to reliably indicate whether a PVC can be created simply by looking at the environment. I'm removing it off of the feature list for now. If we find a way, we can add this back in.


Reduce xcodebuild noise #2

Fixes #13104
Same as #14586. But clean the specified build configuration.